On Sat, 2024-11-02 at 09:52 +0800, Lulu Cheng wrote: > > 在 2024/11/2 上午1:36, Xi Ruoyao 写道: > > Without optimization, GCC does not emit a jump table for the test case. > > > > I'm not sure if the test case has been wrong in the first place or > > something has changed in these months... > > It was in the r15-4756 that turned -fjump-tables off at O0 optimization. > > I was also looking at this issue yesterday. Isn't it better to add > '-fjump-tables'?:-(
Maybe, but I've heard some -f options does not work at all at -O0 (however I've just tried and -fjump-tables works even at -O0). If you like -fjump-tables more than -O please push the change. -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University