GCC bug on PowerPC with gcc 2.95.2?

Cort Dougan cort@fsmlabs.com
Mon May 21 15:26:00 GMT 2001


gcc version 2.95.2 19991024 (release)

I've tried this hosted on a Linux/x86 system targeting a Linux/PPC system
and I've done a native build on a Linux/PPC host.

I've attached the program that demonstrates the problem.  The command line
was:

ppc-linux-gcc --save-temps gccbug.c

In the inline asm I change r1 but I tell gcc in the 'modifies' constraint
that I've changed it.  The output asm shows that it doesn't save/restore r1
during that code, though.

This seems like a bug but may be an undocumented feature of gcc.  It shows
this behavior with 2.95.2 (19991024) but I haven't tried others.

I'm including the .c, .s and .i.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gccbug.i.bz2
Type: application/x-bzip2
Size: 2840 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010521/6e089b14/attachment.bz2>


More information about the Gcc-bugs mailing list