[patch,target] Fix ppc-darwin issue with long double intrinsics (PR25477)
FX Coudert
fxcoudert@gmail.com
Sat Feb 23 10:57:00 GMT 2008
Thanks to Andrew's code, Mike's and Geoff's comments in the PR, help
from Uros, Paolo and Jack, and Dominique's machine for testing, here
is a patch for fixing this PR. It has three independent parts, joined
together because I regtested them together:
1. the target part, in gcc/config/darwin* and gcc/config/rs6000,
that takes care of setting correct assembler names for the builtins,
if needed
2. the Fortran front-end part, bordering on obvious, that makes
cpow{f,,l} builtins instead of simply considering them library
functions (otherwise, they don't benefit from the patch above)
3. the Fortran testsuite part, splitting testing of ERF/ERFC from
large_real_kind_2.F90 into its separate test case, which still fails
on Darwin at -O0 because Apple's PowerPC erfl() and ercl() are plain
useless.
The patch was bootstrapped on powerpc-apple-darwin9.2.0 with C and
Fortran, and regtested with both -m32 and -m64 for these same
languages. OK for trunk? (I need a Darwin maintainer approval for the
target stuff, and a Fortran maintainer for Fortran parts.)
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-longdouble-4.ChangeLog
Type: application/octet-stream
Size: 1105 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080223/a64e2fc6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-longdouble-4.diff
Type: application/octet-stream
Size: 11690 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080223/a64e2fc6/attachment-0001.obj>
More information about the Gcc
mailing list