From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18695 invoked by alias); 25 Aug 2015 13:44:54 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 18685 invoked by uid 89); 25 Aug 2015 13:44:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 25 Aug 2015 13:44:53 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B5DB4AC44; Tue, 25 Aug 2015 13:44:49 +0000 (UTC) From: Andreas Schwab To: Cc: , Subject: Re: Why pedantic? References: <55DC3DE1.5000605@redhat.com> <075A8681-8112-4F94-A6D2-765DC677B37C@dell.com> <9F3A813A-9CB4-4B8B-9D4F-7E687B95834C@dell.com> X-Yow: "DARK SHADOWS" is on!! Hey, I think the VAMPIRE forgot his UMBRELLA!! Date: Tue, 25 Aug 2015 13:44:00 -0000 In-Reply-To: <9F3A813A-9CB4-4B8B-9D4F-7E687B95834C@dell.com> (Paul Koning's message of "Tue, 25 Aug 2015 13:17:51 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-08/txt/msg00046.txt.bz2 writes: >> On Aug 25, 2015, at 9:05 AM, Andreas Schwab wrote: >> >> writes: >> >>> The problem is that the libiberty build, as is typical, uses header files from the host, and there is no reason to assume that all those headers on every supported host OS are pedantic-safe. >> >> GCC suppresses warnings in system headers by default. > > For cross-builds? Yes. The cross environment should be identical to the native one, apart from the different host. > Not in the ones we do. Is there some command line switch that needs to be passed to tell gcc that a particular include directory is for "system headers" and to apply that rule? -isystem Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."