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]

patch to fix __builtin_powi failure on apple-ppc-darwin


Following DejaGnu test fails when run using darwin's mixed mode (-mcpu=G5).
FAIL: gcc.dg/pr19402-2.c execution test


This is because word_mode is used in setting up the call to __builtin_powi. This results in
a 64bit value getting passed in two registers. Any suggestion of a more suitable mode is welcome. But
Pmode does the job and I used in this patch. Bootstrapped, dejagnu tested on apple-ppc-darwin.


OK for mainline?

- fariborz

ChangeLog:

2005-03-18 Fariborz Jahanian <fjahanian@apple.com>

        * builtins.c (expand_builtin_powi): Use Pmode in setting
        up the call.

Attachment: fsf-patch-4054728.txt
Description: Text document


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