gcc.git
30 years agoDelete some dead code.
Richard Earnshaw [Thu, 23 Jun 1994 16:02:41 +0000 (16:02 +0000)]
Delete some dead code.

(STARTFILE_SPEC): Look in the correct places for start files.
(LIB_SPEC): Define.
(LINK_SPEC): Define.
(TARGET_WHEN_DEBUGGING): Delete.
(DEFAULT_SIGNED_CHAR): Set to unsigned.
(SIZE_TYPE, PTRDIFF_TYPE, TARGET_EDOM): Define.

From-SVN: r7535

30 years ago(DBX_CONTIN_LENGTH): Set to 80.
Richard Earnshaw [Thu, 23 Jun 1994 16:02:41 +0000 (16:02 +0000)]
(DBX_CONTIN_LENGTH): Set to 80.

(DEFAULT_GDB_EXTENSIONS, DBX_NO_XREFS): Don't try to pander to dbx, it is just
to broken to use.

From-SVN: r7534

30 years ago(addsi3, subsi3, andsi3, iorsi3, ashlsi3, ashrsi3, lshrsi3, rotrsi3):
Richard Earnshaw [Thu, 23 Jun 1994 16:02:41 +0000 (16:02 +0000)]
(addsi3, subsi3, andsi3, iorsi3, ashlsi3, ashrsi3, lshrsi3, rotrsi3):

Rewrite as expand patterns.
(rotlsi3): New expand.
(matchers, and split patterns for above): New.
(all patterns with shifts): Let arm_print_operand output the ", " before a
shift if it is needed.
(zero_extendqihi2): Delete.
(zero_extendqisi2): Expand to (and ...) if not memory.
(movsi): Call arm_split_constant to generate a constant.
(movqi): Only force a MEM into a register if not reloading.
(movsf, movdf): If loading a non-immediate floating point value, or loading
and floating point immediate into integer regs, push the constant straight
into the pool.
(movdf): Get rid of the scratch register.
(reload_outdf): Rewrite to expand to the two required insns.
(matcher for movdf): Remove alternative that used scratch register for
storing.
(movxf): rewrite as expand.
(matcher for movxf): Recognize even when XFmode code is disabled, so that
prologue insns can be generated.
(Matcher for reversed conditional jump): Don't match if the mode of the
CC register is not reversible.
(prologue): New expand.
(matcher for multi_register_push insn): New.

From-SVN: r7533

30 years agoInitial revision
Richard Kenner [Thu, 23 Jun 1994 00:09:12 +0000 (20:09 -0400)]
Initial revision

From-SVN: r7532

30 years ago(m68k-ccur): New system.
Richard Kenner [Thu, 23 Jun 1994 00:03:14 +0000 (20:03 -0400)]
(m68k-ccur): New system.

From-SVN: r7531

30 years agoInclude <dirent.h>, not <sys/dir.h> on Concurrent.
Richard Kenner [Thu, 23 Jun 1994 00:01:40 +0000 (20:01 -0400)]
Include <dirent.h>, not <sys/dir.h> on Concurrent.

From-SVN: r7530

30 years ago(strength_reduce): When replacing DEST_ADDR givs, make sure resulting
Richard Kenner [Wed, 22 Jun 1994 23:53:01 +0000 (19:53 -0400)]
(strength_reduce): When replacing DEST_ADDR givs, make sure resulting
insn is valid.

From-SVN: r7529

30 years ago(LINK_SPEC): New macro.
Richard Kenner [Wed, 22 Jun 1994 22:49:13 +0000 (18:49 -0400)]
(LINK_SPEC): New macro.

From-SVN: r7528

30 years agoHandle -with-gnu-as for Alpha as it is handled for MIPS
Ian Lance Taylor [Wed, 22 Jun 1994 22:46:16 +0000 (22:46 +0000)]
Handle -with-gnu-as for Alpha as it is handled for MIPS

From-SVN: r7527

30 years ago(expand_binop): New variable next_methods; pass to most recursive calls when trying...
Richard Kenner [Wed, 22 Jun 1994 22:15:30 +0000 (18:15 -0400)]
(expand_binop): New variable next_methods; pass to most recursive calls when trying to avoid libcalls.

(expand_binop): New variable next_methods; pass to most recursive calls when
trying to avoid libcalls.
Always check for a return value of zero in recursive calls.
(expand_float): Ensure TARGET has proper mode.
Pass OPTAB_LIB_WIDEN to expand_binop calls.

From-SVN: r7526

30 years ago(skip_to_end_of_comment): Catch unterminated comments.
Doug Evans [Tue, 21 Jun 1994 18:35:15 +0000 (18:35 +0000)]
(skip_to_end_of_comment): Catch unterminated comments.

From-SVN: r7525

30 years agoinclude stdio.h and stdlib.h into assert.h as necessary
Jason Merrill [Sat, 18 Jun 1994 21:51:42 +0000 (21:51 +0000)]
include stdio.h and stdlib.h into assert.h as necessary

From-SVN: r7524

30 years agoLose assert.h hacking
Jason Merrill [Sat, 18 Jun 1994 21:51:42 +0000 (21:51 +0000)]
Lose assert.h hacking

From-SVN: r7523

30 years ago(sdbout_symbol): Use DECL_ASSEMBLER_NAME if
Jim Wilson [Sat, 18 Jun 1994 21:01:07 +0000 (14:01 -0700)]
(sdbout_symbol): Use DECL_ASSEMBLER_NAME if
DECL_LANG_SPECIFIC is set.

From-SVN: r7522

