On Tue, Dec 28, 2021 at 01:37:46PM +0100, Jeremie Courreges-Anglas wrote: > On Tue, Dec 28 2021, Jonathan Gray <j...@jsg.id.au> wrote:
> > Is it time to consider changing the gcc default to gnu99? > Definitely. I have considered this since some time already and feel > a bit lame for not even proposing it. I think changing such defaults in > a specific compiler version is not wrong per se, YMMV. > I think there are two big tests this proposal must pass: > - base must build and work on all affected architectures > - a full ports bulk build should be considered successful on sparc64 > The former isn't undoable, it's just harder to get your hands on alpha > or hppa or sh... > Another approach that does not require changing base defaults: > defaulting base-gcc to -std=gnu99 using the ports infrastructure. I'm > not sure where exactly this could be done, maybe in the compiler wrapper > scripts we put in ${WRKDIR}/bin? I did try coming up with a patch to change ports to give -std=gnu99 to base-gcc by default, but I had a number of failures and decided it would probably end up with more work. I don't have a problem with defaulting ports to it, just realize it may not be that easy of a win. --Kurt