From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: gl_MANYWARN_ALL_GCC() leads to many spurious warnings Date: Sun, 08 Jul 2012 19:15:11 -0700 Organization: UCLA Computer Science Department Message-ID: <4FFA3EAF.9060409@cs.ucla.edu> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341800119 19224 80.91.229.3 (9 Jul 2012 02:15:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2012 02:15:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Samuel Bronson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 09 04:15:18 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 1So3VH-0006Kn-3H for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2012 04:15:11 +0200 Original-Received: from localhost ([::1]:42346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So3VF-0004MO-VO for ged-emacs-devel@m.gmane.org; Sun, 08 Jul 2012 22:15:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So3VD-0004KU-SU for emacs-devel@gnu.org; Sun, 08 Jul 2012 22:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So3VB-0001Z4-2Q for emacs-devel@gnu.org; Sun, 08 Jul 2012 22:15:07 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:39356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So3VA-0001UI-TH for emacs-devel@gnu.org; Sun, 08 Jul 2012 22:15:05 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id CC40039E800D; Sun, 8 Jul 2012 19:15:01 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id goxZ6KlGb-mO; Sun, 8 Jul 2012 19:15:01 -0700 (PDT) Original-Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7168D39E800A; Sun, 8 Jul 2012 19:15:01 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:151494 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? 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.