diff options
| author | Martin Liska <mliska@suse.cz> | 2021-03-15 09:45:41 +0100 |
|---|---|---|
| committer | Martin Liska <mliska@suse.cz> | 2021-04-21 16:18:05 +0200 |
| commit | 8f48ec0946abdc036d74a157623b45fddd864a72 (patch) | |
| tree | 3ba6a4b961ca86e58bbdc33d109c11f914095a68 /gcc/dwarf2out.c | |
| parent | f23881fcf081a6edd538d6d54fa0068d716973d7 (diff) | |
| download | gcc-8f48ec0946abdc036d74a157623b45fddd864a72.zip gcc-8f48ec0946abdc036d74a157623b45fddd864a72.tar.gz gcc-8f48ec0946abdc036d74a157623b45fddd864a72.tar.bz2 | |
Fix clang warnings.
gcc/ChangeLog:
* config/i386/i386.c: Remove superfluous || TARGET_MACHO
which remains to be '(... || 0)' and clang complains about it.
* dwarf2out.c (AT_vms_delta): Declare conditionally.
(add_AT_vms_delta): Likewise.
* tree.c (fld_simplified_type): Use rather more common pattern
for disabling of something (#if 0).
(get_tree_code_name): Likewise.
(verify_type_variant): Likewise.
Diffstat (limited to 'gcc/dwarf2out.c')
| -rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7a15deb..aba1684 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3929,8 +3929,10 @@ static void prune_unused_types (void); static int maybe_emit_file (struct dwarf_file_data *fd); static inline const char *AT_vms_delta1 (dw_attr_node *); static inline const char *AT_vms_delta2 (dw_attr_node *); +#if VMS_DEBUGGING_INFO static inline void add_AT_vms_delta (dw_die_ref, enum dwarf_attribute, const char *, const char *); +#endif static void append_entry_to_tmpl_value_parm_die_table (dw_die_ref, tree); static void gen_remaining_tmpl_value_param_die_attribute (void); static bool generic_type_p (tree); @@ -5200,6 +5202,7 @@ AT_file (dw_attr_node *a) return a->dw_attr_val.v.val_file; } +#if VMS_DEBUGGING_INFO /* Add a vms delta attribute value to a DIE. */ static inline void @@ -5215,6 +5218,7 @@ add_AT_vms_delta (dw_die_ref die, enum dwarf_attribute attr_kind, attr.dw_attr_val.v.val_vms_delta.lbl2 = xstrdup (lbl2); add_dwarf_attr (die, &attr); } +#endif /* Add a symbolic view identifier attribute value to a DIE. */ |
