]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree.c (find_decls_types_r): Do not check for redundant typedefs.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2018 12:32:53 +0000 (12:32 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2018 12:32:53 +0000 (12:32 +0000)
* tree.h (is_redundant_typedef): Remove.
* dwarf2out.c (is_redundant_typedef): Turn into static function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263699 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c
gcc/tree.c
gcc/tree.h

index c19038bc31cd4644f400e2f6b5142f67f2fb79ef..c856a935e8b6e60f5c579102c0bc5e698b3a4b9b 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-21  Jan Hubicka  <jh@suse.cz>
+
+       * tree.c (find_decls_types_r): Do not check for redundant typedefs.
+       * tree.h (is_redundant_typedef): Remove.
+       * dwarf2out.c (is_redundant_typedef): Turn into static function.
+
 2018-08-21  Jan Hubicka  <jh@suse.cz>
 
        * tree.c (free_lang_data_in_decl): Remove types from DECL_CONTEXT
index fb71ff349fac0af8ede3f68c356a92aaaa7f190f..edf1ac358963177506a9aa10383f03f48359afb4 100644 (file)
@@ -102,6 +102,7 @@ static void dwarf2out_source_line (unsigned int, unsigned int, const char *,
 static rtx_insn *last_var_location_insn;
 static rtx_insn *cached_next_real_insn;
 static void dwarf2out_decl (tree);
+static bool is_redundant_typedef (const_tree);
 
 #ifndef XCOFF_DEBUGGING_INFO
 #define XCOFF_DEBUGGING_INFO 0
@@ -25831,7 +25832,7 @@ decls_for_scope (tree stmt, dw_die_ref context_die)
 
 /* Is this a typedef we can avoid emitting?  */
 
-bool
+static bool
 is_redundant_typedef (const_tree decl)
 {
   if (TYPE_DECL_IS_STUB (decl))
index 8d1e010d7a2d9c89fb4695e987ee1104d2b21a86..f00a519b3020510bbac40f12871511edfe132834 100644 (file)
@@ -5565,11 +5565,7 @@ find_decls_types_r (tree *tp, int *ws, void *data)
          tem = TYPE_FIELDS (t);
          while (tem)
            {
-             if (TREE_CODE (tem) == FIELD_DECL
-                 || (TREE_CODE (tem) == TYPE_DECL
-                     && !DECL_IGNORED_P (tem)
-                     && debug_info_level > DINFO_LEVEL_TERSE
-                     && !is_redundant_typedef (tem)))
+             if (TREE_CODE (tem) == FIELD_DECL)
                fld_worklist_push (tem, fld);
              tem = TREE_CHAIN (tem);
            }
index 648e9e2a3c4d500066b898878f7667b9e84e72b5..5d4f034e0085f6d6ea1e6cbf196ebefbee09137e 100644 (file)
@@ -5805,7 +5805,6 @@ extern void gt_pch_nx (tree &);
 extern void gt_pch_nx (tree &, gt_pointer_operator, void *);
 
 extern bool nonnull_arg_p (const_tree);
-extern bool is_redundant_typedef (const_tree);
 extern bool default_is_empty_record (const_tree);
 extern HOST_WIDE_INT arg_int_size_in_bytes (const_tree);
 extern tree arg_size_in_bytes (const_tree);