30 years ago(process_init_element): For fieldtype, don't access
Jim Wilson [Sat, 18 Jun 1994 20:58:57 +0000 (13:58 -0700)]
(process_init_element): For fieldtype, don't access
TYPE_MAIN_VARIANT field if the type is error_mark_node.

From-SVN: r7521

30 years ago(truncdisi2): Change from define_insn to define_expand.
Jim Wilson [Sat, 18 Jun 1994 20:53:45 +0000 (13:53 -0700)]
(truncdisi2): Change from define_insn to define_expand.

(truncdihi2, truncdiqi2, extendsidi2): Likewise.
(extendsidi2_internal): New pattern.

From-SVN: r7520

30 years ago(duplicate_loop_exit_test): Initialize copy to zero.
Jim Wilson [Sat, 18 Jun 1994 20:50:28 +0000 (13:50 -0700)]
(duplicate_loop_exit_test): Initialize copy to zero.

Emit jump to end lable if copy is still zero.

From-SVN: r7519

30 years ago(sdbout_one_type): Use DECL_ASSEMBLER_NAME not
Jim Wilson [Sat, 18 Jun 1994 20:48:02 +0000 (13:48 -0700)]
(sdbout_one_type): Use DECL_ASSEMBLER_NAME not
DECL_NAME for child_type that is a template type.

From-SVN: r7518

30 years ago(move_movables): Copy CALL_INSN_FUNCTION_USAGE field.
Jim Wilson [Sat, 18 Jun 1994 20:44:41 +0000 (13:44 -0700)]
(move_movables): Copy CALL_INSN_FUNCTION_USAGE field.

From-SVN: r7517

30 years ago(sdbout_one_type): Use DECL_ASSEMBLER_NAME if
Jim Wilson [Sat, 18 Jun 1994 20:42:18 +0000 (13:42 -0700)]
(sdbout_one_type): Use DECL_ASSEMBLER_NAME if
DECL_LANG_SPECIFIC is set.

From-SVN: r7516

30 years ago(dbxout_symbol): Replace DECL_IGNORED_P with
Jim Wilson [Sat, 18 Jun 1994 20:40:20 +0000 (13:40 -0700)]
(dbxout_symbol): Replace DECL_IGNORED_P with
TYPE_DECL_SUPPRESS_DEBUG.

From-SVN: r7515

30 years ago(expand_shift): Don't try extzv for lshr.
Richard Kenner [Sat, 18 Jun 1994 14:31:51 +0000 (10:31 -0400)]
(expand_shift): Don't try extzv for lshr.

From-SVN: r7514

30 years ago(lshrsi3): New define_expand.
Richard Kenner [Sat, 18 Jun 1994 14:26:15 +0000 (10:26 -0400)]
(lshrsi3): New define_expand.

From-SVN: r7513

30 years agoPass NULL_RTX for TARGET in calls to expand_{un,bin}op.
Richard Kenner [Sat, 18 Jun 1994 14:21:32 +0000 (10:21 -0400)]
Pass NULL_RTX for TARGET in calls to expand_{un,bin}op.

(expand_float): Use expand_shift instead of expand_binop.

From-SVN: r7512

30 years agoCorrect math.h handling on Lynx again.
Ian Lance Taylor [Fri, 17 Jun 1994 19:06:33 +0000 (19:06 +0000)]
Correct math.h handling on Lynx again.

From-SVN: r7511

30 years ago(simplify_binary_operation, case MINUS): Check mode of op0,
Richard Earnshaw [Fri, 17 Jun 1994 14:51:43 +0000 (14:51 +0000)]
(simplify_binary_operation, case MINUS): Check mode of op0,

instead of op1, before calling plus_constant.

From-SVN: r7510

30 years agopa.h (DEBUGGER_AUTO_OFFSET): Define.
Jeff Law [Fri, 17 Jun 1994 05:43:06 +0000 (23:43 -0600)]
pa.h (DEBUGGER_AUTO_OFFSET): Define.

* pa.h (DEBUGGER_AUTO_OFFSET): Define.  If no frame pointer
is available, then adjust the offset by the size of the current
frame.

From-SVN: r7509

30 years ago(output_inline_function): Unset DECL_DEFER_OUTPUT on
Jason Merrill [Thu, 16 Jun 1994 23:38:08 +0000 (23:38 +0000)]
(output_inline_function): Unset DECL_DEFER_OUTPUT on
        fndecl.

From-SVN: r7508

30 years ago(compile_file): Unset DECL_DEFER_OUTPUT on decls considered at end of file.
Jason Merrill [Thu, 16 Jun 1994 23:37:53 +0000 (23:37 +0000)]
(compile_file): Unset DECL_DEFER_OUTPUT on decls considered at end of file.

(compile_file): Unset DECL_DEFER_OUTPUT on decls
        considered at end of file.
(rest_of_compilation): Also postpone compilation of
        inlines with DECL_DEFER_OUTPUT set.
        (compile_file): Always emit postponed inlines if
        -fkeep-inline-functions.

From-SVN: r7507

30 years ago(DECL_DEFER_OUTPUT): New macro.
Jason Merrill [Thu, 16 Jun 1994 23:37:43 +0000 (23:37 +0000)]
(DECL_DEFER_OUTPUT): New macro.

From-SVN: r7506

30 years ago(reload_reg_free_p, case RELOAD_OTHER): Allowed to conflict with
Richard Kenner [Thu, 16 Jun 1994 22:54:00 +0000 (18:54 -0400)]
(reload_reg_free_p, case RELOAD_OTHER): Allowed to conflict with
RELOAD_FOR_OTHER_ADDRESS.

From-SVN: r7505

30 years agoCorrect argument type for ffs in string.h on Alpha OSF/1 V2.0
Ian Lance Taylor [Thu, 16 Jun 1994 14:59:50 +0000 (14:59 +0000)]
Correct argument type for ffs in string.h on Alpha OSF/1 V2.0

