gcc.git
23 years agoTue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
Jan Hubicka [Tue, 31 Jul 2001 13:43:22 +0000 (15:43 +0200)]
Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>

* reg-stack (convert_regs_1): Fix best edge condition.

From-SVN: r44513

23 years agojump.c (duplicate_loop_exit_test): Better test for jumps entering the loop; create...
Jan Hubicka [Tue, 31 Jul 2001 13:36:12 +0000 (15:36 +0200)]
jump.c (duplicate_loop_exit_test): Better test for jumps entering the loop; create loop pre_header.

* jump.c (duplicate_loop_exit_test): Better test for jumps
entering the loop; create loop pre_header.

From-SVN: r44512

23 years agore PR c++/3631 (another linking problem with virtual derivation)
Nathan Sidwell [Tue, 31 Jul 2001 08:56:09 +0000 (08:56 +0000)]
re PR c++/3631 (another linking problem with virtual derivation)

cp:
PR c++/3631
* class.c (update_vtable_entry_for_fn): The fixed adjustment
of a virtual thunk should be from declaring base.
testsuite:
* g++.dg/abi/vthunk1.C: New test.

From-SVN: r44509

23 years agoclass.c (dfs_ctor_vtable_bases_queue_p): Always walk into the shared virtual base...
Nathan Sidwell [Tue, 31 Jul 2001 08:49:00 +0000 (08:49 +0000)]
class.c (dfs_ctor_vtable_bases_queue_p): Always walk into the shared virtual base, so preserving inheritance graph order.

cp:
* class.c (dfs_ctor_vtable_bases_queue_p): Always walk into
the shared virtual base, so preserving inheritance graph order.
testsuite:
* g++.dg/abi/vbase8-22.C: New test.

From-SVN: r44506

23 years agoDaily bump.
GCC Administrator [Tue, 31 Jul 2001 07:16:44 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44505

23 years ago* gcc.dg/cpp/macro8.c: New tests.
Neil Booth [Tue, 31 Jul 2001 06:52:21 +0000 (06:52 +0000)]
* gcc.dg/cpp/macro8.c: New tests.

From-SVN: r44502

23 years agoinstall.texi: Add s390 s390x as new targets.
Hartmut Penner [Tue, 31 Jul 2001 06:38:29 +0000 (06:38 +0000)]
install.texi: Add s390 s390x as new targets.

*doc/install.texi: Add s390 s390x as new targets.
*doc/invoke.texi: Add documantation of S/390 and zSeries
target options.
* doc/md.texi: Add documantation of S/390 and zSeries constraints.

From-SVN: r44501

23 years agom68k.md: Replace all general_operand with nonimmediate_operand for all destinations.
Roman Zippel [Tue, 31 Jul 2001 03:45:08 +0000 (03:45 +0000)]
m68k.md: Replace all general_operand with nonimmediate_operand for all destinations.

        * config/m68k/m68k.md: Replace all general_operand with
        nonimmediate_operand for all destinations.
        * config/m68k/m68k.c (not_sp_operand): Likewise.

From-SVN: r44499

23 years ago* flow.c (merge_blocks): Return 1 if an extra jump is inserted.
John Wehle [Tue, 31 Jul 2001 03:24:06 +0000 (03:24 +0000)]
* flow.c (merge_blocks): Return 1 if an extra jump is inserted.

From-SVN: r44498

23 years ago* java/util/Date.java: Re-merged with Classpath.
Tom Tromey [Tue, 31 Jul 2001 03:01:47 +0000 (03:01 +0000)]
* java/util/Date.java: Re-merged with Classpath.

From-SVN: r44497

23 years agoia64.h (DEBUG_RANGES_SECTION): New.
Richard Henderson [Tue, 31 Jul 2001 02:41:52 +0000 (19:41 -0700)]
ia64.h (DEBUG_RANGES_SECTION): New.

        * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
        * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.

From-SVN: r44496

23 years agoSyncTest.java: New file.
Jeff Sturm [Tue, 31 Jul 2001 02:13:46 +0000 (02:13 +0000)]
SyncTest.java: New file.

* libjava.lang/SyncTest.java: New file.
* libjava.lang/SyncTest.out: New file.
* libjava.lang/SyncTest.xfail: New file.

From-SVN: r44495

23 years agonatPlainDatagramSocketImpl.cc: Undefine bind if defined.
Jeff Sturm [Tue, 31 Jul 2001 01:59:44 +0000 (01:59 +0000)]
natPlainDatagramSocketImpl.cc: Undefine bind if defined.

* java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
(_Jv_bind): New static function.
(bind): Use _Jv_bind.
* java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
(_Jv_bind, _Jv_connect): New static functions.
(bind): Use _Jv_bind.
(connect): Use _Jv_connect.

From-SVN: r44494

23 years agoconfigure.target: Remove mips from cpu table.
Benjamin Kosnik [Tue, 31 Jul 2001 01:49:30 +0000 (01:49 +0000)]
configure.target: Remove mips from cpu table.

2001-07-30  Benjamin Kosnik  <bkoz@redhat.com>

        * configure.target: Remove mips from cpu table.
        * config/cpu/mips/bits/atomicity.h: Remove generic
        versions. Comment sgidefs include.

From-SVN: r44493

23 years agom68k.h (TARGET_SWITCHES/TARGET_OPTIONS): Add missing doc strings
Roman Zippel [Mon, 30 Jul 2001 21:30:40 +0000 (21:30 +0000)]
m68k.h (TARGET_SWITCHES/TARGET_OPTIONS): Add missing doc strings

        * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
        Add missing doc strings
        * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
        * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise

From-SVN: r44489

23 years agoi386.c (ix86_output_main_function_alignment_hack): New function.
Jan Hubicka [Mon, 30 Jul 2001 20:30:23 +0000 (22:30 +0200)]
i386.c (ix86_output_main_function_alignment_hack): New function.

* i386.c (ix86_output_main_function_alignment_hack): New function.
(TARGET_ASM_FUNCTION_PROLOGUE): Default to it.

* flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
edges by EDGE_DFS_BACK flag.
(dump_edge_info): Add dfs_back flag.
* basic-block.h (EDGE_DFS_BACK): New constant.
(mark_dfs_back_edges): Declare.
* alias.c (loop_p): Remove.
(mark_constant_function): Use mark_dfs_back_edges.

* reg-stack.c (block_info_def): Add predecesors counter and stack_out.
(reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
(compensate_edge): Break out from ...
(convert_regs_1): ... here; do smart choosing of stack_out to copy.
(convert_regs_2): Set block_done once block is really done;
Do updating of the predecesors counts.

* toplev.c (rest_of_compilation): Recompute block_for_insn
before post-reload cfg_cleanup.
* function.c (thread_prologue_epilogue_insns):
Call set_block_for_new_insns when emitting prologue directly.

From-SVN: r44486

23 years agoAdd forgotten ChangeLog entry.
Andreas Jaeger [Mon, 30 Jul 2001 20:24:59 +0000 (22:24 +0200)]
Add forgotten ChangeLog entry.

From-SVN: r44485

23 years agonatIconv.cc (done): New methods.
Tom Tromey [Mon, 30 Jul 2001 20:24:18 +0000 (20:24 +0000)]
natIconv.cc (done): New methods.

2001-07-30  Tom Tromey  <tromey@redhat.com>
    Corey Minyard  <minyard@acm.org>

* gnu/gcj/convert/natIconv.cc (done): New methods.
* gnu/gcj/convert/Output_iconv.java (done): New method.
* gnu/gcj/convert/Input_iconv.java (done): New method.
* gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
Removed.
(getDefaultEncodingClass): Removed.
(getDefaultEncoder): Use getEncoder.
(done): New method.
(defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
static fields.
* gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
Removed.
(defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
static fields.
(getDefaultDecodingClass): Removed.
(getDefaultDecoder): Use getDecoder.
(getDecoder): Look up decoder in cache.
(done): New method.
* java/lang/natString.cc (init): Call `done' on converter.
(getBytes): Likewise.

Co-Authored-By: Corey Minyard <minyard@acm.org>
From-SVN: r44484

23 years agoflow.c (mark_set_1): Use REG_FREQ_FROM_BB.
Jan Hubicka [Mon, 30 Jul 2001 20:03:37 +0000 (22:03 +0200)]
flow.c (mark_set_1): Use REG_FREQ_FROM_BB.

* flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
(attempt_auto_inc): LIkewise.
(mark_used_reg): Likewise.
(try_pre_increment_1): Likewise.
* regclass.c (regclass): Likewise.
* global.c (allocno_compare): Update comment; change scaling factor.
* local-alloc.c (QTY_CMP_PRI): Likewise.
* regs.h (REG_FREQ_FROM_BB): New.
(REG_FREQ_MAX): Likewise.

From-SVN: r44483

23 years ago* MAITAINERS (Various maitainers: predict.def): Added myself.
Jan Hubicka [Mon, 30 Jul 2001 19:30:26 +0000 (21:30 +0200)]
* MAITAINERS (Various maitainers: predict.def): Added myself.

From-SVN: r44482

23 years ago* concat.c: Include "config.h".
Andreas Jaeger [Mon, 30 Jul 2001 19:23:38 +0000 (21:23 +0200)]
* concat.c: Include "config.h".

From-SVN: r44481

23 years agolinux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE.
H.J. Lu [Mon, 30 Jul 2001 19:01:19 +0000 (19:01 +0000)]
linux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE.

2001-07-30  H.J. Lu <hjl@gnu.org>

* config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
-D_GNU_SOURCE.

From-SVN: r44480

23 years agojump.c: Add prototype for mark_modified_reg.
Andreas Jaeger [Mon, 30 Jul 2001 18:04:33 +0000 (20:04 +0200)]
jump.c: Add prototype for mark_modified_reg.

        * jump.c: Add prototype for mark_modified_reg.

        * cse.c (set_live_p): Add unused attribute.

        * gcov.c (calculate_branch_probs): Use gcov_type to avoid
        overflow.
        (scan_for_source_files): Use long for count to avoid overflow.
        (output_data): Likewise.
        (output_data): Don't use string concatatenation to silence gcc
        -traditional.

        * predict.c: Fix typos and grammar.

        * gcse.c (insert_insn_end_bb): Remove unused variables.

For cp:
        * decl2.c: Remove unused var global_temp_name_counter.

From-SVN: r44479

23 years ago* java/lang/Integer.java: Merged with Classpath.
Tom Tromey [Mon, 30 Jul 2001 17:58:32 +0000 (17:58 +0000)]
* java/lang/Integer.java: Merged with Classpath.

From-SVN: r44478

23 years agolinux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
H.J. Lu [Mon, 30 Jul 2001 16:40:43 +0000 (16:40 +0000)]
linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.

2001-07-30  H.J. Lu  (hjl@gnu.org)

* config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
(ASM_DECLARE_FUNCTION_SIZE): Likewise.
(FUNCTION_NAME_ALREADY_DECLARED): Likewise.

From-SVN: r44476

23 years agoSkip -mthumb as well as -mthumb-interwork when -mcpu=arm7 is specified.
Nick Clifton [Mon, 30 Jul 2001 16:27:39 +0000 (16:27 +0000)]
Skip -mthumb as well as -mthumb-interwork when -mcpu=arm7 is specified.

From-SVN: r44475

23 years agoMAINTAINERS (Various maintainers: mips port): Added myself.
Eric Christopher [Mon, 30 Jul 2001 16:00:14 +0000 (16:00 +0000)]
MAINTAINERS (Various maintainers: mips port): Added myself.

2001-07-30  Eric Christopher  <echristo@redhat.com>

* MAINTAINERS (Various maintainers: mips port): Added myself.

From-SVN: r44474

23 years agopredict.def (noreturn, [...]): Mark as first match heuristics.
Jan Hubicka [Mon, 30 Jul 2001 15:54:12 +0000 (17:54 +0200)]
predict.def (noreturn, [...]): Mark as first match heuristics.

* predict.def (noreturn, loop branch, loop exit): Mark as first
match heuristics.

From-SVN: r44473

23 years agoconfigure.in (sh-*-linux*): New.
Andrew Haley [Mon, 30 Jul 2001 15:48:29 +0000 (15:48 +0000)]
configure.in (sh-*-linux*): New.

2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>

        * configure.in (sh-*-linux*): New.

From-SVN: r44472

23 years agobackport: regex.c: Declare wcs functions only if compiling with MBS_SUPPORT.
Andreas Jaeger [Mon, 30 Jul 2001 11:54:36 +0000 (13:54 +0200)]
backport: regex.c: Declare wcs functions only if compiling with MBS_SUPPORT.

Merge from glibc:
        * regex.c: Declare wcs functions only if compiling with
        MBS_SUPPORT.
        Don't use #elif for traditional C.

        * regex.c: Revamp memory allocation for WCHAR functions to
        not use too much stack.

From-SVN: r44471

23 years ago* combine.c (try_combine): Avoid barrier after noop jumps
Jan Hubicka [Mon, 30 Jul 2001 10:54:10 +0000 (12:54 +0200)]
* combine.c (try_combine): Avoid barrier after noop jumps

From-SVN: r44470

23 years agoDaily bump.
GCC Administrator [Mon, 30 Jul 2001 07:16:11 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44468

23 years agoGregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default...
Bryce McKinlay [Mon, 30 Jul 2001 00:41:31 +0000 (00:41 +0000)]
GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default/current time.

* java/util/GregorianCalendar.java (GregorianCalendar): Call
setTimeInMillis() to set the default/current time.

From-SVN: r44467

23 years agocpphash.h (struct cpp_reader): Remove import_warning.
Neil Booth [Sun, 29 Jul 2001 22:27:20 +0000 (22:27 +0000)]
cpphash.h (struct cpp_reader): Remove import_warning.

* cpphash.h (struct cpp_reader): Remove import_warning.
* cpplib.c (skip_rest_of_line): Don't bother turning off
macro expansion.
(parse_include): Move include handling to...
(do_include_common): ... here.  Move import warning from...
(do_import): ... here.
(do_pragma_poison): Don't do a callback for poison identifiers.
* cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
* cppmain.c (setup_callbacks): Similarly.

From-SVN: r44466

23 years agortlanal.c (parms_set, [...]): Break out from...; handle multiple sets.
Jan Hubicka [Sun, 29 Jul 2001 21:28:42 +0000 (23:28 +0200)]
rtlanal.c (parms_set, [...]): Break out from...; handle multiple sets.

* rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
handle multiple sets.
* except.c (sjlj_mark_call_sites): .... here.
* gcse.c (insert_insn_end_bb): Use find_first_parameter_load.

From-SVN: r44465

23 years agoSuggested by Richard Henderson and Richard Kenner:
Jan Hubicka [Sun, 29 Jul 2001 19:44:42 +0000 (21:44 +0200)]
Suggested by Richard Henderson and Richard Kenner:

* combine.c (recog_for_combine): Use the fake recog
only if instruction does not match.
* rtl.h (NOOP_MOVE_INSN_CODE): New.
* rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.

* combine.c (try_combine): Discover noop jump as direct jump.

From-SVN: r44464

23 years agodf.c (df_rd_global_compute): Add successors to worklist, not current item.
Daniel Berlin [Sun, 29 Jul 2001 18:23:36 +0000 (18:23 +0000)]
df.c (df_rd_global_compute): Add successors to worklist, not current item.

2001-07-29  Daniel Berlin  <dan@cgsoftware.com>

* df.c (df_rd_global_compute): Add successors to worklist, not
current item.
(df_ru_global_compute): Ditto for preds.

From-SVN: r44461

23 years ago[multiple changes]
Daniel Berlin [Sun, 29 Jul 2001 18:21:08 +0000 (18:21 +0000)]
[multiple changes]

2001-07-27  Daniel Berlin  <dan@cgsoftware.com>

* regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
increment REG_N_SETS.

2001-07-26  Daniel Berlin  <dan@cgsoftware.com>

* sbitmap.h: New prototype for sbitmap_a_xor_b.

* sbitmap.c (sbitmap_a_xor_b): New function.
#ifdef the basic block stuff on the define IN_GCC.

From-SVN: r44460

23 years agocppexp.c (parse_defined): Always record the macro name.
Neil Booth [Sun, 29 Jul 2001 17:27:57 +0000 (17:27 +0000)]
cppexp.c (parse_defined): Always record the macro name.

* cppexp.c (parse_defined): Always record the macro name.
(lex): Don't worry about identifiers, or special-case
CPP_NOT here.
(_cpp_parse_expr): Figure out at the end of the routine
whether we saw a valid !defined() expression.
* cppfiles.c (stack_include_file): Update for mi_valid.
(_cpp_pop_file_buffer): Similarly.
* cpplex.c (_cpp_lex_token): Similarly.
* cpphash.h (enum mi_state, enum mi_ind, mi_state,
mi_if_not_defined, mi_lexed): Remove.
(mi_valid): New.
* cpplib.c (do_if): Simplify.
(do_endif, push_conditional, _cpp_handle_directive): Update
for renaming of mi_state to mi_valid.

* cpp.texi: Add index entries for digraphs, and add comment
that C++ refers to them as alternative tokens.

From-SVN: r44459

23 years agobasic-block.h (CLEANUP_PRE_LOOP): New.
Jan Hubicka [Sun, 29 Jul 2001 17:01:53 +0000 (17:01 +0000)]
basic-block.h (CLEANUP_PRE_LOOP): New.

* basic-block.h (CLEANUP_PRE_LOOP): New.
* except.c (finish_eh_generation): Update call of cleanup_cfg.
* sibcall.c (optimize_sibling_calls): Likewise.
* toplev.c (rest_of_compilation): Likewise.
* flow.c (try_forward_edges): Take argument MODE;
do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
(try_optimize_cfg): Update call of try_forward_edges.

* (validate_replace_rtx_1): Fix simplification of MINUS.

From-SVN: r44458

23 years agore PR preprocessor/3669 (-M -g3 outputs macros as well as dependency info)
Neil Booth [Sun, 29 Jul 2001 14:40:45 +0000 (14:40 +0000)]
re PR preprocessor/3669 (-M -g3 outputs macros as well as dependency info)

PR preprocessor/3669
* cppinit.c (init_dependency_output): Turn off dump requests
if sending dependencies to stdout.

From-SVN: r44457

23 years ago* HACKING: add description on updating namespace
Mark Wielaard [Sun, 29 Jul 2001 10:05:08 +0000 (10:05 +0000)]
* HACKING: add description on updating namespace

From-SVN: r44454

23 years agoDaily bump.
GCC Administrator [Sun, 29 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44452

23 years agoflow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if not optimizing.
Richard Henderson [Sun, 29 Jul 2001 06:59:47 +0000 (23:59 -0700)]
flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if not optimizing.

        * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
        not optimizing.

From-SVN: r44451

23 years ago* config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
Golubev I. N. [Sun, 29 Jul 2001 06:33:34 +0000 (06:33 +0000)]
* config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.

From-SVN: r44447

23 years agoh8300.h (ENCODE_SECTION_INFO): Check to see if DECL is VAR_DECL first to prevent...
Kazu Hirata [Sun, 29 Jul 2001 03:12:34 +0000 (03:12 +0000)]
h8300.h (ENCODE_SECTION_INFO): Check to see if DECL is VAR_DECL first to prevent an ICE.

* config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
is VAR_DECL first to prevent an ICE.

From-SVN: r44446

23 years agovarasm.c (immed_real_const_1): Don't elide special cases for nested functions.
Richard Henderson [Sun, 29 Jul 2001 02:46:18 +0000 (19:46 -0700)]
varasm.c (immed_real_const_1): Don't elide special cases for nested functions.

        * varasm.c (immed_real_const_1): Don't elide special cases for
        nested functions.
        (clear_const_double_mem): Clear const_tiny_rtx too.

From-SVN: r44445

23 years agodwarf2out.c (dw_val_class_offset): New.
Richard Henderson [Sun, 29 Jul 2001 02:10:42 +0000 (19:10 -0700)]
dwarf2out.c (dw_val_class_offset): New.

* dwarf2out.c (dw_val_class_offset): New.
(struct dw_ranges_struct, dw_ranges_ref): New.
(ranges_table, ranges_table_allocated): New.
(ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
(add_AT_offset, add_ranges, output_ranges): New.
(print_die, output_die): Handle dw_val_class_offset.
(attr_checksum, size_of_die, value_format): Likewise.
(gen_lexical_block_die): Handle non-contiguous blocks.
(gen_block_die): Likewise.
(dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
if needed.  Dump the ranges table.
* final.c (final_start_function): Remove unnecessary notes and
rebuild the block tree before numbering the blocks.
* function.c (reorder_blocks_0): Walk the existing block tree
to unmark all blocks.
(reorder_blocks_1): Create block fragments when duplicate block
notes are seen.
(reorder_fix_fragments): New.
(reorder_blocks): Call it.
* tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.

From-SVN: r44444

23 years ago* method.c (pending_inlines): Remove.
Richard Henderson [Sun, 29 Jul 2001 01:39:17 +0000 (18:39 -0700)]
* method.c (pending_inlines): Remove.

From-SVN: r44443

23 years ago* emit-rtl.c (adjust_address): Make a copy of the memory address.
Richard Henderson [Sun, 29 Jul 2001 01:35:13 +0000 (18:35 -0700)]
* emit-rtl.c (adjust_address): Make a copy of the memory address.

From-SVN: r44442

23 years agoflow.c (add_to_mem_set_list): New function.
Richard Henderson [Sun, 29 Jul 2001 01:13:53 +0000 (18:13 -0700)]
flow.c (add_to_mem_set_list): New function.

        * flow.c (add_to_mem_set_list): New function.
        (init_propagate_block_info): Use it.
        (mark_set_1): Likewise.
        (insn_dead_p): Canonicalize memory address for dead store
        comparison.  Allow wider mode stores to kill narrower mode stores.
        (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
        (invalidate_mems_from_set): Don't handle MEMs.

From-SVN: r44441

23 years ago* config/h8300/h8300.h: Fix formatting.
Kazu Hirata [Sun, 29 Jul 2001 00:44:40 +0000 (00:44 +0000)]
* config/h8300/h8300.h: Fix formatting.

From-SVN: r44440

23 years agobasic-block.h (EDGE_FREQUENCY): New macro.
Jan Hubicka [Sat, 28 Jul 2001 21:37:35 +0000 (23:37 +0200)]
basic-block.h (EDGE_FREQUENCY): New macro.

* basic-block.h (EDGE_FREQUENCY): New macro.
* bb-reorder (fixup_reorder_chain): Set counts and frequencies
for new BB/edges.
* flow.c (find_sub_basic_blocks): Likewise.
(try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
(redirect_edge_and_branch): Use EDGE_FREQUENCY.

* predict.c (DEF_PREDICTOR): New argument FLAGS.
(HITRATE): New macro.
(PRED_FLAG_FIRST_MATCH): New constant.
(predictor_info): New field flgags.
(combine_predictions_for_insn): Use DS theory to combine
probabilities; set the edge probabilities when finished.
(estimate_probability): Avoid duplicated matches
of LOOP_BRANCH heuristics for nested loops; update comment.
* predict.def: Add flags for each prediction, set probabilities
according to B&L paper.
* predict.h (DEF_PREDICTOR): New argument FLAGS.

* profile.c (compute_branch_probabilities):  Cleanup way the edge
probabilities are computed and REG_BR_PROB notes are dropped; if
values does not match, emit error.
(init_branch_prob): Do error instead of warning when profile driven
feedback is missing or corrupt.

From-SVN: r44439

23 years ago* analyze_brprob: Avoid more overflows.
Jan Hubicka [Sat, 28 Jul 2001 20:39:02 +0000 (22:39 +0200)]
* analyze_brprob: Avoid more overflows.

From-SVN: r44438

23 years agoDaily bump.
GCC Administrator [Sat, 28 Jul 2001 07:16:09 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44436

23 years agoifcvt.c (noce_get_alt_condition): If the condition is a compare against a constant...
DJ Delorie [Sat, 28 Jul 2001 03:13:34 +0000 (23:13 -0400)]
ifcvt.c (noce_get_alt_condition): If the condition is a compare against a constant...

* ifcvt.c (noce_get_alt_condition): If the condition is a compare
against a constant, try to adjust the compare to have the desired
constant in it so that min/max optimizations happen more often.

From-SVN: r44435

23 years ago* test_summary: Copy LAST_UPDATED UTC time to head of summary.
Richard Henderson [Fri, 27 Jul 2001 21:10:29 +0000 (14:10 -0700)]
* test_summary: Copy LAST_UPDATED UTC time to head of summary.

From-SVN: r44433

23 years ago* analyze_brprob: Avoid overflows.
Jan Hubicka [Fri, 27 Jul 2001 16:03:08 +0000 (18:03 +0200)]
* analyze_brprob: Avoid overflows.

From-SVN: r44430

23 years agoflow.c (last_loop_beg_note): New function.
Jan Hubicka [Fri, 27 Jul 2001 15:55:41 +0000 (17:55 +0200)]
flow.c (last_loop_beg_note): New function.

* flow.c (last_loop_beg_note): New function.
(redirect_edge_and_branch): Use it.
(split_edge): Likewise.

* alias.c (loop_p): Avoid uninitialized memory access.

* flow.c (try_forward_edges): Avoid accessing freed memory.

* flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
variable access.

From-SVN: r44429

23 years agolinux.h (CPP_DEFAULT_CPU_SPEC): New.
Andrew Haley [Fri, 27 Jul 2001 15:20:41 +0000 (15:20 +0000)]
linux.h (CPP_DEFAULT_CPU_SPEC): New.

2001-07-26  Andrew Haley  <aph@redhat.com>
        Joern Rennecke <amylaar@redhat.com>

        * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
        (SUBTARGET_CPP_ENDIAN_SPEC): New.
        (SUBTARGET_CPP_SPEC): New.
        (CPP_SPEC): Remove.
        * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
        (SUBTARGET_CPP_PTR_SPEC): New.
        (CPP_DEFAULT_CPU_SPEC): New.
        (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
        SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
        (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
        SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
        (SUBTARGET_CPP_SPEC): Define as an empty string.

From-SVN: r44428

23 years agoclass.c (mark_primary_virtual_base): Don't adjust base offsets here.
Nathan Sidwell [Fri, 27 Jul 2001 15:12:49 +0000 (15:12 +0000)]
class.c (mark_primary_virtual_base): Don't adjust base offsets here.

cp:
* class.c (mark_primary_virtual_base): Don't adjust base
offsets here.
(dfs_unshared_virtual_bases): Adjust them here.
(mark_primary_bases): Explain why we adjust at the end.
testsuite:
* g++.dg/abi/vbase8-21.C: New test.

From-SVN: r44425

23 years agoclass.c (finish_struct_1): When copying the primary base's VFIELD, make sure we find...
Nathan Sidwell [Fri, 27 Jul 2001 15:07:40 +0000 (15:07 +0000)]
class.c (finish_struct_1): When copying the primary base's VFIELD, make sure we find it is at offset zero.

cp:
* class.c (finish_struct_1): When copying the primary base's
VFIELD, make sure we find it is at offset zero.
testsuite:
* g++.dg/abi/vbase8-10.C: New test.

From-SVN: r44421

23 years agog++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.
Rainer Orth [Fri, 27 Jul 2001 12:21:56 +0000 (12:21 +0000)]
g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.

gcc/testsuite:
* lib/g++.exp (g++_set_ld_library_path): Renamed to
${tool}_set_ld_library_path.
Changed caller.
* lib/objc.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.

libjava/testsuite:
* lib/libjava.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.

From-SVN: r44420

23 years agoinstall.texi (Configuration): Properly link the host specific instructions also when...
Gerald Pfeifer [Fri, 27 Jul 2001 08:48:38 +0000 (10:48 +0200)]
install.texi (Configuration): Properly link the host specific instructions also when generating HTML.

* doc/install.texi (Configuration): Properly link the host
specific instructions also when generating HTML.

From-SVN: r44416

23 years agoDaily bump.
GCC Administrator [Fri, 27 Jul 2001 07:16:44 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44415

23 years agogcc_update: Dump timestamp in LAST_UPDATED.
Richard Henderson [Fri, 27 Jul 2001 06:00:45 +0000 (23:00 -0700)]
gcc_update: Dump timestamp in LAST_UPDATED.

        * contrib/gcc_update: Dump timestamp in LAST_UPDATED.
        * .cvsignore: Add LAST_UPDATED.

From-SVN: r44413

23 years agoflow.c (redirect_edge_and_branch_force): Test target->global_live_at_start.
John Wehle [Fri, 27 Jul 2001 04:35:18 +0000 (04:35 +0000)]
flow.c (redirect_edge_and_branch_force): Test target->global_live_at_start.

        * flow.c (redirect_edge_and_branch_force): Test
target->global_live_at_start.

From-SVN: r44412

23 years agosimplify-rtx.c (avoid_constant_pool_reference): Export.
Richard Henderson [Thu, 26 Jul 2001 23:47:15 +0000 (16:47 -0700)]
simplify-rtx.c (avoid_constant_pool_reference): Export.

        * simplify-rtx.c (avoid_constant_pool_reference): Export.
        * rtl.h (avoid_constant_pool_reference): Declare it.
        * dwarf2out.c (add_location_or_const_value_attribute): Use it.
        (add_const_value_attribute): Use add_AT_unsigned for unsigned values.

From-SVN: r44411

23 years agog++.exp (g++_exit, [...]): Removed.
Stan Cox [Thu, 26 Jul 2001 21:38:14 +0000 (21:38 +0000)]
g++.exp (g++_exit, [...]): Removed.

* lib/g++.exp (g++_exit, g++_check_unsupported_p): Removed.
* lib/gcc.exp (gcc_check_compile, gcc_pass, gcc_fail, gcc_finish,
gcc_exit, gcc_check_unsupported_p):
Moved to gcc-deps.exp
* gcc-deps.exp: New file.

From-SVN: r44410

23 years agortl.h (cleanup_barriers): Declare.
Jan Hubicka [Thu, 26 Jul 2001 20:36:01 +0000 (22:36 +0200)]
rtl.h (cleanup_barriers): Declare.

* rtl.h (cleanup_barriers): Declare.
* jump.c (cleanup_barriers): New function.
* toplev.c (rest_of_compilation): Call cleanup_barriers
before loop optimizer and after bb_reorder.

* flow.c (back_edge_of_syntactic_loop_p): New.
(split_edge): Use it.

From-SVN: r44409

23 years ago* glimits.h (_MACH_MACHLIMITS_H_): Delete.
Rainer Orth [Thu, 26 Jul 2001 20:19:15 +0000 (20:19 +0000)]
* glimits.h (_MACH_MACHLIMITS_H_): Delete.

From-SVN: r44408

23 years agocse.c (cse_process_notes): Replace any registers if the address remains valid.
Denis Chertykov [Thu, 26 Jul 2001 18:31:01 +0000 (18:31 +0000)]
cse.c (cse_process_notes): Replace any registers if the address remains valid.

* cse.c (cse_process_notes): Replace any registers if the address
remains valid.

From-SVN: r44406

23 years agobasic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
John Wehle [Thu, 26 Jul 2001 18:06:45 +0000 (18:06 +0000)]
basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.

* basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
(PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
(propagate_block): Update prototype.
* flow.c (update_life_info): Simplify the CFG and
recalculate the global regs which are alive when
removing dead code during a global update.
(propagate_block): Return non-zero if an INSN is
deleted.

From-SVN: r44403

23 years agoMakefile.in (LIBICONV): Define.
Rainer Orth [Thu, 26 Jul 2001 16:27:36 +0000 (16:27 +0000)]
Makefile.in (LIBICONV): Define.

2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

* Makefile.in (LIBICONV): Define.

From-SVN: r44401

23 years agov850.h (ENCODE_SECTION_INFO): Change order of conditional to avoid tree checking...
Catherine Moore [Thu, 26 Jul 2001 15:42:54 +0000 (15:42 +0000)]
v850.h (ENCODE_SECTION_INFO): Change order of conditional to avoid tree checking errors.

        * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
        of conditional to avoid tree checking errors.

From-SVN: r44400

23 years agoregmove.c (regmove_optimize): Don't replace a reg with another reg of a different...
Kazu Hirata [Thu, 26 Jul 2001 15:23:07 +0000 (15:23 +0000)]
regmove.c (regmove_optimize): Don't replace a reg with another reg of a different mode.

* regmove.c (regmove_optimize): Don't replace a reg with
another reg of a different mode.

From-SVN: r44399

23 years agoparams.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to limit length of dependan...
Andrew MacLeod [Thu, 26 Jul 2001 13:59:22 +0000 (13:59 +0000)]
params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to limit length of dependancy flush list.

2001-07-26  Andrew MacLeod  <amacleod@redhat.com>

* params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
limit length of dependancy flush list.
* params.h (MAX_PENDING_LIST_LENGTH): Define.
* sched-int.h  (struct deps): Add pending_flush_length field.
* sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
has 1 element in it.
(sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
(sched_analyze): After a jump, if the pending memory flush list is too
large, flush the pending lists.
(init_deps): Initialize pending_flush_length to 0.
* doc/invoke.texi (max_pending_list_length): Document parameter.

From-SVN: r44398

23 years agopt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and tsubst_expr for default...
Kriang Lerdsuwanakij [Thu, 26 Jul 2001 12:48:01 +0000 (12:48 +0000)]
pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and tsubst_expr for default template arguments.

2001-07-22  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

* pt.c (tsubst_template_parms): Call maybe_fold_nontype_arg and
tsubst_expr for default template arguments.

2001-07-22  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

* g++.old-deja/g++.pt/defarg14.C: New test.

From-SVN: r44396

23 years agoCalendar.java (set): Never recompute fields here.
Bryce McKinlay [Thu, 26 Jul 2001 11:21:45 +0000 (11:21 +0000)]
Calendar.java (set): Never recompute fields here.

* java/util/Calendar.java (set): Never recompute fields here. They
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().

From-SVN: r44395

23 years ago* Makefile.in (regex.o): Add dependency on config.h.
Daniel Jacobowitz [Thu, 26 Jul 2001 08:41:40 +0000 (08:41 +0000)]
* Makefile.in (regex.o): Add dependency on config.h.

From-SVN: r44394

23 years agospew.c (yylex): Only copy the token's lineno, if it is non-zero.
Nathan Sidwell [Thu, 26 Jul 2001 08:15:43 +0000 (08:15 +0000)]
spew.c (yylex): Only copy the token's lineno, if it is non-zero.

cp:
* spew.c (yylex): Only copy the token's lineno, if it is
non-zero.
testsuite:
* g++.old-deja/g++.other/lineno5.C: New test.

From-SVN: r44391

23 years agore PR c++/3624 (Internal error: Segmentation fault)
Nathan Sidwell [Thu, 26 Jul 2001 08:12:00 +0000 (08:12 +0000)]
re PR c++/3624 (Internal error: Segmentation fault)

cp:
PR c++/3624
* call.c (resolve_args): Simplify, call
convert_from_reference.
(build_new_op): Resolve and convert from reference ARG1
earlier. Adjust ARG2 & ARG3 resolve and conversion.
testsuite:
* g++.old-deja/g++.pt/crash68.C: New test.

From-SVN: r44388

23 years agore PR c++/3152 (g++-3.0 segfaults when compiling program using -g)
Nathan Sidwell [Thu, 26 Jul 2001 08:07:56 +0000 (08:07 +0000)]
re PR c++/3152 (g++-3.0 segfaults when compiling program using -g)

cp:
* decl.c (last_function_parm_tags): Remove.
(current_function_parm_tags): Remove.
(init_decl_processing): Adjust.
(start_function): Adjust.
(store_parm_decls): Adjust.

PR c++/3152
* decl.c (grokdeclarator): Detect when a function typedef is
declaring a function, and create last_function_parms correctly.
testsuite:
* g++.old-deja/g++.other/crash42.C: New test.

From-SVN: r44387

23 years agoDaily bump.
GCC Administrator [Thu, 26 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44383

23 years agotoplev.c, [...]: Include xcoffout.h if appropriate.
Neil Booth [Thu, 26 Jul 2001 06:56:13 +0000 (06:56 +0000)]
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

23 years ago* analyze_brprob: Fix documentation.
Andreas Jaeger [Thu, 26 Jul 2001 06:41:48 +0000 (08:41 +0200)]
* analyze_brprob: Fix documentation.

From-SVN: r44381

23 years agocpphash.h (struct_lexer_state): Delete was_skipping.
Neil Booth [Thu, 26 Jul 2001 06:02:47 +0000 (06:02 +0000)]
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

23 years agofunction.c (locate_and_pad_parm): Also pad initial offset so that the total argument...
Graham Stott [Thu, 26 Jul 2001 05:45:25 +0000 (05:45 +0000)]
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

23 years agogensupport.c (alter_output_for_insn): Correct enable checking failure change XSTR...
Graham Stott [Thu, 26 Jul 2001 05:44:18 +0000 (05:44 +0000)]
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

23 years agofunction.c (locate_and_pad_parm): Also pad initial offset so that the total argument...
Graham Stott [Thu, 26 Jul 2001 05:43:34 +0000 (05:43 +0000)]
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

23 years agoconfigure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
H.J. Lu [Thu, 26 Jul 2001 05:04:48 +0000 (05:04 +0000)]
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

23 years agoconfigure.target (cpu_include_dir): Set to `config/cpu/mips' for mips.
H.J. Lu [Thu, 26 Jul 2001 05:04:48 +0000 (22:04 -0700)]
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

23 years agovarasm.c (assemble_variable): Create DECL_RTL before setting TREE_ASM_WRITTEN.
Richard Henderson [Thu, 26 Jul 2001 01:28:01 +0000 (18:28 -0700)]
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

23 years agoFix typo spotted by Richard.
Jan Hubicka [Wed, 25 Jul 2001 22:36:42 +0000 (22:36 +0000)]
Fix typo spotted by Richard.

From-SVN: r44370

23 years agopredict.c (estimate_probability): Avoid duplicated predictions.
Jan Hubicka [Wed, 25 Jul 2001 22:23:09 +0000 (00:23 +0200)]
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

23 years ago* config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
Richard Kenner [Wed, 25 Jul 2001 22:08:05 +0000 (22:08 +0000)]
* config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.

From-SVN: r44368

23 years agodbxout.c: Consistently use putc instead of fputc.
Richard Kenner [Wed, 25 Jul 2001 22:03:03 +0000 (18:03 -0400)]
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

23 years agov850.c (v850_va_arg): Use addr instead of valist to build incr.
Catherine Moore [Wed, 25 Jul 2001 21:49:46 +0000 (21:49 +0000)]
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

23 years agoflow.c (delete_dead_jumptables): New function.
Jan Hubicka [Wed, 25 Jul 2001 20:51:24 +0000 (22:51 +0200)]
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

23 years agoexcept.c (reachable_handlers): Handle a region being removed out from under a RESX.
Richard Henderson [Wed, 25 Jul 2001 19:59:39 +0000 (12:59 -0700)]
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