diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-06-01 19:19:09 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-06-01 19:19:09 +0100 |
commit | 82c0180d7797e3602a7069dbf5696b487be5d7d8 (patch) | |
tree | c2f32333e3d90048910804ca1577c829154c8c3b /gcc/doc | |
parent | 68d8b93454c20a663d4b259919d487fe16519837 (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a6483e8..94c4b2e 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -732,6 +732,7 @@ See S/390 and zSeries Options. -finhibit-size-directive -finstrument-functions @gol -fno-common -fno-ident @gol -fpcc-struct-return -fpic -fPIC -fpie -fPIE @gol +-fno-jump-tables @gol -freg-struct-return -fshared-data -fshort-enums @gol -fshort-double -fshort-wchar @gol -fverbose-asm -fpack-struct[=@var{n}] -fstack-check @gol @@ -12582,6 +12583,15 @@ generated position independent code can be only linked into executables. Usually these options are used when @option{-pie} GCC option will be used during linking. +@item -fno-jump-tables +@opindex fno-jump-tables +Do not use jump tables for switch statements even where it would be +more efficient than other code generation strategies. This option is +of use in conjunction with @option{-fpic} or @option{-fPIC} for +building code which forms part of a dynamic linker and cannot +reference the address of a jump table. On some targets, jump tables +do not require a GOT and this option is not needed. + @item -ffixed-@var{reg} @opindex ffixed Treat the register named @var{reg} as a fixed register; generated code |