Browse Source

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.
dejagnu-1.5
Ben Elliston 19 years ago
parent
commit
94dbf2fc90
  1. 6
      ChangeLog
  2. 2
      baseboards/cris-sim.exp
  3. 2
      baseboards/h8300.exp

6
ChangeLog

@ -1,3 +1,9 @@
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,

2
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

2
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" }

Loading…
Cancel
Save