gcc.git
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

23 years agoxfail until patch applied
Jason Merrill [Wed, 25 Jul 2001 18:11:45 +0000 (14:11 -0400)]
xfail until patch applied

From-SVN: r44361

23 years agoalpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.
Richard Henderson [Wed, 25 Jul 2001 17:34:04 +0000 (10:34 -0700)]
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

23 years agoMakefile.in: Rebuilt.
Tom Tromey [Wed, 25 Jul 2001 16:40:04 +0000 (16:40 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.

From-SVN: r44359

23 years agocall.c (joust): Only prefer a non-builtin candidate to a builtin one if...
Jason Merrill [Wed, 25 Jul 2001 15:04:32 +0000 (11:04 -0400)]
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

23 years agossa.c (rename_insn_1): Do not wrap an assignment to a paradoxical SUBREG inside a...
Jeffrey A Law [Wed, 25 Jul 2001 14:41:35 +0000 (14:41 +0000)]
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

23 years agoalias.c (rtx_equal_for_memref_p): Allow strings as types in operands.
Andrew Haley [Wed, 25 Jul 2001 14:38:29 +0000 (14:38 +0000)]
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

23 years agossa-ccp.c (visit_expression): Handle CALL_INSNs that can throw an exception.
Jeffrey A Law [Wed, 25 Jul 2001 14:23:08 +0000 (14:23 +0000)]
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

23 years agostmt.c (expand_goto): A nonlocal goto can be a call too.
Andrew MacLeod [Wed, 25 Jul 2001 13:33:17 +0000 (13:33 +0000)]
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

23 years ago* config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
Andrew MacLeod [Wed, 25 Jul 2001 13:21:49 +0000 (13:21 +0000)]
* config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.

From-SVN: r44351

23 years agofix noreturn warnings
Jason Merrill [Wed, 25 Jul 2001 12:06:20 +0000 (08:06 -0400)]
fix noreturn warnings

From-SVN: r44350

23 years agomoved to dg
Jason Merrill [Wed, 25 Jul 2001 12:05:42 +0000 (08:05 -0400)]
moved to dg

From-SVN: r44349

23 years ago20010724-1.c: New file.
Rainer Orth [Wed, 25 Jul 2001 11:28:50 +0000 (11:28 +0000)]
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

23 years agore PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)
Nathan Sidwell [Wed, 25 Jul 2001 09:38:26 +0000 (09:38 +0000)]
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

23 years agore PR c++/3543 (gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963)
Nathan Sidwell [Wed, 25 Jul 2001 09:00:37 +0000 (09:00 +0000)]
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

23 years agoclass.c (build_vtbl_or_vbase_field): Remove, move into ...
Nathan Sidwell [Wed, 25 Jul 2001 08:54:06 +0000 (08:54 +0000)]
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

23 years agoclass.c (build_vbase_offset_vbtl_entries): Look for non-primary base of which we...
Nathan Sidwell [Wed, 25 Jul 2001 08:52:32 +0000 (08:52 +0000)]
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

23 years agoflow.c (find_sub_basic_blocks): Fix handling of the last BB in the sequence.
Jan Hubicka [Wed, 25 Jul 2001 08:30:36 +0000 (10:30 +0200)]
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

23 years agoacinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, hypotl, atan2f, atan2l.
Gabriel Dos Reis [Wed, 25 Jul 2001 08:06:47 +0000 (08:06 +0000)]
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

23 years agoDaily bump.
GCC Administrator [Wed, 25 Jul 2001 07:16:08 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44332