6832 Commits

Author SHA1 Message Date
Richard Kenner
484c392430 (jump_optimize): Delete REG_LABEL note if label no longer in insn.
From-SVN: r6745
1994-03-11 08:29:36 -05:00
Richard Kenner
d18225c493 Use PVPROTO for varargs prototypes.
From-SVN: r6744
1994-03-11 08:01:45 -05:00
Richard Kenner
bdea67faf3 (PVPROTO): New macro.
From-SVN: r6743
1994-03-11 07:58:05 -05:00
Richard Kenner
7d49f92a42 (finish_decl): When preserving an initializer, ensure its type is on a
good obstack.

From-SVN: r6742
1994-03-11 07:21:22 -05:00
Richard Kenner
36281332fc (emit_reload_insns): When clearing reg_last_reload_reg, clear all hard
regs in reload_out.

From-SVN: r6741
1994-03-10 15:32:26 -05:00
Richard Kenner
eadbc96110 (dup2): Catch dup() failure. Return correct value.
From-SVN: r6740
1994-03-10 15:23:01 -05:00
Richard Kenner
4b19dee8c6 ([__MSDOS__]): Use #ifdef, not #if.
From-SVN: r6739
1994-03-10 15:18:00 -05:00
Richard Kenner
53e52f00a4 (main, finclude, check_precompiled): When safe_read returns a partial buffer, this means EOF has been reached...
(main, finclude, check_precompiled): When safe_read returns a partial
buffer, this means EOF has been reached; don't try to read any more.

From-SVN: r6738
1994-03-10 15:02:45 -05:00
Doug Evans
cd86f81df5 (extraclean): Remove djefoo cruft.
From-SVN: r6737
1994-03-10 17:44:12 +00:00
Richard Kenner
09b58bbd8b (movqi): Disable special-case of stack push if operand one is an
address register.

From-SVN: r6736
1994-03-09 20:38:31 -05:00
Richard Kenner
281bb5e4ea (target_negative): -0 counts as negative.
From-SVN: r6735
1994-03-09 18:47:18 -05:00
Richard Kenner
b9b5c1b376 (fold, case MULT_EXPR): Simplify MULT_EXPR of an EXACT_DIV_EXPR with
the same divisor as our multiplicand.

From-SVN: r6734
1994-03-09 16:50:25 -05:00
Richard Kenner
6946afd3a5 (pointer_int_sum): Multiplication should be done signed.
(pointer_diff): Likewise the division.

From-SVN: r6733
1994-03-09 16:49:14 -05:00
Richard Kenner
7a3b13d103 (rtx_equal_for_tmemref_p): Commutative operations are identical if the
operands match in the opposite order.

From-SVN: r6732
1994-03-09 15:31:49 -05:00
Richard Kenner
413c72c289 (rtx_equal_for_thread_p): Commutative operations are identical if the
operands match in the opposite order.

From-SVN: r6731
1994-03-09 15:31:06 -05:00
Richard Kenner
1a7c818bd6 (simplify_relational_operation): Fix typos; use
ARG_POINTER_REGNUM and FRAME_POINTER_REGNUM in condtionals.

From-SVN: r6730
1994-03-09 12:07:12 -05:00
Richard Kenner
2cca6e3f3d (break_out_memory_refs): Don't call mark_reg_pointer here.
(memory_address): Call it here if X changed and is now a REG or REG +
CONST_INT.

