platform/upstream/gcc.git
18 years agofunction.c (temp_slots_at_level, [...]): Use VEC instead of VARRAY.
Kazu Hirata [Tue, 18 Apr 2006 12:32:11 +0000 (12:32 +0000)]
function.c (temp_slots_at_level, [...]): Use VEC instead of VARRAY.

* function.c (temp_slots_at_level, max_slot_level): Use VEC
instead of VARRAY.
* function.h (temp_slot_p): New.
(function): Change the type of x_used_temp_slots to
VEC(temp_slot_p,gc) *.

From-SVN: r113029

18 years ago* config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to flag_strength_reduce.
Nick Clifton [Tue, 18 Apr 2006 10:15:41 +0000 (10:15 +0000)]
* config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to flag_strength_reduce.

From-SVN: r113028

18 years ago* doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
Nick Clifton [Tue, 18 Apr 2006 10:11:30 +0000 (10:11 +0000)]
* doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.

From-SVN: r113027

18 years agore PR target/27117 (SH backend cheats to reload -- disables indexed addressing but...
Paolo Bonzini [Tue, 18 Apr 2006 08:23:39 +0000 (08:23 +0000)]
re PR target/27117 (SH backend cheats to reload -- disables indexed addressing but uses it internally)

2006-04-18  Paolo Bonzini  <bonzini@gnu.org>

        PR target/27117

Partial revert of revision 112637
2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
    Dale Johannesen  <dalej@apple.com>

PR target/19653
* regclass.c (struct reg_pref): Update documentation.
(regclass): Set prefclass to NO_REGS if memory is the best option.
(record_reg_classes): Cope with a prefclass set to NO_REGS.

From-SVN: r113026

18 years agore PR tree-optimization/26821 (ice in varasm.c with certain flags)
Paolo Bonzini [Tue, 18 Apr 2006 08:08:47 +0000 (08:08 +0000)]
re PR tree-optimization/26821 (ice in varasm.c with certain flags)

2006-04-18  Paolo Bonzini  <bonzini@gnu.org>

        PR tree-optimization/26821
        * tree-ssa-math-opts.c (get_constant_one): New.
        (insert_reciprocals): Use it.

From-SVN: r113025

18 years agoDaily bump.
GCC Administrator [Tue, 18 Apr 2006 00:17:34 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r113022

18 years agore PR libgcj/27171 (UTF8 PrintWriter goes haywire)
Tom Tromey [Mon, 17 Apr 2006 21:41:47 +0000 (21:41 +0000)]
re PR libgcj/27171 (UTF8 PrintWriter goes haywire)

PR libgcj/27171:
* testsuite/libjava.lang/pr27171.java: New file.
* testsuite/libjava.lang/pr27171.out: New file.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
true if we've seen a high surrogate.
(write): Handle high surrogates at the end of the stream.
Properly emit isolated low surrogates.

From-SVN: r113013

18 years agodwarf2out.c (free_AT): Delete.
Geoffrey Keating [Mon, 17 Apr 2006 21:27:57 +0000 (21:27 +0000)]
dwarf2out.c (free_AT): Delete.

* dwarf2out.c (free_AT): Delete.
(remove_AT): Update string ref counts.
(remove_child_TAG): Don't call free_die.
(free_die): Delete.
(break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
or DW_TAG_GNU_EINCL.
(prune_unused_types_walk_attribs): Reset string refcounts.
(prune_unused_types_update_strings): New.
(prune_unused_types_prune): Don't make unnecessary stores.  Don't
call free_die.  Do call prune_unused_types_update_strings.
(prune_unused_types): Empty debug_str_hash.

From-SVN: r113012

18 years agostringconst2.java: Print a stack trace in case of failure.
Andreas Tobler [Mon, 17 Apr 2006 21:18:23 +0000 (23:18 +0200)]
stringconst2.java: Print a stack trace in case of failure.

2006-04-17  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
of failure.

From-SVN: r113011

18 years agoPR c++/26114, c++/26115
Janis Johnson [Mon, 17 Apr 2006 19:35:56 +0000 (19:35 +0000)]
PR c++/26114, c++/26115

PR c++/26114, c++/26115
* typeck.c (cxx_mark_addressable): Restore check for extra_warnings.
* class.c (check_field_decls): Ditto.

From-SVN: r113010

18 years agoexpr.c (expand_assignment): Optimize away no-op moves where the source and destinatio...
Roger Sayle [Mon, 17 Apr 2006 16:49:54 +0000 (16:49 +0000)]
expr.c (expand_assignment): Optimize away no-op moves where the source and destination are equal and have...

* expr.c (expand_assignment): Optimize away no-op moves where the
source and destination are equal and have no side-effects.

From-SVN: r113009

18 years ago* init.c (build_offset_ref): Remove superfluous temporary.
Volker Reichelt [Mon, 17 Apr 2006 16:32:03 +0000 (16:32 +0000)]
* init.c (build_offset_ref): Remove superfluous temporary.

From-SVN: r113008

18 years agore PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)
Richard Guenther [Mon, 17 Apr 2006 13:53:19 +0000 (13:53 +0000)]
re PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)

2006-04-17  Richard Guenther  <rguenther@suse.de>

PR target/26826
* reload.c (push_reload): Guard calls to get_secondary_mem
for memory subregs.

From-SVN: r113007

18 years agocgraph.h (cgraph_edge_p): New.
Kazu Hirata [Mon, 17 Apr 2006 12:45:25 +0000 (12:45 +0000)]
cgraph.h (cgraph_edge_p): New.

* cgraph.h (cgraph_edge_p): New.
Update the prototype of cgraph_function_versioning.
* cgraphunit.c (cgraph_copy_node_for_versioning,
cgraph_function_versioning): Use VEC instead of VARRAY.
* ipa-cp.c (ipcp_insert_stage): Likewise.

From-SVN: r113006

18 years agoalias.c (alias_sets): Change the type to VEC(alias_set_entry,gc) *.
Kazu Hirata [Mon, 17 Apr 2006 12:42:37 +0000 (12:42 +0000)]
alias.c (alias_sets): Change the type to VEC(alias_set_entry,gc) *.

* alias.c (alias_sets): Change the type to
VEC(alias_set_entry,gc) *.
(get_alias_set_entry, new_alias_set, record_alias_subset): Use
VEC instead of VARRAY.
(last_alias_set): Remove.

From-SVN: r113005

18 years agoalias.c (reg_base_value, [...]): Change the type to VEC(rtx,gc) *.
Kazu Hirata [Mon, 17 Apr 2006 12:40:57 +0000 (12:40 +0000)]
alias.c (reg_base_value, [...]): Change the type to VEC(rtx,gc) *.

* alias.c (reg_base_value, old_reg_base_value): Change the
type to VEC(rtx,gc) *.
(REG_BASE_VALUE, find_base_value, record_set,
init_alias_analysis): Use VEC instead of VARRAY.

From-SVN: r113004

18 years agore PR target/26961 (ICE simplify_subreg:3813)
Roger Sayle [Mon, 17 Apr 2006 02:38:50 +0000 (02:38 +0000)]
re PR target/26961 (ICE simplify_subreg:3813)

PR target/26961
* fold-const.c (fold_ternary): When converting "A ? B : C" into either
"A op B" or "A op C", we may need to convert A to the type of B and C.

* gcc.dg/fold-cond-1.c: New test case.
* gcc.dg/pr26961-1.c: Likewise.

From-SVN: r113001

18 years agore PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error)
Jerry DeLisle [Mon, 17 Apr 2006 02:37:15 +0000 (02:37 +0000)]
re PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error)

