Commit Graph

16011 Commits

Author SHA1 Message Date
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
Michael Meissner
e29ef9202e Fix off by 1 error in handling multilibs
From-SVN: r18630
1998-03-16 13:06:49 +00:00
Jim Wilson
883482b23d Patch from Ingolf Kock to fix -m68060 problems.
* config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}.

From-SVN: r18629
1998-03-16 04:57:02 -08:00
Andrew Macleod
9ad82ff80e * minor update in posting address
From-SVN: r18628
1998-03-16 12:55:45 +00:00
Andrew Macleod
77153e9cc1 sparc.md: Add calls to 'in_same_eh_region' in 4 peepholes involving calls and...
* config/sparc/sparc.md: Add calls to 'in_same_eh_region' in 4
	peepholes involving calls and unconditional branches.

From-SVN: r18627
1998-03-16 12:52:33 +00:00
Andrew Macleod
41fe085f07 genpeep.c (main): Add "except.h" to include file list in generated file insn-peep.c.
* genpeep.c (main): Add "except.h" to include file list in generated
	file insn-peep.c.

From-SVN: r18626
1998-03-16 12:52:09 +00:00
Andrew Macleod
a8c3510c8f final.c (final): Initialize the table indicating which instructions belong in which exception region.
* final.c (final): Initialize the table indicating which instructions
	belong in which exception region.

From-SVN: r18625
1998-03-16 12:51:56 +00:00
Andrew Macleod
77d33a842d except.c (insn_eh_region, [...]): New static variables.
* except.c (insn_eh_region, maximum_uid): New static variables.
	(set_insn_eh_region): New static function to set region numbers.
	(free_insn_eh_region): New function to free EH region table.
	(init_insn_eh_region): New function to initialize EH region table.
	(in_same_eh_region): New function used to determine if two rtl
	instructions are in the same exception region or not.

From-SVN: r18624
1998-03-16 12:51:39 +00:00
Andrew Macleod
5aa550437e except.h (in_same_eh_region): New prototype.
* except.h (in_same_eh_region): New prototype.
	(free_insn_eh_region, init_insn_eh_region): New prototypes.

From-SVN: r18623
1998-03-16 12:51:14 +00:00
Andrew Macleod
a0b61d1419 except.h (in_same_eh_region): New prototype.
* except.h (in_same_eh_region): New prototype.
	(free_insn_eh_region, init_insn_eh_region): New prototypes.
	* except.c (insn_eh_region, maximum_uid): New static variables.
	(set_insn_eh_region): New static function to set region numbers.
	(free_insn_eh_region): New function to free EH region table.
	(init_insn_eh_region): New function to initialize EH region table.
	(in_same_eh_region): New function used to determine if two rtl
	instructions are in the same exception region or not.
	* final.c (final): Initialize the table indicating which instructions
	belong in which exception region.
	* genpeep.c (main): Add "except.h" to include file list in generated
	file insn-peep.c.
	* config/sparc/sparc.md: Add calls to 'in_same_eh_region' in 4
	peepholes involving calls and unconditional branches.

From-SVN: r18622
1998-03-16 12:50:46 +00:00
Ken Raeburn
cbd5b9a22d Change MEMORY_MOVE_COST defs and uses to be able to take register class into account.
Change MEMORY_MOVE_COST defs and uses to be able to take register class into
account.  Change mips def to actually do so, others to just ignore extra args.
Doc changes too.

From-SVN: r18621
1998-03-16 11:56:25 +00:00
Mark Mitchell
8b1616ad12 * parse.y: Deal with CONSTRUCTORS in new_initializers.
From-SVN: r18620
1998-03-16 11:46:07 +00:00
Jim Wilson
66bd0128f1 Instructions and patches for building GNAT with EGCS.
* README.gnat: New file.

From-SVN: r18619
1998-03-16 03:19:03 -08:00
Mark Mitchell
544c188d00 pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more closely mimics the behavior in parse.y.
* pt.c (tsubst_copy): Deal with BIND_EXPR in a way that more
	closely mimics the behavior in parse.y.
	(tsubst_expr): Return the resuting BLOCK when making a tsubst'ing
	into a compound statement.

From-SVN: r18618
1998-03-16 10:54:48 +00:00
Andreas Schwab
1d8eaa6b15 m68k.c: Include <stdlib.h> for atoi.
* config/m68k/m68k.c: Include <stdlib.h> for atoi.  Include
	"recog.h" for offsettable_memref_p.
	(legitimize_pic_address): Remove unused variable `offset'.
	(notice_update_cc): Change return type to void.  Add default label
	to switch.
	(standard_68881_constant_p): Remove unused variable mode.
	(print_operand): Define local variable i only if SUPPORT_SUN_FPA.
	(const_int_cost): Explicitly declare as returning int.
	(output_dbcc_and_branch): Change return type to void.
	* config/m68k/linux.h, config/m68k/m68k.md, config/m68k/m68k.c,
	config/m68k/m68k.h: Replace gen_rtx (XXX, ...) with gen_rtx_XXX
	(...).  Use GEN_INT instead of gen_rtx_CONST_INT.

From-SVN: r18617
1998-03-16 02:16:43 +00:00