This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC 2.95.2 __builtin_apply() core.
- To: gcc-bugs at gcc dot gnu dot org
- Subject: GCC 2.95.2 __builtin_apply() core.
- From: Mirko Viviani <mirko dot viviani at rccr dot cremona dot it>
- Date: Mon, 10 Apr 2000 16:26:27 +0200
- Reply-To: mirko dot viviani at rccr dot cremona dot it
Ciao!
The following program produces a seg-fault when I try to return a struct > of 8 bytes
with __builtin_apply() on FreeBSD-elf 4.0 and gcc 2.95.2
Any hints ? Thanks.
rey:/tmp/tmp> gdb test1
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(gdb) r
Starting program: /tmp/tmp/test1
Program received signal SIGSEGV, Segmentation fault.
floatValue () at test1.s:26
26 movl %ecx,(%eax)
Current language: auto; currently asm
(gdb) where
#0 floatValue () at test1.s:26
#1 0x804848b in main () at test1.s:74
#2 0x804838f in _start ()
(gdb) info r
eax 0x1 1
ecx 0x21040320 553911072
edx 0x8049610 134518288
ebx 0xbfbfef94 -1077940332
esp 0xbfbfef8c 0xbfbfef8c
ebp 0xbfbfef8c 0xbfbfef8c
esi 0x80483f8 134513656
edi 0xbfbff1d5 -1077939755
eip 0x8048428 0x8048428
eflags 0x10296 66198
cs 0x1f 31
ss 0x2f 47
ds 0x2f 47
es 0x2f 47
fs 0x2f 47
gs 0x2f 47
(gdb)
test1.s
contest_i.c
---
Bye,
Mirko <mirko.viviani@rccr.cremona.it> (NeXTmail, MIME)
<mirko@yourbox.net>