This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bootstrap failure on Solaris


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]