From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22842 invoked by alias); 2 Jul 2002 12:56:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 22772 invoked by uid 71); 2 Jul 2002 12:56:05 -0000 Resent-Date: 2 Jul 2002 12:56:05 -0000 Resent-Message-ID: <20020702125605.22768.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, tim@kaspersky.com Received: (qmail 16682 invoked by uid 61); 2 Jul 2002 12:48:22 -0000 Message-Id: <20020702124822.16681.qmail@sources.redhat.com> Date: Tue, 02 Jul 2002 05:56:00 -0000 From: tim@kaspersky.com Reply-To: tim@kaspersky.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/7184: GCC 3.0.x and 3.1 failed to compile on HP-UX 11.11 X-SW-Source: 2002-07/txt/msg00055.txt.bz2 List-Id: >Number: 7184 >Category: bootstrap >Synopsis: GCC 3.0.x and 3.1 failed to compile on HP-UX 11.11 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jul 02 05:56:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Tim Yunaev >Release: GCC 3.0.x GCC 3.1 >Organization: >Environment: bash-2.05# uname -a HP-UX hpuxdev B.11.11 U 9000/785 2005081778 unlimited-user license >Description: If you download a precompiled GCC 3.1 and try to recompile any of GCC 3.x compilers, it will fail with an error complaining about an unknown type "size_t" in file libiberty/floatformat.c This error is caused by a system header stddef.h, which doesn't contain typedef related to size_t. >How-To-Repeat: Download the precompiled GCC 3.1 package for HPUX from HP or from http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.1/ unpack it, type "configure" and "gmake" >Fix: I replaced two lines with size_t: extern void *memcpy (void *s1, const void *s2, size_t n); extern void *memset (void *s, int c, size_t n); to extern void *memcpy (void *s1, const void *s2, unsigned int n); extern void *memcpy (void *s1, const void *s2, unsigned int n); (you must not just define the size_t type, because during the next pass it will use its own stddef.h, which contains a size_t declaration, and you'll get a type redifinition. >Release-Note: >Audit-Trail: >Unformatted: