gcc.git
18 years agore PR java/25535 (gcj broken on 64-bit big-endian systems)
Andrew Haley [Thu, 22 Dec 2005 18:34:01 +0000 (18:34 +0000)]
re PR java/25535 (gcj broken on 64-bit big-endian systems)

2005-12-22  Andrew Haley  <aph@redhat.com>

PR java/25535
* testsuite/libjava.lang/PR25535.java: New test.

From-SVN: r108961

18 years ago[multiple changes]
Andrew Pinski [Thu, 22 Dec 2005 18:06:35 +0000 (18:06 +0000)]
[multiple changes]

2005-12-22  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/25513
        * gcc.c-torture/compile/pr25513.c: New test.
2005-12-22  Andrew Pinski <pinskia@physics.uc.edu>

        PR tree-opt/25513
        * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex
        variables.

From-SVN: r108958

18 years agonatClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS.
Tom Tromey [Thu, 22 Dec 2005 17:33:05 +0000 (17:33 +0000)]
natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS.

* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
reference NUM_OBJECT_METHODS.
* include/jvm.h (NUM_OBJECT_METHODS): Removed.

From-SVN: r108956

18 years agoipa-reference.c (get_reference_vars_info_from_cgraph): Use function_ann.
Daniel Berlin [Thu, 22 Dec 2005 15:01:02 +0000 (15:01 +0000)]
ipa-reference.c (get_reference_vars_info_from_cgraph): Use function_ann.

2005-12-22  Daniel Berlin  <dberlin@dberlin.org>

* ipa-reference.c (get_reference_vars_info_from_cgraph): Use
function_ann.
(get_local_reference_vars_info): Ditto.
(get_global_reference_vars_info): Ditto.
(analyze_function): Ditto.
(clean_function): Ditto.
* tree-dfa.c (create_function_ann): New function.
* tree-flow-inline.h (var_ann): FUNCTION_DECL's don't have
var_ann.
(function_ann): New.
(get_function_ann): Ditto.
* tree-flow.h (tree_ann_type): Add FUNCTION_ANN.
(struct var_ann_d): Move reference_vars_info to function annotation.
(struct function_ann_d): New.
(union tree_ann_d): Add function_ann.

From-SVN: r108950

18 years agodf.c (df_bitmaps_free): Only work for bbs for that structures are allocated.
Zdenek Dvorak [Thu, 22 Dec 2005 14:23:40 +0000 (15:23 +0100)]
df.c (df_bitmaps_free): Only work for bbs for that structures are allocated.

* df.c (df_bitmaps_free): Only work for bbs for that structures are
allocated.
(df_bb_modify): Realloc tables to the new index.
(df_find_use): New function.
(df_find_def, df_reg_used): Handle subregs.
* df.h (df_find_use): Declare.

* loop-invariant.c: Include hashtab.h.
(struct invariant): Remove processed field, add eqto and reg fields.
(struct invariant_expr_entry): New.
(invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p,
hash_invariant_expr, eq_invariant_expr, find_or_insert_inv,
find_identical_invariants, merge_identical_invariants): New functions.
(create_new_invariant): Return the new invariant.  Initialize new
fields.
(find_invariants): Call merge_identical_invariants.
(get_inv_cost, best_gain_for_invariant, set_move_mark,
move_invariant_reg): Handle equivalent invariants.
* Makefile.in (loop-invariant.o): Add HASHTAB_H dependency.

Co-Authored-By: Steven Bosscher <stevenb@suse.de>
From-SVN: r108949

18 years agore PR c++/23333 (accepts invalid pure specifier)
Volker Reichelt [Thu, 22 Dec 2005 12:01:44 +0000 (12:01 +0000)]
re PR c++/23333 (accepts invalid pure specifier)

2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

PR c++/23333
* include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.

* c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if
number is a single digit '0'.

* parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to
identify a single '0'.

* g++.dg/parse/error25.C: Add more tests.

From-SVN: r108947

18 years agore PR fortran/18990 (ICE in gfc_get_derived_type, at fortran/trans-types.c)
Tobias Schlüter [Thu, 22 Dec 2005 11:37:03 +0000 (12:37 +0100)]
re PR fortran/18990 (ICE in gfc_get_derived_type, at fortran/trans-types.c)

fortran/
PR fortran/18990
* gfortran.h (gfc_charlen): Add resolved field.
* expr.c (gfc_specification_expr): Accept NULL argument.
* resolve.c (gfc_resolve_charlen, gfc_resolve_derived): New.
(gfc_resolve_symbol): Resolve derived type definitions.  Use
resolve_charlen to resolve character lengths.
testsuite/
PR fortran/18990
* gfortran.dg/der_charlen_1.f90: New.

From-SVN: r108946

