This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][RFC] Small readability patch for mildly misplaced default label
- From: simonb at google dot com (Simon Baldwin)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Jun 2007 16:00:54 -0700 (PDT)
- Subject: [PATCH][RFC] Small readability patch for mildly misplaced default label
Readability patch; moves switch statement default case label so that it's
contained within the switch statement's scope directly.
Regression tested on i386 against the full testsuite for default languages.
gcc/ChangeLog
2007-06-07 Simon Baldwin <simonb@google.com>
* reg-stack.c (get_true_reg): Readability change. Moved default case
label into direct switch statement scope.
diff -Nrcp3 orig/gcc/gcc/reg-stack.c gcc/gcc/reg-stack.c
*** orig/gcc/gcc/reg-stack.c Mon Jun 4 09:49:07 2007
--- gcc/gcc/reg-stack.c Thu Jun 7 13:23:48 2007
*************** get_true_reg (rtx *pat)
*** 424,430 ****
GET_MODE (*pat));
*pat = FP_MODE_REG (REGNO (subreg) + regno_off,
GET_MODE (subreg));
- default:
return pat;
}
}
--- 424,429 ----
*************** get_true_reg (rtx *pat)
*** 444,449 ****
--- 443,451 ----
return pat;
pat = & XEXP (*pat, 0);
break;
+
+ default:
+ return pat;
}
}