More C type errors by default for GCC 14

Pedro Alves pedro@palves.net
Fri May 12 10:49:17 GMT 2023


On 2023-05-12 7:01 a.m., Po Lu via Gcc wrote:
> Jason Merrill <jason@redhat.com> writes:
> 
>> You shouldn't have to change any of those, just configure with CC="gcc
>> -fwhatever".
> 
> If it were so simple...
> 
> Many Makefiles come with a habit of using not CC_FOR_BUILD, but just
> `cc', to build programs which are run on the build machine.

Then write a wrapper script named "cc", and put that in the PATH:

 $ cat cc
 #!/bin/sh

 exec /my/real/gcc -fwhatever "$@"

Done.


More information about the Gcc mailing list