GCC's classpath/scripts/check_jni_methods.sh vs diff -b

Alexandre Oliva aoliva@redhat.com
Mon Oct 1 18:38:00 GMT 2007


diff -b doesn't completely ignore all whitespace, but rather only
differences as to the amount of whitespace; so whether whitespace is
present or not is regarded as a difference.

However, check_jni_methods.sh expects it to ignore a single trailing
blank vs no trailing whitespace whatsoever.  diff -B does, but I don't
think that's portable enough for us to use it.

So I've changed the regular expressions such that they'd be more
inclusive, instead of demanding and discarding whitespace before open
parentheses, and removed the -b then rendered unnecessary.

Without this patch, I couldn't build libjava on the development tree
that will eventually turn into Fedora 8, but it built on Fedora 7 just
fine.

Unless someone tells me not to, I'm going to check this into GCC trunk
tomorrow or so.  Bootstrapped on x86_64-linux-gnu.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-classpath-check-jni-methods.patch
Type: text/x-patch
Size: 2167 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20071001/7f5b1dc0/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Java-patches mailing list