c89 broken on head?
David Chisnall
theraven at FreeBSD.org
Thu Mar 7 19:31:30 UTC 2013
On 7 Mar 2013, at 19:28, Dimitry Andric <dim at freebsd.org> wrote:
>> Also, I seem to remember a discussion about making -std=gnu89 the default
>> for clang when run as "cc", but nothing seems to have changed. Could this
>> be picked up again, because there are in fact subtle semantic differences
>> between gnu89 inline and c99 inline that old code may rely on.
cc was deprecated in POSIX1997. I would be more in favour of removing it entirely than of making it default to anything other than C11.
I do have a patch for clang that makes it select a more sensible default dialect when invoked as gcc, c89, c99, or c11. I'll try to push this upstream soon.
David
More information about the freebsd-toolchain
mailing list