Re: Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-31 Thread Diego Novillo
On 12-05-30 13:42 , DJ Delorie wrote: BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE +BUILD_CXXFLAGS = $(INTERNAL_CFLAGS) $(CXXFLAGS) -DGENERATOR_FILE Why are these so different? The rest seem OK Ah, I missed adding BUILD_CXXFLAGS to configure.ac. Thanks. OK to commit this amended

Re: Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-31 Thread DJ Delorie
OK to commit this amended patch? Ok. Do we have a build-with-c++ FAQ page anywhere? /me thinks it will be useful soon ;-)

Re: Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-31 Thread Diego Novillo
On 12-05-31 11:58 , DJ Delorie wrote: OK to commit this amended patch? Ok. Thanks. Committed. Do we have a build-with-c++ FAQ page anywhere? /me thinks it will be useful soon ;-) Not yet. If there are any FAQs, I propose adding them to http://gcc.gnu.org/wiki/cxx-conversion and then

Re: Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-30 Thread DJ Delorie
 BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE +BUILD_CXXFLAGS = $(INTERNAL_CFLAGS) $(CXXFLAGS) -DGENERATOR_FILE Why are these so different? The rest seem OK

Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-08 Thread Diego Novillo
Found this while testing the C++ conversion for vec.[ch] on the cxx-conversion branch. We do not build the build/*.o files with g++, so I was getting lots of syntax errors while compiling build/vec.o. I am not completely sure if the changes are correct. But it works for me. Tested on x86_64.

Re: Use C++ in COMPILER_FOR_BUILD if needed (issue6191056)

2012-05-08 Thread Diego Novillo
On 12-05-08 15:46 , Diego Novillo wrote: Found this while testing the C++ conversion for vec.[ch] on the cxx-conversion branch. We do not build the build/*.o files with g++, so I was getting lots of syntax errors while compiling build/vec.o. I am not completely sure if the changes are correct.