aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-06-01 19:19:09 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2005-06-01 19:19:09 +0100
commit82c0180d7797e3602a7069dbf5696b487be5d7d8 (patch)
treec2f32333e3d90048910804ca1577c829154c8c3b /gcc/stmt.c
parent68d8b93454c20a663d4b259919d487fe16519837 (diff)
downloadgcc-82c0180d7797e3602a7069dbf5696b487be5d7d8.zip
gcc-82c0180d7797e3602a7069dbf5696b487be5d7d8.tar.gz
gcc-82c0180d7797e3602a7069dbf5696b487be5d7d8.tar.bz2
common.opt (fjump-tables): New.
* common.opt (fjump-tables): New. * doc/invoke.texi (-fno-jump-tables): Document. * stmt.c (expand_end_case_type): Do not emit jump tables unless flag_jump_tables. From-SVN: r100457
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index d1e71de..6bdaf51 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -2458,6 +2458,7 @@ expand_case (tree exp)
#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
|| flag_pic
#endif
+ || !flag_jump_tables
|| TREE_CONSTANT (index_expr)
/* If neither casesi or tablejump is available, we can
only go this way. */