]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390.h (s390_tune_attr): New macro definition.
authorAndreas Krebbel <krebbel1@de.ibm.com>
Fri, 17 Apr 2009 15:08:03 +0000 (15:08 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 17 Apr 2009 15:08:03 +0000 (15:08 +0000)
2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.h (s390_tune_attr): New macro definition.
* config/s390/s390.md (cpu attribute): Map to s390_tune_attr.

From-SVN: r146272

gcc/ChangeLog
gcc/config/s390/s390.h
gcc/config/s390/s390.md

index 0908a3f92fc9b39eae0c3d8fabc941fcc2192ff3..f5b87a129706888eafc36694a08ea06127efa7c5 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
+
+       * config/s390/s390.h (s390_tune_attr): New macro definition.
+       * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
+
 2009-04-17  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
index bfe0268cc77fe805e2564b87695671fd68a24adb..3bf9d7d21576606996ae3ad9810d747361fa71cd 100644 (file)
@@ -60,6 +60,10 @@ enum processor_flags
 extern enum processor_type s390_tune;
 extern enum processor_flags s390_tune_flags;
 
+/* This is necessary to avoid a warning about comparing different enum
+   types.  */
+#define s390_tune_attr ((enum attr_cpu)s390_tune)
+
 extern enum processor_type s390_arch;
 extern enum processor_flags s390_arch_flags;
 
index 16ed99e08f1bb5f3973bd3905caac1f933c3d2af..c3d181f0aac061a03bbb323736e3e5c1e4441ed1 100644 (file)
 ;; CPUs could in theory be modeled.
 
 (define_attr "cpu" "g5,g6,z900,z990,z9_109,z10"
-  (const (symbol_ref "s390_tune")))
+  (const (symbol_ref "s390_tune_attr")))
 
 (define_attr "cpu_facility" "standard,ieee,zarch,longdisp,extimm,dfp,z10"
   (const_string "standard"))