aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-03 17:10:00 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-03 17:10:00 +0000
commitcdd25971bbe304b6bc3690f6b307c746e36aeb48 (patch)
tree58762dfad300d7a3f22d2d5f3e5fa65480253419 /contrib
parent242b82fb37800b65dbb0ce6c2afa442f0ee1b856 (diff)
Mainline merge as of 2003-02-03. Needed to make some changes to
adapt the branch to -Werror: ChangeLog.tree-ssa 2003-02-03 Diego Novillo <dnovillo@redhat.com> Fix warnings to allow bootstrapping with -Werror. * Makefile.in (c-semantics.o-warn): Add -Wno-error. (emit-rtl.o-warn): Likewise. (profile.o-warn): Likewise. (tree.o-warn): Likewise. (OBJS): Remove simple-break-elim.o and simple-goto-elim.o. * c-pretty-print.c (print_function_decl): Remove unused function. * bitmap.c (bitmap_last_set_bit): Initialize variable 'word'. * c-typeck.c (build_binary_op): Initialize variable 'type'. * combine.c (combine_simplify_rtx): Initialize variable 'reversed'. (make_compound_operation): Initialize variable 'i'. * dwarf2out.c (dwarf2out_finish): Initialize variable 'context'. * expr.c (store_constructor): Initialize variables 'lo', 'hi', 'startb' and 'endb'. (expand_expr): Initialize variable 'op0'. * fold-const.c (fold): Initialize variable 'tem'. * profile.c (branch_prob): Initialize variable 'prev_file_name'. * reload.c (find_equiv_reg): Initialize variables 'valtry and 'valueno'. * rtlanal.c (get_jump_table_offset): Initialize variable 'set'. * ssa-ccp.c (ssa_const_prop): Fix sign mismatch warning. * varasm.c (output_constant_def): Initialize variable 'defstr'. * gimplify.c (simplify_expr): Initialize variables 'saved_input_filename' and 'saved_lineno'. (simplify_compound_lval): Initialize variable 'code'. * tree-alias-ander.c (pta_bottom): De-ansify. (andersen_cleanup): Remove unused variables. (andersen_heap_assign): Mark argument lhs ATTRIBUTE_UNUSED. (pta_bottom): Remove unused function. (pta_get_ptsize): Remove unused function. cp/ChangeLog.tree-ssa 2003-02-03 Diego Novillo <dnovillo@redhat.com> * parser.c (cp_parser_asm_definition): Call finish_asm_stmt with 'volatile_p' directly. * typeck.c (build_binary_op): Initialize variable 'type'. * Make-lang.in (cp/tree.o-warn): Add -Wno-error. java/ChangeLog.tree-ssa 2003-02-03 Diego Novillo <dnovillo@redhat.com> * parse.y (qualify_ambiguous_name): Initialize variable 'decl'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@62325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/test_summary19
2 files changed, 17 insertions, 8 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 0cca22d2d3d..229ec5e47da 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-19 Alexandre Oliva <aoliva@redhat.com>
+
+ * test_summary (configflags): Only use the first match. Remove
+ excess space. Use sub instead of gsub where possible. Use `none'
+ if no configure flags were given.
+
2003-01-10 Loren J. Rittle <ljrittle@acm.org>
* test_summary (configflags): awk portability.
diff --git a/contrib/test_summary b/contrib/test_summary
index a56f581aa58..356d7b320ac 100755
--- a/contrib/test_summary
+++ b/contrib/test_summary
@@ -88,25 +88,28 @@ if $forcemail || $anychange; then :; else mailto=nobody; fi &&
cat ./config.status $files |
$AWK '
BEGIN {
- lang="";
+ lang=""; configflags = "";
address="gcc-testresults@gcc.gnu.org";
version="gcc";
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
-$0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure / {
+($0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure /) &&
+configflags == "" {
configflags = $0 " ";
- gsub(/^# /, "", configflags);
+ sub(/^# /, "", configflags);
srcdir = configflags;
- gsub(/\/configure .*/, "", srcdir);
+ sub(/\/configure .*/, "", srcdir);
printf "LAST_UPDATED: ";
system("tail -1 " srcdir "/LAST_UPDATED");
print "";
- gsub(/^[^ ]*\/configure /, "configure flags: ", configflags);
- gsub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags);
- gsub(/ --norecursion /, " ", configflags);
- gsub(/ $/, "", configflags);
+ sub(/^[^ ]*\/configure */, " ", configflags);
+ sub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags);
+ sub(/ --norecursion /, " ", configflags);
+ sub(/ $/, "", configflags);
+ sub(/^ *$/, " none", configflags);
+ configflags = "configure flags:" configflags;
}
/^Running target / { print ""; print; }
/^Target / { if (host != "") next; else host = $3; }