diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-01-27 23:23:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-01-27 23:23:37 +0000 |
commit | 24482ca0577ae94fdfa6523d4a5942fc3a610d47 (patch) | |
tree | 9ed331669e50e1e776d9d1ff5627fc93b1c1b442 /gold/configure | |
parent | 690834b28c79871fe960ccd34838e82a700ee003 (diff) | |
download | gdb-24482ca0577ae94fdfa6523d4a5942fc3a610d47.zip gdb-24482ca0577ae94fdfa6523d4a5942fc3a610d47.tar.gz gdb-24482ca0577ae94fdfa6523d4a5942fc3a610d47.tar.bz2 |
Check if -mcmodel=medium works
2012-01-27 H.J. Lu <hongjiu.lu@intel.com>
* configure.ac: Check if -mcmodel=medium works.
* configure: Regenerated.
Diffstat (limited to 'gold/configure')
-rwxr-xr-x | gold/configure | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gold/configure b/gold/configure index 3dddec6..aca7cab 100755 --- a/gold/configure +++ b/gold/configure @@ -6312,7 +6312,20 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 $as_echo "$gold_cv_prog_gcc41" >&6; } - if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then +save_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -mcmodel=medium" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int i; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + have_mcmodel_medium=yes +else + have_mcmodel_medium=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +CFLAGS="$save_CFLAGS" + if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then MCMODEL_MEDIUM_TRUE= MCMODEL_MEDIUM_FALSE='#' else |