From ef4df35373faee8e7a038489161996c01c69f925 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Sun, 13 May 2012 19:57:37 +0000 Subject: [PATCH] pa.md: Use define_c_enum for "unspec" and "unspecv". * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv". From-SVN: r187443 --- gcc/ChangeLog | 4 ++++ gcc/config/pa/pa.md | 42 +++++++++++++++++++++--------------------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d452fab44c..be431892f24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-05-13 Steven Bosscher + + * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv". + 2012-05-13 Manuel López-Ibáñez * common.opt (Wtype-limits): Use EnabledBy. diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index d0110e79868..a7ad6268bdd 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -28,31 +28,31 @@ ;; Uses of UNSPEC in this file: -(define_constants - [(UNSPEC_CFFC 0) ; canonicalize_funcptr_for_compare - (UNSPEC_GOTO 1) ; indirect_goto - (UNSPEC_DLTIND14R 2) ; - (UNSPEC_TP 3) - (UNSPEC_TLSGD 4) - (UNSPEC_TLSLDM 5) - (UNSPEC_TLSLDO 6) - (UNSPEC_TLSLDBASE 7) - (UNSPEC_TLSIE 8) - (UNSPEC_TLSLE 9) - (UNSPEC_TLSGD_PIC 10) - (UNSPEC_TLSLDM_PIC 11) - (UNSPEC_TLSIE_PIC 12) +(define_c_enum "unspec" + [UNSPEC_CFFC ; canonicalize_funcptr_for_compare + UNSPEC_GOTO ; indirect_goto + UNSPEC_DLTIND14R + UNSPEC_TP + UNSPEC_TLSGD + UNSPEC_TLSLDM + UNSPEC_TLSLDO + UNSPEC_TLSLDBASE + UNSPEC_TLSIE + UNSPEC_TLSLE + UNSPEC_TLSGD_PIC + UNSPEC_TLSLDM_PIC + UNSPEC_TLSIE_PIC ]) ;; UNSPEC_VOLATILE: -(define_constants - [(UNSPECV_BLOCKAGE 0) ; blockage - (UNSPECV_DCACHE 1) ; dcacheflush - (UNSPECV_ICACHE 2) ; icacheflush - (UNSPECV_OPC 3) ; outline_prologue_call - (UNSPECV_OEC 4) ; outline_epilogue_call - (UNSPECV_LONGJMP 5) ; builtin_longjmp +(define_c_enum "unspecv" + [UNSPECV_BLOCKAGE ; blockage + UNSPECV_DCACHE ; dcacheflush + UNSPECV_ICACHE ; icacheflush + UNSPECV_OPC ; outline_prologue_call + UNSPECV_OEC ; outline_epilogue_call + UNSPECV_LONGJMP ; builtin_longjmp ]) ;; Maximum pc-relative branch offsets. -- 2.30.2