This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.3 PATCH] Fix -Winline
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 11 Jun 2003 14:11:37 -0700
- Subject: Re: [3.3 PATCH] Fix -Winline
- References: <20030611093228.GT24872@sunsite.ms.mff.cuni.cz>
On Wed, 2003-06-11 at 02:32, Jakub Jelinek wrote:
> Hi!
>
> Following test results in:
> test.c:5: warning: inlining failed in call to `baz'
> test.h:12: warning: called from here
> (note test.h:12 instead of the expected test.c:12).
> This bug is not present on mainline because of the location changes,
> but I wonder if it is not worth fixing on 3.3 branch as well.
> The patch below fixes it for me and is moreless what the C++ frontend
> does in this case as well.
This is OK for the 3.3 branch. (It's a regression from the RTL inliner,
which didn't get confused like this.)
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com