18 years agore PR fortran/20889 (type in a structure-constructor differs from type in derived...
Paul Thomas [Thu, 22 Dec 2005 07:05:22 +0000 (07:05 +0000)]
re PR fortran/20889 (type in a structure-constructor differs from type in derived-type-def)

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

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25029
PR fortran/21256
*resolve.c(check_assumed_size_reference): New function to check for upper
bound in assumed size array references.
(resolve_assumed_size_actual): New function to do a very restricted scan
of actual argument expressions of those procedures for which incomplete
assumed size array references are not allowed.
(resolve_function, resolve_call): Switch off assumed size checking of
actual arguments, except for elemental procedures and array valued
intrinsics; excepting LBOUND.
(resolve_variable): Call check_assumed_size_reference.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*interface.c(gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
*symbol.c(gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
*resolve.c(resolve_symbol): Build the list of derived types in the
symbols namespace.
*gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
*trans_types.c(gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

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

PR fortran/20889
*gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25029
PR fortran/21256
*gfortran.dg/assumed_size_refs.f90: New test for the conditions that
should give an error with assumed size array refernces and checks those
that should not.
*gfortran.dg/gfortran.dg/pr15140.f90: Give the assumed size array
reference an upper bound so that it does not generate an error.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
*gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
*gfortran.dg/assumed_shape_nml.f90: New test.
*gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* gfortran.dg/io_constraints_1.f90: New test.
* gfortran.dg/io_constraints_1.f90: New test.
* gfortran.dg/iostat_3.f90: Change wording of warning.
 * gfortran.dg/g77/19981216-0.f:  the same.

From-SVN: r108943

18 years agore PR middle-end/23518 (some gcc optimizations do not take overflow into account...
Kazu Hirata [Thu, 22 Dec 2005 04:03:32 +0000 (04:03 +0000)]
re PR middle-end/23518 (some gcc optimizations do not take overflow into account with -fwrapv)

gcc/
PR tree-optimization/23518
* fold-const.c (make_range): Don't move a constant to the
other side of the comparison if the type is signed and -fwrapv
is given.

gcc/testsuite/
PR tree-optimization/23518
* testsuite/gcc.dg/pr23518.c: New.

From-SVN: r108940

18 years agore PR libfortran/25307 (internal read with end=label aborts)
Jerry DeLisle [Thu, 22 Dec 2005 02:32:29 +0000 (02:32 +0000)]
re PR libfortran/25307 (internal read with end=label aborts)

2005-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25307
* io/list_read.c (next_char): Handle end-of-file conditions for
internal units and add support for internal character array units.

From-SVN: r108938

18 years agotree-vrp.c (extract_range_from_binary_expr): Clean up uses of vr0.type.
Kazu Hirata [Thu, 22 Dec 2005 01:16:57 +0000 (01:16 +0000)]
tree-vrp.c (extract_range_from_binary_expr): Clean up uses of vr0.type.

* tree-vrp.c (extract_range_from_binary_expr): Clean up uses
of vr0.type.

From-SVN: r108935

18 years ago* gcc.dg/attr-weakref-1.c: Really skip on darwin.
Mike Stump [Thu, 22 Dec 2005 01:02:55 +0000 (01:02 +0000)]
* gcc.dg/attr-weakref-1.c: Really skip on darwin.

From-SVN: r108934

18 years ago* gcc.dg/attr-weakref-1.c: Really skip on darwin.
Mike Stump [Thu, 22 Dec 2005 01:02:29 +0000 (01:02 +0000)]
* gcc.dg/attr-weakref-1.c: Really skip on darwin.

From-SVN: r108933

18 years agoDaily bump.
GCC Administrator [Thu, 22 Dec 2005 00:17:25 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108930

18 years agore PR target/24998 (Build failure: undefined symbol __floatunsitf)
Joseph Myers [Wed, 21 Dec 2005 17:48:07 +0000 (17:48 +0000)]
re PR target/24998 (Build failure: undefined symbol __floatunsitf)

PR middle-end/24998
* config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and
_floatundisf.

From-SVN: r108918

18 years agopr19340.c: Skip on m68k targets.
Paul Brook [Wed, 21 Dec 2005 17:18:53 +0000 (17:18 +0000)]
pr19340.c: Skip on m68k targets.

2005-12-21  Paul Brook  <paul@codesourcery.com>

* gcc.dg/pr19340.c: Skip on m68k targets.

From-SVN: r108916

18 years agore PR middle-end/25121 (libgcj misscompilation?)
Andrew Haley [Wed, 21 Dec 2005 16:52:13 +0000 (16:52 +0000)]
re PR middle-end/25121 (libgcj misscompilation?)

2005-12-21  Andrew Haley  <aph@redhat.com>

        PR middle-end/25121
        * recog.c (peephole2_optimize): Don't peephole any
        RTX_FRAME_RELATED_P insns.

From-SVN: r108914

18 years agotree-data-ref.c (estimate_niter_from_size_of_data): Replace fold_build2 with fold_binary.
Kazu Hirata [Wed, 21 Dec 2005 16:48:59 +0000 (16:48 +0000)]
tree-data-ref.c (estimate_niter_from_size_of_data): Replace fold_build2 with fold_binary.

* tree-data-ref.c (estimate_niter_from_size_of_data): Replace
fold_build2 with fold_binary.
* tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
Replace fold_build1 with fold_unary.
* tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
with fold_binary.

From-SVN: r108913

18 years agofixup PR number mixup
Steven Bosscher [Wed, 21 Dec 2005 15:43:38 +0000 (15:43 +0000)]
fixup PR number mixup

From-SVN: r108909

18 years agopatch for PR rtl-optimization/25130
Steven Bosscher [Wed, 21 Dec 2005 15:28:16 +0000 (15:28 +0000)]
patch for PR rtl-optimization/25130

gcc/
        * postreload-gcse.c (record_last_set_info): Notice stack pointer
        changes in push insns without REG_INC notes.

testsuite/
        * gcc.dg/pr25130.c: New test.

From-SVN: r108906

18 years agore PR fortran/25423 (Error with nested where statements)
Erik Edelmann [Wed, 21 Dec 2005 11:58:09 +0000 (11:58 +0000)]
re PR fortran/25423 (Error with nested where statements)

fortran/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        * parse.c (parse_where_block): break instead of "fall
         through" after parsing nested WHERE construct.

testsuite/
2005-12-21  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25423
        gfortran.dg/where_nested_1.f90: New.

From-SVN: r108902

18 years agore PR tree-optimization/25382 (VRP does not get a range from BIT_AND_EXPR if the...
Kazu Hirata [Wed, 21 Dec 2005 05:58:02 +0000 (05:58 +0000)]
re PR tree-optimization/25382 (VRP does not get a range from BIT_AND_EXPR if the second operand is constant)

gcc/
PR tree-optimization/25382.
* tree-vrp.c (extract_range_from_binary_expr): Extract a range
from BIT_AND_EXPR.

gcc/testsuite/
PR tree-optimization/25382.
* gcc.dg/tree-ssa/pr25382.c: New.

From-SVN: r108898

18 years agoconfigure.ac: Enable C extension for decimal float if invoked with --enable-decimal...
Ben Elliston [Wed, 21 Dec 2005 00:43:21 +0000 (11:43 +1100)]
configure.ac: Enable C extension for decimal float if invoked with --enable-decimal-float.

* configure.ac: Enable C extension for decimal float if invoked
with --enable-decimal-float.
* doc/install.texi (Configuration): Document it.
* configure, config.in: Regenerate.

From-SVN: r108887

18 years agoDaily bump.
GCC Administrator [Wed, 21 Dec 2005 00:17:34 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108884

18 years agodarwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the ambiguity between -seg_addr_tabl...
Mike Stump [Tue, 20 Dec 2005 23:46:18 +0000 (23:46 +0000)]
darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the ambiguity between -seg_addr_table and -seg_addr_table_filename.

        * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
        ambiguity between -seg_addr_table and -seg_addr_table_filename.
        (WORD_SWITCH_TAKES_ARG): Likewise.
        (LINK_SPEC): Likewise.
Radar 3941990

From-SVN: r108876

18 years agocfganal.c (flow_reverse_top_sort_order_compute): Renamed to post_order_compute and...
Kenneth Zadeck [Tue, 20 Dec 2005 23:10:49 +0000 (23:10 +0000)]
cfganal.c (flow_reverse_top_sort_order_compute): Renamed to post_order_compute and additional parameter added which allows the...

2005-12-20  Kenneth Zadeck <zadeck@naturalbridge.com>

* cfganal.c (flow_reverse_top_sort_order_compute):
Renamed to post_order_compute and additional parameter added which
allows the inclusion of entry and exit blocks into list.
(mark_dfs_back_edges): Fixed comment.
(flow_depth_first_order_compute): Renamed to
pre_and_rev_post_order_compute additional parameter added which
allows the inclusion of entry and exit blocks into list.
* global.c (set_up_bb_rts_numbers): Call to
flow_reverse_top_sort_order_compute renamed to
post_order_compute.
* var-tracking.c (vt_stack_adjustments): Fixed comment.
(vt_find_locations): Call to
flow_depth_first_order_compute renamed to
pre_and_rev_post_order_compute.
* cfgloop.c (flow_find_loops): Ditto.
* tree-ssa-reassoc.c (init_reassoc): Ditto.
* df.c (df_analyze_1, df_analyze_subcfg): Calls to
flow_reverse_top_sort_order_compute renamed to post_order_compute
and calls to flow_reverse_top_sort_order_compute renamed to
post_order_compute.
* basic_block.h: Ditto.

From-SVN: r108874

18 years ago* btest-gcc.sh: Support -j option.
Geoffrey Keating [Tue, 20 Dec 2005 20:20:24 +0000 (20:20 +0000)]
* btest-gcc.sh: Support -j option.

From-SVN: r108866

18 years agodecNumber.c (decStrEq): Cast string contents to unsigned char instead of int before...
Roger Sayle [Tue, 20 Dec 2005 18:48:47 +0000 (18:48 +0000)]
decNumber.c (decStrEq): Cast string contents to unsigned char instead of int before calling tolower.

        * decNumber.c (decStrEq): Cast string contents to unsigned char
        instead of int before calling tolower.

From-SVN: r108862

18 years agodecNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilat...
Roger Sayle [Tue, 20 Dec 2005 17:23:53 +0000 (17:23 +0000)]
decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64.

* decNumber.c (decStrEq): Cast operands to int before calling
tolower to avoid compilation warnings on Tru64.

From-SVN: r108858

18 years agoRevert Ada-related part of the previous change.
Paolo Bonzini [Tue, 20 Dec 2005 17:19:18 +0000 (17:19 +0000)]
Revert Ada-related part of the previous change.

2005-12-20  Paolo Bonzini  <bonzini@gnu.org>

        Revert Ada-related part of the previous change.

        * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET):
        Do not pass.
        * Makefile.tpl (BOOT_ADAFLAGS): Do not define.
        * Makefile.in: Regenerate.
        * configure.in: Do not include mt-ppc-aix target fragment.
        * configure: Regenerate.

config:
2005-12-20  Paolo Bonzini  <bonzini@gnu.org>

        Revert Ada-related part of the previous change.

        * mt-ppc-aix: Delete.

From-SVN: r108856

18 years agore PR rtl-optimization/25115 (Segmentation fault in pre_insert_copy_insn)
Roger Sayle [Tue, 20 Dec 2005 17:06:14 +0000 (17:06 +0000)]
re PR rtl-optimization/25115 (Segmentation fault in pre_insert_copy_insn)

2005-12-20  Roger Sayle  <roger@eyesopen.com>
    Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/25115
* gcse.c (pre_insert_copy_insn): Fall back to the sole
SET in the insn if there is no SET for an
expression that is equivalent to EXPR.

Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
From-SVN: r108855

18 years agore PR middle-end/24306 (va_arg gets confused when skipping over certain zero-sized...
Richard Guenther [Tue, 20 Dec 2005 16:20:27 +0000 (16:20 +0000)]
re PR middle-end/24306 (va_arg gets confused when skipping over certain zero-sized types with -msse)

2005-12-20  Richard Guenther  <rguenther@suse.de>

PR middle-end/24306
* builtins.c (std_gimplify_va_arg_expr): Do not align
va frame for zero sized types.
* config/i386/i386.c (ix86_gimplify_va_arg): Likewise.

        * gcc.target/i386/pr24306.c: New testcase.

From-SVN: r108854

18 years agore PR tree-optimization/25501 (Segfault)
Kazu Hirata [Tue, 20 Dec 2005 14:47:07 +0000 (14:47 +0000)]
re PR tree-optimization/25501 (Segfault)

gcc/
PR tree-optimization/25501
* tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is
used in the PHI argument corresponding to the edge from BB to
DEST.

gcc/testsuite/
PR tree-optimization/25501
* testsuite/gcc.dg/tree-ssa/pr25501.c: New.

From-SVN: r108853

18 years agorevert: tree-cfg.c (mark_used_vars): New function.
Richard Guenther [Tue, 20 Dec 2005 14:35:29 +0000 (14:35 +0000)]
revert: tree-cfg.c (mark_used_vars): New function.

2005-12-20  Richard Guenther  <rguenther@suse.de>

        Revert
        2005-12-02  Richard Guenther  <rguenther@suse.de>

        * tree-cfg.c (mark_used_vars): New function.
        (dump_function_to_file): Dump only used VAR_DECLs.

        * gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL.

From-SVN: r108852

18 years agore PR c++/21228 (-Wunreachable-code produces spurious warnings for constructor)
Mark Mitchell [Tue, 20 Dec 2005 08:48:13 +0000 (08:48 +0000)]
re PR c++/21228 (-Wunreachable-code produces spurious warnings for constructor)

PR c++/21228
* decl.c (use_eh_spec_block): New function.
(store_parm_decls): Use it.
(finish_function): Likewise.

PR c++/21228
* g++.dg/warn/Wunreachable-code-2.C: New test.

From-SVN: r108851

18 years agore PR c++/24278 (ICE while trying to print out error)
Mark Mitchell [Tue, 20 Dec 2005 04:59:42 +0000 (04:59 +0000)]
re PR c++/24278 (ICE while trying to print out error)

PR c++/24278
* init.c (expand_member_init): Print messages about baseclasses
using %T rather than %D.
PR c++/24278
* g++.dg/template/ctor5.C: New test.

From-SVN: r108840

18 years agore PR c++/24915 (Overload errors generated without template instantiations for class...
Mark Mitchell [Tue, 20 Dec 2005 04:44:20 +0000 (04:44 +0000)]
re PR c++/24915 (Overload errors generated without template instantiations for class member templates)

PR c++/24915
* class.c (add_method): Do not treat templates as identical unless
their return types are the same.
PR c++/24915
* g++.dg/template/overload8.C: New test.

From-SVN: r108837

18 years agocombine.c (try_combine): Improve splitting of binary operators by taking advantage...
Roger Sayle [Tue, 20 Dec 2005 04:17:58 +0000 (04:17 +0000)]
combine.c (try_combine): Improve splitting of binary operators by taking advantage of reassociative...

* combine.c (try_combine): Improve splitting of binary operators
by taking advantage of reassociative transformations.

From-SVN: r108834

18 years agotree-ssa-dom.c (thread_across_edge): Do not use local_fold.
Jeff Law [Tue, 20 Dec 2005 04:08:01 +0000 (21:08 -0700)]
tree-ssa-dom.c (thread_across_edge): Do not use local_fold.

* tree-ssa-dom.c (thread_across_edge): Do not use local_fold.
Strip away all type conversions after simplifying the
condition.

        * tree-cfgcleanup.c (merge_phi_nodes): Allow merging in some
        cases the forwarder block dominates the destination.

From-SVN: r108833

18 years agoreload1.c (spill_failure): Dump failed reload data to dump file.
DJ Delorie [Tue, 20 Dec 2005 01:04:24 +0000 (20:04 -0500)]
reload1.c (spill_failure): Dump failed reload data to dump file.

* reload1.c (spill_failure): Dump failed reload data to dump file.
(find_reload_regs): Likewise.

From-SVN: r108830

18 years agostl_deque.h (deque<>::resize, [...]): Avoid troubles with ADL, user defined operators...
Paolo Carlini [Tue, 20 Dec 2005 00:29:18 +0000 (00:29 +0000)]
stl_deque.h (deque<>::resize, [...]): Avoid troubles with ADL, user defined operators and _Deque_iterator.

2005-12-19  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_deque.h (deque<>::resize, _M_fill_assign):
Avoid troubles with ADL, user defined operators and _Deque_iterator.
(operator-(const _Deque_iterator<>&, const _Deque_iterator<>&):
Add overload for left and right iterators of the same type.
* include/bits/deque.tcc (erase(iterator)): Avoid troubles with ADL,
user defined operators and _Deque_iterator.
* testsuite/23_containers/deque/types/1.cc: Add.

* include/bits/deque.tcc (_M_insert_aux(iterator, size_type,
const value_type&)): Qualify with std:: fill call.

From-SVN: r108827

18 years agoDaily bump.
GCC Administrator [Tue, 20 Dec 2005 00:17:21 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108824

18 years agore PR tree-optimization/24793 (ICE: expected ssa_name, have var_decl in verify_ssa...
Zdenek Dvorak [Mon, 19 Dec 2005 20:10:11 +0000 (21:10 +0100)]
re PR tree-optimization/24793 (ICE: expected ssa_name, have var_decl in verify_ssa, at tree-ssa.c:746)

PR tree-optimization/24793
* tree-ssa-loop-ivopts.c (get_ref_tag): Remember the
original reference if there are subvars.
* tree-ssa-operands.c (get_tmr_operands): Handle subvars.

From-SVN: r108808

18 years agodf.c (df_analyze_1, [...]): Corrected basic block number calculations for changes...
Kenneth Zadeck [Mon, 19 Dec 2005 19:41:35 +0000 (19:41 +0000)]
df.c (df_analyze_1, [...]): Corrected basic block number calculations for changes in entry and exit numbering.

2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>
* df.c (df_analyze_1, df_analyze_subcfg, iterative_dataflow):
Corrected basic block number calculations for changes in entry and
exit numbering.
2005-12-19  Kenneth Zadeck <zadeck@naturalbridge.com>

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

From-SVN: r108805

18 years agotree-flow.h (struct var_ann_d): Change type of may_aliases field to VEC(tree, gc) *.
Zdenek Dvorak [Mon, 19 Dec 2005 19:13:21 +0000 (20:13 +0100)]
tree-flow.h (struct var_ann_d): Change type of may_aliases field to VEC(tree, gc) *.

* tree-flow.h (struct var_ann_d): Change type of
may_aliases field to VEC(tree, gc) *.
(may_aliases): Declaration changed.
* tree-ssa-alias.c (group_aliases, add_may_alias,
replace_may_alias, dump_may_aliases_for,
is_aliased_with, add_type_alias, new_type_alias):
Work with VEC(tree, gc) * instead of varray.
* tree-flow-inline.h (may_aliases): Ditto.
* tree-ssa.c (verify_flow_insensitive_alias_info,
verify_name_tags): Ditto.
* tree-ssa-operands.c (add_stmt_operand): Ditto.

From-SVN: r108804

18 years agoFix previous mis-applied patch.
Paul Brook [Mon, 19 Dec 2005 18:08:13 +0000 (18:08 +0000)]
Fix previous mis-applied patch.

* config/m68k/m68k.md (m68k_output_function_prologue): Always call
dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
when frame_pointer_needed.

From-SVN: r108801

18 years agore PR c++/20552 (ICE in write_type, at cp/mangle.c:1579)
Volker Reichelt [Mon, 19 Dec 2005 17:28:30 +0000 (17:28 +0000)]
re PR c++/20552 (ICE in write_type, at cp/mangle.c:1579)

PR c++/20552
* g++.dg/ext/typeof10.C: New test.

From-SVN: r108796

18 years agocommit changelogs for previous change
Paolo Bonzini [Mon, 19 Dec 2005 17:04:55 +0000 (17:04 +0000)]
commit changelogs for previous change

From-SVN: r108794

18 years agoconfigure.in: Select appropriate fragments for PowerPC/AIX.
Paolo Bonzini [Mon, 19 Dec 2005 17:02:00 +0000 (17:02 +0000)]
configure.in: Select appropriate fragments for PowerPC/AIX.

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

* configure.in: Select appropriate fragments for PowerPC/AIX.
* configure: Regenerate.

* Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS,
BOOT_CFLAGS, BOOT_LDFLAGS.
* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS,
BOOT_CFLAGS, BOOT_LDFLAGS.
(TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET.
(stage[+id+]-bubble): Pass flags recursively to the comparison target.
(stage): Fail if we cannot complete the work.
* Makefile.in: Regenerate.

From-SVN: r108793

18 years agore PR rtl-optimization/20070 (If-conversion can't match equivalent code, and cross...
J"orn Rennecke [Mon, 19 Dec 2005 14:36:59 +0000 (14:36 +0000)]
re PR rtl-optimization/20070 (If-conversion can't match equivalent code, and cross-jumping only works for literal matches)

* cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
comes back.

From-SVN: r108792

18 years agostruct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p check.
J"orn Rennecke [Mon, 19 Dec 2005 14:02:56 +0000 (14:02 +0000)]
struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p check.

* struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
check.

From-SVN: r108791

18 years ago* doc/install.texi (Configuration): Typo in Fortran subheading.
Ben Elliston [Mon, 19 Dec 2005 13:02:32 +0000 (13:02 +0000)]
* doc/install.texi (Configuration): Typo in Fortran subheading.

From-SVN: r108790

18 years ago* gcc.dg/mt-loopi1.c: New.
Nathan Sidwell [Mon, 19 Dec 2005 11:01:38 +0000 (11:01 +0000)]
* gcc.dg/mt-loopi1.c: New.

From-SVN: r108788

18 years agomt.md (decrement_and_branch_until_zero): Add another scratch.
Nathan Sidwell [Mon, 19 Dec 2005 10:51:46 +0000 (10:51 +0000)]
mt.md (decrement_and_branch_until_zero): Add another scratch.

* config/mt/mt.md (decrement_and_branch_until_zero): Add another
scratch.  Correct its reload split. Adjust its peephole.
(doloop_end): Add additional scratch.
(nop): Use 'nop'.
* config/mt/mt.c (MT_INT_ARG_FIRST): Remove.
(mt_asm_output_opcode, mt_print_operand): Use 'nop'.
(mt_function_arg_slotno): Use FIRST_ARG_REGNUM.
(mt_builtin_saveregs): Replace with ...
(mt_setup_incoming_varargs): ... here.  Save just the varadic
args.
(mt_va_start): Remove.
(mt_reorg_hazard): Ignore USE insns.  Don't call set_noop_p.
(mt_machine_reorg): Split all insns here.
(TARGET_SETUP_INCOMING_VARARGS): Override.
* config/mt/mt.h (TARGET_CPU_CPP_BUILTINS): Define __mt__ only.
Set to CPU type.
(EXPAND_BUILTIN_VA_START): Remove.

From-SVN: r108787

18 years agore PR libfortran/25463 (T edit descriptor and ADVANCE="no")
Jerry DeLisle [Mon, 19 Dec 2005 07:02:05 +0000 (07:02 +0000)]
re PR libfortran/25463 (T edit descriptor and ADVANCE="no")

2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25463
* gfortran.dg/advance.f90: New test.

From-SVN: r108785

18 years agore PR libfortran/25463 (T edit descriptor and ADVANCE="no")
Jerry DeLisle [Mon, 19 Dec 2005 06:52:33 +0000 (06:52 +0000)]
re PR libfortran/25463 (T edit descriptor and ADVANCE="no")

2005-12-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25463
* io/transfer.c (finalize_transfer): Fix execution order so that
next_record is set to zero in all cases.

From-SVN: r108784

18 years agonatPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.
Anthony Green [Mon, 19 Dec 2005 02:54:19 +0000 (02:54 +0000)]
natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.

2005-12-18  Anthony Green  <green@redhat.com>

* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress):
New helper function.
(setOption): Use getLocalAddress.  Don't downcast value to
InetAddress.
(getOption): Use getLocalAddress.

From-SVN: r108779

18 years agoFixed typo in changelog.
Kenneth Zadeck [Mon, 19 Dec 2005 02:36:45 +0000 (02:36 +0000)]
Fixed typo in changelog.

From-SVN: r108778

18 years agoflow.c (update_life_info, [...]): Fixed latent bug that could happen if update_life_i...
Kenneth Zadeck [Mon, 19 Dec 2005 02:35:44 +0000 (02:35 +0000)]
flow.c (update_life_info, [...]): Fixed latent bug that could happen if update_life_info was called with a blocks...

2005-12-17  Kenneth Zadeck <zadeck@naturalbridge.com>

        * flow.c (update_life_info, count_or_remove_death_notes): Fixed
latent bug that could happen if update_life_info was called with a
blocks parameter and the call to cleanup_cfg actually deleted one
of those blocks.

From-SVN: r108777

18 years agotree-ssa-structalias.c (update_alias_info): Remove handling of may_be_aliased (SSA_NA...
Zdenek Dvorak [Mon, 19 Dec 2005 00:56:31 +0000 (01:56 +0100)]
tree-ssa-structalias.c (update_alias_info): Remove handling of may_be_aliased (SSA_NAME_VAR (op)) case.

* tree-ssa-structalias.c (update_alias_info): Remove handling
of may_be_aliased (SSA_NAME_VAR (op)) case.

From-SVN: r108776

18 years agoc++config: Add in revised namespace associations.
Benjamin Kosnik [Mon, 19 Dec 2005 00:56:05 +0000 (00:56 +0000)]
c++config: Add in revised namespace associations.

2005-12-18  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/c++config: Add in revised namespace associations.
_GLIBCXX_BEGIN_NAMESPACE: New macro.
_GLIBCXX_END_NAMESPACE: Same.
_GLIBCXX_BEGIN_NESTED_NAMESPACE: Same.
_GLIBCXX_END_NESTED_NAMESPACE: Same.
* acinclude.m4 (GLIBCXX_ENABLE_SYMVERS]): Add gnu-versioned-namespace.
* configure: Regenerated.
* config.h.in: Same.
* config/abi/pre/gnu-versioned-namespace.ver: New.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.7): Add exports for nested
debug mode items.
* include/Makefile.am (${host_builddir}/c++config.h): Fill in
values for __GLIBCXX__ and _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION.
* include/Makefile.in: Regnerate.
* src/compatibility.cc: Alias new, nested definitions to exported
symbols from non-nested __gnu_debug.
* src/Makefile.am:  Add in ENABLE_SYMVERS_GNU_NAMESPACE.
* src/Makefile.in: Regenerate.

* docs/html/debug_mode.html: Revise for nested design.
* docs/html/debug.html: Use debug qualifications instead of
__gnu_debug.
* docs/html/configopts.html: Revise documentation for
--enable-symvers.

* include/debug/formatter: Simplify namespace qualifications for
current, nested-only reality. Add top-level namespace alias,
namespace debug, for debug-mode containers.
* include/debug/safe_iterator.h: Same.
* include/debug/set.h: Same.
* include/debug/hash_multimap.h: Same.
* include/debug/hash_set.h: Same.
* include/debug/bitset
* include/debug/safe_sequence.h: Same.
* include/debug/multiset.h: Same.
* include/debug/safe_base.h: Same.
* include/debug/functions.h: Same.
* include/debug/safe_iterator.tcc
* include/debug/hash_multiset.h: Same.
* include/debug/vector
* include/debug/map.h: Same.
* include/debug/deque
* include/debug/hash_map.h: Same.
* include/debug/string
* include/debug/macros.h: Same.
* include/debug/list
* include/debug/debug.h: Same.
* include/debug/multimap.h: Same.
* src/debug.cc: Same.
* testsuite/23_containers/vector/invalidation/1.cc: Cleanups.
* testsuite/23_containers/vector/invalidation/2.cc: Same.
* testsuite/23_containers/vector/invalidation/3.cc: Same.
* testsuite/23_containers/vector/invalidation/4.cc: Same.
* testsuite/23_containers/deque/invalidation/1.cc: Same.
* testsuite/23_containers/deque/invalidation/2.cc: Same.
* testsuite/23_containers/deque/invalidation/3.cc: Same.
* testsuite/23_containers/deque/invalidation/4.cc: Same.
* testsuite/23_containers/multiset/invalidation/1.cc: Same.
* testsuite/23_containers/multiset/invalidation/2.cc: Same.
* testsuite/23_containers/multimap/invalidation/1.cc: Same.
* testsuite/23_containers/multimap/invalidation/2.cc: Same.
* testsuite/23_containers/bitset/invalidation/1.cc: Same.
* testsuite/23_containers/bitset/cons/16020.cc: Same.
* testsuite/23_containers/bitset/operations/13838.cc: Same.
* testsuite/23_containers/list/invalidation/1.cc: Same.
* testsuite/23_containers/list/invalidation/2.cc: Same.
* testsuite/23_containers/list/invalidation/3.cc: Same.
* testsuite/23_containers/list/invalidation/4.cc: Same.
* testsuite/23_containers/set/invalidation/1.cc: Same.
* testsuite/23_containers/set/invalidation/2.cc: Same.
* testsuite/23_containers/map/invalidation/1.cc: Same.
* testsuite/23_containers/map/invalidation/2.cc: Same.
* testsuite/23_containers/map/insert/16813.cc: Same.

* include/bits/basic_ios.h: Use _GLIBCXX_BEGIN_NAMESPACE(std) and
friends.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_algobase.h: Same.
* include/bits/localefwd.h: Same.
* include/bits/valarray_array.tcc: Same.
* include/bits/valarray_after.h: Same.
* include/bits/gslice_array.h: Same.
* include/bits/stl_queue.h: Same.
* include/bits/gslice.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/bits/locale_classes.h: Same.
* include/bits/stl_set.h: Same.
* include/bits/locale_facets.h: Same.
* include/bits/stl_stack.h: Same.
* include/bits/stl_iterator_base_types.h: Same.
* include/bits/stl_heap.h: Same.
* include/bits/indirect_array.h: Same.
* include/bits/atomicity.h: Same.
* include/bits/stream_iterator.h: Same.
* include/bits/concurrence.h: Same.
* include/bits/basic_string.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_pair.h: Same.
* include/bits/basic_ios.tcc: Same.
* include/bits/stl_raw_storage_iter.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/stl_numeric.h: Same.
* include/bits/ios_base.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/istream.tcc: Same.
* include/bits/postypes.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/mask_array.h: Same.
* include/bits/stl_uninitialized.h: Same.
* include/bits/ostream.tcc: Same.
* include/bits/slice_array.h: Same.
* include/bits/boost_concept_check.h: Same.
* include/bits/sstream.tcc: Same.
* include/bits/stl_iterator_base_funcs.h: Same.
* include/bits/char_traits.h: Same.
* include/bits/stl_algo.h: Same.
* include/bits/stringfwd.h: Same.
* include/bits/c++config
* include/bits/stl_iterator.h: Same.
* include/bits/valarray_array.h: Same.
* include/bits/stl_tempbuf.h: Same.
* include/bits/vector.tcc: Same.
* include/bits/deque.tcc: Same.
* include/bits/stl_bvector.h: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/list.tcc: Same.
* include/bits/streambuf_iterator.h: Same.
* include/bits/valarray_before.h: Same.
* include/bits/stl_construct.h: Same.
* include/bits/stl_function.h: Same.
* include/bits/cpp_type_traits.h: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/allocator.h: Same.
* include/bits/stl_tree.h: Same.
* include/bits/fstream.tcc: Same.
* include/bits/stl_relops.h: Same.
* include/bits/functexcept.h: Same.
* include/std/std_valarray.h: Same.
* include/std/std_iostream.h: Same.
* include/std/std_streambuf.h: Same.
* include/std/std_bitset.h: Same.
* include/std/std_iosfwd.h: Same.
* include/std/std_iomanip.h: Same.
* include/std/std_fstream.h: Same.
* include/std/std_limits.h: Same.
* include/std/std_stdexcept.h: Same.
* include/std/std_istream.h: Same.
* include/std/std_complex.h: Same.
* include/std/std_memory.h: Same.
* include/std/std_ostream.h: Same.
* include/std/std_sstream.h: Same.
* include/c_std/std_csignal.h: Same.
* include/c_std/std_cstdlib.h: Same.
* include/c_std/std_cstdio.h: Same.
* include/c_std/std_cstdarg.h: Same.
* include/c_std/std_cctype.h: Same.
* include/c_std/std_cmath.h: Same.
* include/c_std/std_ctime.h: Same.
* include/c_std/std_clocale.h: Same.
* include/c_std/std_csetjmp.h: Same.
* include/c_std/std_cwchar.h: Same.
* include/c_std/std_cstring.h: Same.
* include/c_std/std_cstddef.h: Same.
* include/c_std/std_cwctype.h: Same.
* include/backward/iterator.h: Same.
* include/backward/set.h: Same.
* include/backward/hashtable.h: Same.
* include/backward/fstream.h: Same.
* include/backward/tempbuf.h: Same.
* include/backward/istream.h: Same.
* include/backward/bvector.h: Same.
* include/backward/stack.h: Same.
* include/backward/rope.h: Same.
* include/backward/complex.h: Same.
* include/backward/ostream.h: Same.
* include/backward/heap.h: Same.
* include/backward/iostream.h: Same.
* include/backward/function.h: Same.
* include/backward/multimap.h: Same.
* include/backward/pair.h: Same.
* include/backward/stream.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/strstream
* include/backward/slist.h: Same.
* include/backward/tree.h: Same.
* include/backward/vector.h: Same.
* include/backward/deque.h: Same.
* include/backward/multiset.h: Same.
* include/backward/list.h: Same.
* include/backward/map.h: Same.
* include/backward/algobase.h: Same.
* include/backward/hash_map.h: Same.
* include/backward/algo.h: Same.
* include/backward/queue.h: Same.
* include/backward/streambuf.h: Same.
* src/allocator-inst.cc: Same.
* src/complex_io.cc: Same.
* src/localename.cc: Same.
* src/limits.cc: Same.
* src/ios_failure.cc: Same.
* src/locale-misc-inst.cc: Same.
* src/streambuf-inst.cc: Same.
* src/misc-inst.cc: Same.
* src/concept-inst.cc: Same.
* src/ios_locale.cc: Same.
* src/pool_allocator.cc: Same.
* src/fstream-inst.cc: Same.
* src/istream-inst.cc: Same.
* src/string-inst.cc: Same.
* src/locale_init.cc: Same.
* src/ctype.cc: Same.
* src/strstream.cc: Same.
* src/ostream-inst.cc: Same.
* src/functexcept.cc: Same.
* src/streambuf.cc: Same.
* src/sstream-inst.cc: Same.
* src/ios.cc: Same.
* src/valarray-inst.cc: Same.
* src/locale.cc: Same.
* src/tree.cc: Same.
* src/stdexcept.cc: Same.
* src/istream.cc: Same.
* src/compatibility.cc: Same.
* src/locale-inst.cc: Same.
* src/globals_io.cc: Same.
* src/list.cc: Same.
* src/ios_init.cc: Same.
* src/locale_facets.cc: Same.
* src/codecvt.cc: Same.

* include/tr1/unordered_map: Use _GLIBCXX_BEGIN_NAMESPACE(tr1).
* include/tr1/boost_shared_ptr.h: Same.
* include/tr1/tuple
* include/tr1/hashtable
* include/tr1/type_traits_fwd.h: Same.
* include/tr1/unordered_set
* include/tr1/functional
* include/tr1/ref_fwd.h: Same.
* include/tr1/utility
* include/tr1/type_traits
* include/tr1/array

* include/ext/hashtable.h: Use _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx).
* include/ext/typelist.h: Same.
* include/ext/hash_map: Same.
* include/ext/rc_string_base.h: Same.
* include/ext/pool_allocator.h: Same.
* include/ext/iterator: Same.
* include/ext/rb_tree: Same.
* include/ext/numeric: Same.
* include/ext/vstring.tcc: Same.
* include/ext/sso_string_base.h: Same.
* include/ext/stdio_filebuf.h: Same.
* include/ext/algorithm: Same.
* include/ext/codecvt_specializations.h: Same.
* include/ext/new_allocator.h: Same.
* include/ext/array_allocator.h: Same.
* include/ext/vstring_util.h: Same.
* include/ext/vstring_fwd.h: Same.
* include/ext/mt_allocator.h: Same.
* include/ext/debug_allocator.h: Same.
* include/ext/slist: Same.
* include/ext/stdio_sync_filebuf.h: Same.
* include/ext/hash_fun.h: Same.
* include/ext/malloc_allocator.h: Same.
* include/ext/functional: Same.
* include/ext/bitmap_allocator.h: Same.
* include/ext/pod_char_traits.h: Same.
* include/ext/vstring.h: Same.
* include/ext/ropeimpl.h: Same.
* include/ext/hash_set: Same.
* include/ext/memory: Same.
* include/ext/rope: Same.
* include/bits/boost_concept_check.h: Same.
* include/bits/stl_iterator.h: Same.
* include/bits/char_traits.h: Same.
* include/bits/cpp_type_traits.h: Same.
* include/bits/concurrence.h: Same.
* include/bits/atomicity.h: Same.
* config/locale/gnu/numeric_members.cc: Same.
* config/locale/gnu/collate_members.cc: Same.
* config/locale/gnu/ctype_members.cc: Same.
* config/locale/gnu/c_locale.cc: Same.
* config/locale/gnu/codecvt_members.cc: Same.
* config/locale/gnu/messages_members.cc: Same.
* config/locale/gnu/c_locale.h: Same.
* config/locale/gnu/monetary_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
* config/locale/ieee_1003.1-2001/c_locale.h: Same.
* config/locale/generic/numeric_members.cc: Same.
* config/locale/generic/collate_members.cc: Same.
* config/locale/generic/ctype_members.cc: Same.
* config/locale/generic/c_locale.cc: Same.
* config/locale/generic/codecvt_members.cc: Same.
* config/locale/generic/messages_members.cc: Same.
* config/locale/generic/c_locale.h: Same.
* config/locale/generic/monetary_members.cc: Same.
* config/locale/generic/time_members.cc: Same.
* config/os/aix/atomicity.h: Same.
* config/os/irix/atomicity.h: Same.
* config/cpu/powerpc/atomicity.h: Same.
* config/cpu/cris/atomicity.h: Same.
* config/cpu/ia64/atomicity.h: Same.
* config/cpu/alpha/atomicity.h: Same.
* config/cpu/m68k/atomicity.h: Same.
* config/cpu/hppa/atomicity.h: Same.
* config/cpu/mips/atomicity.h: Same.
* config/cpu/sparc/atomicity.h: Same.
* config/cpu/i386/atomicity.h: Same.
* config/cpu/i486/atomicity.h: Same.
* config/cpu/sh/atomicity.h: Same.
* config/cpu/generic/atomicity.h: Same.
* config/cpu/s390/atomicity.h: Same.
* config/io/c_io_stdio.h: Same.
* config/io/basic_file_stdio.cc: Same.
* config/io/basic_file_stdio.h: Same.
* src/misc-inst.cc: Same.
* src/concept-inst.cc: Same.
* src/ext-inst.cc: Same.
* src/string-inst.cc: Same.
* src/pool_allocator.cc: Same.
* src/bitmap_allocator.cc: Same.
* src/mt_allocator.cc: Same.
* libsupc++/exception: Same.
* libsupc++/vterminate.cc: Same.
* testsuite/ext/hash_map/1.cc: Explicitly qualify __gnu_cxx::hash_map.
* testsuite/ext/hash_map/14648.cc: Same.

* libsupc++/eh_alloc.cc: Correct comment line spacing.

From-SVN: r108775

18 years agoDaily bump.
GCC Administrator [Mon, 19 Dec 2005 00:17:49 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108772

18 years agotree-flow.h (struct stmt_ann_d): Remove makes_aliased_loads and makes_aliased_stores...
Zdenek Dvorak [Mon, 19 Dec 2005 00:12:14 +0000 (01:12 +0100)]
tree-flow.h (struct stmt_ann_d): Remove makes_aliased_loads and makes_aliased_stores fields.

* tree-flow.h (struct stmt_ann_d): Remove
makes_aliased_loads and makes_aliased_stores fields.
* tree-ssa-ccp.c (likely_value): Do not use makes_aliased_stores
and makes_aliased_loads fields.
* tree-ssa-dom.c (eliminate_redundant_computations): Do not
use makes_aliased_stores.
* tree-ssa-operands.c (clobbered_aliased_loads,
clobbered_aliased_stores, ro_call_aliased_loads): Removed.
(build_ssa_operands, add_stmt_operand, add_call_clobber_ops,
add_call_read_ops): Do not set makes_aliased_stores and
makes_aliased_loads fields.
* tree-ssa.c (verify_ssa): Do not verify makes_aliased_stores
field.

From-SVN: r108766

18 years agodarwin.h: Don't include darwin-sections.def to declare global variables...
Geoffrey Keating [Sun, 18 Dec 2005 23:32:52 +0000 (23:32 +0000)]
darwin.h: Don't include darwin-sections.def to declare global variables...

* config/darwin.h: Don't include darwin-sections.def to declare
global variables; instead create darwin_section_enum.
(darwin_section_enum): New.
(darwin_sections): New.
* config/darwin.c: Don't include darwin-sections.def to define
global variables.
(darwin_sections): New.
(output_objc_section_asm_op): Rewrite to take advantage of
darwin_sections.
(darwin_init_sections): Rewrite to use darwin_sections.
(machopic_output_indirection): Update for darwin_sections array.
(machopic_select_section): Likewise.
(machopic_select_rtx_section): Likewise.
(machopic_asm_out_constructor): Likewise.
(machopic_asm_out_destructor): Likewise.
(darwin_file_end): Likewise.
* config/rs6000/rs6000.c (machopic_output_stub): Likewise.
* config/i386/i386.c (machopic_output_stub): Likewise.

From-SVN: r108765

18 years agore PR tree-optimization/25481 (Segfault in tree-ssa-structalias.c)
Richard Guenther [Sun, 18 Dec 2005 22:20:31 +0000 (22:20 +0000)]
re PR tree-optimization/25481 (Segfault in tree-ssa-structalias.c)

2005-12-18  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/25481
* tree-ssa-structalias.c (handle_ptr_arith): Handle
accesses we don't have a varinfo for.

* gcc.dg/torture/pr25481.c: New testcase.

From-SVN: r108763

18 years agooptabs.c (init_floating_libfuncs): Handle decimal float modes.
Jon Grimm [Sun, 18 Dec 2005 21:40:47 +0000 (21:40 +0000)]
optabs.c (init_floating_libfuncs): Handle decimal float modes.

* optabs.c (init_floating_libfuncs): Handle decimal float modes.
(init_optabs): Handle libfuncs for decimal float.
* genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT.
* stor-layout.c (int_mode_for_mode): Likewise.
* simplify-rtx.c (simplify_immed_subreg): Likewise.
(simplify_unary_operation_1): Skip optimisations for decimal float
modes.
* varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT.
* emit-rtl.c (gen_const_vector): Add assertion check.
(init_emit_once): Populate const_tiny_rtx with constants in each
decimal float mode.
* expmed.c (extract_high_half, expand_mult_highpart_optab,
expand_mult_highpart): Assert that mode is not a scalar float
mode.
* expr.c (convert_move): Handle conversion between decimal and
binary floats of the same size.
* convert.c (convert_to_real): Consider decimal float types when
folding.
* dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to
describe decimal floating point types.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>
Co-Authored-By: Janis Johnson <janis187@us.ibm.com>
From-SVN: r108762

18 years agore PR rtl-optimization/21041 (ICE: output_operand: Cannot decompose address)
Ulrich Weigand [Sun, 18 Dec 2005 16:06:55 +0000 (16:06 +0000)]
re PR rtl-optimization/21041 (ICE: output_operand: Cannot decompose address)

PR rtl-optimization/21041
* reload.c (find_reloads_subreg_address): Replace paradoxical
subreg of MEM by widened access only if the resulting memory
is properly aligned, even on !STRICT_ALIGNMENT targets.

PR rtl-optimization/21041
* gcc.dg/pr21041.c: New test.

From-SVN: r108760

18 years agostl_algobase.h (__copy_normal::copy_n): Uglify to __copy_n.
Paolo Carlini [Sun, 18 Dec 2005 15:53:10 +0000 (15:53 +0000)]
stl_algobase.h (__copy_normal::copy_n): Uglify to __copy_n.

2005-12-18  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h (__copy_normal::copy_n): Uglify
to __copy_n.
(__copy_backward::copy_b): Likewise to __copy_b.
(__copy_backward_normal::copy_b_n): Likewise to __copy_b_n.
(copy, __copy_backward_aux, copy_backward): Adjust.

2005-12-18  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h (partial_sort_copy): Add
_BinaryPredicateConcept<_Compare, _InputValueType, _OutputValueType>
(merge, set_union, set_symmetric_difference): Add
_OutputIteratorConcept<_OutputIterator, _ValueType2>.
(binary_search): Remove redundant _BinaryPredicateConcept<_Compare,
_ValueType, _Tp>, taken care by lower_bound.
* include/bits/stl_algo.h: Cosmetic changes.

2005-12-18  Paolo Carlini  <pcarlini@suse.de>
    Howard Hinnant  <hhinnant@apple.com>

* include/bits/stl_algo.h (merge, includes, set_union,
set_intersection, set_difference, set_symmetric_difference):
Fix concept checks.

2005-12-18  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h (partial_sort_copy, lower_bound,
upper_bound, equal_range, binary_search): Fix concept checks.

Co-Authored-By: Howard Hinnant <hhinnant@apple.com>
From-SVN: r108758

18 years agotree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
Andreas Krebbel [Sun, 18 Dec 2005 15:44:00 +0000 (15:44 +0000)]
tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.

2005-12-18  Andreas Krebbel  <krebbel1@de.ibm.com>

* tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.

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

From-SVN: r108755

18 years agore PR fortran/25018 (Segfault with simple expression)
Paul Thomas [Sun, 18 Dec 2005 14:01:00 +0000 (14:01 +0000)]
re PR fortran/25018 (Segfault with simple expression)

2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25018
*expr.c(check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25018
*gfortran.dg/initialization_1.f90: New test.
*gfortran.dg/enum_5.f90: Change dg-error to new message.
*gfortran.dg/g77/980616-0.f: The same.

From-SVN: r108753

18 years agogcse.c (gcse_main, [...]): Fix non-GNU-isms from the 2005-12-17 patch to renumber...
Steven Bosscher [Sun, 18 Dec 2005 11:39:02 +0000 (11:39 +0000)]
gcse.c (gcse_main, [...]): Fix non-GNU-isms from the 2005-12-17 patch to renumber the entry and exit blocks.

* gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
the 2005-12-17 patch to renumber the entry and exit blocks.

From-SVN: r108751

18 years ago* doc/objc.texi (Type encoding): Fix typo.
Gabriel Dos Reis [Sun, 18 Dec 2005 09:49:15 +0000 (09:49 +0000)]
* doc/objc.texi (Type encoding): Fix typo.

From-SVN: r108749

18 years agopost: New.
Benjamin Kosnik [Sun, 18 Dec 2005 09:39:23 +0000 (09:39 +0000)]
post: New.

2005-12-18  Benjamin Kosnik  <bkoz@redhat.com>

* config/abi/post: New.
* config/abi/*-linux-gnu: Move to..
* config/abi/post/*-linux-gnu: ... here.
* config/abi/pre: New.
* config/linker-map.gnu: Move to ..
* config/abi/pre/gnu.ver: ... here.
* config/linker-map.dummy: Move to..
* config/abi/pre/none.ver: ... here.
* src/Makefile.am: Use ENABLE_SYMVERS_GNU,
ENABLE_SYMVERS_DARWIN, ENABLE_SYMVERS_GNU_NAMESPACE.
Use libstdc++-symbols.ver instead of libstdc++-symbol.ver.
* src/Makefile.in: Regnerate.
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Adjust paths for new
placement of abi baseline files.
(GLIBCXX_ENABLE_SYMVERS): Add ENABLE_SYMVERS, ENABLE_SYMVERS_GNU,
ENABLE_SYMVERS_DARWIN.  SYMVER_MAP to SYMVER_FILE.
* configure: Regnerate.
* config.h.in: Regnerate.
* src/compatibility.cc: Adjust macro usage.

From-SVN: r108748

18 years agotree-tailcall.c (find_tail_calls): Use XNEW.
Gabriel Dos Reis [Sun, 18 Dec 2005 09:26:53 +0000 (09:26 +0000)]
tree-tailcall.c (find_tail_calls): Use XNEW.

        * tree-tailcall.c (find_tail_calls): Use XNEW.
        * tree-ssa-dom.c (allocate_edge_info): Use XCNEW.
        (free_all_edge_infos): Use explicit cast to convert from void
        * *.
        (vrp_free): Likewise.
        (dom_opt_finalize_block): Likewise.
        (record_equivalences_from_incoming_edge): Likewise.
        (thread_across_edge): Likewise.  Use XCNEWVEC.
        (record_cond): Use XCNEW.
        (record_conditions): Use XNEWVEC.
        (record_edge_info): Use XCNEWVEC.
        (lookup_avail_expr): Use XNEW.
        (record_range): Likewise.  Use GGC_NEW.
        * tree-nested.c (var_map_hash): Use explicit cast to convert
        * from
        void *.
        (var_map_eq): Likewise.
        (lookup_field_for_decl): Likewise.
        (convert_nonlocal_reference): Likewise.
        (convert_local_reference): Likewise.
        (convert_nl_goto_reference): Likewise.
        (convert_nl_goto_receiver): Likewise.
        (convert_call_expr): Likewise.
        (convert_tramp_reference): Likewise.
        (lookup_tramp_for_decl): Likewise.Use GGC_NEW.
        (convert_nl_goto_reference): Likewise.
        (lookup_field_for_decl): Use GGC_NEW.
        (create_nesting_tree): Use GGC_CNEW.
        * tree-ssa-phiopt.c (blocks_in_phiopt_order): Use XNEWVEC.
        * tree-ssa-alias.c (init_alias_info): Use XCNEW.
        (create_alias_map_for): Likewise.
        (setup_pointers_and_addressables): Use XCNEWVEC.
        (get_ptr_info): Use GGC_NEW.
        (used_part_map_eq): Use explicit cast to convert from void *.
        (up_lookup): Likewise.
        (up_insert): Use XNEW.
        (get_or_create_used_part_for): Use XCNEW.
        (get_tmt_for): Likewise.
        * tree-ssa-operands.c (ssa_operand_alloc): Use GGC_NEW.
        * tree-ssa-pre.c (phi_trans_add): Use XNEW.
        (bitmap_set_new): Use explicit cast to convert from void *.
        (set_new): Likewise.
        (insert_into_set): Likewise.
        (pool_copy_list): Likewise.
        (phi_translate): Likewise.
        (create_value_expr_from): Likewise.
        (insert_aux): Use XCNEWVEC.
        (compute_avail): Use XNEWVEC.
        * tree-ssa-live.c (calculate_live_on_entry): Likewise.
        (sort_coalesce_list): Likewise.
        (build_tree_conflict_graph): Use XCNEWVEC.
        * tree-ssa-dce.c (tree_dce_init): Use XNEWVEC.
        * tree-ssa-copy.c (init_copy_prop): Likewise.
        (fini_copy_prop): Likewise.
        * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
        * XNEW
        and XCNEWVEC.
        (record_equiv): Use XNEW.
        (uncprop_into_successor_phis): Use explicit cast to convert
        * from
        void *.
        (uncprop_initialize_block): Likewise.

From-SVN: r108747

18 years agore PR tree-optimization/24378 (gcc.dg/vect/pr24300.c (test for excess errors) fails)
Dorit Nuzman [Sun, 18 Dec 2005 08:46:30 +0000 (08:46 +0000)]
re PR tree-optimization/24378 (gcc.dg/vect/pr24300.c (test for excess errors) fails)

        PR tree-optimization/24378
        * tree-vect-transform.c (vect_transform_loop): Create single-predecessor
        basic-block after loop-versioning.

From-SVN: r108746

18 years agore PR libstdc++/25472 (--disable-hosted-libstdcxx does not work)
Benjamin Kosnik [Sun, 18 Dec 2005 08:08:07 +0000 (08:08 +0000)]
re PR libstdc++/25472 (--disable-hosted-libstdcxx does not work)

2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>

        * src/io-inst.cc: Separate instantiations into...
        * src/ios-inst.cc: .. this.
        * src/iostream-inst.cc: ... and this.
        * src/Makefile.am (sources): Update.
        * src/Makefile.in: Regenerate.

2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/25472
        * include/c_std/std_cstdlib.h: Fix for freestanding.

2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/libstdc++-dg/normal.exp: Rename to..
* testsuite/libstdc++-dg/conformance.exp: ... this.

From-SVN: r108743

18 years agotree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code to simplify SWITCH_EXPR_...
Jeff Law [Sun, 18 Dec 2005 07:23:08 +0000 (00:23 -0700)]
tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code to simplify SWITCH_EXPR_CODE moved from here to ...

* tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Code
to simplify SWITCH_EXPR_CODE moved from here to ...
* tree-ssa-forwprop.c (simplify_switch_expr): Here.
(tree-ssa-forward_propagate_single_use_vars): Call
simplify_switch_expr when appropriate.

From-SVN: r108738

18 years agoobjc.texi (Type encoding): Add documentation about encoding complex types and _Bool.
Andrew Pinski [Sun, 18 Dec 2005 04:48:28 +0000 (04:48 +0000)]
objc.texi (Type encoding): Add documentation about encoding complex types and _Bool.

2005-12-17  Andrew Pinski  <pinskia@physics.uc.edu>

        * doc/objc.texi (Type encoding): Add documentation about encoding
        complex types and _Bool.

From-SVN: r108737

18 years agotree-vn.c (vn_add): Use XNEW.
Gabriel Dos Reis [Sun, 18 Dec 2005 01:19:20 +0000 (01:19 +0000)]
tree-vn.c (vn_add): Use XNEW.

        * tree-vn.c (vn_add): Use XNEW.
        * tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC.
        (ccp_fold): Likewise.
        (fold_stmt_r): Use explicit cast to convert from void *.
        * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC.
        (new_temp_expr_table): Likewise.
        * gimplify.c (lookup_tmp_var): Use XNEW.
        (gimplify_asm_expr): Use explcit cast to convert from void *.
        * tree-into-ssa.c (get_ssa_name_ann): Likewise.
        (get_def_blocks_for): Use XNEW.
        (add_to_repl_tbl): Likewise.
        (mark_def_sites): Use explicit cast to convert from void *.
        (def_blocks_free): Likewise.
        (mark_def_sites_initialize_block): Likewise.
        (update_ssa): Use XNEWVEC.
        * tree-dfa.c (create_var_ann): Use GGC_NEW.
        (create_stmt_ann): Likewise.
        (create_tree_ann): Likewise.
        (referenced_var_insert): Likewise.
        (set_default_def): Likewise.
        (referenced_var_lookup_if_exists): Use explicit cast to
        * convert
        from void *.
        (referenced_var_lookup): Likewise.
        (default_def): Likewise.
        (set_default_def): Likewise.
        * tree-cfg.c (create_bb): Likewise.
        (edge_to_cases_cleanup): Likewise.
        (verify_node_sharing): Likewise.
        (record_switch_edge): Use XNEW.
        (cleanup_dead_labels): Use XCNEWVEC.
        (tree_duplicate_sese_region): Use XNEWVEC.
        * tree-scalar-evolution.c (get_instantiated_value): Likewise.
        * tree-ssa.c (verify_ssa): Use XCNEWVEC.
        (int_tree_map_eq): Use explicit cast to convert from void *.
        * libgcov.c (gcov_exit): Use explicit cast to convert from
        * void *.
        (__gcov_execl): Likewise.
        (__gcov_execlp): Likewise.
        (__gcov_execle): Likewise.
        * tree-eh.c (struct_ptr_eq): Likewise.
        (struct_ptr_hash): Likewise.
        (lookup_stmt_eh_region_fn): Likewise.
        (outside_finally_tree): Likewise.
        (find_goto_replacement): Likewise.
        (make_eh_edge): Likewise.
        (mark_eh_edge): Likewise.
        (add_stmt_to_eh_region_fn): Use GGC_NEW.
        (record_in_finally_tree): Use XNEW.
        (maybe_record_in_goto_queue): Use XRESIZEVEC.
        (lower_try_finally_copy): Use XCNEWVEC.

From-SVN: r108736

18 years agoDaily bump.
GCC Administrator [Sun, 18 Dec 2005 00:17:43 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108733

18 years agostl_vector.h (vector(const vector&)): Use _M_get_Tp_allocator.
Paolo Carlini [Sat, 17 Dec 2005 23:42:58 +0000 (23:42 +0000)]
stl_vector.h (vector(const vector&)): Use _M_get_Tp_allocator.

2005-12-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_vector.h (vector(const vector&)): Use
_M_get_Tp_allocator.
* include/bits/stl_deque.h (deque(const deque&)): Likewise.
(_M_destroy_data): Adjust.

2005-12-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_deque.h (deque<>::_M_erase_at_end,
_M_erase_at_begin, _M_destroy_data, _M_destroy_data_dispatch,
_M_destroy_data_aux): New, optimize erase at begin() / end() and
consistently use the "segmented iterator" optimization.
(deque<>::~deque(), resize, clear, _M_assign_aux, _M_fill_assign):
Use the above.
* include/bits/deque.tcc (deque<>::operator=, _M_assign_aux): Same.
(erase(iterator, iterator)): Likewise, clean-up.
(erase(iterator)): Tweak, don't call copy unnecessarily.
(_M_destroy_data_aux): Define.
* testsuite/23_containers/deque/modifiers/erase/1.cc: New.
* testsuite/23_containers/deque/modifiers/erase/2.cc: Likewise.

From-SVN: r108727

18 years agom68k.md (m68k_output_function_prologue): Always call dwarf2out_def_cfa.
Paul Brook [Sat, 17 Dec 2005 23:29:21 +0000 (23:29 +0000)]
m68k.md (m68k_output_function_prologue): Always call dwarf2out_def_cfa.

2005-12-17  Paul Brook  <paul@codesourcery.com>

* config/m68k/m68k.md (m68k_output_function_prologue): Always call
dwarf2out_def_cfa. Only add space for frame pointer to cfa_offset
when frame_pointer_needed.

From-SVN: r108725

18 years agotree-inline.c (copy_body_r): Use explicit cast when converting from void *.
Gabriel Dos Reis [Sat, 17 Dec 2005 20:45:46 +0000 (20:45 +0000)]
tree-inline.c (copy_body_r): Use explicit cast when converting from void *.

        * tree-inline.c (copy_body_r): Use explicit cast when
          converting
        from void *.
        (copy_bb): Likewise.
        (copy_edges_for_bb): Likewise.
        (remap_decl_1): Likewise.
        (estimate_num_insns_1): Likewise.
        * cgraph.c (hash_node): Use explicit cast when converting from
        void *.
        (eq_node): Likewise.
        (cgraph_create_node): Use GGC_CNEW.
        (cgraph_create_edge): Use GGC_NEW.
        (cgraph_remove_node): Use explicit cast when converting from
          void *.
        (hash_varpool_node): Likewise.
        (eq_varpool_node): Likewise.
        (cgraph_varpool_node): Use GGC_CNEW.
        * lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
        * tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
        (eq_scev_info): Use explicit cast when converting from void *.
        (find_var_scev_info): Likewise.
        (set_instantiated_value): Likewise.
        (gather_stats_on_scev_database_1): Likewise.
        * cfgloop.h (simple_loop_desc): Use explicit cast when
          converting
        from void *.
        * c-pch.c (c_common_write_pch): Use XNEWVEC.
        (c_common_read_pch): Likewise.
        * prefix.c (save_string): Use XNEWVEC.
        (translate_name): Use explicit cast when converting from void
          *.
        * c-ppoutput.c (print_line): Use explicit cast when converting
        from void *.
        (pp_dir_change): Likewise.
        * c-cppbuiltin.c (builtin_define_std): Likewise.
        (builtin_define_with_value): Likewise.
        (builtin_define_with_value_n): Likewise.
        (builtin_define_with_int_value): Likewise.
        (builtin_define_type_max): Likewise.
        * c-incpath.c (add_env_var_paths): Use XNEWVEC.
        (add_path): Use XNEW.
        * c-format.c (check_format_info_main): Use GGC_NEW.
        (format_type_warning): Use explicit cast when converting from
          void *.
        * c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
        xmalloc.
        (start_init): Likewise.
        * tree-flow-inline.h (first_referenced_var): Use explicit cast
        when converting from void *.
        (next_referenced_var): Likewise.
        * c-pragma.c (push_alignment): Use GGC_NEW instead of
          ggc_alloc.
        * gensupport.c (lookup_predicate): Use explicit cast to
          convert
        from void *.
        (init_predicate_table): Use XCNEW instead of xcalloc.
        * genpreds.c (process_define_predicate): Likewise.

From-SVN: r108723

18 years agore PR fortran/25458 ([4.1] Kind of constants in generic intrinsics)
Steven G. Kargl [Sat, 17 Dec 2005 17:30:26 +0000 (17:30 +0000)]
re PR fortran/25458 ([4.1] Kind of constants in generic intrinsics)

PR fortran/25458
* simplify.c (gfc_simplify_ibset, gfc_simplify_not): Add call to
twos_complement.

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

Co-Authored-By: Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
From-SVN: r108720

18 years agofloatformat.c (floatformat_i387_ext_is_valid): Use explicit cast to convert from...
Gabriel Dos Reis [Sat, 17 Dec 2005 17:21:34 +0000 (17:21 +0000)]
floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast to convert from "from".

        * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
        to convert from "from".
        (floatformat_to_double): Likewise.
        (floatformat_from_double): Use explicit cast to convert from "to".

From-SVN: r108717

18 years ago* Revert accidental commit to enum_5.f90.
Steven G. Kargl [Sat, 17 Dec 2005 17:15:09 +0000 (17:15 +0000)]
* Revert accidental commit to enum_5.f90.

From-SVN: r108716

18 years agodecl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonsta...
Steven G. Kargl [Sat, 17 Dec 2005 15:41:15 +0000 (15:41 +0000)]
decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonstandard intrinsic type declarations.

2005-12-17  Steven G. Kargl  <kargls@comcast.net>

* decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify
to report nonstandard intrinsic type declarations.

* gfortran.dg/imag_1.f: Fix nonstandard type declarations.
* gfortran.dg/nested_modules_1.f90: Ditto.
* gfortran.dg/hollerith_f95.f90: Ditto.
* gfortran.dg/select_5.f90: Ditto.
* gfortran.dg/secnds.f: Ditto.
* gfortran.dg/hollerith2.f90: Ditto.
* gfortran.dg/imag_2.f: Ditto.
* gfortran.dg/ftell_2.f90: Ditto.
* gfortran.dg/malloc_free_1.f90: Ditto.
* gfortran.dg/logint-1.f: Ditto.
* gfortran.dg/recursive_statement_functions.f90: Ditto.
* gfortran.dg/e_d_fmt.f90: Ditto.
* gfortran.dg/hollerith_legacy.f90: Ditto.
* gfortran.dg/logint-2.f: Ditto.
* gfortran.dg/enum_5.f90: Ditto.
* gfortran.dg/f2c_2.f90: Ditto.
* gfortran.dg/pr17143.f90: Ditto.
* gfortran.dg/namelist_14.f90: Ditto.
* gfortran.dg/logint-3.f: Ditto.
* gfortran.dg/spread_scalar_source.f90: Ditto.
* gfortran.dg/fmt_read_bz_bn.f90: Ditto.
* gfortran.dg/namelist_11.f: Ditto.
* gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto.
* gfortran.dg/g77/20010519-1.f
* gfortran.dg/g77/alpha1.f: Ditto.
* gfortran.dg/g77/990115-1.f: Ditto.
* gfortran.dg/g77/erfc.f: Ditto.
* gfortran.dg/g77/19990313-3.f: Ditto.
* gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto.
* gfortran.dg/g77/20010426.f: Ditto.
* gfortran.dg/g77/19990313-0.f: Ditto.
* gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto.
* gfortran.dg/g77/20000629-1.f: Ditto.
* gfortran.dg/g77/970125-0.f: Ditto.
* gfortran.dg/g77/8485.f: Ditto.
* gfortran.dg/g77/f90-intrinsic-bit.f: Ditto.
* gfortran.dg/g77/19990313-1.f: Ditto.
* gfortran.dg/g77/int8421.f: Ditto.
* gfortran.dg/g77/19990305-0.f: Ditto.
* gfortran.dg/g77/947.f: Ditto.
* gfortran.dg/g77/19990905-2.f: Ditto.
* gfortran.dg/g77/cabs.f: Ditto.
* gfortran.dg/g77/19990313-2.f: Ditto.
* gfortran.dg/g77/20020307-1.f: Ditto.
* gfortran.dg/g77/dcomplex.f: Ditto.
* gfortran.dg/g77/19990502-1.f: Ditto.
* gfortran.dg/g77/19981216-0.f: Ditto.
* gfortran.dg/common_4.f90: Ditto.
* gfortran.dg/entry_4.f90: Ditto.
* gfortran.dg/equiv_constraint_2.f90: Ditto.
* gfortran.dg/g77_intrinsics_funcs.f: Ditto.
* gfortran.dg/namelist_12.f: Ditto.
* gfortran.dg/scale_1.f90: Ditto.
* gfortran.dg/modulo_1.f90
* gfortran.dg/hollerith.f90: Ditto.
* gfortran.dg/direct_io_3.f90: Ditto.
* gfortran.dg/ftell_1.f90: Ditto.: Ditto.
* gfortran.dg/gnu_logical_1.F: Ditto.
* gfortran.dg/unf_io_convert_1.f90: Ditto.
* gfortran.dg/assign_1.f90: Ditto.
* gfortran.dg/g77_intrinsics_sub.f: Ditto.
* gfortran.dg/pr23095.f: Ditto.
* gfortran.dg/read_float_1.f90: Ditto.

From-SVN: r108715

18 years agovalarray_after.h (_Expr<>::operator[](slice)): Don't assume the closure implements...
Gabriel Dos Reis [Sat, 17 Dec 2005 15:36:35 +0000 (15:36 +0000)]
valarray_after.h (_Expr<>::operator[](slice)): Don't assume the closure implements general indexing...

        * include/bits/valarray_after.h (_Expr<>::operator[](slice)):
        Don't assume the closure implements general indexing, as a matter
        of fact, most of them don't.
        (_Expr<>::operator[](const gslice&)): Likewise.
        (_Expr<>::operator[](const valarray<bool>&)): Likewise.
        (_Expr<>::operator[](const valarray<size_t>&)): Likewise.
        (_Expr<>::shift): Fix thinko.
        (_Expr<>::cshift): Likewise.
        (_Expr<>::apply): Likewise.

From-SVN: r108714

18 years agobasic-block.h: Changed basic block numbering so that the entry block is 0 and the...
Daniel Berlin [Sat, 17 Dec 2005 13:40:27 +0000 (13:40 +0000)]
basic-block.h: Changed basic block numbering so that the entry block is 0 and the exit block is 1.

2005-12-17  Danny Berlin <dberlin@dberlin.org>
    Kenneth Zadeck <zadeck@naturalbridge.com>

* basic-block.h: Changed basic block numbering so that the entry
block is 0 and the exit block is 1.  Changed insn iterators so
that they are tolerant of blocks with no insns.
* regrename.c (copyprop_hardreg_forward): Changed basic block
numbering so that the entry block is 0 and the exit block is 1.
* sched-ebb.c (sehedule_ebbs): Ditto.
* tracer.c (branch_ratio_cutoff): Ditto.
* cfgloopmanip.c (fix_loop_structure): Ditto.
* cfghooks.c (verify_flow_info): Ditto.
* cfg.c (compact_blocks): Ditto.
* reorg.c (dbr_schedule): Ditto.
* flow.c (calculate_global_regs_live, libcall_dead_p): Ditto.
* dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
calculate_dominance_info): Ditto.
* cfganal.c (create_edge_list, print_edge_list,
flow_depth_first_order_compute, flow_dfs_compute_reverse_init,
flow_dfs_compute_reverse_add_bb, flow_dfs_compute_reverse_execute,
dfs_enumerate_from): Ditto.
* global.c (global_alloc, set_up_bb_rts_numbers): Ditto.
* ifcvt.c (find_if_case_2): Ditto.
* cfgbuild.c (control_flow_insn_p, count_basic_blocks,
find_basic_blocks): Ditto.
* predict.c (predict_loops, tree_bb_level_predictions,
predict_paths_leading_to, propagate_freq): Ditto.
* lcm.c (compute_antinout_edge, compute_laterin,
compute_available): Ditto.
* function.c (thread_prologue_and_epilogue_insns): Ditto.
* gcse.c (gcse_main, bypass_jumps): Ditto.
* profile.c (compute_branch_probabilities,
compute_value_histograms, branch_prob): Ditto.
* tree-flow-inline.h (bsi_start, bsi_after_labels,
bsi_last): Ditto.
* tree-ssa-phiopt.c (tree_ssa_phiopt,
blocks_in_phiopt_order): Ditto.
* bt-load.c (compute_defs_uses_and_gen, compute_kill,
compute_out, link_btr_uses, migrate_btr_defs): Ditto.
* tree-dfa.c (collect_dfa_stats): Ditto.
* cfgcleanup.c (try_forward_edges, try_optimize_cfg): Ditto.
* cfglayout.c (fixup_reorder_chain): Ditto.
* bb-reorder.c (reorder_basic_blocks, duplicate_computed_gotos,
partition_hot_cold_basic_blocks): Ditto.
* var-tracking.c (vt_find_locations): Ditto.
* cfgloop.c (flow_loops_cfg_dump, flow_loops_find, get_loop_body): Ditto.
* sched-rgn.c (compute_trg_info, init_regions, schedule_insns): Ditto.
* tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, make_edges
label_to_block_fn, print_loop_ir, tree_flow_call_edges_add): Ditto.
* tree-ssa-reassoc.c (init_reassoc): Ditto.
* cfgrtl.c (entry_of_function, rtl_verify_flow_info,
rtl_flow_call_edges_add, rtl_flow_call_edges_add): Ditto.
* df.c (df_analyze_1, hybrid_search, iterative_dataflow): Ditto
and removed unused reverse orders.
* df.h (): Ditto.
* combine.c: Fix document typo.

Co-Authored-By: Kenneth Zadeck <zadeck@naturalbridge.com>
From-SVN: r108713

18 years agotree-flow-inline.h (set_default_def, [...]): Kill.
Jan Hubicka [Sat, 17 Dec 2005 08:39:12 +0000 (09:39 +0100)]
tree-flow-inline.h (set_default_def, [...]): Kill.

* tree-flow-inline.h (set_default_def, default_def): Kill.
* tree-dfa.c (default_defs): New global variable.
(default_def, set_default_def): New functions.
* tree-ssa.c (init_tree_ssa, delete_tree_ssa): Add default_def hash.
* tree-flow.h (struct var_ann_d): Kill default_def field.
(set_default_def, default_def): Update prototype.
(default_defs): Declare.

From-SVN: r108712

18 years agotree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
Jeff Law [Sat, 17 Dec 2005 07:18:35 +0000 (00:18 -0700)]
tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.

* tree-ssa-dom.c (update_rhs_and_lookup_avail_expr): Kill.
(simplify_rhs_and_lookup_avail_expr): Kill.  Remnants moved
into tree-ssa-forwprop.c.
(eliminate_redundant_computations): Do not call
simplify_rhs_and_lookup_avail_expr anymore.
* tree-ssa-forwprop.c (simplify_not_neg_expr): New function
extracted from remnants of simplify_rhs_and_lookup_avail_expr.
(tree_ssa_forward_propagate_single_use_vars): Call
simplify_not_neg_expr appropriately.

From-SVN: r108711

18 years agoattr-weakref-1.c: Do not run on darwin.
Andreas Jaeger [Sat, 17 Dec 2005 06:17:06 +0000 (07:17 +0100)]
attr-weakref-1.c: Do not run on darwin.

        * gcc.dg/attr-weakref-1.c: Do not run on darwin.
        * gcc.dg/attr-weakref-1-darwin.c: New test to run on darwin.

From-SVN: r108710

18 years agore PR target/20016 (Compiling libgcc2.c with -Os for avr-gcc?)
Bernd Trog [Sat, 17 Dec 2005 03:09:43 +0000 (03:09 +0000)]
re PR target/20016 (Compiling libgcc2.c with -Os for avr-gcc?)

2005-12-16  Bernd Trog  <berndtrog@yahoo.com>

PR target/20016
* config/avr/t-avr: Add -Os to TARGET_LIBGCC2_CFLAGS.

From-SVN: r108708

18 years agore PR rtl-optimization/25456 (cc0 targets are broken.)
Kazu Hirata [Sat, 17 Dec 2005 02:05:07 +0000 (02:05 +0000)]
re PR rtl-optimization/25456 (cc0 targets are broken.)

PR rtl-optimization/25456
* struct-equiv.c (struct_equiv_improve_checkpoint): Replace
info->x_start with p->x_start.

From-SVN: r108707

18 years agoDaily bump.
GCC Administrator [Sat, 17 Dec 2005 00:17:43 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r108704

18 years agoupdate_web_docs_svn: Remove unnecessary files from source tree.
Joseph Myers [Fri, 16 Dec 2005 23:59:10 +0000 (23:59 +0000)]
update_web_docs_svn: Remove unnecessary files from source tree.

* update_web_docs_svn: Remove unnecessary files from source tree.
Use set -e.
* doc_exclude, update_web_docs, update_web_docs_libstdcxx: Remove.

From-SVN: r108698

18 years agosimplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug introduced 2005-12-16.
Alan Modra [Fri, 16 Dec 2005 23:50:42 +0000 (23:50 +0000)]
simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug introduced 2005-12-16.

* simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
introduced 2005-12-16.

From-SVN: r108697

18 years agore PR fortran/24268 (gfortran rejects valid format statement)
Jerry DeLisle [Fri, 16 Dec 2005 23:49:33 +0000 (23:49 +0000)]
re PR fortran/24268 (gfortran rejects valid format statement)

2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/24268
* gfortran.dg/fmt_white.f: New test.

From-SVN: r108696

18 years agore PR fortran/24268 (gfortran rejects valid format statement)
Jerry DeLisle [Fri, 16 Dec 2005 23:44:14 +0000 (23:44 +0000)]
re PR fortran/24268 (gfortran rejects valid format statement)

2005-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/24268
* io.c (format_lex): Allow whitespace within text of format specifier.

From-SVN: r108695

18 years ago* zh_CN.po: Update.
Joseph Myers [Fri, 16 Dec 2005 23:32:38 +0000 (23:32 +0000)]
* zh_CN.po: Update.

From-SVN: r108693