c/233: loop unrolling generates duplicate assmebler labels ->gas rejects code

Loren Osborn linux_dr@yahoo.com
Sat Aug 24 18:06:00 GMT 2002


I found a similar bug to PR233, and was disappointed to see that PR233 was
closed, appearantly just because the URL to the test case became a broken link.

I think I have found a manifistaion of the same bug, although it doesn't
involve unrolling loops.  It involves inlining of functions with
inline-assembler lables in it...

I have included a minimal test case (I normally would not attach a file when
there were so many reciepients of an email, but as PR233 was closed because of
a broken link, I feel it's apropriate)...

to reproduce the error invoke:
  gcc -O3 -c -o InlineLableBug.o InlineLableBug.c

I am using gcc 3.1.1 on Mandrake Linux 8.1...

As far as I am aware, the code itself (while not technically vailid ANSI C,
because ANSI C doesn't explicitly allow inline assembler) should be valid in
gcc. 

Please help.

Thanks in advance,

-Loren Osborn
Software Engineer


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=233





More information about the Gcc-bugs mailing list