platform/upstream/gcc.git
17 years agocp-tree.h (TYPE_NAMESPACE_SCOPE_P, [...]): Remove.
Kazu Hirata [Thu, 28 Dec 2006 06:46:16 +0000 (06:46 +0000)]
cp-tree.h (TYPE_NAMESPACE_SCOPE_P, [...]): Remove.

* cp/cp-tree.h (TYPE_NAMESPACE_SCOPE_P,
TYPE_FUNCTION_SCOPE_P): Remove.

From-SVN: r120239

17 years agoMakefile.in (OBJS-common): Remove conflict.o
Kazu Hirata [Thu, 28 Dec 2006 06:44:53 +0000 (06:44 +0000)]
Makefile.in (OBJS-common): Remove conflict.o

* Makefile.in (OBJS-common): Remove conflict.o
(conflict.o): Remove.
* basic-block.h: Remove the prototypes for conflict.c.
* conflict.c: Remove.

From-SVN: r120238

17 years agosbitmap.c (BITMAP_DEBUGGING): New macro.
Daniel Berlin [Thu, 28 Dec 2006 06:23:06 +0000 (06:23 +0000)]
sbitmap.c (BITMAP_DEBUGGING): New macro.

2006-12-27  Daniel Berlin  <dberlin@dberlin.org>

* sbitmap.c (BITMAP_DEBUGGING): New macro.
(do_popcount): Ditto.
(sbitmap_verify_popcount): New function.
(sbitmap_alloc): Set popcount to NULL, remove set of bytes
member.
(sbitmap_alloc_with_popcount): New function.
(sbitmap_resize): Remove uses of bytes member and update
popcount.
(sbitmap_realloc): Remove uses of bytes member.
(sbitmap_copy): Copy popcount.
(sbitmap_copy_n): New function.
(sbitmap_zero): Update popcount cache.
(sbitmap_ones): Ditto.
(sbitmap_a_and_b): Ditto.
(sbitmap_a_or_b): Ditto.
(sbitmap_a_xor_b): Ditto.
(sbitmap_union_of_diff_cg): Assert non-existence of popcount
cache.
(sbitmap_union_of_diff): Ditto.
(sbitmap_not): Ditto.
(sbitmap_difference): Ditto.
(sbitmap_a_and_b_cg): Ditto.
(sbitmap_a_xor_b_cg): Ditto.
(sbitmap_a_or_b_cg): Ditto.
(sbitmap_a_or_b_and_c_cg): Ditto.
(sbitmap_a_and_b_or_c_cg): Ditto.
(sbitmap_intersection_of_succs): Ditto.
(sbitmap_intersection_of_preds): Ditto.
(sbitmap_union_of_succs): Ditto.
(sbitmap_union_of_preds): Ditto.
(popcount_table): New.
(sbitmap_elt_popcount): New function.
(sbitmap_popcount): Ditto.

* sbitmap.h (sbitmap): Remove bytes member.
Add popcount member.
(SET_BIT): Macro turned into function.
(RESET_BIT): Ditto.
(SBITMAP_SIZE_BYTES): New macro.
(sbitmap_free): Free popcount too.
(sbitmap_alloc_with_popcount): New prototype.
(sbitmap_copy_n): Ditto.
(sbitmap_verify_popcount): Ditto.

From-SVN: r120237

17 years ago2006-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Jerry DeLisle [Thu, 28 Dec 2006 01:43:29 +0000 (01:43 +0000)]
2006-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Fix typo in ChangeLog.

From-SVN: r120236

17 years agore PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)
Jerry DeLisle [Thu, 28 Dec 2006 01:41:57 +0000 (01:41 +0000)]
re PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)

2006-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/30014
* gfortran.dg/io_constraints_1.f90: Update test.
* gfortran.dg/io_constraints_2.f90: Update test.
* gfortran.dg/inquire_iolength.f90: Ne test.

From-SVN: r120235

17 years agore PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)
Jerry DeLisle [Thu, 28 Dec 2006 01:40:23 +0000 (01:40 +0000)]
re PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)

2006-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/30014
*io/io.h (st_parameter_dt): Change *size and *iolength type to
GFC_IO_INT.
*io/transfer.c (finalize_transfer): Cast dtp->u.p.size_used to
GFC_IO_INT.  (iolength_transfer): Cast size * nelems to GFC_IO_INT.

From-SVN: r120234

17 years agore PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)
Jerry DeLisle [Thu, 28 Dec 2006 01:39:15 +0000 (01:39 +0000)]
re PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4)

2006-12-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/30014
*io.c (resolve_tag): Don't issue error for tag_size type not being
default integer size for -std=F2003.  Add similar check for
tag_iolength.
*ioparm.def: Change size and iolength parameters to ioint pointer, which
corresponds to GFC_IO_INT on the library side.

From-SVN: r120233

17 years agoDaily bump.
GCC Administrator [Thu, 28 Dec 2006 00:17:28 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120231

17 years agoconfigure.in: When removing Makefiles to force a reconfigure, also remove prev-DIR...
Ian Lance Taylor [Wed, 27 Dec 2006 23:44:13 +0000 (23:44 +0000)]
configure.in: When removing Makefiles to force a reconfigure, also remove prev-DIR*/Makefile.

* configure.in: When removing Makefiles to force a reconfigure, also
remove prev-DIR*/Makefile.
* configure: Regenerate.

From-SVN: r120226

17 years agore PR debug/26964 (Duplicate debug info for enums in namespaces)
Ian Lance Taylor [Wed, 27 Dec 2006 21:48:05 +0000 (21:48 +0000)]
re PR debug/26964 (Duplicate debug info for enums in namespaces)

PR debug/26964
* dwarf2out.c (gen_type_die): Don't write out a DIE for
ENUMERAL_TYPE if it was already written out.

From-SVN: r120221

17 years agointerface.c (compare_actual_formal): Remove unused variable gsym.
Gerald Pfeifer [Wed, 27 Dec 2006 16:30:11 +0000 (16:30 +0000)]
interface.c (compare_actual_formal): Remove unused variable gsym.

* interface.c (compare_actual_formal): Remove unused variable
gsym.

From-SVN: r120219

17 years agore PR fortran/20896 (ambiguous interface not detected)
Paul Thomas [Wed, 27 Dec 2006 13:46:47 +0000 (13:46 +0000)]
re PR fortran/20896 (ambiguous interface not detected)

2006-12-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20896
* interface.c (check_sym_interfaces): Try to resolve interface
reference as a global symbol, if it is not a nodule procedure.
(compare_actual_formal): Remove call to gfc_find_symbol; if
the expression is already a variable it is locally declared
and this has precedence.
gfortran.h : Add prototype for resolve_global_procedure.
resolve.c (resolve_global_procedure): Remove static attribute
from function declaration.
(resolve_fl_procedure): Remove symtree declaration and the
redundant check for an ambiguous procedure.

PR fortran/25135
* module.c (load_generic_interfaces): If the symbol is present
and is not generic it is ambiguous.

2006-12-27  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20896
* gfortran.dg/interface_10.f90: New test.
* gfortran.dg/dummy_procedure_1.f90: Add error for call s1(z),
since z is already, locally a variable.

PR fortran/25135
* gfortran.dg/generic_11.f90: New test.
* gfortran.dg/interface_7.f90: Remove name clash between module
name and procedure 'x' referenced in the interface.

From-SVN: r120218

17 years agoDaily bump.
GCC Administrator [Wed, 27 Dec 2006 00:17:48 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120216

17 years agore PR middle-end/29335 (transcendental functions with constant arguments should be...
Kaveh R. Ghazi [Tue, 26 Dec 2006 19:03:17 +0000 (19:03 +0000)]
re PR middle-end/29335 (transcendental functions with constant arguments should be resolved at compile-time)

PR middle-end/29335
* builtins.c (do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3,
do_mpfr_sincos): Ensure target base equals two.

From-SVN: r120211

17 years ago* tree-ssa-operands.c: Fix a comment typo.
Kazu Hirata [Tue, 26 Dec 2006 15:44:54 +0000 (15:44 +0000)]
* tree-ssa-operands.c: Fix a comment typo.

From-SVN: r120210

17 years agoDaily bump.
GCC Administrator [Tue, 26 Dec 2006 00:17:54 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120207

17 years ago* tree-vectorizer.h (VECT_SMODULO): Remove.
Kazu Hirata [Mon, 25 Dec 2006 23:36:53 +0000 (23:36 +0000)]
* tree-vectorizer.h (VECT_SMODULO): Remove.

From-SVN: r120202

17 years agoDaily bump.
GCC Administrator [Mon, 25 Dec 2006 00:17:53 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120196

17 years agopa.c: Remove heap vector type defines.
Andreas Tobler [Sun, 24 Dec 2006 20:57:35 +0000 (20:57 +0000)]
pa.c: Remove heap vector type defines.

2006-12-24  Andreas Tobler  <a.tobler@schweiz.org>

* config/pa/pa.c: Remove heap vector type defines.

From-SVN: r120191

17 years agotree-ssa-operands.h (struct ssa_operand_memory_d): add ssa_operand_mem_size.
Jan Hubicka [Sun, 24 Dec 2006 10:23:25 +0000 (11:23 +0100)]
tree-ssa-operands.h (struct ssa_operand_memory_d): add ssa_operand_mem_size.

* tree-ssa-operands.h (struct ssa_operand_memory_d):
add ssa_operand_mem_size.
* tree-ssa-operands.c (operands_bitmap_obstack): New.
(ssa_operand_mem_size): Remove.
(init_ssa_operands): Initialize obstack; use it.
(fini_ssa_operands): Release obstack.
(ssa_operand_alloc): Update.
(finalize_ssa_vdefs, finalize_ssa_vuse_ops, copy_virtual_operands,
get_mpt_for): Use obstack.
* tree-ssa.c (delete_tree_ssa): Call fini_ssa_operands.
* tree-outof-ssa.c: (remove_ssa_form): Don't call it here.

From-SVN: r120189

17 years agotree-mudflap.c (ml_decl_cache_locals, [...]): add newly referenced vars.
Jan Hubicka [Sun, 24 Dec 2006 10:17:15 +0000 (11:17 +0100)]
tree-mudflap.c (ml_decl_cache_locals, [...]): add newly referenced vars.

* tree-mudflap.c (ml_decl_cache_locals, md_build_check_statement_for):
add newly referenced vars.

From-SVN: r120188

17 years agobasic-block.h: Remove the prototype for expected_value_to_br_prob.
Kazu Hirata [Sun, 24 Dec 2006 01:47:56 +0000 (01:47 +0000)]
basic-block.h: Remove the prototype for expected_value_to_br_prob.

* basic-block.h: Remove the prototype for
expected_value_to_br_prob.
* rtl.h: Remove the prototypes for expand_builtin_expect_jump
and purge_line_number_notes.

From-SVN: r120186

17 years agoDaily bump.
GCC Administrator [Sun, 24 Dec 2006 00:17:39 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120184

17 years agotree-ssa-loop-niter.c (number_of_iterations_lt_to_ne, [...]): Use integer_zerop/integ...
Zdenek Dvorak [Sat, 23 Dec 2006 23:05:52 +0000 (00:05 +0100)]
tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne, [...]): Use integer_zerop/integer_nonzerop instead of...

* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne,
assert_no_overflow_lt, assert_loop_rolls_lt,
number_of_iterations_lt, number_of_iterations_le,
number_of_iterations_cond, number_of_iterations_exit):
Use integer_zerop/integer_nonzerop instead of
null_or_integer_zerop/nonnull_and_integer_nonzerop.
* tree.h (null_or_integer_zerop, nonnull_and_integer_nonzerop):
Removed.
* tree-scalar-evolution.c (simple_iv): Return zero for step of
an invariant.
* tree-ssa-loop-ivopts.c (alloc_iv): Do not set step of invariants
to zero.
(get_iv): Return NULL for non-scalar types.  Use zero as a step
of an invariant.
(determine_biv_step, find_interesting_uses_op,
find_interesting_uses_cond, find_interesting_uses_stmt,
add_old_ivs_candidates, determine_use_iv_cost_condition,
rewrite_use_compare, remove_unused_ivs):
Use integer_zerop instead of null_or_integer_zerop.
(struct ifs_ivopts_data): Replace step_p field with step field.
(idx_find_step): Use zero as a step of an invariant.  Modify
step instead of *step_p.
(find_interesting_uses_address): Use zero as a step of an invariant.
Use integer_zerop instead of null_or_integer_zerop.
(find_interesting_uses_outside): Call find_interesting_uses_op only
for phi nodes for real operands.
(add_candidate_1): Expect step to be non-NULL.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Expect step to be
non-NULL.

From-SVN: r120179

17 years agovec.c: Don't include tree.h.
Andrew Pinski [Sat, 23 Dec 2006 22:38:34 +0000 (14:38 -0800)]
vec.c: Don't include tree.h.

2006-12-23  Andrew Pinski  <pinskia@gmail.com>

        * vec.c: Don't include tree.h.
        * Makefile.in (vec.o): Update dependencies.
        (build/vec.o): Likewise.

From-SVN: r120178

17 years agoMakefile.in (final.o): Depend on vecprim.h.
Kazu Hirata [Sat, 23 Dec 2006 22:10:10 +0000 (22:10 +0000)]
Makefile.in (final.o): Depend on vecprim.h.

* Makefile.in (final.o): Depend on vecprim.h.
* final.c: Include vecprim.h.
(insn_addresses_): Change the type to VEC(int,heap)*.
* insn-addr.h (INSN_ADDRESSES_DEFN): Remove.
(INSN_ADDRESSES, INSN_ADDRESSES_ALLOC, INSN_ADDRESSES_SIZE,
INSN_ADDRESSES_NEW): Use VEC instead of VARRAY.

From-SVN: r120177

17 years agocommon.opt (flag_force_mem): Remove.
Kazu Hirata [Sat, 23 Dec 2006 21:54:59 +0000 (21:54 +0000)]
common.opt (flag_force_mem): Remove.

* common.opt (flag_force_mem): Remove.
* doc/invoke.texi (-fforce-mem): Remove.
* opts.c (common_handle_option): Don't handle OPT_fforce_mem.

From-SVN: r120176

17 years agocgraphunit.c (cgraph_optimize): Fixed obvious thinko in memory consumption reporting.
Marcin Dalecki [Sat, 23 Dec 2006 18:10:48 +0000 (19:10 +0100)]
cgraphunit.c (cgraph_optimize): Fixed obvious thinko in memory consumption reporting.

2006-12-23  Marcin Dalecki  <martin@dalecki.de>

       * cgraphunit.c (cgraph_optimize): Fixed obvious thinko in memory
       consumption reporting.

From-SVN: r120174

17 years agore PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
Manuel López-Ibáñez [Sat, 23 Dec 2006 17:45:33 +0000 (17:45 +0000)]
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)

2006-12-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR middle-end/7651
* c.opt (Wmissing-parameter-type): New.
* doc/invoke.texi (Wmissing-parameter-type): Document it.
(Wextra): Enabled by -Wextra.
* c-opts.c (c_common_post_options): Enabled by -Wextra.
* c-decl.c (store_parm_decls_oldstyle): Replace Wextra with
Wmissing-parameter-type.

testsuite/

* gcc.dg/Wmissing-parameter-type.c: New.
* gcc.dg/Wmissing-parameter-type-Wextra.c: New.
* gcc.dg/Wmissing-parameter-type-no.c: New.

From-SVN: r120173

17 years agodwarf2out.c (dbx_reg_number): Do leaf register remapping only if the function is...
Eric Botcazou [Sat, 23 Dec 2006 17:18:38 +0000 (17:18 +0000)]
dwarf2out.c (dbx_reg_number): Do leaf register remapping only if the function is leaf.

* dwarf2out.c (dbx_reg_number): Do leaf register remapping
only if the function is leaf.
(multiple_reg_loc_descriptor): Likewise.

From-SVN: r120170

17 years ago* rtl.h (NOTE_EXPECTED_VALUE): Remove.
Kazu Hirata [Sat, 23 Dec 2006 16:01:47 +0000 (16:01 +0000)]
* rtl.h (NOTE_EXPECTED_VALUE): Remove.

From-SVN: r120169

17 years agotoplev.c (dump_memory_report): Break out from...
Jan Hubicka [Sat, 23 Dec 2006 14:30:36 +0000 (15:30 +0100)]
toplev.c (dump_memory_report): Break out from...

* toplev.c (dump_memory_report): Break out from...
(finalize): Here.
* toplev.h (dump_memory_report): Declare.
(cmp_statistic): Rename to ...
(final_cmp_statistic): ... this one
(cmp_statistic): New.
(dump_ggc_loc_staitsitcs): New FINAL parpameter.
* common.opt (-fpre-ipa-mem-report, -fpost-ipa-mem-report): Declare.
* varray.c (dump_varray_staitiscs): Do not segfault when no varray was
allocated so far.

From-SVN: r120168

17 years agot-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Add -mmacosx-version-min=10.4.
Mike Stump [Sat, 23 Dec 2006 05:54:19 +0000 (05:54 +0000)]
t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Add -mmacosx-version-min=10.4.

        * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Add
        -mmacosx-version-min=10.4.
        (crt2.o): Add $(DARWIN_EXTRA_CRT_BUILD_CFLAGS).

From-SVN: r120167

17 years agotree-flow-inline.h (var_ann): External variable annotations are unshared too.
Jan Hubicka [Sat, 23 Dec 2006 00:27:44 +0000 (01:27 +0100)]
tree-flow-inline.h (var_ann): External variable annotations are unshared too.

* tree-flow-inline.h (var_ann): External variable annotations are
unshared too.
(tree_common_ann): Handle correctly unshared variables annotations.
* tree-dfa.c (create_var_ann): External variable annotations are
unshared too.

From-SVN: r120164

17 years agoDaily bump.
GCC Administrator [Sat, 23 Dec 2006 00:17:51 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120162

17 years agobasic-block.h: Remove the prototype for commit_edge_insertions_watch_calls.
Kazu Hirata [Fri, 22 Dec 2006 23:59:34 +0000 (23:59 +0000)]
basic-block.h: Remove the prototype for commit_edge_insertions_watch_calls.

* basic-block.h: Remove the prototype for
commit_edge_insertions_watch_calls.
  * cfgrtl.c (commit_edge_insertion): Drop the last argument.
Simplify.
(commit_edge_insertions_watch_calls): Remove.
(commit_edge_insertions): Adjust the call to
commit_one_edge_insertion.

From-SVN: r120157

17 years agotree-ssa-loop-niter.c (zero_p, nonzero_p): Removed.
Zdenek Dvorak [Fri, 22 Dec 2006 21:38:52 +0000 (22:38 +0100)]
tree-ssa-loop-niter.c (zero_p, nonzero_p): Removed.

* tree-ssa-loop-niter.c (zero_p, nonzero_p): Removed.
(number_of_iterations_ne, number_of_iterations_lt_to_ne,
assert_no_overflow_lt, assert_loop_rolls_lt,
number_of_iterations_lt, number_of_iterations_le,
number_of_iterations_cond, tree_simplify_using_condition_1,
number_of_iterations_exit, find_loop_niter, loop_niter_by_eval,
implies_nonnegative_p, implies_ge_p, record_nonwrapping_iv,
idx_infer_loop_bounds, n_of_executions_at_most, scev_probably_wraps_p):
Do not use zero_p/nonzero_p.
* tree-ssa-loop-manip.c (determine_exit_conditions): Ditto.
* tree-ssa-loop-ivopts.c (niter_for_exit, determine_biv_step,
find_interesting_uses_op, find_interesting_uses_cond,
find_interesting_uses_address, find_interesting_uses_stmt,
strip_offset_1, add_candidate_1, add_old_ivs_candidates,
difference_cost, determine_use_iv_cost_condition,
rewrite_use_compare, remove_unused_ivs): Ditto.
* tree-ssa-address.c (tree_mem_ref_addr, create_mem_ref_raw): Ditto.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
* tree-cfg.c (find_taken_edge_cond_expr): Ditto.
* tree.h (zero_p): Declaration removed.
(null_or_integer_zerop, nonnull_and_integer_nonzerop): New.

From-SVN: r120156

17 years agore PR fortran/25818 ([4.1 only] Problem with handling optional and entry master argum...
Paul Thomas [Fri, 22 Dec 2006 20:49:00 +0000 (20:49 +0000)]
re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments)

2006-12-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25818
* trans-array.c (gfc_trans_g77_array): If the variable is
optional or not always present, make the statement conditional
on presence of the argument.
* gfortran.h : Add symbol_attribute not_always_present.
* resolve.c (check_argument_lists): New function to check if
arguments are not present in all entries.

PR fortran/30084
* module.c (mio_component_ref): Move treatment of unique name
variables, during output, to fix_mio_expr.
(fix_mio_expr): New function that fixes defective expressions
before they are written to the module file.
(mio_expr): Call the new function.
(resolve_entries): Call check_argument_lists.

2006-12-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25818
* gfortran.dg/entry_array_specs_2.f: New test.

PR fortran/30084
* gfortran.dg/nested_modules_6.f90: New test.

From-SVN: r120155

17 years agore PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
Manuel López-Ibáñez [Fri, 22 Dec 2006 15:54:05 +0000 (15:54 +0000)]
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)

2006-12-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR middle-end/7651
* c.opt (Wclobbered): New.
* doc/invoke.texi (Wclobbered): Document it.
(Wextra): Enabled by -Wextra.
* c-opts.c (c_common_post_options): Enabled by -Wextra.
* flow.c (rest_of_handle_life): Replace Wextra with Wclobbered.
* function.c (setjmp_vars_warning): Only warn for Wclobbered.
(setjmp_args_warning): Likewise.

testsuite/

* gcc.dg/attr-returns_twice-1.c: Replace Wextra with Wclobbered.
* gcc.dg/setjmp-1.c: Add explicit Wclobbered.

From-SVN: r120151

17 years agoelfos.h, [...]: Fix comment typos.
Kazu Hirata [Fri, 22 Dec 2006 12:50:00 +0000 (12:50 +0000)]
elfos.h, [...]: Fix comment typos.

* config/elfos.h, config/spu/spu.c, tree-ssa-operands.h,
tree-ssa-ter.c: Fix comment typos.

From-SVN: r120149

17 years agoDR 541, [WP].
Paolo Carlini [Fri, 22 Dec 2006 12:49:48 +0000 (12:49 +0000)]
DR 541, [WP].

2006-12-22  Paolo Carlini  <pcarlini@suse.de>

        DR 541, [WP].
  * include/std/memory (auto_ptr<void>): Add specialization.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/
assign/dr541.cc: New.
* testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust
dg-error markers.
        * docs/html/ext/howto.html: Add an entry for DR 541.

From-SVN: r120148

17 years agore PR rtl-optimization/29840 (build/genconditions ../../gcc/gcc/config/pa/pa.md ...
Paolo Bonzini [Fri, 22 Dec 2006 12:28:52 +0000 (12:28 +0000)]
re PR rtl-optimization/29840 (build/genconditions ../../gcc/gcc/config/pa/pa.md > tmp-condmd.c: /bin/sh: 13354 Memory fault(coredump))

2006-12-22  Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/29840

* fwprop.c (forward_propagate_into): Reject artificial uses/defs.
(fwprop_init): Add DF_HARD_REGS to df_init call.

From-SVN: r120147

17 years ago* configure: Regenerate with correct autoconf version.
Andreas Schwab [Fri, 22 Dec 2006 10:53:13 +0000 (10:53 +0000)]
* configure: Regenerate with correct autoconf version.

From-SVN: r120146

17 years agore PR c++/30225 (builtins's decl is copied in some cases where it is not needed to...
Andrew Pinski [Fri, 22 Dec 2006 08:31:03 +0000 (00:31 -0800)]
re PR c++/30225 (builtins's decl is copied in some cases where it is not needed to be copied)

2006-12-21  Andrew Pinski  <pinskia@gmail.com>

        PR C++/30225
        * decl.c (cxx_builtin_function): Only copy the decl if adding
        it to the std namespace

From-SVN: r120145

17 years agore PR c++/30168 (C++ constructors can cause invalid gimple to happen with complex...
Andrew Pinski [Fri, 22 Dec 2006 07:30:55 +0000 (23:30 -0800)]
re PR c++/30168 (C++ constructors can cause invalid gimple to happen with complex typed variables)

2006-12-21  Andrew Pinski  <pinskia@gmail.com>

        PR C++/30168
        * optimize.c (update_cloned_parm): Copy DECL_GIMPLE_REG_P also.

2006-12-21  Andrew Pinski  <pinskia@gmail.com>

        PR C++/30168
        * g++.dg/opt/complex6.C: New test.

From-SVN: r120144

17 years agotree-nested.c (create_tmp_var_for): Check for vector type when setting DECL_GIMPLE_REG_P.
Andrew Pinski [Fri, 22 Dec 2006 07:25:00 +0000 (23:25 -0800)]
tree-nested.c (create_tmp_var_for): Check for vector type when setting DECL_GIMPLE_REG_P.

2006-12-21  Andrew Pinski  <pinskia@gmail.com>

        * tree-nested.c (create_tmp_var_for): Check for vector type
        when setting DECL_GIMPLE_REG_P.

From-SVN: r120143

17 years agoconfigure.in: add AC_SUBST for *_FOR_TARGET.
Adam Megacz [Fri, 22 Dec 2006 07:06:29 +0000 (07:06 +0000)]
configure.in: add AC_SUBST for *_FOR_TARGET.

2006-12-20  Adam Megacz  <megacz@cs.berkeley.edu>

        * configure.in: add AC_SUBST for *_FOR_TARGET.
        * configure: Regenerate.

From-SVN: r120142

17 years agotrans-array.c (gfc_trans_create_temp_array): When the size is known at compile-time...
Roger Sayle [Fri, 22 Dec 2006 03:56:43 +0000 (03:56 +0000)]
trans-array.c (gfc_trans_create_temp_array): When the size is known at compile-time, avoid an unnecessary conditional assignment.

* trans-array.c (gfc_trans_create_temp_array): When the size is known
at compile-time, avoid an unnecessary conditional assignment.
(gfc_array_init_size): Likewise.

From-SVN: r120141

17 years agotree-pretty-print.c (dump_generic_node): Avoid outputing "(void) 0;" as the else...
Roger Sayle [Fri, 22 Dec 2006 03:22:04 +0000 (03:22 +0000)]
tree-pretty-print.c (dump_generic_node): Avoid outputing "(void) 0;" as the else branch of a COND_EXPR.

* tree-pretty-print.c (dump_generic_node): Avoid outputing "(void) 0;"
as the else branch of a COND_EXPR.

From-SVN: r120140

17 years ago* cgraphunit.c, varpool.c: Fix comment typos.
Kazu Hirata [Fri, 22 Dec 2006 01:30:17 +0000 (01:30 +0000)]
* cgraphunit.c, varpool.c: Fix comment typos.

From-SVN: r120139

17 years agocgraphunit.c, [...]: Fix comment typos.
Kazu Hirata [Fri, 22 Dec 2006 01:19:39 +0000 (01:19 +0000)]
cgraphunit.c, [...]: Fix comment typos.

* cgraphunit.c, config/i386/i386.c, config/ia64/ia64.c, cse.c,
output.h, toplev.c, tree-affine.h, tree-flow.h,
tree-ssa-alias.c, tree-ssa-coalesce.c, tree-ssa-live.c,
tree-ssa-live.h, tree-ssa-operands.c, tree-ssa-ter.c,
tree-vrp.c, varpool.c: Fix comment typos.

From-SVN: r120137

17 years ago* decl.c: Fix a coment typo.
Kazu Hirata [Fri, 22 Dec 2006 01:10:59 +0000 (01:10 +0000)]
* decl.c: Fix a coment typo.

From-SVN: r120136

17 years ago* interface.c: Fix a comment typo.
Kazu Hirata [Fri, 22 Dec 2006 01:09:02 +0000 (01:09 +0000)]
* interface.c: Fix a comment typo.

From-SVN: r120135

17 years agogcc-dg.exp (gcc-dg-prune): Return "::unsupported::memory full" if the linker on spu...
Ben Elliston [Fri, 22 Dec 2006 01:05:07 +0000 (01:05 +0000)]
gcc-dg.exp (gcc-dg-prune): Return "::unsupported::memory full" if the linker on spu-*-* warns about...

* lib/gcc-dg.exp (gcc-dg-prune): Return "::unsupported::memory
full" if the linker on spu-*-* warns about exceeding local store.

And revert this patch:
* lib/gcc-defs.exp (${tool}_check_compile): xfail test cases that
fail to link due to relocation overflows on spu-*-*.

From-SVN: r120134

17 years agoDaily bump.
GCC Administrator [Fri, 22 Dec 2006 00:17:42 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r120130

17 years agospu.h (ARG_POINTER_CFA_OFFSET): Define.
Ulrich Weigand [Thu, 21 Dec 2006 23:23:34 +0000 (23:23 +0000)]
spu.h (ARG_POINTER_CFA_OFFSET): Define.

* config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Define.
* config/spu/spu.c (spu_expand_prologue): Set RTX_FRAME_RELATED_P
for insn setting up the frame pointer.  Do not set it for insns
setting up scratch registers or storing the backchain.

From-SVN: r120125

17 years agore PR libgomp/28209 (None of the GOMP_* environment variables are documented)
Daniel Franke [Thu, 21 Dec 2006 22:29:08 +0000 (17:29 -0500)]
re PR libgomp/28209 (None of the GOMP_* environment variables are documented)

2006-12-21  Daniel Franke  <franke.daniel@gmail.com>

PR libgomp/28209
* libgomp.texi: New file.
* configure.ac: Add --enable-generated-files-in-srcdir option.
* Makefile.am: Add info, dvi, pdf, html targets. On request, copy
files to srcdir.
* Makefile.in: Regenerated.
* config.h.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* NOTES: Removed.

From-SVN: r120122

17 years agore PR other/29639 (ext/bitmap_allocator/check_allocate_max_size.cc execution test)
Eric Botcazou [Thu, 21 Dec 2006 22:10:30 +0000 (22:10 +0000)]
re PR other/29639 (ext/bitmap_allocator/check_allocate_max_size.cc execution test)

PR other/29639
* configure.ac (HAVE_LD_EH_GC_SECTIONS): Check that exception tables
are kept for .gnu.linkonce.t sections if COMDAT groups are disabled.
* configure: Regenerate.

From-SVN: r120121

17 years agortlanal.c (subreg_get_info): Do not make register size computations for mode sizes...
Joseph Myers [Thu, 21 Dec 2006 20:58:57 +0000 (20:58 +0000)]
rtlanal.c (subreg_get_info): Do not make register size computations for mode sizes not divisible by the...

* rtlanal.c (subreg_get_info): Do not make register size
computations for mode sizes not divisible by the number of
registers.

From-SVN: r120119

17 years agore PR fortran/30273 ([4.1 only] gfc_todo: Not Implemented: Unable to determine rank...
Paul Thomas [Thu, 21 Dec 2006 19:56:34 +0000 (19:56 +0000)]
re PR fortran/30273 ([4.1 only] gfc_todo: Not Implemented: Unable to determine rank of expression)

2006-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30273
* dependency.c (gfc_check_dependency): There is no dependency
with EXPR_NULL so always return 0.

2006-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30273
* gfortran.dg/dependency_19.f90: New test.

From-SVN: r120117

17 years agoconfigure.ac: add $built_gcc_dir to $GCJH and $GCJ when crossbuilding.
Adam Megacz [Thu, 21 Dec 2006 18:07:33 +0000 (18:07 +0000)]
configure.ac: add $built_gcc_dir to $GCJH and $GCJ when crossbuilding.

2006-12-20  Adam Megacz <megacz@cs.berkeley.edu>

* configure.ac: add $built_gcc_dir to $GCJH and $GCJ when
crossbuilding.
* configure: Regenerate.

From-SVN: r120115

17 years agotree-ssa-structalias.c (build_constraint_graph): Insert complex offsetted constraints...
Daniel Berlin [Thu, 21 Dec 2006 17:32:01 +0000 (17:32 +0000)]
tree-ssa-structalias.c (build_constraint_graph): Insert complex offsetted constraints into rhsvar, not lhsvar.

2006-12-21  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-structalias.c (build_constraint_graph): Insert complex
offsetted constraints into rhsvar, not lhsvar.

From-SVN: r120114

17 years agore PR fortran/30202 ([4.1 only] ICE in trans-array.c)
Paul Thomas [Thu, 21 Dec 2006 13:59:57 +0000 (13:59 +0000)]
re PR fortran/30202 ([4.1 only] ICE in trans-array.c)

2006-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30202
* trans-array.c (gfc_conv_function_call): Use parmse.expr for
the nullifying of intent(out) arguments rather than the backend
declaration.

2006-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30202
* gfortran.dg/alloc_comp_basics_3.f90: New test.

From-SVN: r120109

17 years agore PR middle-end/30262 (ICE with nested fn accessed var in asm "m" constraint)
Jakub Jelinek [Thu, 21 Dec 2006 13:13:15 +0000 (14:13 +0100)]
re PR middle-end/30262 (ICE with nested fn accessed var in asm "m" constraint)

PR middle-end/30262
PR middle-end/30263
* tree-nested.c (walk_asm_expr): New function.
(walk_stmts): Use it for ASM_EXPR.

* gcc.c-torture/execute/20061220-1.c: New test.
* gcc.dg/gomp/asm-1.c: New test.

From-SVN: r120106

17 years agore PR target/30230 (Incorrect ia64 EH info when an EH region ends in the middle of...
Jakub Jelinek [Thu, 21 Dec 2006 12:59:06 +0000 (13:59 +0100)]
re PR target/30230 (Incorrect ia64 EH info when an EH region ends in the middle of a bundle)

PR target/30230
* config/ia64/ia64.c (ia64_add_bundle_selector_before): New function.
(bundling): Use it.

* g++.dg/eh/ia64-2.C: New test.

From-SVN: r120103

17 years agore PR target/28966 (-maltivec -m32 causes the stack to be saved and restored even...
Nathan Sidwell [Thu, 21 Dec 2006 09:03:18 +0000 (09:03 +0000)]
re PR target/28966 (-maltivec -m32 causes the stack to be saved and restored even though there is no need for it)

gcc/
PR target/28966
PR target/29248
* reload1.c (reload): Realign stack after it changes size.
gcc/testsuite/
PR target/28966
PR target/29248
* gcc.dg/rs6000-leaf.c: New.

From-SVN: r120102

17 years agosimplify-rtx.c (simplify_subreg): Use the correct mode when determining whether a...
Roger Sayle [Thu, 21 Dec 2006 04:35:05 +0000 (04:35 +0000)]
simplify-rtx.c (simplify_subreg): Use the correct mode when determining whether a SUBREG of a CONCAT refers to...

* simplify-rtx.c (simplify_subreg): Use the correct mode when
determining whether a SUBREG of a CONCAT refers to the first or
second component.

From-SVN: r120101

17 years agospu.c (spu_builtin_mul_widen_even): Remove unused local variable `d'.
Ben Elliston [Thu, 21 Dec 2006 04:12:06 +0000 (04:12 +0000)]
spu.c (spu_builtin_mul_widen_even): Remove unused local variable `d'.

* config/spu/spu.c (spu_builtin_mul_widen_even): Remove unused
local variable `d'.

From-SVN: r120100

17 years agore PR fortran/25392 (ICEs with -ff2c)
Tobias Schlüter [Thu, 21 Dec 2006 03:04:43 +0000 (04:04 +0100)]
re PR fortran/25392 (ICEs with -ff2c)

PR fortran/25392
fortran/
* trans-stmt.c (gfc_trans_return): Fix comment formatting.
* trans-types.c (gfc_sym_type): Don't return early for functions.
Remove special handling for -ff2c.
(gfc_get_function_type): Add special handling for -ff2c.
* trans-decl.c (gfc_create_function_decl): Fix comment formatting.
(gfc_get_fake_result_decl): Make sure we get the right type for
functions.
(gfc_generate_function_code): Convert type of result variable to
type of function.
testsuite/
* gfortran.dg/f2c_8.f90: New test.

From-SVN: r120099

17 years agocp-demangle.h: Add comment explaining what to do to avoid overrunning string.
Geoffrey Keating [Thu, 21 Dec 2006 01:29:27 +0000 (01:29 +0000)]
cp-demangle.h: Add comment explaining what to do to avoid overrunning string.

* cp-demangle.h: Add comment explaining what to do to avoid
overrunning string.
(d_check_char): New.
(d_next_char): Don't advance past trailing '\0'.
* cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
(d_nested_name): Likewise.
(d_special_name): Likewise.
(d_call_offset): Likewise.
(d_function_type): Likewise.
(d_array_type): Likewise.
(d_pointer_to_member_type): Likewise.
(d_template_param): Likewise.
(d_template_args): Likewise.
(d_template_arg): Likewise.
(d_expr_primary): Likewise.
(d_local_name): Likewise.
(d_substitution): Likewise.
(d_ctor_dtor_name): Use d_advance rather than d_next_char.
* testsuite/test-demangle.c: Include sys/mman.h.
(MAP_ANONYMOUS): Define.
(protect_end): New.
(main): Use protect_end.
* testsuite/demangle-expected: Add testcases for overrunning
the end of the string.

From-SVN: r120097

17 years agoDaily bump.
GCC Administrator [Thu, 21 Dec 2006 00:18:02 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r120095

17 years agotree-dfa.c (add_referenced_var): Walk initializers of non-constant/readonly static...
Jan Hubicka [Wed, 20 Dec 2006 22:45:42 +0000 (23:45 +0100)]
tree-dfa.c (add_referenced_var): Walk initializers of non-constant/readonly static vars.

* tree-dfa.c (add_referenced_var): Walk initializers of
non-constant/readonly static vars.

From-SVN: r120090

17 years agotree-flow-inline.h (gimple_var_anns): New function.
Jan Hubicka [Wed, 20 Dec 2006 22:40:48 +0000 (23:40 +0100)]
tree-flow-inline.h (gimple_var_anns): New function.

* tree-flow-inline.h (gimple_var_anns): New function.
(var_ann): Use hashtable for static functions.
* tree-dfa.c (create_var_ann): Likewise.
* tree-ssa.c (var_ann_eq, var_ann_hash): New functions.
(init_tree_ssa): Initialize var anns.
(delete_tree_ssa): Delete var anns; also clear out gimple_df.
* tree-flow.h (struct static_var_ann_d): New structure.
(gimple_df): Add var_anns.

From-SVN: r120089

17 years agore PR c/30242 (internal error in gcc break compilation)
Carlos O'Donell [Wed, 20 Dec 2006 22:34:14 +0000 (22:34 +0000)]
re PR c/30242 (internal error in gcc break compilation)

gcc/

2006-12-20  Carlos O'Donell  <carlos@codesourcery.com>

PR bootstrap/30242
* gcc/c-incpath.c (add_standard_paths): Only relocate paths that
begin with the configured prefix.

From-SVN: r120088

17 years agoasm-b.c: Check for __ppc64__.
Bill Wendling [Wed, 20 Dec 2006 22:01:01 +0000 (22:01 +0000)]
asm-b.c: Check for __ppc64__.

2006-12-20  Bill Wendling  <wendling@apple.com>

* gcc.dg/asm-b.c: Check for __ppc64__.

From-SVN: r120085

17 years agore PR fortran/30190 ([4.1 only] Bounds check generates wrong code for associated...
Paul Thomas [Wed, 20 Dec 2006 21:10:51 +0000 (21:10 +0000)]
re PR fortran/30190 ([4.1 only] Bounds check generates wrong code for associated(p1(i)%p2,p1(i)%p2))

2006-12-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30190
* trans-array.c (gfc_conv_array_ref): Remove gfc_evaluate_now
from the -fbounds-check branch.

2006-12-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30190
* gfortran.dg/bounds_check_5.f90: New test.

From-SVN: r120084

17 years agore PR rtl-optimization/30213 (Wrong code with optimized memset() (possible bug in...
Jan Hubicka [Wed, 20 Dec 2006 20:46:15 +0000 (21:46 +0100)]
re PR rtl-optimization/30213 (Wrong code with optimized memset() (possible bug in RTL bbro optimizer))

PR target/30213
* i386.c (expand_setmem_epilogue): Fix formating.
(dsmalest_pow2_greater_than): New function.
(ix86_expand_movmem): Improve comments; avoid re-computing of
epilogue size.
(promote_duplicated_reg_to_size): Break out from ...
(expand_setmem): ... this one; reorganize promotion code;
improve comments; avoid recomputation of epilogue size.

From-SVN: r120083

17 years agore PR middle-end/30143 ([4.2 only] OpenMP can produce invalid gimple)
Andrew Pinski [Wed, 20 Dec 2006 17:50:17 +0000 (09:50 -0800)]
re PR middle-end/30143 ([4.2 only] OpenMP can produce invalid gimple)

2006-12-20  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/30143
        * omp-low.c (init_tmp_var): New function.
        (save_tmp_var): New function.
        (lower_omp_1): Use them for VAR_DECL.

2006-12-20  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/30143
        * gcc.dg/gomp/complex-1.c: New testcase.

From-SVN: r120080

17 years agotree-gimple.c (is_gimple_min_invariant): Treat constant vector CONSTRUCTORs as min...
Andrew Pinski [Wed, 20 Dec 2006 17:46:39 +0000 (09:46 -0800)]
tree-gimple.c (is_gimple_min_invariant): Treat constant vector CONSTRUCTORs as min invariants.

2006-12-20  Andrew Pinski  <pinskia@gmail.com>

        * tree-gimple.c (is_gimple_min_invariant): Treat constant vector
        CONSTRUCTORs as min invariants.

From-SVN: r120079

17 years agotrans-expr.c (is_zero_initializer_p): Determine whether a given constant expression...
Roger Sayle [Wed, 20 Dec 2006 17:23:43 +0000 (17:23 +0000)]
trans-expr.c (is_zero_initializer_p): Determine whether a given constant expression is a zero initializer.

* trans-expr.c (is_zero_initializer_p): Determine whether a given
constant expression is a zero initializer.
(gfc_trans_zero_assign): New function to attempt to optimize
"a(:) = 0.0" as a call to __builtin_memset (a, 0, sizeof(a));
(gfc_trans_assignment): Special case array assignments to a
zero initializer constant, using gfc_trans_zero_assign.

* gfortran.dg/array_memset_1.f90: New test case.

From-SVN: r120078

17 years agortlanal.c (struct subreg_info, [...]): New.
Joseph Myers [Wed, 20 Dec 2006 16:25:00 +0000 (16:25 +0000)]
rtlanal.c (struct subreg_info, [...]): New.

* rtlanal.c (struct subreg_info, subreg_get_info, subreg_nregs):
New.
(subreg_regno_offset, subreg_offset_representable_p): Change to
wrappers about subreg_get_info.
(refers_to_regno_p, reg_overlap_mentioned_p): Use subreg_nregs.
* rtl.h (subreg_nregs): Declare.
* doc/tm.texi (HARD_REGNO_NREGS_HAS_PADDING): Update to refer to
subreg_get_info.
* caller-save.c (mark_set_regs, add_stored_regs): Use
subreg_nregs.
* df-scan.c (df_ref_record): Use subreg_nregs.
* flow.c (mark_set_1): Use subreg_nregs.
* postreload.c (move2add_note_store): Use subreg_nregs.
* reload.c (decompose, refers_to_regno_for_reload_p,
reg_overlap_mentioned_for_reload_p): Use subreg_nregs.
* resource.c (update_live_status, mark_referenced_resources,
mark_set_resources): Use subreg_nregs.

From-SVN: r120076

17 years agoloop-unswitch.c (unswitch_loop): Update arguments of duplicate_loop_to_header_edge...
Zdenek Dvorak [Wed, 20 Dec 2006 14:15:53 +0000 (15:15 +0100)]
loop-unswitch.c (unswitch_loop): Update arguments of duplicate_loop_to_header_edge call.

* loop-unswitch.c (unswitch_loop): Update arguments of
duplicate_loop_to_header_edge call.
* tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Ditto.
* loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
Ditto.
* cfgloopmanip.c (loop_version): Ditto.
(duplicate_loop_to_header_edge): Change
type of to_remove to VEC(edge), remove n_to_remove argument.
* tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
Change type of to_remove to VEC(edge), remove n_to_remove argument.
(tree_unroll_loop): Update arguments of
tree_duplicate_loop_to_header_edge call.
* cfghooks.c (cfg_hook_duplicate_loop_to_header_edge):
Change type of to_remove to VEC(edge), remove n_to_remove argument.
* cfghooks.h (struct cfg_hooks): Type of
cfg_hook_duplicate_loop_to_header_edge changed.
(cfg_hook_duplicate_loop_to_header_edge): Declaration changed.
* cfgloop.h (duplicate_loop_to_header_edge): Ditto.
* tree-flow.h (tree_duplicate_loop_to_header_edge): Ditto.

From-SVN: r120074

17 years agospu.md (vec_widen_umult_hi_v8hi): New.
Dorit Nuzman [Wed, 20 Dec 2006 14:07:38 +0000 (14:07 +0000)]
spu.md (vec_widen_umult_hi_v8hi): New.

        * config/spu/spu.md (vec_widen_umult_hi_v8hi): New.
        (vec_widen_umult_lo_v8hi, vec_widen_smult_hi_v8hi): New.
        (vec_widen_smult_lo_v8hi): New.
        * config/spu/spu.c (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Defined.
        (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
        (spu_builtin_mul_widen_even, spu_builtin_mul_widen_odd): New.

From-SVN: r120073

17 years agore PR fortran/29992 ([4.1 only] INTERFACE equivalent to MODULE PROCEDURE?!)
Paul Thomas [Wed, 20 Dec 2006 13:48:06 +0000 (13:48 +0000)]
re PR fortran/29992 ([4.1 only] INTERFACE equivalent to MODULE PROCEDURE?!)

2006-12-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29992
* interface.c (check_sym_interfaces): Module procedures in a
generic must be use associated or contained in the module.
* decl.c (gfc_match_modproc): Set attribute mod_proc.
* gfortran.h (symbol_attribute): Add mod_proc atribute.

PR fortran/30081
* resolve.c (resolve_generic_f, resolve_generic_s): Use
gfc_intrinsic_name to find out if the function is intrinsic
because it does not have to be a generic intrinsic to be
overloaded.

2006-12-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29992
* gfortran.dg/generic_9.f90: New test.

PR fortran/30081
* gfortran.dg/generic_10.f90: New test.

From-SVN: r120072

17 years agocgraph.c: Update overall comment; fix vertical spacing.
Jan Hubicka [Wed, 20 Dec 2006 09:12:55 +0000 (10:12 +0100)]
cgraph.c: Update overall comment; fix vertical spacing.

* cgraph.c: Update overall comment; fix vertical spacing.
* ipa-inline.c (cgraph_decide_inlining): Remove now redundant check.

From-SVN: r120071

17 years agocgraph.h (FOR_EACH_STATIC_VARIABLE, [...]): New macros.
Jan Hubicka [Wed, 20 Dec 2006 09:09:50 +0000 (10:09 +0100)]
cgraph.h (FOR_EACH_STATIC_VARIABLE, [...]): New macros.

* cgraph.h (FOR_EACH_STATIC_VARIABLE, FOR_EACH_STATIC_INITIALIZER): New
macros.
(varpool_first_static_initializer, varpol_next_static_initializer): New
inline functions.
* ipa-reference.c (analyze_variable): Simplify.
(static_execute): Use FOR_EACH_STATIC_INITIALIZER.
* ipa-type-escape.c (type_escape_execute): Use FOR_EACH_STATIC_VARIABLE.

From-SVN: r120070

17 years agore PR tree-optimization/30045 (ICE in nonnull_arg_p with the CHAIN decl)
Andrew Pinski [Wed, 20 Dec 2006 05:00:50 +0000 (21:00 -0800)]
re PR tree-optimization/30045 (ICE in nonnull_arg_p with the CHAIN decl)

2006-12-19  Andrew Pinski  <pinskia@gmail.com>

        PR tree-opt/30045
        * tree-vrp.c (nonnull_arg_p): Treat the static decl as always
        non null.

2006-12-19  Andrew Pinski  <pinskia@gmail.com>

        PR tree-opt/30045
        * gcc.dg/pr30045.c: New test

From-SVN: r120069

17 years ago* gcc.dg/20020312-2.c: Add a case for __SPU__.
Ben Elliston [Wed, 20 Dec 2006 03:45:32 +0000 (03:45 +0000)]
* gcc.dg/20020312-2.c: Add a case for __SPU__.

From-SVN: r120068

17 years ago* doc/invoke.texi (Optimize Options): Typo fix.
Ben Elliston [Wed, 20 Dec 2006 02:49:37 +0000 (02:49 +0000)]
* doc/invoke.texi (Optimize Options): Typo fix.

From-SVN: r120067

17 years agodarwin.c (machopic_select_section): Rewrite.
Eric Christopher [Wed, 20 Dec 2006 00:42:34 +0000 (00:42 +0000)]
darwin.c (machopic_select_section): Rewrite.

2006-12-19  Eric Christopher  <echristo@apple.com>

        * config/darwin.c (machopic_select_section): Rewrite.
        (darwin_text_section): New.
        (darwin_rodata_section): Ditto.
        (darwin_mergeable_string_section): Ditto.
        (darwin_mergeable_constant_section): Ditto.
        * config/darwin-sections.def: Add SECTION_STRINGS for cstring_section.

From-SVN: r120066

17 years agoDaily bump.
GCC Administrator [Wed, 20 Dec 2006 00:18:01 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r120064

17 years agore PR target/29302 (isfinite returns wrong result at -O1)
Eric Christopher [Tue, 19 Dec 2006 20:25:49 +0000 (20:25 +0000)]
re PR target/29302 (isfinite returns wrong result at -O1)

2006-12-19  Eric Christopher  <echristo@apple.com>

        PR target/29302
        * gcc.c-torture/execute/pr29302-1.c: New.

From-SVN: r120058

17 years agore PR fortran/30238 (associated(null-pointer, null-pointer) returns .true.)
Tobias Burnus [Tue, 19 Dec 2006 19:41:35 +0000 (20:41 +0100)]
re PR fortran/30238 (associated(null-pointer, null-pointer) returns .true.)

fortran/
2006-12-19  Tobias Burnus  <burnus@net-b.de>

PR fortran/39238
* trans-intrinsic.c: Check for associated(NULL,NULL).

testsuite/
2006-12-19  Tobias Burnus  <burnus@net-b.de>

PR fortran/39238
* gfortran.dg/associated_1.f90: Add test for associated(NULL,NULL).

From-SVN: r120056

17 years ago* config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL): Add undef.
Steve Ellcey [Tue, 19 Dec 2006 18:18:19 +0000 (18:18 +0000)]
* config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL):  Add undef.

From-SVN: r120054

17 years agore PR fortran/30236 ([4.1 only]alternate-return subroutine in generic interface cause...
Paul Thomas [Tue, 19 Dec 2006 17:02:20 +0000 (17:02 +0000)]
re PR fortran/30236 ([4.1 only]alternate-return subroutine in generic interface causes ice/segfault)

2006-12-19  Paul Thomas <pault@gcc.gnu.org>

PR fortran/30236
* interface.c (compare_interfaces): Handle NULL symbols.
(count_types_test): Count NULL symbols, which correspond to
alternate returns.

(check_interface1): Change final argument from int to bool
in the function and all references.

2006-12-19  Paul Thomas <pault@gcc.gnu.org>

PR fortran/30236
* gfortran.dg/altreturn_3.f90: New test.

* gfortran.dg/char_result_12.f90: Fix comment typos.

From-SVN: r120052

17 years agoconfigure.in: Remove "$build" case for powerpc-*-darwin* since it only affects bootst...
Paolo Bonzini [Tue, 19 Dec 2006 11:28:35 +0000 (11:28 +0000)]
configure.in: Remove "$build" case for powerpc-*-darwin* since it only affects bootstrap and...

2006-12-19  Paolo Bonzini  <bonzini@gnu.org>

* configure.in: Remove "$build" case for powerpc-*-darwin* since
it only affects bootstrap and could be tested on "$host" as well.
* configure: Regenerate.
* config/mh-ppc-darwin: Add to the stage1 cflags here.

From-SVN: r120049

17 years agore PR bootstrap/29544 (Not building with checking in stage1)
Paolo Bonzini [Tue, 19 Dec 2006 11:01:36 +0000 (11:01 +0000)]
re PR bootstrap/29544 (Not building with checking in stage1)

2006-12-19  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/29544
* Makefile.def (flags_to_pass): Add STAGE1_CHECKING.
(bootstrap_stage): Add STAGE1_CHECKING to stage1 configure flags,
move here comment from Makefile.tpl.
* Makefile.tpl: Move some definitions higher in the file.
(STAGE1_CHECKING): New.
* configure.in: Add --enable-stage1-checking.
* configure: Regenerate.
* Makefile.in: Regenerate.

gcc:
2006-12-19  Paolo Bonzini  <bonzini@gnu.org>

* gcc/Makefile.in (STAGE1_CHECKING): Rename to...
(STAGE1_CHECKING_CFLAGS): ... this.

From-SVN: r120048

17 years agoMAINTAINERS: Add myself as build system maintainer.
Paolo Bonzini [Tue, 19 Dec 2006 10:59:36 +0000 (10:59 +0000)]
MAINTAINERS: Add myself as build system maintainer.

2006-12-19  Paolo Bonzini  <bonzini@gnu.org>

* MAINTAINERS: Add myself as build system maintainer.

From-SVN: r120047

17 years agore PR fortran/29779 (vectorizer fortran testcases failing)
Andrew Pinski [Tue, 19 Dec 2006 08:28:46 +0000 (00:28 -0800)]
re PR fortran/29779 (vectorizer fortran testcases failing)

2006-12-18  Andrew Pinski  <pinskia@gmail.com>

        PR target/29779
        * config/rs6000/rs6000.c (altivec_init_builtins): Change to set
        READONLY on __builtin_altivec_mask_for_load instead of adding
        the attribute.

From-SVN: r120045

17 years agore PR target/29302 (isfinite returns wrong result at -O1)
Roger Sayle [Tue, 19 Dec 2006 04:17:11 +0000 (04:17 +0000)]
re PR target/29302 (isfinite returns wrong result at -O1)

2006-12-18  Roger Sayle  <roger@eyesopen.com>
    Eric Christopher  <echristo@apple.com>

PR target/29302
* real.c (real_maxval): Correctly handle IBM extended double format.

Co-Authored-By: Eric Christopher <echristo@apple.com>
From-SVN: r120040