aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2008-02-11 21:48:59 +1100
committerBen Elliston <bje@gnu.org>2008-02-11 21:48:59 +1100
commit94dbf2fc904ce3446aa513e41edac6a3edaf316d (patch)
tree27be14e084f67841eb33d3541e5d58e84ca0245d
parente06eead5f3975d3f43d5ed69bea5f85c6ed73998 (diff)
downloaddejagnu-94dbf2fc904ce3446aa513e41edac6a3edaf316d.zip
dejagnu-94dbf2fc904ce3446aa513e41edac6a3edaf316d.tar.gz
dejagnu-94dbf2fc904ce3446aa513e41edac6a3edaf316d.tar.bz2
Make switch commands in some baseboard files more robust. From H-P.
2008-02-11 Hans-Peter Nilsson <hp@axis.com> * baseboards/h8300.exp: Use -- before switch argument that may begin with "-". * baseboards/cris-sim.exp: Ditto.
-rw-r--r--ChangeLog6
-rw-r--r--baseboards/cris-sim.exp2
-rw-r--r--baseboards/h8300.exp2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 054934d..6a749b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-02-11 Hans-Peter Nilsson <hp@axis.com>
+ * baseboards/h8300.exp: Use -- before switch argument that may
+ begin with "-".
+ * baseboards/cris-sim.exp: Ditto.
+
+2008-02-11 Hans-Peter Nilsson <hp@axis.com>
+
* Makefile.am (baseboard_SCRIPTS): Add scripts cris-sim.exp,
iq2000-sim.exp and m32r-linux-sim.exp.
* Makefile.in: Regenerate.
diff --git a/baseboards/cris-sim.exp b/baseboards/cris-sim.exp
index 3c4768a..a25feec 100644
--- a/baseboards/cris-sim.exp
+++ b/baseboards/cris-sim.exp
@@ -29,7 +29,7 @@ foreach x $board_variant_list {
regsub -all "^\[ \t\]*" "$x" "" x;
regsub -all "\[ \t\]*$" "$x" "" x;
- switch $x {
+ switch -- $x {
# We force the arch to either pre-v32 (i.e. v10) or v32 for the
# "common" compatible subset, by letting the otherwise
# functionally equivalent gcc options "-march=..." and
diff --git a/baseboards/h8300.exp b/baseboards/h8300.exp
index 41260d2..fb9d858 100644
--- a/baseboards/h8300.exp
+++ b/baseboards/h8300.exp
@@ -67,7 +67,7 @@ foreach x $board_variant_list {
regsub -all "^\[ \t\]*" "$x" "" x
regsub -all "\[ \t\]*$" "$x" "" x
- switch $x {
+ switch -- $x {
"h" -
"-mh" { set linker_script "h8300h.ld" }