[PATCH]: Remove filename and lineno from expand_function_end

Nathan Sidwell nathan@codesourcery.com
Thu Jun 19 10:16:00 GMT 2003


Nathan Sidwell wrote:
> Hi,
> this patch removes the filename and lineno parameters from
> expand_function_end. In all but two cases input_filename and input_lineno
> were passed. The two exceptions were in java, where zero was passed as
> the linenumber. Those two places I changed to set the input_location
> before calling. This looks safe, as both places are called at the
> end of file compilation.

Zack pointed out that the end_bindings parameter was also always zero,
so this patch removes that too, and is more defensive about clobbering
input_location in java.

booted & tested on i686-pc-linux-gnu, ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: function-end-2.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030619/c903e7a5/attachment.ksh>


More information about the Gcc-patches mailing list