This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
tdep/1455: GCC 3.3.2 + DWARF 2 breaks i386 small struct return
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 Nov 2003 15:34:23 -0000
- Subject: tdep/1455: GCC 3.3.2 + DWARF 2 breaks i386 small struct return
- Reply-to: ac131313 at redhat dot com
>Number: 1455
>Category: tdep
>Synopsis: GCC 3.3.2 + DWARF 2 breaks i386 small struct return
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 17 15:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: 2003-11-17
>Organization:
>Environment:
>Description:
For i386-*-*, given:
struct struct2 { char a; long long b; };
truct struct2 fun2();
These failures:
(gdb) PASS: gdb.base/structs.exp: ptype foo2; structs-tc-tll
p/c fun2()
$1 = {a = 97 'a', b = 0 '\0'}
(gdb) FAIL: gdb.base/structs.exp: p/c fun2(); call 2 structs-tc-tll
call Fun2(foo2)
(gdb) PASS: gdb.base/structs.exp: call Fun2(foo2); call 2 structs-tc-tll
p/c L2
$2 = {a = 97 'a', b = 0 '\0'}
(gdb) FAIL: gdb.base/structs.exp: p/c L2; call 2 structs-tc-tll
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb
.base/structs.c -DtA=tc -DtB=tf -gdwarf-2 -g2 -lm -o /berman/fsf/_today_/ber
man/test/gdb.base/structs-tc-tf (timeout = 300)
dir
only occure with the combination of GCC 3.3.2 and DWARF 2 (they pass with stabs!).
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: