From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25946 invoked by alias); 26 Jan 2007 00:58:29 -0000 Received: (qmail 25935 invoked by uid 22791); 26 Jan 2007 00:58:28 -0000 X-Spam-Check-By: sourceware.org Received: from palrel13.hp.com (HELO palrel13.hp.com) (156.153.255.238) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 26 Jan 2007 00:58:19 +0000 Received: from smtp2.cup.hp.com (smtp2.cup.hp.com [15.4.32.118]) by palrel13.hp.com (Postfix) with ESMTP id 83B6F37335; Thu, 25 Jan 2007 16:58:16 -0800 (PST) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [16.89.92.85]) by smtp2.cup.hp.com (Postfix) with ESMTP id 404DD30C244; Fri, 26 Jan 2007 00:53:49 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3/8.9.3) id QAA17761; Thu, 25 Jan 2007 16:57:45 -0800 (PST) Date: Fri, 26 Jan 2007 00:58:00 -0000 From: Steve Ellcey Message-Id: <200701260057.QAA17761@hpsje.cup.hp.com> To: dave@hiauly1.hia.nrc.ca Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH, commited] PR other/30182, Fix __builtin_finite on HP-UX In-Reply-To: <200701252352.l0PNqYXn005481@hiauly1.hia.nrc.ca> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg02148.txt.bz2 > > I like TARGET_HPUX_11 in pa-hpux11.h. > > Oh, to mirror the way the other TARGET_HPUX macros are handled, the > macro should also be defined to 0 in pa.h. Here is the patch I am testing (on 11.11), does it look OK to you? Steve Ellcey sje@cup.hp.com 2007-01-25 Steve Ellcey PR other/30182 * config/pa/pa.h (TARGET_HPUX_11): New. * config/pa/pa-hpux11.h (TARGET_HPUX_11): New. * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11. Index: pa.h =================================================================== --- pa.h (revision 121157) +++ pa.h (working copy) @@ -84,6 +84,11 @@ extern int flag_pa_unix; #define TARGET_HPUX_10_10 0 #endif +/* HP-UX 11.* features (11.00, 11.11, 11.23, etc.) */ +#ifndef TARGET_HPUX_11 +#define TARGET_HPUX_11 0 +#endif + /* HP-UX 11i multibyte and UNIX 98 extensions. */ #ifndef TARGET_HPUX_11_11 #define TARGET_HPUX_11_11 0 Index: pa-hpux11.h =================================================================== --- pa-hpux11.h (revision 121157) +++ pa-hpux11.h (working copy) @@ -191,3 +191,6 @@ Boston, MA 02110-1301, USA. */ with secondary definition (weak) symbols. */ #undef TARGET_SOM_SDEF #define TARGET_SOM_SDEF 1 + +#undef TARGET_HPUX_11 +#define TARGET_HPUX_11 1 Index: pa.c =================================================================== --- pa.c (revision 121178) +++ pa.c (working copy) @@ -512,7 +512,7 @@ pa_init_builtins (void) implicit_built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] = implicit_built_in_decls[(int) BUILT_IN_PUTC_UNLOCKED]; #endif -#if TARGET_HPUX +#if TARGET_HPUX_11 if (built_in_decls [BUILT_IN_FINITE]) set_user_assembler_name (built_in_decls [BUILT_IN_FINITE], "_Isfinite"); if (built_in_decls [BUILT_IN_FINITEF])