Commit Graph

2638 Commits

Author SHA1 Message Date
Richard Stallman
37a5211207 (output_addressed_constants): Handle NON_LVALUE_EXPR.
From-SVN: r2489
1992-10-16 08:35:42 +00:00
Jeff Law
726a04b41f pa.c (call_operand_address): Only allow registers if TARGET_LONG_CALLS.
* pa.c (call_operand_address): Only allow registers if
        TARGET_LONG_CALLS.

From-SVN: r2488
1992-10-16 00:24:19 -06:00
Jeff Law
6efdeb47f6 * pa.h (TARGET_SWITCHES): New switch "-mlong-calls".
From-SVN: r2487
1992-10-16 00:24:08 -06:00
Jeff Law
5cf2759eb4 pa.md (call define_expands): If TARGET_LONG_CALLS, then force the address of the function into a register.
* pa.md (call define_expands): If TARGET_LONG_CALLS, then force
        the address of the function into a register.

From-SVN: r2486
1992-10-16 00:23:57 -06:00
Richard Stallman
ea727bbf20 (libobjc.a): Get directories right, using shell vars thisdir1, srcdir1.
Put quotes around $(GCC_CFLAGS).  Use $(MAKE).

From-SVN: r2485
1992-10-16 04:23:33 +00:00
Richard Stallman
fced8ba341 (distribute_bit_expr): Test for BIT_{AND,IOR}_EXPR.
From-SVN: r2484
1992-10-16 02:49:07 +00:00
Mike Stump
fa771c3751 Add support for a new 64 bit CPU type. Elxsi.
From-SVN: r2483
1992-10-15 21:06:27 +00:00
Mike Stump
99281ca45f entered into RCS
From-SVN: r2482
1992-10-15 20:59:46 +00:00
Richard Kenner
6702af89af (cse_insn): Add missing call to apply_change_group.
From-SVN: r2481
1992-10-15 16:55:08 -04:00
Michael Meissner
72cc54448c Do not pass -G 0 when building libgcc.a.
From-SVN: r2480
1992-10-15 19:08:11 +00:00
Michael Meissner
c903545b96 Allow spaces in tag names.
From-SVN: r2479
1992-10-15 18:29:53 +00:00
Timothy Moore
907b717923 (INITIAL_FRAME_POINTER_OFFSET): Pass extra null parameter
to compute_frame_size..

From-SVN: r2478
1992-10-15 15:57:37 +00:00
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