Commit Graph

15482 Commits

Author SHA1 Message Date
Jeffrey A Law
8e7336f849 toplev.c (flag_schedule_reverse_before_reload): Delete variable.
* toplev.c (flag_schedule_reverse_before_reload): Delete variable.
        (flag_schedule_reverse_after_reload): Likewise.
        (f_options): Remove reverse scheduling support.
        * flags.h (flag_schedule_reverse_before_reload): Delete declaration.
        (flag_schedule_reverse_after_reload): Likewise.
        * haifa-sched.c (rank_for_schedule): Remove support for reverse
        scheduling.
Trivial cleanup.

From-SVN: r18020
1998-02-15 15:28:33 -07:00
Kaveh R. Ghazi
17248a6b14 gcc.c: Get system includes...
* gcc.c: Get system includes, prototypes and macros via "system.h"
        instead of doing it manually.  Change all calls of the ctype
        macros to custom versions defined in "system.h".

From-SVN: r18019
1998-02-15 13:41:09 -07:00
Kaveh R. Ghazi
79e1184485 system.h: Fix return type of bcmp prototype from void' to int'.
* system.h: Fix return type of bcmp prototype from `void' to `int'.
        Make bcopy, bcmp and bzero prototypes explicitly `extern'.
        Add a prototype for getenv.

From-SVN: r18018
1998-02-15 13:36:23 -07:00
Jim Wilson
c9b4de0677 Fix Irix6 EH failures, was broken by mips16 patch.
* mips/mips.h (INITIAL_ELIMINATION_OFFSET): Readd Jun 6 change.

From-SVN: r18013
1998-02-15 09:07:31 -08:00
John Carr
9f8f10de39 alias.c: Include <stdlib.h> and <string.h>.
* alias.c: Include <stdlib.h> and <string.h>.
	(init_alias_analysis): Pass NULL_RTX instead of 0 to record_set.

From-SVN: r18011
1998-02-15 12:26:06 +00:00
Manfred Hollstein
5b47722461 Make-lang.in (DEMANGLER_INSTALL_NAME, [...]): New macros.
* Make-lang.in (DEMANGLER_INSTALL_NAME, DEMANGLER_CROSS_NAME): New
	macros.
	(c++.install-common): Install c++filt properly as native or as cross
	variant.
	(c++.uninstall): Add c++filt.

From-SVN: r18000
1998-02-14 10:56:38 -05:00
Jason Merrill
798eed5ebb * call.c (standard_conversion): Fix multi-level ptr conversions.
From-SVN: r17999
1998-02-14 10:49:20 -05:00
Jeffrey A Law
d757d1410f Bump for snapshot
From-SVN: r17976
1998-02-14 04:23:14 -07:00
Richard Earnshaw
99e9043802 t-semi (STMP_FIXPROTO): Define to nothing.
* arm/t-semi (STMP_FIXPROTO): Define to nothing.
* arm/t-semiaof (STMP_FIXPROTO): Likewise.

From-SVN: r17975
1998-02-14 05:16:58 +00:00
Richard Earnshaw
7a0a1f09c4 arm.md (movsfcc): Also validate operands[3] when compiling hard float.
* arm.md (movsfcc): Also validate operands[3] when compiling hard float.
(movdfcc): Only accept fpu_add_operand for operands[3].

From-SVN: r17974
1998-02-14 05:14:13 +00:00
Jeffrey A Law
29a820586a varasm.c (output_constant_pool): Bring back 'done' label inside an appropriate #ifdef.
* varasm.c (output_constant_pool): Bring back 'done' label inside
        an appropriate #ifdef.
        * bitmap.c (bitmap_element_allocate): Wrap variable 'i' in an
        appropriate #ifdef.
        (bitmap_copy, bitmap_operation): Likewise.
        * combine.c (combinable_i3pat): Similarly for 'src'.
        * function.c (fixup_var_refs_1): Similarly for 'outerdest'.
        (locate_and_pad_parm): Similarly for 'reg_parm_stack_space'.
        * regclass.c (copy_cost): Similarly for 'secondary_class'.
        * reload.c (make_memloc): Simliarly for 'i'.
        (find_reloads_address_1): Similarly for 'link'.
        * reload1.c (reload): Similarly for 'previous_frame_pointer_needed'.
        (emit_reload_insns): Similarly for 'second_reloadreg'.
        * unroll.c (iteration_info): Similarly for 'v'.
        * caller-save.c (insert_save_restore): Remove unused variable 'i'.
        * calls.c (expand_call): Similarly for 'i'.
        (emit_library_call, emit_library_call_value): Similarly for 'mode'.
        * fold-const.c (strip_compund_expr): Similarly for 'type'.
        * function.c (fixup_var_refs_1): Similarly  for 'width'.
        (fixup_memory_subreg): Similarly for 'saved'.
        (locate_and_pad_parm): Similarly for 'boundary_in_bytes.'
        (setjmp_protect): Similarly for 'sub'.
        (thread_prologue_and_epilogue_insns): Similarly for 'insn'.
        * loop.c (record_giv): Similarly for 'p'.
        (combine_givs): Similarly for 'temp_iv'.
        (indirect_jump_in_function_p): Similarly for 'is_indirect_jump'.
        * recog.c (validate_replace_rtx_1): Similarly for 'width'.
        * tree.c (get_set_constructor_bytes): Similarly for 'vals'.
        * unroll.c (unroll_loop): Similarly for 'copy'.
        (iteration_info): Similarly for 'b'.
        * varasm.c (assemble_string): Similarly for 'i'.
        * i386.h (LEGITIMIZE_ADDRESS): Similarly for 'orig_x'.

From-SVN: r17973
1998-02-13 18:13:58 -07:00
Jason Merrill
bfd5e22089 disable
From-SVN: r17972
1998-02-13 12:53:55 -05:00
Jason Merrill
6bc7be5f89 * pt.c (determine_specialization): Give better errors.
From-SVN: r17970
1998-02-13 09:44:00 -05:00
Jim Wilson
e3e7774eb1 Fix C++ irix6 -g compiler abort.
* dwarf2out.c (decl_scope_node): New type.
	(decl_scope_table): Change type to use it.
	(decl_scope_table_allocated, decl_scope_depth): Change type to int.
	(push_decl_scope): Use new type.  New locals containing_scope, i.
	Add code to handle setting previous field.
	(scope_die_for): Change type of local i to int.  Add code to use
	previous field.
	(dwarf2out_init): Use new type.

From-SVN: r17969
1998-02-13 06:40:09 -08:00
Mike Stump
8017079182 * init.c (build_new): Propagate error_mark_node up.
From-SVN: r17968
1998-02-13 09:07:32 -05:00
Jason Merrill
440a6c2a4e parse.y (simple_stmt): If the condition isn't a declaration, start the controlled block after the test.
* parse.y (simple_stmt): If the condition isn't a declaration,
	start the controlled block after the test.

From-SVN: r17967
1998-02-13 08:59:10 -05:00
Jason Merrill
442f0a304a * except.c (emit_throw): Lose throw_used.
From-SVN: r17966
1998-02-13 08:44:12 -05:00
Jason Merrill
b43f43dbb8 tweak message
From-SVN: r17965
1998-02-13 08:35:02 -05:00
Jason Merrill
9605fb4417 tweak comments
From-SVN: r17964
1998-02-13 08:34:53 -05:00
J"orn Rennecke
fcdc0d6e61 sched.c (update_flow_info, REG_WAS_0): Ignore if setting insn was deleted.
* sched.c (update_flow_info, REG_WAS_0): Ignore if setting insn
	was deleted.
	* haifa-sched.c (update_flow_info, REG_WAS_0): Likewise.

From-SVN: r17963
1998-02-13 12:40:29 +00:00
Jeffrey A Law
b7673cdb66 * genextract.c (main): Fix typo.
From-SVN: r17904
1998-02-13 04:17:14 -07:00
Robert Lipe
9e4767cadf Change timestamp of my last entry to reflect checkin time, not submission
time.

From-SVN: r17903
1998-02-13 06:43:13 +00:00
Robert Lipe
2e6a59892b Rats. Forgot to change copyrights on the first commit.
From-SVN: r17902
1998-02-13 05:40:34 +00:00
Robert Lipe
69d4ca36f4 c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.
* c-lang.c (finish_file): Bracket declaration of static_ctors,
	static_dtors.
	* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
	'old_stack_arg_under_construction'
	(emit_library_call): Bracket declaration of 'upper_bound',
	'lower_bound', 'i', 'reg_parm_stack_space'
	(emit_library_call_value): Likewise.
	(store_one_arg):
	* collect2.c: include <unistd.h> when appropriate.
	Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
	* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
	* explow.c (plus_constant_for_output_wide): Remove unused variable
	'code'.
	(memory_address): Remove unused variable 'orig_x'.
	* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
	(write_const_num_delay_slots): Remove unused variable 'i'.
	* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
	(gen_insn): Remove unused variable 'obstack_ptr'.
        * libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
        'j', 'tmp', 'i'.
	(__bb_exit_trace_func): Remove unused variable 'e'.
	* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
	'funexp'.
	(expand_unop): Remove unused variable 'funexp'.
	(expand_complex_abs): Remove unused variable 'funexp'.
	(init_optabs): Bracket declaration of 'j'.
	(init_complex_libfuncs): Deleted.  Dead static function.
	* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
	* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
	(reg_to_stack): 'initialized', 'before_function_beg'
	explictly type as ints instead of defaulting.
	(emit_swap_insn): Remove unused variable 'i2'.
	(compare_for_stack_reg): Remove unused variable 'src_note'.
	* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
	* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
	* stmt.c (add_case_node): Add parens for assignment used as truth.
	(all_cases_count):  Remove unused variable 'count_high'.
	(mark_seen_cases): Remove unused variable 'i'.
	(check_for_full_enumeration_handling): Remove unused variable 't'.
	Bracket declaration of  'all_values', 'l'.
	* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
	* varasm.c (assemble_string): Remove unused variable 'i'.
	(immed_double_const): Remove unused variable 'in_current_obstack'.
	(immed_real_const_1): Likewise.
	(output_constant_pool): Remove unreferenced label 'done'.
	(output_constant): Remove unused variable 'x'.
        * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
        a string.
        * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
        as truth.

From-SVN: r17901
1998-02-13 05:30:56 +00:00
Andreas Schwab
387c47a380 call.c (build_over_call): Convert builtin abs, labs and fabs to tree-codes.
* call.c (build_over_call): Convert builtin abs, labs and fabs to
	tree-codes.
	* decl.c (init_decl_processing): Reenable abs, labs and fabs as
	builtins.

From-SVN: r17900
1998-02-12 21:26:35 -05:00
J"orn Rennecke
e3258cef30 * combine.c (can_combine_p): Handle USEs in PARALLELs.
From-SVN: r17899
1998-02-13 02:26:25 +00:00
Jason Merrill
2dbfb4181c * call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.
From-SVN: r17898
1998-02-12 20:37:30 -05:00
H.J. Lu
1398405bf8 linux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined.
* config/linux.h (LIB_SPEC): Add -lc for -shared if
        USE_GNULIBC_1 is not defined.
        * config/sparc/linux.h; Ditto.
        * config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared.
        * config/alpha/linux-elf.h (LIB_SPEC): New. Defined if
        USE_GNULIBC_1 is not defined.

From-SVN: r17895
1998-02-12 17:33:05 -07:00
Jason Merrill
d8b55a76ef cp-tree.h: Add access_protected_virtual_node.
* cp-tree.h: Add access_protected_virtual_node.
	* class.c (init_class_processing): Initialize it.
	* decl.c (xref_basetypes): Use it.
	* parse.y (base_class_access_list): Likewise.
	* Make-lang.in (DEMANGLER_PROG): Add $(exeext).
	(c++.install-common): Install c++filt.

From-SVN: r17894
1998-02-12 19:30:37 -05:00
Franz Sirl
03453a9f5a sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux) for -mcall-linux
* rs6000/sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux)
        for -mcall-linux

From-SVN: r17892
1998-02-12 17:28:23 -07:00
Kaveh R. Ghazi
aca6948338 system.h: New file to get common systems includes and various definitions and...
* system.h: New file to get common systems includes and various
	definitions and declarations based on autoconf macros.

From-SVN: r17891
1998-02-12 17:22:24 -07:00
Jeff Law
ee48472991 fileops.c: #include <unistd.h>.
* fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17890
1998-02-12 16:56:20 -07:00
Krister Walfridsson
82fa5cdffe fileops.c: #include <unistd.h>.
(
        * fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17889
1998-02-12 16:56:19 -07:00
Krister Walfridsson
f3a5aedcbd fileops.c: #include <unistd.h>.
f
        * fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17888
1998-02-12 16:56:18 -07:00
Jeffrey A Law
5e0e0f036a * cccp.c (new_include_prefix): Correctly handle -I./.
From-SVN: r17886
1998-02-12 16:45:20 -07:00
Jeffrey A Law
2aca5b9b2d * gcc.dg/ifelse-1.c: New test.
From-SVN: r17885
1998-02-12 16:34:52 -07:00
Kaveh R. Ghazi
567f3d3603 com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
* com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
        * expr.c (ffeexpr_type_combine): Likewise.
        (ffeexpr_reduce_): Likewise.
        (ffeexpr_declare_parenthesized_): Likewise.
        * src.c (ffesrc_strcmp_1ns2i): Likewise.
        (ffesrc_strcmp_2c): Likewise.
        (ffesrc_strncmp_2c): Likewise.
        * stb.c (ffestb_halt1_): Likewise.
        (ffestb_R90910_): Likewise.
        (ffestb_R9109_): Likewise.
        * stc.c (ffestc_R544_equiv_): Likewise.
        * std.c (ffestd_subr_copy_easy_): Likewise.
        (ffestd_R1001dump_): Likewise.
        (ffestd_R1001dump_1005_1_): Likewise.
        (ffestd_R1001dump_1005_2_): Likewise.
        (ffestd_R1001dump_1005_3_): Likewise.
        (ffestd_R1001dump_1005_4_): Likewise.
        (ffestd_R1001dump_1005_5_): Likewise.
        (ffestd_R1001dump_1010_2_): Likewise.
        * ste.c (ffeste_R840): Likewise.
        * sts.c (ffests_puttext): Likewise.
        * symbol.c (ffesymbol_check_token_): Likewise.
        * target.c (ffetarget_real1): Likewise.
        (ffetarget_real2): Likewise.

From-SVN: r17884
1998-02-12 16:18:26 -07:00
Benjamin Kosnik
c4e8876e9b
testcase for g++/14837

From-SVN: r17882
1998-02-12 18:20:08 +00:00
Benjamin Kosnik
2df0603278 decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
d
Thu Feb 12 12:46:51 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
	* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837

From-SVN: r17881
1998-02-12 18:18:51 +00:00
Benjamin Kosnik
ea957dd5f4 decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
a
Thu Feb 12 12:46:51 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
	* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837

From-SVN: r17880
1998-02-12 18:18:49 +00:00
Michael Meissner
89e9f3a8a9 Replace gen_rtx (CONST_INT...) calls with GEN_INT calls
From-SVN: r17879
1998-02-12 17:18:51 +00:00
Robert Lipe
8bd6ecc280 expr.c (expand_assignment): Correct typo exposed by -Wall.
* expr.c (expand_assignment):  Correct typo exposed by -Wall.
        offset should have been a truth value, not an assignment.

From-SVN: r17876
1998-02-12 14:59:57 +00:00
Mark Mitchell
3317aae90b call.c (reference_binding): Use comptypes when comparing TYPE_MAIN_VARIANTS to handle non-canonical...
* call.c (reference_binding): Use comptypes when comparing
	TYPE_MAIN_VARIANTS to handle non-canonical array/index types.

From-SVN: r17875
1998-02-12 14:55:02 +00:00
Mark Mitchell
9ca21c0adb typeck.c (build_ptrmemfunc): Typecheck pointer-to-member conversions.
* typeck.c (build_ptrmemfunc): Typecheck pointer-to-member
	conversions.

From-SVN: r17874
1998-02-12 14:51:57 +00:00
Jeffrey A Law
614bb5d45d cse.c (delete_dead_from_cse): If a libcall produces a constant result and that result can be substituted into...
* cse.c (delete_dead_from_cse): If a libcall produces a constant
        result and that result can be substituted into SET_SRC of the
        insn with the REG_RETVAL note, then perform the substitution
        and delete the libcall.

From-SVN: r17871
1998-02-12 07:26:47 -07:00
Gavin Koch
00bb4b6208 mips.md (trucndihi2,truncdiqi2): Change these to support mips16.
* mips.md (trucndihi2,truncdiqi2): Change these to support
	mips16.

From-SVN: r17868
1998-02-12 11:06:08 +00:00
Gavin Koch
3871c60927 mips.c (movdi_operand): Direct referances to symbols that arn't mips16 consts in mips16 mode arn't...
* mips/mips.c (movdi_operand): Direct referances to symbols
	that arn't mips16 consts in mips16 mode arn't valid operands.
	* mips/mips.c (mips_move_2words): Add gprel handling.

From-SVN: r17867
1998-02-12 08:37:06 +00:00
Gavin Koch
2e72fa6af1 mips.md (extendsidi2): Allow extension to/from a non-mips16 register.
* mips.md (extendsidi2): Allow extension to/from a non-mips16
	register.

From-SVN: r17866
1998-02-12 08:21:38 +00:00
Robert Lipe
0f4775477e Add documentation for OpenServer patch required for static [cd]tors
to work right.

From-SVN: r17865
1998-02-11 23:17:04 +00:00
Marc Lehmann
a49103407c i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
* i386.c: Conditionally include <stdlib.h>, <string.h>, and
        <strings.h>.

From-SVN: r17864
1998-02-11 16:03:32 -07:00