This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/22600] Exit code should be different from 1 for internal compiler error
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2006 20:14:27 -0000
- Subject: [Bug driver/22600] Exit code should be different from 1 for internal compiler error
- References: <bug-22600-8581@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from reichelt at gcc dot gnu dot org 2006-03-22 20:14 -------
Fixed in mainline.
I.e. the C and C++ frontend now return "4" if an ICE occurred,
and a code less than 4 if a regular error occurred.
(The Fortran frontend has been doing this already.)
In order to see the exit code one has to pass the option
-pass-exit-codes to the driver (gcc, g++ or gfortran).
Unfortunatly the testsuite doesn't make use of the new exit codes yet.
This problem is tracked in PR 26813.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22600