This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-970924 problem on Sun3


On Sun, 28 Sep 1997, Jeffrey A Law wrote:

>   > ./xgcc -B./  -DIN_GCC   -g -I./include     -DNO_MEM -DNO_LONG_DOUBLE_IO -O0
>   >  -I. -c ./enquire.c
>   > /usr/tmp/cca10513.s: Assembler messages:
>   > /usr/tmp/cca10513.s:19933: Error: Unknown operator -- statement `length of 
>   > Common Information Entry' ignored
>   > /usr/tmp/cca10513.s:19937: Error: Unknown operator -- statement `cie Identi
>   > fier Tag' ignored
>   > /usr/tmp/cca10513.s:19938: Error: Rest of line ignored. First ignored chara
>   > cter valued 0x9.
>   > /usr/tmp/cca10513.s:19939: Error: Unknown operator -- statement `cie Versio
>   > n' ignored
> Sounds like the ASM_COMMENT_START problem from what you're provided
> (a copy of line 19933 would have helped :-)

I bumped into the same problem on m68k-amigaos.

The problem seems to be that dwarf2out.c inserts comments in the asm code,
which it should *NEVER* do. That's because the coments are inside the
#NO_APP, which turns the GAS internal preprocessor off for speed reasons.

The outputting of comments is protected with "if (flag_verbose_asm)".
Unfortunately, this flag is ON by default.

I fixed the problem with the following patch:

--- toplev.c.orig	Sun Sep 28 16:35:04 1997
+++ toplev.c	Sun Sep 28 16:35:29 1997
@@ -619,7 +619,7 @@ int flag_inhibit_size_directive = 0;
    -fverbose-asm is the default.  -fno-verbose-asm causes the extra information
    to be omitted and is useful when comparing two assembler files.  */
 
-int flag_verbose_asm = 1;
+int flag_verbose_asm = 0;
 
 /* -dA causes debug commentary information to be produced in
    the generated assembly code (to make it more readable).  This option


This is of course just a crude workaround, but I think the real fix will
have to follow the same route, unless Jason Merrill decides to remove the
comments altogether (dwarf2out.c seems to be the only file that uses
flag_verbose_asm, BTW). IMO, flag_verbose_asm should be off by default,
and, if somebody passes -fverbose-asm, ASM_FILE_START and ASM_APP_OFF
should not output #NO_APP.

/ Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 1.6 GB, 18 MB RAM \
| iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
| http://student.uci.agh.edu.pl/~iskra                         |
\ PGP public key available via Finger or WWW                   /



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]