parse.y (source_end_java_method): Remove custom encoding of line numbers for a functi...
authorRanjit Mathew <rmathew@hotmail.com>
Fri, 6 Dec 2002 20:10:33 +0000 (20:10 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 6 Dec 2002 20:10:33 +0000 (20:10 +0000)
2002-12-05  Ranjit Mathew <rmathew@hotmail.com>
        Andrew Haley <aph@redhat.com>

        * parse.y (source_end_java_method): Remove custom encoding of line
        numbers for a function decl before passing it to the back end.

Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r59892

gcc/java/ChangeLog
gcc/java/parse.y

index afe7b647fecd2bc2a147c7bfa9e874300efb336f..c6d0de1c1e33772088b003a900998f49aca79232 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-05  Ranjit Mathew <rmathew@hotmail.com>
+        Andrew Haley <aph@redhat.com>
+
+       * parse.y (source_end_java_method): Remove custom encoding of line
+       numbers for a function decl before passing it to the back end.
+
 2002-12-03  Andrew Haley  <aph@redhat.com>
 
        * class.c (make_class_data): New field, "chain".
index 97a0e6a0e27bed16a06b86e04accf5972ffc54c3..d457f1a046d870d51b8fb4caed2ad9e890f478cb 100644 (file)
@@ -7504,6 +7504,8 @@ source_end_java_method ()
       lineno = DECL_SOURCE_LINE_LAST (fndecl);
       expand_function_end (input_filename, lineno, 0);
 
+      DECL_SOURCE_LINE (fndecl) = DECL_SOURCE_LINE_FIRST (fndecl);
+
       /* Run the optimizers and output assembler code for this function. */
       rest_of_compilation (fndecl);
     }