From: deraadt Date: Tue, 10 Jan 2023 12:06:18 +0000 (+0000) Subject: create infrastructure so that jump tables on/off can be tweaked by an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e83d15b76971ad66fd52ab6b67a0a09652ff363;p=openbsd create infrastructure so that jump tables on/off can be tweaked by an architecture by changing JUMP_TABLES_DEFAULT ok kettenis --- diff --git a/gnu/gcc/gcc/common.opt b/gnu/gcc/gcc/common.opt index e50509ef0b1..7aec4a2196a 100644 --- a/gnu/gcc/gcc/common.opt +++ b/gnu/gcc/gcc/common.opt @@ -570,7 +570,7 @@ Common Report Var(flag_ivopts) Init(1) Optimize induction variables on trees fjump-tables -Common Var(flag_jump_tables) Init(1) +Common Var(flag_jump_tables) Init(JUMP_TABLES_DEFAULT) Use jump tables for sufficiently large switch statements fkeep-inline-functions diff --git a/gnu/gcc/gcc/defaults.h b/gnu/gcc/gcc/defaults.h index d7d65e85b85..b429d27fe8e 100644 --- a/gnu/gcc/gcc/defaults.h +++ b/gnu/gcc/gcc/defaults.h @@ -904,4 +904,8 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #define PIE_DEFAULT 0 #endif +#ifndef JUMP_TABLES_DEFAULT +#define JUMP_TABLES_DEFAULT 1 +#endif + #endif /* ! GCC_DEFAULTS_H */