Commit Graph

18278 Commits

Author SHA1 Message Date
Mark Mitchell
4d85e00e38 decl.c (duplicate_decls): Always merge the old and new patterns for templates...
* decl.c (duplicate_decls): Always merge the old and new patterns
	for templates, regardless of whether or not the new one has
	DECL_INITIAL.  Don't throw away specializations.  Merge
	DECL_SAVED_TREE.
	* pt.c (tsubst_decl): Use the right pattern when calculating the
	complete args for a new template instance.
	(do_decl_instantiation): Fix typo in comment.
	(regenerate_decl_from_template): Deal with tricky friend template
	case.
	(instantiate_decl): Likewise.

From-SVN: r21876
1998-08-20 13:46:53 +00:00
Michael Meissner
293bcdc970 Include system.h, not stdio.h
From-SVN: r21874
1998-08-20 11:00:20 +00:00
David Edelsohn
3345af62e8 * rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
From-SVN: r21873
1998-08-20 06:50:39 -04:00
Dave Brolley
7771032e79 stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits.
Thu Aug 20 13:15:11 1998  Dave Brolley  <brolley@cygnus.com>
	* stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
	arrays of bits.
	* cpplib.c (cpp_define): Handle macros with parameters.

From-SVN: r21872
1998-08-20 06:29:22 -04:00
Jeffrey A Law
ee712d650b init.c (build_builtin_delete_call): Add missing assemble_external call.
* init.c (build_builtin_delete_call): Add missing assemble_external
        call.

From-SVN: r21871
1998-08-20 02:10:49 -06:00
Jason Merrill
eab049e2f6 * parse.y (notype_unqualified_id): Also accept ~A<int>.
From-SVN: r21870
1998-08-19 22:54:29 -04:00
Jeff Law
7688e2e244 Daily bump.
From-SVN: r21868
1998-08-19 18:45:02 -06:00
Mark Mitchell
d4855d37d9 old-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling code.
* lib/old-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling
	code.

From-SVN: r21865
1998-08-19 23:42:39 +00:00
David Edelsohn
13ded97515 rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
* rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
        (output_toc): Use single TOC slot or llong minimal-toc for DFmode
        and DImode 64-bit.  Use llong for minimal-toc SFmode and
        SYMBOL_REF / LABEL_REF 64-bit.
        (output_function_profiler): Use llong for profiler label and ld to
        load 64-bit label address.

From-SVN: r21864
1998-08-19 15:43:19 -04:00
Mark Mitchell
e0f9a8bc50 typeck.c (build_binary_op_nodefault): Warn on use of NULL in arithmetic.
* typeck.c (build_binary_op_nodefault): Warn on use of NULL in
	arithmetic.
	* except.c (build_throw): Warn when NULL is thrown, even with
	-ansi.  Use ansi_null_node, rather than integer_zero_node, in the
	thrown expression.

From-SVN: r21863
1998-08-19 18:48:58 +00:00
Nick Clifton
893779cc02 thumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.
* config/arm/thumb.md (extendqisi2_insn): Cope with REG +
        OFFSET addressing.

From-SVN: r21862
1998-08-19 10:56:21 -06:00
Nick Clifton
bb4c2bf3d8 thumb.md (extendqisi2_insn): Cope with REG + OFFSET addressing.
�
        * config/arm/thumb.md (extendqisi2_insn): Cope with REG +
        OFFSET addressing.

From-SVN: r21861
1998-08-19 10:56:19 -06:00
Nick Clifton
966b2e7a3d
From Nick Clifton
        * execute/ieee/930529-1.c (main): Check to see if __thumb__ is
        defined, and test for ARM style doubles if so.
        * execute/comp-goto-1.c (main): Make main() return an int.

From-SVN: r21860
1998-08-19 10:31:30 -06:00
Nick Clifton
bca48f391e 8
From Nick Clifton
        * execute/ieee/930529-1.c (main): Check to see if __thumb__ is
        defined, and test for ARM style doubles if so.
        * execute/comp-goto-1.c (main): Make main() return an int.

From-SVN: r21859
1998-08-19 10:31:28 -06:00
Mark Mitchell
898600d5fa cp-tree.h (ansi_null_node): New variable.
* cp-tree.h (ansi_null_node): New variable.
	* decl.c (ansi_null_node): New variable.
	(init_decl_processing): Initialize its type.
	* lex.c (init_parse): Initialize its value.  Use ansi_null_node
	for null_node in non-ANSI mode.
	* typeck.c (build_binary_op_nodefault): Use ansi_null_node in
	place of null_node to avoid spurious errors.

From-SVN: r21858
1998-08-19 15:14:58 +00:00
Jeffrey A Law
a255ef043c Bump for snapshot
From-SVN: r21856
1998-08-19 08:13:35 -06:00
Mark Mitchell
ccc2d6d079 * rtlanal.c (for_each_rtx): Check in the change mentioned below.
From-SVN: r21855
1998-08-19 13:44:57 +00:00
Jeffrey A Law
85cdcd2d6a Bump for snapshot
From-SVN: r21854
1998-08-19 07:10:34 -06:00
Jason Merrill
b77623bc58 Fix SunOS4 build failure.
* collect2.c (extract_init_priority): Use atoi instead of strtoul.

From-SVN: r21853
1998-08-19 06:07:52 -07:00
Mumit Khan
9b559a2720 cplus-dem.c (work_stuff): Add dllimported.
x
	* cplus-dem.c (work_stuff): Add dllimported.
	(demangled_prefix): Mark symbols imported from PE DLL.
	(internal_cplus_demangled): Handle.

From-SVN: r21852
1998-08-19 07:05:52 -06:00
Mumit Khan
28235a5ca8 cplus-dem.c (work_stuff): Add dllimported.
�
	* cplus-dem.c (work_stuff): Add dllimported.
	(demangled_prefix): Mark symbols imported from PE DLL.
	(internal_cplus_demangled): Handle.

From-SVN: r21851
1998-08-19 07:05:50 -06:00
Hans-Peter Nilsson
391aaa6b7e * tm.texi (Misc): Fix typo "teh"...
From-SVN: r21850
1998-08-19 07:02:31 -06:00
Hans-Peter Nilsson
ed4db1ee36 * tm.texi (PIC): Fix typo "PPIC".
From-SVN: r21849
1998-08-19 06:54:49 -06:00
Hans-Peter Nilsson
81610a0d48 tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no effect when -O2 and higher.
* tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no
        effect when -O2 and higher.
        * invoke.texi (Optimize Options): Likewise for -fcaller-saves.

From-SVN: r21848
1998-08-19 06:53:25 -06:00
Michael Hayes
252f342a37 regclass.c: Changed register set documentation to be consistent with GCC behaviour.
* regclass.c: Changed register set documentation to be consistent
        with GCC behaviour.
        * final.c (final_start_function) Removed redundant test for
        call_fixed_regs.

From-SVN: r21847
1998-08-19 06:49:17 -06:00
Mark Mitchell
bdd6b6020c old-dejagnu.exp: Revise handling of `Internal compiler error'.
* lib/old-dejagnu.exp: Revise handling of `Internal compiler
        error'.

From-SVN: r21846
1998-08-19 06:37:42 -06:00
Mark Mitchell
41a972a956 rtl.h (rtx_function): New type.
* rtl.h (rtx_function): New type.
	(for_each_rtx): New function.
	* rtlanal.c (for_each_rtx): Define it.
	* recog.c (change_t): New type.
	(change_objects, change_old_codes, change_locs, change_olds):
	Replace with ...
	(changes): New variable.
	(validate_change): Dynamically allocate room for more changes, if
	necessary.  Uses changes array instead of change_objects, etc.
	(apply_change_group):  Use changes array instead of
	change_objects, etc.
	* loop.c (loop_mem_info): New type.
	(loop_mems): New variable.
	(loop_mems_idx): Likewise.
	(looop_mems_allocated): Likewise.
	(scan_loop): Remove nregs parameter.
	(next_insn_in_loop): New function.
	(load_mems_and_recount_loop_regs_set): Likewise.
	(load_mems): Likewise.
	(insert_loop_mem): Likewise.
	(replace_loop_mem): Likewise.
	(replace_label): Likewise.
	(INSN_IN_RANGE_P): New macro.
	(loop_optimize): Don't pass max_reg_num() to scan_loop.
	(scan_loop): Remove nregs parameter, compute it after any new
	registers are created by load_mems.  Use INSN_IN_RANGE_P and
	next_insn_in_loop rather than expanding them inline.  Call
	load_mems to load memory into pseudos, if appropriate.
	(prescan_loop): Figure out whether or not there are jumps from the
	loop to targets other than the label immediately following the
	loop.  Call insert_loop_mem to notice all the MEMs used in the
	loop, if it could be safe to pull MEMs into REGs for the duration
	of the loop.
	(strength_reduce): Use next_insn_in_loop.  Tweak comments.

From-SVN: r21845
1998-08-19 06:30:47 -06:00
David S. Miller
031fec0070 sparc.md (negtf2_notv9 split): Give NEG SFmode.
* config/sparc/sparc.md (negtf2_notv9 split): Give NEG
	SFmode.
	(negsf2): Fix insn output string.

From-SVN: r21844
1998-08-19 02:02:26 -07:00
Richard Earnshaw
b4b68717b6 * arm.c (arm_override_options): Remove lie about ignoring PIC flag.
From-SVN: r21843
1998-08-19 08:33:48 +00:00
David S. Miller
24a43d7b43 sparc.c (finalize_pic): Check for the correct nonlocal_goto_receiver UNSPEC number.
* config/sparc/sparc.c (finalize_pic): Check for the correct
	nonlocal_goto_receiver UNSPEC number.
	* config/sparc/sparc.md (nonlocal_goto_receiver): Add comment
	making note of this dependency existing in sparc.c

From-SVN: r21842
1998-08-19 01:14:26 -07:00
Jeff Law
839603a822 Daily bump.
From-SVN: r21838
1998-08-18 18:45:02 -06:00
Jeffrey A Law
062ae7edd0 haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last pending memory flush list.
* haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last
        pending memory flush list.

From-SVN: r21836
1998-08-18 15:58:15 -06:00
Jeffrey A Law
5ff20a9bc3 Make-lang.in: Add several "else true" clauses to deal with lame systems.
* Make-lang.in: Add several "else true" clauses to deal with lame
        systems.

From-SVN: r21834
1998-08-18 14:42:49 -06:00
Jeffrey A Law
ec35104c79 combine.c (can_combine_p): Allow combining insns with REG_RETVAL notes.
* combine.c (can_combine_p): Allow combining insns with REG_RETVAL
	notes.
	(try_combine): Allow combining insns with REG_LIBCALL notes.

From-SVN: r21833
1998-08-18 12:29:40 -06:00
Jeffrey A Law
e958d4576a * gcc.c-torture/execute/*.x: Some updates for the h8300 targets.
From-SVN: r21832
1998-08-18 12:22:32 -06:00
Jeffrey A Law
52cf711504 expr.c (emit_block_move): Do not call memcpy as a libcall instead build up a CALL_EXPR and call it like...
* expr.c (emit_block_move): Do not call memcpy as a libcall
        instead build up a CALL_EXPR and call it like any other
        function.
        (clear_storage): Similarly for memset.

From-SVN: r21831
1998-08-18 11:49:28 -06:00
Jeffrey A Law
e27a510618 regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes.
* regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
        on notes.

From-SVN: r21830
1998-08-18 11:14:34 -06:00
Brendan Kehoe
e368d5b332 another expr/decl ambiguity test
From-SVN: r21828
1998-08-18 11:32:36 -04:00
Brendan Kehoe
074900555d add another expr/decl ambiguity test
From-SVN: r21827
1998-08-18 11:24:24 -04:00
Brendan Kehoe
a5a406af64 another expr/decl ambiguity test
From-SVN: r21826
1998-08-18 11:19:21 -04:00
Brendan Kehoe
ba6ac69e47 add expr/decl ambiguity test
From-SVN: r21825
1998-08-18 11:11:05 -04:00
Richard Henderson
2004545263 c-common.c (decl_attributes): Issue an error if the argument to alias is not a string.
* c-common.c (decl_attributes): Issue an error if the argument
to alias is not a string.

From-SVN: r21824
1998-08-18 05:40:52 -07:00
Jeffrey A Law
eaa41c8dd3 Makefile.in (cplus-dem.o): Provide explicit rules for building cplus-dem.o
* Makefile.in (cplus-dem.o): Provide explicit rules for building
        cplus-dem.o

From-SVN: r21823
1998-08-18 04:26:35 -06:00
Jeff Law
4244aeda6c xiberty stuff isn't needed anymore.
From-SVN: r21822
1998-08-18 04:06:24 -06:00
Jeffrey A Law
7b31b7d9bd regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED and REG_LIVE_LENGTH as successful substitutions are made.
* regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED
        and REG_LIVE_LENGTH as successful substitutions are made.

From-SVN: r21819
1998-08-18 03:34:59 -06:00
David S. Miller
5a5325cb72 From Kaveh R. Ghazi.
* config/sparc/sparc.c (ultra_find_type): Add empty semicolon
	statement after end of loop label.
	From me...
	* config/sparc/sparc.c (ultra_types_avail): New variable.
	(ultra_build_types_avail): New function to record mask of insn
	types in ready list at this cycle.
	(ultrasparc_sched_reorder): Call it.
	(ultra_find_type): Use it to quicken the search.  Also simplif
	dependency check, don't use rtx_equal_p because we know exactly
	what we are looking for.

From-SVN: r21817
1998-08-18 01:24:51 -07:00
Richard Earnshaw
a2767b6709 arm.h (SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS if compiling for architecture v4.
* arm.h (SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS if compiling
for architecture v4.

From-SVN: r21816
1998-08-18 03:24:05 +00:00
Jeff Law
2fc83a24b7 Daily bump.
From-SVN: r21814
1998-08-17 18:45:32 -06:00
David S. Miller
45120407b5 sparc.md (sltu, sgeu): Don't FAIL, call gen_compare_reg.
* config/sparc/sparc.md (sltu, sgeu): Don't FAIL, call
	gen_compare_reg.
	(movsf_const_intreg, movsf_const_high, movsf_const_lo,
	movdf_const_intreg and helper splits): New patterns to move float
	constants into integer registers.
	(negtf2, negdf2, abstf2, absdf2): Rework using new patterns and
	splits.

From-SVN: r21813
1998-08-17 15:34:06 -07:00
Mark Mitchell
648f19f647 cp-tree.h (enter_scope_of): New function.
* cp-tree.h (enter_scope_of): New function.
	* parse.y (complex_direct_notype_declarator): Use it.
	* semantics.c (enter_scope_of): New function.

From-SVN: r21812
1998-08-17 22:33:58 +00:00