[PATCH] Define TARGET_C99_FUNCTIONS on HPUX 11i
Roger Sayle
roger@eyesopen.com
Fri Jul 4 00:21:00 GMT 2003
The following patch fixes the failure of gcc.dg/builtins-20.c on
HP HPUX 11i. HPUX on the Itanium has both float and long double
forms of the mathematical functions, i.e. sqrtf and sqrtl.
This patch has been tested on ia64-hp-hpux11.22 with a full
bootstrap, configured with --enable-languages="c,c++,f77", and
regression tested with a top-level "make -k check" with no new
failures.
Ok for mainline?
2003-07-03 Roger Sayle <roger@eyesopen.com>
* config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
Index: config/ia64/hpux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/hpux.h,v
retrieving revision 1.28
diff -c -3 -p -r1.28 hpux.h
*** config/ia64/hpux.h 1 Jul 2003 05:45:17 -0000 1.28
--- config/ia64/hpux.h 3 Jul 2003 15:55:58 -0000
*************** do { \
*** 172,174 ****
--- 172,179 ----
#define TARGET_ASM_SELECT_RTX_SECTION ia64_rwreloc_select_rtx_section
#undef TARGET_SECTION_TYPE_FLAGS
#define TARGET_SECTION_TYPE_FLAGS ia64_rwreloc_section_type_flags
+
+ /* ia64 HPUX has the float and long double forms of math functions. */
+ #undef TARGET_C99_FUNCTIONS
+ #define TARGET_C99_FUNCTIONS 1
+
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833
More information about the Gcc-patches
mailing list