This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: export CC=g++ ; make configure ; make
- From: "Gabriel Dos Reis" <gdr at acm dot org>
- To: "Michael Elizabeth Chastain" <mec dot gnu at mindspring dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 13 Jul 2004 20:46:13 +0200 (CEST)
- Subject: Re: export CC=g++ ; make configure ; make
- References: <20040713183118.48FF34B104@berman.michael-chastain.com>
- Reply-to: gdr at acm dot org
Michael Elizabeth Chastain:
> Mark Mitchell wrote:
>> Nobody seemed to object with making modifications to the source so that
>> it could be compiled with a C++ compiler, which is a first step in any
>> event, so I think people should feel free to proceed with that.
>
> I have an opinion about whether to use C++ in gcc, but I thought it
> would be more interesting to just try it and see what happens.
>
> I grabbed a recent CVS version of gcc HEAD and did:
>
> export CC=g++
> ./configure
> make bootstrap
>
> This is on native i686-pc-linux-gnu, red hat enterprise linux 3.
> The bootstrap compiler is g++ 3.2.3-34-rh.
>
> It blew up here:
>
> g++ -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional
> -pedantic ./regex.c -o regex.o
> regex.c:2316: `pattern' was not declared in this scope
> regex.c:2316: `size' was not declared in this scope
> regex.c:2316: `syntax' was not declared in this scope
> regex.c:2316: `bufp' was not declared in this scope
> regex.c:2317: `reg_errcode_t byte_regex_compile' redeclared as different
> kind
> of symbol
> regex.c:414: previous declaration of `reg_errcode_t
> byte_regex_compile(const
> char*, unsigned int, long unsigned int, re_pattern_buffer*)'
And the compiler is working ? :-)
Thanks for these data. I hope to be in a position -- in a few
days -- to produce patches to gradually make this happen, unless
Paolo Bonzini beats me at it (and I won't complain!) :-).
-- Gaby