"Gary" == Gary Thomas <gary@mlbassoc.com> writes:
Gary> I'm experimenting with GCC-3.3. This version is starting to be
Gary> *really* picky about some things. In particular, the eCos Makefile(s)
Gary> use XX-gcc to compile either C or C++ source files, often with
Gary> some C++ only flags thrown in. This leads to warnings like this:
Gary> cc1: warning: "-Woverloaded-virtual" is valid for C++ but not for C/ObjC
Gary> cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
Gary> cc1: warning: "-fvtable-gc" is valid for C++ but not for C/ObjC
Gary> I'd like to get rid of these and the best way [I think] would be
Gary> to change the rules so that C files are built using XXX-gcc using
Gary> C flags and C++ files are built using XXX-g++ with C++ flags. I
Gary> also think that over time, the compiler may decide that this is no
Gary> longer just a warning, but an error, so thinking about this now will
Gary> save us in the future.
Gary> Is there any [good] way to handle this? Can the Makefile generator
Gary> (CDL machine) be set up to handle both C and C++ (probably CXXFLAGS)?