Commit Graph

468 Commits

Author SHA1 Message Date
Jeff Law
4f6cd2e642 pa.c (hppa_encode_label): New variable "permanent" to where/how memory is allocated for the new label.
* pa.c (hppa_encode_label): New variable "permanent" to
        where/how memory is allocated for the new label.  All
        callers changed.

From-SVN: r9759
1995-05-20 23:05:25 -06:00
Richard Kenner
ddd5a7c180 Fix typos in comments.
From-SVN: r9711
1995-05-16 08:14:26 -04:00
Jeff Law
15ac8ba086 pa.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Make sure to encode section info for all libcalls.
* pa.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Make sure to encode section
        info for all libcalls.

From-SVN: r9702
1995-05-15 21:41:11 -06:00
Jeff Law
ff0a4409da pa.md (bb patterns): Fix bugs in length computation exposed by recent branch shortening and...
* pa.md (bb patterns): Fix bugs in length computation exposed by
	recent branch shortening and genattrtab changes.

From-SVN: r9665
1995-05-12 14:51:46 -06:00
Jeff Law
bc4a9f172b pa.c (emit_move_sequence): Force problematical constants into memory during the reload pass when...
* pa.c (emit_move_sequence): Force problematical constants
	into memory during the reload pass when generating PIC.

From-SVN: r9581
1995-05-05 12:55:27 -06:00
Jeff Law
93ae92c1d5 pa.c (output_call): Fix typo/thinko in last change.
* pa.c (output_call): Fix typo/thinko in last change.
	(output_function_epilogue): Align the data section before
	emitting deferred plabels.

	From Torbjorn:
	* pa.c (before functions): Declare deferred_plabels and
	n_deferred_plabels.
	(output_call): When generating pic, don't use LP and RP.  Use 32 bit
	plabel instead.
	(output_function_epilogue): Output plabels accumulated in output_call.

From-SVN: r9567
1995-05-02 23:07:56 -06:00
Jeff Law
79cb82b965 * pa.c (hppa_expand_epilogue): Fix thinko in last change.
From-SVN: r9565
1995-05-02 15:15:32 -06:00
Jeffrey A. Law
473fa8ccce pa.c (hppa_expand_epilogue): Correctly handle restore of %rp for functions with a stack size of exactly...
Tue May  2 01:25:29 1995  Jeffrey A. Law  <law@snake.cs.utah.edu>

	* pa.c (hppa_expand_epilogue): Correctly handle restore of %rp
	for functions with a stack size of exactly 8kbytes and no frame
	pointer.

From-SVN: r9561
1995-05-01 23:27:01 -06:00
Torbjorn Granlund
9b38c2fa8e (output_mul_insn): Simplify, it is never called with UNSIGNEDP set.
From-SVN: r9542
1995-04-29 10:07:29 +00:00
Torbjorn Granlund
c210e6aeae (divsi3, udivsi3, modsi3, umodsi3): Simplify.
(ashlsi3): Clean up indentation and commentary.

From-SVN: r9541
1995-04-29 10:06:54 +00:00
Jeff Law
5eceed922a pa.c (emit_move_sequence): Handle function label arithmetic for PIC code generation too.
* pa.c (emit_move_sequence): Handle function label arithmetic for
	PIC code generation too.

From-SVN: r9469
1995-04-25 17:49:45 -06:00
Torbjorn Granlund
87c7361897 (call_internal_reg): Fix typos in length calculation.
(call_value_internal_reg): Likewise.

From-SVN: r9432
1995-04-21 23:39:23 +00:00
Torbjorn Granlund
a01408abbe (TARGET_SWITCHES): Fix typo.
From-SVN: r9419
1995-04-19 21:49:24 +00:00
Richard Kenner
fd84ddafb0 (override_options): Fix typo.
From-SVN: r9389
1995-04-15 13:26:23 -04:00
Jeff Law
0f5cddbdd1 pa.c (pa_reorg): Bump label use count for each entry in an exploded ADDR_VEC
* pa.c (pa_reorg): Bump label use count for each entry in an
	exploded ADDR_VEC

From-SVN: r9343
1995-04-09 22:26:01 -06:00
Jeff Law
aba892c44f * pa.c (pa_reorg): Fix typo.
From-SVN: r9340
1995-04-08 20:53:09 -06:00
Jeff Law
746a9efa80 pa.h (MACHINE_DEPENDENT_REORG): Define.
* pa.h (MACHINE_DEPENDENT_REORG): Define.
	* pa.md (switch_jump): New pattern for jumps which implement
	a switch table.
	* pa.c (pa_reorg): New function to explode jump tables.
	(pa_adjust_insn_length): Account for jumps in switch tables with
	unfilled delay slots.

