OSDN Git Service

pf3gnuchains/gcc-fork.git
18 years ago2006-01-02 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 2 Jan 2006 09:57:49 +0000 (09:57 +0000)]
2006-01-02  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/24645
* include/std/std_istream.h (basic_istream<>::_M_extract): New.
(operator>>(bool&), operator>>(short&), operator>>(unsigned short&),
operator>>(int&), operator>>(unsigned int&), operator>>(long&),
operator>>(unsigned long&), operator>>(long long&), operator>>
(unsigned long long&), operator>>(float&), operator>>(double&),
operator>>(long double&), operator>>(void*&)): Use it.
* include/bits/istream.tcc (basic_istream<>::_M_extract): Define.
* include/std/std_ostream.h (basic_ostream<>::_M_insert): New.
(operator<<(long), operator<<(unsigned long), operator<<(bool),
operator<<(short), operator<<(unsigned short), operator<<(int),
operator<<(unsigned int), operator<<(long long), operator<<
(unsigned long long), operator<<(double), operator<<(float),
operator<<(long double), operator<<(const void*): Use it.
* include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define.
* src/istream-inst.cc: Add _M_insert instantiations.
* src/ostream-inst.cc: Add _M_extract instantiations.
* config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7;
detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put,
money_put, etc., symbols to avoid exporting _M_insert symbols
@GLIBCXX_3.4.

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

18 years agochangelog rotated for gcc
bonzini [Mon, 2 Jan 2006 09:02:58 +0000 (09:02 +0000)]
changelog rotated for gcc

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

18 years agoDaily bump.
gccadmin [Mon, 2 Jan 2006 00:17:22 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
dje [Sun, 1 Jan 2006 22:00:46 +0000 (22:00 +0000)]
    * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
        (rs6000_split_compare_and_swapqhi): New.
        * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
        (sync_compare_and_swapqhi_internal): New.
        * config/rs6000/rs6000-protos.h: Declare.

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

18 years ago* Split the ChangeLog into years.
kargl [Sun, 1 Jan 2006 17:14:35 +0000 (17:14 +0000)]
* Split the ChangeLog into years.

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

18 years ago* Split the ChangeLog into years.
kargl [Sun, 1 Jan 2006 17:04:47 +0000 (17:04 +0000)]
* Split the ChangeLog into years.

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

18 years ago2006-01-01 Andreas Tobler <a.tobler@schweiz.ch>
andreast [Sun, 1 Jan 2006 16:36:56 +0000 (16:36 +0000)]
2006-01-01  Andreas Tobler  <a.tobler@schweiz.ch>
    Andrew Pinski <pinskia@physics.uc.edu>

* gcc.target/powerpc/darwin-abi-3.c: New file.
* gcc.target/powerpc/darwin-abi-4.c: Likewise.
* gcc.target/powerpc/darwin-abi-5.c: Likewise.
* gcc.target/powerpc/darwin-abi-6.c: Likewise.
* gcc.target/powerpc/darwin-abi-7.c: Likewise.
* gcc.target/powerpc/darwin-abi-8.c: Likewise.
* gcc.target/powerpc/darwin-abi-9.c: Likewise.
* gcc.target/powerpc/darwin-abi-10.c: Likewise.
* gcc.target/powerpc/darwin-abi-11.c: Likewise.

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

18 years agoIt's 2006, i think
dberlin [Sun, 1 Jan 2006 15:06:13 +0000 (15:06 +0000)]
It's 2006, i think

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

18 years ago2005-01-01 Daniel Berlin <dberlin@dberlin.org>
dberlin [Sun, 1 Jan 2006 14:40:38 +0000 (14:40 +0000)]
2005-01-01  Daniel Berlin  <dberlin@dberlin.org>

* gcc.dg/tree-ssa/loadpre1.c: New;
* gcc.dg/tree-ssa/loadpre2.c: New;
* gcc.dg/tree-ssa/loadpre3.c: New;
* gcc.dg/tree-ssa/loadpre4.c: New;
* gcc.dg/tree-ssa/loadpre5.c: New;
* gcc.dg/tree-ssa/loadpre6.c: New;
* gcc.dg/tree-ssa/loadpre7.c: New;
* gcc.dg/tree-ssa/loadpre8.c: New;
* gcc.dg/tree-ssa/loadpre9.c: New;

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

18 years ago * g++.dg/abi/thunk3.C: Adjust regexp to be 64bit safe.
nathan [Sun, 1 Jan 2006 13:29:46 +0000 (13:29 +0000)]
* g++.dg/abi/thunk3.C: Adjust regexp to be 64bit safe.
* g++.dg/abi/thunk4.C: Likewise.

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

18 years ago * gcc.dg/tree-ssa/loadpre6.c: Fix prototype of malloc to be
aj [Sun, 1 Jan 2006 12:39:51 +0000 (12:39 +0000)]
    * gcc.dg/tree-ssa/loadpre6.c: Fix prototype of malloc to be
        portable.

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

18 years ago2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 1 Jan 2006 02:45:22 +0000 (02:45 +0000)]
2005-12-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25594
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Test for comma to return
a null value (default). Revert patch of 25419 on 2005-12-28.

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

18 years agoDaily bump.
gccadmin [Sun, 1 Jan 2006 00:17:41 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago PR c++/25294
jakub [Sat, 31 Dec 2005 23:45:58 +0000 (23:45 +0000)]
PR c++/25294
* directives.c (do_pragma): If pragma line ends with multi-line
block comment, end the saved deferred pragma string before that
comment.  Handle embedded '\0' chars on the pragma line.

* gcc.dg/pragma-pack-3.c: New test.
* g++.dg/parse/pragma3.C: New test.

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

18 years ago2005-12-31 Andrew Pinski <pinskia@ohysics.uc.edu>
pinskia [Sat, 31 Dec 2005 19:38:05 +0000 (19:38 +0000)]
2005-12-31  Andrew Pinski  <pinskia@ohysics.uc.edu>

        PR tree-opt/25612
        * tree-ssa-pre.c (compute_avail): Treat the static chain decl as a
        parameter and pretend that it is defined in the entry basic block.

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

18 years ago PR middle-end/24827
danglin [Sat, 31 Dec 2005 02:12:34 +0000 (02:12 +0000)]
PR middle-end/24827
* gcc.dg/attr-weakref-1.c: Skip test on hppa*-*-hpux*.

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

18 years ago PR testsuite/25214
ghazi [Sat, 31 Dec 2005 00:46:05 +0000 (00:46 +0000)]
PR testsuite/25214
* gcc.target/i386/local2.c: Skip if ilp32 and -fpic/-fpic.

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

18 years agoinclude/
bwilson [Sat, 31 Dec 2005 00:29:42 +0000 (00:29 +0000)]
include/
* xtensa-config.h (XCHAL_HAVE_WIDE_BRANCHES): New.

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

18 years agoDaily bump.
gccadmin [Sat, 31 Dec 2005 00:17:32 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * tree-outof-ssa.c (_elim_graph): Change the type of STACK to
kazu [Fri, 30 Dec 2005 23:57:30 +0000 (23:57 +0000)]
* tree-outof-ssa.c (_elim_graph): Change the type of STACK to
VEC(int,heap).
(new_elim_graph, delete_elim_graph, elim_forward,
eliminate_phi): Use the VEC API on STACK.

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

18 years ago2005-12-29 Daniel Berlin <dberlin@dberlin.org>
dberlin [Fri, 30 Dec 2005 18:43:00 +0000 (18:43 +0000)]
2005-12-29  Daniel Berlin  <dberlin@dberlin.org>

* tree.h (VALUE_HANDLE_VUSES): New.
(struct tree_value_handle): Add vuses.

* tree-vn.c (struct val_expr_pair_d): Remove stmt, add vuses.
(vn_compute): Remove stmt argument.
Don't use vuses in hash value computation.
(val_expr_pair_eq): Compare vuse lists.
(copy_vuses_from_stmt): New function.
(shared_vuses_from_stmt): Ditto.
(vn_add): Rewrite in terms of vn_add_with_vuses.
(vn_add_with_vuses): New function.
(vn_lookup): Rewrite in terms of vn_lookup_with_vuses.
(vn_lookup_with_vuses): New function.
(vuses_compare): New function.
(print_creation_to_file): Ditto.
(vn_lookup_or_add): Rewrite to handle vuses.
(sort_vuses): New function.
(vn_lookup_or_add_with_vuses): Ditto.
(vn_init): Initialize shared_lookup_vuses.
(vn_delete): Free shared_lookup_vuses.

* tree-ssa-pre.c: Update todo list.
(bb_value_sets_t): Add rvuse_in, rvuse_out, rvuse_gen, and
rvuse_kill.
(RVUSE_IN): New macro.
(RVUSE_GEN): Ditto.
(RVUSE_KILL): Ditto.
(RVUSE_OUT): Ditto.
(modify_expr_node_pool): New function.
(pretemp): New.
(storetemp): Ditto.
(mergephitemp): Ditto.
(prephitemp): Ditto.
(struct expr_pred_trans_d): Add vuses member.
(expr_pred_trans_eq): Compare vuses.
(phi_trans_lookup): Add vuses argument.
(phi_trans_add): Ditto.
(translate_vuses_through_block): New function.
(phi_translate): Use vuses to ask about those expressions that can
have vuses.
Properly translate virtual uses through phis, and use
vn_lookup_or_add_with vuses.  Handle tcc_reference.
(phi_translate_set): Don't add pointless translations to the
cache.
(get_representative): New function.
(vuses_dies_in_block_x): Ditto.
(valid_in_set): Add block argument.  Check virtual use validity.
(clean): Add block argument. Update call to valid_in_set
(compute_antic_aux): Update call to clean.
(dump_bitmap_of_names): New function.
(compute_vuse_representatives): Ditto.
(compute_rvuse): Ditto.
(can_value_number_call): Modified to accept calls with vuses.
(can_value_number_operation): New function.
(can_PRE_operation): Ditto.
(need_creation): New vector of stores that may need creation.
(find_or_generate_expression): use can_PRE_operation.
(create_expression_by_pieces): Handle INDIRECT_REF.
Only create one temp until we have to change types.
Mark new vars for renaming.
(insert_into_preds_of_block): Ignore loopiness of loads.
Use can_PRE_operation.
Only create one temp until we have to chnge types.
(insert_aux): Use can_PRE_operation.
Don't pass name to insert_into_preds_of_block.
(insert_extra_phis): Only use one temp until we have to change
types.
(poolify_tree): New function.
(modify_expr_template): New var.
(poolify_modify_expr): New function.
(insert_fake_stores): Ditto.
(realify_fake_stores): Ditto.
(compute_avail): Use can_value_number_operation.
(mark_operand_necessary): Return NULL for non-SSA names.
(remove_dead_inserted_code): Update comment.
(init_pre): Initialize pretemp, need_creation, storetemp,
mergephitemp, prephitemp.
Create modify_expr_node_pool.
(fini_pre): Free modify_expr_node_pool and need_creation array.
(execute_pre): Call insert_fake_stores, compute_rvuse, and
realify_fake_stores.
* tree-flow.h (vn_compute): Fix prototype.
(vn_add): Ditto.
(vn_lookup): Ditto.
(sort_vuses): New.
(vn_lookup_or_add_with_vuses): Ditto.
(vn_add_with_vuses): Ditto.
(vn_lookup_with_vuses): Ditto.
* passes.c (pass_may_alias): Add.

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

18 years ago2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
gdr [Fri, 30 Dec 2005 17:27:28 +0000 (17:27 +0000)]
2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>

        * c-pretty-print.h (struct c_pretty_print_info): Add new
          member
        "constant".
        (pp_constant): New macro.
        * c-pretty-print.c (pp_c_pretty_printer_init): Set
          pp->constant.

cp/
2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>

        * cxx-pretty-print.c (pp_cxx_constant): New.  Print
        string-literal in parens if input program says so.
        (pp_cxx_primary_expression): Hand off constant printing to
        pp_cxx_constant.
        (pp_cxx_pretty_printer_init): Set pp->c_base.constant.
        (pp_cxx_expression): Use pp_cxx_constant for literals.
        * error.c (dump_expr): Use pp_constant for literals.

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

18 years agofortran/
eedelman [Fri, 30 Dec 2005 15:02:44 +0000 (15:02 +0000)]
fortran/
2005-12-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/22607
        * trans-decl.c(gfc_get_extern_function_decl): Don't set
        DECL_IS_PURE (fndecl) = 1 for return-by-reference
        functions.

        fortran/PR 25396
        * interface.c (gfc_extend_expr): Initialize
        e->value.function.name to NULL.

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

        PR fortran/22607
        * gfortran-dg/pure_byref_3.f90: New.

        fortran/PR 25396
        * gfortran.dg/userdef_operator_1.f90: New.

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

18 years ago PR fortran/25586
danglin [Fri, 30 Dec 2005 05:44:16 +0000 (05:44 +0000)]
PR fortran/25586
* pa.md: Remove REG_POINTER check from REG+REG peephole2 floating-point
store patterns.

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

18 years agoDaily bump.
gccadmin [Fri, 30 Dec 2005 00:17:40 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago2005-12-29 Kenneth Zadeck <zadeck@naturalbridge.com>
zadeck [Thu, 29 Dec 2005 19:41:21 +0000 (19:41 +0000)]
2005-12-29 Kenneth Zadeck <zadeck@naturalbridge.com>

* bitmap.c (bitmap_element_free, bitmap_element_link,
bitmap_elt_insert_after, bitmap_and, bitmap_and_compl,
bitmap_and_compl, bitmap_ior, bitmap_ior_into, bitmap_xor,
bitmap_xor_into): Added code to properly maintain the variants
associated with the CURRENT and HEAD fields.
(bitmap_popcount, bitmap_clear_range, bitmap_compl_and_into): New
functions. * bitmap.h: Added defs for bitmap_popcount,
bitmap_clear_range, and bitmap_compl_and_into.

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

18 years ago * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
mrs [Thu, 29 Dec 2005 19:39:29 +0000 (19:39 +0000)]
    * doc/invoke.texi (Objective-C and Objective-C++ Dialect Options
        -fobjc-exceptions): Don't imply this doesn't work with the GNU
        runtime.

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

18 years ago * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
danglin [Thu, 29 Dec 2005 19:37:51 +0000 (19:37 +0000)]
* s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.

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

18 years ago * varasm.c (get_section): Use gcc_assert.
nathan [Thu, 29 Dec 2005 16:38:26 +0000 (16:38 +0000)]
* varasm.c (get_section): Use gcc_assert.
cp:
* method.c (make_thunk): Don't set comdat_linkage here.
(use_thunk): Make thunk one only here, if thunk target is
DECL_ONE_ONLY.
testsuite:
* g++.dg/abi/thunk3.C: New.
* g++.dg/abi/thunk4.C: New.

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

18 years ago2005-12-29 Paul Brook <paul@codesourcery.com>
pbrook [Thu, 29 Dec 2005 15:23:23 +0000 (15:23 +0000)]
2005-12-29  Paul Brook  <paul@codesourcery.com>

* config/m68k/m68k.h (RETURN_ADDR_RTX): Define.
* config/m68k/m68k.c (m68k_initial_elimination_offset): Remove FIXME.
Include offset due to FIRST_PARM_OFFSET.

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

18 years ago2005-12-29 Paul Brook <paul@codesourcery.com>
pbrook [Thu, 29 Dec 2005 15:16:50 +0000 (15:16 +0000)]
2005-12-29  Paul Brook  <paul@codesourcery.com>

* config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
Create wrapper and rename body...
(__cmpdf2_internal): ... to this.  Return correct value for unordered
result.
(__cmpsf2): Create wrapper and rename body...
(__cmpsf2_internal): ... to this.  Return corerct value for unordered
result.
(__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
__cmpdf2_internal.
(__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
__cmpsf2_internal.

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

18 years ago2005-12-29 Paul Brook <paul@codesourcery.com>
pbrook [Thu, 29 Dec 2005 15:14:12 +0000 (15:14 +0000)]
2005-12-29  Paul Brook  <paul@codesourcery.com>

* config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
(__truncdfsf2): Ditto.
(__extenddfxf2): Ditto.
(__truncxfdf2): Ditto.
* config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
(__adddf3): Ditto.

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

18 years ago2005-12-29 Daniel Jacobowitz <dan@codesourcery.com>
pbrook [Thu, 29 Dec 2005 15:08:43 +0000 (15:08 +0000)]
2005-12-29  Daniel Jacobowitz  <dan@codesourcery.com>
Paul Brook  <paul@codesourcery.com>

* config/m68k/m68k.c (m68k_output_pic_call): Don't use bsr.l for
!TARGET_68020.
* config/m68k/t-m68kelf (EXTRA_PARTS): Remove.
(EXTRA_MULTILIB_PARTS): Set.
* config/m68k/t-uclinux (EXTRA_PARTS): Remove.
(EXTRA_MULTILIB_PARTS): Set.

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

18 years ago2005-12-29 Paul Thomas <pault@gcc.gnu.org>
pault [Thu, 29 Dec 2005 06:11:21 +0000 (06:11 +0000)]
2005-12-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25532
* trans-types.c (copy_dt_decls_ifequal): Copy declarations for
components of derived type components by recursing into
gfc_get_derived_type.

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

PR fortran/25532
*gfortran.dg/host_used_types_1.f90: Check that host associated
derived type components of derived types are properly declared
in contained procedures.

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

18 years ago PR target/25572
amodra [Thu, 29 Dec 2005 01:10:05 +0000 (01:10 +0000)]
PR target/25572
* config/rs6000/rs6000.c (create_TOC_reference): Set regs_ever_live.

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

18 years agoDaily bump.
gccadmin [Thu, 29 Dec 2005 00:17:43 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * config.gcc (mt-*-*): Add --with-arch support.
nathan [Wed, 28 Dec 2005 22:37:42 +0000 (22:37 +0000)]
* config.gcc (mt-*-*): Add --with-arch support.
(--with): Print accepted options on error.
* config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.

* config/mt/mt.c (DEF_VEC_P(basic_block),
DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 21:12:52 +0000 (21:12 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25139
* gfortran.dg/backspace_2.f: New test.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 20:58:08 +0000 (20:58 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25139
* io/unix.c (fd_truncate): Set s->active to zero.
PR libgfortran/25510
* libgfortran.h: Add ERROR_INTERNAL and ERROR_INTERNAL_UNIT.
* runtime/error.c (translate_error): Add messages for new errors.
* io/list_read.c (next_char): Use new errors.
* io/transfer.c (next_record_r) (next_record_w): Use new errors.

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

18 years ago2005-12-28 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Wed, 28 Dec 2005 19:21:55 +0000 (19:21 +0000)]
2005-12-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR fortran/25587
        * trans-io.c (gfc_build_st_parameter): Correct off by one error.

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

18 years ago2005-12-28 Anthony Green <green@redhat.com>
green [Wed, 28 Dec 2005 18:47:18 +0000 (18:47 +0000)]
2005-12-28  Anthony Green  <green@redhat.com>

* gnu/java/net/natPlainSocketImplWin32.cc (connect): Same
as previous patch, but for win32.

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

18 years ago2005-12-28 Anthony Green <green@redhat.com>
green [Wed, 28 Dec 2005 18:29:10 +0000 (18:29 +0000)]
2005-12-28  Anthony Green  <green@redhat.com>

* gnu/java/net/natPlainSocketImplPosix.cc (connect): Record
address and port before attempting anything.

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

18 years ago2005-12-27 Tom Tromey <tromey@redhat.com>
green [Wed, 28 Dec 2005 17:46:21 +0000 (17:46 +0000)]
2005-12-27  Tom Tromey  <tromey@redhat.com>

* gnu/java/nio/SelectorImpl.java: Added import.

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

        * java/net/Socket.java (connect): Don't close the socket on
        exceptions.

        * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount
        of data to read (dst.remaining()).
        * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto.

        * gnu/java/nio/SelectorImpl.java (select): Handle OP_CONNECT
        properly.

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

18 years ago * sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to make
danglin [Wed, 28 Dec 2005 17:13:56 +0000 (17:13 +0000)]
* sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to make
operation atomic.

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

18 years ago2005-12-28 Daniel Berlin <dberlin@dberlin.org>
dberlin [Wed, 28 Dec 2005 14:09:28 +0000 (14:09 +0000)]
2005-12-28  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/25394
* fold-const.c (fold_checksum_tree): Guard
portions of checksumming with correct structure checks.

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

18 years ago2005-12-28 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 28 Dec 2005 14:08:07 +0000 (14:08 +0000)]
2005-12-28  Paolo Carlini  <pcarlini@suse.de>

* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 40.

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

18 years ago2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
aj [Wed, 28 Dec 2005 13:25:46 +0000 (13:25 +0000)]
2005-12-28  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>

        * Make-lang.in: Remove distdir from comment.

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

18 years ago2005-12-28 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
aj [Wed, 28 Dec 2005 13:25:26 +0000 (13:25 +0000)]
2005-12-28  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>

        * Make-lang.in (treelang.distdir): Remove.

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

18 years ago2005-12-28 Chris Jefferson <chris@bubblescope.net>
paolo [Wed, 28 Dec 2005 11:47:56 +0000 (11:47 +0000)]
2005-12-28  Chris Jefferson  <chris@bubblescope.net>

* testsuite/testsuite_allocator.h (check_deallocate_null): Return true.

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

18 years ago2005-12-28 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 28 Dec 2005 09:57:57 +0000 (09:57 +0000)]
2005-12-28  Paolo Carlini  <pcarlini@suse.de>

* include/std/std_bitset.h (bitset<>::_M_copy_from_string,
bitset<>::_M_copy_to_string, bitset<>::operator>>): Reverse loop.

* testsuite/25_algorithms/heap/heap.cc (test01): Always enable
complexity checks.
* testsuite/18_support/numeric_limits/specialization.cc: Avoid
unused parameter warning.
* testsuite/18_support/numeric_limits/traps.cc: Acoid unused variable
warning.
* testsuite/ext/malloc_allocator/deallocate_global.cc: Fix format
string.
* testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
* testsuite/ext/array_allocator/2.cc: Remove unused variable.
* testsuite/tr1/3_function_objects/mem_fn.cc: Avoid unused variable
warnings.
* testsuite/tr1/6_containers/unordered/instantiate/set.cc: Just
instantiate.
* testsuite/tr1/6_containers/unordered/instantiate/map.cc: Likewise.
* testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Likewise.
* testsuite/tr1/6_containers/unordered/instantiate/multiset.cc:
Likewise.
* testsuite/tr1/6_containers/unordered/instantiate/multimap.cc:
Likewise.
* testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
Avoid unused variable warnings.
* testsuite/tr1/6_containers/array/requirements/zero_sized_arrays.cc:
Likewise.
* testsuite/thread/18185.cc: Likewise.
* testsuite/27_io/ios_base/storage/11584.cc: Likewise; avoid comparison
between signed and unsigned warning.
* testsuite/27_io/types/1.cc: Avoid unused variable warnings.
* testsuite/testsuite_allocator.h (check_new): Likewise.
(check_deallocate_null): Adjust return type.
* testsuite/testsuite_hooks.h (bitmask_operators): Avoid unused
variable warnings.
* testsuite/21_strings/c_strings/wchar_t/24559.cc: Avoid unused
variable warning.

2005-12-28  Chris Jefferson  <chris@bubblescope.net>

* include/std/std_bitset.h (bitset<0>::set, bitset<0>::reset,
bitset<0>::flip, bitset<0>::test): Add inline specializations for
bitset<0>.

* testsuite/tr1/6_containers/unordered/insert/multiset_range.cc
(test01): Add static cast.
* testsuite/tr1/6_containers/unordered/insert/set_range.cc
(test01): Likewise.
* testsuite/testsuite_hooks.h (operator==(NonDefaultConstructible,
NonDefaultConstructible), operator<(NonDefaultConstructible,
NonDefaultConstrictible)): Avoid unused parameter warning.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 07:21:20 +0000 (07:21 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25550
* gfortran.dg/endfile.f: New test.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 07:20:19 +0000 (07:20 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25550
* io/file_pos.c (st_rewind): Reset bytes left so no error occurs in
next_record_r.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 07:00:47 +0000 (07:00 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25419
* gfortran.dg/comma.f: New test.

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

18 years ago2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 28 Dec 2005 06:59:35 +0000 (06:59 +0000)]
2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Allow comma to return a
null value (default).

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

18 years ago* lib/gfortran-dg.exp: Remove trailing whitespace. ChangeLog lib/gfortran-dg.exp...
tobi [Wed, 28 Dec 2005 01:28:35 +0000 (01:28 +0000)]
* lib/gfortran-dg.exp: Remove trailing whitespace. ChangeLog lib/gfortran-dg.exp lib/fortran-torture.exp
* lib/fortran-torture.exp: Test with -fbounds-check instead of
-funroll-all-loops.

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

18 years ago * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
kazu [Wed, 28 Dec 2005 01:13:19 +0000 (01:13 +0000)]
* global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
* basic-block.h: ... here.

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

18 years agoDaily bump.
gccadmin [Wed, 28 Dec 2005 00:17:38 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * fold-const.c (int_const_binop): Return NULL_TREE when an expression
sayle [Tue, 27 Dec 2005 23:27:34 +0000 (23:27 +0000)]
* fold-const.c (int_const_binop): Return NULL_TREE when an expression
can't be evaluated at compile-time (instead of calling abort).
Return NULL_TREE for division (and modulus) by zero.
(const_binop):  Return NULL_TREE for floating point operators that
aren't handled by real_arithmetic.
(fold_binary):  Eliminate "wins" variable, and "binary" label, by
folding operators with constant operands early.  Assert that
operands are non-NULL.

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

18 years ago * gcc.dg/torture/fp-int-convert-timode.c: Don't test IBM
amodra [Tue, 27 Dec 2005 22:50:06 +0000 (22:50 +0000)]
* gcc.dg/torture/fp-int-convert-timode.c: Don't test IBM
Extended Double long doubles or repeat tests when long double is
the same size as double.

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

18 years ago * g++.dg/rtti/tinfo1.C: Scan for ".global" also.
ghazi [Tue, 27 Dec 2005 19:58:28 +0000 (19:58 +0000)]
* g++.dg/rtti/tinfo1.C: Scan for ".global" also.

PR testsuite/25442
* gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.

PR testsuite/25441
* gcc.dg/pr23911.c: Make test variable static.

PR testsuite/25444
* gcc.dg/tree-ssa/pr14841.c: Likewise.

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

18 years ago PR c++/25439
mmitchel [Tue, 27 Dec 2005 09:05:17 +0000 (09:05 +0000)]
PR c++/25439
* decl.c (grokdeclarator): Remove dead code.
* ptree.c (cxx_print_xnode): Handle BASELINK.
* parser.c (make_id_declarator): Add sfk parameter.
(cp_parser_direct_declarator): Do not pass TYPE_DECLs to
make_id_declarator.
(cp_parser_declarator_id): Simplify BASELINKs here.
(cp_parser_member_declaration): Adjust calls to
make_id_declarator.
PR c++/25439
* g++.dg/parse/crash17.C: Adjust error markers.
* g++.dg/template/error20.C: New test.

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

18 years ago * tree-vrp.c (extract_range_from_binary_expr): Use
kazu [Tue, 27 Dec 2005 08:16:12 +0000 (08:16 +0000)]
* tree-vrp.c (extract_range_from_binary_expr): Use
build_int_cst instead of fold_convert.

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

18 years ago PR c++/23171, c++/23172, c++/25417.
mmitchel [Tue, 27 Dec 2005 06:09:13 +0000 (06:09 +0000)]
PR c++/23171, c++/23172, c++/25417.
* c-decl.c (compound_literal_number): Remove.
(build_compound_literal): Use set_compound_literal_name.
* c-common.c (compound_literal_number): New variable.
(set_compound_literal_name): New function.
* c-common.h (set_compound_literal_name): Declare.

PR c++/23171, c++/23172, c++/25417.
* typeck.c (build_unary_op): Create temporary variables for
compound literals whose addresses are taken.
* init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
* decl.c (reshape_init_vector): Likewise.
(reshape_init): Give it external linkage.
(check_initializer): Use COMPOUND_LITERAL_P.
(initialize_artificial_var): Allow the initializer to be a
CONSTRUCTOR.
* call.c (make_temporary_var_for_ref_to_temp): Use
create_temporary_var.
* cp-tree.h (COMPOUND_LITERAL_P): New macro.
(rehape_init): Declare.
* typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
* semantics.c (finish_compound_literal): Use reshape_init.

PR c++/23172
* g++.dg/ext/complit4.C: New test.

PR c++/25417
* g++.dg/ext/complit5.C: Likewise.

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

18 years ago * MAINTAINERS: Update my email address.
steven [Tue, 27 Dec 2005 02:00:26 +0000 (02:00 +0000)]
    * MAINTAINERS: Update my email address.

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

18 years agoDaily bump.
gccadmin [Tue, 27 Dec 2005 00:17:30 +0000 (00:17 +0000)]
Daily bump.

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

18 years agogcc/
kazu [Mon, 26 Dec 2005 23:00:18 +0000 (23:00 +0000)]
gcc/
PR tree-optimization/25125
* convert.c (convert_to_integer): Don't narrow the type of a
PLUX_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
is signed.

gcc/testsuite/
PR tree-optimization/25125
* gcc.dg/vect/vect-7.c, gcc.dg/vect/vect-reduc-2char.c,
gcc.dg/vect/vect-reduc-2short.c: XFAIL.
* gcc.c-torture/execute/pr25125.c: New.

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

18 years ago PR middle-end/25568
grahams [Mon, 26 Dec 2005 18:58:56 +0000 (18:58 +0000)]
   PR middle-end/25568
       * combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking
       rtl bootstrap failure.

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

18 years ago2005-12-26 Chris Jefferson <chris@bubblescope.net>
paolo [Mon, 26 Dec 2005 10:53:42 +0000 (10:53 +0000)]
2005-12-26  Chris Jefferson  <chris@bubblescope.net>

* include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
name of unused parameter.
* include/bits/stream_iterator.h (istream_iterator::istream_iterator):
Construct _M_value.
* include/debug/functions.h (__check_valid_range): Add
__attribute__((unused)).
* include/tr1/hashtable (hashtable::end): Remove name of unused
parameter.
* include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
(tuple::operator=): Add __attribute__((unused)).
* include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
(Fnv_hash<8>::hash): Likewise.

* testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
unused parameter.
* testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
Likewise.
* testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
* testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is,
Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
Likewise.
* testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
Likewise.
* testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
Likewise.
* testsuite/25_algorithms/find/17441.cc (find): Likewise.
* testsuite/23_containers/vector/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/vector/bool/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/list/cons/clear_allocator.cc
(clear_alloc::clear_alloc): Likewise.
* testsuite/23_containers/set/modifiers/16728.cc (test_container):
Likewise.
* testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
to_int_type): Likewise.
* testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
do_unshift, do_length): Likewise.
* testsuite/21_strings/basic_string/capacity/1.cc
(operator==(A<T>,A<T>), operator<(A<T>,A<T>),
char_traits::to_char_type, char_traits::to_int_type): Likewise
* testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
ctype::do_scan_not, do_toupper, do_tolower): Likewise.
* testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
Add missing return statement.
* testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
Likewise.
* testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
random_access_iterator_wrapper::operator==): Likewise.
* testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
* testsuite/27_io/types/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
* testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
cast.
* testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
* testsuite/testsuite_allocator.h (check_new): Likewise.
(check_deallocate_null): Add missing return value.
* testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
Make variable unsigned.
* testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
N5,test01): Likewise.
* testsuite/26_numerics/valarray/valarray_subset_assignment.cc
(check_array): Likewise.
(main): Removed unused variable.
* testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
Removed unused variable.
* testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
* testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/
assign/shared_ptr.cc (test01): Correct return type.
* testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
Add default value to close_num.

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

18 years agoDaily bump.
gccadmin [Mon, 26 Dec 2005 00:17:15 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * final.c (compute_alignments): Make it static.
kazu [Sun, 25 Dec 2005 16:59:51 +0000 (16:59 +0000)]
* final.c (compute_alignments): Make it static.
* gcse.c (gcse_main, bypass_jumps): Likewise.
* web.c (web_main): Likewise.
* output.h: Remove the prototype for compute_alignments.
* rtl.h: Remove the prototypes for web_main, gcse_main, and
bypass_jumps.

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

18 years agoDaily bump.
gccadmin [Sun, 25 Dec 2005 00:17:18 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago * expr.c (force_operand): Use expand_fix and expand_float to
sayle [Sat, 24 Dec 2005 18:35:02 +0000 (18:35 +0000)]
* expr.c (force_operand): Use expand_fix and expand_float to
implement integer <-> FP conversions instead of convert_to_mode.

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

18 years ago2005-12-24 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 24 Dec 2005 12:05:36 +0000 (12:05 +0000)]
2005-12-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25029
PR fortran/21256
* resolve.c (check_assumed_size_reference, resolve_assumed_size_actual):
Remove because of regressions caused by patch.
(resolve_function, resolve_call, resolve_variable): Remove assumed size
checks because of regressionscaused by patch.

PR fortran/25029
PR fortran/21256
* gfortran.dg/initialization_1.f90: Remove tests of intrinsic functions
with incorrect assumed size references.

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

18 years ago2005-12-24 Paolo Carlini <pcarlini@suse.de>
paolo [Sat, 24 Dec 2005 10:01:45 +0000 (10:01 +0000)]
2005-12-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h (fill(const _Deque_iterator&,
const _Deque_iterator&, const _Tp&)): Deal, correctly, only
with iterators (leave const_iterators alone).

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

* include/bits/stl_algobase.h (fill(const _Deque_iterator<>&,
const _Deque_iterator<>&, const _Tp&)): Add.

* testsuite/23_containers/deque/cons/assign/1.cc: New.

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

18 years ago PR c++/23171
mmitchel [Sat, 24 Dec 2005 08:51:05 +0000 (08:51 +0000)]
PR c++/23171
* varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
CONSTRUCTOR is invalid.

PR c++/23171
* g++.dg/opt/init1.C: New test.

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

18 years ago2005-12-23 Daniel Berlin <dberlin@dberlin.org>
dberlin [Sat, 24 Dec 2005 04:42:48 +0000 (04:42 +0000)]
2005-12-23  Daniel Berlin  <dberlin@dberlin.org>

* tree-pass.h (pass_eliminate_useless_stores): Remove.
* tree-ssa-pre.c (is_copy_stmt): Ditto.
(follow_copies_till_vuse): Ditto.
(do_eustore): Ditto.
(gate_eustores): Ditto.
(pass_eliminate_useless_stores): Ditto.
* passes.c (init_optimization_passes): Ditto.

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

18 years agoDaily bump.
gccadmin [Sat, 24 Dec 2005 00:17:23 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago PR c++/24671
mmitchel [Fri, 23 Dec 2005 23:16:12 +0000 (23:16 +0000)]
PR c++/24671
* pt.c (instantiate_template): Handle SFINAE.
PR c++/24671
* g++.dg/template/sfinae3.C: New test.

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

18 years ago * decl.c (grokdeclarator): Improve diagnostic for friend
reichelt [Fri, 23 Dec 2005 17:10:37 +0000 (17:10 +0000)]
* decl.c (grokdeclarator): Improve diagnostic for friend
declarations of class members.

* g++.dg/other/friend4.C: New test.

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

18 years ago2005-12-23 Paolo Bonzini <bonzini@gnu.org>
bonzini [Fri, 23 Dec 2005 16:07:53 +0000 (16:07 +0000)]
2005-12-23  Paolo Bonzini  <bonzini@gnu.org>

        * combine.c (simplify_shift_const): Fix typo.  Use, whenever
applicable, simplify_const_binary_operation.

        (simplify_shift_const): Leave only the fallback
        case when no simplification is possible.  Extract to...
        (simplify_shift_const_1): ... here.  Always create a new
        RTX instead of substituting.  Remove the signed_count variable.
        Return NULL_RTX if no substitution is possible.

        (simplify_and_const_int): Leave only the fallback
        case when no simplification is possible.  Extract to...
        (simplify_and_const_int_1): ... here.  Always create a new
        RTX instead of substituting.  Return NULL_RTX if no substitution
        is possible.

        (force_to_mode, simplify_comparison): Don't pass a non-NULL first
        parameter to simplify_and_const_int and simplify_shift_const,
        unless it is equal to the expected non-simplified result.

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

18 years ago PR target/25005
jakub [Fri, 23 Dec 2005 09:43:36 +0000 (09:43 +0000)]
PR target/25005
* regrename.c (replace_oldest_value_reg): Use validate_change with
IN_GROUP set to 1 instead of doing direct modifications.
(copyprop_hardreg_forward_1): Likewise.  If any replace_oldest_*
replacements have been performed on an instruction, use
apply_change_group ().

* g++.dg/opt/pr25005.C: New test.

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

18 years ago PR c++/25369
mmitchel [Fri, 23 Dec 2005 07:40:04 +0000 (07:40 +0000)]
PR c++/25369
* g++.dg/template/ptrmem16.C: New test.
PR c++/25369
* tree.c (really_overloaded_fn): Tweak comment.
* pt.c (tsubst_call_declarator_parms): Remove.
(tsubst_copy): Call mark_used on the member referenced by an
OFFSET_REF.
* semantics.c (finish_qualified_id_expr): Simplify.
* decl2.c (mark_used): Accept BASELINKs.

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

18 years ago2005-12-23 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 23 Dec 2005 06:41:52 +0000 (06:41 +0000)]
2005-12-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25029
PR fortran/21256
*resolve.c(resolve_function): Remove assumed size checking for SIZE
and UBOUND and rely on their built-in checking.

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

PR fortran/25029
PR fortran/21256
*gfortran.dg/initialization_1.f90: Add test of SIZE.

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

18 years ago * config/cris/arit.c (do_31div): Clarify what "31" refers to.
hp [Fri, 23 Dec 2005 03:02:30 +0000 (03:02 +0000)]
* config/cris/arit.c (do_31div): Clarify what "31" refers to.
[L_divsi3] (__Udiv): Don't use as inline function.
[L_modsi3] (__Umod): Ditto.
(__Div): Rearrange to call do_31div directly instead of __Udiv.
(__Mod): Similarly regarding __Umod.

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

18 years ago2005-12-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Fri, 23 Dec 2005 02:56:34 +0000 (02:56 +0000)]
2005-12-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25307
* gfortran.dg/list_read_5.f90: New test.

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

18 years ago PR target/24342
hp [Fri, 23 Dec 2005 00:45:36 +0000 (00:45 +0000)]
PR target/24342
* config/cris/cris.c (cris_split_movdx): Add REG_INC notes for
emitted insns with post-increments.
(cris_expand_epilogue): Ditto.

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

18 years ago Merge from gomp-branch.
rth [Fri, 23 Dec 2005 00:43:34 +0000 (00:43 +0000)]
    Merge from gomp-branch.
        * builtins.def: Move all DEF_SYNC_BUILTIN to ...
        * sync-builtins.def: ... new file.
        (BUILT_IN_FETCH_AND_ADD_16,
        BUILT_IN_FETCH_AND_SUB_16, BUILT_IN_FETCH_AND_OR_16,
        BUILT_IN_FETCH_AND_AND_16, BUILT_IN_FETCH_AND_XOR_16,
        BUILT_IN_FETCH_AND_NAND_16, BUILT_IN_ADD_AND_FETCH_16,
        BUILT_IN_SUB_AND_FETCH_16, BUILT_IN_OR_AND_FETCH_16,
        BUILT_IN_AND_AND_FETCH_16, BUILT_IN_XOR_AND_FETCH_16,
        BUILT_IN_NAND_AND_FETCH_16, BUILT_IN_BOOL_COMPARE_AND_SWAP_16,
        BUILT_IN_VAL_COMPARE_AND_SWAP_16, BUILT_IN_LOCK_TEST_AND_SET_16,
        BUILT_IN_LOCK_RELEASE_16): New builtins.
        * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
        BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
        * builtins.c (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
        * c-common.c (enum c_builtin_type): Move to top-level from
        c_common_nodes_and_builtins enum builtin_type.
        (builtin_types): Move from c_common_nodes_and_builtins.
        (def_fn_type): New.
        (c_common_nodes_and_builtins): Use it.
        (def_builtin_1): Check for error_mark_node.
        (sync_resolve_size): Handle also 128 bit sync builtins.
        * Makefile.in (BUILTINS_DEF): New.  Use it instead of builtins.def.

        * config/i386/i386.h (x86_cmpxchg8b, x86_cmpxchg16b): New decls.
        (TARGET_CMPXCHG8B, TARGET_CMPXCHG16B): Define.
        * config/i386/i386.c (x86_cmpxchg8b, x86_cmpxchg16b): New variables.
        * config/i386/sync.md (CASMODE, DCASMODE): New mode macros.
        (doublemodesuffix, DCASHMODE): New mode attrs.
        (sync_compare_and_swap<mode>): Change into expand, use CASMODE
        instead of IMODE, if mode is wider than a word, expand into
        sync_double_compare_and_swap*.
        (*sync_compare_and_swap<mode>): New insn.
        (sync_double_compare_and_swap<mode>): Likewise.
        (*sync_double_compare_and_swapdi_pic): Likewise.
        (sync_compare_and_swap_cc<mode>): Use CASMODE instead of IMODE, if
        mode is wider than a word, expand into
        sync_double_compare_and_swap_cc*.
        (sync_double_compare_and_swap_cc<mode>): New insn.
        (*sync_double_compare_and_swap_ccdi_pic): Likewise.

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

18 years ago * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
rth [Fri, 23 Dec 2005 00:31:44 +0000 (00:31 +0000)]
    * config/i386/mmintrin.h (_mm_add_si64): Only define for SSE2.
        (_mm_sub_si64): Likewise.
        * config/i386/xmmintrin.h (_mm_shuffle_pi16, _m_pshufw): Likewise.

        * gcc.target/i386/sse-7.c: Use -msse2.

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

18 years agoDaily bump.
gccadmin [Fri, 23 Dec 2005 00:17:19 +0000 (00:17 +0000)]
Daily bump.

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

18 years ago PR rtl-optimization/25432
jakub [Thu, 22 Dec 2005 23:19:49 +0000 (23:19 +0000)]
PR rtl-optimization/25432
* reload1.c (eliminate_regs_in_insn): Update insn code on
successfully re-recognizing modified insn.

* gcc.c-torture/compile/20051216-1.c: New test.

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

18 years ago PR objc/25328
jakub [Thu, 22 Dec 2005 23:09:48 +0000 (23:09 +0000)]
PR objc/25328
* objc/execute/pr25328.m: New test.

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

18 years ago PR c++/25364
mmitchel [Thu, 22 Dec 2005 20:08:39 +0000 (20:08 +0000)]
PR c++/25364
* typeck.c (build_unary_op): Pass DECLs not names to
build_offset_refs.
* init.c (build_offset_ref): Do not do name lookup.  Do not call
mark_used.
* call.c (build_call): Simplify and tidy.
* semantics.c (finish_qualified_id_expr): Call mark_used.
PR c++/25364
* g++.dg/template/call4.C: New test.

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

18 years ago2005-12-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Dec 2005 19:40:27 +0000 (19:40 +0000)]
2005-12-22  Richard Guenther  <rguenther@suse.de>

* tree.c (tree_fold_gcd): Use build_int_cst where appropriate.
* tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
* varasm.c (array_size_for_constructor): Likewise.
* fold-const.c (size_diffop, invert_truthvalue,
optimize_bit_field_compare, make_range, build_range_check,
fold_cond_expr_with_comparison, fold_truthop,
fold_single_bit_test_into_sign_test, fold_binary): Likewise.

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

18 years ago2005-12-22 Dale Johannesen <dalej@apple.com>
dalej [Thu, 22 Dec 2005 19:06:09 +0000 (19:06 +0000)]
2005-12-22  Dale Johannesen  <dalej@apple.com>

* config/i386/sse.md (sse_movhlps):  Reverse operands for
2nd and 3rd alternatives.

2005-12-22  Dale Johannesen  <dalej@apple.com>

* gcc.target/i386/sse-17.c:  New.

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

18 years ago2005-12-22 Paul Brook <paul@codesourcery.com>
pbrook [Thu, 22 Dec 2005 18:43:21 +0000 (18:43 +0000)]
2005-12-22  Paul Brook  <paul@codesourcery.com>

* gcc.dg/tree-ssa/loop-1.c: Look for jump/branch on m68k.

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

18 years ago2005-12-22 Andrew Haley <aph@redhat.com>
aph [Thu, 22 Dec 2005 18:34:01 +0000 (18:34 +0000)]
2005-12-22  Andrew Haley  <aph@redhat.com>

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

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

18 years ago2005-12-22 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Thu, 22 Dec 2005 18:06:35 +0000 (18:06 +0000)]
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.

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

18 years ago * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
tromey [Thu, 22 Dec 2005 17:33:05 +0000 (17:33 +0000)]
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't
reference NUM_OBJECT_METHODS.
* include/jvm.h (NUM_OBJECT_METHODS): Removed.

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

18 years ago2005-12-22 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 22 Dec 2005 15:01:02 +0000 (15:01 +0000)]
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.

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

18 years ago * df.c (df_bitmaps_free): Only work for bbs for that structures are
rakdver [Thu, 22 Dec 2005 14:23:40 +0000 (14:23 +0000)]
* 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.

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