public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/39432] New: [4.4 Regression] gdb.base/store.exp failures Date: Wed, 11 Mar 2009 14:28:00 -0000 [thread overview] Message-ID: <bug-39432-87@http.gcc.gnu.org/bugzilla/> (raw) Running ../../../gdb/testsuite/gdb.base/store.exp ... FAIL: gdb.base/store.exp: upvar charest l; print old l, expecting -1 .* FAIL: gdb.base/store.exp: upvar short l; print old l, expecting -1 FAIL: gdb.base/store.exp: upvar int l; print old l, expecting -1 FAIL: gdb.base/store.exp: upvar long l; print old l, expecting -1 FAIL: gdb.base/store.exp: upvar longest l; print old l, expecting -1 FAIL: gdb.base/store.exp: upvar doublest l; print old l, expecting -1 are new failures in gdb testsuite when compiled with 4.4 compared to store.c compiled with 4.3.x. The difference seems to be introduced by IRA, when compiled with -fno-ira (when trunk still had that option) the test worked. With the old RA, -g -O0 -dA -fverbose-asm compiled: unsigned int foo (unsigned int, unsigned int); unsigned int bar (register unsigned int a, register unsigned int b) { register unsigned int c = a, d = b; c = foo (c, d); return c + d; } d is allocated in a call-saved register (%ebx), which is fine and c is assigned a stack slot. With IRA d is still allocated in %ebx, but c is in %eax, call-clobbered register. So when gdb in the foo call does up and checks the value in c and d, it finds correct value of d, but garbage in c. Could we perhaps at -O0 avoid allocating user variables that are live accross function calls in call-clobbered registers? For -O1 it is obviously a fine decision. -- Summary: [4.4 Regression] gdb.base/store.exp failures Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org GCC target triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39432
next reply other threads:[~2009-03-11 14:28 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-03-11 14:28 jakub at gcc dot gnu dot org [this message] 2009-03-11 16:57 ` [Bug debug/39432] " vmakarov at redhat dot com 2009-03-11 17:02 ` rguenth at gcc dot gnu dot org 2009-03-11 17:11 ` vmakarov at redhat dot com 2009-03-11 17:12 ` jakub at gcc dot gnu dot org 2009-03-11 17:28 ` vmakarov at redhat dot com 2009-03-11 19:38 ` jakub at gcc dot gnu dot org 2009-03-12 14:40 ` vmakarov at gcc dot gnu dot org 2009-03-12 15:49 ` jakub at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-39432-87@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).