From 65a372f494f5db55b3f806fdf7853f931bf085d7 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Fri, 9 Aug 2013 10:51:54 +0000 Subject: [PATCH] * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name From-SVN: r201625 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-ada-spec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 823c0f7..1e053bd 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2013-08-09 Arnaud Charlet + + * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name + 2013-08-05 Paolo Carlini PR c++/58080 diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 8670b94..22784c9 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -2900,7 +2900,7 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type, pp_string (buffer, " -- "); dump_sloc (buffer, t); - if (is_abstract) + if (is_abstract || !DECL_ASSEMBLER_NAME (t)) return 1; newline_and_indent (buffer, spc); -- 2.7.4