re PR tree-optimization/36881 (Creating runtime relocations for code which does not...
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Oct 2008 06:43:19 +0000 (08:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Oct 2008 06:43:19 +0000 (08:43 +0200)
commitf6e6e9904cd32cc78873a33f0a3839812b0d0f57
tree29214d79594ce43e6efb4c36998eb8577cdb8070
parente3bc2fa7e63a75f1a31057aa9c77451f1263488a
re PR tree-optimization/36881 (Creating runtime relocations for code which does not need it)

PR tree-optimization/36881
* tree-switch-conversion.c (check_final_bb): For flag_pic, check
that each value doesn't need runtime relocations, for !flag_pic
check that each value is just a valid initializer constant.

* gcc.dg/tree-ssa/pr36881.c: New test.

From-SVN: r141129
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr36881.c [new file with mode: 0644]
gcc/tree-switch-conversion.c