From-SVN: r9318
1995-04-06 22:56:45 -06:00
Jeff Law
a65c428438 pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment problem.
* pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment
	problem.

From-SVN: r9313
1995-04-04 15:26:02 -06:00
Torbjorn Granlund
0c235d7e40 (singlemove_string): Handle SFmode constants again. Simplify.
(zdepi_cint_p): Make some variables HOST_WIDE_INT.
(lhs_lshift_cint_operand): Likewise.
(output_and): Likewise.
(output_ior): Likewise.

From-SVN: r9222
1995-03-22 21:22:57 +00:00
Jeff Law
eb6b0c8886 * x-pa (CC): Add "-Dbsd4_4".
From-SVN: r9216
1995-03-20 22:11:28 -07:00
Torbjorn Granlund
9f9fba3664 (PROMOTE_MODE): Define.
From-SVN: r9170
1995-03-10 23:17:34 +00:00
Jeff Law
aa526ccd42 Update copyrights for files modified or added in 1995.
From-SVN: r9153
1995-03-09 20:40:38 -07:00
Jeff Law
014a45652d * pa.md (movsicc): New expander.
From-SVN: r9124
1995-03-06 00:29:33 -07:00
Jeff Law
9ccd072bd4 pa.c (hppa_expand_prologue): Don't save the PIC register into the stack for functions which have no stack of...
* pa.c (hppa_expand_prologue): Don't save the PIC register into
        the stack for functions which have no stack of their own.

From-SVN: r9089
1995-02-27 00:30:31 -07:00
Jeff Law
2b10af4fab Initial revision
From-SVN: r9068
1995-02-24 17:15:36 -07:00
Jeff Law
0ed5f250a1 pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference arguments passed in registers.
* pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference
	arguments passed in registers.

From-SVN: r9026
1995-02-21 22:54:11 -07:00
Richard Kenner
8b109b37fc Added arg to RETURN_POPS_ARGS.
From-SVN: r8999
1995-02-21 18:21:14 -05:00
Jason Merrill
7d9614e0d6 Don't define LD_INIT_SWITCH.
From-SVN: r8944
1995-02-13 22:26:47 +00:00
Jeff Law
2387b8d7af pa.md (call, call_value): Emit save of the PIC register with "emit_insn" before emitting the call insn itself.
* pa.md (call, call_value): Emit save of the PIC register
	with "emit_insn" before emitting the call insn itself.

From-SVN: r8892
1995-02-08 00:53:09 -07:00
Jeff Law
cc5c9c4857 pa.md: Replace "misc" attribute with "multi" in recentlyadded soft-float code.
* pa.md: Replace "misc" attribute with "multi" in recentlyadded
	soft-float code.

From-SVN: r8875
1995-02-06 10:00:20 -07:00
Jeff Law
7ffe5e47da * pa-osf.h (TARGET_DEFAULT): Protect definition.
From-SVN: r8874
1995-02-06 09:57:29 -07:00
Torbjorn Granlund
8919037ceb (globally): Use GEN_INT.
(emit_move_sequence): Use expand_inc instead of plus_constant
(generates less rtl).

From-SVN: r8872
1995-02-06 02:55:49 +00:00
Torbjorn Granlund
5dee33ac59 Use GEN_INT.
From-SVN: r8871
1995-02-06 02:55:24 +00:00
Torbjorn Granlund
6500b83fd2 (PREDICATE_CODES): Fix many errors. Enable.
From-SVN: r8870
1995-02-06 02:44:42 +00:00
Torbjorn Granlund
74356a720d (TARGET_SOFT_FLOAT): New macro.
(TARGET_SWITCHES, CPP_SPEC, CONDITIONAL_REGISTER_USAGE, FUNCTION_VALUE,
LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P,
FUNCTION_ARG, ASM_DECLARE_FUNCTION_NAME, GO_IF_LEGITIMATE_ADDRESS,
RTX_COSTS): Use TARGET_SOFT_FLOAT.
(REAL_ARITHMETIC): Define.
(ASM_OUTPUT_DOUBLE): Rewrite.
(ASM_OUTPUT_FLOAT): Rewrite.

From-SVN: r8848
1995-02-01 00:22:38 +00:00
Torbjorn Granlund
21302ab094 (singlemove_string): Make case with SFmode CONST_DOUBLE abort.
(print_operand): #ifdef out CONST_DOUBLE cases.

