From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10474 invoked by alias); 19 Aug 2011 21:45:58 -0000 Received: (qmail 10464 invoked by uid 22791); 19 Aug 2011 21:45:57 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Aug 2011 21:45:42 +0000 Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id p7JLjfe3005305 for ; Fri, 19 Aug 2011 14:45:41 -0700 Received: from qwh5 (qwh5.prod.google.com [10.241.194.197]) by hpaq3.eem.corp.google.com with ESMTP id p7JLh1ZE016672 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 19 Aug 2011 14:45:39 -0700 Received: by qwh5 with SMTP id 5so2326922qwh.6 for ; Fri, 19 Aug 2011 14:45:39 -0700 (PDT) Received: by 10.224.208.193 with SMTP id gd1mr268310qab.227.1313790339289; Fri, 19 Aug 2011 14:45:39 -0700 (PDT) Received: by 10.224.208.193 with SMTP id gd1mr268299qab.227.1313790338919; Fri, 19 Aug 2011 14:45:38 -0700 (PDT) Received: from coign.google.com ([66.205.204.238]) by mx.google.com with ESMTPS id ej7sm5189145qab.2.2011.08.19.14.45.37 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 14:45:38 -0700 (PDT) From: Ian Lance Taylor To: "H.J. Lu" Cc: Joe Buck , GCC Development Subject: Re: Bootstrap with -Wmissing-prototypes doesn't work for C++ References: <59662D5BB74CD84D9FA8E6491ADB51A7DEAE4D4D@US01WXMBX1.internal.synopsys.com> Date: Fri, 19 Aug 2011 21:45:00 -0000 In-Reply-To: (H. J. Lu's message of "Fri, 19 Aug 2011 12:34:20 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg00355.txt.bz2 "H.J. Lu" writes: > [hjl@gnu-33 gcc]$ cat x.c > int > foo (int x) > { > return x; > } > [hjl@gnu-33 gcc]$ ./xgcc -B./ -S -O -Wmissing-prototypes x.c > x.c:2:1: warning: no previous prototype for =E2=80=98foo=E2=80=99 [-Wmiss= ing-prototypes] > [hjl@gnu-33 gcc]$ ./g++ -B./ -S -O -Wmissing-prototypes x.c > cc1plus: warning: command line option =E2=80=98-Wmissing-prototypes=E2=80= =99 is valid > for Ada/AdaWhy/C/ObjC but not for C++ [enabled by default] > [hjl@gnu-33 gcc]$ ./g++ -B./ -S -O x.c > [hjl@gnu-33 gcc]$ > > Is this a bug? This is a minor missing feature, yes. We ought to implement -Wmissing-prototypes for C++. Ian