cgraphunit.c (cgraph_node::expand_thunk): Do not force DECL_IGNORED_P on the thunk.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 8 Oct 2018 22:49:07 +0000 (22:49 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 8 Oct 2018 22:49:07 +0000 (22:49 +0000)
* cgraphunit.c (cgraph_node::expand_thunk): Do not force DECL_IGNORED_P
on the thunk.

From-SVN: r264943

gcc/ChangeLog
gcc/cgraphunit.c

index 392728d48e5d36b1faccad962eadf5650a10845a..dc6ba9196440da4a124fe752f170230d9c19bdec 100644 (file)
@@ -1,4 +1,9 @@
-2018-09-28  Eric Botcazou  <ebotcazou@adacore.com>
+2018-10-08  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * cgraphunit.c (cgraph_node::expand_thunk): Do not force DECL_IGNORED_P
+       on the thunk.
+
+2018-10-08  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR tree-optimization/86659
        * gimple-match.h (struct gimple_match_op): Add reverse field.
index 146855fa8044123ad2ae04eb444720ae58fc7d1b..5176cd1f1ffa375b4b3caeeefa43e14986d2b993 100644 (file)
@@ -1870,7 +1870,6 @@ cgraph_node::expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)
       resolve_unique_section (thunk_fndecl, 0,
                              flag_function_sections);
 
-      DECL_IGNORED_P (thunk_fndecl) = 1;
       bitmap_obstack_initialize (NULL);
 
       if (thunk.virtual_offset_p)