This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Disregard disabled languages


Paolo Bonzini wrote:
> Mark Mitchell wrote:
>> I ran into build failures because, even though I said
>> --enable-languages=c,c++, the build system tried to build ada/ada.o
>> during the Stage 1 build.  It turned out that Ada was in
>> BOOT_LANGUAGES; this patch causes the configure script to completely
>> ignore disabled languages.
> 
> If you are using new-style bootstrap, you should not use make restage1,
> but rather do "make all-stage1" from the toplevel.  If this also fails,
> or if you are using old-style bootstrap, you found a bug but the patch
> is wrong.

Thanks, thats's a good hint!

The script I was using passed:

   --enable-languages=c,c++ --disable-bootstrap

to "contrib/gcc_build build".  I believe that gcc_build does a "make
bootstrap".  So, that's a weird operating mode.

> If I understand it correctly, you are removing the useful ability to
> type "make cc1plus" in the stage1 directory, even if the stage1 compiler
> is always configured only with C (and possibly Ada).

Yes, my patch removed that ability.  (I hadn't imagined such a brave
feature.)

I'm not sure what to do; it looks like I broke a feature, but removed a
bug.  Should I revert my patch?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]