From-SVN: r7504

30 years ago(set_nonvarying_address_components): Rework and also handle an AND
Richard Kenner [Thu, 16 Jun 1994 10:47:10 +0000 (06:47 -0400)]
(set_nonvarying_address_components): Rework and also handle an AND
used for non-aligned accesses.

From-SVN: r7503

30 years agoChange REG_ALLOC_ORDER so the 386 bootstraps.
Michael Meissner [Thu, 16 Jun 1994 10:36:20 +0000 (10:36 +0000)]
Change REG_ALLOC_ORDER so the 386 bootstraps.

From-SVN: r7502

30 years ago(TARGET_ENV32): Mark as deprecated.
Doug Evans [Thu, 16 Jun 1994 01:07:50 +0000 (01:07 +0000)]
(TARGET_ENV32): Mark as deprecated.

(-mv9/-mno-v9): Not useable yet.
(-m{int,long}{32,64}): Clean up.
(-mptr{32,64}): Comment out for now.

From-SVN: r7501

30 years ago(warn_if_unused_value): Handle TREE_NO_UNUSED_WARNING for
Jason Merrill [Thu, 16 Jun 1994 00:47:03 +0000 (00:47 +0000)]
(warn_if_unused_value): Handle TREE_NO_UNUSED_WARNING for
        COMPOUND_EXPRs, too.

From-SVN: r7500

30 years ago(TREE_NO_UNUSED_WARNING): Note that this can be applied
Jason Merrill [Thu, 16 Jun 1994 00:47:03 +0000 (00:47 +0000)]
(TREE_NO_UNUSED_WARNING): Note that this can be applied
        to COMPOUND_EXPRs, too.

From-SVN: r7499

30 years ago(divsi3): Fix divide by 2^N with compare RTL.
Richard Kenner [Thu, 16 Jun 1994 00:40:39 +0000 (20:40 -0400)]
(divsi3): Fix divide by 2^N with compare RTL.

From-SVN: r7498

30 years ago(maxsf3, minsf3, maxdf3, mindf3): Fix predicate of define_split.
Richard Kenner [Thu, 16 Jun 1994 00:35:05 +0000 (20:35 -0400)]
(maxsf3, minsf3, maxdf3, mindf3): Fix predicate of define_split.

(muldi3): Fix predicate.
(movdf matcher): Allow update and indexed for lfd instruction.

From-SVN: r7497

30 years ago(dbxout_type): Fix call to bzero.
Doug Evans [Wed, 15 Jun 1994 23:23:33 +0000 (23:23 +0000)]
(dbxout_type): Fix call to bzero.

From-SVN: r7496

30 years ago(simplify_unary_operation): Fix typo in last change.
Richard Kenner [Wed, 15 Jun 1994 23:20:18 +0000 (19:20 -0400)]
(simplify_unary_operation): Fix typo in last change.

From-SVN: r7495

30 years ago(dbxout_range_type): Handle an array range that is neither int nor subrange.
Per Bothner [Wed, 15 Jun 1994 22:21:27 +0000 (15:21 -0700)]
(dbxout_range_type):  Handle an array range that is neither int nor subrange.

From-SVN: r7494

30 years ago40th Cygnus<->FSF merge
Mike Stump [Wed, 15 Jun 1994 18:30:58 +0000 (18:30 +0000)]
40th Cygnus<->FSF merge

From-SVN: r7493

30 years agoRemove erroneously-installed change.
Richard Kenner [Wed, 15 Jun 1994 12:22:00 +0000 (08:22 -0400)]
Remove erroneously-installed change.

From-SVN: r7492

30 years agogcc.c: Include multilib.h.
Doug Evans [Wed, 15 Jun 1994 08:04:07 +0000 (08:04 +0000)]
gcc.c: Include multilib.h.

* gcc.c: Include multilib.h.
(print_multi_lib, print_multi_directory, multilib_select,
multilib_dir): New static variables.
(option_map): Added --print-multi-lib and --print-multi-directory.
(set_spec): Get multilib_select from specs file.
(process_command): Dump multilib_select into specs file.  Handle
-print-multi-lib and -print-multi-directory.
(do_spec_1): Try multilib_dir for %D case.
(find_file): Try multilib_dir.
(main): Call set_multilib_dir.  Handle print_multi_lib and
print_multi_directory.
(used_arg, set_multilib_dir, print_multilib_info): New functions.

From-SVN: r7491

30 years ago(multilib.h, stmp-multilib, install-multilib): New targets.
Doug Evans [Wed, 15 Jun 1994 08:03:05 +0000 (08:03 +0000)]
(multilib.h, stmp-multilib, install-multilib): New targets.

(gcc.o): Depend on multilib.h.
(clean): Remove multilib.h and tmpmultilib*.

From-SVN: r7490

30 years agoInitial revision
Doug Evans [Wed, 15 Jun 1994 08:01:42 +0000 (08:01 +0000)]
Initial revision

From-SVN: r7489

30 years agoInitial revision
Doug Evans [Wed, 15 Jun 1994 07:53:49 +0000 (07:53 +0000)]
Initial revision

From-SVN: r7488

30 years agosparc.md (cpu): New attribute.
Doug Evans [Wed, 15 Jun 1994 07:50:13 +0000 (07:50 +0000)]
sparc.md (cpu): New attribute.

