aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Baldwin <simonb@google.com>2007-06-08 16:17:01 +0000
committerSimon Baldwin <simonb@gcc.gnu.org>2007-06-08 16:17:01 +0000
commitc8e2516ccf14cbd0b22e8a2bd0685e120a32a1d1 (patch)
tree7d6ba026944d24bb04f368a6bdcd6b1d52b7c3e6
parent2c5cfd1fc63228d242b400b8d1e6c9683b522508 (diff)
downloadgcc-c8e2516ccf14cbd0b22e8a2bd0685e120a32a1d1.zip
gcc-c8e2516ccf14cbd0b22e8a2bd0685e120a32a1d1.tar.gz
gcc-c8e2516ccf14cbd0b22e8a2bd0685e120a32a1d1.tar.bz2
reg-stack.c (get_true_reg): Readability change.
* reg-stack.c (get_true_reg): Readability change. Moved default case label into direct switch statement scope. From-SVN: r125574
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/reg-stack.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9fd39e8..bcd8840 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2007-06-08 Simon Baldwin <simonb@google.com>
+ * reg-stack.c (get_true_reg): Readability change. Moved default case
+ label into direct switch statement scope.
+
+2007-06-08 Simon Baldwin <simonb@google.com>
+
* tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
in gcc_assert() with '==' comparison.
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index 8124013..a859a17 100644
--- a/gcc/reg-stack.c
+++ b/gcc/reg-stack.c
@@ -424,7 +424,6 @@ get_true_reg (rtx *pat)
GET_MODE (*pat));
*pat = FP_MODE_REG (REGNO (subreg) + regno_off,
GET_MODE (subreg));
- default:
return pat;
}
}
@@ -444,6 +443,9 @@ get_true_reg (rtx *pat)
return pat;
pat = & XEXP (*pat, 0);
break;
+
+ default:
+ return pat;
}
}