gcc without the -pedantic option is by design not a C90/C99-conforming compiler. glibc with -D_FORTIFY_SOURCE enabled is by design not a C90/C99-conforming library. The c89/c99 programs should handle this by defaulting to -pedantic -U_FORTIFY_SOURCE. There's no point in making these utilities nonconforming; there's plain old cc/gcc if you want that.
feel free to post diffs to the files in question that accomplish exactly what you're talking about
Created attachment 180729 [details, diff] c89-c99-pedantic.patch I was thinking of something like this. This way c89 and c99 are as close to conforming by default as possible with gcc. It's still possible to override the options by explicitly passing f.e. -D_FORTIFY_SOURCE, but that's okay, the idea is simply to have a conforming (or as close as possible) compiler when no extra options are passed. (I'd even get rid of the whole for i loop; c89 -std=c99 falls in the same category as c89 -Werror for me: you are explicitly asking for a compiler that _doesn't_ conform to C90, so let's give you one. Keeping the loop is fine too though.)
looks sane to me ... feel free to commit, otherwise i'll prob get to it later this week
Thanks, committed.
something went wrong with the commit. your changes never got through.
That's odd. The ChangeLog part did get committed, but files/* didn't? Fixed now by manually committing files/*, and then updating the Manifest using repoman. I'll check what happened to help make sure it doesn't happen again. Sorry for leaving things broken.