From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 3 14:15:10 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81BE71065679 for ; Sun, 3 Jul 2011 14:15:10 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 56ACC8FC0C for ; Sun, 3 Jul 2011 14:15:10 +0000 (UTC) Received: by pvg11 with SMTP id 11so5382836pvg.13 for ; Sun, 03 Jul 2011 07:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=jXlakOQZAwrovHcxSlrOUeiNsjiogJ834IFzVYqMiYE=; b=Z9dXqJr8+L2RPSGYddFo5v/y8Kn62uKXn8MmGOoAvMxD/zFFIZX6CTH5y8+P4to2Tg 7wai7aspRJaMh4vKQ6cDrnCXzAZCVb4YHgVjVaswVvJKBXHTK1/yjgj7KTeTkUWoT1g1 4tmf2QnCOz+oBiKIb465W0LLQJPol8xpsa9Ks= MIME-Version: 1.0 Received: by 10.68.32.137 with SMTP id j9mr6250632pbi.2.1309702509872; Sun, 03 Jul 2011 07:15:09 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.68.47.138 with HTTP; Sun, 3 Jul 2011 07:15:09 -0700 (PDT) In-Reply-To: References: Date: Sun, 3 Jul 2011 16:15:09 +0200 X-Google-Sender-Auth: DyOOJ14epVOMufAvFxBn1fiIMkM Message-ID: From: Robert Millan To: Benjamin Kaduk Content-Type: multipart/mixed; boundary=bcaec520ef19dcc6c204a72ae060 Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] Remove -nostdinc in aicasm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 14:15:10 -0000 --bcaec520ef19dcc6c204a72ae060 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/7/2 Robert Millan : > 2011/7/2 Benjamin Kaduk : >> There is a functional difference between '-nostdinc -I/usr/include -I.' = even >> when the standard include search path is just /usr/include -- the standa= rd >> include paths are always searched last (unless -nostdinc is given), even= if >> they are explicitly listed on the command line. =C2=A0If there are confl= icting >> definitions in /usr/local/foo.h and ./foo.h, this gimmick can be necessa= ry >> to pull in the correct version. =C2=A0(I've needed to do this when packa= ging >> software for the freebsd ports collection, though with /usr/local/includ= e >> replacing '.'.) > > In this case I'd rather be safe than sorry and use -iwithprefix or > -isystem `gcc --print-file-name=3D` on GCC only. I hope this patch is better. Please have a look. --=20 Robert Millan --bcaec520ef19dcc6c204a72ae060 Content-Type: text/plain; charset=US-ASCII; name="aicasm_nostdinc.diff" Content-Disposition: attachment; filename="aicasm_nostdinc.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gpo31lc10 SW5kZXg6IHN5cy9kZXYvYWljN3h4eC9haWNhc20vTWFrZWZpbGUKPT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lz L2Rldi9haWM3eHh4L2FpY2FzbS9NYWtlZmlsZQkocmV2aXNpb24gMjIzNzIxKQorKysgc3lzL2Rl di9haWM3eHh4L2FpY2FzbS9NYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtMjYsNiArMjYsMTMg QEAKIAogTk9TVERJTkM9CS1ub3N0ZGluYwogQ0ZMQUdTKz0gJHtOT1NURElOQ30gLUkvdXNyL2lu Y2x1ZGUgLUkuCisjIFRoaXMgaXMgbmVlZGVkIHdoZW4gdXNpbmcgdXBzdHJlYW0gR0NDICh3aG9z ZSA8c3RkZGVmLmg+LCBldGMsIGFyZQorIyBub3QgcmUtZW5hYmxlZCBieSAtSS91c3IvaW5jbGRl KS4KKy5pZiAke0NDOlQ6TWNsYW5nfSAhPSAiY2xhbmciCitHQ0NJTkNESVIhPQlnY2MgLS1wcmlu dC1maWxlLW5hbWU9CitDRkxBR1MrPQktSSR7R0NDSU5DRElSfS9pbmNsdWRlIC1JJHtHQ0NJTkNE SVJ9L2luY2x1ZGUtZml4ZWQKKy5lbmRpZgorCiAuaWZkZWYgTUFLRVNSQ1BBVEgKIENGTEFHUys9 IC1JJHtNQUtFU1JDUEFUSH0KIC5lbmRpZgo= --bcaec520ef19dcc6c204a72ae060--