1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/arm/gcc-options.in
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 case "$SDECFG_ARM_OPT" in
14 armv7*) var_append GCC_WRAPPER_INSERT " " "-march=$SDECFG_ARM_OPT+fp+simd"
15 #var_append KCC_WRAPPER_APPEND " " "-march=$SDECFG_ARM_OPT"
17 armv*) var_append GCC_WRAPPER_INSERT " " "-march=$SDECFG_ARM_OPT+fp"
18 #var_append KCC_WRAPPER_APPEND " " "-march=$SDECFG_ARM_OPT"
20 *) var_append GCC_WRAPPER_INSERT " " "-mcpu=$SDECFG_ARM_OPT"
21 #var_append KCC_WRAPPER_APPEND " " "-mcpu=$SDECFG_ARM_OPT"
25 # gcc 4.2.1 has no config code to default to big-endian, -ReneR
26 [ "$SDECFG_ARM_ENDIANESS" = "eb" ] &&
27 var_append GCC_WRAPPER_INSERT " " "-mbig-endian"
29 [ "$SDECFG_ARM_THUMB" = 1 ] &&
30 var_append GCC_WRAPPER_INSERT " " "-mthumb -mthumb-interwork"
32 [ "$SDECFG_SOFTFLOAT" = 1 ] &&
33 var_append GCC_WRAPPER_INSERT " " "-msoft-float"