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] Fix __builtin_printf/all long double builtins


This patch fixes up the builtins for the long double math functions
and some other builtins (which can take a long double) to be named as
"function_name$LDBL128".

I could not decide if I should put the functions darwin_patch_builtin
and rs6000_darwin_long_double_builtins should be put into config/darwin.c
or somewhere else.


OK? Bootstrapped and tested on powerpc-darwin with no regressions.

There is still a couple of patches to the fortran front-end to fix
large_real_kind_2.F90.

Thanks,
Andrew Pinski

ChangeLog:

* config/darwin-protos.h (rs6000_darwin_long_double_builtins): Prototype. * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
* config/rs6000/rs6000.c (rs6000_init_builtins): Call SUBTARGET_INIT_BUILTINS
if it exists.
* config/darwin.c (darwin_patch_builtin): New function. (rs6000_darwin_long_double_builtins): New function.



Attachment: fixdarwinlongdouble.diff.txt
Description: Text document


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