Re: Question about enabling additional flags in Ofast

2024-07-13 Thread Andrew Pinski via Gcc
On Sat, Jul 13, 2024 at 9:38 AM Hanke Zhang via Gcc wrote: > > Hi, > > I'm attempting to enable more flags in Ofast, but I've encountered some > issues. I suspect you need to handle this in the driver specs instead of in opts.cc. Since -flto-partition=one is more of a global flag rather than an

Question about enabling additional flags in Ofast

2024-07-13 Thread Hanke Zhang via Gcc
Hi, I'm attempting to enable more flags in Ofast, but I've encountered some issues. For instance, if I want to add -flto-partition=one to Ofast, here is the modification I made to opts.cc /* -Ofast adds optimizations to -O3. */ { OPT_LEVELS_FAST, OPT_ffast_math, NULL, 1 }, { OPT_LEVELS_FAST, OP