Commit Graph

487 Commits

Author SHA1 Message Date
Jim Wilson
8e98b1dc81 (FIXPROTO_DEFINES): Add -D_SGI_SOURCE.
From-SVN: r12419
1996-07-09 12:08:38 -07:00
Jim Wilson
320aba9c08 (function_arg): Add explicit checks for FIELD_DECLs.
(mips_function_value): Add explicit checks for FIELD_DECLs, and save
them in the array FIELDS.  When returning structure with 1 float field,
enclose it in a PARALLEL and set the PARALLEL mode correctly.

From-SVN: r12412
1996-07-08 14:59:51 -07:00
Jim Wilson
f7a61b839f (function_arg): Add explicit checks for FIELD_DECLs.
(mips_function_value): Add explicit checks for FIELD_DECLs, and save
them in the array FIELDS.  When returning structure with 1 float field,
enclose it in a PARALLEL and set the PARALLEL mode correctly.
* mips/mips.md (call_value): Call gen_call_value_multiple_internal0
only if there are multiple return values.  Strip the PARALLEL off
if there there is only one return value.

From-SVN: r12411
1996-07-08 14:55:32 -07:00
Ian Lance Taylor
7e99e4948d Put spaces between -mips* cases in CC1_SPEC
From-SVN: r12337
1996-06-27 21:52:25 +00:00
Jim Wilson
5aae909107 (call_internal1, call_value_internal1): Delete obsolete code.
(call_internal2, call_value_internal2, call_value_multiple_internal2):
Delete obsolete code.  Explicitly load SYMBOL_REF into register.
(call_value): Change Pmode to SImode in gen_call_value_internal0 call.

From-SVN: r12323
1996-06-21 17:39:43 -07:00
Richard Kenner
d6c4614218 (override_options): Treat -o32 as -32 and -n64 same as -64.
From-SVN: r12299
1996-06-18 07:25:18 -04:00
Richard Kenner
9d699bf813 (ASM_SPEC): Treat -o32 as -32 and -n64 same as -64.
From-SVN: r12298
1996-06-18 07:24:46 -04:00
Jim Wilson
aa4e54c443 (memory): Change r4100/r4300 support.
(imuldiv): Add r4300 support.
(high, low): New patterns.
(movsi, movdi): Add LO_SUM support.
(movsi_internal1, movsi_internal2): Use move_operand instead of
general_operand.
(movstrsi_internal, movstrsi_internal2): Delete R constraint.
(call, call_value): Pass address instead of MEM to call_insn_operand.
Call gen_call_{value_}internal0 instead of internal1.
(call_internal0, call_value_internal0, call_multiple_internal0):
New patterns.
(call_internal1, call_internal2, call_value_internal1,
call_value_internal2, call_value_multiple_internal2): Add explicit
MEM before target address.

From-SVN: r12287
1996-06-17 12:01:47 -07:00
Jim Wilson
ce57d6f4d1 (mips_split_addresses, mips_check_split, move_operand):
New declarations
(GO_IF_LEGITIMATE_ADDRESS): Reject constant addresses when
mips_split_addresses is TRUE.  Add LO_SUM support.
(LEGITIMIZE_ADDRESS): Add LO_SUM support.
(PREDICATE_CODES): Modify call_insn_operand support.  Add
move_operand.

From-SVN: r12286
1996-06-17 12:00:17 -07:00
Jim Wilson
910628b87e (mips_split_addresses): New variable.
(simple_memory_operand): Add comment about mode check.  Add check
for LO_SUM.
(call_insn_operand): OP is now an addresses instead of a MEM.
(move_operand, mips_check_split): New functions.
(mips_count_memory_refs): Add check for LO_SUM.
(mips_move_1word): Add HIGH support.
(mips_address_cost): Delete check for HIGH.
(output_block_move): Handle LO_SUM addresses.
(override_options): Set mips_split_addresses.
(print_operand_address): Add LO_SUM support.

From-SVN: r12285
1996-06-17 11:58:25 -07:00
Jim Wilson
8fbaea49f1 (cpu, memory, imuldiv, adder, mult, divide): Add vr4100 and vr4300 support.
(cpu, memory, imuldiv, adder, mult, divide): Add
vr4100 and vr4300 support.
(muldf3, mulsf3): Add vr4300 support.
(muldf3_internal, muldf_r4300, mulsf3_internal, mulsf_r4300): New
patterns.

From-SVN: r12250
1996-06-08 15:41:49 -07:00
Jim Wilson
00b3e0523c (enum processor_type): Likewise.
(MASK_4300_MUL_FIX, TARGET_4300_MUL_FIX): New macros.
(TARGET_SWITCHES): Add -mfix4300 option.

From-SVN: r12249
1996-06-08 15:39:27 -07:00
Jim Wilson
5034b7bd85 (override_options): Add vr4100 and vr4300 support.
From-SVN: r12248
1996-06-08 15:38:52 -07:00
Jim Wilson
bd16a708b9 (call_value): Handle PARALLEL in operands[0].
(call_value_multiple_internal2): New pattern.

