This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tuples] Fix miscompilation of gimple.c
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Diego Novillo" <dnovillo at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Bill Maddox" <maddox at google dot com>
- Date: Wed, 5 Mar 2008 18:38:51 -0800
- Subject: Re: [tuples] Fix miscompilation of gimple.c
- References: <b798aad50803051832x3bea2300vc199639ca009b086@mail.gmail.com>
On Wed, Mar 5, 2008 at 6:32 PM, Diego Novillo <dnovillo@google.com> wrote:
> A void function should not return a value.
In C90/C99, it is valid to do return a(); if the return type is void
for both functions. This is not valid C++ though.
So is this really a bug in the code or just a bug in the warnings not
doing it for -Wc++compat (or what ever that option is)?
-- Pinski