Commit Graph

36505 Commits

Author SHA1 Message Date
Neil Booth
440aabf865 toplev.c, [...]: Include xcoffout.h if appropriate.
* toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
	* dbxout.c (dbxout_global_decl): Move outside #ifdef.
	* Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.

From-SVN: r44382
2001-07-26 06:56:13 +00:00
Andreas Jaeger
a6ed70ef1d * analyze_brprob: Fix documentation.
From-SVN: r44381
2001-07-26 08:41:48 +02:00
Neil Booth
cef0d199d2 cpphash.h (struct_lexer_state): Delete was_skipping.
* cpphash.h (struct_lexer_state): Delete was_skipping.
	Move skipping here from struct cpp_reader.
	* cpplex.c (parse_identifier): Update.
	(_cpp_lex_token): Don't skip tokens in a directive.
	* cpplib.c (struct if_stack): Update.
	(start_directive, end_directive): Don't change skipping state.
	(_cpp_handle_directive): Update.
	(do_ifdef, do_ifndef, do_if, do_elif): Similarly.
	(do_else, do_endif): Update; only check for excess tokens if not
	in a skipped conditional block.
	(push_conditional): Update for new struct if_stack.

	* gcc.dg/cpp/extratokens.c: Fix.
	* gcc.dg/cpp/skipping2.c: New tests.

From-SVN: r44380
2001-07-26 06:02:47 +00:00
Graham Stott
2e824adbe4 function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding.
* function.c (locate_and_pad_parm): Also pad initial offset
        so that the total argument size also includes the padding.

From-SVN: r44379
2001-07-26 05:45:25 +00:00
Graham Stott
66621f9e02 gensupport.c (alter_output_for_insn): Correct enable checking failure change XSTR to XTMPL.
* gensupport.c (alter_output_for_insn): Correct enable checking failure
        change XSTR to XTMPL.

        (process_one_cond_exec): Likewise

From-SVN: r44378
2001-07-26 05:44:18 +00:00
Graham Stott
5b16f5560b function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding.
* function.c (locate_and_pad_parm): Also pad initial offset
        so that the total argument size also includes the padding.

        * gensupport.c (alter_output_for_insn): Correct enable checking failure
        change XSTR to XTMPL.

        (process_one_cond_exec): Likewise

From-SVN: r44377
2001-07-26 05:43:34 +00:00
H.J. Lu
3f19669a7c configure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
2001-07-25  H.J. Lu <hjl@gnu.org>

	* configure.target (cpu_include_dir): Set to `config/cpu/mips'
	for mips.

	* config/cpu/mips/bits/atomicity.h: New.

From-SVN: r44375
2001-07-25 22:04:48 -07:00
H.J. Lu
95b02d7e3a configure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
2001-07-25  H.J. Lu <hjl@gnu.org>

	* configure.target (cpu_include_dir): Set to `config/cpu/mips'
	for mips.

	* config/cpu/mips/bits/atomicity.h: New.

[[Split portion of a mixed commit.]]

From-SVN: r44374.2
2001-07-25 22:04:48 -07:00
Richard Henderson
17eee61c6d varasm.c (assemble_variable): Create DECL_RTL before setting TREE_ASM_WRITTEN.
* varasm.c (assemble_variable): Create DECL_RTL before setting
        TREE_ASM_WRITTEN.

From-SVN: r44372
2001-07-25 18:28:01 -07:00
Jan Hubicka
b0fd92a3c8 Fix typo spotted by Richard.
From-SVN: r44370
2001-07-25 22:36:42 +00:00
Jan Hubicka
c4f81e4a6b predict.c (estimate_probability): Avoid duplicated predictions.
* predict.c (estimate_probability): Avoid duplicated predictions.

	* loop.c (find_and_verify_loops): Grok multiple barriers.

From-SVN: r44369
2001-07-25 22:23:09 +00:00
Richard Kenner
472385a25f * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
From-SVN: r44368
2001-07-25 18:08:05 -04:00
Richard Kenner
02e3f1a8e2 dbxout.c: Consistently use putc instead of fputc.
* dbxout.c: Consistently use putc instead of fputc.
 	(print_wide_int): New function; call instead of direct fprintf.
	(dbxout_type_index): Adjust calls of CHARS to be more accurate.
	(dbxout_type_fields, dbxout_type_method_1): Likewise.
	(dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
	(print_int_cst_octal): Likewise.
	(print_octal): Show we wrote characters.
	(dbxout_type): Set have_used_extensions in more places.

From-SVN: r44367
2001-07-25 18:03:03 -04:00
Catherine Moore
f2d28b14f3 v850.c (v850_va_arg): Use addr instead of valist to build incr.
* config/v850/v850.c (v850_va_arg):  Use addr
        instead of valist to build incr.

From-SVN: r44366
2001-07-25 17:49:46 -04:00
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