view javac.in @ 1335:2b1c03c1e9fa default tip

2009-01-26 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp (JavaThread::has_special_condition_for_native_trans): New method. * ports/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp: (CppInterpreter::native_entry): Correctly handle safepoints during post-call thread state transition.
author Gary Benson <gbenson@redhat.com>
date Mon, 26 Jan 2009 08:36:15 -0500
parents cedcd6958a6f
children
line wrap: on
line source

#!/bin/sh

case "$*" in
  *-bootclasspath*) ;;
  *) bcoption="-bootclasspath @SYSTEM_GCJ_DIR@/jre/lib/rt.jar"
esac

# Work around ecj's inability to handle duplicate command-line
# options.

NEW_ARGS="$@"

if echo "$@" | grep -q '\-source\ .*\-source\ '
then
  NEW_ARGS=`echo $NEW_ARGS | sed -e 's/-source\ *1\.[3456]//1'`
fi

if echo "$@" | grep -q '\-d\ .*\-d\ '
then
  NEW_ARGS=`echo $NEW_ARGS | sed -e 's/-d\ *[^\ ]*//1'`
fi

if echo "$@" | grep -q '\-encoding\ .*\-encoding\ '
then
  NEW_ARGS=`echo $NEW_ARGS | sed -e 's/-encoding\ *[^\ ]*//1'`
fi

if echo "$@" | grep -q '\-Werror'
then
  NEW_ARGS=`echo $NEW_ARGS | sed -e 's/-Werror//1'`
fi

if [ -e @abs_top_builddir@/native-ecj ] ; then
    @abs_top_builddir@/native-ecj -1.5 -nowarn $bcoption $NEW_ARGS ;
elif [ ! -z "@ECJ@" ] ; then
    @ECJ@ -1.5 -nowarn $bcoption $NEW_ARGS
else
    CLASSPATH=@ECJ_JAR@${CLASSPATH:+:}$CLASSPATH \
     @JAVA@ org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn $bcoption $NEW_ARGS
fi