diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2013-10-15 13:23:44 +0000 |
---|---|---|
committer | Ramana Radhakrishnan <ramana@gcc.gnu.org> | 2013-10-15 13:23:44 +0000 |
commit | c9acb877bb8d3898aae1884950fda65ac40b2bd9 (patch) | |
tree | f88cb84bf2c7e5d452edc38d5bd0a0d26f4d43fa /gcc/config.gcc | |
parent | fffda8d7a38d84c5b5b5a1f2e6dd122e6d585901 (diff) | |
download | gcc-c9acb877bb8d3898aae1884950fda65ac40b2bd9.zip gcc-c9acb877bb8d3898aae1884950fda65ac40b2bd9.tar.gz gcc-c9acb877bb8d3898aae1884950fda65ac40b2bd9.tar.bz2 |
Add A profile only multilib make file fragment.
2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/t-aprofile: New file.
* config.gcc: Handle --with-multilib-list option.
Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
From-SVN: r203603
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index c59e2ca..022701d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3499,6 +3499,43 @@ case "${target}" in if test "x$with_arch" != x && test "x$with_cpu" != x; then echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2 fi + + # Add extra multilibs + if test "x$with_multilib_list" != x; then + arm_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'` + for arm_multilib in ${arm_multilibs}; do + case ${arm_multilib} in + aprofile) + # Note that arm/t-aprofile is a + # stand-alone make file fragment to be + # used only with itself. We do not + # specifically use the + # TM_MULTILIB_OPTION framework because + # this shorthand is more + # pragmatic. Additionally it is only + # designed to work without any + # with-cpu, with-arch with-mode + # with-fpu or with-float options. + if test "x$with_arch" != x \ + || test "x$with_cpu" != x \ + || test "x$with_float" != x \ + || test "x$with_fpu" != x \ + || test "x$with_mode" != x ; then + echo "Error: You cannot use any of --with-arch/cpu/fpu/float/mode with --with-multilib-list=aprofile" 1>&2 + exit 1 + fi + tmake_file="${tmake_file} arm/t-aprofile" + break + ;; + default) + ;; + *) + echo "Error: --with-multilib-list=${with_multilib_list} not supported." 1>&2 + exit 1 + ;; + esac + done + fi ;; fr*-*-*linux*) |