Commit Graph

15825 Commits

Author SHA1 Message Date
Mark Mitchell
366c0f1ec0 pt.c (check_explicit_specialization): When reverting a static member function...
* pt.c (check_explicit_specialization): When reverting a static
	member function, also remove the `this' parameter from
	last_function_parms.

From-SVN: r18704
1998-03-19 09:08:53 +00:00
Kaveh R. Ghazi
ecb0676809 More warning fixes...
* final.c (shorten_branches): Add parentheses around +/- in
        operand of &.
        * flow.c (life_analysis): Wrap variable `i' in macro ELIMINABLE_REGS.

From-SVN: r18703
1998-03-19 07:14:19 +00:00
Jason Merrill
0978790f4f pt.c (tsubst_copy, CONST_DECL): Don't bother tsubsting a function context.
* pt.c (tsubst_copy, CONST_DECL): Don't bother tsubsting
	a function context.

From-SVN: r18702
1998-03-18 21:54:39 -05:00
Jason Merrill
78957a2a8c decl.c (store_bindings): Use free_binding_vecs.
* decl.c (store_bindings): Use free_binding_vecs.
	(pop_from_top_level): Likewise.

From-SVN: r18701
1998-03-18 21:41:03 -05:00
Manfred Hollstein
321c082827 regclass.c (memory_move_secondary_cost): Wrap uses of SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS...
P
	* regclass.c (memory_move_secondary_cost): Wrap uses of
	SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS
	with #ifdef tests.

From-SVN: r18699
1998-03-19 00:16:37 +00:00
Manfred Hollstein
dfba7a1b89 *** empty log message ***
From-SVN: r18698
1998-03-19 00:16:36 +00:00
Manfred Hollstein
676785fd8c m68k.md (addqi3): Fix typo gen_INT vs.
�
	* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
	* flow.c (life_analysis): #include <sys/types.h> to make sure
	size_t is defined.
	* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18697
1998-03-19 00:09:50 +00:00
Manfred Hollstein
0ca8c33adb m68k.md (addqi3): Fix typo gen_INT vs.
�
	* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
	* flow.c (life_analysis): #include <sys/types.h> to make sure
	size_t is defined.
	* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18696
1998-03-19 00:09:48 +00:00
Manfred Hollstein
50c60d34c5 m68k.md (addqi3): Fix typo gen_INT vs.
�
	* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
	* flow.c (life_analysis): #include <sys/types.h> to make sure
	size_t is defined.
	* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18695
1998-03-19 00:09:47 +00:00
Manfred Hollstein
4faca0937f m68k.md (addqi3): Fix typo gen_INT vs.
* config/m68k/m68k.md (addqi3): Fix typo gen_INT vs. GEN_INT.
	* flow.c (life_analysis): #include <sys/types.h> to make sure
	size_t is defined.
	* cplus-dem.c (demangle_function_name): Likewise.

From-SVN: r18694
1998-03-19 00:09:46 +00:00
Manfred Hollstein
22bf44225f final.c (insn_noperands): Change type to unsigned int.
P
	* final.c (insn_noperands): Change type to unsigned int.
	(final_scan_insn): Likewise for noperands;
	properly check operand number boundaries.

From-SVN: r18693
1998-03-19 00:01:20 +00:00
Manfred Hollstein
af7da1998d final.c (insn_noperands): Change type to unsigned int.
�
	* final.c (insn_noperands): Change type to unsigned int.
	(final_scan_insn): Likewise for noperands;
	properly check operand number boundaries.

From-SVN: r18692
1998-03-19 00:01:18 +00:00
Jim Wilson
583708a6b9 Testcase for reg-stack failure for testcase using fp conditional move.
* gcc.dg/980313-1.c: New test for fp conditional move on PPro.

From-SVN: r18679
1998-03-18 08:28:32 -08:00
Jim Wilson
9ef35dfbad * gcc.dg/980312-1.c: Fix typo in -march command.
From-SVN: r18678
1998-03-18 08:22:58 -08:00
Richard Henderson
6ad90d6623 Also fix op1's predicate, though extract_bit_field ignores it.
From-SVN: r18677
1998-03-18 08:22:17 -08:00
Richard Henderson
10a2523226 alpha.md (extzv): Don't reject register operands.
* alpha.md (extzv): Don't reject register operands.  Fix
mode of operand 1.

From-SVN: r18676
1998-03-18 08:21:14 -08:00
Richard Henderson
99d1a24c9b dbxout.c (dbxout_function_end): Fix last change.
* dbxout.c (dbxout_function_end): Fix last change.  The correct
predicate is ASM_OUTPUT_SECTION_NAME.

From-SVN: r18675
1998-03-18 08:14:28 -08:00
Jim Wilson
5bac82c574 Fix bug reported by Toshi Morita.
* sh.md (ashlsi_c-1): Delete 3rd argument to gen_ashlsi_c.
	(ashlsi): Use match_dup 1 instead of match_operand 2.

From-SVN: r18674
1998-03-18 07:45:35 -08:00
Bruce Korb
9623b8e14f Corrected spelling of my name
From-SVN: r18673
1998-03-18 14:09:23 +00:00
Richard Kenner
52de9b6cff fold-const.c (operand_equal_for_comparison_p): See if equal when nop conversions are removed.
Wed Mar 18 13:46:07 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * fold-const.c (operand_equal_for_comparison_p): See if equal
        when nop conversions are removed.

From-SVN: r18672
1998-03-18 05:45:28 -08:00
Richard Kenner
7c00d1fe83 expr.c (expand_expr, [...]): If have conditional move, don't use ORIGINAL_TARGET unless REG.
Wed Mar 18 13:42:01 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * expr.c (expand_expr, case COND_EXPR): If have conditional move,
        don't use ORIGINAL_TARGET unless REG.

From-SVN: r18671
1998-03-18 05:41:50 -08:00
J"orn Rennecke
343665b9a1 * netbsd.h (ASM_OUTPUT_ALIGN): Redefine.
From-SVN: r18670
1998-03-18 12:52:07 +00:00
Jim Wilson
1a61c29f8a Fix sparc-sun-solaris2 -O2 -fPIC bootstrap failure with gcse code.
* loop.c (struct movable): New field move_insn_first.
	(scan_loop): In consec sets code, set it.  Clear it otherwise.
	(move_movables): In consec sets code, use it.  Copy REG_NOTES from
	p to i1 only if i1 does not have REG_NOTES.  Delete obsolete ifdefed
	out code.

From-SVN: r18669
1998-03-18 04:45:22 -08:00
Jason Merrill
74ef3b26f3 decl.c (make_implicit_typename): Only change the type of a TYPENAME_TYPE.
* decl.c (make_implicit_typename): Only change the type of a
	TYPENAME_TYPE.

From-SVN: r18668
1998-03-18 07:42:05 -05:00
Mark Mitchell
ad32129310 semantics.c: New file, containing routines to perform the semantic phase of parsing.
* semantics.c: New file, containing routines to perform the
	semantic phase of parsing.
	* parse.y: Use it.
	* pt.c (tsubst_expr): Likewise.
	* cp-tree.h: Declare the various functions in semantics.c.
	Provide macros to access _STMT tree nodes.
	* cp-tree.def: Add ASM_STMT tree node.
	* Makefile.in, Make-lang.in: Add dependencies on and for
	semantics.c.

From-SVN: r18658
1998-03-18 10:52:04 +00:00
Richard Henderson
cbe3672526 rtl.c (read_rtx): Fall back on homebrew atoll if HOST_WIDE_INT is large...
* rtl.c (read_rtx): Fall back on homebrew atoll if HOST_WIDE_INT
        is large, and the system doesn't provide atoll or atoq.
        (atoll): New.
        * alpha/xm-vms.h (HAVE_ATOLL): Define.
        Reported by Klaus Kaempf <kkaempf@progis.de>.

From-SVN: r18657
1998-03-18 01:55:53 -08:00
Dave Love
8056460354 Makefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file since /dev/null loses with bash...
1998-03-18  Dave Love  <d.love@dl.ac.uk>
	* Makefile.in ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a
	non-existent file since /dev/null loses with bash 2.0/autoconf 2.12.

From-SVN: r18656
1998-03-18 08:51:01 +00:00
Dave Love
601c647504 ($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a non-existent file since...
($(CONFIGURE_TARGET_MODULES)): Set CONFIG_SITE to a
non-existent file since /dev/null loses with bash 2.0/autoconf 2.12.

From-SVN: r18655
1998-03-18 08:39:32 +00:00
Kaveh R. Ghazi
081f5e7e66 Fix more warnings...
* c-lang.c (finish_file): Wrap variable `void_list_node' with macro
        test !ASM_OUTPUT_CONSTRUCTOR || !ASM_OUTPUT_DESTRUCTOR.
        * calls.c (emit_call_1): Wrap variable `already_popped' with macro
        test !ACCUMULATE_OUTGOING_ARGS.
        * collect2.c (write_c_file_glob): Wrap function definition in
        macro test !LD_INIT_SWITCH.
        * combine.c (try_combine): Wrap variables `cc_use' and
        `compare_mode' in macro test EXTRA_CC_MODES.
        * cpplib.c (do_ident): Remove unused variable `len'.
        (skip_if_group): Remove unused variables `at_beg_of_line' and
        `after_ident'.
        (cpp_get_token): Remove unused variable `dummy'.
        * dbxout.c (scope_labelno): Move static variable definition inside
        the one function scope where it is used.
        (dbxout_function_end): Wrap prototype and definition in
        macro test !NO_DBX_FUNCTION_END.
        * dwarf2out.c (add_subscript_info): Wrap variable `dimension_number'
        in macro test !MIPS_DEBUGGING_INFO.
        * expr.c (expand_builtin_setjmp): Move declaration of variable `i'
        into the scope where it is used.  Wrap empty else-statement body
        in braces.
        * fix-header.c: Fix typo in comment.
        (inf_skip_spaces): Cast results of INF_UNGET to (void).
        (check_protection, main): Likewise.
        * flow.c (find_basic_blocks_1): Remove dangling comment text.
        * function.c (contains): Wrap prototype and definition in macro
        test HAVE_prologue || HAVE_epilogue.
        (fixup_var_refs_1): Remove unused variable `width'.
        * gen-protos.c (main): Remove unused variable `optr'.
        * haifa-sched.c (debug_control_flow): Remove unused variable `j'.
        * libgcc2.c (__udiv_w_sdiv): Provide dummy return value of 0.
        (__sjpopnthrow): Remove unused variable `jmpbuf'.
        (__throw): Remove unused variable `val'.
        * protoize.c: Check for a previously existing definition before
        defining *_OK macros.
        * scan-decls.c (scan_decls): Remove unused variable `old_written'.

From-SVN: r18654
1998-03-18 07:18:06 +00:00
Jason Merrill
83566abf9f * pt.c (push_template_decl): Only check primary templates.
From-SVN: r18653
1998-03-17 21:30:09 -05:00
Jason Merrill
670960acd3 pt.c (check_explicit_specialization): Complain about default args in explicit specialization.
* pt.c (check_explicit_specialization): Complain about default args
	in explicit specialization.

From-SVN: r18652
1998-03-17 20:07:57 -05:00
Jason Merrill
58ba5e8ca7 update
From-SVN: r18651
1998-03-17 20:05:51 -05:00
Jason Merrill
ef76081acc parse.y (nomods_initdcl0): Also call cp_finish_decl for a constructor_declarator.
* parse.y (nomods_initdcl0): Also call cp_finish_decl for a
	constructor_declarator.

From-SVN: r18650
1998-03-17 19:31:01 -05:00
Jim Wilson
b244d07c40 Regenerate.
From-SVN: r18649
1998-03-17 09:14:11 -08:00
Jim Wilson
8d02e5c54c Regenerate.
From-SVN: r18648
1998-03-17 08:48:45 -08:00
Mark Mitchell
297dcfb3a9 typeck2.c (build_x_arrow): Don't crash when an aggregate type has no overloaded operator ->.
* typeck2.c (build_x_arrow): Don't crash when an aggregate type
	has no overloaded operator ->.
	* call.c (build_field_call): Don't crash when presented with a
	field that is actually a nested type.
	* decl.c (pushtag): Deal with friend class injection in local
	classes.
	* call.c (build_object_call): Don't crash if OBJ is a
	pointer-to-member-function.

From-SVN: r18647
1998-03-17 14:59:43 +00:00
Jason Merrill
c7dfe58480 pt.c (push_template_decl): Complain about template with C linkage, anonymous template class.
* pt.c (push_template_decl): Complain about template with C linkage,
	anonymous template class.

From-SVN: r18646
1998-03-17 07:20:38 -05:00
Manfred Hollstein
edcd669072 config-ml.in: After building symlink tree call make distclean if...
�
	* config-ml.in: After building symlink tree call make distclean
	if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
	to be the case for libiberty.
	* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18645
1998-03-17 01:38:14 +00:00
Manfred Hollstein
7d6af352b9 config-ml.in: After building symlink tree call make distclean if...
�
	* config-ml.in: After building symlink tree call make distclean
	if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
	to be the case for libiberty.
	* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18644
1998-03-17 01:38:13 +00:00
Manfred Hollstein
88838149c7 config-ml.in: After building symlink tree call make distclean if...
�
	* config-ml.in: After building symlink tree call make distclean
	if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
	to be the case for libiberty.
	* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18643
1998-03-17 01:38:12 +00:00
Manfred Hollstein
2d4a055846 config-ml.in: After building symlink tree call make distclean if...
P
	* config-ml.in: After building symlink tree call make distclean
	if a Makefile got linked into ${ml_dir}/${ml_libdir}; this happens
	to be the case for libiberty.
	* Makefile.in (clean, distclean): Add 'info' explicitly.

From-SVN: r18642
1998-03-17 01:38:10 +00:00
H.J. Lu
bd064fd506 configure: When making link, also check the current directory.
8
	* configure: When making link, also check the current
	directory. The configure scripts may create one.

From-SVN: r18641
1998-03-17 01:24:55 +00:00
H.J. Lu
04b9356733 configure: When making link, also check the current directory.
p
	* configure: When making link, also check the current
	directory. The configure scripts may create one.

From-SVN: r18640
1998-03-17 01:24:54 +00:00
Jason Merrill
98fa9e12cd undo
From-SVN: r18639
1998-03-16 19:20:08 -05:00
Jason Merrill
b68c32add4 new
From-SVN: r18638
1998-03-16 19:19:43 -05:00
Jason Merrill
22531e51c3 class.c (pushclass): Only use the mi_matrix stuff #ifdef MI_MATRIX.
* class.c (pushclass): Only use the mi_matrix stuff #ifdef MI_MATRIX.
	* search.c: Likewise.
	* lex.c (do_pending_defargs): Only call
	maybe_{begin,end}_member_template_processing for FUNCTION_DECLs.
	* parse.y (initdcl0_innards): Move maybeasm back into initdcl0 et al.

From-SVN: r18637
1998-03-16 19:03:43 -05:00
Jason Merrill
91885faad2 fix
From-SVN: r18636
1998-03-16 18:56:43 -05:00
H.J. Lu
6591521aca New testcase from H.J. Lu for PPro FP conditional move bug.
* gcc.dg/980312-1.c: Another new test for fp on PPro.

From-SVN: r18633
1998-03-16 12:03:19 -08:00
J"orn Rennecke
76ce477676 * vax.h (ADDR_VEC_ALIGN): Define.
From-SVN: r18632
1998-03-16 16:47:30 +00:00
Michael Meissner
dbf55e5349 Ensure sum from SDA is 16-bit
From-SVN: r18631
1998-03-16 15:35:24 +00:00