[Bug driver/40251] Using the -V option makes the compiler to exit with 0 exit code on error

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Fri May 29 10:06:00 GMT 2009



------- Comment #2 from joseph at codesourcery dot com  2009-05-29 10:06 -------
Subject: Re:   New: Using the -V option makes the compiler to
 exit with 0 exit code on error

The pexecute interface returns a status value from waitpid from the driver 
executed with -V, and gcc.c then passes this to exit () without passing it 
through WEXITSTATUS or similar first, so it calls exit (256) which loses 
the error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40251



More information about the Gcc-bugs mailing list