From-SVN: r12196
1996-06-06 16:34:44 -07:00
Jim Wilson
a20b7b051e (function_arg): Return PARALLEL for structure with aligned double fields.
(function_arg): Return PARALLEL for structure with
aligned double fields.
(type_dependent_reg): Delete.
(mips_function_value): Return PARALLEL for structure
with two floating point fields.

From-SVN: r12195
1996-06-06 16:29:34 -07:00
Jim Wilson
45afe7a2f5 (TYPE_DEPENDENT_REG): Delete.
From-SVN: r12194
1996-06-06 16:24:53 -07:00
Jim Wilson
2777975438 (CPP_SPEC): Make -mabi=n32 the default.
From-SVN: r12151
1996-06-03 16:38:47 -07:00
Jim Wilson
a4dbf02d62 (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT, MULTILIB_DEFAULTS,
ASM_SPEC, STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC): Likewise.

From-SVN: r12150
1996-06-03 16:37:46 -07:00
Jim Wilson
b067d889bf (tablejump_internal4+1): Fix typo in condition.
From-SVN: r12149
1996-06-03 16:36:11 -07:00
Jim Wilson
9315fc066e (CC, OLDCC): Define to be `cc -32'.
From-SVN: r12148
1996-06-03 16:34:35 -07:00
Jim Wilson
9fa0af71f6 (tablejump_internal3, tablejump_internal4): New patterns.
(tablejump): Use them for PIC code.

From-SVN: r12139
1996-06-02 16:40:42 -07:00
Jim Wilson
93c8a6e6e5 Add -mabi=n32 support.
(ABI_64BIT): Delete.
(TARGET_LONG64, CPP_SPEC, STACK_BOUNDARY, MIPS_STACK_ALIGN,
GP_ARG_LAST, FP_ARG_LAST, SUBTARGET_CONDITIONAL_REGISTER_USAGE,
MAX_ARGS_IN_REGISTER, FUNCTION_ARG_PADDING, RETURN_IN_MEMORY,
SETUP_INCOMING_VARARGS): Modify.
(REG_PARM_STACK_SPACE): Ifdef out.
(TARGET_DEFAULT, SUBTARGET_TARGET_OPTIONS): Define.

From-SVN: r12135
1996-05-31 12:06:49 -07:00
Jim Wilson
bfd472b2d1 Add -mabi=n32 support.
(TARGET_DEFAULT, ASM_OUTPUT_INTERNAL_LABEL,
ASM_GENERATE_INTERNAL_LABEL): Delete.
(MULTILIB_DEFAULTS, ASM_SPEC, EXTRA_SECTION_FUNCTIONS,
ASM_OUTPUT_ALIGNED_LOCAL, STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
Modify.
(MIPS_ABI_DEFAULT, LOCAL_LABEL_PREFIX): Define.

From-SVN: r12134
1996-05-31 12:03:46 -07:00
Jim Wilson
ade6c31950 Add -mabi=n32 support.
(mips_const_double_ok, mips_move_1word, mips_move_2words,
function_arg, override_options, mips_asm_file_start,
compute_frame_size, save_restore_insns, function_prologue,
mips_expand_prologue, function_epilogue, mips_function_value): Modify.
(mips_abi, mips_abi_string): Define

From-SVN: r12133
1996-05-31 12:02:47 -07:00
Jim Wilson
b2d8cf335c Add -mabi=n32 support.
(ABI_64BIT): Delete.
(TARGET_OPTIONS, INITIAL_ELIMINATION_OFFSET, GO_IF_LEGITIMATE_ADDRESS,
CONSTANT_ADDRESS_P, LEGITIMATE_CONSTANT_P, LEGITIMIZE_ADDRESS,
ASM_OUTPUT_ADDR_DIFF_ELT): Modify.
(enum mips_abi_type, SUBTARGET_TARGET_OPTIONS): Define.
(mips_abi, mips_abi_string): Declare.

From-SVN: r12131
1996-05-31 12:01:37 -07:00
Jim Wilson
694aa3f2a2 (jump, tablejump_internal1, tablejump_internal2): Add
-mabi=n32 support.

From-SVN: r12130
1996-05-31 12:00:22 -07:00
Jim Wilson
98128ff66f (MULTILIB_OPTIONS): Add -mabi=n32 support.
From-SVN: r12129
1996-05-31 11:59:11 -07:00
Jim Wilson
ee76ea6459 (HOST_BITS_PER_LONG): Use _MIPS_SZLONG not 64.
From-SVN: r12128
1996-05-31 11:58:34 -07:00
Doug Evans
4baed42f6d * mips/mips.h (ASM_COMMENT_START): Change from "\t\t#" to " #".
From-SVN: r11997
1996-05-17 16:20:31 +00:00
Doug Evans
2096c147c7 mips.c (target_switches, [...]): Delete.
* mips/mips.c (target_switches, print_options): Delete.
	(mips_asm_file_start): Put output of -G,Cpu,ISA here.

From-SVN: r11996
1996-05-17 16:18:45 +00:00
Jim Wilson
d02f4ef742 (block_move_call): Change modfe to mode.
From-SVN: r11854
1996-04-19 13:43:05 -07:00
Jim Wilson
030d2f0125 (mips_expand_prologue): Add extra arg to
INIT_CUMULATIVE_ARGS call.

From-SVN: r11853
1996-04-19 13:41:30 -07:00
Jeff Law
2c7ee1a641 calls.c (expand_call): Remove current_call_is_indirect nonsense.
* calls.c (expand_call): Remove current_call_is_indirect nonsense.
	Add additional argument to INIT_CUMULATIVE_ARGS.
	(emit_library_call): Likewise.
	(emit_library_call_value): Likewise.
	* expr.c (expand_builtin): Likewise.
	* function.c (assign_parms): Likewise.
	* cp/method.c (emit_thunk): Likewise.
	* config/pa/pa.h (hppa_args): New field "indirect".
	(INIT_CUMULATIVE_ARGS): Initialize "indirect" field.
	(FUNCTION_ARG): Check "indirect" field, rather than
	"current_call_is_indirect".
	* All other backends updated with new argument to
	INIT_CUMULATIVE_ARGS

From-SVN: r11641
1996-03-29 07:37:11 -07:00
Jim Wilson
1b2202b86d (mips_expand_prologue): In initialization of fnargs, delete
special treatment of METHOD_TYPE.

From-SVN: r11584
1996-03-20 14:20:11 -08:00
Jim Wilson
a88d48a43c (ASM_OUTPUT_DOUBLE_INT): Use 'X' if CONST_INT and
HOST_BITS_PER_WIDE_INT == 64.

From-SVN: r11539
1996-03-14 16:58:32 -08:00
Jim Wilson
e0c228daf7 (mips_expand_prologue): Change TYPE_NEEDS_CONSTRUCTING to
TREE_ADDRESSABLE;

From-SVN: r11529
1996-03-14 09:46:53 -08:00
Doug Evans
8a7facf891 (EXTRA_SECTIONS): Delete in_bss.
From-SVN: r11380
1996-02-29 03:13:29 +00:00
Richard Kenner
7d4ea832ef (SWITCH_TAKES_ARG): Use DEFAULT_SWITCH_TAKES_ARG.
From-SVN: r11266
1996-02-13 17:58:57 -05:00
Jim Wilson
197b2bf341 (probe+2, probe+4): New conditional move patterns.
(movsicc): Don't truncate comparison if it is DImode.

From-SVN: r11191
1996-02-09 16:05:30 -08:00
Jim Wilson
a3e11772c3 (LINK_SPEC): Change nostdlib to nostartfiles.
(LOCAL_LABEL_PREFIX): Delete.
(ASM_OUTPUT_SECTION_NAME): Define.

From-SVN: r10954
1996-01-08 15:27:06 -08:00
Michael Meissner
a211c7b906 Allow large alignments on ELF systems
From-SVN: r10951
1996-01-07 22:00:44 +00:00
Richard Kenner
ff18b63b8d (expand_block_move): Preserve MEM flags in call to movstrsi_internal.
From-SVN: r10835
1995-12-22 17:45:39 -05:00
Jim Wilson
39dffea3c7 (FIRST_PSEUDO_REGISTER): Increment.
(FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES,
DEBUG_REGISTER_NAMES): Add entry for new RAP reg.
(RAP_REG_NUM, RETURN_ADDRESS_POINTER_REGNUM): New macros.
(RETURN_ADDR_RTX): Define.
(ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
Add RETURN_ADDRESS_POINTER_REGNUM support.

From-SVN: r10819
1995-12-19 15:30:21 -08:00
Jim Wilson
b987661c06 (mips_reg_names, mips_sw_reg_names, mips_regno_to_class):
Add entry for new RAP reg.

From-SVN: r10818
1995-12-19 15:28:28 -08:00
Jim Wilson
e24b877609 (block_move_call): Likewise for memcpy and bcopy.
From-SVN: r10813
1995-12-18 18:15:51 -08:00
Jim Wilson
01d7472931 (INITIALIZE_TRAMPOLINE): Likewise for cacheflush.
From-SVN: r10812
1995-12-18 18:14:50 -08:00
Jim Wilson
8b8def46d6 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
MULTILIB_MATCHES): Add -msingle-float support.

From-SVN: r10636
1995-11-29 18:40:33 -08:00
Jim Wilson
54efdaa420 (CPP_SPEC): If -msingle-float and not -msoft-float, pass -D__mips_single_float.
(CPP_SPEC): If -msingle-float and not
-msoft-float, pass -D__mips_single_float.  Likewise for -m4650 and
not -msoft-float.

From-SVN: r10635
1995-11-29 18:38:54 -08:00
Jim Wilson
f043418986 (WORD_SWITCH_TAKES_ARG): Define.
(LINK_SPEC): Add rpath.

From-SVN: r10625
1995-11-29 12:14:02 -08:00
Jim Wilson
62e74545e7 (LINK_SPEC): Add rpath.
From-SVN: r10624
1995-11-29 12:13:25 -08:00