summaryrefslogtreecommitdiffstats
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-10 21:50:10 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-10 21:50:10 +0000
commit6fff0335f84b4fbc80fe510b02694c2bb4c2d73b (patch)
tree19d0a572c3e27e5190c6222479a445537eaaf039 /gcc/print-rtl.c
parentd20ef498d9e65d6d7f33e075e926df7b22d346cc (diff)
downloadppe42-gcc-6fff0335f84b4fbc80fe510b02694c2bb4c2d73b.tar.gz
ppe42-gcc-6fff0335f84b4fbc80fe510b02694c2bb4c2d73b.zip
PR c/6809
* print-rtl.c (print_mem_expr): Don't crash on unnamed fields. * gcc.dg/20020530-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index da8a0520a05..f4c92d4ca62 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -88,8 +88,9 @@ print_mem_expr (outfile, expr)
print_mem_expr (outfile, TREE_OPERAND (expr, 0));
else
fputs (" <variable>", outfile);
- fprintf (outfile, ".%s",
- IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (expr, 1))));
+ if (DECL_NAME (TREE_OPERAND (expr, 1)))
+ fprintf (outfile, ".%s",
+ IDENTIFIER_POINTER (DECL_NAME (TREE_OPERAND (expr, 1))));
}
else if (DECL_NAME (expr))
fprintf (outfile, " %s", IDENTIFIER_POINTER (DECL_NAME (expr)));
OpenPOWER on IntegriCloud