Doug Evans [Wed, 29 Nov 1995 23:08:59 +0000 (23:08 +0000)]
svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling.
* svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling.
(MD_STARTFILE_PREFIX): Likewise.
(LINK_SPEC): Don't use absolute path names if cross compiling.
Jim Wilson [Wed, 29 Nov 1995 18:55:34 +0000 (10:55 -0800)]
(duplicate_decls): Add new paramter different_binding_level.
Lots of changes to use new new parameter.
(pushdecl): Delete variable declared_global. New variable
different_binding_level and code to set it. Move extern/static
warning before duplicate_decls call. Don't let global typedefs
conflict with nested extern declarations. Move oldglobal test
inside code for setting IDENTIFIER_LIMBO_VALUE.
(lookup_name_current_level_global): Delete.
Jeff Law [Mon, 27 Nov 1995 08:31:46 +0000 (01:31 -0700)]
pa.h (ASM_OUTPUT_EXTERNAL): Don't let assemble_name clobber the value of TREE_SYMBOL_REFERENCED.
* pa.h (ASM_OUTPUT_EXTERNAL): Don't let assemble_name clobber
the value of TREE_SYMBOL_REFERENCED.
* pa-ghpux9.h (LINK_SPEC): Pass "-z" to the linker to enable
trap on null pointer dereference for programs built on hpux9.
* pa-hpux9.h, pa1-ghpux9.h, pa1-hpux9.h: Likewise.
* pa.c (output_function_prologue): No longer need to keep
track of the total number code bytes when TARGET_GAS &&
not TARGET_PORTABLE_RUNTIME.
* pa.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use .NSUBSPA when
not TARGET_PORTABLE_RUNTIME.
(ASM_OUTPUT_FUNCTION_PREFIX): Define. Prefix functions with
.NSUBSPA when TARGET_GAS and not TARGET_PORTABLE_RUNTIME.
* pa.md (symbolic high patterns): Use 'H' to print the symbolic
address so that the constant part gets rounded.
* pa.c (print_operand): Handle 'H' operand for high part of a
symbolic address with a rounded constant.
(output_global_address): New argument "rounded_constant". All
callers changed appropriately.
* pa.h (CPP_SPEC): Only pass -D_HPUX_SOURCE and -D_HIUX_SOURCE if
-ansi is not present.
(CPP_PREDEFINES): Remove -D_HPUX_SOURCE and/or -D_HIUX_SOURCE.
* pa-ghiux.h (CPP_PREDEFINES): Likewise.
* pa-gux7.h (CPP_PREDEFINES): Likewise.
* pa-hiux.h (CPP_PREDEFINES): Likewise.
* pa-hpux.h (CPP_PREDEFINES): Likewise.
* pa-hpux7.h (CPP_PREDEFINES): Likewise.
* pa1-ghiux.h (CPP_PREDEFINES): Likewise.
* pa1-hiux.h (CPP_PREDEFINES): Likewise.
* pa-hpux.h (LINK_SPEC): If -mlinker-opt, then pass -O to the
linker.
* pa-ghpux.h, pa-hpux9.h, pa-ghpux9.h: Likewise.
* pa1-ghpux9.h, pa1-hpux9.h: Likewise.
* pa.h (LINK_SPEC): Likewise.
(TARGET_SWITCHES): Add -mlinker-opt.
* pa.md (all peepholes): Disable if TARGET_SOFT_FLOAT.
* pa.c (pa_reorg): If TARGET_GAS, then emit insns to mark
the beginning and end of the branch table.
* pa.md (begin_brtab): New insn. Just a marker so GCC knows
where to put the .begin_brtab pseudo-op.
(end_brtab): Similarly.
* pa.h (EXTRA_SECTIONS): Add in_ctors and in_dtors if
CTORS_SECTION_FUNCTION is defined. Else define dummy
versions of CTORS_SECTION_FUNCTION and DTORS_SECTION_FUNCTION.
(EXTRA_SECTION_FUNCTIONS): Add CTORS_SECTION_FUNCTION and
DTORS_SECTION_FUNCTION.
* pa.md: Add peepholes to improve spill code generated
by reload when we run out of FP registers.
Jeff Law [Mon, 27 Nov 1995 07:55:04 +0000 (00:55 -0700)]
pa.md (call expanders): For indirect calls, load %r22 with the function's address.
* pa.md (call expanders): For indirect calls, load %r22 with the
function's address.
(indirect call patterns): No need to copy the call address into
%r22 anymore.
* pa.c (output_cbranch): Fix buglet in length handling of
backwards branches with unfilled delay slots.
(output_bb, output_bvb, output_dbra, output_movb): Likewise.
* pa.md: Fix off-by-one error in length computations for all
conditional branch patterns.
* pa.h (output_bvb): Declare.
* pa.c (output_bvb): New function to output branch on variable
bit insns.
* pa.md (branch-on-variable-bit): New patterns.
* pa.h (TARGET_MILLICODE_LONG_CALLS): Delete swtich and all
references.
(output_millicode_call): Declare new function
* pa.md (millicode calls): Update length computation to handle
variable length millicode calls.
(call pattners): Likewise.
(indirect call patterns): Update length compuations and output
templates to handle variable length millicode calls.
(plabel_dereference): Likewise.
* pa.c (override_options): Give warnings when incompatable
options are used.
(output_mul_insn): Call output_millicode_call instead of
output_call, eliminate last argument to output_millicode_call.
(output_div_insn): Likewise.
(output_mod_insn): Likewise.
(output_call): Rewrite long call code to handle variable length
millicode calls. Eliminate support for calling mul, div and mod
millicode routines.
(output_millicode_call): New function for calling mul, div and mod
millicode routines.
Jeff Law [Mon, 27 Nov 1995 07:33:58 +0000 (00:33 -0700)]
pa.md (abssi2): New pattern.
* pa.md (abssi2): New pattern.
* pa.c (secondary_reload_class): Loads from reg+d addresses into
FP registers don't need secondary reloads.
* pa.h: Delete soem #if 0 code. Update some comments.
(EXTRA_CONSTRAINT, case 'Q'): Only accept valid memory addresses.
* pa.h (RTX_COSTS): Tege's rewrite.
* pa.c (hppa_legitimize_address): Generate unscaled indexed
addressing for (plus (symbol_ref) (reg)).
(emit_move_sequence): Set REGNO_POINTER_FLAG appropriately
to encourage unscaled indexing modes.
(basereg_operand): New function for unscaled index address support.
* pa.md (unscaled indexing patterns): New patterns for unscaled
index address support.
* pa.h (MOVE_RATIO): Define.
* pa.md (movstrsi expander): Refine tests for when to use the
library routine instead of an inlined loop copy. Provide an
additional scratch register for use in the inlined loop copy.
(movstrsi_internal): Name the pattern for ease of use. Add
additional scratch register.
* pa.c (output_block_move): Greatly simplify. Use 2X unrolled
copy loops to improve performance.
(compute_movstrsi_length): Corresponding changes.
* pa.c (print_operand): Handle 'y' case for reversed FP
comparisons. Delete some #if 0 code. Fix various comment typos.
* pa.md (fcmp patterns): Try and reverse the comparison to avoid
useless add,tr insns.
Richard Kenner [Sun, 26 Nov 1995 17:08:18 +0000 (12:08 -0500)]
(alpha_emit_set_const): Don't output SImode sequences that rely on invisible overflow.
(alpha_emit_set_const): Don't output SImode sequences that rely on
invisible overflow. Sign extend new when SImode. Don't recur if new
== c. Don't allow shift outside mode. Make logical right shift be
unsigned.
Richard Kenner [Thu, 9 Nov 1995 16:20:56 +0000 (11:20 -0500)]
(cmphf): Addd Base Reg with Offset address mode (LB,STB,..)
(cmphf): Addd Base Reg with Offset address mode (LB,STB,..)
(movqi,movhi,movhf,addqi3,addhf3,subqi3,subhf3,mulqihi3): Likewise.
(mulhf3,divhf3,andqi3,iorqi3): Likewise.
(define_peephole): Remove the Base mode peepholes. Replace the
special addqi define_insn for "LIM Ra,sym,Rb" by a define_peephole.
(ashlqi3): Took out futile 0th alternative.
(lshrqi3, lshrhi3, ashrqi3, ahsrhi3): Correct case of non-constant
shift count.
Richard Kenner [Sun, 5 Nov 1995 23:36:49 +0000 (18:36 -0500)]
(cmpxf): Don't call force_const_mem, it looses for PIC;
get predicates right instead. Get rid of separate DEFINE_EXPAND.
(addxf3, subxf3, mulxf3, divxf3): Likewise.
(All XFmode patterns): Delete `F' and `G' constraints.
(absxf2): Delete spurious condition on TARGET_FPA.
(negxf2): Likewise.
Richard Kenner [Sun, 5 Nov 1995 15:53:40 +0000 (10:53 -0500)]
(CONDITIONAL_REGISTER_USAGE): Make sure FP regs get disabled regardless of...
(CONDITIONAL_REGISTER_USAGE): Make sure FP regs get disabled
regardless of PA1.0 vs PA1.1 code generation when TARGET_SOFT_FLOAT or
TARGET_DISABLE_FPREGS is on.