diff options
author | Janis Johnson <janis187@us.ibm.com> | 2007-02-20 23:11:43 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2007-02-20 23:11:43 +0000 |
commit | b639c3c245c82affaa8d0d1784259a312936c075 (patch) | |
tree | efb29cd2b4a4e9481050182b5b8b3e7c9903b4ac /gcc/configure.ac | |
parent | 7cd689bcf045c55b1786cdbc84c9f63a07070a58 (diff) | |
download | gcc-b639c3c245c82affaa8d0d1784259a312936c075.tar.gz |
invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
* doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
* configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
cmpb instruction.
(HAVE_GAS_DFP): Check for assembler support of decimal floating
point instructions.
* configure: Regenerate.
* config.in: Regenerate.
* config/rs6000/rs6000.opt (mcmpb, mdfp): New.
* config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
masks to power6 and power6x and to POWERPC_MASKS.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
_ARCH_PWR6.
* config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
* config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
Access PROTOTYPE as variable, not mask.
From-SVN: r122179
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 15be971fbe4..db9a0c3d02f 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2925,6 +2925,36 @@ LCF0: addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';; esac + case $target in + *-*-aix*) conftest_s=' .machine "pwr6" + .csect .text[[PR]] + cmpb 3,4,5';; + *) conftest_s=' .machine power6 + .text + cmpb 3,4,5';; + esac + + gcc_GAS_CHECK_FEATURE([compare bytes support], + gcc_cv_as_powerpc_cmpb, [9,99,0], -a32, + [$conftest_s],, + [AC_DEFINE(HAVE_AS_CMPB, 1, + [Define if your assembler supports cmpb.])]) + + case $target in + *-*-aix*) conftest_s=' .machine "pwr6" + .csect .text[[PR]] + dadd 1,3';; + *) conftest_s=' .machine power6 + .text + dadd 1,3';; + esac + + gcc_GAS_CHECK_FEATURE([decimal float support], + gcc_cv_as_powerpc_dfp, [9,99,0], -a32, + [$conftest_s],, + [AC_DEFINE(HAVE_AS_DFP, 1, + [Define if your assembler supports DFP instructions.])]) + gcc_GAS_CHECK_FEATURE([rel16 relocs], gcc_cv_as_powerpc_rel16, [2,17,0], -a32, [$conftest_s],, |