From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21685 invoked by alias); 8 Apr 2002 14:06:02 -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 21606 invoked by uid 71); 8 Apr 2002 14:06:00 -0000 Resent-Date: 8 Apr 2002 14:06:00 -0000 Resent-Message-ID: <20020408140600.21604.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, jeroen.dobbelaere@acunia.com Received:(qmail 21083 invoked by uid 61); 8 Apr 2002 14:05:57 -0000 Message-Id:<20020408140557.21079.qmail@sources.redhat.com> Date: Mon, 08 Apr 2002 07:06:00 -0000 From: jeroen.dobbelaere@acunia.com Reply-To: jeroen.dobbelaere@acunia.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/6228: [3.1 regression] _GNU_SOURCE not defined for arm-linux target X-SW-Source: 2002-04/txt/msg00478.txt.bz2 List-Id: >Number: 6228 >Category: target >Synopsis: [3.1 regression] _GNU_SOURCE not defined for arm-linux target >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Apr 08 07:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: jeroen.dobbelaere@acunia.com >Release: 3.1 20020408 (prerelease) >Organization: >Environment: System: Linux xingu-07 2.4.16-rmk1-xng1 #45 Mon Apr 8 11:19:11 CEST 2002 armv5l unknown Architecture: armv5l host: armv5l-unknown-linux-gnu build: armv5l-unknown-linux-gnu target: armv5l-unknown-linux-gnu configured with: ../gcc-3.1.0-pre20020408/configure --prefix=/tmp/gcc310pre --with-cpu=xscale --enable-languages=c,c++ >Description: C++ tests fail on arm because '_GNU_SOURCE' is not defined. This is a regression with respect to gcc-3.0.4 build compiler for c,c++; execute the build tests. libstdc++ tests will look like : Running /usr/src/build/tmp/gcc-3.1.0-pre20020408/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp ... FAIL: 17_intro/header_cstdio.cc (test for excess errors) WARNING: 17_intro/header_cstdio.cc compilation failed to produce executable FAIL: 17_intro/header_cstdlib.cc (test for excess errors) WARNING: 17_intro/header_cstdlib.cc compilation failed to produce executable FAIL: 17_intro/header_cwchar.cc (test for excess errors) WARNING: 17_intro/header_cwchar.cc compilation failed to produce executable FAIL: 17_intro/header_fstream.cc (test for excess errors) WARNING: 17_intro/header_fstream.cc compilation failed to produce executable FAIL: 17_intro/header_iomanip.cc (test for excess errors) WARNING: 17_intro/header_iomanip.cc compilation failed to produce executable FAIL: 17_intro/header_ios.cc (test for excess errors) WARNING: 17_intro/header_ios.cc compilation failed to produce executable FAIL: 17_intro/header_iosfwd.cc (test for excess errors) WARNING: 17_intro/header_iosfwd.cc compilation failed to produce executable FAIL: 17_intro/header_iostream.cc (test for excess errors) WARNING: 17_intro/header_iostream.cc compilation failed to produce executable FAIL: 17_intro/header_istream.cc (test for excess errors) WARNING: 17_intro/header_istream.cc compilation failed to produce executable >How-To-Repeat: Get an arm system, build your compiler for c,c++. make the test suite. >Fix: Add /* The GNU C++ standard library requires that these macros be defined. */ #undef CPLUSPLUS_CPP_SPEC #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" to 'gcc/arm/linux-elf.h' (see ) >Release-Note: >Audit-Trail: >Unformatted: