Vincent Lefevre wrote: > On 2009-08-04 15:44:05 -0700, Joe Buck wrote: >> But AFAIK neither Posix nor the C89 standard nor the C99 standard >> say anything about -D and -U flags. It's the Single UNIX specification >> that is the issue, and it refers to a command that is spelled "c89", >> or (in later versions) "c99", not "gcc". > > c99 with the mentioned -D and -U flags is specified by:
GCC does not install an executable called "c99". Or one called "c89". So what any standard requires of them is irrelevant to us, except that we would want to make it possible to support that mode of operation. And we do; with our predictable behaviour, all "c89" has to do is sort the command-line options so all the -Ds come first and all the -Us come last, and then invoke "gcc". I'm sure nobody will raise any objection to adding a command-line flag if you want to integrate this behaviour into the driver. Perhaps we could even do the old behave-differently-according-to-argv[0] trick, although I'm not sure if that isn't slightly discouraged these days. cheers, DaveK