2006-04-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/27138
* gfortran.dg/read_bad_advance.f90: New test.

From-SVN: r113000

18 years agore PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error)
Jerry DeLisle [Mon, 17 Apr 2006 02:33:51 +0000 (02:33 +0000)]
re PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error)

2006-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/27138
* io/list_read.c (eat_line): New function.
(parse_repeat): Use new function and free_saved.
(read_logical): Same.
(read_integer): Use new function.
(parse_real): Use nml_bad_return and new function.
(read_complex): Use new function and free_saved.
(read_real): Same.

From-SVN: r112999

18 years agotarget.h (struct gcc_target): Add mode_rep_extended.
Adam Nemet [Mon, 17 Apr 2006 01:59:41 +0000 (01:59 +0000)]
target.h (struct gcc_target): Add mode_rep_extended.

* target.h (struct gcc_target): Add mode_rep_extended.
* rtlanal.c (num_sign_bit_copies_in_rep): New global.
(init_num_sign_bit_copies_in_rep): Initialize it using
mode_rep_extended.
(truncate_to_mode): Use it.
(init_rtlanal): Call init_num_sign_bit_copies_in_rep.
* targhooks.h (default_mode_rep_extended): Declare it.
* targhooks.c (default_mode_rep_extended): Define it.
* target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
default_mode_rep_extended.
(TARGET_INITIALIZER): Include it.
* doc/tm.texi (Misc): Document it.
* config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
(mips_truncated_to_mode): New function.

From-SVN: r112998

