This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Bootstrap with -Wmissing-prototypes doesn't work for C++
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Fri, 19 Aug 2011 12:24:08 -0700
- Subject: RE: Bootstrap with -Wmissing-prototypes doesn't work for C++
- References: <CAMe9rOqKLAhNGY0oHqEU8HKuP-N1SLKHOe=pykJS8ZR3JcF9aw@mail.gmail.com>
I'm confused. Since C++ treats the lack of a prototype as a hard error, what does it mean to make -Wmissing-prototypes useless?
________________________________________
From: gcc-owner@gcc.gnu.org [gcc-owner@gcc.gnu.org] On Behalf Of H.J. Lu [hjl.tools@gmail.com]
Sent: Friday, August 19, 2011 9:36 AM
To: GCC Development
Subject: Bootstrap with -Wmissing-prototypes doesn't work for C++
Since -Wmissing-prototypes doesn't work for C++, using
C++ to bootstrap GCC makes -Wmissing-prototypes useless.
You will see the -Wmissing-prototypes message in stage 1,
but you won't see it in stage3 2/3.
--
H.J.