Message ID | CAMe9rOpM2j8+=cNOhDSsJkgJCEiHxOt5Ujek9GqRqJqr0_ACOQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Tue, Jun 5, 2012 at 2:47 PM, H.J. Lu <hjl.tools@gmail.com> wrote: >>> We should enable x32 run-time library if --with-abi={x32|mx32} is used >>> to configure GCC i[34567]86-*-* and x86_64-*-*. Tested on Linux/x86-64. >> Why all three ABIs here? Didn't user specify -with-abi=mx32 only, so >> x86_multilibs="mx32" only here. >> > > Is this patch OK? Since --with-abi is only used for x86_64-*-*, > we don't need to change i[34567]86-*-*. > > 2012-06-05 H.J. Lu <hongjiu.lu@intel.com> > > PR target/53575 > * config.gcc: Select x32 run-time library if --with-abi={x32|mx32} > is used for x86_64-*-*. This looks OK to me. Thanks, Uros.
diff --git a/gcc/config.gcc b/gcc/config.gcc index 61adc89..f0ea9c7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1299,7 +1299,14 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) tmake_file="${tmake_file} i386/t-linux64" x86_multilibs="${with_multilib_list}" if test "$x86_multilibs" = "default"; then - x86_multilibs="m64,m32" + case ${with_abi} in + x32 | mx32) + x86_multilibs="mx32" + ;; + *) + x86_multilibs="m64,m32" + ;; + esac fi x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'`