From-SVN: r8847
1995-02-01 00:21:49 +00:00
Torbjorn Granlund
925cf581e5 (*sf*, *df*, etc): Make all floating point patterns depend on ! TARGET_SOFT_FLOAT.
(movsi, movdi, movsf, movdf): Add patterns for TARGET_SOFT_FLOAT.
(SF and DF move): Use constraint 'E' instead of 'F'.

From-SVN: r8846
1995-02-01 00:20:45 +00:00
Jeff Law
da6f15cdef pa.md (call, call_value): Always save the PIC register before a call.
* pa.md (call, call_value): Always save the PIC register before
	a call.

From-SVN: r8836
1995-01-28 11:55:00 -07:00
Jeff Law
a917491176 pa.md (call_internal_reg): Use an even faster sequence for TARGET_FAST_INDIRECT_CALLS.
* pa.md (call_internal_reg): Use an even faster sequence for
	TARGET_FAST_INDIRECT_CALLS.
	(call_value_internal_reg): Likewise.

From-SVN: r8834
1995-01-28 02:38:58 -07:00
Jason Merrill
35e530c58f Improve PA shlib support
From-SVN: r8792
1995-01-24 02:52:44 +00:00
Jeff Law
2d7b2c36ac pa.c (emit_move_sequence): Also handle displacements which do not fit in 14 bits for fp load/store...
* pa.c (emit_move_sequence): Also handle displacements which
	do not fit in 14 bits for fp load/store secondary reloads.

From-SVN: r8769
1995-01-17 16:42:12 -07:00
Jeff Law
dddd8006ab Update copyright years.
From-SVN: r8729
1995-01-08 21:32:49 -07:00
Jeff Law
c47decad97 pa.h (enum processor_type): New enumeration describing the processor to schedule for (700, 7100, 7100LC).
* pa.h (enum processor_type): New enumeration describing the
	processor to schedule for (700, 7100, 7100LC).
	(pa_cpu_attr, TARGET_OPTIONS, OVERRIDE_OPTIONS): Define.
	(pa_cpu_string, pa_cpu): Provide extern decls.
	* pa.c (pa_cpu, pa_cpu_string): Provide definitions.
	(override_options): New function.
	(pa_adjust_cost): Handle PROCESSOR_7100 and PROCESSOR_7100LC
	scheduling.  Handle anti-dependendy cases involving fp division
	and sqrt.  Handle output dependencies correctly.  Break TYPE_FPMUL
	into TYPE_FPMULSGL and TYPE_FPMULDBL.
	* pa.md (cpu attribute): New attribute.
	Clean up comments for PROCESSOR_700 scheduling info.  Slightly
	simplify.  Make conditional on PROCESSOR_700.
	Add comments and scheduling information for PROCESSOR_7100 and
	PROCESSOR_7100LC.  Set types for instructions which use the shifter
	to "shift".  Explicitly set lengths and types for all instructions.
	Break type "fpmul" into "fmulsgl" and "fpmuldbl".

From-SVN: r8723
1995-01-07 00:59:42 -07:00
Jeff Law
58bbca8efb pa.md (call expander): Use emit_insn_before to emit an insn to save the PIC register before a function...
* pa.md (call expander): Use emit_insn_before to emit an insn to
	save the PIC register before a function call.
	(call_value expander): Likewise.

From-SVN: r8718
1995-01-04 02:26:45 -07:00
Jeff Law
ffa8b8294b pa.h (DO_GLOBAL_DTORS_BODY): Define.
* config/pa/pa.h (DO_GLOBAL_DTORS_BODY): Define.  Include a
	reference to __gcc_plt_call so __gcc_plt_call always appears in
	executables which reference __main.

From-SVN: r8702
1994-12-28 20:06:00 -07:00
Jeff Law
65b70401ce * config/pa/t-pa (LIB2FUNCS_EXTRA): Define.
From-SVN: r8701
1994-12-28 20:05:51 -07:00
Jeff Law
22d46b2ef8 Initial revision
From-SVN: r8700
1994-12-28 20:05:41 -07:00
Jeff Law
808cfea199 * pa.c (output_movb): Fix ttypo.
From-SVN: r8693
1994-12-27 13:45:51 -07:00
Jeff Law
3ab7aa1238 * pa.md (pic2_highpart): Accept readonly operands.
From-SVN: r8665
1994-12-18 19:54:42 -07:00
Jeff Law
5bff1750e9 pa.h (readonly_section): During PIC code generation, put readonly data into the standard data section.
* pa.h (readonly_section): During PIC code generation, put
	readonly data into the standard data section.

	* pa.c (pic_label_operand): Disallow SYMBOL_REFs (constant data).

From-SVN: r8661
1994-12-17 01:43:03 -07:00