summaryrefslogtreecommitdiffstats
path: root/gcc/c-gimplify.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-10 07:20:30 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-10 07:20:30 +0000
commit944a57c948a822608ee539b1bbe31b9b0f7f89d5 (patch)
treec683e277401951e2c086f119811658d181cf4240 /gcc/c-gimplify.c
parentfc4efa561422fbbe8c65b5b7043d29242a20f8c7 (diff)
downloadppe42-gcc-944a57c948a822608ee539b1bbe31b9b0f7f89d5.tar.gz
ppe42-gcc-944a57c948a822608ee539b1bbe31b9b0f7f89d5.zip
* c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
before ensuring it's already computed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-gimplify.c')
-rw-r--r--gcc/c-gimplify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c
index 342848acd29..5b309343361 100644
--- a/gcc/c-gimplify.c
+++ b/gcc/c-gimplify.c
@@ -2,7 +2,8 @@
by the C-based front ends. The structure of gimplified, or
language-independent, trees is dictated by the grammar described in this
file.
- Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008
+ Free Software Foundation, Inc.
Lowering of expressions contributed by Sebastian Pop <s.pop@laposte.net>
Re-written to support lowering of whole function trees, documentation
and miscellaneous cleanups by Diego Novillo <dnovillo@redhat.com>
@@ -87,7 +88,8 @@ c_genericize (tree fndecl)
fprintf (dump_orig, "\n;; Function %s",
lang_hooks.decl_printable_name (fndecl, 2));
fprintf (dump_orig, " (%s)\n",
- IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fndecl)));
+ (!DECL_ASSEMBLER_NAME_SET_P (fndecl) ? "null"
+ : IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fndecl))));
fprintf (dump_orig, ";; enabled by -%s\n", dump_flag_name (TDI_original));
fprintf (dump_orig, "\n");
OpenPOWER on IntegriCloud