Changes in directory llvm/tools/gccas:
gccas.sh updated: 1.1 -> 1.2 --- Log message: Two improvements: 1. Allow -- as well as - options (Bill Wendling) 2. Pass unrecognized options to opt and let it handle the errors, if any (Chris Lattner). --- Diffs of the changes: (+2 -2) gccas.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/tools/gccas/gccas.sh diff -u llvm/tools/gccas/gccas.sh:1.1 llvm/tools/gccas/gccas.sh:1.2 --- llvm/tools/gccas/gccas.sh:1.1 Fri Feb 2 09:50:58 2007 +++ llvm/tools/gccas/gccas.sh Fri Feb 2 15:49:27 2007 @@ -23,6 +23,7 @@ ASOPTS="" lastwasdasho=0 for option in "$@" ; do + option=`echo "$option" | sed 's/^--/-/'` case "$option" in -disable-opt) OPTOPTS="$OPTOPTS $option" @@ -47,8 +48,7 @@ # ignore ;; -*) - echo "gccas: Unrecognized option '$option'" - exit 1 + OPTOPTS="$OPTOPTS $option" ;; *) if test $lastwasdasho -eq 1 ; then _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits