Commit Graph

2546 Commits

Author SHA1 Message Date
Richard Stallman
2c16c66660 (output_asm_insn): Advance over the = when processing %=.
From-SVN: r2447
1992-10-14 01:21:59 +00:00
Richard Stallman
2166571b8f (simplify_binary_operation): Insure that folded >> extends
the sign even if the host bootstrap compiler doesn't.

From-SVN: r2446
1992-10-14 01:20:21 +00:00
Richard Kenner
9f61f8addd Use GEN_INT when appropriate.
(define_attr type): New types for SQRT.
(call patterns): Use SCRATCH for LR0.
Use new predicate call_operand so that some integers can be
used as addresses; fix CALLI so it doesn't accept constant.
(EXBYTE, EXTHW, INBYTE, INHW): Use ZERO_EXTEND instead of AND
when combine will make it.
Use PSImode for BP value and don't reference BP explicitly.
Clean up define_expands for these operations.
(rotlsi3): Use PSImode pseudo for FC.
(sign_extend): Sign extension insns clobber BP.
({load,store}_multiple): Use PSImode pseudo for CR.
(MTSR): Add pattern for TRUNCATE from SImode to PSImode.
(sqrtsf2, sqrtdf2, movpsi): New patterns.
(load/store bytes/halfword): Clean up to accept temporaries as
input and use PSImode when required.
(movhi, movqi): Allocate temporaries here.
(reload_inqi, reload_outqi, reload_inhi, reload_outhi): New patterns.
(movdf, movdi, movti): Use SCRATCH for BP register.
(reload_{in,out}{df,di,ti}): New patterns.

