Combine known_cond() may create subreg of const_int

Andreas Tobler toa@pop.agri.ch
Thu Feb 21 03:56:00 GMT 2002


>On Wed, Feb 20, 2002 at 06:25:51PM -0300, Alexandre Oliva wrote:
>> 	* combine.c (do_SUBST): Sanity check substitutions of
>> 	CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
>> 	(subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
>> 	CONST_INT into its operand.
>> 	(known_cond): Likewise, for ZERO_EXTEND.
>> 	* simplify-rtx.c (simplify_unary_operation): Fix condition to
>> 	allow for simplification of wide modes.  Reject CONST_INTs in
>> 	ZERO_EXTEND when their actual mode is not given.
>
>Ok.

Not for me on solaris2.6:

./xgcc -B./ -B/home/a_tobler/local/sparc-sun-solaris2.6/bin/ -isystem /
home/a_to
bler/local/sparc-sun-solaris2.6/include -isystem /home/a_tobler/local/
sparc-sun-
solaris2.6/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -
Wstrict-protot
ypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -
DHAVE_GTHR_DEFAULT -DIN
_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/home/a_tobler/cvs/gcc/gcc -
I/home/
a_tobler/cvs/gcc/gcc/. -I/home/a_tobler/cvs/gcc/gcc/config -I/home/
a_tobler/cvs/
gcc/gcc/../include -fexceptions -c /home/a_tobler/cvs/gcc/gcc/unwind-
dw2.c -o li
bgcc/./unwind-dw2.o
/home/a_tobler/cvs/gcc/gcc/unwind-dw2.c: In function `extract_cie_info':
/home/a_tobler/cvs/gcc/gcc/unwind-dw2.c:290: Internal compiler error in
do_SUBST
, at combine.c:439
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/var/tmp/a_tobler/objdir/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/var/tmp/a_tobler/objdir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/a_tobler/objdir/gcc'
make: *** [bootstrap] Error 2
[vw_andreas_main] a_tobler@crius:/home/a_tobler/cvs/objdir>

Thanks,

Andreas



More information about the Gcc-patches mailing list