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 to fix __builtin_powi failure on apple-ppc-darwin (revised)



On Mar 29, 2005, at 3:13 PM, Fariborz Jahanian wrote:
Now, since powi is new to gcc 4.0, and 4.0 isn't released, we don't yet
have a fixed abi for this, so it would be reasonable to change the
prototype of the powi functions in libgcc2.c. I rather assume this is

So you mean changing Wtype to 'int' and keeping my patch as is in setting up the call?
It is reasonable.


- fariborz

Here is the patch. It is identical with the last patch except that prototypes in libgcc2.c,h have been changed.
Bootstrapped and dejagnu tested on ppc-darwin.


OK for mainline?

- Thanks, fariborz

ChangeLog:

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

        * builtins.c (expand_builtin_powi): Fix mode of
        2nd argument to match that of SItype.
        * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
        2nd argument type to SItype.
        * libgcc2.c: Change prototype of __powi* functions to use
        SItype.

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




what Geoff meant when he told you to use "int" in a previous message in
this thread.



r~


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