diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-11-02 14:55:41 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-11-02 14:55:41 +0100 |
commit | 0fba566cb567299df25de935cab71547a8965af4 (patch) | |
tree | 95b320c9be579d0497655d70349fd739c7e30186 /gcc/cfgexpand.c | |
parent | 9789ba46f6c647ed2f893c8785585338b30c9847 (diff) | |
download | gcc-0fba566cb567299df25de935cab71547a8965af4.zip gcc-0fba566cb567299df25de935cab71547a8965af4.tar.gz gcc-0fba566cb567299df25de935cab71547a8965af4.tar.bz2 |
re PR debug/41893 (ICE with -combine and debug)
PR debug/41893
* cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
for a VOIDmode variable.
* gcc.dg/debug/pr41893-1.c: New test.
* gcc.dg/debug/pr41893-2.c: New file.
From-SVN: r153806
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 33e7579..cfb4d17 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -2349,7 +2349,8 @@ expand_debug_expr (tree exp) || DECL_EXTERNAL (exp) || !TREE_STATIC (exp) || !DECL_NAME (exp) - || DECL_HARD_REGISTER (exp)) + || DECL_HARD_REGISTER (exp) + || mode == VOIDmode) return NULL; op0 = DECL_RTL (exp); |