OSDN Git Service

http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00945.html
authorchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2007 06:59:06 +0000 (06:59 +0000)
committerchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Sep 2007 06:59:06 +0000 (06:59 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128413 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 6d8433d..d25f392 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 edc15d9..3a3e9aa 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 0583a8a..d5329d9 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,