* FYI the `register' gcc-4.4 change (GCC PR debug/39485)
@ 2009-03-18 18:08 Jan Kratochvil
0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2009-03-18 18:08 UTC (permalink / raw)
To: archer
Hi,
as I made a note about it in the confcall:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39485
Summary: Explicit `register' keyword started working even during -O0 for
g++-4.4. It makes methods of objects marked by `register' not debuggable.
(gdb) p v.method()
Address requested for identifier "v" which is in register $rbx
It turned for GDB:
-PASS: gdb.cp/classes.exp: calling method for small class
+XFAIL: gdb.cp/classes.exp: calling method for small class (PRMS 2972)
Jakub already checked-in to GCC a fix although one could (less well)
workaround it by some:
#ifdef __OPTIMIZE__
# define register
#endif
Anyway Jakub already did code it and it should have no disadvantages so
probably there is nothing left to decide about some compromise.
Regards,
Jan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-18 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-18 18:08 FYI the `register' gcc-4.4 change (GCC PR debug/39485) Jan Kratochvil
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).