From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5447 invoked by alias); 18 Nov 2004 20:07:01 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5329 invoked from network); 18 Nov 2004 20:06:36 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org with SMTP; 18 Nov 2004 20:06:36 -0000 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [10.1.127.39]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id iAIK5jso008329; Thu, 18 Nov 2004 20:05:45 GMT Received: from ZIPPY.Emea.Arm.com (george.emea.arm.com [10.1.255.81]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id UAA25958; Thu, 18 Nov 2004 20:06:26 GMT Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Dejagnu: use -isystem to include system header files. Date: Thu, 18 Nov 2004 20:07:00 -0000 Message-ID: <89A528FE6DB0FA44877BB2F05B8467180160F913@ZIPPY.Emea.Arm.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Richard Earnshaw" To: "Nick Clifton" , "Richard Earnshaw" Cc: , , X-SW-Source: 2004-11/txt/msg00381.txt.bz2 > > I think the gcc/include directory must be added implicitly=20 > from the -B > > option. It would appear that these add -isystem type include > > directories, so it might be just a matter of ordering the -B and > > -isystem options appropriately. >=20 > But - how would this help in the situation where -ansi and -pedantic=20 > have been specified as well. In those cases we do not want=20 > to get the=20 > limits.h file from newlib. The issue wasn't really about picking up gcc/include/limits.h over newlib/include/limits.h, it was about how we processed the newlib version when in strict ANSI mode. That should be handled correctly when we use -isystem (because that relaxes the rules). So I think we should try and get the search order back to what it was before, but when still using -isystem. R.