From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1048 invoked by alias); 17 Apr 2005 21:13:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1026 invoked by uid 48); 17 Apr 2005 21:13:44 -0000 Date: Sun, 17 Apr 2005 21:13:00 -0000 Message-ID: <20050417211344.1025.qmail@sourceware.org> From: "ebotcazou at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050325041046.20633.gerald@pfeifer.com> References: <20050325041046.20633.gerald@pfeifer.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg02330.txt.bz2 List-Id: ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-17 21:13 ------- It's a target problem: FreeBSD overrides this line from sparc.h: #define CPP_SPEC "%(cpp_cpu) %(cpp_arch) %(cpp_endian) %(cpp_subtarget)" with this line from freebsd-spec.h: /* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC option `-posix', and PIC issues. */ #define FBSD_CPP_SPEC " \ %(cpp_cpu) \ %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE}" The missing bits are %(cpp_arch). Also note the bogus quotation in the spec. I think it's up to the FreeBSD maintainer to decide what is the best long-term fix. For 4.0.0, something like: #undef CPP_SPEC #define CPP_SPEC \ %(cpp_cpu) \ %(cpp_arch) \ %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE} in config/sparc/freebsd.h should be good enough. Gerald, if it works for you, I can approve it on principle for the 4.0 branch and I think you can ask Mask permission for installing it before 4.0RC2. -- What |Removed |Added ---------------------------------------------------------------------------- Component|bootstrap |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20633