aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2016-10-26 10:33:22 -0600
committerJeff Law <law@gcc.gnu.org>2016-10-26 10:33:22 -0600
commit3bbe0b82a1adb4b8ebaeb64d501baec386c0463e (patch)
treec995fa8c254b37b9004b66766b0e3fb5449b498b
parentf2b2b01c5ddf2ee6d90b12823cf25dfa67b8ac30 (diff)
downloadgcc-3bbe0b82a1adb4b8ebaeb64d501baec386c0463e.zip
gcc-3bbe0b82a1adb4b8ebaeb64d501baec386c0463e.tar.gz
gcc-3bbe0b82a1adb4b8ebaeb64d501baec386c0463e.tar.bz2
arc.c (acr_print_operand): Adjust fallthru comment.
* config/arc/arc.c (acr_print_operand): Adjust fallthru comment. (check_if_valid_sleep_operand): Add missing fallthru comment. (arc_register_move_cost): Increase buffer size. * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru comment. * config/arc/predicates.md (move_str_operand): Avoid fallthru. From-SVN: r241585
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/arc/arc.c6
-rw-r--r--gcc/config/arc/arc.md1
-rw-r--r--gcc/config/arc/predicates.md1
4 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ce2693b..1aa397e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2016-10-26 Jeff Law <law@redhat.com>
+ * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
+ (check_if_valid_sleep_operand): Add missing fallthru comment.
+ (arc_register_move_cost): Increase buffer size.
+ * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
+ comment.
+ * config/arc/predicates.md (move_str_operand): Avoid fallthru.
+
* config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
comment. Add gcc_unreachable for path that should never happen.
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 21bba0c..0e7b63d 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -3459,7 +3459,8 @@ arc_print_operand (FILE *file, rtx x, int code)
fprintf (file, "0x%08lx", l);
break;
}
- /* Fall through. Let output_addr_const deal with it. */
+ /* FALLTHRU */
+ /* Let output_addr_const deal with it. */
default :
if (flag_pic
|| (GET_CODE (x) == CONST
@@ -6197,6 +6198,7 @@ check_if_valid_sleep_operand (rtx *operands, int opno)
case CONST_INT :
if( UNSIGNED_INT6 (INTVAL (operands[opno])))
return true;
+ /* FALLTHRU */
default:
fatal_error (input_location,
"operand for sleep instruction must be an unsigned 6 bit compile-time constant");
@@ -7284,7 +7286,7 @@ arc_register_move_cost (machine_mode,
int
arc_output_addsi (rtx *operands, bool cond_p, bool output_p)
{
- char format[32];
+ char format[35];
int match = operands_match_p (operands[0], operands[1]);
int match2 = operands_match_p (operands[0], operands[2]);
diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
index 3c531d9..e127d5b 100644
--- a/gcc/config/arc/arc.md
+++ b/gcc/config/arc/arc.md
@@ -4891,6 +4891,7 @@
case 4: return \"br%d0%* %1, %B2, %^%l3\";
case 8: if (!brcc_nolimm_operator (operands[0], VOIDmode))
return \"br%d0%* %1, %B2, %^%l3\";
+ /* FALLTHRU */
case 6: case 10:
case 12:return \"cmp%? %1, %B2\\n\\tb%d0%* %^%l3%&;br%d0 out of range\";
default: fprintf (stderr, \"unexpected length %d\\n\", get_attr_length (insn)); fflush (stderr); gcc_unreachable ();
diff --git a/gcc/config/arc/predicates.md b/gcc/config/arc/predicates.md
index f85f931..cb75dbc 100644
--- a/gcc/config/arc/predicates.md
+++ b/gcc/config/arc/predicates.md
@@ -266,6 +266,7 @@
case SYMBOL_REF :
if (SYMBOL_REF_TLS_MODEL (op))
return 0;
+ return 1;
case LABEL_REF :
return 1;
case CONST :