18 years agoDaily bump.
GCC Administrator [Mon, 17 Apr 2006 00:17:12 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112995

18 years agore PR middle-end/25474 (Extra load for some FP code)
Roger Sayle [Sun, 16 Apr 2006 23:33:51 +0000 (23:33 +0000)]
re PR middle-end/25474 (Extra load for some FP code)

PR middle-end/25474
* expr.c (compress_float_constant): Copy the narrow constant into
a new pseudo before extending it to its final width.

From-SVN: r112991

18 years agore PR target/24076 ((vector char){x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x...
Roger Sayle [Sun, 16 Apr 2006 21:46:59 +0000 (21:46 +0000)]
re PR target/24076 ((vector char){x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x} code gen is not that good)

2006-04-15  Roger Sayle  <roger@eyesopen.com>
    Andrew Pinski  <pinskia@gcc.gnu.org>
    Dale Johannesen  <dalej@apple.com>

PR target/24076
* config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
special case code to implement V8HImode and V16QImode with SSE2.

* gcc.target/i386/vecinit-3.c: New testcase.
* gcc.target/i386/vecinit-4.c: Likewise.
* gcc.target/i386/sse-18.c: Likewise.
* gcc.target/i386/sse-19.c: Likewise.

Co-Authored-By: Andrew Pinski <pinskia@gcc.gnu.org>
Co-Authored-By: Dale Johannesen <dalej@apple.com>
From-SVN: r112990

18 years agore PR fortran/26017 (allocate (a(1:-1)) should yield zero-sized array)
Thomas Koenig [Sun, 16 Apr 2006 20:29:24 +0000 (20:29 +0000)]
re PR fortran/26017 (allocate (a(1:-1)) should yield zero-sized array)

2006-04-16  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/26017
* trans-array.c(gfc_array_init_size):  Introduce or_expr
which is true if the size along any dimension
is negative.  Create a temporary variable with base
name size.  If or_expr is true, set the temporary to 0,
to the normal size otherwise.

2006-04-16  Thomas Koenig  <Thomas.Koenig@online.de>

        * gfortran.dg/allocate_zerosize_1.f90:  New test.

From-SVN: r112988

18 years agore PR c++/26365 (ICE in finish_class_member_access_expr, at cp/typeck.c)
Mark Mitchell [Sun, 16 Apr 2006 18:12:41 +0000 (18:12 +0000)]
re PR c++/26365 (ICE in finish_class_member_access_expr, at cp/typeck.c)

PR c++/26365
* typeck.c (finish_class_member_access_expr): Robustify
PR c++/26365
* g++.dg/template/crash45.C: New test.

From-SVN: r112986

18 years agoPR libstdc++/6702 (again)
Paolo Carlini [Sun, 16 Apr 2006 09:06:46 +0000 (09:06 +0000)]
PR libstdc++/6702 (again)

2006-04-16  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/6702 (again)
* acinclude.m4 (GLIBCXX_ENABLE_C99): Don't check non-C99
wchar_t functions...
(GLIBCXX_ENABLE_WCHAR_T): ... do that here.
* configure.ac: Adjust order of checks.
* configure: Regenerate.

From-SVN: r112983

18 years agoi386.c (ix86_va_start): Ensure all integer constant trees are constructed with a...
Roger Sayle [Sun, 16 Apr 2006 04:01:25 +0000 (04:01 +0000)]
i386.c (ix86_va_start): Ensure all integer constant trees are constructed with a suitable tree type.

* config/i386/i386.c (ix86_va_start): Ensure all integer constant
trees are constructed with a suitable tree type.

From-SVN: r112982

18 years agore PR fortran/26822 (Scalarization of non-elemental intrinsic: __logical_4_l4)
Paul Thomas [Sun, 16 Apr 2006 03:45:24 +0000 (03:45 +0000)]
re PR fortran/26822 (Scalarization of non-elemental intrinsic: __logical_4_l4)

2006-04-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/26822
* intrinsic.c (add_functions): Mark LOGICAL as elemental.

PR fortran/26787
* expr.c (gfc_check_assign): Extend scope of error to include
assignments to a procedure in the main program or, from a
module or internal procedure that is not that represented by
the lhs symbol. Use VARIABLE rather than l-value in message.

PR fortran/27096
* trans-array.c (gfc_trans_deferred_array): If the backend_decl
is not a descriptor, dereference and then test and use the type.

PR fortran/25597
* trans-decl.c (gfc_trans_deferred_vars): Check if an array
result, is also automatic character length.  If so, process
the character length.

PR fortran/18803
PR fortran/25669
PR fortran/26834
* trans_intrinsic.c (gfc_walk_intrinsic_bound): Set
data.info.dimen for bound intrinsics.
* trans_array.c (gfc_conv_ss_startstride): Pick out LBOUND and
UBOUND intrinsics and supply their shape information to the ss
and the loop.

PR fortran/27124
* trans_expr.c (gfc_trans_function_call):  Add a new block, post,
in to which all the argument post blocks are put.  Add this block
to se->pre after a byref call or to se->post, otherwise.

2006-04-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/26787
* gfortran.dg/proc_assign_1.f90: New test.
* gfortran.dg/procedure_lvalue.f90: Change message.
* gfortran.dg/namelist_4.f90: Add new error.

PR fortran/27096
* gfortran.dg/auto_pointer_array_result_1.f90

PR fortran/27089
* gfortran.dg/specification_type_resolution_1.f90

PR fortran/18803
PR fortran/25669
PR fortran/26834
* gfortran.dg/bounds_temporaries_1.f90: New test.

PR fortran/27124
* gfortran.dg/array_return_value_1.f90: New test.

From-SVN: r112981

18 years agotree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
Roger Sayle [Sun, 16 Apr 2006 02:38:44 +0000 (02:38 +0000)]
tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.

* tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
(integer_onep): Likewise.
(integer_all_onesp): Likewise.
(integer_pow2p): Likewise.
(integer_nonzerop): Likewise.
(real_zerop): Likewise.
(real_onep): Likewise.
(real_twop): Likewise.
(real_minus_onep): Likewise.
(int_size_in_bytes): Likewise.
(host_integerp): Likewise.

From-SVN: r112980

18 years ago* tree-ssa-structalias.h (alias_info): Remove num_references.
Kazu Hirata [Sun, 16 Apr 2006 00:55:20 +0000 (00:55 +0000)]
* tree-ssa-structalias.h (alias_info): Remove num_references.

From-SVN: r112979

18 years agoDaily bump.
GCC Administrator [Sun, 16 Apr 2006 00:17:06 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112977

18 years ago* cp/call.c: Fix comment typos.
Kazu Hirata [Sat, 15 Apr 2006 21:48:54 +0000 (21:48 +0000)]
* cp/call.c: Fix comment typos.

From-SVN: r112972

18 years agocfgcleanup.c, [...]: Fix comment typos.
Kazu Hirata [Sat, 15 Apr 2006 21:45:06 +0000 (21:45 +0000)]
cfgcleanup.c, [...]: Fix comment typos.

* cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
jump.c, mips-tfile.c, omp-low.c, sched-int.h,
tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.

From-SVN: r112971

18 years agopa.md (output_bb patterns): Shorten long branch alternatives by 4.
John David Anglin [Sat, 15 Apr 2006 15:53:33 +0000 (15:53 +0000)]
pa.md (output_bb patterns): Shorten long branch alternatives by 4.

* pa.md (output_bb patterns): Shorten long branch alternatives by 4.
(output_bvb patterns): Likewise.
* pa.c (output_bb): Use 'bb' insn for long branch case.
(output_bvb): Likewise use '{bvb|bb}' for long branch case.
(output_dbra): Use '{comb|cmpb}' for long branch case for alternative
1.  Correct length operand for alternatives 1 and 2.
(output_movb): Use '{comb|cmpb}' for long branch case for alternatives
1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.

From-SVN: r112970

18 years agoMake-lang.in (cp/pt.o): Depend on vecprim.h.
Kazu Hirata [Sat, 15 Apr 2006 12:40:14 +0000 (12:40 +0000)]
Make-lang.in (cp/pt.o): Depend on vecprim.h.

* Make-lang.in (cp/pt.o): Depend on vecprim.h.
* pt.c: Include vecprim.h.
(inline_parm_levels): Change the type to VEC(int,heap) *.
(inline_parm_levels_used): Remove.
(maybe_begin_member_template_processing,
maybe_end_member_template_processing): Use VEC instead of
VARRAY.

From-SVN: r112969

18 years agotrans-io.c (set_string): Use fold_build2 and build_int_cst instead of build2 and...
Roger Sayle [Sat, 15 Apr 2006 05:50:42 +0000 (05:50 +0000)]
trans-io.c (set_string): Use fold_build2 and build_int_cst instead of build2 and convert to construct "x...

* trans-io.c (set_string): Use fold_build2 and build_int_cst instead
of build2 and convert to construct "x < 0" rather than "x <= -1".

From-SVN: r112968

18 years agore PR testsuite/25336 (Identical tests: gfortran.dg/g77/20030115-1.f gfortran.dg...
Jerry DeLisle [Sat, 15 Apr 2006 04:51:39 +0000 (04:51 +0000)]
re PR testsuite/25336 (Identical tests: gfortran.dg/g77/20030115-1.f gfortran.dg/g77/pr9258.f)

2006-04-15  Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/25336
* gfortran/dg/g77/20030115-1.f: Delete duplicate test.

From-SVN: r112967

18 years agotree-cfg.c (make_edges, [...]): Reinstate RTH's changes from r112935 that were accide...
Roger Sayle [Sat, 15 Apr 2006 03:24:23 +0000 (03:24 +0000)]
tree-cfg.c (make_edges, [...]): Reinstate RTH's changes from r112935 that were accidentally reverted by r112959.

* tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
were accidentally reverted by r112959.

From-SVN: r112966

18 years agoDaily bump.
GCC Administrator [Sat, 15 Apr 2006 00:17:11 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112964

18 years agore PR middle-end/26823 (ICE with OpenMP in add_stmt_to_eh_region_fn, at tree-eh.c...
Jakub Jelinek [Fri, 14 Apr 2006 22:24:59 +0000 (00:24 +0200)]
re PR middle-end/26823 (ICE with OpenMP in add_stmt_to_eh_region_fn, at tree-eh.c:100)

PR middle-end/26823
* except.h (eh_region_outermost): New prototype.
* except.c (eh_region_outermost): New function.
* tree-cfg.c (find_outermost_region_in_block): Use it.

* g++.dg/gomp/pr26823-1.C: New test.
* g++.dg/gomp/pr26823-2.C: New test.

From-SVN: r112959

18 years agore PR libstdc++/27162 (search_n uses == when it should use binary_pred)
Douglas Gregor [Fri, 14 Apr 2006 17:35:06 +0000 (17:35 +0000)]
re PR libstdc++/27162 (search_n uses == when it should use binary_pred)

2006-04-14  Douglas Gregor  <dgregor@cs.indiana.edu>

PR libstdc++/27162
* include/bits/stl_algo.h (__search_n(,,,, _BinaryPredicate,
std::forward_iterator_tag)): Use __binary_pred, not ==.

From-SVN: r112957

18 years agolocal-alloc.c (rest_of_handle_local_alloc): Use VEC instead of VARRAY.
Kazu Hirata [Fri, 14 Apr 2006 14:31:32 +0000 (14:31 +0000)]
local-alloc.c (rest_of_handle_local_alloc): Use VEC instead of VARRAY.

* local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
of VARRAY.
* reload1.c (reg_equiv_memory_loc_varray): Rename to
reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
(init_reload, reload): Use VEC instead of VARRAY.
* reload.h: Update the prototype for
reg_equiv_memory_loc_varray.

From-SVN: r112955

18 years agosparc.c (emit_and_preserve): Allocate space for the register save area.
Alexey Starovoytov [Fri, 14 Apr 2006 07:01:38 +0000 (07:01 +0000)]
sparc.c (emit_and_preserve): Allocate space for the register save area.

* config/sparc/sparc.c (emit_and_preserve): Allocate space for the
register save area.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r112950

18 years agore PR middle-end/27134 (ICE with floor and -ffast-math)
Uros Bizjak [Fri, 14 Apr 2006 05:01:18 +0000 (07:01 +0200)]
re PR middle-end/27134 (ICE with floor and -ffast-math)

PR middle-end/27134
* builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
to expand fallback builtin function call.

testsuite/ChangeLog:

        PR middle-end/27134
        * gcc.dg/pr27314.c: New test.

From-SVN: r112949

18 years agore PR middle-end/27095 (O2 produces duplicate code)
Alan Modra [Fri, 14 Apr 2006 03:20:21 +0000 (03:20 +0000)]
re PR middle-end/27095 (O2 produces duplicate code)

PR middle-end/27095
* builtins.c: (expand_builtin_memset): Stabilize args before expansion
and emit libcall here in case the builtin fails.
(expand_builtin_strcmp): Always emit the libcall here on failure.

From-SVN: r112948

18 years agobasic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
Kazu Hirata [Fri, 14 Apr 2006 02:28:46 +0000 (02:28 +0000)]
basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.

* basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
* flow.c (reg_n_info): Change the type to
VEC(reg_info_p,heap) *.
* regclass.c (allocate_reg_info, free_reg_info): Use VEC
instead of VARRAY.
* regs.h (reg_info_p): New.
(REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
instead of VARRAY.

From-SVN: r112942

18 years agoDaily bump.
GCC Administrator [Fri, 14 Apr 2006 00:17:20 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112940

18 years agoparams.def (PARAM_MAX_SCHED_READY_INSNS): New parameter, defaulting to 100.
Eric Botcazou [Fri, 14 Apr 2006 00:07:48 +0000 (00:07 +0000)]
params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter, defaulting to 100.

* params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
defaulting to 100.
* params.h (MAX_SCHED_READY_INSNS): New macro.
* haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
past MAX_SCHED_READY_INSNS during the first scheduling pass.
(schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
the ready list for 1 cycle during the first scheduling pass.
* doc/invoke.texi (--param): New parameter max-sched-ready-insns.

From-SVN: r112936

18 years agore PR libgomp/26651 ([gomp] #omp for ordered leaks memory)
Richard Henderson [Thu, 13 Apr 2006 23:44:25 +0000 (16:44 -0700)]
re PR libgomp/26651 ([gomp] #omp for ordered leaks memory)

PR 26651
* gimple-low.c (lower_omp_directive): Remove dead code.
(lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
* gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
* omp-low.c (struct omp_region): Move to tree-flow.h.
(root_omp_region): Export.
(omp_regions, lookup_omp_region): Remove.
(determine_parallel_type): Update for struct omp_region changes.
(dump_omp_region): Dump regions with block numbers.
(new_omp_region): Take type and block instead of stmt; malloc
instead of ggc.
(free_omp_region_1, free_omp_regions): New.
(expand_parallel_call): Take entry_stmt as argument; update for
changes to omp_region.
(remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
(remove_exit_barriers): New.
(expand_omp_parallel): Update for struct omp_region changes.
(expand_omp_synch): Likewise.
(expand_omp): Likewise.
(expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
(expand_omp_for_static_chunk): Likewise.
(expand_omp_for): Likewise.
(expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
(expand_omp_sections): Similarly, with GOMP_sections_end.
(expand_omp_single): New.
(build_omp_regions_1): Update for OMP_CONTINUE.
(execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
(lower_omp_sections): Expand with OMP_CONTINUE, do not collect
OMP_SECTIONS_SECTIONS.
(lower_omp_single_simple): Don't emit barrier here.
(lower_omp_single_copy): Likewise.
(lower_omp_single): Fix bindings, and lower to straightline now.
(lower_omp_master, lower_omp_ordered): Likewise.
(lower_omp_critical): Likewise.
(lower_omp_for): Likewise.  Emit OMP_CONTINUE.
* tree-cfg.c (make_edges): Collect an omp_region tree, use it for
omp edges, free it afterward.
(make_omp_sections_edges): Remove.
(is_ctrl_altering_stmt): Don't bother checking flag_openmp.
(move_stmt_r): Handle OMP_CONTINUE.
* tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
statement pointers to basic blocks.  Add type member.
(root_omp_region, new_omp_region, free_omp_regions): Declare.
* tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
* tree-inline.c (estimate_num_insns_1): Likewise.
* tree-pretty-print.c (dump_generic_node): Likewise.
* tree-ssa-operands.c (get_expr_operands): Likewise.
* tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
(OMP_RETURN): Rename from OMP_RETURN_EXPR.
(OMP_CONTINUE): New.
* tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
(OMP_SECTIONS_SECTIONS): Remove.
(OMP_SECTION_LAST): New.
(OMP_RETURN_NOWAIT): New.
fortran/
        * trans-openmp.c (gfc_trans_omp_sections): Adjust for changed
        number of operands to OMP_SECTIONS.
testsuite/
        * g++.dg/gomp/block-0.C: Update expected matches.

From-SVN: r112935

18 years agotarget-supports.exp (check_effective_target_int32plus): New.
DJ Delorie [Thu, 13 Apr 2006 23:14:25 +0000 (19:14 -0400)]
target-supports.exp (check_effective_target_int32plus): New.

* lib/target-supports.exp (check_effective_target_int32plus): New.
(check_effective_target_ptr32plus): New.
(check_effective_target_size32plus): New.
(check_effective_target_int16): New.
(check_profiling_available): Add m32c to the list of unsupported targets.

* gcc.c-torture/compile/20000804-1.c: Skip m32c also.
* gcc.c-torture/compile/20001226-1.c: Skip m32c due to small
memory size.
* gcc.c-torture/compile/20010327-1.c: Skip m32c due to non-SI
pointers.
* gcc.c-torture/compile/20020604-1.c: Skip m32c due to small
size_t.
* gcc.c-torture/compile/20050303-1.c: Require >=32 bit integers
and size_t.
* gcc.c-torture/compile/980506-1.c: Require >=32 bit size_t.
* gcc.c-torture/execute/20020404-1.x: Check for any 16 bit target,
not just xstormy16.  Skip m32c due to weird pointer size.
* gcc.c-torture/execute/20021024-1.x: Check for any 16 bit target,
not just xstormy16.
* gcc.c-torture/execute/shiftdi.x: Check for any 16 bit target,
not just xstormy16.
* gcc.dg/20020312-2.c: Add m32c support.
* gcc.dg/20040622-2.c: Require >=32 bit pointers.
* gcc.dg/20050321-1.c: XFail m32c due to incorrect malloc prototype
in test.
* gcc.dg/20050321-2.c: Require >=32 bit integers.
* gcc.dg/asm-1.c: Skip if int and short are the same size.
* gcc.dg/fold-mod-1.c: Require >=32 bit integers.
* gcc.dg/fold-overflow-1.c: Skip m32c due to small const types in asm.
* gcc.dg/format/bitfld-1.c: Require >=32 bit integers due to printf formats
* gcc.dg/init-string-2.c: Require >=32 bit integers.
* gcc.dg/max-1.c: Skip m32c in r8c or m16c mode due to small pointers.
* gcc.dg/noncompile/920923-1.c: Skip small-int message for int16 hosts.
* gcc.dg/pch/struct-1.c: Require >= 32 bit integers.
* gcc.dg/pr14796-2.c: Require >=32 bit integers.
* gcc.dg/pr17112-1.c: Require >=32 bit integers.
* gcc.dg/pr18241-1.c: XFail m32c due to incorrect memset prototype
in test.
* gcc.dg/pr18241-2.c: XFail m32c due to incorrect memset prototype
in test.
* gcc.dg/pr19340.c: Skip m32c due to lack of scheduling.
* gcc.dg/pr23049.c: Require >=32 bit integers.
* gcc.dg/torture/pr26565.c: Skip m32c as everything is already packed.
* gcc.dg/torture/pr26587.c: Require >=32 bit integers.
* gcc.dg/torture/pr26630.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/loop-10.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/loop-2.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/loop-4.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/ltrans-1.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/ltrans-2.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/ltrans-3.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/ltrans-4.c: Require >=32 bit size_t.
* gcc.dg/tree-ssa/pr14341.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/pr23382.c: XFail m32c due to incorrect malloc
prototype in test.
* gcc.dg/tree-ssa/pr24627.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/pr26180.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/vrp14.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/vrp21.c: Require >=32 bit integers.
* gcc.dg/tree-ssa/vrp22.c: Require >=32 bit integers.

* gcc.c-torture/execute/20040629-1.x: New.  Require >16 bit integers.
* gcc.c-torture/execute/20040703-1.x: Likewise.
* gcc.c-torture/execute/20040705-1.x: Likewise.
* gcc.c-torture/execute/20040705-2.x: Likewise.
* gcc.c-torture/execute/20040709-1.x: Likewise.
* gcc.c-torture/execute/20040709-2.x: Likewise.
* gcc.c-torture/execute/20040811-1.x: Likewise.
* gcc.c-torture/execute/20050316-1.x: Likewise.
* gcc.c-torture/execute/bitfld-4.x: Likewise.
* gcc.c-torture/execute/pr19689.x: Likewise.
* gcc.c-torture/execute/pr7284-1.x: Likewise.
* gcc.c-torture/execute/usmul.x: Likewise.
* gcc.c-torture/execute/vrp-5.x: Likewise.
* gcc.c-torture/execute/vrp-6.x: Likewise.
* gcc.dg/debug/20041023-1.s: Likewise.

From-SVN: r112934

18 years agofold-const.c (native_encode_vector, [...]): Correct obvious mistakes in the previous...
Roger Sayle [Thu, 13 Apr 2006 21:31:00 +0000 (21:31 +0000)]
fold-const.c (native_encode_vector, [...]): Correct obvious mistakes in the previous check-in.

* fold-const.c (native_encode_vector, native_interpret_real):
Correct obvious mistakes in the previous check-in.

From-SVN: r112930

18 years agofold-const.c (native_encode_expr): New function to encode the target representation...
Roger Sayle [Thu, 13 Apr 2006 21:10:31 +0000 (21:10 +0000)]
fold-const.c (native_encode_expr): New function to encode the target representation of an INTEGER_CST...

* fold-const.c (native_encode_expr): New function to encode
the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
or VECTOR_CST into a specified buffer.
(native_encode_int): New function.
(native_encode_real): New function.
(native_encode_complex): New function.
(native_encode_vector): New function.
(native_interpret_expr): Inverse of native_encode_expr to convert
a target representation into an INTEGER_CST, REAL_CST etc...
(native_interpret_int): New function.
(native_interpret_real): New function.
(native_interpret_complex): New function.
(native_interpret_vector): New function.
(fold_view_convert_expr): New function to constant fold/evaluate
a VIEW_CONVERT_EXPR of a suitable constant expression.
(fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
Change call of build1 to fold_build1 when constructing a
VIEW_CONVERT_EXPR.

* gcc.target/i386/20050113-1.c: Tweak testcase to reflect that casts
of integers to a vector types are now constant expressions in C.
* gcc.dg/vect/vect-fold-1.c: New test case.

From-SVN: r112927

18 years agore PR libgcj/26522 (gcc-4.1.0-RC{1,2} install headers into a top-level (root) /include)
Tom Tromey [Thu, 13 Apr 2006 21:04:04 +0000 (21:04 +0000)]
re PR libgcj/26522 (gcc-4.1.0-RC{1,2} install headers into a top-level (root) /include)

PR libgcj/26522:
* Makefile.in: Rebuilt.
* Makefile.am (libsubdir): New variable.

From-SVN: r112925

18 years agore PR target/27006 (Invalid altivec constant loading code)
Paolo Bonzini [Thu, 13 Apr 2006 20:26:59 +0000 (20:26 +0000)]
re PR target/27006 (Invalid altivec constant loading code)

2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
    Ulrich Weigand  <uweigand@de.ibm.com>

PR target/27006
* config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
to be even.

PR target/27006
* gcc.dg/vmx/pr27006.c: New testcase.

Co-Authored-By: Ulrich Weigand <uweigand@de.ibm.com>
From-SVN: r112923

18 years agore PR fortran/26766 ([F2003] Recursive I/O still (again) broken)
Jerry DeLisle [Thu, 13 Apr 2006 06:30:04 +0000 (06:30 +0000)]
re PR fortran/26766 ([F2003] Recursive I/O still (again) broken)

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

PR libgfortran/26766
* gfortran.dg/write_recursive.f90: New test.

From-SVN: r112915

18 years agore PR fortran/26766 ([F2003] Recursive I/O still (again) broken)
Jerry DeLisle [Thu, 13 Apr 2006 06:24:58 +0000 (06:24 +0000)]
re PR fortran/26766 ([F2003] Recursive I/O still (again) broken)

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

PR libgfortran/26766
* io/io.h: Add bit to identify associated unit as internal.
* io/unit.c (get_external_unit): Renamed the find_unit_1 function to
reflect the external unit functionality vs internal unit.
(get_internal_unit): New function to allocate and initialize an internal
unit structure.
(get_unit): Use get_internal_unit and get_external_unit.
(is_internal_unit): Revised to use new bit added in io.h.
* io/transfer.c (data_transfer_init): Fix line width.
(st_read_done): Free memory allocated for internal unit.
(st_write_done): Add test to only flush and truncate when not an
internal unit.  Free memory allocated for internal unit.

From-SVN: r112914

18 years agore PR target/26459 (gcc fails to build on powerpc e500-double targets)
Alan Modra [Thu, 13 Apr 2006 05:10:00 +0000 (05:10 +0000)]
re PR target/26459 (gcc fails to build on powerpc e500-double targets)

PR target/26459
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
optimize to lo_sum for DFmode if !TARGET_FPRS.

From-SVN: r112912

18 years agoDaily bump.
GCC Administrator [Thu, 13 Apr 2006 00:17:12 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112909

18 years agohpux32.S: Correct unwind offset calculation for ffi_closure_pa32.
Andreas Tobler [Wed, 12 Apr 2006 22:56:19 +0000 (00:56 +0200)]
hpux32.S: Correct unwind offset calculation for ffi_closure_pa32.

2006-04-13  Andreas Tobler  <a.tobler@schweiz.ch>

* src/pa/hpux32.S: Correct unwind offset calculation for
ffi_closure_pa32.
* src/pa/linux.S: Likewise.

From-SVN: r112904

18 years agotree-ssa-alias.c (set_initial_properties, [...]): Use VEC instead of VARRAY.
Kazu Hirata [Wed, 12 Apr 2006 22:55:28 +0000 (22:55 +0000)]
tree-ssa-alias.c (set_initial_properties, [...]): Use VEC instead of VARRAY.

* tree-ssa-alias.c (set_initial_properties, init_alias_info,
delete_alias_info, compute_flow_sensitive_aliasing,
group_aliases): Use VEC instead of VARRAY.
* tree-ssa-structalias.c (update_alias_info): Likewise.
* tree-ssa-structalias.h (alias_info): Change the type of
processed_ptrs to VEC(tree,heap) *.

From-SVN: r112903

18 years agoFix IA-64 problems with denorms getting clobbered by type conversions.
James E Wilson [Wed, 12 Apr 2006 22:10:49 +0000 (15:10 -0700)]
Fix IA-64 problems with denorms getting clobbered by type conversions.

PR libgcj/26483
* src/ia64/ffi.c (stf_spill, ldf_fill): Rewrite as macros.
(hfa_type_load): Call stf_spill.
(hfa_type_store): Call ldf_fill.
(ffi_call): Adjust calls to above routines.  Add local temps for
macro result.

From-SVN: r112900

18 years agore PR target/27060 (divide libcall size has increased)
J"orn Rennecke [Wed, 12 Apr 2006 20:09:41 +0000 (20:09 +0000)]
re PR target/27060 (divide libcall size has increased)

2006-04-12  J"orn Rennecke <joern.rennecke@st.com>

PR target/27060
        * config/sh/lib1funcs.h: New file, broken out of:
        * config/sh/lib1funcs.asm.
        * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
New macros.
* config/sh/lib1funcs.asm (udivsi3_i4): Use them.
        * config/sh/lib1funcs-Os-4-200.asm: New file.
* config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
* config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
(EXTRA_MULTILIB_PARTS): Include it.
($(T)sdivsi3_i4i-Os-4-200.o): New rule.
($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
* config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
* config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
TARGET_SH2.

From-SVN: r112898

18 years agore PR libgcj/23829 (FreeBSD 5 support for libjava)
NAKATA Maho [Wed, 12 Apr 2006 19:57:02 +0000 (19:57 +0000)]
re PR libgcj/23829 (FreeBSD 5 support for libjava)

PR libgcj/23829
* configure.ac: Link against -lpthread rather than -lc_r on
FreeBSD 5 and above.
* configure: Regenerate.

From-SVN: r112897

18 years agoMakefile.in (GTFILES): Move functions.h after tree.h.
Kazu Hirata [Wed, 12 Apr 2006 17:20:22 +0000 (17:20 +0000)]
Makefile.in (GTFILES): Move functions.h after tree.h.

* Makefile.in (GTFILES): Move functions.h after tree.h.
* function.c (reset_block_changes, record_block_change,
check_block_change, free_block_changes): Use VEC instead of
VARRAY.
* function.h (function): Change the type of
ib_boundaries_block to VEC(tree,gc) *.
* tree-inline.c (copy_cfg_body): Initialize
ib_boundaries_block to NULL instead of (varray_type) 0.

From-SVN: r112894

18 years agoMakefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
Kazu Hirata [Wed, 12 Apr 2006 17:19:23 +0000 (17:19 +0000)]
Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.

* Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
* tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
tpa_compact, root_var_init, type_var_init): Use VEC instead of
VARRAY.
* tree-ssa-live.h: Include vecprim.h.
(tree_partition_associator_d): Change the type of
first_partition to VEC(int,heap) *.
(tpa_first_partition): Use VEC instead of VARRAY.

From-SVN: r112893

18 years agoparser.c (cp_parser_init_declarator): Initialize local variables aggressively.
Mark Mitchell [Wed, 12 Apr 2006 16:58:24 +0000 (16:58 +0000)]
parser.c (cp_parser_init_declarator): Initialize local variables aggressively.

* parser.c (cp_parser_init_declarator): Initialize local variables
aggressively.

From-SVN: r112891

18 years agoparser.c (cp_parser_init_declarator): Initialise is_parenthesized_init to false to...
Roger Sayle [Wed, 12 Apr 2006 16:26:58 +0000 (16:26 +0000)]
parser.c (cp_parser_init_declarator): Initialise is_parenthesized_init to false to avoid compiler warning.

* parser.c (cp_parser_init_declarator): Initialise
is_parenthesized_init to false to avoid compiler warning.

From-SVN: r112889

18 years agoexpr.c (emit_group_store): Correct operand order in call to subreg_lowpart_offset.
Roger Sayle [Wed, 12 Apr 2006 13:46:19 +0000 (13:46 +0000)]
expr.c (emit_group_store): Correct operand order in call to subreg_lowpart_offset.

* expr.c (emit_group_store): Correct operand order in call to
subreg_lowpart_offset.  Always create paradoxical SUBREGs with
a SUBREG_BYTE of zero.

From-SVN: r112887

18 years agoprofile.c (compute_branch_probabilities): Remove code encapsulated in !ir_type ()...
Richard Guenther [Wed, 12 Apr 2006 07:51:18 +0000 (07:51 +0000)]
profile.c (compute_branch_probabilities): Remove code encapsulated in !ir_type ()...

2006-04-12  Richard Guenther  <rguenther@suse.de>

* profile.c (compute_branch_probabilities): Remove code
encapsulated in !ir_type (), which are remanents of the
removed RTL profiling code.
* rtl-profile.c: Remove.

From-SVN: r112884

18 years agopex-common.c (pex_input_file, [...]): New functions.
Jim Blandy [Wed, 12 Apr 2006 06:29:21 +0000 (06:29 +0000)]
pex-common.c (pex_input_file, [...]): New functions.

src/libiberty/ChangeLog:
2006-03-29  Jim Blandy  <jimb@codesourcery.com>

* pex-common.c (pex_input_file, pex_input_pipe): New functions.
(pex_init_common): Initialize obj->input_file.
(pex_run): Close any file opened by pex_input_file.
* pexecute.txh (pex_input_file, pex_input_pipe): New docs.
* pex-common.h (struct pex_obj): New field input_file.
(struct pex_funcs): New function ptr fdopenw.
* pex-unix.c (pex_unix_fdopenw): New function.
(funcs): List it as our fdopenw function.
* pex-win32.c (pex_win32_fdopenw): New function.
(funcs): List it as our fdopenw function.
* pex-djgpp.c (funcs): Leave fdopenw null.
* pex-msdos (funcs): Same.
* functions.texi: Regenerated.

src/include/ChangeLog:
2006-04-10  Jim Blandy  <jimb@codesourcery.com>

* libiberty.h (pex_input_file, pex_input_pipe): New declarations.

From-SVN: r112883

18 years agopex-common.c (temp_file): New function, containing guts of pex-style temporary file...
Jim Blandy [Wed, 12 Apr 2006 06:24:40 +0000 (06:24 +0000)]
pex-common.c (temp_file): New function, containing guts of pex-style temporary file name generation.

2006-04-10  Jim Blandy  <jimb@codesourcery.com>

* pex-common.c (temp_file): New function, containing guts of
pex-style temporary file name generation.
(pex_run): Use it.

From-SVN: r112882

18 years agors6000.c (rs6000_mixed_function_arg): Update magic NULL_RTX comment.
Alan Modra [Wed, 12 Apr 2006 01:26:23 +0000 (01:26 +0000)]
rs6000.c (rs6000_mixed_function_arg): Update magic NULL_RTX comment.

* config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
magic NULL_RTX comment.
(function_arg): Store entire fp arg to mem if any part should go
on stack.
(rs6000_arg_partial_bytes): Adjust for above change.

From-SVN: r112880

18 years agoDaily bump.
GCC Administrator [Wed, 12 Apr 2006 00:17:11 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112876

18 years agodwarf2out.c (output_call_frame_info): Create debug_frame_section if it hasn't been...
Roger Sayle [Tue, 11 Apr 2006 23:53:39 +0000 (23:53 +0000)]
dwarf2out.c (output_call_frame_info): Create debug_frame_section if it hasn't been initialized by dwarf2out_init.

* dwarf2out.c (output_call_frame_info): Create debug_frame_section
if it hasn't been initialized by dwarf2out_init.

From-SVN: r112871

18 years agore PR c++/26122 (Pure specifiers for templates causing trouble)
Mark Mitchell [Tue, 11 Apr 2006 22:59:57 +0000 (22:59 +0000)]
re PR c++/26122 (Pure specifiers for templates causing trouble)

* g++.dg/parse/dtor7.C: New test.
* g++.dg/parse/new1.C: Add error marker.
* g++.dg/template/new3.C: New test.

PR c++/26122
* g++.dg/template/pure1.C: New test.

PR c++/26295
* g++.dg/parse/ptrmem4.C: New test.

From-SVN: r112869

18 years agodarwin_stop_world.c (GC_push_all_stacks, [...]): Call vm_deallocate to free act_list.
Bryce McKinlay [Tue, 11 Apr 2006 21:56:27 +0000 (21:56 +0000)]
darwin_stop_world.c (GC_push_all_stacks, [...]): Call vm_deallocate to free act_list.

        * darwin_stop_world.c (GC_push_all_stacks, GC_stop_world,
        GC_start_world): Call vm_deallocate to free act_list. Fix from
        Bruce Mitchener.

From-SVN: r112867

18 years agopa.md (MAX_12BIT_OFFSET, [...]): Define and use new symbolic constants in branch...
John David Anglin [Tue, 11 Apr 2006 18:29:16 +0000 (18:29 +0000)]
pa.md (MAX_12BIT_OFFSET, [...]): Define and use new symbolic constants in branch patterns.

* pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
symbolic constants in branch patterns.

From-SVN: r112864

18 years agocaller-save.c: #include "addresses.h" after #include "tm_p.h".
Roger Sayle [Tue, 11 Apr 2006 18:26:12 +0000 (18:26 +0000)]
caller-save.c: #include "addresses.h" after #include "tm_p.h".

* caller-save.c: #include "addresses.h" after #include "tm_p.h".

From-SVN: r112863

18 years agore PR rtl-optimization/27073 (invalid gcse manipulation of REG_EQUIV notes)
Richard Sandiford [Tue, 11 Apr 2006 17:43:07 +0000 (17:43 +0000)]
re PR rtl-optimization/27073 (invalid gcse manipulation of REG_EQUIV notes)

PR rtl-optimization/27073
* gcse.c (try_replace_reg): Revert last change.  Continue to search
for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
on the former.

From-SVN: r112861

18 years agosparc.c (function_arg_slotno): Handle aggregate types other than record and union...
Eric Botcazou [Tue, 11 Apr 2006 16:25:46 +0000 (18:25 +0200)]
sparc.c (function_arg_slotno): Handle aggregate types other than record and union types.

* config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
aggregate types other than record and union types.
(function_arg): Likewise.
(function_arg_pass_by_reference): In 64-bit mode, return 0 for
small arrays.
(function_value): In 64-bit mode, return objects that require it
in FP registers.

From-SVN: r112859

18 years agoSystemClassLoader.java (addClass): Get the value of package-private field "loadedClas...
Bryce McKinlay [Tue, 11 Apr 2006 16:23:00 +0000 (16:23 +0000)]
SystemClassLoader.java (addClass): Get the value of package-private field "loadedClasses" using reflection.

* gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
of package-private field "loadedClasses" using reflection.
* java/lang/VMCompiler.java (compileClass): Remove unreachable catch
block.

From-SVN: r112858

18 years agodwarf2out.c (premark_used_types): Remove problematic prototype.
Roger Sayle [Tue, 11 Apr 2006 15:41:41 +0000 (15:41 +0000)]
dwarf2out.c (premark_used_types): Remove problematic prototype.

* dwarf2out.c (premark_used_types): Remove problematic prototype.

From-SVN: r112857

18 years ago* gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
Jakub Jelinek [Tue, 11 Apr 2006 07:16:14 +0000 (09:16 +0200)]
* gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.

From-SVN: r112851

18 years agoio.h (st_parameter_dt): Revert 2005-12-10 change to u.pad, fix comment.
Jakub Jelinek [Tue, 11 Apr 2006 07:15:00 +0000 (09:15 +0200)]
io.h (st_parameter_dt): Revert 2005-12-10 change to u.pad, fix comment.

* io/io.h (st_parameter_dt): Revert 2005-12-10 change to
u.pad, fix comment.
(check_st_parameter_dt): New compile time assert.

From-SVN: r112850

18 years agotree-ssa-copy.c (may_propagate_copy): Test flow sensitive alias information too.
Jeff Law [Tue, 11 Apr 2006 05:52:45 +0000 (23:52 -0600)]
tree-ssa-copy.c (may_propagate_copy): Test flow sensitive alias information too.

        PR/27087
        * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
        alias information too.

        * gcc.c-torture/compile/pr27087.c: New test.

From-SVN: r112849

18 years ago* gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.
Mike Frysinger [Tue, 11 Apr 2006 03:08:13 +0000 (03:08 +0000)]
* gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.

From-SVN: r112847

18 years ago20060410.c: New.
Aldy Hernandez [Tue, 11 Apr 2006 01:36:50 +0000 (01:36 +0000)]
20060410.c: New.

PR/21391
* testsuite/gcc.dg/20060410.c: New.
* dwarf2out.c (struct die_struct): Add die_perennial_p field.
(premark_used_types_helper): New.
(premark_used_types): New.
(gen_subprogram_die): Call premark_used_types.
(prune_unused_types_walk): Do not prune perennial dies.
* function.c (used_types_insert): New.
* function.h (struct function): Add used_types_hash field.
(used_types_insert): Add prototype.
* Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
* c-parser.c (c_parser_cast_expression): Save casted types in used
types hash table.

From-SVN: r112845

18 years agore PR target/26459 (gcc fails to build on powerpc e500-double targets)
Mark Mitchell [Tue, 11 Apr 2006 00:33:29 +0000 (00:33 +0000)]
re PR target/26459 (gcc fails to build on powerpc e500-double targets)

PR target/26459
* config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
rs6000_explicit_options.float_gprs.

From-SVN: r112843

18 years agoDaily bump.
GCC Administrator [Tue, 11 Apr 2006 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r112841

18 years agolibjava.exp (libjava_init): Recognize multilib directory names containing underscores.
Matthias Klose [Mon, 10 Apr 2006 21:34:19 +0000 (21:34 +0000)]
libjava.exp (libjava_init): Recognize multilib directory names containing underscores.

gcc/testsuite:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

libffi:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

libgomp:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

libjava:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

libmudflap:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

libstdc++:
2006-04-10  Matthias Klose  <doko@debian.org>

* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.

From-SVN: r112833

18 years agoi386.c (ix86_expand_vector_init_one_nonzero): Renamed from ix86_expand_vector_init_lo...
Roger Sayle [Mon, 10 Apr 2006 21:01:19 +0000 (21:01 +0000)]
i386.c (ix86_expand_vector_init_one_nonzero): Renamed from ix86_expand_vector_init_low_nonzero.

* config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
from ix86_expand_vector_init_low_nonzero.  Take an additional
one_var argument indicating which element is non-zero.  Support
one_var != 0 for V4SFmode and V4SImode by permuting the result.
(ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
with one_var instead of ix86_expand_vector_init_low_nonzero.

* gcc.target/i386/vecinit-1.c: New test case.
* gcc.target/i386/vecinit-2.c: Likewise.

From-SVN: r112832

18 years agoMakefile.in (tree-into-ssa.o, [...]): Depend on vecprim.h.
Kazu Hirata [Mon, 10 Apr 2006 19:26:18 +0000 (19:26 +0000)]
Makefile.in (tree-into-ssa.o, [...]): Depend on vecprim.h.

* Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
global.o, cfglayout.o, lambda-code.o, reg-stack.o,
build/genextract.o): Depend on vecprim.h.
* cfglayout.c, df-problems.c, function.c, genextract.c,
global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
vecprim.h.
* vecprim.h: New.

From-SVN: r112830

18 years agodwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
Geoffrey Keating [Mon, 10 Apr 2006 18:16:07 +0000 (18:16 +0000)]
dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.

* dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
Declare VECs of this type.
(struct die_struct): Make field die_attr a VEC of dw_attr_struct.
(remove_children): Delete.
(add_dwarf_attr): Use VEC routines.
(add_AT_flag): Update for changes to add_dwarf_attr.
(add_AT_int): Likewise.
(add_AT_unsigned): Likewise.
(add_AT_long_long): Likewise.
(add_AT_vec): Likewise.
(add_AT_string): Likewise.
(add_AT_die_ref): Likewise.
(add_AT_fde_ref): Likewise.
(add_AT_loc): Likewise.
(add_AT_loc_list): Likewise.
(add_AT_addr): Likewise.
(add_AT_lbl_id): Likewise.
(add_AT_lineptr): Likewise.
(add_AT_macptr): Likewise.
(add_AT_offset): Likewise.
(add_AT_range_list): Likewise.
(get_AT): Use VEC_iterate.
(remove_AT): Use VEC_ordered_remove.
(free_die): Fold remove_children into here; have it use VEC_iterate.
(print_die): Use VEC_iterate on attrs.
(reverse_die_lists): Don't reverse attr lists.
(die_checksum): Use VEC_iterate on attrs.
(same_die_p): Likewise.
(output_location_lists): Likewise.
(build_abbrev_table): Likewise.
(size_of_die): Likewise.
(unmark_all_dies): Likewise.
(output_abbrev_section): Likewise.
(output_die): Likewise.
(prune_unused_types_walk_attribs): Likewise.

From-SVN: r112829

18 years agox86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
Andrew Haley [Mon, 10 Apr 2006 16:01:23 +0000 (16:01 +0000)]
x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.

2006-04-10  Andrew Haley  <aph@redhat.com>

        * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
        (SIGNAL_HANDLER): Mark arg as unused.
        * configure.host (x86_64-* DIVIDESPEC): Use
        fno-use-divide-subroutine.

From-SVN: r112827

18 years agoFix latest entry.
Eric Botcazou [Mon, 10 Apr 2006 14:34:02 +0000 (14:34 +0000)]
Fix latest entry.

From-SVN: r112824

18 years agoinstall.texi (*-*-solaris2*): Point to the configuration page.
Eric Botcazou [Mon, 10 Apr 2006 14:29:47 +0000 (16:29 +0200)]
install.texi (*-*-solaris2*): Point to the configuration page.

* doc/install.texi (*-*-solaris2*): Point to the configuration page.

From-SVN: r112823

18 years agore PR debug/27057 (ICE with -feliminate-dwarf2-dups and using namespace)
Jakub Jelinek [Mon, 10 Apr 2006 13:18:19 +0000 (15:18 +0200)]
re PR debug/27057 (ICE with -feliminate-dwarf2-dups and using namespace)

PR debug/27057
* dwarf2out.c (is_symbol_die): Return true also for namespaces.

* g++.dg/debug/dwarf2-2.C: New test.

From-SVN: r112820

18 years agore PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran...
Jakub Jelinek [Mon, 10 Apr 2006 12:02:55 +0000 (14:02 +0200)]
re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90))

PR libgfortran/24685
* io/write.c (MIN_FIELD_WIDTH, STR, STR1): Define.
(output_float): Increase buffer sizes for IEEE quad and IBM extended
long double.
(write_real): Output REAL(16) as 1PG43.34E4 rather than 1PG40.31E4.

From-SVN: r112819

18 years agoDR 538, [Ready]
Paolo Carlini [Mon, 10 Apr 2006 10:05:51 +0000 (10:05 +0000)]
DR 538, [Ready]

2006-04-10  Paolo Carlini  <pcarlini@suse.de>

DR 538, [Ready]
* include/bits/stl_algo.h (__unique_copy(,,, input_iterator_tag,
output_iterator_tag), and predicated counterpart): Revert to the
algorithm pre-DR 241, i.e., value_type of InputIterator is now
required to be Assignable too.
* testsuite/25_algorithms/unique_copy/3.cc: Remove.
* docs/html/ext/howto.html: Add an entry for DR 538.

From-SVN: r112818

18 years agoexpr.c (store_constructor): Don't bother clearing target if we're about to assign...
Roger Sayle [Mon, 10 Apr 2006 05:13:59 +0000 (05:13 +0000)]
expr.c (store_constructor): Don't bother clearing target if we're about to assign a vector to it using...

* expr.c (store_constructor): Don't bother clearing target if
we're about to assign a vector to it using vec_init_optab.

From-SVN: r112817