diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-16 17:27:21 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-16 17:27:21 +0000 |
| commit | 8d72d71b2170ce5f6e6c5ca7263ccd66506c680a (patch) | |
| tree | 09edcb6a6c8df76b9cd826c9f51d1a326d73c98b | |
| parent | ef3ca57e94684a578fb2ddda4c26d3bf4f0497b7 (diff) | |
| download | ppe42-gcc-8d72d71b2170ce5f6e6c5ca7263ccd66506c680a.tar.gz ppe42-gcc-8d72d71b2170ce5f6e6c5ca7263ccd66506c680a.zip | |
* jcf-parse.c (set_source_filename): Set the decl source location
even when returning early.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108662 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/java/jcf-parse.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 9843b6cbedd..97e309c2c0b 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2005-12-16 Alexandre Oliva <aoliva@redhat.com> + + * jcf-parse.c (set_source_filename): Set the decl source location + even when returning early. + 2005-12-15 Tom Tromey <tromey@redhat.com> Andrew Haley <aph@redhat.com> diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 5d22f88d843..4bc12f4d98a 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -142,7 +142,13 @@ set_source_filename (JCF *jcf, int index) && strcmp (sfname, old_filename + old_len - new_len) == 0 && (old_filename[old_len - new_len - 1] == '/' || old_filename[old_len - new_len - 1] == '\\')) - return; + { +#ifndef USE_MAPPED_LOCATION + DECL_SOURCE_LOCATION (TYPE_NAME (current_class)) = input_location; + file_start_location = input_location; +#endif + return; + } } if (strchr (sfname, '/') == NULL && strchr (sfname, '\\') == NULL) { |

