[PATCH 2/2] Add patch for debugging compiler ICEs.

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri Sep 26 13:11:00 GMT 2014


Hi Maxim,

> Thank you all for your help!
>
> Done in r215633.

unfortuntely, the applied patch cannot have been tested properly and
breaks native i386-pc-solaris2.11 (and every other) bootstrap:

/vol/gcc/src/hg/trunk/local/gcc/gcc.c: In function 'attempt_status run_attempt(const char**, const char*, const char*, int, int)':
/vol/gcc/src/hg/trunk/local/gcc/gcc.c:6319:15: error: variable 'errmsg' set but not used [-Werror=unused-but-set-variable]
   const char *errmsg;
               ^
/vol/gcc/src/hg/trunk/local/gcc/gcc.c: At global scope:
/vol/gcc/src/hg/trunk/local/gcc/gcc.c:6412:33: error: unused parameter 'prog' [-Werror=unused-parameter]
 try_generate_repro (const char *prog, const char **argv)
                                 ^
Removing the errmsg variable and the prog parameter name fixes this.
I'm not sure if the errmsg is intentionally unused, though.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list