This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tdep/1455: GCC 3.3.2 + DWARF 2 breaks i386 small struct return


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]