OSDN Git Service

pf3gnuchains/gcc-fork.git
19 years ago * lex.c (cxx_init): Don't set the ridpointer for RID_NULL
steven [Mon, 20 Sep 2004 21:03:56 +0000 (21:03 +0000)]
* lex.c (cxx_init): Don't set the ridpointer for RID_NULL
to null_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87774 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Mon, 20 Sep 2004 20:58:23 +0000 (20:58 +0000)]
2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17558
        * gcc.c-torture/compile/pr17558.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87773 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Mon, 20 Sep 2004 20:53:08 +0000 (20:53 +0000)]
2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17558
        * tree-ssa-copy.c (may_propagate_copy): Only allow if the
        aliasing sets are the same rather than just conflicting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87772 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cgraph.c (cgraph_unnest_node): New function.
hubicka [Mon, 20 Sep 2004 20:41:20 +0000 (20:41 +0000)]
* cgraph.c (cgraph_unnest_node): New function.
(c_finalize): Rename to ....
(c_warn_unused_result_recursivly): ... this one; do only the warning
(finish_function): Finalize the toplevel function; do not lower nested tree.
* cgraph.h (cgraph_unnest_node): Declare.
* cgraphunit.c (decide_is_function_needed): Do not use cgraph
nestedness datastructure.
* cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
* reload1.c (set_label_offsets): Fix call of set_label_offsets.
* tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87771 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR middle-end/16460
hubicka [Mon, 20 Sep 2004 20:38:29 +0000 (20:38 +0000)]
PR middle-end/16460

* cgraph.c (cgraph_unnest_node): New function.
(c_finalize): Rename to ....
(c_warn_unused_result_recursivly): ... this one; do only the warning
(finish_function): Finalize the toplevel function; do not lower nested tree.
* cgraph.h (cgraph_unnest_node): Declare.
* cgraphunit.c (decide_is_function_needed): Do not use cgraph
nestedness datastructure.
* cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
* reload1.c (set_label_offsets): Fix call of set_label_offsets.
* tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.

* utils.c (gnat_finalize): Remove.
(end_subprog_body): Directly call cgraph_finalize_function;
do not lower the nested functions.

* trans-decl.c (build_entry_thunks): Finalize the function; do not lower
tree.
(gfc_generate_function_code): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87770 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
rth [Mon, 20 Sep 2004 20:13:39 +0000 (20:13 +0000)]
    * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
        from some_small_symbolic_operand_1; export.
        (some_small_symbolic_operand): Remove.
        * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
        extra C check.
        * config/alpha/predicates.md (some_small_symbolic_operand): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87769 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * predict.c (return_prediction): New function.
hubicka [Mon, 20 Sep 2004 18:43:30 +0000 (18:43 +0000)]
* predict.c (return_prediction): New function.
(apply_return_prediction): Likewise.
(tree_bb_level_predictions): Likewise.
(tree_estimate_probability): Add noreturn exit edges; call
bb_level_predictions; fix logic of return heuristics.
(predict_paths_leading_to):  Rescuesce from old CVS version of
process_note_prediction function.
* predict.def (PRED_TREE_EARLY_RETURN): New predictor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87768 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
rsandifo [Mon, 20 Sep 2004 18:02:53 +0000 (18:02 +0000)]
* gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
if SKIP_ATTRIBUTE is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87766 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
uweigand [Mon, 20 Sep 2004 17:25:39 +0000 (17:25 +0000)]
2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.c (s390_frame_info): Added alignment statement for
floating point register area on stack.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87765 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agofortran/
tobi [Mon, 20 Sep 2004 17:22:50 +0000 (17:22 +0000)]
fortran/
PR fortran/15957
* simplify.c (gfc_simplify_reshape): Set shape of return value
correctly.

testsuite/
PR fortran/15957
* gfortran.dg/pr15957.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87764 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * predict.c (expr_expected_value): Use *_CLASS_P macros.
jakub [Mon, 20 Sep 2004 16:56:12 +0000 (16:56 +0000)]
* predict.c (expr_expected_value): Use *_CLASS_P macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87763 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/vect/vect-74.c: Avoid floating point precision error
dorit [Mon, 20 Sep 2004 16:26:24 +0000 (16:26 +0000)]
    * gcc.dg/vect/vect-74.c: Avoid floating point precision error
        in comparison.
        * gcc.dg/vect/vect-79.c: Likewise.
        * gcc.dg/vect/vect-80.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87762 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Daniel Berlin <dberlin@dberlin.org>
dberlin [Mon, 20 Sep 2004 15:45:21 +0000 (15:45 +0000)]
2004-09-20  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
generating useless garbage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87760 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Paolo Bonzini <bonzini@gnu.org>
bonzini [Mon, 20 Sep 2004 14:47:20 +0000 (14:47 +0000)]
2004-09-20  Paolo Bonzini  <bonzini@gnu.org>

