Commit a127db75 by Jim Wilson Committed by Jim Wilson

Add documentation for MIPS options.

	* mips/mips.h (TARGET_SWITCHES, TARGET_OPTIONS): Add option doc
	strings.
	* mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Likewise.

From-SVN: r25906
parent 74bbc178
Mon Mar 22 18:06:59 1999 Jim Wilson <wilson@cygnus.com>
* mips/mips.h (TARGET_SWITCHES, TARGET_OPTIONS): Add option doc
strings.
* mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Likewise.
Mon Mar 22 16:18:27 1999 Nick Clifton <nickc@cygnus.com> Mon Mar 22 16:18:27 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/elf.h (VALID_MACHINE_DECL_ATTRIBUTE): Do not bother * config/arm/elf.h (VALID_MACHINE_DECL_ATTRIBUTE): Do not bother
......
...@@ -22,8 +22,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -22,8 +22,9 @@ Boston, MA 02111-1307, USA. */
after mips.h. */ after mips.h. */
#undef SUBTARGET_TARGET_OPTIONS #undef SUBTARGET_TARGET_OPTIONS
#define SUBTARGET_TARGET_OPTIONS\ #define SUBTARGET_TARGET_OPTIONS \
{ "abi=", &mips_abi_string }, { "abi=", &mips_abi_string, \
"Speciy ABI to use"},
#undef STACK_BOUNDARY #undef STACK_BOUNDARY
#define STACK_BOUNDARY \ #define STACK_BOUNDARY \
......
...@@ -452,69 +452,129 @@ extern void mips_select_section (); ...@@ -452,69 +452,129 @@ extern void mips_select_section ();
#define TARGET_SWITCHES \ #define TARGET_SWITCHES \
{ \ { \
{"int64", MASK_INT64 | MASK_LONG64}, \ {"int64", MASK_INT64 | MASK_LONG64, \
{"long64", MASK_LONG64}, \ "Use 64-bit int type"}, \
{"long32", -(MASK_LONG64 | MASK_INT64)}, \ {"long64", MASK_LONG64, \
{"split-addresses", MASK_SPLIT_ADDR}, \ "Use 64-bit long type"}, \
{"no-split-addresses", -MASK_SPLIT_ADDR}, \ {"long32", -(MASK_LONG64 | MASK_INT64), \
{"mips-as", -MASK_GAS}, \ "Use 32-bit long type"}, \
{"gas", MASK_GAS}, \ {"split-addresses", MASK_SPLIT_ADDR, \
{"rnames", MASK_NAME_REGS}, \ "Optimize lui/addiu address loads"}, \
{"no-rnames", -MASK_NAME_REGS}, \ {"no-split-addresses", -MASK_SPLIT_ADDR, \
{"gpOPT", MASK_GPOPT}, \ "Don't optimize lui/addiu address loads"}, \
{"gpopt", MASK_GPOPT}, \ {"mips-as", -MASK_GAS, \
{"no-gpOPT", -MASK_GPOPT}, \ "Use MIPS as"}, \
{"no-gpopt", -MASK_GPOPT}, \ {"gas", MASK_GAS, \
{"stats", MASK_STATS}, \ "Use GNU as"}, \
{"no-stats", -MASK_STATS}, \ {"rnames", MASK_NAME_REGS, \
{"memcpy", MASK_MEMCPY}, \ "Use symbolic register names"}, \
{"no-memcpy", -MASK_MEMCPY}, \ {"no-rnames", -MASK_NAME_REGS, \
{"mips-tfile", MASK_MIPS_TFILE}, \ "Don't use symbolic register names"}, \
{"no-mips-tfile", -MASK_MIPS_TFILE}, \ {"gpOPT", MASK_GPOPT, \
{"soft-float", MASK_SOFT_FLOAT}, \ "Use GP relative sdata/sbss sections"}, \
{"hard-float", -MASK_SOFT_FLOAT}, \ {"gpopt", MASK_GPOPT, \
{"fp64", MASK_FLOAT64}, \ "Use GP relative sdata/sbss sections"}, \
{"fp32", -MASK_FLOAT64}, \ {"no-gpOPT", -MASK_GPOPT, \
{"gp64", MASK_64BIT}, \ "Don't use GP relative sdata/sbss sections"}, \
{"gp32", -MASK_64BIT}, \ {"no-gpopt", -MASK_GPOPT, \
{"abicalls", MASK_ABICALLS}, \ "Don't use GP relative sdata/sbss sections"}, \
{"no-abicalls", -MASK_ABICALLS}, \ {"stats", MASK_STATS, \
{"half-pic", MASK_HALF_PIC}, \ "Output compiler statistics"}, \
{"no-half-pic", -MASK_HALF_PIC}, \ {"no-stats", -MASK_STATS, \
{"long-calls", MASK_LONG_CALLS}, \ "Don't output compiler statistics"}, \
{"no-long-calls", -MASK_LONG_CALLS}, \ {"memcpy", MASK_MEMCPY, \
{"embedded-pic", MASK_EMBEDDED_PIC}, \ "Don't optimize block moves"}, \
{"no-embedded-pic", -MASK_EMBEDDED_PIC}, \ {"no-memcpy", -MASK_MEMCPY, \
{"embedded-data", MASK_EMBEDDED_DATA}, \ "Optimize block moves"}, \
{"no-embedded-data", -MASK_EMBEDDED_DATA}, \ {"mips-tfile", MASK_MIPS_TFILE, \
{"eb", MASK_BIG_ENDIAN}, \ "Use mips-tfile asm postpass"}, \
{"el", -MASK_BIG_ENDIAN}, \ {"no-mips-tfile", -MASK_MIPS_TFILE, \
{"single-float", MASK_SINGLE_FLOAT}, \ "Don't use mips-tfile asm postpass"}, \
{"double-float", -MASK_SINGLE_FLOAT}, \ {"soft-float", MASK_SOFT_FLOAT, \
{"mad", MASK_MAD}, \ "Use software floating point"}, \
{"no-mad", -MASK_MAD}, \ {"hard-float", -MASK_SOFT_FLOAT, \
{"fix4300", MASK_4300_MUL_FIX}, \ "Use hardware floating point"}, \
{"no-fix4300", -MASK_4300_MUL_FIX}, \ {"fp64", MASK_FLOAT64, \
{"4650", MASK_MAD | MASK_SINGLE_FLOAT}, \ "Use 64-bit FP registers"}, \
{"3900", MASK_MIPS3900}, \ {"fp32", -MASK_FLOAT64, \
{"check-zero-division",-MASK_NO_CHECK_ZERO_DIV}, \ "Use 32-bit FP registers"}, \
{"no-check-zero-division", MASK_NO_CHECK_ZERO_DIV}, \ {"gp64", MASK_64BIT, \
{"check-range-division",MASK_CHECK_RANGE_DIV}, \ "Use 64-bit general registers"}, \
{"no-check-range-division",-MASK_CHECK_RANGE_DIV}, \ {"gp32", -MASK_64BIT, \
{"debug", MASK_DEBUG}, \ "Use 32-bit general registers"}, \
{"debuga", MASK_DEBUG_A}, \ {"abicalls", MASK_ABICALLS, \
{"debugb", MASK_DEBUG_B}, \ "Use Irix PIC"}, \
{"debugc", MASK_DEBUG_C}, \ {"no-abicalls", -MASK_ABICALLS, \
{"debugd", MASK_DEBUG_D}, \ "Don't use Irix PIC"}, \
{"debuge", MASK_DEBUG_E}, \ {"half-pic", MASK_HALF_PIC, \
{"debugf", MASK_DEBUG_F}, \ "Use OSF PIC"}, \
{"debugg", MASK_DEBUG_G}, \ {"no-half-pic", -MASK_HALF_PIC, \
{"debugh", MASK_DEBUG_H}, \ "Don't use OSF PIC"}, \
{"debugi", MASK_DEBUG_I}, \ {"long-calls", MASK_LONG_CALLS, \
"Use indirect calls"}, \
{"no-long-calls", -MASK_LONG_CALLS, \
"Don't use indirect calls"}, \
{"embedded-pic", MASK_EMBEDDED_PIC, \
"Use embedded PIC"}, \
{"no-embedded-pic", -MASK_EMBEDDED_PIC, \
"Don't use embedded PIC"}, \
{"embedded-data", MASK_EMBEDDED_DATA, \
"Use ROM instead of RAM"}, \
{"no-embedded-data", -MASK_EMBEDDED_DATA, \
"Don't use ROM instead of RAM"}, \
{"eb", MASK_BIG_ENDIAN, \
"Use big-endian byte order"}, \
{"el", -MASK_BIG_ENDIAN, \
"Use little-endian byte order"}, \
{"single-float", MASK_SINGLE_FLOAT, \
"Use single (32-bit) FP only"}, \
{"double-float", -MASK_SINGLE_FLOAT, \
"Don't use single (32-bit) FP only"}, \
{"mad", MASK_MAD, \
"Use multiply accumulate"}, \
{"no-mad", -MASK_MAD, \
"Don't use multiply accumulate"}, \
{"fix4300", MASK_4300_MUL_FIX, \
"Work around early 4300 hardware bug"}, \
{"no-fix4300", -MASK_4300_MUL_FIX, \
"Don't work around early 4300 hardware bug"}, \
{"4650", MASK_MAD | MASK_SINGLE_FLOAT, \
"Optimize for 4650"}, \
{"3900", MASK_MIPS3900, \
"Optimize for 3900"}, \
{"check-zero-division",-MASK_NO_CHECK_ZERO_DIV, \
"Trap on integer divide by zero"}, \
{"no-check-zero-division", MASK_NO_CHECK_ZERO_DIV, \
"Don't trap on integer divide by zero"}, \
{"check-range-division",MASK_CHECK_RANGE_DIV, \
"Trap on integer divide overflow"}, \
{"no-check-range-division",-MASK_CHECK_RANGE_DIV, \
"Don't trap on integer divide overflow"}, \
{"debug", MASK_DEBUG, \
NULL}, \
{"debuga", MASK_DEBUG_A, \
NULL}, \
{"debugb", MASK_DEBUG_B, \
NULL}, \
{"debugc", MASK_DEBUG_C, \
NULL}, \
{"debugd", MASK_DEBUG_D, \
NULL}, \
{"debuge", MASK_DEBUG_E, \
NULL}, \
{"debugf", MASK_DEBUG_F, \
NULL}, \
{"debugg", MASK_DEBUG_G, \
NULL}, \
{"debugh", MASK_DEBUG_H, \
NULL}, \
{"debugi", MASK_DEBUG_I, \
NULL}, \
{"", (TARGET_DEFAULT \ {"", (TARGET_DEFAULT \
| TARGET_CPU_DEFAULT \ | TARGET_CPU_DEFAULT \
| TARGET_ENDIAN_DEFAULT)} \ | TARGET_ENDIAN_DEFAULT), \
} NULL}, \
}
/* Default target_flags if no switches are specified */ /* Default target_flags if no switches are specified */
...@@ -575,11 +635,16 @@ extern void mips_select_section (); ...@@ -575,11 +635,16 @@ extern void mips_select_section ();
#define TARGET_OPTIONS \ #define TARGET_OPTIONS \
{ \ { \
SUBTARGET_TARGET_OPTIONS \ SUBTARGET_TARGET_OPTIONS \
{ "cpu=", &mips_cpu_string }, \ { "cpu=", &mips_cpu_string, \
{ "ips", &mips_isa_string }, \ "Specify CPU for scheduling purposes"}, \
{ "entry", &mips_entry_string }, \ { "ips", &mips_isa_string, \
{ "no-mips16", &mips_no_mips16_string }, \ "Specify MIPS ISA"}, \
{ "explicit-type-size", &mips_explicit_type_size_string } \ { "entry", &mips_entry_string, \
"Use mips16 entry/exit psuedo ops"}, \
{ "no-mips16", &mips_no_mips16_string, \
"Don't use MIPS16 instructions"}, \
{ "explicit-type-size", &mips_explicit_type_size_string, \
NULL}, \
} }
/* This is meant to be redefined in the host dependent files. */ /* This is meant to be redefined in the host dependent files. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment