sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
authorChristian Bruel <christian.bruel@st.com>
Wed, 12 Sep 2007 06:59:06 +0000 (08:59 +0200)
committerChristian Bruel <chrbr@gcc.gnu.org>
Wed, 12 Sep 2007 06:59:06 +0000 (08:59 +0200)
http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00945.html
2007-09-12  Christian Bruel  <christian.bruel@st.com>
* sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
* linux-unwind.h (SH_DWARF_FRAME_GBR): fixed.

From-SVN: r128413

gcc/ChangeLog
gcc/config/sh/linux-unwind.h
gcc/config/sh/sh.h

index 6d8433d234a484c97977cf2280a0a355e13cd480..d25f3923204f4b1944939bd35a224a72c2c7dd8b 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-12  Christian Bruel  <christian.bruel@st.com>
+       * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
+       * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed. 
+       
 2007-09-12  Ira Rosen  <irar@il.ibm.com>
 
        * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
index edc15d9d699a43759da51015d9c92624df30e0b4..3a3e9aa392d4fc4c364152e46fc79c029a735ad9 100644 (file)
@@ -45,7 +45,7 @@ Boston, MA 02110-1301, USA.  */
 #define SH_DWARF_FRAME_FP0     25
 #define SH_DWARF_FRAME_XD0     87
 #define SH_DWARF_FRAME_PR      17
-#define SH_DWARF_FRAME_GBR     19
+#define SH_DWARF_FRAME_GBR     18
 #define SH_DWARF_FRAME_MACH    20
 #define SH_DWARF_FRAME_MACL    21
 #define SH_DWARF_FRAME_PC      16
index 0583a8a447d12c743ce21b5d9059d99cd09ffc65..d5329d9c6e1200f7511954601581850a186ec7e7 100644 (file)
@@ -2973,16 +2973,18 @@ struct sh_args {
    ? (TARGET_SH5 ? 18 : 17) \
    : (REGNO) == PR_MEDIA_REG \
    ? (TARGET_SH5 ? 18 : (unsigned) -1) \
-   : (REGNO) == T_REG \
-   ? (TARGET_SH5 ? 242 : 18) \
    : (REGNO) == GBR_REG \
-   ? (TARGET_SH5 ? 238 : 19) \
+   ? (TARGET_SH5 ? 238 : 18) \
    : (REGNO) == MACH_REG \
    ? (TARGET_SH5 ? 239 : 20) \
    : (REGNO) == MACL_REG \
    ? (TARGET_SH5 ? 240 : 21) \
+   : (REGNO) == T_REG \
+   ? (TARGET_SH5 ? 242 : 22) \
    : (REGNO) == FPUL_REG \
    ? (TARGET_SH5 ? 244 : 23) \
+   : (REGNO) == FPSCR_REG \
+   ? (TARGET_SH5 ? 243 : 24) \
    : (unsigned) -1)
 
 /* This is how to output a reference to a symbol_ref.  On SH5,