This is the mail archive of the 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: Should we compile rtl when parsing finds error?


    I picked up Richard's fix to rest_of_compilation() which will stop
compilation if we've had errors.  However, I still found a case where
we will get an ICE when g++ compiles a file and there are many, many
errors.  If you try and compile from libcsup++ without the
proper headers g++ will still try and compile the  file even though
have been parsing errors.  This will result in an eventual ICE because
we are compiling illegal rtl.  I looked into this and what happens is
that expand_body() in cp/semantics.c gets called before
and in that routine, we do try and compile rtl.  I was wondering whether

or not we needed a check for errorcount at the top of that function too.

    I also tried to build a compiler that had ENABLE_CHECKING turned off

so that when internal_error() was called I would get "...... confused by
errors, bailing out..."  insead of the ICE.  I tried to turn off
by doing  a "--disable-checking" on my configure line.   However, when I

tried to compile, I got "Internal compiler error: Error
reporting routines
re-entered" but I didn't explore it further.  Did I turn off

    I'm building off of MAIN and the compiler I'm building is for IA-64.


Reva Cuthbertson

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