aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2008-09-29 10:20:21 -0600
committerJeff Law <law@gcc.gnu.org>2008-09-29 10:20:21 -0600
commit6b5676ce6e62245d2ecf954fefad122b5c47476d (patch)
tree31b5678a0d9371bebabd5e79ea70ec8bf5a3bb1f /gcc
parent696e45ba8e5f087acd814c4d56f21cbd040f6ddf (diff)
downloadgcc-6b5676ce6e62245d2ecf954fefad122b5c47476d.zip
gcc-6b5676ce6e62245d2ecf954fefad122b5c47476d.tar.gz
gcc-6b5676ce6e62245d2ecf954fefad122b5c47476d.tar.bz2
reload1.c (alter_reg): Add missing curly braces.
* reload1.c (alter_reg): Add missing curly braces. From-SVN: r140758
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/reload1.c24
2 files changed, 17 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0dea08b..7eff816 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-11 Jeff Law <law@redhat.com>
+
+ * reload1.c (alter_reg): Add missing curly braces.
+
2008-09-29 Michael J. Eager <eager@eagercon.com>
* config/rs6000/predicates.md (easy_fp_constant): Single FP consts
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 93457c1..684f859 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2187,17 +2187,19 @@ alter_reg (int i, int from_reg, bool dont_share_p)
stack_slot = x;
if (BYTES_BIG_ENDIAN)
- /* Cancel the big-endian correction done in assign_stack_local.
- Get the address of the beginning of the slot.
- This is so we can do a big-endian correction unconditionally
- below. */
- adjust = inherent_size - total_size;
- if (adjust)
- stack_slot
- = adjust_address_nv (x, mode_for_size (total_size
- * BITS_PER_UNIT,
- MODE_INT, 1),
- adjust);
+ {
+ /* Cancel the big-endian correction done in assign_stack_local.
+ Get the address of the beginning of the slot.
+ This is so we can do a big-endian correction unconditionally
+ below. */
+ adjust = inherent_size - total_size;
+ if (adjust)
+ stack_slot
+ = adjust_address_nv (x, mode_for_size (total_size
+ * BITS_PER_UNIT,
+ MODE_INT, 1),
+ adjust);
+ }
/* Nothing can alias this slot except this pseudo. */
set_mem_alias_set (x, alias_set);