re PR debug/49130 (discrepancies between DW_AT_name and demangler)
authorDodji Seketeli <dodji@redhat.com>
Tue, 7 Jun 2011 11:12:50 +0000 (11:12 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 7 Jun 2011 11:12:50 +0000 (13:12 +0200)
commitb4592b92ac97f5573c08b16d115c89d3b8157c39
treefea88d620a009b1f7a315b8bb2324aecb169c193
parentf373314fb8acc3d6dab8670008dc9338171f8ab4
re PR debug/49130 (discrepancies between DW_AT_name and demangler)

Fix PR debug/49130

gcc/c-family/

* c-pretty-print.c (pp_c_integer_constant): Consider the canonical
type when using pointer comparison to compare types.

gcc/testsuite/

* g++.dg/debug/dwarf2/integer-typedef.C: New test.

From-SVN: r174742
gcc/c-family/ChangeLog
gcc/c-family/c-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/integer-typedef.C [new file with mode: 0644]