diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.h | 4 | ||||
-rw-r--r-- | gcc/config/s390/s390.md | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0908a3f..f5b87a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index bfe0268..3bf9d7d 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -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; diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md index 16ed99e..c3d181f 100644 --- a/gcc/config/s390/s390.md +++ b/gcc/config/s390/s390.md @@ -262,7 +262,7 @@ ;; 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")) |