diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-09-01 15:53:45 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-09-01 15:53:45 +0200 |
commit | ac156e917633afc778914af2a5e605678767fdba (patch) | |
tree | 7f34f422dffa7468a5b714520601c42f642bfff0 /gcc/dwarf2out.c | |
parent | 355866de6545110b8e3e02b6c47447d868235e66 (diff) | |
download | gcc-ac156e917633afc778914af2a5e605678767fdba.zip gcc-ac156e917633afc778914af2a5e605678767fdba.tar.gz gcc-ac156e917633afc778914af2a5e605678767fdba.tar.bz2 |
re PR debug/7241 (DWARF encoding for "char" incorrect in gcc)
PR debug/7241
* dwarf2out.c (base_type_die): Compare char_type_node with
TYPE_MAIN_VARIANT (type), not type.
* gcc.dg/debug/dwarf2/dwarf-char1.c: New test.
* gcc.dg/debug/dwarf2/dwarf-char2.c: New test.
* gcc.dg/debug/dwarf2/dwarf-char3.c: New test.
* gcc.dg/debug/dwarf2/dwarf-die1.c: Fix a typo.
* gcc.dg/debug/dwarf2/dwarf-die2.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-die3.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-die5.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-die6.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-die7.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf-uninit.c: Likewise.
* gcc.dg/debug/dwarf2/dwarf2-macro.c: Likewise.
From-SVN: r103727
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2dc03f4..a0277b2 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -8014,7 +8014,7 @@ base_type_die (tree type) that contain spaces; other names might occur by coincidence in other languages. */ if (! (TYPE_PRECISION (type) == CHAR_TYPE_SIZE - && (type == char_type_node + && (TYPE_MAIN_VARIANT (type) == char_type_node || ! strcmp (type_name, "signed char") || ! strcmp (type_name, "unsigned char")))) { |