* sparc/sparc.md (cpu): New attribute.
(type attribute): New value cmove (conditional moves).
(cmpdi): New pattern for v9.
(seq*, sne*): Add v9 support.
(sgt,slt,sge,sle): Explicitly restrict operand 0 to the integer
registers.  Try emitting a conditional move for v9.
(sgtu,sltu,sgeu,sleu): Likewise.
(comparison insns): Add v9 versions.
(scc insns): Add DImode versions for v9.
(beq, bne, bgt, blt, bge, ble): If comparing DImode with 0 on v9,
use brxx insns.  Use emit_jump_insn, not emit_insn, as the latter
mishandles brxx insns.
(branch insns): Update calls to output_cbranch.
Add v9 versions to support multiple floating point condition code regs.
Add v9 versions to support brxx insns.
(lo_sum, high, pic): Add v9 support.
(symbolic move patterns): Disable for v9.
(DImode, DFmode, TFmode moves): Add v9 support.
(conditional move insns): Define for v9.
(zero_extendqidi2, extendqidi2, zero_extendhidi2, extendhidi2,
zero_extendsidi2, extendsidi2, floatdisf2, floatdidf2, floatditf2,
fix_truncsfdi2, fix_truncdfdi2, fix_trunctfdi2, muldi3, divdi3,
udivdi3, ashldi3, ashrdi3, lshrdi3, ffsdi2): New patterns for v9.
(bitfield compare insn): Add DImode version for v9.
(adddi3, subdi3, negdi2, anddi3, iordi3, xordi3, one_cmpldi2,
mixed mode fp mult insns, negdf2, negtf2, absdf2, abstf2, tablejump,
call, call_value, untyped_call, untyped_return, indirect_jump,
flush_register_windows, flush): Add v9 support.
(ldd peep holes): Disable for v9.
(set/compare peep hole): Define DImode version for v9.
(sign extend/compare peep hole): Likewise.
(return peep holes): Add v9 support.
(call/jump peep holes): Add v9 support.

From-SVN: r7487

30 years agosparc.c (SKIP_CALLERS_UNIMP_P): Define.
Doug Evans [Wed, 15 Jun 1994 07:49:12 +0000 (07:49 +0000)]
sparc.c (SKIP_CALLERS_UNIMP_P): Define.

* sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Define.
(sparc_cpu_type, sparc_arg_count, sparc_n_named_args,
frame_base_offset, fpconv_stack_temp): New globals.
(leaf_reg_remap): Add additional registers for v9.
(sparc_override_options, sparc64_init_expanders,
sparc64_fpconv_stack_temp, intreg_operand, ccfp_reg_operand,
data_segment_operand, text_segment_operand, v9_regcmp_op,
arith11_operand, arith10_operand, arith11_double_operand,
arith10_double_operand, gen_v9_scc, emit_v9_brxx_insn,
sparc_init_modes, build_big_number, output_v9branch,
sparc_initialize_trampoline, sparc64_initialize_trampoline):
New functions.
(arith_double_operand, gen_compare_reg, finalize_pic,
emit_move_sequence, mem_aligned_8, output_move_double,
output_move_quad, output_fp_move_double, output_fp_move_quad,
output_block_move, save_regs, restore_regs): Add v9 support.
(sparc_mode_class): New enum.
(*_MODES): Redefine to use it.
(hard_32bit_mode_classes): Renamed from hard_regno_mode_ok.
(hard_regno_mode_classes, hard_64bit_mode_classes,
sparc_mode_class): New globals.
(num_gfregs): Renamed from num_fregs.
(compute_frame_size): Add v9 support.  Simplify calculations.
(output_function_prologue): Call build_big_number to compute stack
size in %g1, then adjust %sp.
Fix saving of call saved registers.  Handle new v9 registers.
(output_function_epilogue): Fix restoration of call saved registers.
Handle new v9 registers.
Use SKIP_CALLERS_UNIMP_P to see if unimp insn is at return address.
(sparc_builtin_saveregs): Define v9 version.
(output_cbranch): New argument fp_cond_reg.  All callers changed.
Add v9 support.
(output_return): Use SKIP_CALLERS_UNIMP_P.
(print_operand): New codes '_', '@', 'C', 'D'.
(output_double_int): Handle LABEL_REF and MINUS for v9.
Use ASM_LONGLONG if assembler can handle it.

From-SVN: r7486

30 years agosparc.h (cpu_type): New enum.
Doug Evans [Wed, 15 Jun 1994 07:46:50 +0000 (07:46 +0000)]
sparc.h (cpu_type): New enum.

