aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJames Lemke <jwlemke@codesourcery.com>2012-10-11 17:39:26 +0000
committerJames Lemke <jwlemke@gcc.gnu.org>2012-10-11 17:39:26 +0000
commita1dc74f2bf02aa753939071fbd6d82f8db157e66 (patch)
tree10266a0312c5f477c4b0be8ff975bc780ee54f8c /gcc
parent5551b12c31a9de37316de9aa8174ad56645ac440 (diff)
downloadgcc-a1dc74f2bf02aa753939071fbd6d82f8db157e66.zip
gcc-a1dc74f2bf02aa753939071fbd6d82f8db157e66.tar.gz
gcc-a1dc74f2bf02aa753939071fbd6d82f8db157e66.tar.bz2
As suggested here:
http://gcc.gnu.org/ml/gcc-patches/2012-10/msg00283.html The following are committed as obvious / trivial: * config/rs6000/predicates.md (zero_fp_constant): Fix comment. * config/rs6000/rs6000.md (return_pred): Fix null return. * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation. (print_operand): Make FALLTHRU obvious. (output_cbranch): Correct comment. From-SVN: r192373
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/predicates.md1
-rw-r--r--gcc/config/rs6000/rs6000.c11
-rw-r--r--gcc/config/rs6000/rs6000.md2
4 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1509897..9ddad1b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2012-10-11 James Lemke <jwlemke@codesourcery.com>
+
+ * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
+ * config/rs6000/rs6000.md (return_pred): Fix null return.
+ * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
+ (print_operand): Make FALLTHRU obvious.
+ (output_cbranch): Correct comment.
+
2012-10-11 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.md (DWI): New mode attribute.
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 12b7527..99130ba 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -490,7 +490,6 @@
(match_test "op == CONST0_RTX (mode)")))
;; Return 1 if operand is 0.0.
-;; or non-special register register field no cr0
(define_predicate "zero_fp_constant"
(and (match_code "const_double")
(match_test "SCALAR_FLOAT_MODE_P (mode)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index ced0650..b6f3a9c 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -6751,7 +6751,7 @@ rs6000_emit_set_const (rtx dest, enum machine_mode mode,
switch (mode)
{
- case QImode:
+ case QImode:
case HImode:
if (dest == NULL)
dest = gen_reg_rtx (mode);
@@ -14990,11 +14990,10 @@ print_operand (FILE *file, rtx x, int code)
return;
case 'Q':
- if (TARGET_MFCRF)
- fputc (',', file);
- /* FALLTHRU */
- else
+ if (! TARGET_MFCRF)
return;
+ fputc (',', file);
+ /* FALLTHRU */
case 'R':
/* X is a CR register. Print the mask for `mtcrf'. */
@@ -15939,7 +15938,7 @@ rs6000_emit_cbranch (enum machine_mode mode, rtx operands[])
}
/* Return the string to output a conditional branch to LABEL, which is
- the operand number of the label, or -1 if the branch is really a
+ the operand template of the label, or NULL if the branch is really a
conditional return.
OP is the conditional expression. XEXP (OP, 0) is assumed to be a
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 4265cb6..96f4f6a 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -266,7 +266,7 @@
; Conditional returns.
(define_code_iterator any_return [return simple_return])
(define_code_attr return_pred [(return "direct_return ()")
- (simple_return "")])
+ (simple_return "1")])
(define_code_attr return_str [(return "") (simple_return "simple_")])
; Various instructions that come in SI and DI forms.