delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/27/21:16:05

Mime-Version: 1.0
To: xxx AT vse DOT cz, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Comments in ASM sources ?!?
Date: Wed, 27 May 1998 18:11:03 -0700
Message-ID: <19980528011049.AAC28554@ppp100.cartsys.com>

At 10:09  5/27/1998 +0100, xxx AT vse DOT cz wrote:
>Hi!
>
>	Please explain to me somebody why I cann't use in asm sources
>(AS compiler distributed with GCC2.8.1)in comments begins with comment 
>char # (hash)some characters from higher ASCII table(ASCII value greater 
>than 127 ie. 7.bit is set) or how to force the AS compiler to ignore all 
>the characters following comment char on one line.
>	I got by compiling some asm source following error messages:
>Error: Rest of line ignored. First ignored character valued 0xffffffae.
>
>This error has concerned following line in source file:
># Calculate edges(here followed text with national chars from upper ASCII
>
>I figured out that f.e. character with ASCII value 174 ends comment line 
>and following chars are treated as a new line of source file.
>
>	I needed to know whats wrong because I need to recompile some
>huge sources containing asm comments with chars from upper ASCII table.

Could whoever's porting 2.9.x check if it's still there? With 2.7, I
couldn't reproduce it with ASCII 174, but ASCII 255 does break it.

If it's still broken, consider reporting it as a bug to <bug-gnu-utils AT gnu DOT org>.

As a workaround, you can filter your source through this command before
assembling:

sed "s/#.*$//"

(You'll need sed.)

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019