From-SVN: r2445
1992-10-13 19:08:44 -04:00
Richard Kenner
100fcf4cb3 (PROMOTE_MODE, ADJUST_COST): New macros.
(CALL_USED_REGISTERS): LR0 is call-used.
(HARD_REGNO_MODE_OK): Handle MODE_PARTIAL_INT and the special
registers that can only hold those modes.
(MODES_TIEABLE_P): Clean up and handle MODE_PARTIAL_INT modes.
(enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add new
classes LR0_REGS, FC_REGS, and CR_REGS.
(REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
(PREDICATE_CODES): Update for new and deleted predicates.

From-SVN: r2444
1992-10-13 19:07:51 -04:00
Richard Kenner
fba942c46d Now includes reload.h.
(spec_reg_operand): Validate mode and know that some regs support
MODE_PARTIAL_INT and some MODE_INT.
(call_operand, reload_memory_operand, a29k_get_reloaded_address)
 New functions.
(in_operand): Allow constants with MODE_PARTIAL_INT.
(out_operand): Allow special registers with any mode.
Any MEM a word or wider is valid.
(extend_operator): Deleted.
(secondary_reload_class): A pseudo is the same as memory; we need
BP_REGS for multi-word memory or for bytes and halfword if -mndw.
(print_operand): Delete %X; add %m.
(print_operand, case 'F'): Check for SYMBOL_REF.

From-SVN: r2443
1992-10-13 19:07:05 -04:00
Richard Stallman
be71bebdc0 (stdio.h): Fix va_list when preceeded by a *.
From-SVN: r2442
1992-10-13 20:53:10 +00:00
Brendan Kehoe
13cc7b777a spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o.
* spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o.
        (LIB_SPEC): Add crtend.o for running ctors/dtors.
        * t-sol2 (EXTRA_PARTS): Add crtbegin.o and crtend.o for C++.
        (FIXINCLUDES): Deleted.
        * configure (sparc-*-solaris2*): Set fixincludes here.

From-SVN: r2441
1992-10-13 14:56:57 -04:00
Tom Wood
1c01e9df92 (loop_optimize): Verify that max_uid_for_loop is still larger than the uid of any insn.
(loop_optimize): Verify that max_uid_for_loop is still
	larger than the uid of any insn.  Increase the number of exit
	blocks from 4 to 32 per loop.
	(find_and_verify_loops): Stop trying to relocate exit blocks when
	allocating a new label would exceed max_uid_for_loop.

From-SVN: r2440
1992-10-13 18:45:45 +00:00
Richard Stallman
2988e8a39e Simplify extraction of YYEMPTY from cp-parse.c.
Generate c-parse.y, objc-parse.y from c-parse.in if required.

From-SVN: r2439
1992-10-13 18:35:12 +00:00
Jim Wilson
cab554610b (in_branch_delay): Allow fpload and fpstore.
From-SVN: r2438
1992-10-13 11:31:01 -07:00
Jim Wilson
aad3ab2fc7 Correct comment from last change.
From-SVN: r2437
1992-10-13 11:29:02 -07:00
Jim Wilson
915ee62371 (main): Only install a signal handler for signals that already have handlers.
(main): Only install a signal handler for signals
that already have handlers.
(fork_execute): Don't ignore signals before calling do_wait.

From-SVN: r2436
1992-10-13 11:24:57 -07:00
Jim Wilson
bc9c7a369c (*): Change 'f' constraint for dest to '*f' if it is not the only alternative.
(*):  Change 'f' constraint for dest to '*f' if it is not the
only alternative.  Add '*f' dest constraints to all patterns where
it is valid but was previously missing.

From-SVN: r2435
1992-10-13 11:21:37 -07:00
Jim Wilson
7c08017416 (call, call_value): No longer call i960_expand_call,
instead call call_internal/call_value_internal pattern.
(call_internal, call_value_internal): Rewrite patterns to pass new
args to i960_output_call_insn.

From-SVN: r2434
1992-10-13 11:18:30 -07:00
Jim Wilson
83f49630c3 (g14_save_reg): Delete variable.
(i960_output_call_insn): Add two new parameters arg_pointer and
scratch_reg.  Save/set/restore g14 if necessary.
(i960_expand_call): Delete function.

From-SVN: r2433
1992-10-13 11:17:38 -07:00
Jim Wilson
b716816135 (OVERRIDE_OPTIONS): Enable function inlining.
From-SVN: r2432
1992-10-13 11:16:59 -07:00
Jim Wilson
704dabc732 (movstrsi+1): Add `+' to constraints for clobbered inputs.
From-SVN: r2431
1992-10-13 11:12:24 -07:00
Jim Wilson
76542a00ce (i960_output_call_insn): Emit bx instead of b, callx instead of callj.
From-SVN: r2430
1992-10-13 11:09:59 -07:00
Jim Wilson
d4f55d3b03 (sparc_frw_output_function_prologue): Frame pointer base
must be same as for regular sparc code.

From-SVN: r2429
1992-10-13 11:06:26 -07:00
Tom Wood
64b7b7a3f6 (mostly_false_jump): Recognize a sequence properly.
From-SVN: r2428
1992-10-13 17:09:04 +00:00
Tom Wood
68403115dd (ext shift patterns): No longer needed.
From-SVN: r2427
1992-10-13 17:08:49 +00:00
Tom Wood
696223d7cd (subst): Don't change a conditional branch into a conditional move.
From-SVN: r2426
1992-10-13 10:01:01 +00:00
Richard Stallman
7f0a4b0a03 (install-fixincludes): Only delete an existing
syslimits.h if we install limits.h over it.

From-SVN: r2425
1992-10-13 07:27:14 +00:00
Jeff Law
cea3004862 * pa.h (LEGITIMIZE_ADDRESS): Fix typo.
From-SVN: r2424
1992-10-12 23:30:58 -06:00
Richard Stallman
a506307a2f (pop_function_context, push_function_context):
Call {save,restore}_varasm_status.

From-SVN: r2423
1992-10-13 05:13:01 +00:00
Richard Stallman
17d4d0e032 (install-common): Put - on cmd that handles protoize.
(gcc.o, cccp.o): Define TOOLDIR for the compilation.
(all HOST_PREFIX_1 targets): Fix typos.

From-SVN: r2422
1992-10-13 05:07:59 +00:00
Richard Stallman
1cf549b1fe entered into RCS
From-SVN: r2421
1992-10-13 04:43:39 +00:00
Richard Stallman
20f92396c3 Include hconfig.h, not config.h.
From-SVN: r2420
1992-10-13 04:40:12 +00:00
Richard Stallman
0d64891c95 Include hconfig.h, not config.h.
From-SVN: r2419
1992-10-13 04:24:45 +00:00
Richard Stallman
ae54cf6ddc Make hconfig.h.
From-SVN: r2418
1992-10-13 04:22:19 +00:00
Richard Stallman
18eb82836c Make hconfig.h.
From-SVN: r2417
1992-10-13 04:14:27 +00:00
Richard Stallman
aa40bfadfa (PRINT_OPERAND): Detect `double' constants by DFmode,
since VOIDmode means an integer.

From-SVN: r2416
1992-10-12 22:33:26 +00:00
Richard Stallman
d05c8ee724 (reg_names): Reinstate the definition here.
From-SVN: r2415
1992-10-12 22:21:04 +00:00
James Van Artsdalen
9816614945 (cmpstrM patterns): Compare strings of unsigned chars, not strings of
signed chars.

From-SVN: r2414
1992-10-12 21:38:15 +00:00
James Van Artsdalen
b329456eff (alter_cond): If CC_NOT_SIGNED, convert signed conditions to unsigned.
From-SVN: r2413
1992-10-12 21:37:11 +00:00
James Van Artsdalen
e8a2790cc7 (CC_NOT_SIGNED): New macro.
From-SVN: r2412
1992-10-12 21:36:50 +00:00
Richard Kenner
472fbdd1ca (try_combine): Save DEST of NI2PAT before calling recog_for_combine,
which might make it a PARALLEL.

From-SVN: r2411
1992-10-12 16:55:45 -04:00
Richard Stallman
460fe04f6c Delete excess fi in fixing stat.h.
From-SVN: r2410
1992-10-12 20:25:53 +00:00
Richard Kenner
e4ba89beb2 (try_combine): Fix typo in last change involving single_set.
From-SVN: r2409
1992-10-12 11:57:17 -04:00
James Van Artsdalen
aa3e8d2aba (PRINT_REG): Undo Oct 11 change.
(DEBUG_PRINT_REG): New macro, used from print-rtl.c.

From-SVN: r2408
1992-10-12 13:12:08 +00:00
Richard Kenner
83e9c679c0 (gen_lowpart_common): Allow MODE_PARTIAL_INT where MODE_INT is
allowed.

From-SVN: r2407
1992-10-12 06:31:07 -04:00
Richard Kenner
780ed3aef3 (try_combine): Properly call single_set when validating the result of
a define_split.

From-SVN: r2406
1992-10-12 06:30:37 -04:00
Richard Stallman
9ee967099f (simplify_subtraction): Declared.
From-SVN: r2405
1992-10-12 08:27:35 +00:00
Richard Stallman
57632c5153 (simplify_subtraction): New function.
From-SVN: r2404
1992-10-12 08:25:33 +00:00
Richard Stallman
1f1fd3b1f4 (output_addr_const): Call simplify_subtraction.
From-SVN: r2403
1992-10-12 08:23:25 +00:00
Richard Stallman
8b487c1f9e (calls_alloca): Don't look within DECL_INITIAL if it's 0.
From-SVN: r2402
1992-10-12 04:35:54 +00:00
James Van Artsdalen
9e06e32130 (PRINT_REG): Make register name arrays static within this macro.
From-SVN: r2401
1992-10-12 03:26:02 +00:00
Richard Kenner
4805ff591c (merge_trees): When splitting, remember to clear DUPNO in addition to
the other things we can test.

From-SVN: r2400
1992-10-11 16:27:46 -04:00
Richard Kenner
4bb4c82e20 (general_operand, immediate_operand, const_double_operand): Allow CONST_INT with MODE_PARTIAL_INT.
(general_operand, immediate_operand, const_double_operand): Allow CONST_INT
with MODE_PARTIAL_INT.
(nonmemory_operand): Likewise.

From-SVN: r2399
1992-10-11 16:27:23 -04:00
James Van Artsdalen
2247a58ce8 (notice_update_cc): Only set CC_IN_80387 for float compares.
From-SVN: r2398
1992-10-11 13:23:31 +00:00