Commit c6108cbd by Nathan Sidwell Committed by Nathan Sidwell

[PATCH] fix fdump-lang-raw ICE

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00037.html
	* tree-dump.c (dequeue_and_dump): Use HAS_DECL_ASSEMBLER_NAME_P.

From-SVN: r254323
parent 183e687a
2017-11-01 Nathan Sidwell <nathan@acm.org>
* tree-dump.c (dequeue_and_dump): Use HAS_DECL_ASSEMBLER_NAME_P.
2017-11-01 Palmer Dabbelt <palmer@dabbelt.com> 2017-11-01 Palmer Dabbelt <palmer@dabbelt.com>
* doc/invoke.texi (RISC-V Options): Explicitly name the medlow * doc/invoke.texi (RISC-V Options): Explicitly name the medlow
...@@ -337,7 +337,8 @@ dequeue_and_dump (dump_info_p di) ...@@ -337,7 +337,8 @@ dequeue_and_dump (dump_info_p di)
/* All declarations have names. */ /* All declarations have names. */
if (DECL_NAME (t)) if (DECL_NAME (t))
dump_child ("name", DECL_NAME (t)); dump_child ("name", DECL_NAME (t));
if (DECL_ASSEMBLER_NAME_SET_P (t) if (HAS_DECL_ASSEMBLER_NAME_P (t)
&& DECL_ASSEMBLER_NAME_SET_P (t)
&& DECL_ASSEMBLER_NAME (t) != DECL_NAME (t)) && DECL_ASSEMBLER_NAME (t) != DECL_NAME (t))
dump_child ("mngl", DECL_ASSEMBLER_NAME (t)); dump_child ("mngl", DECL_ASSEMBLER_NAME (t));
if (DECL_ABSTRACT_ORIGIN (t)) if (DECL_ABSTRACT_ORIGIN (t))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment