gcc.git
18 years agore PR c++/27278 (ICE with invalid operator declaration)
Volker Reichelt [Sun, 30 Apr 2006 10:34:05 +0000 (10:34 +0000)]
re PR c++/27278 (ICE with invalid operator declaration)

PR c++/27278
* decl.c (grok_op_properties): Skip operators with invalid args
when checking for class-type or enum-type args.

* g++.dg/parse/operator7.C: New test.

From-SVN: r113389

18 years agore PR libfortran/27360 (Memory leaks when reading logicals)
Jerry DeLisle [Sun, 30 Apr 2006 03:19:37 +0000 (03:19 +0000)]
re PR libfortran/27360 (Memory leaks when reading logicals)

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

PR libgfortran/27360

* io/list_read.c (read_logical):  Free line_buffer and free saved.

From-SVN: r113388

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

From-SVN: r113386

18 years agore PR c++/11471 (ICE on illegal use of typedef'd member class)
Volker Reichelt [Sat, 29 Apr 2006 21:39:54 +0000 (21:39 +0000)]
re PR c++/11471 (ICE on illegal use of typedef'd member class)

PR c++/11471
PR c++/27102
* g++.dg/template/crash48.C: New test.

From-SVN: r113382

18 years agore PR c++/27279 (ICE with invalid constructor declaration)
Volker Reichelt [Sat, 29 Apr 2006 20:48:45 +0000 (20:48 +0000)]
re PR c++/27279 (ICE with invalid constructor declaration)

PR c++/27279
* decl.c (copy_fn_p): Skip functions with invalid first arg.

* g++.dg/parse/ctor4.C: New test.

From-SVN: r113378

18 years agolocale_facets.tcc (num_get<>::_M_extract_float): Special case main parsing loop for...
Paolo Carlini [Sat, 29 Apr 2006 18:16:47 +0000 (18:16 +0000)]
locale_facets.tcc (num_get<>::_M_extract_float): Special case main parsing loop for !_M_allocated (i.e., "C" locale).

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

* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
Special case main parsing loop for !_M_allocated (i.e., "C" locale).
(num_get<>::_M_extract_int): Likewise.
* include/bits/locale_facets.h (num_get<>::_M_find): New.

From-SVN: r113377

18 years agore PR fortran/25681 (ICE with len of array of derived type)
Francois-Xavier Coudert [Sat, 29 Apr 2006 16:31:26 +0000 (18:31 +0200)]
re PR fortran/25681 (ICE with len of array of derived type)

PR fortran/25681

* simplify.c (simplify_len): Character variables with constant
length can be simplified.

* gfortran.df/char_type_len.f90: New test.

From-SVN: r113376

18 years agore PR fortran/27351 (Use variable after free in gfc_conv_array_transpose)
H.J. Lu [Sat, 29 Apr 2006 14:25:42 +0000 (14:25 +0000)]
re PR fortran/27351 (Use variable after free in gfc_conv_array_transpose)

2006-04-29  H.J. Lu  <hongjiu.lu@intel.com>

PR fortran/27351
* trans-array.c (gfc_conv_array_transpose): Move gcc_assert
before gfc_conv_expr_descriptor.

From-SVN: r113375

18 years agolink.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index to resolve_method.
Bryce McKinlay [Sat, 29 Apr 2006 01:35:50 +0000 (01:35 +0000)]
link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index to resolve_method.

2006-04-28  Bryce McKinlay  <mckinlay@redhat.com>

* link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
to resolve_method.
* interpret.cc (insn_invokevirtual): Use method->index, not
vtable_index. Check accflag FINAL to determine finals. Only do
explicit null check if calling a final method. Use
throw_null_pointer_exception.
(invokevirtual_resolved): Likewise.
(null_pointer_exc): Remove static field.
(throw_null_pointer_exception): Always define. Throw a new
NullPointerException every time.
* include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
field.
* include/execution.h (resolve_method): Remove vtable_index argument.

From-SVN: r113370

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

From-SVN: r113368

18 years agore PR fortran/27304 (gfortran: Warn/abort when format in write does not fit passed...
Jerry DeLisle [Sat, 29 Apr 2006 00:02:10 +0000 (00:02 +0000)]
re PR fortran/27304 (gfortran: Warn/abort when format in write does not fit passed arguments)

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

PR libgfortran/27304
* gfortran.dg/fmt_exhaust.f90: New test.

From-SVN: r113364

18 years agore PR fortran/27304 (gfortran: Warn/abort when format in write does not fit passed...
Jerry DeLisle [Fri, 28 Apr 2006 23:55:30 +0000 (23:55 +0000)]
re PR fortran/27304 (gfortran: Warn/abort when format in write does not fit passed arguments)

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

PR libgfortran/27304
* io/transfer.c (formatted_transfer_scalar):  Generate error if data
descriptors are exhausted.
* io/format.c (next_format0): Fix comment.

From-SVN: r113363

18 years agodarwin-c.c (darwin_ms_struct): Move this
Eric Christopher [Fri, 28 Apr 2006 20:52:01 +0000 (20:52 +0000)]
darwin-c.c (darwin_ms_struct): Move this

2006-04-28  Eric Christopher  <echristo@apple.com>

        * config/darwin-c.c (darwin_ms_struct): Move this
        (darwin_set_default_type_attributes): and this...
        * config/darwin.c: ... here.
        * config/darwin.h (darwin_ms_struct): Declare.

From-SVN: r113358

18 years agoThe condition the assert was flawed.
Andrew MacLeod [Fri, 28 Apr 2006 20:39:18 +0000 (20:39 +0000)]
The condition the assert was flawed.

2006-04-28  Andrew MacLeod  <amacleod@redhat.com>

* tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.

From-SVN: r113356

18 years agore PR c/25309 (ICE on initialization of a huge array)
Roger Sayle [Fri, 28 Apr 2006 19:59:57 +0000 (19:59 +0000)]
re PR c/25309 (ICE on initialization of a huge array)

PR c/25309
* c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
(push_array_bounds): Delete prototype.  Change BOUNDS argument to
an unsigned HOST_WIDE_INT.
(print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
array index.
(really_start_incremental_init): No need to call convert because
bitsize_zero_node is already of type bitsizetype.
(push_init_level): Extract the value of constructor_index as an
unsigned HOST_WIDE_INT quantity, using tree_low_cst.
(process_init_element): Likewise.

* gcc.dg/large-size-array-2.c: New test case.

From-SVN: r113355

18 years agoMAINTAINERS (Write After Approval): Add myself.
Jan Beulich [Fri, 28 Apr 2006 14:44:20 +0000 (14:44 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2006-04-28  Jan Beulich  <jbeulich@novell.com>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r113350

18 years agore PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)
Richard Guenther [Fri, 28 Apr 2006 14:36:14 +0000 (14:36 +0000)]
re PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)

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

PR target/26826
* gcc.target/i386/pr26826.c: New testcase.

From-SVN: r113348

18 years ago- add missing ChangeLog entry, see PR27334
Matthias Klose [Fri, 28 Apr 2006 14:05:42 +0000 (14:05 +0000)]
- add missing ChangeLog entry, see PR27334

From-SVN: r113347

18 years agogcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing...
Joseph Myers [Fri, 28 Apr 2006 12:15:36 +0000 (13:15 +0100)]
gcc.c (process_command): Add program name to GCC_EXEC_PREFIX value before passing to make_relative_prefix.

* gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
value before passing to make_relative_prefix.

From-SVN: r113345

18 years agore PR middle-end/27260 (ICE in expand_expr_real_1, at expr.c:6750)
Alan Modra [Fri, 28 Apr 2006 03:41:34 +0000 (13:11 +0930)]
re PR middle-end/27260 (ICE in expand_expr_real_1, at expr.c:6750)

gcc/
PR middle-end/27260
* builtins.c (expand_builtin_memset): Expand val in original mode.
gcc/testsuite/
PR middle-end/27260
* gcc.c-torture/execute/pr27260.c: New.

From-SVN: r113341

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

PR middle-end/27095
* gcc.dg/pr27095.c: New.

From-SVN: r113340

18 years agore PR c++/27292 (ICE on casts on bitfields)
Mark Mitchell [Fri, 28 Apr 2006 02:40:58 +0000 (02:40 +0000)]
re PR c++/27292 (ICE on casts on bitfields)

PR c++/27292
* tree.c (rvalue): Convert bitfields to their declared types.
PR c++/27292
* g++.dg/conversion/bitfield4.C: New test.

From-SVN: r113339

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

From-SVN: r113331

18 years agotarget-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket with #ifndef/#endif.
Eric Christopher [Thu, 27 Apr 2006 22:53:23 +0000 (22:53 +0000)]
target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket with #ifndef/#endif.

2006-04-27  Eric Christopher  <echristo@apple.com>

        * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
        with #ifndef/#endif.
        * config/darwin-c.c (darwin_ms_struct): New.
        (darwin_pragma_ms_struct): Ditto.
        (darwin_set_default_type_attributes): Ditto.
        * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
        * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
        Register ms_struct pragma.
        * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
        (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
        * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
        darwin_set_default_type_attributes if TARGET_MACHO.

2006-04-27  Eric Christopher  <echristo@apple.com>

        * gcc.dg/pragma-ms_struct.c: New.

From-SVN: r113327

18 years agoTODO: Update.
Benjamin Kosnik [Thu, 27 Apr 2006 22:49:28 +0000 (22:49 +0000)]
TODO: Update.

2006-04-27  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/TODO: Update.

From-SVN: r113325

18 years agoconfigure.ac: Add an additional checks for dladdr and dlopen on dld.
Andreas Tobler [Thu, 27 Apr 2006 22:20:03 +0000 (00:20 +0200)]
configure.ac: Add an additional checks for dladdr and dlopen on dld.

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

* configure.ac: Add an additional checks for dladdr and dlopen on dld.
* configure: Rebuilt.

From-SVN: r113323

18 years agoImplement new immediate use iterators.
Andrew MacLeod [Thu, 27 Apr 2006 20:22:17 +0000 (20:22 +0000)]
Implement new immediate use iterators.

2006-04-27  Andrew MacLeod  <amacleod@redhat.com>

PR tree-optimization/26854
* tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
* doc/tree-ssa.texi: Update immuse iterator documentation.
* tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
* tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
* tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
first_safe_imm_use, next_safe_imm_use): Remove.
(end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
(end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
(move_use_after_head): New.  Helper function to sort immuses in a stmt.
(link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
(first_imm_use_stmt): New.  Get first stmt in an immuse list.
(next_imm_use_stmt): New.  Get next stmt in an immuse list.
(first_imm_use_on_stmt): New.  Get first immuse on a stmt.
(end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
(next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
* tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
(perfect_nestify): Use new iterator.
* tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
iterator.
* tree-flow.h (struct immediate_use_iterator_d): Add comments.
(next_imm_name): New field in struct immediate_use_iterator_d.
(FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
(FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
* tree-cfg.c (replace_uses_by): Use new iterator.
* tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
* tree-ssa-operands.c (correct_use_link): Remove.
(finalize_ssa_use_ops): No longer call correct_use_link.

From-SVN: r113321

18 years agore PR c++/27102 (ICE with invalid class name in function template)
Mark Mitchell [Thu, 27 Apr 2006 19:02:54 +0000 (19:02 +0000)]
re PR c++/27102 (ICE with invalid class name in function template)

PR c++/27102
* typeck2.c (cxx_incomplete_type_diagnostic): Handle
TYPENAME_TYPE.
PR c++/27102
* g++.dg/template/crash47.C: New test.

From-SVN: r113320

18 years agot-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
Stuart Hastings [Thu, 27 Apr 2006 18:57:11 +0000 (18:57 +0000)]
t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.

* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
* config/t-darwin (crt3.o): Use it.
* config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
'pmode', use Pmode instead of SImode for SYMBOL_REF.
* config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
support.

From-SVN: r113319

18 years agoexpmed.c (store_fixed_bit_field): If we're not optimizing for size...
Roger Sayle [Thu, 27 Apr 2006 17:26:03 +0000 (17:26 +0000)]
expmed.c (store_fixed_bit_field): If we're not optimizing for size...

* expmed.c (store_fixed_bit_field): If we're not optimizing for
size, force the intermediate into a new pseudo rather instead of
performing both a bitwise AND and a bitwise IOR in memory.

From-SVN: r113318

18 years agore PR rtl-optimization/26685 (documentation refer to nonexisting --param max-cse...
Richard Guenther [Thu, 27 Apr 2006 14:25:49 +0000 (14:25 +0000)]
re PR rtl-optimization/26685 (documentation refer to nonexisting --param max-cse-insns)

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

PR rtl-optimization/26685
* params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
this one "max-flow-memory-locations".

From-SVN: r113300

18 years agore PR tree-optimization/25148 (compare_values assumes that CST in a + CST (and a...
Richard Guenther [Thu, 27 Apr 2006 13:52:44 +0000 (13:52 +0000)]
re PR tree-optimization/25148 (compare_values assumes that CST in a + CST (and a - CST) is always postive)

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

PR tree-optimization/25148
* tree-vrp.c (compare_values): Remove code dealing with
comparisons against type min/max value.  Honour overflow
and negative constants in code dealing with comparisons
of plus and minus expressions.
(value_inside_range): Use fold_binary with LE_EXPR and
GE_EXPR rather than compare_values.

From-SVN: r113298

18 years agoxmmintrin.h (_mm_shuffle_pi16): make available for SSE.
Dirk Mueller [Thu, 27 Apr 2006 11:13:45 +0000 (11:13 +0000)]
xmmintrin.h (_mm_shuffle_pi16): make available for SSE.

2006-04-27  Dirk Mueller  <dmueller@suse.de>

        * config/i386/xmmintrin.h (_mm_shuffle_pi16): make available
        for SSE.

        * testsuite/gcc.target/i386/sse-7.c: build with -msse.

From-SVN: r113297

18 years agore PR testsuite/27274 (execution test of gcc.dg/i386-sse-9.c fails on non-SSE CPU)
H.J. Lu [Thu, 27 Apr 2006 06:13:40 +0000 (06:13 +0000)]
re PR testsuite/27274 (execution test of gcc.dg/i386-sse-9.c fails on non-SSE CPU)

2006-04-26  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/27274:
* gcc.target/i386/sse-9.c: Include "../../gcc.dg/i386-cpuid.h".
(main): Exit if processor doesn't support SSE.

From-SVN: r113296

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

From-SVN: r113290

18 years agore PR libstdc++/26875 (Array allocator use count is shared between array_allocator...
Benjamin Kosnik [Wed, 26 Apr 2006 19:52:31 +0000 (19:52 +0000)]
re PR libstdc++/26875 (Array allocator use count is shared between array_allocator instances)

2006-04-26  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/26875
* include/ext/array_allocator.h (array_allocator): _M_used, new
data member.
* testsuite/ext/array_allocator/26875.cc: New.

From-SVN: r113283

18 years agore PR libstdc++/26513 (make_exports.pl hardcoded to build nm)
Shantonu Sen [Wed, 26 Apr 2006 19:13:18 +0000 (19:13 +0000)]
re PR libstdc++/26513 (make_exports.pl hardcoded to build nm)

2006-04-26  Shantonu Sen  <ssen@opendarwin.org>

         PR libstdc++/26513
         * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present.

From-SVN: r113281

18 years agore PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)
David Edelsohn [Wed, 26 Apr 2006 17:57:03 +0000 (17:57 +0000)]
re PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)

        PR middle-end/27282
        * gcc.c-torture/compile/pr27282.c: New test

From-SVN: r113278

18 years agobasic-block.h (safe_insert_insn_on_edge): Removed.
Kenneth Zadeck [Wed, 26 Apr 2006 16:17:01 +0000 (16:17 +0000)]
basic-block.h (safe_insert_insn_on_edge): Removed.

2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>

* basic-block.h (safe_insert_insn_on_edge): Removed.
* cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.

From-SVN: r113276

18 years agore PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)
David Edelsohn [Wed, 26 Apr 2006 14:33:49 +0000 (14:33 +0000)]
re PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn)

2006-04-26  David Edelsohn  <edelsohn@gnu.org>
    Paolo Bonzini  <bonzini@gnu.org>

PR middle-end/27282
* combine.c (simplify_and_const_int_1): Use gen_int_mode.
(simplify_and_const_int): Same.

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

18 years ago* tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
Aldy Hernandez [Wed, 26 Apr 2006 10:29:02 +0000 (10:29 +0000)]
* tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.

From-SVN: r113274

18 years agore PR c/26171 (#pragma omp threadprivate requires -funit-at-a-time)
Jakub Jelinek [Wed, 26 Apr 2006 08:26:06 +0000 (10:26 +0200)]
re PR c/26171 (#pragma omp threadprivate requires -funit-at-a-time)

PR c/26171
* cgraph.c (cgraph_varpool_finalize_decl): Don't call
cgraph_varpool_assemble_pending_decls if -fopenmp, unless
cgraph_global_info_ready.

* testsuite/libgomp.c/pr26171.c: New test.

From-SVN: r113271

18 years agore PR middle-end/26913 (ICE with -fopenmp and -O1)
Jakub Jelinek [Wed, 26 Apr 2006 08:24:28 +0000 (10:24 +0200)]
re PR middle-end/26913 (ICE with -fopenmp and -O1)

PR middle-end/26913
* tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.

* g++.dg/gomp/pr26913.C: New test.

From-SVN: r113270

18 years agore PR c/25996 ([gomp] ICE on undefined iteration variable)
Jakub Jelinek [Wed, 26 Apr 2006 08:23:12 +0000 (10:23 +0200)]
re PR c/25996 ([gomp] ICE on undefined iteration variable)

PR c/25996
* c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
either decl or init is error_mark_node.

* gcc.dg/gomp/pr25996.c: New test.
* g++.dg/gomp/pr25996.C: New test.

From-SVN: r113269

18 years agore PR middle-end/25989 (gomp ICE with -O2 and schedule(guided))
Jakub Jelinek [Wed, 26 Apr 2006 08:20:57 +0000 (10:20 +0200)]
re PR middle-end/25989 (gomp ICE with -O2 and schedule(guided))

PR middle-end/25989
* tree-flow.h (struct omp_region): Add sched_kind.
* omp-low.c (expand_parallel_call): Use region->inner->sched_kind
instead of extracting omp for data.
(expand_omp_for): Save extracted sched_kind.

From-SVN: r113268

18 years agodwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there are no branches.
Geoffrey Keating [Wed, 26 Apr 2006 06:57:01 +0000 (06:57 +0000)]
dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there are no branches.

* dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
are no branches.

From-SVN: r113267

18 years agoexpmed.c (store_bit_field): Also check whether the bitsize is valid for the machine...
Roger Sayle [Wed, 26 Apr 2006 00:51:14 +0000 (00:51 +0000)]
expmed.c (store_bit_field): Also check whether the bitsize is valid for the machine's "insv" instruction...

* expmed.c (store_bit_field): Also check whether the bitsize is
valid for the machine's "insv" instruction before moving the
target into a pseudo for use with the insv.
* config/i386/predicates.md (const8_operand): New predicate.
* config/i386/i386.md (extv, extzv, insv): Use the new
const8_operand predicate where appropriate.

From-SVN: r113265

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

From-SVN: r113263

18 years agoinstall.texi (Specific): Clarify that this is not a list of supported hosts or targets.
DJ Delorie [Tue, 25 Apr 2006 22:08:53 +0000 (18:08 -0400)]
install.texi (Specific): Clarify that this is not a list of supported hosts or targets.

* doc/install.texi (Specific): Clarify that this is not a list of
supported hosts or targets.

From-SVN: r113259

18 years agore PR rtl-optimization/26725 (ICE in check_reg_live, at haifa-sched.c:4645 with ...
Richard Sandiford [Tue, 25 Apr 2006 21:34:48 +0000 (21:34 +0000)]
re PR rtl-optimization/26725 (ICE in check_reg_live, at haifa-sched.c:4645 with -O2 on ia64)

gcc/
PR rtl-optimization/26725
* cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
block's BB_DIRTY flag.

gcc/testsuite/
* gcc.c-torture/compile/pr26725.c: New test.

From-SVN: r113257

18 years agore PR libgomp/25865 (libgomp incorrectly detects support for TLS)
Richard Henderson [Tue, 25 Apr 2006 20:58:25 +0000 (13:58 -0700)]
re PR libgomp/25865 (libgomp incorrectly detects support for TLS)

        PR libgomp/25865
        * configure.ac: Use GCC_CHECK_TLS.
        * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
        * Makefile.in, aclocal.m4, configure: Regenerate.

From-SVN: r113256

18 years agodwarf2asm.c (dw2_asm_output_data): Don't generate RTL just to print an integer.
Geoffrey Keating [Tue, 25 Apr 2006 19:12:50 +0000 (19:12 +0000)]
dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just to print an integer.

* dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
to print an integer.

From-SVN: r113254

18 years agoval-prof-2.c: Check for n + ffff rather than n + -1.
Richard Guenther [Tue, 25 Apr 2006 15:38:32 +0000 (15:38 +0000)]
val-prof-2.c: Check for n + ffff rather than n + -1.

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

        * gcc.dg/tree-prof/val-prof-2.c: Check for n + ffff rather
        than n + -1.

From-SVN: r113252

18 years agonatSharedLibLoader.cc: Include gc.h later.
Tom Tromey [Tue, 25 Apr 2006 15:20:33 +0000 (15:20 +0000)]
natSharedLibLoader.cc: Include gc.h later.

* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
Include platform.h.  Set GC_DEBUG before including gc.h, if
needed.

From-SVN: r113251

18 years agovarasm.c (align_variable): New function.
David Edelsohn [Tue, 25 Apr 2006 15:00:53 +0000 (15:00 +0000)]
varasm.c (align_variable): New function.

* varasm.c (align_variable): New function.
(get_block_for_decl): Apply align_variable to DECL before
calculating section information.
(assemble_variable): Split out alignment computation.

From-SVN: r113250

18 years agoexpmed.c (store_bit_field): Handle paradoxical subregs on big endian machines.
Andreas Krebbel [Tue, 25 Apr 2006 12:11:25 +0000 (12:11 +0000)]
expmed.c (store_bit_field): Handle paradoxical subregs on big endian machines.

2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>

* expmed.c (store_bit_field): Handle paradoxical subregs on big endian
machines.

2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/20060425-1.c: New testcase.

From-SVN: r113248

18 years agortl.texi (ss_ashift): Improve wording.
Bernd Schmidt [Tue, 25 Apr 2006 11:58:22 +0000 (11:58 +0000)]
rtl.texi (ss_ashift): Improve wording.

* doc/rtl.texi (ss_ashift): Improve wording.

From-SVN: r113247

18 years agonatClassLoader.cc: Don't include link.h or dladdr.h.
Andrew Haley [Tue, 25 Apr 2006 11:54:15 +0000 (11:54 +0000)]
natClassLoader.cc: Don't include link.h or dladdr.h.

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

        * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
        * boehm.cc: Don't include link.h.
        (_Jv_RegisterLibForGc): Cast away const when calling dladdr().

From-SVN: r113246

18 years agogenmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a MODE_PARTIAL_INT...
Bernd Schmidt [Tue, 25 Apr 2006 11:49:27 +0000 (11:49 +0000)]
genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a MODE_PARTIAL_INT mode.

* genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
MODE_PARTIAL_INT mode.
* config/bfin/bfin-modes.def: Add V2PDI and V2SI.
* config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
for CONST_INTs.
(hard_regno_mode_ok): V2PDImode is ok for accumulators.
* config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
V2PDImode.
* config/bfin/predicates.md (const01_operand, vec_shift_operand):
New predicates.
* config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
New constants.
(MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
MACFLAG_IH): Likewise.
(movstricthi_1): Renamed from "*movstricthi".
(load_accumulator, load_accumulator_pair, movsi_insv, insv,
ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
flag_macv2hi_parts, flag_macv2hi_parts_acconly,
flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.

From-SVN: r113245

18 years agore PR tree-optimization/26865 (Segmentation fault with -std=c99 -O1 and alloca())
Jakub Jelinek [Tue, 25 Apr 2006 09:42:41 +0000 (11:42 +0200)]
re PR tree-optimization/26865 (Segmentation fault with -std=c99 -O1 and alloca())

PR tree-optimization/26865
* gcc.dg/pr26865.c: New test.

From-SVN: r113242

18 years agodwarf2out.c (verify_marks_clear): New.
Geoffrey Keating [Tue, 25 Apr 2006 05:56:36 +0000 (05:56 +0000)]
dwarf2out.c (verify_marks_clear): New.

* dwarf2out.c (verify_marks_clear): New.
(prune_unused_types): Call verify_marks_clear initially, not
prune_unmark_dies.

From-SVN: r113241

18 years agore PR c++/27292 (ICE on casts on bitfields)
Mark Mitchell [Tue, 25 Apr 2006 03:33:38 +0000 (03:33 +0000)]
re PR c++/27292 (ICE on casts on bitfields)

PR c++/27292
* typeck.c (decay_conversion): Don't adjust bitfield types.
(perform_integral_promotions): Treat bitfield enums as enums, not
as short integer types.
* tree.c (rvalue): Convert bitfields to their correct types.
PR c++/27292
* g++.dg/conversion/bitfield1.C: New test.
* g++.dg/conversion/bitfield2.C: Likewise.
* g++.dg/conversion/bitfield3.C: Likewise.

From-SVN: r113240

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

From-SVN: r113236

18 years ago* java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
Tom Tromey [Mon, 24 Apr 2006 21:28:36 +0000 (21:28 +0000)]
* java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.

From-SVN: r113229

18 years agofloatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
Julian Brown [Mon, 24 Apr 2006 21:24:27 +0000 (21:24 +0000)]
floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.

* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.

From-SVN: r113228

18 years agortl.def (SS_ASHIFT, SS_NEG): New codes.
Bernd Schmidt [Mon, 24 Apr 2006 19:35:38 +0000 (19:35 +0000)]
rtl.def (SS_ASHIFT, SS_NEG): New codes.

* rtl.def (SS_ASHIFT, SS_NEG): New codes.
* doc/rtl.texi: Document them.
* simplify-rtx.c (simplify_unary_operation,
simplify_binary_operation_1): Don't abort when we see them.

From-SVN: r113227

18 years agorevert: configure.ac: Completely disregard languages that are not enabled.
Mark Mitchell [Mon, 24 Apr 2006 16:33:11 +0000 (16:33 +0000)]
revert: configure.ac: Completely disregard languages that are not enabled.

Revert:
2006-04-23  Mark Mitchell  <mark@codesourcery.com>
* configure.ac: Completely disregard languages that are not
enabled.
* configure: Regenerated.

From-SVN: r113226

18 years agolang.c (java_init): Handle flag_indirect_classes.
Andrew Haley [Mon, 24 Apr 2006 15:33:16 +0000 (15:33 +0000)]
lang.c (java_init): Handle flag_indirect_classes.

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

        * lang.c (java_init): Handle flag_indirect_classes.
        * jvgenmain.c: Use "class$$" instead of "class$".
        * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as
        DECLs.
        (mangle_class_field): Special case "class$$" as well as "class$".
        * constants.c (build_ref_from_constant_pool): If
        flag_indirect_classes, generate a ref into the heap.
        * decl.c (constants_field_decl_node,
        constants_data_field_decl_node): New.
        * class.c (build_static_class_ref): New.
        (build_classdollar_field): Factor out from build_class_ref().
        (make_field_value): Handle static fields in heap.
        (make_class_data): Make sure we get a static ref to class.
        Make class initializer const if flag_indirect_classes.
        (register_class): Build a class_ref for initialization if
        flag_indirect_classes.
        (emit_indirect_register_classes): New.

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

        * include/execution.h (struct _Jv_CompiledEngine): Define for
        compiled classes.
        * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
        _Jv_RegisterLibForGc.
        (_Jv_RegisterClasses_Counted): Likewise.
        (_Jv_NewClassFromInitializer): New.
        (_Jv_RegisterNewClasses): New.
        * sources.am: Regenerate.
        * boehm.cc (_Jv_GC_has_static_roots): new.
        (_Jv_InitGC): Call GC_register_has_static_roots_callback.
        (filename_node, find_file, _Jv_print_gc_store, new_node,
        _Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
        * scripts/makemake.tcl: Add -fno-indirect-classes.
        * Makefile.in: Regenerate.
        * link.cc (resolve_pool_entry): Allocate constant pool.
        Allocate fields.

From-SVN: r113224

18 years agodyn_load.c (GC_has_static_roots): Declare.
Andrew Haley [Mon, 24 Apr 2006 13:40:21 +0000 (13:40 +0000)]
dyn_load.c (GC_has_static_roots): Declare.

2006-03-07  Andrew Haley  <aph@redhat.com>

        * dyn_load.c (GC_has_static_roots): Declare.
        (GC_register_dynlib_callback): Call GC_has_static_roots.

From-SVN: r113223

18 years agore PR tree-optimization/27236 (inliner creates an INDIRECT_REF without TREE_THIS_VOLA...
Andrew Pinski [Mon, 24 Apr 2006 09:06:51 +0000 (02:06 -0700)]
re PR tree-optimization/27236 (inliner creates an INDIRECT_REF without TREE_THIS_VOLATILE set for *a)

2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
Richard Guenther  <rguenther@suse.de>

PR tree-optimization/27236
* tree-inline.c (copy_body_r): Make sure to copy
TREE_THIS_VOLATILE flag.

* gcc.dg/tree-ssa/pr27236.c: New testcase.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r113221

18 years agore PR c++/19963 (ICE on invalid member declaration)
Volker Reichelt [Mon, 24 Apr 2006 08:38:05 +0000 (08:38 +0000)]
re PR c++/19963 (ICE on invalid member declaration)

PR c++/19963
* class.c (layout_class_type): Skip fields with invalid types.

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

From-SVN: r113220

18 years agore PR middle-end/26869 (Segfault in find_lattice_value() for complex operands.)
Richard Guenther [Mon, 24 Apr 2006 08:21:41 +0000 (08:21 +0000)]
re PR middle-end/26869 (Segfault in find_lattice_value() for complex operands.)

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

PR middle-end/26869
* tree-complex.c (update_parameter_components): Don't handle
unused parameters which have no default def.

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

From-SVN: r113219

18 years agore PR tree-optimization/27218 (ICE in get_indirect_ref_operands, at tree-ssa-operands...
Andrew Pinski [Mon, 24 Apr 2006 08:17:42 +0000 (01:17 -0700)]
re PR tree-optimization/27218 (ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1515, inlining produces non-gimple)

2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
Richard Guenther  <rguenther@suse.de>

PR tree-optimization/27218
* tree-inline.c (expand_call_inline): Strip useless type
conversions for the return slot address.

* g++.dg/tree-ssa/pr27218.C: New testcase.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r113218

18 years agocfgloop.h (struct loops): Remove unused field array.
Richard Guenther [Mon, 24 Apr 2006 08:01:33 +0000 (08:01 +0000)]
cfgloop.h (struct loops): Remove unused field array.

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

* cfgloop.h (struct loops): Remove unused field array.  Reorder
state after num.
(LOOP_PREFETCH): Remove.

From-SVN: r113217

18 years agore PR tree-optimization/22525 (tree based value profiling (-fprofile-use) produces...
Richard Guenther [Mon, 24 Apr 2006 07:58:53 +0000 (07:58 +0000)]
re PR tree-optimization/22525 (tree based value profiling (-fprofile-use) produces mismatch types in conditional)

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

PR tree-optimization/22525
* value-prof.c (tree_mod_pow2): Remove unnecessary temporary
variable, adjust types of generated expressions.

From-SVN: r113216

18 years agore PR c++/26912 (friend const member function specialization fails to compile)
Mark Mitchell [Mon, 24 Apr 2006 03:50:31 +0000 (03:50 +0000)]
re PR c++/26912 (friend const member function specialization fails to compile)

PR c++/26912
* cp-tree.h (build_this_parm): Declare.
(grok_method_quals): Remove.
(build_memfn_type): Declare.
(build_artificial_parm): Declare.
(do_friend): Remove quals parameter.
* decl.c (build_this_parm): New function.
(grokfndecl): Use it.  Do not pass quals to grokclassfn.
(grokdeclarator): Rename quals to memfn_quals.  Avoid allocating
unnecessary TYPE_DECLs.  Correct qualification of member function
types.  Tidy.
* method.c (implicitly_declare_fn): Use build_this_parm.
* friend.c (do_friend): Remove quals parameter.
* decl2.c (grok_method_quals): Remove.
(build_memfn_type): New function.
(build_artificial_parm): Give it external linkage.
(grokclassfn): Remove quals parameter.  Do not build "this"
PARM_DECL here.
PR c++/26912
* g++.dg/template/friend41.C: New test.

From-SVN: r113213

18 years agoMakefile.in (c-convert.o): Add dependency on $(TARGET_H)
H.J. Lu [Mon, 24 Apr 2006 03:04:29 +0000 (03:04 +0000)]
Makefile.in (c-convert.o): Add dependency on $(TARGET_H)

2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
(tree-vect-patterns.o): Likewise.
(jump.o): Likewise.
(cselib.o): Likewise.
(loop-doloop.o): Likewise.
(regclass.o): Likewise.
(reload1.o): Likewise.
(explow.o): Replace target.h with $(TARGET_H).
(ipa-prop.o): Likewise.
(ipa-cp.o): Likewise.
(ipa-inline.o): Likewise.
(reorg.o): Likewise.
(reg-stack.o): Likewise.

From-SVN: r113212

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

From-SVN: r113210

18 years agopr15551.C: Include cstdio.
David Edelsohn [Sun, 23 Apr 2006 23:58:36 +0000 (23:58 +0000)]
pr15551.C: Include cstdio.

        * g++.dg/opt/pr15551.C: Include cstdio.
        (main): Use remove instead of unlink.

From-SVN: r113206

18 years agoMake-lang.in (treelang.check): Don't set and pass TRANSFORM.
Matthias Klose [Sun, 23 Apr 2006 18:15:34 +0000 (18:15 +0000)]
Make-lang.in (treelang.check): Don't set and pass TRANSFORM.

2006-04-22  Matthias Klose  <doko@debian.org>

        * Make-lang.in(treelang.check): Don't set and pass TRANSFORM.

From-SVN: r113201

18 years agotree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
Eric Botcazou [Sun, 23 Apr 2006 18:14:13 +0000 (18:14 +0000)]
tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.

* tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.

testsuite/
* gcc.dg/sibcall-7.c: New test.
* gcc.dg/tree-ssa/tailrecursion-1.c: Pass -foptimize-sibling-calls.
* gcc.dg/tree-ssa/tailrecursion-2.c: Likewise.
* gcc.dg/tree-ssa/tailrecursion-3.c: Likewise.
* gcc.dg/tree-ssa/tailrecursion-4.c: Likewise.
* gcc.dg/tree-ssa/tailrecursion-5.c: Likewise.

From-SVN: r113200

18 years agore PR c++/26534 ([4.1] bitfield wrong optimize)
Mark Mitchell [Sun, 23 Apr 2006 18:04:33 +0000 (18:04 +0000)]
re PR c++/26534 ([4.1] bitfield wrong optimize)

2006-04-23  Mark Mitchell  <mark@codesourcery.com>

PR c++/26534
* c-common.h (c_build_bitfield_integer_type): Declare.
* c-decl.c (c_build_bitfield_integer_type): Move to ...
* c-common.c (c_build_bitfield_integer_type): ... here.

2006-04-23  Mark Mitchell  <mark@codesourcery.com>

PR c++/26534
* cp-tree.h (is_bitfield_expr_with_lowered_type): New function.
* typeck.c (is_bitfield_expr_with_lowered_type): New function.
(decay_conversion): Convert bitfield expressions to the correct
type.
(build_modify_expr): Remove spurious conversions.
* class.c (layout_class_type): Modify the type of bitfields to
indicate a limited range.
* call.c (standard_conversion): Adjust the type of bitfield
expressions used in an rvalue context.
(build_conditional_expr): Likewise.

2006-04-23  Mark Mitchell  <mark@codesourcery.com>

PR c++/26534
* g++.dg/opt/bitfield1.C: New test.
* g++.dg/compat/abi/bitfield1_main.C: Add -w.
* g++.dg/compat/abi/bitfield1_x.C: Likewise.
* g++.dg/compat/abi/bitfield1_y.C: Likewise.
* g++.dg/compat/abi/bitfield2_main.C: Likewise.
* g++.dg/compat/abi/bitfield2_x.C: Likewise.
* g++.dg/compat/abi/bitfield2_y.C: Likewise.
* g++.dg/abi/bitfield1.C: Add dg-warning markers.
* g++.dg/abi/bitfield2.C: Likewise.
* g++.dg/init/bitfield1.C: Likewise.

From-SVN: r113199

18 years agore PR target/21283 (ICE with doubles)
Roger Sayle [Sun, 23 Apr 2006 17:44:46 +0000 (17:44 +0000)]
re PR target/21283 (ICE with doubles)

PR target/21283
* config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
a SImode SUBREG of a floating point register after no_new_pseudos.

From-SVN: r113198

18 years agofr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to identify potentially eliminable...
Roger Sayle [Sun, 23 Apr 2006 17:39:54 +0000 (17:39 +0000)]
fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to identify potentially eliminable registers to...

* config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
identify potentially eliminable registers to additionally catch
VIRTUAL_INCOMING_ARGS_REGNUM.
(addsi3): Update the conditions on when to use addsi_small_int.

From-SVN: r113197

18 years agore PR target/16641 (fr30-elf-gcc compiler error when building newlib-1.12.0)
Roger Sayle [Sun, 23 Apr 2006 17:25:30 +0000 (17:25 +0000)]
re PR target/16641 (fr30-elf-gcc compiler error when building newlib-1.12.0)

PR target/16641
* config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
rtx to stack_pointer_rtx or frame_pointer_rtx directly.

From-SVN: r113196

18 years agore PR libstdc++/27199 (ptrdiff_t and size_t outside of namespace std)
Marc Glisse [Sun, 23 Apr 2006 14:54:26 +0000 (14:54 +0000)]
re PR libstdc++/27199 (ptrdiff_t and size_t outside of namespace std)

2006-04-23  Marc Glisse  <marc.glisse@normalesup.org>

PR libstdc++/27199
* ext/pool_allocator.h: Add using declarations for size_t, ptrdiff_t.
* ext/bitmap_allocator.h: Likewise; qualify with std::.
* ext/new_allocator.h: Likewise.
* ext/malloc_allocator.h: Likewise.
* ext/array_allocator.h: Likewise.
* ext/mt_allocator.h: Likewise.
* ext/functional: Likewise for size_t.
* ext/debug_allocator.h: Likewise.
* bits/char_traits.h: Qualify with std:: size_t.
* debug/hash_multimap.h: Likewise.

From-SVN: r113195

18 years agore PR fortran/25099 (Conformance of arguments to ELEMENTAL subroutines)
Paul Thomas [Sun, 23 Apr 2006 11:56:37 +0000 (11:56 +0000)]
re PR fortran/25099 (Conformance of arguments to ELEMENTAL subroutines)

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

PR fortran/25099
* resolve.c (resolve_call): Check conformity of elemental
subroutine actual arguments.

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

PR fortran/25099
* gfortran.dg/elemental_subroutine_4.f90: New test.
* gfortran.dg/assumed_size_refs_1.f90: Add error to non-conforming
call sub (m, x).

From-SVN: r113194

18 years agolwg-active.html, [...]: Import Revision 42.
Paolo Carlini [Sun, 23 Apr 2006 11:44:40 +0000 (11:44 +0000)]
lwg-active.html, [...]: Import Revision 42.

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

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

From-SVN: r113193

18 years agofold-const.c (range_predecessor): Use operand_equal_p as the predicate for equality.
Eric Botcazou [Sun, 23 Apr 2006 09:06:32 +0000 (09:06 +0000)]
fold-const.c (range_predecessor): Use operand_equal_p as the predicate for equality.

* fold-const.c (range_predecessor): Use operand_equal_p
as the predicate for equality.
(range_successor): Likewise.

From-SVN: r113192

18 years agore PR libfortran/20257 (Fortran runtime error: End of record occurs when writing...
Jerry DeLisle [Sun, 23 Apr 2006 02:04:58 +0000 (02:04 +0000)]
re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays)

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

PR libgfortran/20257
* io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
* io/unit.c (get_internal_unit): Initialize unit number, not zero.
(free_internal_unit): New function to consolidate freeing memory.
(get_unit): Initialize internal_unit_desc to NULL when unit is
external.
* io/unix.c (mem_close): Check for not NULL before freeing memory.
* io/transfer.c (read_block): Reset bytes_left and skip error if unit
is preconnected and default record length is reached.
(read_block_direct): Ditto.
(write_block): Ditto.
(write_buf): Ditto.
(data_transfer_init): Only flush if not internal unit.
(finalize_transfer): Ditto and delete code to free memory used by
internal units.
(st_read_done): Use new function - free_internal_unit.
(st_write_done): Use new function - free_internal unit.

From-SVN: r113190

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

From-SVN: r113187

18 years agoconfigure.ac: Weaken the check for MMAP.
Andreas Tobler [Sat, 22 Apr 2006 22:17:26 +0000 (00:17 +0200)]
configure.ac: Weaken the check for MMAP.

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

* configure.ac: Weaken the check for MMAP.
* configure: Rebuilt.
* include/config.h.in: Likewise.

From-SVN: r113182

18 years agoREADME: Remove notice about 'Crazy Comments'.
Andreas Tobler [Sat, 22 Apr 2006 21:17:35 +0000 (23:17 +0200)]
README: Remove notice about 'Crazy Comments'.

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

* README: Remove notice about 'Crazy Comments'.
* src/debug.c: Remove lint directives. Cleanup white spaces.
* src/java_raw_api.c: Likewise.
* src/prep_cif.c: Likewise.
* src/raw_api.c: Likewise.
* src/ffitest.c: Delete. No longer needed, all test cases migrated
to the testsuite.
* src/arm/ffi.c: Remove lint directives.
* src/m32r/ffi.c: Likewise.
* src/pa/ffi.c: Likewise.
* src/powerpc/ffi.c: Likewise.
* src/powerpc/ffi_darwin.c: Likewise.
* src/sh/ffi.c: Likewise.
* src/sh64/ffi.c: Likewise.
* src/x86/ffi.c: Likewise.
* testsuite/libffi.call/float2.c: Likewise.
* testsuite/libffi.call/promotion.c: Likewise.
* testsuite/libffi.call/struct1.c: Likewise.

From-SVN: r113181

18 years agorevert: op-common.h: Fix a typo.
Kazu Hirata [Sat, 22 Apr 2006 16:45:28 +0000 (16:45 +0000)]
revert: op-common.h: Fix a typo.

Revert:
* config/soft-fp/op-common.h: Fix a typo.

From-SVN: r113180

18 years agore PR libmudflap/26864 (multithreaded mudflap not working)
Frank Ch. Eigler [Sat, 22 Apr 2006 16:22:54 +0000 (16:22 +0000)]
re PR libmudflap/26864 (multithreaded mudflap not working)

2006-04-22  Frank Ch. Eigler  <fche@redhat.com>

PR libmudflap/26864
* common.opt (flag_mudflap_threads): Overload flag_mudflap.
* tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.

From-SVN: r113179

18 years agoop-common.h, [...]: Fix comment typos.
Kazu Hirata [Sat, 22 Apr 2006 16:19:56 +0000 (16:19 +0000)]
op-common.h, [...]: Fix comment typos.

* config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
Fix comment typos.
* doc/tm.texi: Fix a typo.

From-SVN: r113178

18 years ago* decl.c: Fix comment typos.
Kazu Hirata [Sat, 22 Apr 2006 16:12:34 +0000 (16:12 +0000)]
* decl.c: Fix comment typos.

From-SVN: r113175

18 years ago* gcc.c-torture/compile/20060421-1.c: New testcase.
Joseph Myers [Sat, 22 Apr 2006 15:31:09 +0000 (16:31 +0100)]
* gcc.c-torture/compile/20060421-1.c: New testcase.

From-SVN: r113173

18 years agodwarf2out.c (struct die_struct): Document that die_sib makes a circular linked list.
Geoffrey Keating [Sat, 22 Apr 2006 08:50:36 +0000 (08:50 +0000)]
dwarf2out.c (struct die_struct): Document that die_sib makes a circular linked list.

* dwarf2out.c (struct die_struct): Document that die_sib makes
a circular linked list.
(FOR_EACH_CHILD): New.
(reverse_die_lists): Delete.
(reverse_all_dies): Delete.
(add_dwarf_attr): Correct documentation.
(remove_child_with_prev): New.
(remove_child_TAG): Update for change to die_struct, use
remove_child_with_prev.
(add_child_die): Update for change to die_struct.
(splice_child_die): Use remove_child_with_prev and add_child_die.
(print_die): Use FOR_EACH_CHILD.
(die_checksum): Likewise.
(assign_symbol_names): Likewise.
(output_location_lists): Likewise.
(build_abbrev_table): Likewise.
(calc_die_sizes): Likewise.
(mark_dies): Likewise.
(unmark_dies): Likewise.
(unmark_all_dies): Likewise.
(output_die): Likewise.
(prune_unused_types_mark): Likewise.
(prune_unused_types_walk): Likewise.
(same_die_p): Update for change to die_struct.
(break_out_includes): Likewise.
(prune_unused_types_prune): Likewise.
(add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
(prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
it's already clear.
(dwarf2out_finish): Don't call reverse_all_dies.

From-SVN: r113171

18 years agore PR fortran/26769 (Implement transpose() and reshape() for real instead of using...
Jakub Jelinek [Sat, 22 Apr 2006 07:08:58 +0000 (09:08 +0200)]
re PR fortran/26769 (Implement transpose() and reshape() for real instead of using integer)

PR fortran/26769
* iresolve.c (gfc_resolve_reshape): Use reshape_r16 for real(16).
(gfc_resolve_transpose): Use transpose_r16 for real(16).

* Makefile.am (i_transpose_c): Add generated/transpose_r16.c.
(i_reshape_c): Add generated/reshape_r16.c.
* Makefile.in: Regenerated.
* generated/transpose_r16.c: Generated new file.
* generated/redhape_r16.c: Generated new file.

From-SVN: r113169