summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-10 15:18:26 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-10 15:18:26 +0000
commita15f56f05e3cb37a940aede28e22099aa77ef371 (patch)
treefb6bf64daabbd6bab6f4dd697049c9463972cba2 /gcc
parent5b3ba4069c0328e29667adb19a51f7ea387551bf (diff)
downloadgcc-a15f56f05e3cb37a940aede28e22099aa77ef371.tar.gz
Fix -Wmisleading-indentation warning in ifcvt.c
../../../src/gcc/ifcvt.c: In function ‘bool noce_try_inverse_constants(noce_if_info*)’: ../../../src/gcc/ifcvt.c:1233:2: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] seq = end_ifcvt_sequence (if_info); ^~~ ../../../src/gcc/ifcvt.c:1230:7: note: ...this ‘if’ clause, but it is not if (target != if_info->x) ^~ due to the lack of an outdent after the conditional at lines 1230-1: 1220 if (target) 1221 { 1222 rtx_insn *seq = get_insns (); 1223 1224 if (!seq) 1225 { 1226 end_sequence (); 1227 return false; 1228 } 1229 >>1230 if (target != if_info->x) >>1231 noce_emit_move_insn (if_info->x, target); 1232 >>1233 seq = end_ifcvt_sequence (if_info); 1234 1235 if (!seq) 1236 return false; 1237 1238 emit_insn_before_setloc (seq, if_info->jump, 1239 INSN_LOCATION (if_info->insn_a)); 1240 return true; 1241 } gcc/ChangeLog: * ifcvt.c (noce_try_inverse_constants): Fix indentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231521 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/ifcvt.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 14a61f13b01..86f365f8ac7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2015-12-10 David Malcolm <dmalcolm@redhat.com>
+ * ifcvt.c (noce_try_inverse_constants): Fix indentation.
+
+2015-12-10 David Malcolm <dmalcolm@redhat.com>
+
* regrename.c (scan_rtx_address): Fix indentation.
2015-12-10 David Malcolm <dmalcolm@redhat.com>
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index d474b3ba493..7fb1dabf1d2 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -1230,14 +1230,14 @@ noce_try_inverse_constants (struct noce_if_info *if_info)
if (target != if_info->x)
noce_emit_move_insn (if_info->x, target);
- seq = end_ifcvt_sequence (if_info);
+ seq = end_ifcvt_sequence (if_info);
- if (!seq)
- return false;
+ if (!seq)
+ return false;
- emit_insn_before_setloc (seq, if_info->jump,
- INSN_LOCATION (if_info->insn_a));
- return true;
+ emit_insn_before_setloc (seq, if_info->jump,
+ INSN_LOCATION (if_info->insn_a));
+ return true;
}
end_sequence ();