This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/39485] -O0 -g still puts whole object to a register
- From: "jan dot kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2009 18:01:49 -0000
- Subject: [Bug debug/39485] -O0 -g still puts whole object to a register
- References: <bug-39485-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jan dot kratochvil at redhat dot com 2009-03-18 18:01 -------
I see I messed it up, in some way was gcc-4.4 more correct than gcc-4.3
Thanks for the fix although now I would not probably bugreport it at all.
It turned PASS->XFAIL.
But in fact PASS means SKIP(not-testable) and XFAIL means PASS - for GDB.
gdb.cp/classes.exp:
# This class is so small that an instance of it can fit in a register.
# When gdb tries to call a method, it gets embarrassed about taking
# the address of a register.
#
# TODO: I think that message should be a PASS, not an XFAIL.
# gdb prints an informative message and declines to do something
# impossible.
#
# The method call actually succeeds if the compiler allocates very
# small classes in memory instead of registers. So this test does
# not tell us anything interesting if the call succeeds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39485