Commit 28baf121 by Andreas Schwab Committed by Andreas Schwab

profopt.exp (profopt-get-options): Set tool_flags for current_compiler_flags.

* lib/profopt.exp (profopt-get-options): Set tool_flags for
current_compiler_flags.  Fix typos.

From-SVN: r152068
parent 66f0e027
2009-09-23 Andreas Schwab <schwab@redhat.com>
* lib/profopt.exp (profopt-get-options): Set tool_flags for
current_compiler_flags. Fix typos.
2009-09-23 Yuri Gribov <tetra2005@googlemail.com> 2009-09-23 Yuri Gribov <tetra2005@googlemail.com>
* gcc.c-torture/execute/980526-2.c: Skip if sizeof (int) > 4. * gcc.c-torture/execute/980526-2.c: Skip if sizeof (int) > 4.
......
...@@ -177,6 +177,10 @@ proc profopt-get-options { src } { ...@@ -177,6 +177,10 @@ proc profopt-get-options { src } {
# dg-require-* sets dg-do-what. # dg-require-* sets dg-do-what.
upvar dg-do-what dg-do-what upvar dg-do-what dg-do-what
# current_compiler_flags reads tool_flags from the same stack frame
# as dg-extra-tool-flags
set tool_flags ""
set tmp [dg-get-options $src] set tmp [dg-get-options $src]
foreach op $tmp { foreach op $tmp {
set cmd [lindex $op 0] set cmd [lindex $op 0]
...@@ -188,13 +192,13 @@ proc profopt-get-options { src } { ...@@ -188,13 +192,13 @@ proc profopt-get-options { src } {
|| [string match "dg-require-*" $cmd] } { || [string match "dg-require-*" $cmd] } {
set status [catch "$op" errmsg] set status [catch "$op" errmsg]
if { $status != 0 } { if { $status != 0 } {
perror "src: $errmsg for \"$op\"\n" perror "$src: $errmsg for \"$op\"\n"
unresolved "$src: $errmsg for \"$op\"" unresolved "$src: $errmsg for \"$op\""
return return
} }
} else { } else {
# Ignore unrecognized dg- commands, but warn about them. # Ignore unrecognized dg- commands, but warn about them.
warning "compat.exp does not support $cmd" warning "profopt.exp does not support $cmd"
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment