Commit Graph

2476 Commits

Author SHA1 Message Date
Timothy Moore
8a9c76f3c2 pa.c (compute_frame_size): Take an fregs_live parameter instead of setting the static variable save_fregs.
* pa.c (compute_frame_size): Take an fregs_live parameter instead
        of setting the static variable save_fregs.
        (output_function_prologue): Initialize save_fregs to 0 and pass to
        compute_frame_size.

From-SVN: r2477
1992-10-15 15:57:18 +00:00
Richard Kenner
459a265325 (fold): Add missing test in case when we distribute a NOP_EXPR into a
COND_EXPR and try to pull it back out again.

From-SVN: r2476
1992-10-15 08:39:59 -04:00
Tom Wood
76d4178822 (CPP_SPEC): Add -D__m88110__ when -m88110 is in effect,
similarly for -m88100.

From-SVN: r2475
1992-10-15 12:09:23 +00:00
Tom Wood
bf1fec41b9 (CPP_PREDEFINES): Drop -Dmc88100.
(CPP_SPEC): Reproduce the predefine -Dmc88100 when -m88100 is in
	effect.  Otherwise, supply -D__mc881x0__ when -m881x0 is in effect.

From-SVN: r2474
1992-10-15 12:08:51 +00:00
Tom Wood
8227896cf6 (simple_operand_p): Don't regard global or static variables as simple.
(simple_operand_p): Don't regard global or static
	variables as simple.
	(fold_truthop): Only require the RHS to be simple.

From-SVN: r2473
1992-10-15 11:39:38 +00:00
Richard Stallman
d15d0264a9 [L_ctors] (__CTOR_LIST__, __DTOR_LIST__):
Initialize these default definitions if __NeXT__.

From-SVN: r2472
1992-10-15 08:25:16 +00:00
Richard Stallman
07a3713d5d Initial revision
From-SVN: r2471
1992-10-15 08:15:14 +00:00
Richard Stallman
7dea1d59ea [__NeXT__]: Define _VA_LIST_ if _ANSI_STDARG_H_ was
defined; then define _ANSI_STDARG_H_.

From-SVN: r2470
1992-10-15 08:08:16 +00:00
Richard Stallman
cac47212eb (_ANSI_STDDEF_H): Define, along with _STDDEF_H.
From-SVN: r2469
1992-10-15 08:05:45 +00:00
Richard Stallman
1c64de1759 (INCLUDE_DEFAULTS): New macro.
From-SVN: r2468
1992-10-15 07:52:15 +00:00
Richard Stallman
5365d6ee18 (main): If COLLECT_GCC is a relative name, use it anyway.
From-SVN: r2467
1992-10-15 06:11:01 +00:00
Richard Stallman
46cca58cf7 (DEBUG_REGISTER_NAMES): New macro definition.
From-SVN: r2466
1992-10-15 05:10:32 +00:00
Richard Stallman
78e3321337 (__gcc_bcmp): Don't depend on signedness of `char'.
From-SVN: r2465
1992-10-15 05:04:48 +00:00
Jim Wilson
22162da3d7 (sched_note_set): Set subreg_p for anything except a paradoxical subreg.
From-SVN: r2464
1992-10-14 15:57:42 -07:00
Jim Wilson
ea9c5b9e08 (find_reloads): Don't let an operand have a numbered
constraint that makes it match itself.

From-SVN: r2463
1992-10-14 15:51:59 -07:00
Richard Kenner
c0e126010f Fix typo in comment at start of file.
From-SVN: r2462
1992-10-14 18:17:05 -04:00
Jeff Law
43369be5d2 Put back changes lost in the last update of pa.h
From-SVN: r2461
1992-10-14 10:16:35 -06:00
Timothy Moore
d2a94ec006 *** empty log message ***
From-SVN: r2460
1992-10-14 14:50:17 +00:00
Timothy Moore
12c83d0b35 Initial revision
From-SVN: r2459
1992-10-14 14:35:44 +00:00
Richard Kenner
eee4bff6c2 (call, call_value): Don't use call_operand, since checking for
recursive calls at this point is not safe.

From-SVN: r2458
1992-10-14 07:19:23 -04:00
Richard Kenner
eb9aa33885 (call, call_value): Don't use call_operand, since checking for
recursive calls at this point is not safe.

(const_16_operand, const_24_operand, gpc_reg_or_immediate_operand):
Fix typo in declaration of MODE.
(and_operand, add_operand): Likwise.

From-SVN: r2457
1992-10-14 07:17:03 -04:00
Richard Stallman
a4f6608ca2 Some comments and whitespace cleaned up. RCS headers removed.
Include gstddef.h and objc-proto.h.
Don't include objcP.h or objc-protoP.h.
Avoid use of u_int, etc. so no need for sys/types.h.
Adjust for change in node_table field data type.

Fix calls to DEBUG_PRINTF; no longer wants stream as arg.

From-SVN: r2456
1992-10-14 09:49:27 +00:00
Richard Stallman
437b93370d (reg_names): Make it static. Use DEBUG_REGISTER_NAMES if that's defined.
(DEBUG_PRINT_REG): Define if not defined.
(print_rtx): Use DEBUG_PRINT_REG for hard regs.

(reg_name): Moved here.
Get rid of RCS headers.  Fix up whitespace and comments.
Make key field and corresponding args `const void *'.
Don't use assert.
Get rid of spurious array-level in node_table field; make it void **.
Declare module_hash_table, class_hash_table.
(hash_int): Divide by sizeof (void *), not by 2**that minus 1.

From-SVN: r2455
1992-10-14 09:32:39 +00:00
Richard Stallman
584322a463 Removed due to issues
From-SVN: r2454
1992-10-14 09:29:26 +00:00
Jeff Law
da8dce4a29 * pa.h (RTX_COST): Fix spacing typo.o
From-SVN: r2453
1992-10-14 01:11:36 -06:00
Richard Stallman
0ae2f0ff0c (sys/stream.h, sys/strsubr.h): Delete spurious `extern'
in various structure definitions.

From-SVN: r2452
1992-10-14 04:37:09 +00:00
Richard Stallman
cf99a7342b (reg_names): Make it static. Use DEBUG_REGISTER_NAMES if that's defined.
(DEBUG_PRINT_REG): Define if not defined.
(print_rtx): Use DEBUG_PRINT_REG for hard regs.

(reg_name): Moved here.

From-SVN: r2451
1992-10-14 04:23:52 +00:00
Richard Stallman
7124e1e508 (jump_optimize): Don't optimize jumps to store-flag insns
when BLKmode values are being compared.

From-SVN: r2450
1992-10-14 04:21:51 +00:00
Richard Stallman
fb3ef382a4 (single_set): fix typo in REG_UNUSED check.
From-SVN: r2449
1992-10-14 04:02:16 +00:00
Chris Smith
0bd2462c23 updates for 2.3
From-SVN: r2448
1992-10-14 01:27:21 +00:00
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