]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ppc] [vxworks] allow code model selection
authorAlexandre Oliva <oliva@adacore.com>
Mon, 15 Sep 2025 23:14:35 +0000 (20:14 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 15 Sep 2025 23:14:35 +0000 (20:14 -0300)
Bring code model selection logic to vxworks.h as well.

for  gcc/ChangeLog

* config/rs6000/vxworks.h (TARGET_CMODEL, SET_CMODEL): Define.

gcc/config/rs6000/vxworks.h

index e77247b726ea6e6dcf003c1a23e95c8be1eb1634..9eb074be31a89e9ccaf2eae6932c262ef66f3a3d 100644 (file)
@@ -267,6 +267,11 @@ along with GCC; see the file COPYING3.  If not see
 #undef DOT_SYMBOLS
 #define DOT_SYMBOLS 0
 
+/* Allow code model to be selected.  */
+#undef TARGET_CMODEL
+#define TARGET_CMODEL rs6000_current_cmodel
+#define SET_CMODEL(opt) rs6000_current_cmodel = opt
+
 /* For link specs, we leverage the linux configuration bits through
    LINK_OS_EXTRA_SPEC32/64 and need to cancel the default %(link_os)
    expansion in VXWORKS_LINK_SPEC.  */