diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-03-11 13:05:58 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-03-11 13:05:58 +0100 |
commit | 02d472a2cb30a5692a57b2fc021b2fa043c84213 (patch) | |
tree | 65d78c3207bb985720bd097355723a2b16c5dc5f /gcc/tree-ssa-loop.c | |
parent | 0f9befa1413555608a7f1d1c6bb1982101314a7c (diff) | |
download | gcc-02d472a2cb30a5692a57b2fc021b2fa043c84213.zip gcc-02d472a2cb30a5692a57b2fc021b2fa043c84213.tar.gz gcc-02d472a2cb30a5692a57b2fc021b2fa043c84213.tar.bz2 |
re PR tree-optimization/70169 (ICE at -O1 and above on x86_64-linux-gnu in gen_lsm_tmp_name, at tree-ssa-loop.c:791)
PR tree-optimization/70169
* tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
for unknown codes.
* gcc.dg/pr70169.c: New test.
From-SVN: r234136
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 4c39fbc..06354e3 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -769,6 +769,8 @@ gen_lsm_tmp_name (tree ref) case SSA_NAME: case VAR_DECL: case PARM_DECL: + case FUNCTION_DECL: + case LABEL_DECL: name = get_name (ref); if (!name) name = "D"; @@ -784,11 +786,9 @@ gen_lsm_tmp_name (tree ref) break; case INTEGER_CST: + default: /* Nothing. */ break; - - default: - gcc_unreachable (); } } |