RFC: No recursion into language subdirectories

Gabriel Dos Reis gdr@codesourcery.com
Tue Jun 20 01:37:00 GMT 2000


Zack Weinberg <zack@wolery.cumb.org> writes:

[...]

| The biggest disadvantage is that we lose the ability to prune the
| warning switches in the language subdirs.  That was being done by
| adjusting CFLAGS when we recursed.  Some makes can adjust variables
| for individual targets, but that feature is not POSIX, and has at
| least two incompatible syntaxes either of which is a syntax error for
| makes that don't support it.  Adding -pedantic and -Wtraditional to
| language subdirs triples the number of warnings, with the top ten
| being
| 
|     449 function macro ??? must be used with arguments in traditional C
|     223 ANSI C forbids braced-groups within expressions
|     178 ANSI C forbids constructor expressions
|     141 ANSI C forbids conditional expr with only one void side

[...]

|      52 Use of ANSI string concatenation

I have always been mystified by these warnings as I don't think the
non-C front-ends will be built with anything other than GCC/gcc. My
opinion is that you should not care about them. They should be turned
off. 

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com


More information about the Gcc-patches mailing list