diff options
author | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-04 17:50:44 +0000 |
---|---|---|
committer | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-04 17:50:44 +0000 |
commit | 7dd97ab62695cb000e76a6f7097a5ba9027aff9c (patch) | |
tree | 0761aad7dc475440590406dcf0a0052331286e05 /gcc/doc | |
parent | f0b281fea1edd49e9684a26761d476f7625aa0a7 (diff) | |
download | gcc-7dd97ab62695cb000e76a6f7097a5ba9027aff9c.tar.gz |
* config.gcc: Reorganize --with-cpu logic. Set
configure_default_options according to the default CPU, --with-cpu,
--with-arch, --with-tune, --with-schedule, --with-abi, and
--with-float. Check for legal values of various options.
* configure.in: Define configure_default_options in configargs.h.
* configure: Regenerated.
* config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
(TARGET_DEFAULT_FLOAT_P): New macros.
* gcc.c (do_option_spec): New function.
(struct default_spec, option_default_specs): New.
(main): Call do_option_spec.
* config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
* doc/install.texi: Update --with-cpu documentation. Mention
--with-arch, --with-schedule, --with-tune, --with-abi, and
--with-float.
* doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67457 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/install.texi | 21 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 19 |
2 files changed, 34 insertions, 6 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 051a65b489a..7dbb9b9239b 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -721,12 +721,21 @@ Microsoft Win32 API thread support. @end table @item --with-cpu=@var{cpu} -Specify which cpu variant the -compiler should generate code for by default. This is currently -only supported on some ports, specifically arm, powerpc, and -SPARC@. If configure does not recognize the model name (e.g.@: arm700, -603e, or ultrasparc) you provide, please check the -@file{gcc/config.gcc} script for a complete list of supported models. +Specify which cpu variant the compiler should generate code for by default. +@var{cpu} will be used as the default value of the @option{-mcpu=} switch. +This option is only supported on some targets, including ARM, i386, PowerPC, +and SPARC@. + +@item --with-schedule=@var{cpu} +@itemx --with-arch=@var{cpu} +@itemx --with-tune=@var{cpu} +@itemx --with-abi=@var{abi} +@itemx --with-float=@var{type} +These configure options provide default values for the @option{-mschedule=}, +@option{-march=}, @option{-mtune=}, and @option{-mabi=} options and for +@option{-mhard-float} or @option{-msoft-float}. As with @option{--with-cpu}, +which switches will be accepted and acceptable values of the arguments depend +on the target. @item --enable-altivec Specify that the target supports AltiVec vector enhancements. This diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index ba8e3b1f844..88f20858fa3 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -181,6 +181,25 @@ that the other specs are easier to write. Do not define this macro if it does not need to do anything. +@findex OPTION_DEFAULT_SPECS +@item OPTION_DEFAULT_SPECS +A list of specs used to support configure-time default options (i.e.@: +@option{--with} options) in the driver. It should be a suitable initializer +for an array of structures, each containing two strings, without the +outermost pair of surrounding braces. + +The first item in the pair is the name of the default. This must match +the code in @file{config.gcc} for the target. The second item is a spec +to apply if a default with this name was specified. The string +@samp{%(VALUE)} in the spec will be replaced by the value of the default +everywhere it occurs. + +The driver will apply these specs to its own command line between loading +default @file{specs} files and processing @code{DRIVER_SELF_SPECS}, using +the same mechanism as @code{DRIVER_SELF_SPECS}. + +Do not define this macro if it does not need to do anything. + @findex CPP_SPEC @item CPP_SPEC A C string constant that tells the GCC driver program options to |