[java patch]: Reoganize DECL_SOURCE_LINE_FIRST amd DECL_SOURCE_LINE_LAST

Nathan Sidwell nathan@codesourcery.com
Sat May 10 15:46:00 GMT 2003


Hi,
in my effort to canonicalize location handling I discovered that the
java front end wedges two line numbers into DECL_SOURCE_LINE during
the parsing phase. This patch eliminates that by adding another field
to lang_decl_function. The last-line info is used in two places
-- to issue a missing return error, and to set the location for the
function epilogue. I tried ways of implicitly determining the location
but those failed, and this seemed the most straight forward way.

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: line-decl-line-java.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030510/9d09a23d/attachment.ksh>


More information about the Java-patches mailing list