Commit 996d0685 by Brendan Kehoe

update old-dejagnu proc to accompany jasons 12/7 change to g++.old-deja/old-deja.exp

From-SVN: r24222
parent dfb0fb1d
...@@ -119,11 +119,7 @@ proc old-dejagnu-stat { } { ...@@ -119,11 +119,7 @@ proc old-dejagnu-stat { } {
# Returns 0 if successful, 1 if their were any errors. # Returns 0 if successful, 1 if their were any errors.
# PROG is the full path name of the file to compile. # PROG is the full path name of the file to compile.
# #
# CFLAGS_VAR is the name of the global variable containing compiler flags. # CFLAGSX is the options to always pass to the compiler.
# We ignore this now.
#
# CFLAGS is the options to always pass to the compiler.
# This is also ignored.
# #
# DEFAULT_CFLAGS are additional options if the testcase has none. # DEFAULT_CFLAGS are additional options if the testcase has none.
# #
...@@ -137,7 +133,7 @@ proc old-dejagnu-stat { } { ...@@ -137,7 +133,7 @@ proc old-dejagnu-stat { } {
# #
# Think of "cflags" here as "compiler flags", not "C compiler flags". # Think of "cflags" here as "compiler flags", not "C compiler flags".
proc old-dejagnu { compiler prog cflagsx default_cflags libs } { proc old-dejagnu { compiler prog name cflagsx default_cflags libs } {
global verbose global verbose
global tool global tool
global subdir ;# eg: g++.old-dejagnu global subdir ;# eg: g++.old-dejagnu
...@@ -199,7 +195,8 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } { ...@@ -199,7 +195,8 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
# Other keywords: "Build don't link:", "Build don't run:", "Build then link:", # Other keywords: "Build don't link:", "Build don't run:", "Build then link:",
# "Additional sources: <file>.cc ..." # "Additional sources: <file>.cc ..."
set name "[file tail [file dirname $prog]]/[file tail $prog]" # $name is now passed in.
# set name "[file tail [file dirname $prog]]/[file tail $prog]"
set tmp [grep $prog "FIXME -.*"] set tmp [grep $prog "FIXME -.*"]
if ![string match "" $tmp] then { if ![string match "" $tmp] then {
......
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