From-SVN: r6729
1994-03-08 16:12:01 -05:00
Jim Wilson
2fe204da02 (write_vtable_entries, finish_file): Likewise.
From-SVN: r6728
1994-03-08 12:56:07 -08:00
Jim Wilson
0a3732d1de (finish_function): Likewise.
From-SVN: r6727
1994-03-08 12:54:14 -08:00
Jim Wilson
96bcb120c4 (permanent_allocation): Add prototype.
From-SVN: r6726
1994-03-08 12:53:39 -08:00
Jim Wilson
2b417d3cca (momentary_function_firstobj): New variable.
(init_obstack): Set it.
(save_tree_status): Save it and set it.
(restore_tree_status): Use it and restore it.
(permanent_allocation): New parameter function_end.  Clear
momentary_obstack to momentary_function_firstobj if true.
(preserve_initializer): Set base field of every momentary
level on the momentary stack to new momentary_firstobj.
(pop_momentary): Only free back to previous base.

From-SVN: r6725
1994-03-08 12:53:01 -08:00
Jim Wilson
b810045319 (struct function): Add momentary_function_firstobj
field.

From-SVN: r6724
1994-03-08 12:51:59 -08:00
Jim Wilson
f030d6e652 (compile_file): Likewise.
From-SVN: r6723
1994-03-08 12:51:13 -08:00
Jim Wilson
3e755d23ce (finish_decl): When saving/discarding initializers,
don't check TREE_PERMANENT and TREE_STATIC.
(finish_decl, finish_function): Pass new argument to
permanent_allocation.

From-SVN: r6722
1994-03-08 12:49:11 -08:00
Jim Wilson
bb98bc58b6 (LINK_SPEC): Do not depend on gas.
(LINK_SPEC): Do not depend on gas.  Don't interpret -EB
and -EL options, but do pass them.
(ASM_SPEC): Make definition depend on whether or
not the default assembler is gas.  Pass all normal assembler
options to gas.
(ASM_FINAL_SPEC): Cross compiling does not presume gas.

From-SVN: r6721
1994-03-07 17:48:08 -08:00
Jim Wilson
3f40de7333 (LINK_SPEC): Do not depend on gas.
(LINK_SPEC): Do not depend on gas.  Don't interpret -EB
and -EL options, but do pass them.

From-SVN: r6720
1994-03-07 17:47:22 -08:00
Jim Wilson
4065d1d2ef (ASM_SPEC, LINK_SPEC): Delete.
From-SVN: r6719
1994-03-07 17:46:59 -08:00
Jim Wilson
a274efa37f (LINK_SPEC): Delete.
From-SVN: r6718
1994-03-07 17:46:43 -08:00
Jim Wilson
ae6b7a9db0 (LINK_SPEC): Likewise.
(ASM_SPEC): Likewise.
(SIZE_TYPE): Delete.
(MAX_WCHAR_TYPE_SIZE): Define.

From-SVN: r6717
1994-03-07 17:46:14 -08:00
Jim Wilson
bc9082a22c (LINK_SPEC): Pass all normal linker options to gld.
(ASM_SPEC): Pass all normal assembler options to gas.

From-SVN: r6716
1994-03-07 17:43:22 -08:00
Jim Wilson
68869126d3 (ASM_SPEC): Make definition depend on whether or not the default assembler is gas.
(ASM_SPEC):  Make definition depend on whether or
not the default assembler is gas.  Pass all normal assembler
options to gas.  Pass -O0 if the assembler is not gas.

From-SVN: r6715
1994-03-07 17:39:43 -08:00
Jim Wilson
22cb6fe8cc Initial revision.
From-SVN: r6714
1994-03-07 17:30:31 -08:00
Jim Wilson
3b780899f9 (expand_call): For pcc_struct_value case, set
MEM_IN_STRUCT_P correctly on target.

From-SVN: r6713
1994-03-07 17:19:20 -08:00
Jim Wilson
813fc11c29 (mostlyclean): Don't explicitly delete ld.
From-SVN: r6712
1994-03-07 17:10:40 -08:00
Jim Wilson
338f21bef3 (print_symbol): The index field of a global symbol is the symbol table index of the corresponding local symbol...
(print_symbol): The index field of a global symbol
is the symbol table index of the corresponding local symbol, not
an index into the aux table.
(print_file_desc): Print out size of line number
information rather than repeating line number count.
(print_file_desc): The cbLineOffset field of a PDR
is relative to the cbLineOffset field of the FDR.  Also, when
computing line_end of the last PDR, use cbLineOffset, not
ilineBase.

