public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/63300] New: 'const volatile' sometimes stripped in debug info
@ 2014-09-18 16:07 arnez at linux dot vnet.ibm.com
  2014-09-19 17:46 ` [Bug debug/63300] " mark at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: arnez at linux dot vnet.ibm.com @ 2014-09-18 16:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63300

            Bug ID: 63300
           Summary: 'const volatile' sometimes stripped in debug info
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnez at linux dot vnet.ibm.com

With current upstream gcc, the following commands do not yield the expected
output:

echo 'void f (const volatile int x) { }' | gcc -xc -c -g -o foo.o -
readelf -wi foo.o | grep 'volatile\|const'

With an older gcc we get something like this:

 <1><54>: Abbrev Number: 4 (DW_TAG_const_type)
 <1><59>: Abbrev Number: 5 (DW_TAG_volatile_type)

With the current gcc we get nothing.  Indeed, the resulting debug info declares
the parameter 'x' merely as an 'int' instead of 'const volatile int'.

The same happens with some other combinations as well, e.g.:

char *const volatile x
const volatile float x
const volatile int *x


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-26  7:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18 16:07 [Bug debug/63300] New: 'const volatile' sometimes stripped in debug info arnez at linux dot vnet.ibm.com
2014-09-19 17:46 ` [Bug debug/63300] " mark at gcc dot gnu.org
2014-09-22  7:18 ` mark at gcc dot gnu.org
2014-09-25  7:38 ` krebbel at gcc dot gnu.org
2014-09-26  7:40 ` arnez at linux dot vnet.ibm.com
2014-09-26  7:42 ` arnez at linux dot vnet.ibm.com

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).