Re: [PATCH 1/2] Disable -fbit-tests and -fjump-tables at -O0

2024-10-17 Thread Richard Biener
On Thu, Oct 17, 2024 at 2:51 AM Andi Kleen wrote: > > From: Andi Kleen Instead of initializing with -1 can you Init(0) and add OPT_fjump_tables and OPT_fbit_tests to the default_options_table table in opts.cc, under OPT_LEVELS_1_PLUS_NOT_DEBUG I'd guess. Thanks, Richard. > gcc/ChangeLog: > >

[PATCH 1/2] Disable -fbit-tests and -fjump-tables at -O0

2024-10-16 Thread Andi Kleen
From: Andi Kleen gcc/ChangeLog: * common.opt: Enable -fbit-tests and -fjump-tables only at -O1. * tree-switch-conversion.h (jump_table_cluster::is_enabled): Dito. --- gcc/common.opt | 4 ++-- gcc/tree-switch-conversion.h | 5 +++-- 2 files changed, 5 inse