From-SVN: r6711
1994-03-07 17:06:13 -08:00
Richard Kenner
d71cf0ca69 (GPLUSPLUS_INCLUDE_DIR): Deleted.
(STARTFILE_SPEC): Remove "-nojump".

From-SVN: r6710
1994-03-07 17:42:29 -05:00
Richard Kenner
08824e9e24 (gxx_prefix): New; default to $(libdir).
(GPLUSPLUS_INCLUDE_DIR): Change to $(gxx_prefix)/g++-include.

From-SVN: r6709
1994-03-07 17:41:38 -05:00
Richard Kenner
42e2194b02 (no_record_file): New variable.
(main): Set it for -imacros and -include files.
(do_endif): Don't call record_control_macro for -include or -imacros files or
files included from -imacros.

From-SVN: r6708
1994-03-07 13:26:52 -05:00
Richard Stallman
df71662348 Accept freebsd as OS.
From-SVN: r6707
1994-03-07 02:49:06 +00:00
Richard Kenner
70ceb90611 Add prototypes for static functions.
(last_{jump,label}_suid): Deleted; all uses deleted.
(reg_crosses_blocks): Likewise.
(stupid_life_analysis): Only allocate MAX_SUID entries of after_insn_hard_regs.
Use GET_RTX_CLASS when possible.
Initialize all of reg_renumber.
Use reg_alternate_class when reg not available in preferred class.
(stupid_find_reg): Delete argument CROSSES_BLOCKS.

From-SVN: r6706
1994-03-06 17:18:11 -05:00
Richard Kenner
63cc239cc6 (stupid_mark_refs): If setting reg_where_dead, set regs_live so we
don't later clobber it.

From-SVN: r6705
1994-03-06 16:16:08 -05:00
Richard Kenner
4d3067db2c (constrain_operands): Properly handle '#' in constraint.
From-SVN: r6704
1994-03-06 15:17:55 -05:00
Richard Kenner
8079805dec (subst): Split into five functions.
(simplify_{rtx,if_then_else,set,logical}): New functions.

From-SVN: r6703
1994-03-06 14:39:37 -05:00
James Van Artsdalen
02fa128466 (find_blocks): Undo previous change to block delineation algorithm.
(reg_to_stack): Make algorithm identical to that in find_blocks.

From-SVN: r6702
1994-03-06 19:14:32 +00:00
Richard Kenner
c5ffba1a05 (build_nt, build_parse_node): Remove `register' from decl of CODE.
From-SVN: r6701
1994-03-05 19:39:23 -05:00
Richard Kenner
91c3c0a817 (attr_printf): Remove `register' from decl of FMT.
From-SVN: r6700
1994-03-05 19:38:51 -05:00
Richard Kenner
4dd24d605d (output_{pro,epi}log): Round var size to quadword boundary.
From-SVN: r6699
1994-03-05 19:18:05 -05:00
Richard Kenner
acd94aaf19 (SECONDARY_MEMORY_NEEDED_MODE): New macro.
From-SVN: r6698
1994-03-05 19:17:43 -05:00
Richard Kenner
64609742de (get_secondary_mem): Call SECONDARY_MEMORY_NEEDED_MODE if it is
defined.

From-SVN: r6697
1994-03-05 19:17:12 -05:00
Richard Kenner
269673180b (unaligned_{load,store}hi): Clear low bit of address before using as operand to extwl, mskwl, and inswl.
(unaligned_{load,store}hi): Clear low bit of address before using as operand
to extwl, mskwl, and inswl.
(movhi, reload_inhi, reload_outhi): Pass extra scratch value.

From-SVN: r6696
1994-03-05 16:27:45 -05:00