diff options
author | Tom Tromey <tromey@redhat.com> | 2001-12-29 04:31:10 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-29 04:31:10 +0000 |
commit | dab722ee86e26ab588544b20dc1e6dad12a23f45 (patch) | |
tree | bbab815104e4081b062df510f66c8fe1a6330f55 | |
parent | 0b622c4a1e70e22e4d296005c3f3703ec1c12897 (diff) | |
download | gcc-dab722ee86e26ab588544b20dc1e6dad12a23f45.zip gcc-dab722ee86e26ab588544b20dc1e6dad12a23f45.tar.gz gcc-dab722ee86e26ab588544b20dc1e6dad12a23f45.tar.bz2 |
gen-table.pl: Don't process characters after \uffff.
* gen-table.pl: Don't process characters after \uffff. Added
comment pointing to input file.
From-SVN: r48359
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/gen-table.pl | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b5b34bc..74bffb6 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2001-12-28 Tom Tromey <tromey@redhat.com> + + * gen-table.pl: Don't process characters after \uffff. Added + comment pointing to input file. + 2001-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * gen-table.pl: Const-ify output. Document the location of a diff --git a/gcc/java/gen-table.pl b/gcc/java/gen-table.pl index cb0a870..98d003c 100644 --- a/gcc/java/gen-table.pl +++ b/gcc/java/gen-table.pl @@ -1,6 +1,6 @@ #! /usr/bin/perl -# Copyright (C) 2000 Free Software Foundation +# Copyright (C) 2000, 2001 Free Software Foundation # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,9 +20,13 @@ # gen-table.pl - Generate tables for gcj from Unicode data. # Usage: perl gen-table.pl DATA-FILE # -# A suitable DATA-FILE is available at: -# ftp://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt - +# You can find the Unicode data file here: +# ftp://www.unicode.org/Public/3.0-Update1/UnicodeData-3.0.1.txt +# Please update this URL when this program is used with a more +# recent version of the table. Note that this table cannot be +# distributed with gcc. +# This program should not be re-run indiscriminately. Care must be +# taken that what it generates is in sync with the Java specification. # Names of fields in Unicode data table. $CODE = 0; @@ -80,6 +84,7 @@ while (<INPUT>) } $code = hex ($fields[$CODE]); + last if $code > 0xffff; if ($code > $last_code + 1) { # Found a gap. |