X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=contrib%2Fwarn_summary;h=38e2c01ef8364a53c681cbc127f2436c69195752;hb=bd6ae1f30e2bb6b34884373e3cc58cb5ab1b92c8;hp=5b023a38e51fd3fdd8f61d6405104b8fa6c65c24;hpb=4623dc33c058964403ae3cd115f34cb9e8e2a45a;p=pf3gnuchains%2Fgcc-fork.git diff --git a/contrib/warn_summary b/contrib/warn_summary index 5b023a38e51..38e2c01ef83 100755 --- a/contrib/warn_summary +++ b/contrib/warn_summary @@ -3,7 +3,7 @@ # This script parses the output of a gcc bootstrap when using warning # flags and determines various statistics. # -# usage: warn_summary [-llf] [-s stage] [-nosub|-ch|-cp|-f|-java|-intl|-fixinc] +# usage: warn_summary [-llf] [-s stage] [-nosub|-ch|-cp|-f|-fortran|-java|-ada|-intl|-fixinc] # [-pass|-wpass] [file(s)] # # -llf @@ -19,8 +19,8 @@ # # -nosub # Only show warnings from the gcc top level directory. -# -ch|-cp|-f|-java|-intl|-fixinc -# Only show warnings from the specified language subdirectory. +# -ch|-cp|-f|-fortran|-java|-ada|-intl|-fixinc +# Only show warnings from the specified gcc subdirectory. # These override each other so only the last one passed takes effect. # # -pass @@ -57,7 +57,7 @@ subdirectoryFilter() else if test "$filter" = nosub ; then # Omit all subdirectories. - egrep -v '/gcc/(ch|cp|f|java|intl|fixinc)/' + egrep -v '/gcc/(ch|cp|f|fortran|java|ada|intl|fixinc)/' else # Pass through only subdir $filter. grep "/gcc/$filter/" @@ -107,7 +107,7 @@ keywordFilter() { s/`\(const\)'"'"'/"\1"/g; s/`\(noreturn\)'"'"'/"\1"/g; s/`\(longjmp\)'"'"' or `\(vfork\)'"'"'/"\1" or "\2"/g; - s/`'"[^']*'/"'`???'"'/g;"' + s/'"[\`'][^']*'/"'"???"/g; s/.*format, .* arg (arg [0-9][0-9]*)/??? format, ??? arg (arg ???)/; s/\([( ]\)arg [0-9][0-9]*\([) ]\)/\1arg ???\2/; s/"\([^"]*\)"/`\1'"'"'/g' @@ -127,12 +127,16 @@ s%^[^ ]*/\(include/\)%\1%; s%^[^ ]*/\(texinfo/\)%\1%; s%^[^ ]*/\(fastjar/\)%\1%; s%^[^ ]*/\(zlib/\)%\1%; +s%^[^ ]*/\(fixincludes/\)%\1%; +s%^[^ ]*/\(sim/\)%\1%; +s%^[^ ]*/\(newlib/\)%\1%; +s%^[^ ]*/\(mpfr/\)%\1%; s%^[^ ]*/\(lib[a-z23+-]*/\)%\1%;' } # Start the main section. -usage="usage: `basename $0` [-llf] [-s stage] [-nosub|-ch|-cp|-f|-java|-intl|-fixinc] [-pass|-wpass] [file(s)]" +usage="usage: `basename $0` [-llf] [-s stage] [-nosub|-ch|-cp|-f|-fortran|-java|-ada|-intl|-fixinc] [-pass|-wpass] [file(s)]" stageN=3 tmpfile=/tmp/tmp-warn.$$ @@ -158,7 +162,7 @@ while test -n "$1" ; do -s) if test -z "$2"; then echo $usage 1>&2; exit 1; fi stageN="$2"; shift 2 ;; -s*) stageN="`expr $1 : '-s\(.*\)'`" ; shift ;; - -nosub|-ch|-cp|-f|-java|-intl|-fixinc) filter="`expr $1 : '-\(.*\)'`" ; shift ;; + -nosub|-ch|-cp|-f|-fortran|-java|-ada|-intl|-fixinc) filter="`expr $1 : '-\(.*\)'`" ; shift ;; -pass) pass=1 ; shift ;; -wpass) pass=w ; shift ;; -*) echo $usage 1>&2 ; exit 1 ;;