This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure on Solaris
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Bootstrap failure on Solaris
- From: Roman Lechtchinsky <rl at cs dot tu-berlin dot de>
- Date: Sat, 23 Jun 2001 13:14:39 +0200 (MEST)
- cc: gcc at gcc dot gnu dot org
Hi,
> The call to gen_highpart with VOIDmode operand is bogus, as you need to
> know size of the value to extract upper n bits. We usually call gen_highpart
> with mode size equal to the half of the argument, but you can't bet on
> that.
Ok, shouldn't this be mentioned in the comments for gen_highpart and
gen_lowpart then? This is new, behaviour, obviously.
> Proper fix is probably to make Sparc call simplify_gen_subreg directly
> with subreg_highpart_offset having proper mode argument.
>
> In case it is dificult for you to fix that, I can do it if you send me
> the preprocessed testcase.
I'll try to fix that on Monday, shouldn't be too hard. There is a
define_split somewhere in sparc.md which calls gen_highpart for
CONST_INTs. Thank you for the explanation.
Bye
Roman