aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2012-10-19 19:10:03 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2012-10-19 19:10:03 +0000
commitad1a0853e6c4b8a8a62aaec5d349bb240bd72255 (patch)
treeb1169cdb2e369d59a4fdc2661831f4a810066dbe /gcc
parent704fc8502fc5ac926349d11d4b6622493e4492fb (diff)
downloadgcc-ad1a0853e6c4b8a8a62aaec5d349bb240bd72255.zip
gcc-ad1a0853e6c4b8a8a62aaec5d349bb240bd72255.tar.gz
gcc-ad1a0853e6c4b8a8a62aaec5d349bb240bd72255.tar.bz2
rs6000-cpus.def (POWERPC_MASKS): Don't assume OPTION_MASK_STRICT_ALIGN is defined.
[gcc] 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com> Dominique Dhumieres <dominiq@lps.ens.fr> * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume OPTION_MASK_STRICT_ALIGN is defined. (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined, define this to 0 for the 3 ports that use it. * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do check for ports not having -mstrict-align here, move test to rs6000-cpus.def. (MASK_STRICT_ALIGN): Likewise. (rs6000_debug_reg_global): Print out correct target flag words if -mdebug=reg. [libobjc] 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com> * encoding.c (TARGET_VSX): Provide definitions based on the current compilation options, and not based off the target options structure. (TARGET_ALTIVEC): Likewise. (TARGET_64BIT): Likewise. Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr> From-SVN: r192623
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog15
-rw-r--r--gcc/config/rs6000/rs6000-cpus.def13
-rw-r--r--gcc/config/rs6000/rs6000.c11
3 files changed, 31 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e87fad..6e44c8a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,18 @@
+2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
+ Dominique Dhumieres <dominiq@lps.ens.fr>
+
+ * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
+ OPTION_MASK_STRICT_ALIGN is defined.
+ (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
+ define this to 0 for the 3 ports that use it.
+
+ * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
+ check for ports not having -mstrict-align here, move test to
+ rs6000-cpus.def.
+ (MASK_STRICT_ALIGN): Likewise.
+ (rs6000_debug_reg_global): Print out correct target flag words if
+ -mdebug=reg.
+
2012-10-19 Marek Polacek <polacek@redhat.com>
PR middle-end/54945
diff --git a/gcc/config/rs6000/rs6000-cpus.def b/gcc/config/rs6000/rs6000-cpus.def
index fd43146..a0aadf1 100644
--- a/gcc/config/rs6000/rs6000-cpus.def
+++ b/gcc/config/rs6000/rs6000-cpus.def
@@ -46,6 +46,17 @@
#define POWERPC_7400_MASK (OPTION_MASK_PPC_GFXOPT | OPTION_MASK_ALTIVEC)
+/* Deal with ports that do not have -mstrict-align. */
+#ifdef OPTION_MASK_STRICT_ALIGN
+#define OPTION_MASK_STRICT_ALIGN_OPTIONAL OPTION_MASK_STRICT_ALIGN
+#else
+#define OPTION_MASK_STRICT_ALIGN 0
+#define OPTION_MASK_STRICT_ALIGN_OPTIONAL 0
+#ifndef MASK_STRICT_ALIGN
+#define MASK_STRICT_ALIGN 0
+#endif
+#endif
+
/* Mask of all options to set the default isa flags based on -mcpu=<xxx>. */
#define POWERPC_MASKS (OPTION_MASK_ALTIVEC \
| OPTION_MASK_CMPB \
@@ -64,7 +75,7 @@
| OPTION_MASK_PPC_GPOPT \
| OPTION_MASK_RECIP_PRECISION \
| OPTION_MASK_SOFT_FLOAT \
- | OPTION_MASK_STRICT_ALIGN \
+ | OPTION_MASK_STRICT_ALIGN_OPTIONAL \
| OPTION_MASK_VSX)
#endif
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 81dc6f3..02309d5 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1121,10 +1121,6 @@ static const struct attribute_spec rs6000_attribute_table[] =
{ NULL, 0, 0, false, false, false, NULL, false }
};
-#ifndef OPTION_MASK_STRICT_ALIGN
-#define OPTION_MASK_STRICT_ALIGN 0
-#define MASK_STRICT_ALIGN 0
-#endif
#ifndef TARGET_PROFILE_KERNEL
#define TARGET_PROFILE_KERNEL 0
#endif
@@ -1805,10 +1801,11 @@ rs6000_debug_reg_global (void)
fprintf (stderr, DEBUG_FMT_S, "tune", "<none>");
cl_target_option_save (&cl_opts, &global_options);
- rs6000_print_isa_options (stderr, 0, "target_flags", target_flags);
+ rs6000_print_isa_options (stderr, 0, "rs6000_isa_flags",
+ rs6000_isa_flags);
- rs6000_print_isa_options (stderr, 0, "target_flags_explicit",
- target_flags_explicit);
+ rs6000_print_isa_options (stderr, 0, "rs6000_isa_flags_explicit",
+ rs6000_isa_flags_explicit);
rs6000_print_builtin_options (stderr, 0, "rs6000_builtin_mask",
rs6000_builtin_mask);