This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Fix PR29719, ICE on expanding __builtin_lfloor/ceil


Richard Guenther <rguenther@suse.de> wrote:
> This fixes our inability to expand calls to __builtin_lfloorf on non-C99
> targets.  Even if the middle-end does not create calls to 
> __builtin_lfloorf in non-C99 mode, the user is still exposed to the
> builtin function.
> 
> This fixes expansion in case the target doesn't provide an optab expansion
> for lfloor/lceil by open-coding the operation using expand_fix and
> expand_real and compensation code.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu,
> 
> ok for mainline?  (I'd appreciate some testing on more weird targets
> to see if we always can expand_fix/expand_real there)

FYI, I've regtested your patch on x86 cross sh4-unknown-linux-gnu
and sh64-unknown-elf with no new failures.

Regards,
	kaz


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