This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
Olivier Galibert <galibert at pobox dot com> writes:
| On Tue, Mar 04, 2003 at 03:52:57PM +0100, Gabriel Dos Reis wrote:
| > On this issue, in my opinion, we should proceed in steps.
| > I believe R.'s approach is a fair first step. Let's make the C++
| > front-end compilable by ISO C90 compilers. Then we'll tackle the next
| > issue in due time.
|
| But if the C++ front-end requires ISO C90, then you'll need the 4 (or
| 3, depending on how you count) passes bootstrap for java anyway.
I'm expectiting that we'll revisit the ISO C90 requirements for 3.5,
and that revision will be positive. Which will make C and C++
front-ends on equal footing. That will require less stages than
currently feared.
In the meantime, I'm convinced that R.'s proposal is a fair one.
This issue should not be a zero-or-one issue.
| Either you downgrade the C++ front-end all the way back to K&R or
| there is no need to bother since you'll have to do the first compile
| with the pass1 xgcc anyway.
|
| You have a limited number of possibilities here:
| - go 4-pass for java
| - downgrade the c++ frontend all the way to the C front-end required
| level, ie K&R
| - change the c++ frontend back to ISO C _and_ upgrade the requirements
| to ISO C
I believe it is reasonable to expect that some who wants to build a
C++ ou Java compiler has access to a compiler that supports C90. I
would like that expectation to apply to C90 compiler as well, but
we've been through this in the past and I do not believe we've new
arguments to convince C folks to raise the requirements.
-- Gaby