]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Aug 2013 10:51:54 +0000 (10:51 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Aug 2013 10:51:54 +0000 (10:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201625 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-family/ChangeLog
gcc/c-family/c-ada-spec.c

index 823c0f79b5aec555a60cf8cafa5df71501756601..1e053bd6f5170b4d6fcf09c451fb90a66b1eff86 100644 (file)
@@ -1,3 +1,7 @@
+2013-08-09  Arnaud Charlet  <charlet@adacore.com>
+
+       * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
+
 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/58080
index 8670b94e9f9f58da5ba0411f2d2b497fe65b0ddc..22784c93ec9f681e76c9885c6b92f391c2066576 100644 (file)
@@ -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);