This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [vta,trunk?] inlining gen_rtvec_v into gen_rtvec warns
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Alexandre Oliva" <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Aug 2008 10:17:17 +0200
- Subject: Re: [vta,trunk?] inlining gen_rtvec_v into gen_rtvec warns
- References: <or63q6kc1x.fsf@oliva.athome.lsd.ic.unicamp.br>
2008/8/12 Alexandre Oliva <aoliva@redhat.com>:
> Bootstrapping with -O3 on x86/64? causes gen_rtvec_v() to be inlined
> into gen_rtvec(). This in turns causes the test for n == 0, already
> performed in the caller, to be warned about, since it's always false.
> I don't think it is appropriate to warn in this case, but this patches
> permits bootstrap with -O3 to succeed.
>
> I'm installing it on the branch. Should I install it on the trunk as
> well?
Why not fix gen_rtvec instead to not allocate the temporary array
on the stack?
Richard.