Revert [ARM/FDPIC v6 13/24] [ARM] FDPIC: Force LSB bit for PC in Cortex-M architecture
authorChristophe Lyon <christophe.lyon@st.com>
Fri, 20 Sep 2019 13:32:20 +0000 (15:32 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Fri, 20 Sep 2019 13:32:20 +0000 (15:32 +0200)
This is causing regressions when mixing with user code compiled in ARM mode.

2019-09-20  Christophe Lyon  <christophe.lyon@st.com>

Revert:
2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
Mickaël Guêné <mickael.guene@st.com>

* config/arm/unwind-arm.c (_Unwind_VRS_Set): Handle thumb-only
architecture.

From-SVN: r276001

libgcc/ChangeLog
libgcc/config/arm/unwind-arm.c

index 37fadd4149c23db9c163b455c51582da7a47f6c6..74deb0f185a758faa335951c41d611f62607a7d7 100644 (file)
@@ -1,3 +1,12 @@
+2019-09-20  Christophe Lyon  <christophe.lyon@st.com>
+
+       Revert:
+       2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
+               Mickaël Guêné <mickael.guene@st.com>
+
+       * config/arm/unwind-arm.c (_Unwind_VRS_Set): Handle thumb-only
+       architecture.
+
 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
 
        * config/aarch64/lse-init.c: New file.
index 8313ee03e903b4f8a0873d4aa2e196624bc4ddd8..9ba73e72a2a76b8048ee456b762dbac7c13ae337 100644 (file)
@@ -199,11 +199,6 @@ _Unwind_VRS_Result _Unwind_VRS_Set (_Unwind_Context *context,
        return _UVRSR_FAILED;
 
       vrs->core.r[regno] = *(_uw *) valuep;
-#if defined(__thumb__)
-      /* Force LSB bit since we always run thumb code.  */
-      if (regno == R_PC)
-       vrs->core.r[regno] |= 1;
-#endif
       return _UVRSR_OK;
 
     case _UVRSC_VFP: