Commit Graph

36691 Commits

Author SHA1 Message Date
Jan Hubicka
6e64a52a92 flow.c (delete_dead_jumptables): New function.
* flow.c (delete_dead_jumptables): New function.
	(life_analyzis): Call it.
	* bb-reorder.c (skip_insns_after_block): Handle contradictive sequences.

From-SVN: r44365
2001-07-25 20:51:24 +00:00
Richard Henderson
7f206d8f42 except.c (reachable_handlers): Handle a region being removed out from under a RESX.
* except.c (reachable_handlers): Handle a region being removed
        out from under a RESX.

From-SVN: r44363
2001-07-25 12:59:39 -07:00
Jason Merrill
2c938d4292 xfail until patch applied
From-SVN: r44361
2001-07-25 14:11:45 -04:00
Richard Henderson
56f19d9276 alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.
* config/alpha/alpha.c (alpha_emit_conditional_move): Always
        swap GE/GT if its an fp comparison.

From-SVN: r44360
2001-07-25 10:34:04 -07:00
Tom Tromey
a9e83c1b1b Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (libgcj.jar): Correctly fail when bytecode
	compilation fails.

From-SVN: r44359
2001-07-25 16:40:04 +00:00
Jason Merrill
08ac397c04 call.c (joust): Only prefer a non-builtin candidate to a builtin one if...
* call.c (joust): Only prefer a non-builtin candidate to a builtin
        one if they have the same signature.

        * cvt.c (build_up_reference): Take DECL parm.  Check TREE_STATIC on
        it rather than toplevel_bindings_p.  Give it a mangled name if static.
        (convert_to_reference): Adjust.
        * decl2.c (get_temp_name): Lose.
        * mangle.c (mangle_ref_init_variable): New fn.
        (mangle_guard_variable): Strip the ref-init header.
        * cp-tree.h: Adjust.
        * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
        initializer.
        (grok_reference_init): Always use DECL_INITIAL.

From-SVN: r44358
2001-07-25 11:04:32 -04:00
Jeffrey A Law
ea0eceb165 ssa.c (rename_insn_1): Do not wrap an assignment to a paradoxical SUBREG inside a SEQUENCE.
* ssa.c (rename_insn_1): Do not wrap an assignment to a
        paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
        glitch.

From-SVN: r44357
2001-07-25 08:41:35 -06:00
Andrew Haley
3237ac1875 alias.c (rtx_equal_for_memref_p): Allow strings as types in operands.
2001-07-19  Andrew Haley  <aph@cambridge.redhat.com>

	* alias.c (rtx_equal_for_memref_p): Allow strings as types in
	operands.

From-SVN: r44356
2001-07-25 14:38:29 +00:00
Jeffrey A Law
42f28de90b ssa-ccp.c (visit_expression): Handle CALL_INSNs that can throw an exception.
* ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
        throw an exception.
        (visit_expression): When attempting to simplify an expression,
        retrieve any modes for arguments before they are simplified
        to constants.

From-SVN: r44355
2001-07-25 08:23:08 -06:00
Andrew MacLeod
7c2b017c9a stmt.c (expand_goto): A nonlocal goto can be a call too.
2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
	    Janis Johnson  <janis@us.ibm.com>

	* stmt.c (expand_goto): A nonlocal goto can be a call too.
	* builtins.c (expand_builtin_longjmp): Reverse label and static chain
	pointer parameters to match documented usage of nonlocal_goto.
	* config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
	parameters to their correct order.
	* config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
	parameters to their correct order.

Co-Authored-By: Janis Johnson <janis@us.ibm.com>

From-SVN: r44353
2001-07-25 13:33:17 +00:00
Andrew MacLeod
ff3daa889a * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
From-SVN: r44351
2001-07-25 13:21:49 +00:00
Jason Merrill
a89dd0729b fix noreturn warnings
From-SVN: r44350
2001-07-25 08:06:20 -04:00
Jason Merrill
31d8a3ac1c moved to dg
From-SVN: r44349
2001-07-25 08:05:42 -04:00
Rainer Orth
50011802c0 20010724-1.c: New file.
* gcc.c-torture/execute/20010724-1.c: New file.
	* gcc.c-torture/execute/20010724-1.x: New file.

From-SVN: r44346
2001-07-25 11:28:50 +00:00
Nathan Sidwell
4026042933 re PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)
cp:
	PR c++/3416
	* call.c (build_conditional_expr): Recheck args after
	conversions.
	* cp-tree.h (build_conditional_expr): Move to correct file.
	* typeck.c (decay_conversion): Diagnose any unknown types
	reaching here.
	(build_binary_op): Don't do initial decay or default
	conversions on overloaded functions.
	(build_static_cast): Don't do a decay conversion here.
testsuite:
	* g++.old-deja/g++.other/cond7.C: New test.

From-SVN: r44345
2001-07-25 09:38:26 +00:00
Nathan Sidwell
ab085207aa re PR c++/3543 (gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963)
cp:
	PR c++/3543
	* typeck.c (condition_conversion): Resolve an OFFSET_REF.
	* expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
testsuite:
	* g++.old-deja/g++.other/optimize4.C: New test.

From-SVN: r44340
2001-07-25 09:00:37 +00:00
Nathan Sidwell
0abe00c528 class.c (build_vtbl_or_vbase_field): Remove, move into ...
cp:
	* class.c (build_vtbl_or_vbase_field): Remove, move into ...
	(create_vtbl_ptr): ... here.

From-SVN: r44337
2001-07-25 08:54:06 +00:00
Nathan Sidwell
90b1ca2f52 class.c (build_vbase_offset_vbtl_entries): Look for non-primary base of which we are a sub vtable.
cp:
	* class.c (build_vbase_offset_vbtl_entries): Look for
	non-primary base of which we are a sub vtable.
testsuite:
	* g++.old-deja/g++.abi/vbase8-5.C: New test.

From-SVN: r44336
2001-07-25 08:52:32 +00:00
Jan Hubicka
a368a2fabb flow.c (find_sub_basic_blocks): Fix handling of the last BB in the sequence.
* flow.c (find_sub_basic_blocks): Fix handling of the last BB in
        the sequence.
        (make_edges): New argument update_p; populate the edge cache if set.
        (find_basic_blocks): Update make_edges invocation.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r44335
2001-07-25 01:30:36 -07:00
Gabriel Dos Reis
d38cd8ae50 acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, hypotl, atan2f, atan2l.
* acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
        hypotl, atan2f, atan2l.  Remove from REPLACE_MATHFUNCS list.
        * aclocal.m4: Regenerate.
        * config.h.in: Likewise.
        * configure: Likewise.
        * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
        (EXTRA_DIST): Remove hypot.c hypotf.c.
        * libmath/Makefile.am: Regenerate.
        * libmath/hypotf.c: Remove.
        * libmath/hypot.c: Likewise.
        * libmath/hypotl.c: Likewise.
        * libmath/stubs.c: The macros seen here are HAVE_xxx, not
        _GLIBCPP_HAVE_xxx.  Add long double versions.

From-SVN: r44334
2001-07-25 08:06:47 +00:00
GCC Administrator
40a25731d6 Daily bump.
From-SVN: r44332
2001-07-25 07:16:08 +00:00
Joel Sherrill
303e979ace * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
From-SVN: r44331
2001-07-24 18:57:20 -07:00
Joel Sherrill
7adb4be894 rtems.h (CPP_PREDEFINES): Remove redundant -Acpu and -Amachine.h.
* config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
        -Acpu and -Amachine.h.
        * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
        Corrected header to say ELF not a.out.
        * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
        when given -msoft-float.

From-SVN: r44328
2001-07-24 18:53:26 -07:00
Joel Sherrill
bb8602be34 config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as extra multilib parts like arm-elf.
* config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
        extra multilib parts like arm-elf.
        (i960-*-coff*, i960-*-rtems): Should not use collect2.
        (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
        crtfini.o as extra multilib parts.

From-SVN: r44327
2001-07-24 18:49:45 -07:00
Joel Sherrill
e08f13ee31 configure.in: Add rtems as a supported thread model.
* configure.in: Add rtems as a supported thread model.
        * gthr-rtems.h: Add missing entry point __gthread_active_p.
        * configure: Rebuilt.

From-SVN: r44324
2001-07-24 18:44:29 -07:00
Phil Edwards
cfe5dc317f semantics.c (finish_this_expr): Remove unused code.
2001-07-24  Phil Edwards  <pme@sources.redhat.com>

	* semantics.c (finish_this_expr):  Remove unused code.

From-SVN: r44323
2001-07-25 01:34:03 +00:00
Lars Brinkhoff
0c23768840 stor-layout.c (get_mode_alignment): make it work when BITS_PER_UNIT is not a power of two.
* stor-layout.c (get_mode_alignment): make it work when
        BITS_PER_UNIT is not a power of two.
        * builtins.c (get_pointer_alignment): Likewise.

From-SVN: r44322
2001-07-24 18:19:23 -07:00
Richard Henderson
5a2aa3bd76 simplify-rtx.c (avoid_constant_pool_reference): Coerce the retrieved constant into the expected mode.
* simplify-rtx.c (avoid_constant_pool_reference): Coerce
        the retrieved constant into the expected mode.

From-SVN: r44321
2001-07-24 16:43:55 -07:00
Jan Hubicka
ca9fef16af flow.c (try_simplify_condjump): Avoid duplicated edges.
* flow.c (try_simplify_condjump): Avoid duplicated edges.
	(verify_flow_info): Check for duplicated edges; clarify
	error reporting.

	* flow.c (block_label): Update basic_block_for_insn.
	(commit_edge_insertions): Call compute_bb_for_insn.

	* flow.c (purge_dead_edges): Handle conditional jumps and conditional
	returns too.

	* flow.c (redirect_edge_and_branch,
	try_optimize_cfg): Use redirect_edge_succ_nodup
	(redirect_edge_succ_nodup): New.
	* basic_block.h (redirect_edge_succ_nodup): Declare.

	* toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
	after gcse.

From-SVN: r44320
2001-07-24 23:42:40 +00:00
Jan Hubicka
40fc4e6a9f flow.c (try_forward_edges): Accept fallthru edge; Update comment.
* flow.c (try_forward_edges): Accept fallthru edge; Update comment.
	(try_crossjump_to_edge): Update commetns.
	(try_crossjump_bb): Likewise.

From-SVN: r44318
2001-07-24 22:34:43 +00:00
Richard Henderson
e7139885a9 combine.c (distribute_notes): Move set of need_refresh for noop_move_p down to catch all cases.
* combine.c (distribute_notes): Move set of need_refresh
        for noop_move_p down to catch all cases.

From-SVN: r44317
2001-07-24 14:39:19 -07:00
Rainer Orth
edd60b15d1 prims.cc (_JNI_OnLoad): New function.
* prims.cc (_JNI_OnLoad): New function.
	(JNI_OnLoad): Use it.
	(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.

From-SVN: r44316
2001-07-24 20:08:58 +00:00
Rainer Orth
6e6958dce4 Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
	Makefile.in: Regenerate.

From-SVN: r44314
2001-07-24 19:51:34 +00:00
Jan Hubicka
6f862f2fa9 recog.c (split_all_insns_noflow): New.
* recog.c (split_all_insns_noflow): New.
	* rtl.h (split_all_insns_noflow): Declare.
	* ia64.c (ia64_reorg): Use split_all_insns_noflow.
	* m68hc11.c (m68hc11_reorg): Likewise.
	* sh.c (machine_dependent_reorg): Likewise.
	* toplev.c (rest_of_compilation): Likewise for last split_all_insns
	call.

From-SVN: r44312
2001-07-24 18:34:07 +00:00
Andrew Haley
615cd49b9a sh.md (ashlsi3_std splitter): Split only after reload.
2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>

        * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
        (ashlsi3_n splitter): Likewise.
        (lshrsi3_n splitter): Likewise.

        (GOTaddr2picreg): Make const SImode.
        (sym_label2reg): Likewise.
        (symGOT2reg): Likewise.
        (symGOTOFF2reg) Likewise.

        (casesi_worker_0): Make unspec SImode.

From-SVN: r44304
2001-07-24 15:52:26 +00:00
Andrew Haley
2b9d17c73c sh.c (barrier_align): Check that an operand really is an insn before extracting its INSN_CODE.
2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>

        * config/sh/sh.c (barrier_align): Check that an operand really is
        an insn before extracting its INSN_CODE.

From-SVN: r44303
2001-07-24 15:25:51 +00:00
Jason Merrill
41971242cc * lib/scanasm.exp (scan-assembler*): Don't take "testcase" argument.
From-SVN: r44302
2001-07-24 11:17:04 -04:00
Jason Merrill
6f817aaf98 move to subdirs
From-SVN: r44301
2001-07-24 11:08:37 -04:00
Jason Merrill
f8b529aa0a * g++.dg/dg.exp: Run tests from subdirectories other than "special".
From-SVN: r44300
2001-07-24 11:06:50 -04:00
Jason Merrill
c934225791 prune.exp (prune_gcc_output): Prune "Please submit a full bug report" message.
* lib/prune.exp (prune_gcc_output): Prune "Please submit a full
        bug report" message.

From-SVN: r44299
2001-07-24 11:06:27 -04:00
Andrew Haley
cfe1cd4037 sh.h (OVERRIDE_OPTIONS): Add braces to get rid of dangling else.
2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>

        * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
        dangling else.

        * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
        for SImode to prevent overflow.

From-SVN: r44298
2001-07-24 15:06:14 +00:00
Jason Merrill
22d69b599b tweak comment
From-SVN: r44297
2001-07-24 10:55:07 -04:00
Tom Tromey
82545bf72f VMClassLoader.java (getPrimitiveClass): Return correct type.
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
	type.

From-SVN: r44296
2001-07-24 14:31:42 +00:00
David Billinghurst
897c6ab759 intrinsic-unix-bessel.f: New test
2001-07-24  David Billinghurst <David.Billinghurst@riotinto.com>

	* g77.f-torture/execute/intrinsic-unix-bessel.f: New test
	* g77.f-torture/execute/intrinsic-unix-erf.f: New test
	* g77.f-torture/execute/intrinsic-vax-cd.f: New test
	* g77.f-torture/execute/intrinsic-f2c-z.f: New test

From-SVN: r44295
2001-07-24 13:32:53 +00:00
Rainer Orth
46d2e8d778 irix6-libc-compat.c: New file.
* config/mips/irix6-libc-compat.c: New file.
	* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
	* doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
	passing workaround.

From-SVN: r44294
2001-07-24 12:27:03 +00:00
Lars Brinkhoff
cd6e529112 rtl.texi (REG_POINTER): Document.
* rtl.texi (REG_POINTER): Document.
	(Machine Modes): Document BImode, OImode, PQImode, PHImode,
	QFmode, HFmode, TQFmode, QCmode, and HCmode.

From-SVN: r44292
2001-07-24 09:13:19 +00:00
Nathan Sidwell
7f54a8510b Simplify rtti, now we've only one ABI.
* cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
	CPTI_TINFO_VAR_ID.
	(tinfo_decl_id, tinfo_var_id): Remove.
	(get_typeid_1): Remove.
	* rtti.c
	(init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
	(typeid_ok_p): New function.
	(build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
	(get_tinfo_decl): Remove old abi documentation.
	(tinfo_from_decl): Remove.
	(get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
	(get_typeid_1): Remove.
	(get_base_offset): Remove.
	(synthesize_tinfo_var): Absorb get_base_offset.
	(create_real_tinfo_var): Don't use tinfo_decl_id.

From-SVN: r44291
2001-07-24 08:56:12 +00:00
Jan Hubicka
8f54d2fffd * flow.c (delete_noop_moves): Do not confuse libcall regions.
From-SVN: r44290
2001-07-24 08:54:59 +00:00
GCC Administrator
016c22b5b4 Daily bump.
From-SVN: r44288
2001-07-24 07:16:15 +00:00
Richard Henderson
6a7ca9966b * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
From-SVN: r44287
2001-07-23 17:57:46 -07:00