20000413: __builtin_apply() and -O bug

Mirko Viviani mirko.viviani@rccr.cremona.it
Fri Apr 14 01:41:00 GMT 2000


Ciao!

The optimization produces bad code with __builtin_apply() returning a 10 bytes
struct on fbsd 4.0/i386. (this code dumps a core with 2.95.2)

If you need any info send me a mail.

rey:/tmp/tmp> gcc296 -v
Reading specs from /usr/local/lib/gcc-lib/i386-unknown-freebsdelf4.0/2.96/specs
gcc version 2.96 20000413 (experimental)

rey:/tmp/tmp> gcc296 contest_i.c -o testn -Wall
rey:/tmp/tmp> ./testn
e0 96 04 08 
20 03 04 21 00 00 00 00 00 fe   <-- correct value

rey:/tmp/tmp> gcc296 contest_i.c -o testn -Wall -O
rey:/tmp/tmp> ./testn
70 96 04 08 
cc f1 bf bf 00 00 00 00 d4 f1   <-- wrong value !!

contest_i.c

---
Bye,
Mirko  <mirko.viviani@rccr.cremona.it>   (NeXTmail, MIME)
<mirko@yourbox.net>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: contest_i.c
Type: text/x-c
Size: 780 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000414/9d32ef4f/attachment.bin>


More information about the Gcc-bugs mailing list