Commit Graph

13551 Commits

Author SHA1 Message Date
Richard Kenner
25d5a07249 (MOD[SD]I_LIBCALL): Call ots$rem, not ots$mod.
From-SVN: r13945
1997-04-20 17:50:20 -04:00
Richard Kenner
9398dc2742 (alpha_need_linkage): Call get_identifier.
From-SVN: r13944
1997-04-20 17:48:27 -04:00
Richard Kenner
f0f6a2233f (nonlocal_goto_receiver): New pattern.
From-SVN: r13943
1997-04-20 17:44:57 -04:00
Richard Kenner
c7ca610ed5 (rs6000_output_load_toc_table): New function.
(output_prolog): Call it instead of doing it directly.

From-SVN: r13942
1997-04-20 17:44:06 -04:00
Richard Kenner
229558eea3 (dwarf2out.o): Includes expr.h.
From-SVN: r13941
1997-04-20 17:10:38 -04:00
Richard Kenner
71dfc51fa0 Major cleanup; mostly reformatting.
Include expr.h.
Undefine inline ifndef __GNUC__; never define to include static.
Add "static" to header of all inlined functions.
Add declarations for all static functions, with prototypes.
(addr_const_to_string): Use HOST_WIDE_INT_PRINT_* macros.
(add_AT_*, new_{die,loc_descr,cfi): Don't check for xmalloc returning zero.
(modified_type_die): Add missing parm on recursive call.
({reg,based}_loc_descriptor): Add missing arg to call to new_loc_descr.
(add_const_value_attribute): Use REAL_VALUE_TYPE for fp calculations.
(output_call_frame_info): Add missing arg to output_cfi call.
(dwarf2out_def_cfa): Local variable OLD_REG must be unsigned long.

From-SVN: r13940
1997-04-20 17:10:19 -04:00
Richard Kenner
b1ccbc24f4 Cast first arg in all calls to bzero to char *.
(decl_ultimate_origin): Return NULL if equal to decl.
(constant_size): Never return more than 4.
(value_format, case 8): New case.
(dwarf2out_frame_debug): Use HARD_FRAME_POINTER_REGNUM.
(based_loc_descr): Likewise.
(add_bound_info): Delete default case.
Add cases for CONVERT_EXPR and NON_LVALUE_EXPR; treat like NOP_EXPR.
Change NOP_EXPR to to recursive call.
(add_type_attribute): Ignore unnamed subtype of integral or FP.
(gen_subprogram_die): Use reg_loc_descriptor.
(dwarf2out_decl): Ignore nested functions.

From-SVN: r13939
1997-04-20 12:54:50 -04:00
Richard Kenner
2e3f9f3d62 Use symbolic codes for exit.
From-SVN: r13938
1997-04-20 12:39:28 -04:00
Richard Kenner
65ed39df89 (profile_function): Only call ASM_OUTPUT_REG_{PUSH,POP} if defined.
From-SVN: r13937
1997-04-20 12:25:03 -04:00
Richard Kenner
effbcc6a9e ({move,clear}_by_pieces_1, expand_assignment): Ensure we have unshared rtx before changing flags.
({move,clear}_by_pieces_1, expand_assignment): Ensure we have unshared rtx
before changing flags.
(store_{constructor,field}): Likewise.
(expand_expr, case COMPONENT_REF): Likewise.
(store_expr): Check if TEMP and TARGET are same with rtx_equal_p.

From-SVN: r13936
1997-04-20 12:19:20 -04:00
Richard Kenner
64cd4fdb75 (change_address, init_emit): Delete forward references.
(rtl_obstack, stack_depth, max_stack_depth): Delete extern decls.

From-SVN: r13935
1997-04-20 10:45:33 -04:00
Jason Merrill
466446b079 x
From-SVN: r13934
1997-04-20 10:25:49 +00:00
Jim Wilson
ce717ce4d3 (instantiate_decls): For DECL_INCOMING_RTL, use max
of type size and mode size in instantiate_decl call.

From-SVN: r13933
1997-04-18 15:40:55 -07:00
Jim Wilson
09817d8cf8 (sys/lc_core.h): Fix OSF1/4.x namespace pollution.
From-SVN: r13932
1997-04-18 15:25:17 -07:00
Paul Eggert
732b08f1e9 automatically generated from GPLed version
From-SVN: r13929
1997-04-18 00:47:55 +00:00
Ian Lance Taylor
d0c2f17668 Fixes for MIPS OpenBSD systems (from Per Fogelstrom
<pefo@openbsd.org>)

From-SVN: r13910
1997-04-17 18:00:12 +00:00
Jason Merrill
83b853c9fc x
From-SVN: r13909
1997-04-17 11:33:02 +00:00
Jeff Law
fc99085612 Fix typo in last change.
From-SVN: r13908
1997-04-15 12:51:06 -06:00
David Edelsohn
6318808ce5 define itrunc, uitrunc, and mcount macros without prepended underscores
From-SVN: r13907
1997-04-14 22:09:53 +00:00
David Edelsohn
5bf6466a8f prepend underscores to itrunc and uitrunc
define RS6000_MCOUNT macro as symbol with underscores

From-SVN: r13906
1997-04-14 22:07:42 +00:00
David Edelsohn
9c849d2a8a change hardcoded .mcount to RS6000_MCOUNT
From-SVN: r13905
1997-04-14 22:06:31 +00:00
Jim Wilson
977eef43d8 (xtrct_left, xtrct_right): New patterns.
From-SVN: r13904
1997-04-14 14:57:14 -07:00
Jeff Law
460f4b9ddd mn10300.c (can_use_return_insn): Include outgoing argument area in size computation.
* mn10300.c (can_use_return_insn): Include outgoing argument
        area in size computation.
        (expand_prologue): Likewise.  No longer diddle with sequences.
        Put register saves just before outgoing argument area.
        (expand_epilogue): Similarly.
        (impossible_plus_operand): New function.
        * mn10300.h (FRAME_POINTER_REQUIRED): Never require a frame pointer.
        (ACCUMULATE_OUTGOING_ARGS, OUTGOING_REG_PARM_STACK_SPACE): Define.
        (impossible_plus_operand): Declare.
        * mn10300.md (reload_insi): New expander to handle pathological
        reload cases.
        (addsi3): Fix CC status.

        * mn10300.h (FUNCTION_VALUE): Return addresses in $a0.
        (FUNCTION_VALUE_REGNO_P): Corresponding changes.
        * mn10300.md (call_value_internal): Allow output to be in an
        address register.

From-SVN: r13903
1997-04-14 14:59:44 -06:00
Jeff Law
f046b3cc23 calls.c (emit_library_call): Handle saving of stack slots when ACCUMULATE_OUTGOING_ARGS is defined.
* calls.c (emit_library_call): Handle saving of stack slots when
        ACCUMULATE_OUTGOING_ARGS is defined.
        (emit_library_call_value): Likewise.

From-SVN: r13902
1997-04-14 14:45:20 -06:00
Michael Meissner
07e6159a93 Add -mcpu={604e,801,823} support
From-SVN: r13901
1997-04-14 19:04:40 +00:00
Jim Wilson
9a893315ea (get_last_value_validate): New argument insn.
Add check for memory reference clobbered by later store.
(record_value_for_reg, get_last_values): Pass in new argument.

From-SVN: r13900
1997-04-14 11:46:37 -07:00
Ian Lance Taylor
ba325ebaef When clobbering a reg, check for later words of a multi word reg value
From-SVN: r13899
1997-04-14 01:03:03 +00:00
Doug Evans
a22ad97227 calls.c (expand_call): When copying unaligned values into a register...
* calls.c (expand_call): When copying unaligned values into a register,
	zero out the register first rather than emitting a clobber.

From-SVN: r13898
1997-04-13 23:30:18 +00:00
Doug Evans
58a32c5c03 * expr.c (move_block_from_reg): Try using an integral mov operation first.
From-SVN: r13897
1997-04-13 23:29:50 +00:00
Ian Lance Taylor
ad5780142a Get the modes right when setting reg_values for a reg to reg copy
From-SVN: r13896
1997-04-13 22:45:30 +00:00
Doug Evans
3e42d56b4b integrate.c (copy_rtx_and_substitute): If FRAME_GROWS_DOWNWARD and regno == VIRTUAL_STACK_VARS_REGNUM...
* integrate.c (copy_rtx_and_substitute): If FRAME_GROWS_DOWNWARD
	and regno == VIRTUAL_STACK_VARS_REGNUM,	round size of stack slot up
	before calling assign_stack_temp.

From-SVN: r13895
1997-04-13 21:24:37 +00:00
Richard Kenner
53c87bfd9c (ASM_SPEC): Define.
(STRUCT_VALUE_REGNUM, STATIC_CHAIN_REGNUM, INITIALIZE_TRAMPOLINE):
Remove definitions, undoing the change of Mar 20 1996.

From-SVN: r13894
1997-04-13 15:34:53 -04:00
Richard Kenner
75ef7cf8da (fake_f_rep): Add missing element name in cast.
From-SVN: r13893
1997-04-13 15:29:35 -04:00
Richard Kenner
d9d08379df (layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change.
From-SVN: r13892
1997-04-13 15:20:03 -04:00
Richard Kenner
3879920c64 (output_move_qimode): Optimize pushing one byte if the source operand
does not use the stack pointer.

From-SVN: r13891
1997-04-13 15:15:21 -04:00
Richard Kenner
5716e64528 (movstricthi): Remove extraneous comparisons.
From-SVN: r13890
1997-04-13 15:04:36 -04:00
Richard Kenner
67cbb7a7d4 Initial revision
From-SVN: r13889
1997-04-13 15:02:08 -04:00
Richard Kenner
5887325513 (canon_reg, cse_insn): Don't examine insn_n_dups if recog_memoized
fails to find a match.

From-SVN: r13888
1997-04-13 14:51:22 -04:00
Richard Kenner
cfb3ee16db (do_include): Diagnose #import and #include_next if pedantic and if not in a system header.
(do_include): Diagnose #import and #include_next if pedantic and if
not in a system header.
(do_warning): #warning now causes an error if -pedantic-errors is
given; this is needed since #warning isn't ANSI.

From-SVN: r13887
1997-04-13 14:30:13 -04:00
Ian Lance Taylor
31418d3513 Remove REG_DEAD notes when eliminating a set in the reload CSE pass
From-SVN: r13886
1997-04-13 18:20:27 +00:00
Richard Kenner
c7063b9a37 (fatal_perror, fatal, collect_wait): Use FATAL_EXIT_CODE.
From-SVN: r13885
1997-04-13 14:19:48 -04:00
Richard Kenner
1f0fcca5be (print_usage, open_files): Use FATAL_EXIT_CODE.
From-SVN: r13884
1997-04-13 14:19:11 -04:00
Richard Kenner
920b13cc7e (L_bb, L_exit): Use 0 rather than NULL for null pointers.
From-SVN: r13883
1997-04-13 14:12:05 -04:00
Richard Kenner
6780a54b7d (rotl[shq]i3, rotl[hq]i3+1): Don't directly modify operand.
From-SVN: r13882
1997-04-13 13:17:56 -04:00
Richard Kenner
3ff78fe33a (tstdi): Add missing parallel around the pattern.
From-SVN: r13881
1997-04-13 12:53:00 -04:00
Richard Kenner
c9666c0180 (cpp_lex) New arg skip_evaluation.
(cpp_parse_expr): Pass skip_evaluation to cpp_lex.
Abort if cpp_lex returns NAME.
(cpp_lex): Optionally warn about undefined identifiers that evaluate to 0.

From-SVN: r13880
1997-04-13 12:50:58 -04:00
Richard Kenner
dfb45725c9 (cpp_handle_options): Set warn_undef from -Wundef and -Wno-undef.
From-SVN: r13879
1997-04-13 12:50:30 -04:00
Richard Kenner
6ac34fdc71 (struct cpp_options): New member warn_undef.
(CPP_WARN_UNDEF): New macro.

From-SVN: r13878
1997-04-13 12:50:11 -04:00
Richard Kenner
69375a37de cexp.y (warn_undef): New variable.
(exp): Optionally warn about undefined identifiers that evaluate to 0.

From-SVN: r13877
1997-04-13 12:49:45 -04:00
Richard Kenner
10c1b9f689 (warn_undef): New variable.
(main): Set warn_undef from -Wundef and -Wno-undef.

From-SVN: r13876
1997-04-13 12:49:07 -04:00