* builtins.c (fold_builtin): Call the new omonymous
target hook for machine-dependent built-ins.
* target-def.h (TARGET_FOLD_BUILTIN): New.
* target.h (struct gcc_target): Add the fold_builtin hook.
* targhooks.c (default_fold_builtin): New.
* targhooks.h (default_fold_builtin): Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87756 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Robert Dewar <dewar@gnat.com>
charlet [Mon, 20 Sep 2004 12:07:47 +0000 (12:07 +0000)]
2004-09-20  Robert Dewar  <dewar@gnat.com>

PR ada/17540

* freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
if an address clause is present, since that means that the Import
should be ignored.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87755 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
kazu [Mon, 20 Sep 2004 11:17:22 +0000 (11:17 +0000)]
* cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
comment typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87753 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoPR fortran/15750
tobi [Mon, 20 Sep 2004 11:09:47 +0000 (11:09 +0000)]
PR fortran/15750
* gfortran.fortran-torture/execute/iolength_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87752 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * 5tsystem.ads: Removed, no longer used.
charlet [Mon, 20 Sep 2004 08:43:00 +0000 (08:43 +0000)]
* 5tsystem.ads: Removed, no longer used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87751 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-20 Ira Rosen <irar@il.ibm.com>
dorit [Mon, 20 Sep 2004 07:17:06 +0000 (07:17 +0000)]
2004-09-20  Ira Rosen  <irar@il.ibm.com>

        * gcc.dg/vect/vect-13.c: Added xfail for non ppc platforms.
        * gcc.dg/vect/vect-74.c: Split into 3 tests (vect-79.c, vect-80.c).
        * gcc.dg/vect/vect-62.c: New testcase.
        * gcc.dg/vect/vect-63.c: New testcase.
        * gcc.dg/vect/vect-64.c: New testcase.
        * gcc.dg/vect/vect-65.c: New testcase.
        * gcc.dg/vect/vect-66.c: New testcase.
        * gcc.dg/vect/vect-67.c: New testcase.
        * gcc.dg/vect/vect-68.c: New testcase.
        * gcc.dg/vect/vect-69.c: New testcase.
        * gcc.dg/vect/vect-79.c: New testcase.
        * gcc.dg/vect/vect-80.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87745 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR target/17565
