aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-04-21 04:33:27 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-04-20 21:33:27 -0700
commitde3c6d9335f07bc31637bbd99be708f35fd23943 (patch)
tree454c440778f6eea675d20f18628f5ce80c096546
parent75293ad62c29b406e8075e36ded0acc86b70fc82 (diff)
downloadgcc-de3c6d9335f07bc31637bbd99be708f35fd23943.zip
gcc-de3c6d9335f07bc31637bbd99be708f35fd23943.tar.gz
gcc-de3c6d9335f07bc31637bbd99be708f35fd23943.tar.bz2
re PR debug/15033 (libgcc2.c:470: internal compiler error: Segmentation fault)
2004-04-12 Andrew Pinski <pinskia@physics.uc.edu> PR debug/15033 * dwarf2out.c (rtl_for_decl_location): Check for NULL rtl. From-SVN: r80943
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6232143..998fe54 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-12 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR debug/15033
+ * dwarf2out.c (rtl_for_decl_location): Check for NULL
+ rtl.
+
2004-04-20 James E Wilson <wilson@specifixinc.com>
* config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9cd05a0..4cf9712 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -9757,6 +9757,7 @@ rtl_for_decl_location (tree decl)
}
}
else if (TREE_CODE (decl) == VAR_DECL
+ && rtl
&& GET_CODE (rtl) == MEM
&& GET_MODE (rtl) != TYPE_MODE (TREE_TYPE (decl))
&& BYTES_BIG_ENDIAN)