]>
Commit | Line | Data |
---|---|---|
5384b728 | 1 | 2002-07-11 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | PR debug/7241 | |
4 | * dwarf2out.c (base_type_die): Use DW_ATE_*_char even if main | |
5 | variant is char_type_node and type name is char. | |
6 | ||
7 | --- gcc/dwarf2out.c.jj Wed Jun 19 15:09:56 2002 | |
8 | +++ gcc/dwarf2out.c Thu Jul 11 20:47:52 2002 | |
9 | @@ -7335,9 +7335,11 @@ base_type_die (type) | |
10 | /* Carefully distinguish the C character types, without messing | |
11 | up if the language is not C. Note that we check only for the names | |
12 | that contain spaces; other names might occur by coincidence in other | |
13 | - languages. */ | |
14 | + languages, so we only check if main variant is char_type_node. */ | |
15 | if (! (TYPE_PRECISION (type) == CHAR_TYPE_SIZE | |
16 | && (type == char_type_node | |
17 | + || (TYPE_MAIN_VARIANT (type) == char_type_node | |
18 | + && ! strcmp (type_name, "char")) | |
19 | || ! strcmp (type_name, "signed char") | |
20 | || ! strcmp (type_name, "unsigned char")))) | |
21 | { |