From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4198 invoked by alias); 1 Dec 2001 19:48:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1643 invoked from network); 1 Dec 2001 19:47:27 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by hostedprojects.ges.redhat.com with SMTP; 1 Dec 2001 19:47:27 -0000 Received: from hiauly1.hia.nrc.ca (localhost [127.0.0.1]) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id fB1JlP7c006617; Sat, 1 Dec 2001 14:47:25 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) id fB1JlOgI006616; Sat, 1 Dec 2001 14:47:24 -0500 (EST) Message-Id: <200112011947.fB1JlOgI006616@hiauly1.hia.nrc.ca> Subject: Re: HPUX 11 "size_t" fixinc problems To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Sat, 01 Dec 2001 11:48:00 -0000 From: "John David Anglin" Cc: bkorb@veritas.com, dave.anglin@nrc.ca, gcc-patches@gcc.gnu.org In-Reply-To: from "John David Anglin" at Nov 29, 2001 03:46:30 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00015.txt.bz2 > > I guess the ``__va__list'' will protect my system. > > An underscore could be added before "size_t" in the select for additional > protection. I have run this through complete bootstraps and checks on hppa2.0w-hp-hpux11.00 and hppa2.0w-hp-hpux11.11 with no regressions. Dave -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605) 2001-12-01 John David Anglin * inclhack.def (AAA_time): Delete. (hpux_size_t): Revise select and fix for HP-UX 11.11. (hpux11_vsnprintf): Likewise. --- inclhack.def.orig Thu Sep 13 12:05:12 2001 +++ inclhack.def Fri Nov 30 15:53:00 2001 @@ -94,16 +94,6 @@ }; -/* - * Purge some HP-UX 11 files that are only broken after they are "fixed". - */ -fix = { - hackname = AAA_time; - files = sys/time.h; - select = '11.0 and later representation of ki time'; - replace; /* empty replacement -> no fixing the file */ -}; - /* And now, the real fixes, replacement text fixes first: */ /* @@ -1222,12 +1212,11 @@ */ fix = { hackname = hpux11_size_t; - mach = "*-hp-hpux*"; - select = "^#define __size_t size_t"; + mach = "*-hp-hpux11*"; + select = "__size_t"; c_fix = format; c_fix_arg = "_hpux_size_t"; - c_fix_arg = "__size_t"; test_text = "#define __size_t size_t\n" @@ -1264,17 +1253,17 @@ /* - * Fix hpux 11.00 broken vsnprintf declaration + * Fix hpux 11.00 broken vsnprintf declaration. */ fix = { hackname = hpux11_vsnprintf; files = stdio.h; - select = 'extern int vsnprintf\(char \*, __size_t, const char \*,' + select = 'extern int vsnprintf\(char \*, .*_size_t, const char \*,' ' __va__list\);'; c_fix = format; - c_fix_arg = "extern int vsnprintf(char *, __size_t, const char *," - " __va_list);"; + c_fix_arg = __va_list; + c_fix_arg = __va__list; test_text = 'extern int vsnprintf(char *, __size_t, const char *,' ' __va__list);';