* sparc/sparc.h (cpu_type): New enum.
(CPP_PREDEFINES,CPP_SPEC): Add v9 support.
(NO_BUILTIN_PTRDIFF_TYPE, NO_BUILTIN_SIZE_TYPE, MAX_WCHAR_TYPE_SIZE,
SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE,
FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE, MAX_INT_TYPE_SIZE,
MAX_LONG_TYPE_SIZE): Define.
(PTRDIFF_TYPE, SIZE_TYPE, BITS_PER_WORD, MAX_BITS_PER_WORD,
UNITS_PER_WORD, MAX_UNITS_PER_WORD, LONG_DOUBLE_TYPE_SIZE,
POINTER_SIZE, PARM_BOUNDARY, STACK_BOUNDARY, SPARC_STACK_ALIGN,
EMPTY_FIELD_BOUNDARY, BIGGEST_ALIGNMENT, FIRST_PSEUDO_REGISTER,
FIXED_REGISTERS, CALL_USED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
Add v9 support.
(sparc_override_options, sparc_code_model): Declare.
(OVERRIDE_OPTIONS): Call it.
(MASK_*): Define bits set by target flags.
(TARGET_*): Use them.
({MASK,TARGET}_{V9,INT64,LONG64,PTR64,ENV32,STACK_BIAS,
MEDLOW,MEDANY,FULLANY}): Define.
(MEDANY_BASE_REG): Define.
(V9_SWITCHES, TARGET_OPTIONS): Define.
(TARGET_SWITCHES, TARGET_DEFAULT): Use MASK_*.
(SPARC_STACK_BIAS, SECONDARY_MEMORY_NEEDED_MODE): Define.
(SECONDARY_MEMORY_NEEDED): Simplify.
(hard_regno_mode_class, sparc_mode_class, sparc_cpu_type): Declare.
(REG_PARM_STACK_SPACE): Do not define if v9.
(HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, MODES_TIEABLE_P,
RETURN_IN_MEMORY, STRUCT_VALUE, STRUCT_VALUE_INCOMING, reg_class,
REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS, REG_ALLOC_ORDER,
REG_LEAF_ALLOC_ORDER, LEAF_REGISTERS, REG_CLASS_FROM_LETTER,
CLASS_MAX_NREGS, STARTING_FRAME_OFFSET, FIRST_PARM_OFFSET,
BASE_RETURN_VALUE_REG, BASE_OUTGOING_VALUE_REG, BASE_PASSING_ARG_REG,
BASE_INCOMING_ARG_REG, FUNCTION_ARG_REGNO_P): Add v9 support.
(sparc_arg_class): New enum (v9 only).
(sparc_args): New struct to record v9 arguments.
(CUMULATIVE_ARGS): Use it (v9 only).
(GET_SPARC_ARG_CLASS): Define.
(sparc_arg_count, sparc_n_named_args): Declare.
(PASS_IN_REG_P): Define.
(ROUND_REG, ROUND_ADVANCE, INIT_CUMULATIVE_ARGS, FUNCTION_ARG_ADVANCE,
FUNCTION_ARG, FUNCTION_INCOMING_ARG, FUNCTION_ARG_PARTIAL_NREGS,
FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES):
Add v9 support.
(sparc64_init_expanders, sparc64_fpconv_stack_temp): Declare.
(INIT_EXPANDERS): Define (v9 only).
(gen_v9_scc, output_v9branch): Declare.
(HAVE_conditional_move): Define.
(FUNCTION_PROFILER, FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX, REGNO_OK_FOR_FP_P,
REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P, EXTRA_CONSTRAINT,
CASE_VECTOR_MODE, Pmode, EXTRA_CC_MODES, EXTRA_CC_NAMES,
SELECT_CC_MODE, REGISTER_NAMES): Add v9 support.
(REGNO_OK_FOR_CCFP_P): Define.
(sparc_initialize_trampoline, sparc64_initialize_trampoline): Declare.
(INITIALIZE_TRAMPOLINE): Call them.
(ENCODE_SECTION_INFO): Mark functions in v9.
(RTX_COSTS): Assume MULT costs the same for v9 as v8.
(ASM_LONGLONG, ASM_FLOAT): Define.
(ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Add v9 support.

From-SVN: r7485

30 years ago* sparc/sysv4.h (ASM_OUTPUT_CASE_LABEL): Handle 64 bit pointers.
Doug Evans [Wed, 15 Jun 1994 07:45:23 +0000 (07:45 +0000)]
* sparc/sysv4.h (ASM_OUTPUT_CASE_LABEL): Handle 64 bit pointers.

From-SVN: r7484

30 years agoAdd v9 support.
Doug Evans [Wed, 15 Jun 1994 07:43:31 +0000 (07:43 +0000)]
Add v9 support.

From-SVN: r7483

30 years agogenconfig.c (main): Allow targets to override HAVE_conditional_move.
Doug Evans [Wed, 15 Jun 1994 07:42:17 +0000 (07:42 +0000)]
genconfig.c (main): Allow targets to override HAVE_conditional_move.

* genconfig.c (main): Allow targets to override HAVE_conditional_move.
* jump.c (jump_optimize): Use it at run-time.

From-SVN: r7482

30 years agoconfig.sub (sparc64): New cpu.
Doug Evans [Wed, 15 Jun 1994 07:40:43 +0000 (07:40 +0000)]
config.sub (sparc64): New cpu.

* config.sub (sparc64): New cpu.
(aout, elf): New os's.

From-SVN: r7481

30 years agoSupport 32x32->64 bit multiply
Michael Meissner [Wed, 15 Jun 1994 02:44:18 +0000 (02:44 +0000)]
Support 32x32->64 bit multiply

From-SVN: r7480

30 years agoTrivial simplification of many patterns.
Torbjorn Granlund [Wed, 15 Jun 1994 02:35:23 +0000 (02:35 +0000)]
Trivial simplification of many patterns.

(subsi3): Don't handle CONST_INT for operand 2.
(ashiftrt, op2 > 8): New pattern.
(lshiftrt, op2 > 8): New pattern.

From-SVN: r7479

30 years ago(PREDICATE_CODES): Add cmplsrcb_operand.
Torbjorn Granlund [Wed, 15 Jun 1994 02:32:24 +0000 (02:32 +0000)]
(PREDICATE_CODES): Add cmplsrcb_operand.

From-SVN: r7478

30 years ago(cmplsrcb_operand): New predicate.
Torbjorn Granlund [Wed, 15 Jun 1994 02:32:05 +0000 (02:32 +0000)]
(cmplsrcb_operand): New predicate.

From-SVN: r7477

30 years ago(logical patterns): Tune to give better code for immediate values.
Torbjorn Granlund [Wed, 15 Jun 1994 02:31:28 +0000 (02:31 +0000)]
(logical patterns): Tune to give better code for immediate values.

From-SVN: r7476

30 years agoRevert last patch: (fold, case *_DIV_EXPR): Optimize (x / C << y)...
Torbjorn Granlund [Wed, 15 Jun 1994 02:29:07 +0000 (02:29 +0000)]
Revert last patch: (fold, case *_DIV_EXPR): Optimize (x / C << y)...

From-SVN: r7475

30 years ago(MAX_SHORTS): Deleted.
Torbjorn Granlund [Wed, 15 Jun 1994 02:24:47 +0000 (02:24 +0000)]
(MAX_SHORTS): Deleted.

From-SVN: r7474

30 years ago(encode, decode): Use 4 HOST_WIDE_INTs for encoded value with HOST_BITS_PER_WIDE_INT...
Torbjorn Granlund [Wed, 15 Jun 1994 02:23:14 +0000 (02:23 +0000)]
(encode, decode): Use 4 HOST_WIDE_INTs for encoded value with HOST_BITS_PER_WIDE_INT/2 bits in each.

(encode, decode): Use 4 HOST_WIDE_INTs for encoded
value with HOST_BITS_PER_WIDE_INT/2 bits in each.
(LOWPART, HIGHPART): New macros.
(BASE): Move definition outside of div_and_round_double.
(add_double, mul_double, lshift_double, rshift_double): Rewrite.
(lrotate_double): Use LOWPART, HIGHPART, and BASE.
(rrotate_double): Likewise.
(div_and_round_double): Major changes to code for general case.
Now it actually produces non-garbage results for large operands.
(div_and_round_double): Simplify condition for special code used when
divisor < BASE.
(const_binop): Delete special cases for multiplying by 0, 1, 2, 4, 8.
(fold, case *_DIV_EXPR): Don't try to optimize for overflow.

From-SVN: r7473

30 years agoCast pointer operands to bzero, bcopy, and bcmp to (char *).
Richard Kenner [Tue, 14 Jun 1994 22:19:28 +0000 (18:19 -0400)]
Cast pointer operands to bzero, bcopy, and bcmp to (char *).

From-SVN: r7472

30 years ago(min_precision): New function.
Richard Kenner [Tue, 14 Jun 1994 21:55:38 +0000 (17:55 -0400)]
(min_precision): New function.

(finish_enum): Rewrite code to determine precision required for enumeral type.

From-SVN: r7471

30 years ago(simplify_unary_operation): Correctly and consistently handle
Richard Kenner [Tue, 14 Jun 1994 21:53:33 +0000 (17:53 -0400)]
(simplify_unary_operation): Correctly and consistently handle
CONST_INT cases for FLOAT and UNSIGNED_FLOAT.

From-SVN: r7470

30 years ago(DO_GLOBAL_CTORS_BODY): Call __builtin_alloca with a non-zero
Richard Kenner [Tue, 14 Jun 1994 21:52:06 +0000 (17:52 -0400)]
(DO_GLOBAL_CTORS_BODY): Call __builtin_alloca with a non-zero
argument, forcing a frame pointer to be needed.

From-SVN: r7469

30 years ago(sbrk): Don't declare here.
Richard Kenner [Tue, 14 Jun 1994 21:48:11 +0000 (17:48 -0400)]
(sbrk): Don't declare here.

From-SVN: r7468

30 years ago(CONST_COSTS, case CONST_INT): Fix typo.
Richard Kenner [Tue, 14 Jun 1994 21:46:43 +0000 (17:46 -0400)]
(CONST_COSTS, case CONST_INT): Fix typo.

From-SVN: r7467

30 years ago(staticp, case FUNCTION_DECL): A nested function isn't static.
Richard Kenner [Tue, 14 Jun 1994 21:44:58 +0000 (17:44 -0400)]
(staticp, case FUNCTION_DECL): A nested function isn't static.

From-SVN: r7466

30 years ago(STARTFILE_SPEC): Don't force -static for -g.
Richard Kenner [Tue, 14 Jun 1994 21:43:05 +0000 (17:43 -0400)]
(STARTFILE_SPEC): Don't force -static for -g.

From-SVN: r7465

30 years ago(rs6000_override_options): Remove MPC620 cpu variants.
Richard Kenner [Tue, 14 Jun 1994 21:41:17 +0000 (17:41 -0400)]
(rs6000_override_options): Remove MPC620 cpu variants.

From-SVN: r7464

30 years ago(TARGET_SWITCHES): Remove -mpowerpc64 and -mno-powerpc64.
Richard Kenner [Tue, 14 Jun 1994 21:40:57 +0000 (17:40 -0400)]
(TARGET_SWITCHES): Remove -mpowerpc64 and -mno-powerpc64.

From-SVN: r7463

30 years ago(reload): Process and accumulate needs for RELOAD_FOR_OPADDR_ADDR reloads.
Richard Kenner [Tue, 14 Jun 1994 21:37:25 +0000 (17:37 -0400)]
(reload): Process and accumulate needs for RELOAD_FOR_OPADDR_ADDR reloads.

When determining if needs are nongroup needs, ignore inactive or optional
reloads.
(reload_reg_used_in_op_addr_reload): New variable to indicate when reloads of
class RELOAD_FOR_OPADDR_ADDR are in use.
(mark_reload_reg_in_use, clear_reload_reg_in_use): Process reloads of class
RELOAD_FOR_OPADDR_ADDR.
(reload_reg_free_p, reload_reg_free_before_p, reloads_conflict): Likewise.
(choose_reload_regs): Support RELOAD_FOR_OPADDR_ADDR reloads.
(emit_reload_insns): Output RELOAD_FOR_OPADDR_ADDR reloads.

From-SVN: r7462

30 years ago(find_reloads): Change secondary reloads of class
Richard Kenner [Tue, 14 Jun 1994 21:36:25 +0000 (17:36 -0400)]
(find_reloads): Change secondary reloads of class
RELOAD_FOR_OPERAND_ADDRESS to RELOAD_FOR_OPADDR_ADDR.

From-SVN: r7461

30 years ago(RELOAD_FOR_OPADDR_ADDR): New reload class.
Richard Kenner [Tue, 14 Jun 1994 21:36:02 +0000 (17:36 -0400)]
(RELOAD_FOR_OPADDR_ADDR): New reload class.

From-SVN: r7460

30 years ago(find_a_file): Try EXECUTABLE_SUFFIX first, then file without the
Richard Kenner [Tue, 14 Jun 1994 21:34:01 +0000 (17:34 -0400)]
(find_a_file): Try EXECUTABLE_SUFFIX first, then file without the
suffix.

From-SVN: r7459

30 years ago(jump_optimize): Don't delete dead insn if it has a REG_RETVAL note.
Richard Kenner [Tue, 14 Jun 1994 21:32:30 +0000 (17:32 -0400)]
(jump_optimize): Don't delete dead insn if it has a REG_RETVAL note.

From-SVN: r7458

30 years ago(xstrdup): Renamed from strdup.
Richard Kenner [Tue, 14 Jun 1994 21:29:48 +0000 (17:29 -0400)]
(xstrdup): Renamed from strdup.

(check_protection): Call xstrdup, not strdup.

From-SVN: r7457

30 years agoFix whitespace in pattern.
Richard Kenner [Tue, 14 Jun 1994 21:28:37 +0000 (17:28 -0400)]
Fix whitespace in pattern.

From-SVN: r7456

30 years ago(output_prolog): Fix error in loading size of large stack frames.
Richard Kenner [Tue, 14 Jun 1994 21:26:00 +0000 (17:26 -0400)]
(output_prolog): Fix error in loading size of large stack frames.

From-SVN: r7455

30 years ago(reload_as_needed): Clear spill_reg_store at start.
Richard Kenner [Tue, 14 Jun 1994 21:23:53 +0000 (17:23 -0400)]
(reload_as_needed): Clear spill_reg_store at start.

(emit_reload_insns): Omit erroneous predicate of reload
deletion -- reload_spill_index is not indexed by regno.

From-SVN: r7454

30 years agoWrap assert.h in extern "C" { }
Ian Lance Taylor [Tue, 14 Jun 1994 20:01:08 +0000 (20:01 +0000)]
Wrap assert.h in extern "C" { }

From-SVN: r7453

30 years agojump.c (condjump_in_parallel_p): New function to detect conditional jumps within...
Jeff Law [Tue, 14 Jun 1994 19:18:43 +0000 (13:18 -0600)]
jump.c (condjump_in_parallel_p): New function to detect conditional jumps within PARALLEL insns.

        * jump.c (condjump_in_parallel_p): New function to detect
        conditional jumps within PARALLEL insns.
        (jump_optimize): Allow for some simple optimizations involving
        conditional jumps within PARALLEL insns.
        * reorg.c (get_jump_flags): Handle conditional jumps in PARALLEL
        insns.
        (get_branch_condition, fill_simple_delay_slots): Likewise.
        (fill_eager_delay_slots, relax_delay_slots, dbr_schedule): Likewise.

From-SVN: r7452

30 years agopa-osf.h (SIZE_TYPE): Define as "long unsigned int" to be compatable with system...
Jeff Law [Tue, 14 Jun 1994 19:16:07 +0000 (13:16 -0600)]
pa-osf.h (SIZE_TYPE): Define as "long unsigned int" to be compatable with system include files.

* pa-osf.h (SIZE_TYPE): Define as "long unsigned int" to be
compatable with system include files.
* pa1-osf.h (SIZE_TYPE): Likewise.

* pa1-osf.h (WCHAR_TYPE): Define as "short unsigned int".
(WCHAR_TYPE_SIZE): Define as 16 bits.

From-SVN: r7451

30 years agopa.c (output_arg_descriptor): Restore old behavior for SImode USE insns of FP registe...
Jeff Law [Tue, 14 Jun 1994 19:14:26 +0000 (13:14 -0600)]
pa.c (output_arg_descriptor): Restore old behavior for SImode USE insns of FP registers (used by untyped call...

* pa.c (output_arg_descriptor): Restore old behavior for SImode
USE insns of FP registers (used by untyped call support).

From-SVN: r7450

30 years ago(arm_reload_out_hi): Rewrite.
Richard Earnshaw [Mon, 6 Jun 1994 13:14:03 +0000 (13:14 +0000)]
(arm_reload_out_hi): Rewrite.

(arm_reload_out_hi): Rewrite.  Add support for processors running in
big-endian mode.
(fp_immediate_constant): Fix typo in argument declaration.

From-SVN: r7449

30 years ago(storehi_bigend): New expansion pattern.
Richard Earnshaw [Mon, 6 Jun 1994 13:14:03 +0000 (13:14 +0000)]
(storehi_bigend): New expansion pattern.

(storeinthi): Rework to generate better code, add big-endian support.
(movhi): Add support for processors running in big-endian mode.
(movhi_bigend): New expansion pattern.
(matcher for movhi): Remove incorrect alternative for storing HImode to
memory.  Only match when little endian.
(matcher for big-endian movhi): New pattern.
(matchers/peepholes for extended pre/post increment HImode loads): Only
match when little-endian.
(matcher for operating on adjacent memory locations): Load operation into
arith operands.
(peepholes for extended pre-increment byte loads): New patterns.

From-SVN: r7448

30 years ago(PROMOTE_MODE): Promote HImode integers as signed.
Richard Earnshaw [Mon, 6 Jun 1994 13:14:03 +0000 (13:14 +0000)]
(PROMOTE_MODE): Promote HImode integers as signed.

(BYTES_BIG_ENDIAN): Allow target description to override default.
(LOAD_EXTEND_OP): When big-endian, HImode loads are sign extended.

From-SVN: r7447

30 years ago(__gnuc_va_list): Use instead of va_list.
Doug Evans [Sun, 5 Jun 1994 01:06:20 +0000 (01:06 +0000)]
(__gnuc_va_list): Use instead of va_list.

From-SVN: r7446

30 years ago(*): Use __gnuc_va_list, not va_list.
Doug Evans [Sun, 5 Jun 1994 01:05:11 +0000 (01:05 +0000)]
(*): Use __gnuc_va_list, not va_list.

From-SVN: r7445

30 years ago(FUNCTION_PROFILER): Delete duplicate definition.
Richard Earnshaw [Sat, 4 Jun 1994 11:17:23 +0000 (11:17 +0000)]
(FUNCTION_PROFILER): Delete duplicate definition.

(FUNCTION_PROFILER, TRAMPOLINE_TEMPLATE, ASM_FILE_START,
 ASM_OUTPUT_REG_{PUSH,POP}, PRINT_OPERAND_ADDRESS):  Output register
 prefix before any explicit register name.
(ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
 ASM_OUTPUT_COMMON): Output the target dependent comment char.
(ASM_FILE_START): Output register alias for r10.
(REGISTER_NAMES): Output "r9" now for r9, not "rfp".
(ADDITIONAL_REGISTER_NAMES): New macro.

From-SVN: r7444

30 years ago(all patterns explicitly mentioning regs): Output the target dependent prefix before...
Richard Earnshaw [Sat, 4 Jun 1994 11:17:23 +0000 (11:17 +0000)]
(all patterns explicitly mentioning regs): Output the target dependent prefix before the register name.

(all patterns explicitly mentioning regs): Output the target dependent
prefix before the register name.
(all patterns with asm comments): Output the target dependent comment
character.

From-SVN: r7443

30 years ago(print_multi_reg, output_call, output_call_mem,
Richard Earnshaw [Sat, 4 Jun 1994 11:17:23 +0000 (11:17 +0000)]
(print_multi_reg, output_call, output_call_mem,

 output_mov_long_double_fpu_from_arm,
 output_mov_long_double_arm_from_fpu,
 output_mov_double_fpu_from_arm, output_mov_double_arm_from_fpu,
 output_return_instruction, output_func_{prologue,epilogue},
 arm_print_operand, output_load_symbol):  Print the register prefix
before each register name.
(output_func_prologue, output_lcomm_directive):  Output the target
dependent comment char for asm comments.

From-SVN: r7442

30 years ago(make_decl_rtl): If section attribute is being ignored, really ignore it.
Doug Evans [Fri, 3 Jun 1994 22:13:55 +0000 (22:13 +0000)]
(make_decl_rtl): If section attribute is being ignored, really ignore it.

From-SVN: r7441

30 years ago(decl_attributes): Fix section attribute breakage.
Doug Evans [Fri, 3 Jun 1994 22:12:54 +0000 (22:12 +0000)]
(decl_attributes): Fix section attribute breakage.

From-SVN: r7440

30 years ago39th Cygnus<->FSF merge
Mike Stump [Fri, 3 Jun 1994 21:42:31 +0000 (21:42 +0000)]
39th Cygnus<->FSF merge

From-SVN: r7439

30 years ago(FP_REGNO_P): New macro for intra file usage.
Torbjorn Granlund [Fri, 3 Jun 1994 19:50:48 +0000 (19:50 +0000)]
(FP_REGNO_P): New macro for intra file usage.

(REGNO_OK_FOR_FP_P): Use FP_REGNO_P.
(FUNCTION_VALUE_REGNO_P): Revert last change.
(CONDITIONAL_REGISTER_USAGE): Partially revert last changes;
Make non-existing 1.0 fp regs fixed, including odd-numbered regs.
(enum reg_class): Get rid of SNAKE_FP_REGS, GENERAL_OR_SNAKE_FP_REGS,
and NON_SHIFT_REGS.
(REG_CLASS_NAMES): Likewise.
(REG_CLASS_CONTENTS): Likewise.
(REGNO_REG_CLASS): Likewise.
(HARD_REGNO_MODE_OK): Corresponding changes.  Don't force 1.0 fpregs
to even regno here; fixed_regs does the job better.
(FP_REG_CLASS_P): Get rid of SNAKE_FP_REGS.
(REG_CLASS_FROM_LETTER, case 'z'): Deleted.
(HARD_REGNO_NREGS): Partially revert last change.
(CLASS_MAX_NREGS): Partially revert last change.

From-SVN: r7438

30 years ago(mulsi3): Use MATCH_DUP for op3, not MATCH_OPERAND.
Torbjorn Granlund [Fri, 3 Jun 1994 19:50:04 +0000 (19:50 +0000)]
(mulsi3): Use MATCH_DUP for op3, not MATCH_OPERAND.

(globally): Delete 'x' constraint or change it to 'f', as apropriate.

From-SVN: r7437

30 years ago(all patterns): Update instruction generation to reflect new meanings of constraints...
Richard Earnshaw [Fri, 3 Jun 1994 13:18:24 +0000 (13:18 +0000)]
(all patterns): Update instruction generation to reflect new meanings of constraints 'K' and 'L'.

(all patterns): Update instruction generation to reflect new meanings of
constraints 'K' and 'L'.  Use output type 'B' to generate an inverted
constant.  Use output type 'N' to generate a negated floating point
constant.

From-SVN: r7436