From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson Newsgroups: gmane.emacs.devel Subject: Re: gl_MANYWARN_ALL_GCC() leads to many spurious warnings Date: Mon, 9 Jul 2012 11:23:12 -0400 Message-ID: References: <4FF75B71.3040607@cs.ucla.edu> <707B3485-91B3-4420-888A-A02416D2D1C7@gmail.com> <4FF893CD.2050403@cs.ucla.edu> <66583BA3-F963-45E2-A543-18F242B3DD64@gmail.com> <4FF9378F.90207@cs.ucla.edu> <4FFA3EAF.9060409@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341847421 5870 80.91.229.3 (9 Jul 2012 15:23:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2012 15:23:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 09 17:23:39 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SoFoC-00078v-Sw for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2012 17:23:33 +0200 Original-Received: from localhost ([::1]:54963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoFoB-0007QL-Nj for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2012 11:23:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoFo3-00073U-LR for emacs-devel@gnu.org; Mon, 09 Jul 2012 11:23:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoFo1-0004uC-Py for emacs-devel@gnu.org; Mon, 09 Jul 2012 11:23:23 -0400 Original-Received: from mail-qc0-f169.google.com ([209.85.216.169]:61999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoFo1-0004t2-Iq for emacs-devel@gnu.org; Mon, 09 Jul 2012 11:23:21 -0400 Original-Received: by qcsd16 with SMTP id d16so7380675qcs.0 for ; Mon, 09 Jul 2012 08:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=r/h8xekOULC4Tm1AAynXnaxKRDykjR+GcNcXUFSwPho=; b=se7k7dbB4v0S9FGs/kI7jZjjqeLx9wMuAbk1PtsGV+d0Khk+5hWwWT0cdhcv9kEjEG vagoVQ6i0k8H+A/wJ+m5hhGlsBB5UGugKT0+49W/4OJT81LHzfxkZdKz5/n4RAB4LETf qBcWk8aMElXzh96KQcc9NaJCLAhEBmeA2evUuoFsBQ6QuID5uUUDiSyUFiczW9hra4/N ter7fteMothy6+x7vU0ei4sPwRWMFoKczVQRtQfvhWhM20MHtm8S3LNKg9u6b3+k0aT1 Yqs01/Jvvw49mQOdkdve+EHadGSi4z6uxoGtfDy0UIJMI+/j0i3TupBsvmgvV2KgLpCG pTCg== Original-Received: by 10.224.196.135 with SMTP id eg7mr916639qab.24.1341847398855; Mon, 09 Jul 2012 08:23:18 -0700 (PDT) Original-Received: from [192.168.0.18] (207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com. [207.172.123.137]) by mx.google.com with ESMTPS id cg7sm61989178qab.19.2012.07.09.08.23.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jul 2012 08:23:17 -0700 (PDT) In-Reply-To: <4FFA3EAF.9060409@cs.ucla.edu> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151505 Archived-At: On Jul 8, 2012, at 10:15 PM, Paul Eggert wrote: > On 07/08/2012 07:10 AM, Samuel Bronson wrote: > >> I don't really know how to go about investigating that, short of >> building GCC manually > > I wasn't thinking of anything that drastic -- just > compile with gcc -E instead of gcc -c and look > to see what happened to the pragmas, something like that. > > I just now tried with stock Ubuntu 12.04, i.e., > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, with > its bundled GNUstep libraries, and did not observe > either the regex.c -Wunused-macros warnings or the > -Wformat-security warnings. So this is not merely > a GCC 4.7.1 issue, for whatever that's worth. I > did see a passle of other warnings. Perhaps the > warnings that you're observing come up only after > you fix the ones I saw? Hmm. I'm beginning to suspect that the regex.c warnings are somehow related to my use of ccache... > I do want to focus on GCC 4.7.1, though. In my experience > older GCCs are rife with bugs in this area, and it's not > worthwhile to contort code to avoid them. Yes, of course; code should generally only be changed to accommodate such shortcomings when it doesn't involve gymnastics and doesn't create places for actual bugs to lurk.