rsandifo [Mon, 20 Sep 2004 06:54:52 +0000 (06:54 +0000)]
PR target/17565
* config/mips/mips.md (define_asm_attributes): Set can_delay to no.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87744 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/mh-x86omitfp: New host makefile fragment. Add
sayle [Mon, 20 Sep 2004 00:58:42 +0000 (00:58 +0000)]
* config/mh-x86omitfp: New host makefile fragment.  Add
-fomit-frame-pointer to the default BOOT_CFLAGS.
* configure.in: Use it to speed up bootstrap on some IA-32 hosts.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87741 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Mon, 20 Sep 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87739 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * predict.c (estimate_probability): Remove unnecesary code.
hubicka [Mon, 20 Sep 2004 00:05:38 +0000 (00:05 +0000)]
* predict.c (estimate_probability): Remove unnecesary code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87736 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * decl2.c (determine_visibility): Allow class visibility
mmitchel [Sun, 19 Sep 2004 23:18:19 +0000 (23:18 +0000)]
* decl2.c (determine_visibility): Allow class visibility
directives to override targetm.cxx.export_class_data.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87735 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-19 Ira Rosen <irar@il.ibm.com>
dorit [Sun, 19 Sep 2004 18:01:51 +0000 (18:01 +0000)]
2004-09-19  Ira Rosen  <irar@il.ibm.com>

        * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
        (STMT_VINFO_VECT_DR_BASE): Declare.
        (VECT_SMODULO): Declare.
        * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
        (vect_compute_array_base_alignment): New function.
        (vect_analyze_data_ref_access): Check array indices. Remove one
        dimensional arrays restriction.
        (vect_get_ptr_offset): New function.
        (vect_get_symbl_and_dr): New function.
        (vect_get_base_and_bit_offset): Support additional data refs. Renamed
        (former name vect_get_base_decl_and_bit_offset).
        (vect_create_index_for_array_ref): Removed.
        (vect_create_index_for_vector_ref): New function.
        (vect_create_addr_base_for_vector_ref): New function.
        (vect_create_data_ref): Handle additional data refs. Call
        vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
        (vect_compute_data_ref_alignment): Support the changes. Call
        vect_get_base_and_bit_offset.
        (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
        data refs. Store vect_dr_base.
        (vect_analyze_data_ref_accesses): Support nonconstant init.
        (new_stmt_vec_info): Initialize vect_dr_base field.
        (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
        (get_vectype_for_scalar_type): Check for BLKmode.
        * tree-chrec.h (initial_condition_in_loop_num): Declare.
        * tree-chrec.c (initial_condition_in_loop_num): New function.
        (chrec_component_in_loop_num): New function.
        (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
        * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
        to be pointer to varray_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87731 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * basic-block.h (update_bb_profile_after_threading): Declare.
hubicka [Sun, 19 Sep 2004 16:04:03 +0000 (16:04 +0000)]
* basic-block.h (update_bb_profile_after_threading): Declare.
* cfg.c (update_bb_profile_after_threading): Break out from ...
* cfgcleanup.c (try_forward_edges): ... here; use it.
* tree-ssa-dom.c (thread_across_edge): Use it.
* tree-ssa-threadupdate.c (create_block_for_threading): Zero out
profile of the new BB.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87730 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-19 Daniel Berlin <dberlin@dberlin.org>
dberlin [Sun, 19 Sep 2004 13:57:35 +0000 (13:57 +0000)]
2004-09-19  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-pre.c (insert_into_set): Don't put
is_gimple_min_invariant values into the set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87725 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
aj [Sun, 19 Sep 2004 06:09:41 +0000 (06:09 +0000)]
* tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87721 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/cris/cris.h: Preserve the original spelling in a
kazu [Sun, 19 Sep 2004 04:02:34 +0000 (04:02 +0000)]
* config/cris/cris.h: Preserve the original spelling in a
quote.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87720 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
law [Sun, 19 Sep 2004 02:51:15 +0000 (02:51 +0000)]
* tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
global varrays to replace the block local varrays.
(struct dom_walk_block_data): Remove, no longer used.
(get_eq_expr_value): No longer need to pass around pointers to local
varrays.  Callers updated.  Unused markers added to unused parameters.
(record_range, record_equivalences_from_stmt): Likewise.
(record_equivalences_from_incoming_edge): Likewise.
(record_var_is_nonzero): Likewise.  Update now that we have a
single global varray of SSA_NAMEs that need restoring.
(dom_opt_initialize_block_local_data): Kill, no longer used.
(tree_ssa_dominator_optimize): Initialize new global varrays.
Update callbacks in dominator walker structure.
(dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
VRP_VARIABLES_STACK.
(restore_nonzero_vars_to_original_value): Update now that we have
a single global varray of SSA_NAMEs that need restoring.
(dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
Remove unused variables.
(optimize_stmt): Remove unused variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87719 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Sun, 19 Sep 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87717 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
pbrook [Sat, 18 Sep 2004 23:55:22 +0000 (23:55 +0000)]
2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>

* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
* unix.c: Include stdio.h.
(HAVE_SYS_MMAN_H): Check.
(PROT_READ, PROT_WRITE): Provide default definitions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87714 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * g++.old-deja/g++.pt/static11.C: XFAIL on arm*-*-eabi.
pbrook [Sat, 18 Sep 2004 22:58:12 +0000 (22:58 +0000)]
* g++.old-deja/g++.pt/static11.C: XFAIL on arm*-*-eabi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87712 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-cfg.c (thread_jumps): Fix updating of the profile.
hubicka [Sat, 18 Sep 2004 21:54:53 +0000 (21:54 +0000)]
* tree-cfg.c (thread_jumps):  Fix updating of the profile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87709 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
hubicka [Sat, 18 Sep 2004 21:53:00 +0000 (21:53 +0000)]
* tree-optimize.c (tree_rest_of_compilation): Kill forgotten
verify_cgraph call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87708 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
kazu [Sat, 18 Sep 2004 19:47:10 +0000 (19:47 +0000)]
* alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
tree-ssa-operands.c, tree-ssa-phiopt.c,
tree-ssa-threadupdate.c: Fix comment typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87707 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
kazu [Sat, 18 Sep 2004 19:19:40 +0000 (19:19 +0000)]
* config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
config/arm/README-interworking, config/arm/arm-cores.def,
config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
config/frv/frv.md, config/i386/winnt.c,
config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
config/m68hc11/m68hc11.md, config/m68k/m68k.c,
config/mcore/mcore.c, config/mips/mips.h,
config/mn10300/mn10300.md, config/pa/pa.c,
config/pa/pa64-regs.h, config/pdp11/pdp11.c,
config/rs6000/rs6000.c, config/sh/symbian.c,
config/sparc/sparc.h: Fix comment typos.  Follow spelling
conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87706 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c/17424
jsm28 [Sat, 18 Sep 2004 18:28:14 +0000 (18:28 +0000)]
PR c/17424
* c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.

testsuite:
* gcc.dg/pr17424-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87705 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * call.c, semantics.c: Follow spelling conventions.
kazu [Sat, 18 Sep 2004 17:23:59 +0000 (17:23 +0000)]
* call.c, semantics.c: Follow spelling conventions.
* class.c: Fix a comment typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87704 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
dnovillo [Sat, 18 Sep 2004 13:56:23 +0000 (13:56 +0000)]
* tree-ssa-alias.c (setup_pointers_and_addressables): Don't
remove TREE_ADDRESSABLE from RESULT_DECL.

testsuite/ChangeLog

* g++.dg/tree-ssa/pr17153.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87703 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
dnovillo [Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)]
* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87702 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
hubicka [Sat, 18 Sep 2004 07:31:30 +0000 (07:31 +0000)]
* tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
NULL.
* tree-ssa-alias.c (init_alias_info): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
(verify_ssa): Likewise.
* tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87698 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * i386.c (legitimize_pic_address): Fix splitting of PLUS with
hubicka [Sat, 18 Sep 2004 07:29:06 +0000 (07:29 +0000)]
* i386.c (legitimize_pic_address): Fix splitting of PLUS with
huge offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87697 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
kkojima [Sat, 18 Sep 2004 06:43:09 +0000 (06:43 +0000)]
* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
* config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
DW_EH_PE_sdata* for data.
(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87696 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
geoffk [Sat, 18 Sep 2004 05:50:52 +0000 (05:50 +0000)]
* tree-inline.c (copy_tree_r): Don't duplicate constants, they're
shared anyway.

PR pch/13361
* c-typeck.c (constructor_asmspec): Delete.
(struct initializer_stack): Delete field 'asmspec'.
(start_init): Delete saving of asmspec.
(finish_init): Don't update constructor_asmspec.
* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
* stmt.c (expand_asm): Duplicate strings from tree.
(expand_asm_operands): Likewise.
* tree.c (tree_size): Update computation of size of STRING_CST.
(make_node): Don't make STRING_CST nodes.
(build_string): Allocate string with tree node.
(tree_code_size): Clean up assertions, don't allow requests
for "the size of a STRING_CST".
* tree.def (STRING_CST): Update comment.
* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
(tree_string): Place contents of string in tree node.
* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
from tree.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87695 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
zack [Sat, 18 Sep 2004 01:07:25 +0000 (01:07 +0000)]
* Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
* objc/Make-lang.in (objc/objc-parse.o): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87689 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
zack [Sat, 18 Sep 2004 00:56:19 +0000 (00:56 +0000)]
* charset.c (_cpp_destroy_iconv, emit_numeric_escape)
(_cpp_convert_input, _cpp_default_encoding): Add comments.
Some other comments in this file also tweaked.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87688 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * directives.c (do_pragma): Save current buffer position
zack [Sat, 18 Sep 2004 00:53:50 +0000 (00:53 +0000)]
* directives.c (do_pragma): Save current buffer position
before lexing the pragma keywords; don't call
_cpp_backup_tokens in the defer_pragmas case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87687 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Jones Desougi <jones@ingate.com>
zack [Sat, 18 Sep 2004 00:50:15 +0000 (00:50 +0000)]
2004-09-17  Jones Desougi  <jones@ingate.com>

* configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
* configure, config.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87686 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree.c, tree.h (tree_class_strings): Make array const.
zack [Sat, 18 Sep 2004 00:43:42 +0000 (00:43 +0000)]
* tree.c, tree.h (tree_class_strings): Make array const.
Reindent per coding convention.  Move asterisk to proper place
per coding convention.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87685 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Sat, 18 Sep 2004 00:16:19 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87683 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * inclhack.def (linux_ia64_ucontext): New fix.
sayle [Fri, 17 Sep 2004 22:58:40 +0000 (22:58 +0000)]
* inclhack.def (linux_ia64_ucontext): New fix.
* fixincl.x: Regenerate.
* tests/base/sys/ucontext.h: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87677 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
schwab [Fri, 17 Sep 2004 22:14:58 +0000 (22:14 +0000)]
* Makefile.in (gimple-low.o): Depend on $(EXPR_H).
(tree-vectorizer.o): Likewise.
(targhooks.o): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87676 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
zack [Fri, 17 Sep 2004 21:55:02 +0000 (21:55 +0000)]
2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
    Zack Weinberg  <zack@codesourcery.com>

* alias.c (find_base_decl): Remove unreachable case '3' block.
* expr.c (safe_from_p): Abort if passed a type.
* tree-gimple.c (recalculate_side_effects): Abort if passed
anything other than an expression.
* tree-ssa-pre.c (phi_translate): Return expr immediately if
is_gimple_min_invariant is true for it.  Reorder cases for clarity.
Abort on un-handled tree classes.
(valid_in_set): Likewise.
* tree.c (tree_code_class_strings): New static data.

* tree.h (enum tree_code_class): New.
(tree_code_class_strings): Declare.
(TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
(REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
(STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
(TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
(checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.

* tree.def, c-common.def, objc/objc-tree.def: Use
tree_code_class enumeration constants instead of code letters.

* alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
* c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
* emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
* langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
* tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
* tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
* tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
* tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
* tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
* tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
* tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
* config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
* config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
Update to match.

* LANGUAGES: Add note about change.

ada:
* ada-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
Update for new tree-class enumeration constants.

cp:
* cp-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* call.c, class.c, cp-gimplify.c, cp-lang.c, cxx-pretty-print.c
* mangle.c, pt.c, semantics.c, tree.c, typeck.c:
Update for new tree-class enumeration constants.

fortran:
* f95-lang.c, trans-expr.c, trans.c: Update for new tree-class
enumeration constants.

java:
* java-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for
new tree-class enumeration constants.

treelang:
* treetree.c: Update for new tree-class enumeration constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87675 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
dnovillo [Fri, 17 Sep 2004 21:49:39 +0000 (21:49 +0000)]
2004-09-17  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>

* gcc.c-torture/execute/20040917-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87674 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/17319
dnovillo [Fri, 17 Sep 2004 21:30:23 +0000 (21:30 +0000)]
PR tree-optimization/17319
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
examine pointers on the LHS of an assignment.
(collect_points_to_info_r): Handle RETURN_EXPR.

testsuite/ChangeLog

PR tree-optimization/17319
* gcc.dg/pr17319.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87673 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-dom.c (const_and_copies_stack): New.
law [Fri, 17 Sep 2004 21:16:07 +0000 (21:16 +0000)]
* tree-ssa-dom.c (const_and_copies_stack): New.
(dom_walk_block_data): Remove const_and_copies field.
(record_const_or_copy): No longer need to pass in varray_type *.
Use CONST_AND_COPIES_STACK rather than passed in block local stack.
Callers updated.
(record_equality): Similarly.
(restore_vars_to_original_value): Similarly.  Revamp to use new
single global stack rather than per-block stacks.
(tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
(thread_across_edge): Remove now unused parameters.
(dom_opt_initialize_block_local_data): No longer test the block
local CONST_AND_COPIES.
(dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87670 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/17509
hubicka [Fri, 17 Sep 2004 21:04:56 +0000 (21:04 +0000)]
PR tree-optimization/17509
* tree-optimize.c (update_inlined_to_pointers): New function.
(tree_rest_of_compilation): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87669 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * dbxout.c (get_lang_number): New.
dpatel [Fri, 17 Sep 2004 18:47:19 +0000 (18:47 +0000)]
   * dbxout.c (get_lang_number): New.
       (dbxout_init): Include lang number in N_SO  stab.
       * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
       N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.

testsuite
       * gcc.dg/20040813-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87663 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/17273
dnovillo [Fri, 17 Sep 2004 18:42:51 +0000 (18:42 +0000)]
PR tree-optimization/17273
* tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
replacement is a constant.

testsuite/ChangeLog

PR tree-optimization/17273
* gcc.c-torture/compile/pr17273.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87662 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * c-tree.h (enum c_typespec_keyword): New.
jsm28 [Fri, 17 Sep 2004 18:18:05 +0000 (18:18 +0000)]
* c-tree.h (enum c_typespec_keyword): New.
(struct c_declspecs): Adjust description of "type".  Remove
specbits, explicit_int_p and explicit_char_p.  Rename
typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
short_p, signed_p, unsigned_p and complex_p.
(finish_declspecs): New.
* c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
typename): Call finish_declspecs.
* c-decl.c (finish_declspecs): New.
(declspecs_add_type): Check for combinations which cannot occur in
valid specifier lists.  Update comments.
(shadow_tag_warned): Remove checks done in finish_declspecs.
Don't report useless type name if type defaulted to int.
(grokdeclarator): Remove checks and actions done in
finish_declspecs.  Don't allow for type being NULL.  Update for
datastructures changes.  Initialize decl_attr.
(build_null_declspecs, quals_from_declspecs): Update for
datastructures changes.

testsuite:
* gcc.dg/declspec-4.c, gcc.dg/declspec-5.c, gcc.dg/declspec-6.c:
Update expected messages.
* gcc.dg/declspec-13.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87660 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * doc/extend.texi: Fix duplicated word.
rsandifo [Fri, 17 Sep 2004 17:24:17 +0000 (17:24 +0000)]
    * doc/extend.texi: Fix duplicated word.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87657 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
pbrook [Fri, 17 Sep 2004 17:07:43 +0000 (17:07 +0000)]
* gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
(gfc_linebuf_header_size): Define.
* scanner.c (load_file): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87655 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
toon [Fri, 17 Sep 2004 15:51:58 +0000 (15:51 +0000)]
2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>

* doc/invoke.texi: Remove stray explanation on
-freduce-all-givs and -fmove-all-movables.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87651 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
paolo [Fri, 17 Sep 2004 14:11:59 +0000 (14:11 +0000)]
2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>

* include/bits/stl_algo.h (remove): Remove too restrictive
concept-check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87650 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 17 Sep 2004 14:01:18 +0000 (14:01 +0000)]
2004-09-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
as per Nathan's original suggestion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87647 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 James Morrison <phython@gcc.gnu.org>
phython [Fri, 17 Sep 2004 13:57:03 +0000 (13:57 +0000)]
2004-09-17  James Morrison  <phython@gcc.gnu.org>

        * doc/cfg.texi: Use @smallexample.
        * doc/md.texi: Likewise.
        * doc/tree-ssa.texi: Likewise.
        * doc/extend.texi: Likewise.  Use @r{} in comments.
        * doc/trouble.texi: Use @r{} in comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87646 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.
dje [Fri, 17 Sep 2004 13:48:43 +0000 (13:48 +0000)]
    * gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87645 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Vincent Celier <celier@gnat.com>
charlet [Fri, 17 Sep 2004 13:46:12 +0000 (13:46 +0000)]
2004-09-17  Vincent Celier  <celier@gnat.com>

* prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
capabilities of the general project manager.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87644 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * configure.ac (gcc_cv_gld_version): Handle whitespace before
hp [Fri, 17 Sep 2004 12:45:34 +0000 (12:45 +0000)]
* configure.ac (gcc_cv_gld_version): Handle whitespace before
"VERSION=".
* aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87643 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.c-torture/execute/pr17252.c: Use post-increment to
dnovillo [Fri, 17 Sep 2004 12:22:19 +0000 (12:22 +0000)]
* gcc.c-torture/execute/pr17252.c: Use post-increment to
change what 'a' is pointing to.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87642 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoBe more precise in last entry.
amylaar [Fri, 17 Sep 2004 12:01:33 +0000 (12:01 +0000)]
Be more precise in last entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87641 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
amylaar [Fri, 17 Sep 2004 11:53:14 +0000 (11:53 +0000)]
* sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
(sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
* t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
* t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match trailing slashes
in substitutions.
(MULTILIB_DIRNAMES): Remove defunct removal of /media32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87640 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 17 Sep 2004 11:18:27 +0000 (11:18 +0000)]
2004-09-17  Paolo Carlini  <pcarlini@suse.de>

* testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
up a bit.
* testsuite/ext/mt_allocator/tune-2.cc: Likewise.
* testsuite/ext/mt_allocator/tune-3.cc: Likewise.
* testsuite/ext/mt_allocator/tune-4.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87638 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
kazu [Fri, 17 Sep 2004 09:14:12 +0000 (09:14 +0000)]
* basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
gimplify.c, lambda-code.c, optabs.c, predict.c,
tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87637 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-17 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 17 Sep 2004 08:42:07 +0000 (08:42 +0000)]
2004-09-17  Paolo Carlini  <pcarlini@suse.de>
    Andrea Arcangeli  <andrea@suse.de>

* config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
call unnecessarily sync, that is fflush: the library, since 3.4.0
does not use buffered fread/fwrite.
* include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87636 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
kazu [Fri, 17 Sep 2004 08:22:53 +0000 (08:22 +0000)]
* doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
doc/extend.texi, doc/install.texi, doc/invoke.texi,
doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
doc/trouble.texi: Use @option around options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87635 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Makefile.in (gen-protos.o): Depend on errors.h.
rsandifo [Fri, 17 Sep 2004 07:15:22 +0000 (07:15 +0000)]
* Makefile.in (gen-protos.o): Depend on errors.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87634 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/16002
mmitchel [Fri, 17 Sep 2004 07:01:11 +0000 (07:01 +0000)]
PR c++/16002
* parser.c (cp_parser_simple_declaration): Commit to tentative
parses after seeing a decl-specifier.
(cp_parser_simple_declaration): Eliminate spurious message.
(cp_parser_init_declarator): Adjust error message.

PR c++/16029
* lex.c (unqualified_name_lookup_error): Mark the dummy
declaration as used.

PR c++/16002
* g++.dg/template/error18.C: New test.

PR c++/16029
* g++.dg/warn/Wunused-8.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87633 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/17513
steven [Fri, 17 Sep 2004 06:23:54 +0000 (06:23 +0000)]
    PR tree-optimization/17513
* cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
for successors of the entry block.

* gcc.dg/20040916-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87632 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR rtl-optimization/15187
uros [Fri, 17 Sep 2004 05:32:36 +0000 (05:32 +0000)]
PR rtl-optimization/15187
* ifcvt.c (noce_try_cmove_arith): Exit early if total
insn_rtx_cost of both branches > BRANCH_COST

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87631 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/17528
dnovillo [Fri, 17 Sep 2004 01:10:28 +0000 (01:10 +0000)]
PR tree-optimization/17528
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
erase the may-alias set for a tag when merging it with
another.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87624 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Fri, 17 Sep 2004 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87622 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/sh/sh.md (call): Extend 32-bit addresses to DImode
kkojima [Thu, 16 Sep 2004 23:37:00 +0000 (23:37 +0000)]
* config/sh/sh.md (call): Extend 32-bit addresses to DImode
for 32-bit TARGET_SHMEDIA.
(call_value): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87619 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/17501
mmitchel [Thu, 16 Sep 2004 22:55:13 +0000 (22:55 +0000)]
PR c++/17501
* parser.c (cp_parser_nested_name_specifier): Do not resolve
typename types if the user explicitly said "typename".

PR c++/17501
* g++.dg/template/typename7.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87616 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
dnovillo [Thu, 16 Sep 2004 22:16:56 +0000 (22:16 +0000)]
* tree-ssa-operands.c (add_call_clobber_ops): Make read-only
test apply only to TREE_STATIC and DECL_EXTERNAL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87615 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
rakdver [Thu, 16 Sep 2004 21:29:43 +0000 (21:29 +0000)]
* Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
* basic-block.h (get_dominated_by_region): Declare.
* dominance.c (get_dominated_by_region): New function.
* tree-cfg.c: Include cfglayout.h.
(tree_duplicate_bb): Duplicate also phi nodes.
(struct ssa_name_map_entry): New type.
(add_phi_args_after_copy_bb, add_phi_args_after_copy,
ssa_name_map_entry_hash, ssa_name_map_entry_eq,
allocate_ssa_names, rewrite_to_new_ssa_names_def,
rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
* tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
rewrite_to_new_ssa_names, allocate_ssa_names,
rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
* tree-ssa-loop-ch.c (duplicate_blocks): Removed.
(copy_loop_headers): Use tree_duplicate_sese_region.

* gcc.dg/tree-ssa/copy-headers.c: Update outcome.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87614 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-16 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 16 Sep 2004 20:42:00 +0000 (20:42 +0000)]
2004-09-16  Frank Ch. Eigler  <fche@redhat.com>

* profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87613 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-16 Frank Ch. Eigler <fche@redhat.com>
fche [Thu, 16 Sep 2004 20:37:09 +0000 (20:37 +0000)]
2004-09-16  Frank Ch. Eigler  <fche@redhat.com>

* gcc.misc-tests/bprob.exp, g++.dg/bprob/bprob.exp: Iterate tests
with -ftree-based-profiling also.
* lib/profopt.exp: Support late-set profile_option/feedback_option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87612 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-into-ssa.c (block_defs_stack): New toplevel varray.
law [Thu, 16 Sep 2004 19:06:12 +0000 (19:06 +0000)]
* tree-into-ssa.c (block_defs_stack): New toplevel varray.
(rewrite_block_data): Remove, no longer used.
(rewrite_initialize_block_local_data): Remove, no longer used.
(rewrite_initialize_block): Mark parameters as unused as needed.
Change references to the block local block_defs to be block_defs_stack.
Push a marker onto the block_defs_stack.
(ssa_rewrite_initialize_block): Similarly.
(rewrite_stmt, ssa_rewrite_stmt): Similarly.
(ssa_register_new_def): No longer needs varray argument.  Use
block_defs_stack instead.  No longer handle possibly null block_defs
varray.  Reverse order of items we push on the stack to make it
easier to identify our marker.
(register_new_def): No longer handle possibly null block_defs
varray.
(rewrite_finalize_block): Revamp to look for markers in the global
block_defs_stack varray rather than wiping a block local varray.
Mark arguments as unused as needed.
(ssa_rewrite_finalize_block): Similarly.
(rewrite_into_ssa): Update initialization of dom walker structure
to reflect that we don't need block local data anymore.  Initialize
the block_defs_stack varray.
(rewrite_ssa_into_ssa): Similarly.
* tree-ssa-dom.c (block_defs_stack): New toplevel varray.
(struct dom_walk_data): Kill block_defs field.
(tree_ssa_dominator_optimize): Initialize block_defs_stack.
(thread_across_edge): Use the global block_defs_stack instead of
the old block_defs varray.
(dom_opt_initialize_block_local_data): Update now that we don't have
block_defs field to check anymore.
(dom_opt_initialize_block): Push a marker onto block_defs_stack.
(restore_currdefs_to_original_value): Use the new block_defs_stack
instead of a block local varray.
(dom_opt_finalize_block): Similarly.
(record_equivalencs_from_phis): Similarly.
(optimize_stmt, register_definitions_for_stmt): Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87611 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-16 Andrew MacLeod <amacleod@redhat.com>
amacleod [Thu, 16 Sep 2004 18:52:48 +0000 (18:52 +0000)]
2004-09-16  Andrew MacLeod  <amacleod@redhat.com>

* error.c (dump_decl): Make sure there is lang_specific info before
checking for DTOR and CTOR decls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87610 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-16 Andrew MacLeod <amacleod@redhat.com>
amacleod [Thu, 16 Sep 2004 18:45:33 +0000 (18:45 +0000)]
2004-09-16  Andrew MacLeod  <amacleod@redhat.com>

PR tree-optimization/17517
* tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
coalesce same-root variables without checking for abnormal PHI usage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87609 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2004-09-16 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 16 Sep 2004 16:16:14 +0000 (16:16 +0000)]
2004-09-16  Daniel Berlin  <dberlin@dberlin.org>

* cfgloop.h (duplicate_loop):  Add prototype.
* cfgloopmanip.c (duplicate_loop): Make non-static.
* lambda-code.c (perfect_nestify): Factor out test whether
we can handle this loop into separate function.
Call it.
(can_convert_to_perfect_nest): New function.
(replace_uses_of_x_with_y): Add modify_stmt call.
* tree-loop-linear.c (linear_transform_loops): Call
rewrite_into_loop_closed_ssa and free_df.

2004-09-16  Daniel Berlin  <dberlin@dberlin.org>

* lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
loop invariant as well.
(perfect_nestify): new function.
(gcc_loop_to_lambda_loop): New parameters to track lower bounds,
upper bounds, and steps.
Set outerinductionvar properly.
(gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
parameters.
Return NULL if we need a perfect loop and can't make one.
(lambda_loopnest_to_gcc_loopnest): Correct algorithm.
(not_interesting_stmt): New function.
(phi_loop_edge_uses_def): Ditto.
(stmt_uses_phi_result): Ditto.
(stmt_is_bumper_for_loop): Ditto.
(perfect_nest_p): Ditto.
(nestify_update_pending_stmts): Ditto.
(replace_uses_of_x_with_y): Ditto.
(stmt_uses_op): Ditto.
(perfect_nestify): Ditto.
* lambda-mat.c (lambda_matrix_id_p): New function.
* lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
* lambda.h: Update prototypes.
* tree-loop-linear (linear_transform_loop): Use new
perfect_nest_p. Detect and ignore identity transform.
* tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.

2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>

* tree-loop-linear.c (gather_interchange_stats): Add more comments.
Gather also strides of accessed data.  Pass in the data references
array.
(try_interchange_loops): Add a new heuristic for handling the temporal
locality.  Pass in the data references array.
(linear_transform_loops): Pass the data references array to
try_interchange_loops.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87607 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * doc/invoke.texi: Fix typos. Follow spelling conventions.
kazu [Thu, 16 Sep 2004 16:12:13 +0000 (16:12 +0000)]
* doc/invoke.texi: Fix typos.  Follow spelling conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87606 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * array.c, data.c, decl.c, dependency.c, error.c, f95-lang.c,
kazu [Thu, 16 Sep 2004 16:00:45 +0000 (16:00 +0000)]
* array.c, data.c, decl.c, dependency.c, error.c, f95-lang.c,
interface.c, intrinsic.c, io.c, misc.c, module.c, parse.h,
resolve.c, scanner.c, trans-array.c, trans-array.h,
trans-common.c, trans-const.h, trans-decl.c, trans-expr.c,
trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.c,
trans.h: Fix comment typos.  Follow spelling conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87605 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * class.c (copy_virtuals): Remove.
nathan [Thu, 16 Sep 2004 15:21:41 +0000 (15:21 +0000)]
* class.c (copy_virtuals): Remove.
(build_primary_vtable): Use copy_list directly.
(build_secondary_vtable): Likewise.
(update_vtable_entry_for_fn): Clear BV_CALL_INDEX here.
(create_vtable_ptr): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87604 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * doc/c-tree.texi (Classes): Remove index entries for
nathan [Thu, 16 Sep 2004 15:13:34 +0000 (15:13 +0000)]
* doc/c-tree.texi (Classes): Remove index entries for
TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87603 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agomissing changelog entry
nathan [Thu, 16 Sep 2004 15:04:34 +0000 (15:04 +0000)]
missing changelog entry
* cp-tree.h (struct lang_type_class): Make pure_virtuals a
VEC(tree).
(CLASSTYPE_INLINE_FRIENDS, CLASSTYPE_PURE_VIRTUALS): Update
comments.
* call.c (build_new_method_call): Don't confirm a pure virtual is
in CLASSTYPE_PURE_VIRTUALS.  Reorder checks. Make it a warning.
* class.c (check_methods): CLASSTYPE_INLINE_FRIENDS is a VEC(tree).
(fixup_inline_methods, finish_struct): Likewise.
* decl.c (finish_method): Likewise.
* search.c (dfs_get_pure_virtuals, get_pure_virtuals):
CLASSTYPE_PURE_VIRTUALS is a VEC(tree).
* typeck2.c (abstract_virtuals_error): Likewise. Truncate the
vector to avoid repeating the list in error messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87602 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * fold-const.c (fold): Fold difference of addresses.
rakdver [Thu, 16 Sep 2004 14:58:01 +0000 (14:58 +0000)]
* fold-const.c (fold): Fold difference of addresses.
(ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
get_inner_reference.
* tree-ssa-loop-ivopts.c (peel_address): Removed.
(ptr_difference_const): Moved to fold-const.c.
(split_address_cost): Use get_inner_reference instead of peel_address.
(ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
* tree.h (ptr_difference_const): Export.

* tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
variable type to the dump.  Fix indentation.
(idx_find_step): Handle nonconstant array_ref_element_size and
array_ref_low_bound.
(idx_record_use): Handle array_ref_element_size and
array_ref_low_bound.
(find_interesting_uses_stmt): Handle memory = nontrivial_expression
statements correctly.
(get_computation_at, iv_value): Do not unshare expressions here.
(rewrite_use_outer): Unshare the expression before it is emitted
to code.
* tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
Moved to tree.c.
* tree.c (unsigned_type_for, signed_type_for): Moved from
tree-ssa-loop-niter.c.  Use langhooks.
* tree.h (signed_type_for): Export.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87601 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * search.c: Follow spelling conventions.
kazu [Thu, 16 Sep 2004 14:16:42 +0000 (14:16 +0000)]
* search.c: Follow spelling conventions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87600 138bc75d-0d04-0410-961f-82ee72b054a4