Steven G. Kargl [Wed, 3 May 2006 21:24:11 +0000 (21:24 +0000)]
re PR fortran/26896 (Description of implementation of -Wtabs/-Wno-tabs reversed)
2006-03-30 Steven G. Kargl <kargls@comcast.net>
PR fortran/26896
* lang.opt: Fix -Wtab description
PR fortran/20248
* lang.opt: New flag -fall-intrinsics.
* invoke.texi: Document option.
* gfortran.h (options_t): New member flag_all_intrinsics.
* options.c (gfc_init_options, gfc_handle_option): Set new option.
sort nearby misplaced options.
* intrinsic.c (add_sym, make_generic, make_alias): Use it.
2006-03-30 Steven G. Kargl <kargls@comcast.net>
* gfortran.dg/iargc.f90: New test.
From-SVN: r113502
Andrew MacLeod [Wed, 3 May 2006 17:13:37 +0000 (17:13 +0000)]
re PR tree-optimization/27381 (ice on valid code with -O)
2006-05-02 Andrew MacLeod <amacleod@redhat.com>
PR tree-optimization/27381
* tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
maintain the same immediate_use links.
* tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
node rather than segfaulting.
From-SVN: r113499
Jakub Jelinek [Wed, 3 May 2006 12:51:33 +0000 (14:51 +0200)]
re PR fortran/27395 (Problem with arrays in the OpenMP REDUCTION clause in Fortran)
PR fortran/27395
* gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
* testsuite/libgomp.fortran/pr27395-1.f90: New test.
* testsuite/libgomp.fortran/pr27395-2.f90: New test.
From-SVN: r113494
Daniel Berlin [Wed, 3 May 2006 03:19:22 +0000 (03:19 +0000)]
re PR tree-optimization/26626 (ICE in in add_virtual_operand)
2006-05-02 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/26626
* tree-ssa-structalias.c (compute_points_to_sets): For now, solve
always.
* tree-ssa-operands.c (access_can_touch_variable): Allow
typecasting through union pointers.
From-SVN: r113493
Mark Mitchell [Wed, 3 May 2006 00:19:40 +0000 (00:19 +0000)]
re PR c++/27102 (ICE with invalid class name in function template)
PR c++/27102
* decl.c (grokdeclarator): Robustify checks for defining members
of incomplete types.
PR c++/27102
* g++.dg/template/crash49.C: New test.
From-SVN: r113492
GCC Administrator [Wed, 3 May 2006 00:18:06 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r113490
Steve Ellcey [Tue, 2 May 2006 22:16:13 +0000 (22:16 +0000)]
re PR testsuite/27032 (gcc.c-torture/compile/pr23237.c fails)
PR testsuite/27032
* gcc.c-torture/compile/pr23237.c: Move dg-do line.
From-SVN: r113484
Jakub Jelinek [Tue, 2 May 2006 20:03:38 +0000 (22:03 +0200)]
re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier)
PR c++/26943
* omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
(build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
to find if var will be a global variable even in the nested context.
(omp_copy_decl): Only check for global variable at the end, it might
be overridden in outer contexts.
(scan_sharing_clauses): For global variables don't create a field.
(lower_rec_input_clauses): Do nothing for global shared variables.
Emit a barrier at the end of ILIST if there were any decls in both
firstprivate and lastprivate clauses.
(lower_send_clauses): Do nothing for global variables except for
COPYIN.
* testsuite/libgomp.c/pr26943-1.c: New test.
* testsuite/libgomp.c/pr26943-2.c: New test.
* testsuite/libgomp.c/pr26943-3.c: New test.
* testsuite/libgomp.c/pr26943-4.c: New test.
* testsuite/libgomp.c++/pr27337.C: Remove barrier.
* testsuite/libgomp.c++/pr26943.C: New test.
From-SVN: r113483
Zdenek Dvorak [Tue, 2 May 2006 19:59:21 +0000 (21:59 +0200)]
tree.c (unsigned_type_for, [...]): Make sure a type of the correct signedness is returned.
* tree.c (unsigned_type_for, signed_type_for): Make sure a type
of the correct signedness is returned.
From-SVN: r113482
Jeff Law [Tue, 2 May 2006 19:54:20 +0000 (13:54 -0600)]
re PR tree-optimization/27364 (VRP miscompiles some unsigned math)
PR tree-optimization/27364
* tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
multiply expressions.
* gcc.c-torture/execute/pr27364.c: New test.
From-SVN: r113481
Bryce McKinlay [Tue, 2 May 2006 17:41:40 +0000 (17:41 +0000)]
libjava.exp (test_libjava): Test bytecode->native -findirect-dispatch compilation.
2006-05-02 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
-findirect-dispatch compilation.
From-SVN: r113477
Mark Mitchell [Tue, 2 May 2006 15:59:50 +0000 (15:59 +0000)]
re PR c++/27309 (ICE on invalid constructor definition)
PR c++/27309
* class.c (add_method): Call grok_special_member_properties.
* decl.c (grokdeclarator): Don't call it here.
(copy_fn_p): A TEMPLATE_DECL is never a copy constructor or
assignment operator. Set TYPE_HAS_CONSTURCTOR if DECL is a
constructor.
(start_method): Don't call grok_special_member_properties.
* method.c (implicitly_declare_fn): Likewise.
* pt.c (instantiate_class_template): Likewise.
* decl2.c (grokfield): Likewise.
PR c++/27309
* g++.dg/parser/ctor5.C: New test.
From-SVN: r113473
Tom Tromey [Tue, 2 May 2006 15:54:00 +0000 (15:54 +0000)]
* tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
From-SVN: r113472
Kazu Hirata [Tue, 2 May 2006 15:06:35 +0000 (15:06 +0000)]
re PR target/27387 (Thumb thunk is not PIC)
gcc/
PR target/27387
* arm.c (arm_output_mi_thunk): Use pc-relative addressing when
-mthumb -fPIC are used.
testsuite/
PR target/27387
* gcc.target/arm/arm.exp: New.
* gcc.target/arm/pr27387.C: Likewise.
From-SVN: r113468
Kazu Hirata [Tue, 2 May 2006 15:04:52 +0000 (15:04 +0000)]
re PR target/27387 (Thumb thunk is not PIC)
gcc/
PR target/27387
* arm.c (arm_output_mi_thunk): Use pc-relative addressing when
-mthumb -fPIC are used.
testsuite/
PR target/27387
* gcc.target/arm/arm.exp: New.
* gcc.target/arm/pr27387.C: Likewise.
From-SVN: r113467
Paul Thomas [Tue, 2 May 2006 14:13:17 +0000 (14:13 +0000)]
re PR fortran/27269 (Segfault with EQUIVALENCEs in modules together with ONLY clauses)
2006-05-02 Paul Thomas <pault@gcc.gnu.org>
PR fortran/27269
* module.c: Add static flag in_load_equiv.
(mio_expr_ref): Return if no symtree and in_load_equiv.
(load_equiv): If any of the equivalence members have no symtree, free
the equivalence and the associated expressions.
PR fortran/27324
* trans-common.c (gfc_trans_common): Invert the order of calls to
finish equivalences and gfc_commit_symbols.
PR fortran/27269
PR fortran/27324
* gfortran.dg/module_equivalence_2.f90: New test.
From-SVN: r113465
Daniel Jacobowitz [Tue, 2 May 2006 14:00:22 +0000 (14:00 +0000)]
Correct changelog date in last commit.
From-SVN: r113463
Daniel Jacobowitz [Tue, 2 May 2006 13:50:58 +0000 (13:50 +0000)]
* texi2pod.pl: Handle -I.
From-SVN: r113462
Zdenek Dvorak [Tue, 2 May 2006 13:16:37 +0000 (13:16 +0000)]
Fix mistake in my previous commit (n_of_executions_at_least should be
named n_of_executions_at_most).
From-SVN: r113461
Stanislaw Skowronek [Tue, 2 May 2006 12:57:52 +0000 (12:57 +0000)]
re PR target/25871 (TRAMPOLINE_TEMPLATE uses 32bit moves on 64bit code)
2006-05-02 Joshua Kinard <kumba@gentoo.org>
PR target/25871
* gcc/config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
with 64-bit pointers.
From-SVN: r113460
Paul Brook [Tue, 2 May 2006 12:49:48 +0000 (12:49 +0000)]
arm.c (add_minipool_forward_ref): Check if insn and pool overlap.
2006-05-02 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (add_minipool_forward_ref): Check if insn
and pool overlap.
(create_fix_barrier): Check that a suitable barrier location is
found.
(arm_reorg): Include ftmp->address in allowable range of addresses.
From-SVN: r113459
David Billinghurst [Tue, 2 May 2006 11:38:35 +0000 (11:38 +0000)]
re PR ada/27366 (ada build fails as cygwin does not have clearenv)
2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
PR ada/27366
* ada/env.c (__gnat_clearenv): Use unsetenv() to clear
environment on Cygwin.
From-SVN: r113457
Jakub Jelinek [Tue, 2 May 2006 10:44:55 +0000 (12:44 +0200)]
re PR middle-end/27337 (OpenMP ICE in expand_expr_real_1 at expr.c:6814)
PR middle-end/27337
* gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
around RESULT_DECL for result passed by reference.
(gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
* omp-low.c (use_pointer_for_field): Don't look at
DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
(scan_omp_1): Call remap_decl on RESULT_DECLs.
(lower_rec_input_clauses): Don't allocate VLA memory for the second
time or var for passing by reference for
OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
TREE_ADDRESSABLE variables when passing by reference.
* omp-low.c (dump_omp_region): Fix output formatting.
cp/
* cp-gimplify.c (cxx_omp_privatize_by_reference): New function.
* cp-tree.h (cxx_omp_privatize_by_reference): New prototype.
* cp-objcp-common.h (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Define.
testsuite/
* g++.dg/gomp/pr27337-1.C: New test.
* g++.dg/gomp/pr27337-2.C: New test.
libgomp/
* testsuite/libgomp.c++/pr27337.C: New test.
From-SVN: r113456
Jakub Jelinek [Tue, 2 May 2006 10:41:44 +0000 (12:41 +0200)]
re PR middle-end/27328 (ICE with -fopenmp and goto)
PR middle-end/27328
* omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
(expand_omp_parallel): Likewise.
* tree-cfg.c (move_sese_region_to_fn): Likewise.
* gcc.dg/gomp/pr27328.c: New test.
From-SVN: r113455
Jakub Jelinek [Tue, 2 May 2006 10:40:21 +0000 (12:40 +0200)]
re PR middle-end/27325 (ICE with enabled exceptions and -fopenmp)
PR middle-end/27325
* omp-low.c (lower_omp_sections): Call maybe_catch_exception
on statement list containing also constructors and destructors.
(lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
* g++.dg/gomp/pr27325.C: New test.
From-SVN: r113454
Jakub Jelinek [Tue, 2 May 2006 10:38:12 +0000 (12:38 +0200)]
re PR middle-end/27310 (ICE in duplicate_eh_regions)
PR middle-end/27310
* except.c (duplicate_eh_regions): Fix clearing of
cfun->eh->region_array entries.
* g++.dg/gomp/pr27310.C: New test.
From-SVN: r113453
Ben Elliston [Tue, 2 May 2006 05:53:01 +0000 (15:53 +1000)]
Trivial formatting fixes accumulated over the last few months.
From-SVN: r113452
DJ Delorie [Tue, 2 May 2006 00:59:56 +0000 (20:59 -0400)]
Fix typo.
From-SVN: r113448
DJ Delorie [Tue, 2 May 2006 00:55:43 +0000 (20:55 -0400)]
configure.ac (gcc_cv_nm): Don't use an in-tree nm if build!=host.
* configure.ac (gcc_cv_nm): Don't use an in-tree nm if
build!=host.
(gcc_cv_objdump): Likewise.
* configure: Regenerated.
From-SVN: r113447
GCC Administrator [Tue, 2 May 2006 00:17:16 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113445
DJ Delorie [Tue, 2 May 2006 00:17:08 +0000 (20:17 -0400)]
configure.in: Restore CFLAGS if GM P isn't present.
* configure.in: Restore CFLAGS if GM P isn't present.
* configure: Regenerate.
From-SVN: r113444
Kazu Hirata [Mon, 1 May 2006 21:55:02 +0000 (21:55 +0000)]
re PR target/27374 (*arm_movdi_vfp in config/arm/vfp.md has wrong output templates)
PR target/27374
* config/arm/vfp.md (*arm_movdi_vfp): Correct the output
templates for case 3 and 4.
From-SVN: r113436
DJ Delorie [Mon, 1 May 2006 20:57:20 +0000 (16:57 -0400)]
vec.c: Include bconfig.h when appropriate.
* vec.c: Include bconfig.h when appropriate.
* Makefile.in (build/vec.o): Adjust dependencies.
* mkconfig.sh: Make sure config.h isn't used for build machine
compiles.
From-SVN: r113432
Zdenek Dvorak [Mon, 1 May 2006 20:52:21 +0000 (22:52 +0200)]
tree-into-ssa.c (phis_to_rewrite, [...]): New variables.
* tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
variables.
(mark_phi_for_rewrite): New function.
(insert_phi_nodes_for, mark_use_interesting): Call
mark_phi_for_rewrite.
(rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
(update_ssa): Initialize and free phis_to_rewrite.
From-SVN: r113431
Zdenek Dvorak [Mon, 1 May 2006 20:46:22 +0000 (22:46 +0200)]
re PR rtl-optimization/27291 (verify_flow_info failed: too many outgoing branch edges from bb 4)
PR rtl-optimization/27291
* loop-doloop.c (add_test, doloop_modify): Handle the case condition is
folded to a constant.
* g++.dg/tree-ssa/pr27291.C: New test.
From-SVN: r113430
Zdenek Dvorak [Mon, 1 May 2006 20:05:57 +0000 (22:05 +0200)]
re PR tree-optimization/27283 (ICE: SSA corruption - Conflict across an abnormal edge)
PR tree-optimization/27283
* tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
not whole # of iteration descriptions.
(niter_for_exit): Return just # of iterations. Fail if # of iterations
uses abnormal ssa name.
(niter_for_single_dom_exit): Ditto.
(find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
return just the number of iterations.
* g++.dg/tree-ssa/pr27283.C: New test.
From-SVN: r113427
Andreas Tobler [Mon, 1 May 2006 20:02:27 +0000 (22:02 +0200)]
configure.ac: Simplify the mmap check a bit more.
2006-05-01 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Simplify the mmap check a bit more.
* configure: Rebuilt.
* include/config.h.in: Likewise.
From-SVN: r113426
Zdenek Dvorak [Mon, 1 May 2006 19:42:01 +0000 (21:42 +0200)]
re PR tree-optimization/27144 (segfault with -O2 on x86_64 (and powerpc64))
PR tree-optimization/27144
* tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
(record_estimate): Only record constant upper bound.
(infer_loop_bounds_from_undefined): Call
compute_estimated_nb_iterations just once.
(proved_non_wrapping_p): Renamed to ...
(n_of_executions_at_most): ... this. Expect bound to be a constant.
(convert_step_widening, scev_probably_wraps_p): Call
n_of_executions_at_most instead of proved_non_wrapping_p.
(substitute_in_loop_info): Do not replace values in bounds.
* cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
comments.
* gcc.dg/tree-ssa/loop-16.c: New test.
From-SVN: r113425
Richard Henderson [Mon, 1 May 2006 17:46:32 +0000 (10:46 -0700)]
re PR c/27358 (ICE with invalid variable after #pragma omp parallel)
PR c/27358
* c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
CPP_PRAGMA.
From-SVN: r113421
Roger Sayle [Mon, 1 May 2006 16:51:19 +0000 (16:51 +0000)]
c-typeck.c (parser_build_binary_op): Don't call the function unsigned_conversion_warning to spot operand/result type...
* c-typeck.c (parser_build_binary_op): Don't call the function
unsigned_conversion_warning to spot operand/result type overflow.
(build_binary_op): Instead, call convert_and_check instead of
convert to report the problem when the operands are promoted.
* c-common.c (unsigned_conversion_warning): Make static.
* c-common.h (unsigned_conversion_warning): Delete prototype.
* gcc.dg/Wconversion-3.c: New test case.
* gcc.dg/Wconversion-4.c: Likewise.
Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r113418
Roger Sayle [Mon, 1 May 2006 16:28:42 +0000 (16:28 +0000)]
boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR before calling...
* boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
before calling GC_register_has_static_roots_callback.
(_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
HAVE_DLADDR before calling dladdr.
Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r113417
Richard Guenther [Mon, 1 May 2006 15:07:25 +0000 (15:07 +0000)]
re PR target/26726 (-fivopts producing out of bounds array refs)
2006-05-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/26726
* tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
problem ...
(find_interesting_uses_address): ... we work around here
by folding INDIRECT_REFs in the substituted base.
* g++.dg/tree-ssa/ivopts-1.C: New testcase.
From-SVN: r113414
Paolo Carlini [Mon, 1 May 2006 15:00:04 +0000 (15:00 +0000)]
acinclude.m4 (GLIBCXX_ENABLE_WCHAR_T): Always check the presence of wctype.h, for use in GLIBCXX_ENABLE_C99.
2006-05-01 Paolo Carlini <pcarlini@suse.de>
* acinclude.m4 (GLIBCXX_ENABLE_WCHAR_T): Always check the
presence of wctype.h, for use in GLIBCXX_ENABLE_C99.
* configure: Regenerate.
From-SVN: r113413
Diego Novillo [Mon, 1 May 2006 14:45:47 +0000 (14:45 +0000)]
omp-low.c (dump_omp_region): Add newlines.
* omp-low.c (dump_omp_region): Add newlines.
From-SVN: r113412
Richard Guenther [Mon, 1 May 2006 11:30:26 +0000 (11:30 +0000)]
MAINTAINERS (Various Maintainers): Add myself as libgcc-math maintainer.
2006-05-01 Richard Guenther <rguenther@suse.de>
* MAINTAINERS (Various Maintainers): Add myself as libgcc-math
maintainer.
From-SVN: r113409
Roger Sayle [Mon, 1 May 2006 04:27:15 +0000 (04:27 +0000)]
common.opt (Woverflow): New command line option.
* common.opt (Woverflow): New command line option.
* c-common.c (constant_expression_warning): Check warn_overflow.
(overflow_waring): Pass OPT_Woverflow to warning.
(unsigned_conversion_warning): Likewise.
(convert_and_check): Likewise.
* doc/invoke.texi: Document new command line option.
* gcc.dg/Woverflow-1.c: New test case.
* gcc.dg/Woverflow-2.c: Likewise.
* gcc.dg/Woverflow-3.c: Likewise.
From-SVN: r113408
GCC Administrator [Mon, 1 May 2006 00:17:05 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113404
Mark Mitchell [Sun, 30 Apr 2006 23:21:38 +0000 (23:21 +0000)]
re PR c++/27094 (tree check: expected tree_list, have omp_return in build_call)
PR c++/27094
* pt.c (tsubst_default_argument): Increment function_depth around
call to tsubst_expr.
* parser.c (cp_parser_parameter_declaration): Likewise.
* decl2.c (mark_used): Tidy.
PR c++/27094
* g++.dg/template/defarg8.C: New test.
From-SVN: r113399
David Edelsohn [Sun, 30 Apr 2006 19:23:13 +0000 (19:23 +0000)]
rs6000.c (rs6000_override_options): Enable TARGET_NO_FP_IN_TOC for section anchors.
* config/rs6000/rs6000.c (rs6000_override_options): Enable
TARGET_NO_FP_IN_TOC for section anchors.
(optimization_options): Enable section anchors for all
non-"Objective" languages.
From-SVN: r113395
Kenneth Zadeck [Sun, 30 Apr 2006 13:32:05 +0000 (13:32 +0000)]
MAINTAINERS (Write After Approval): Add myself.
2006-04-30 Kenneth Zadeck <zadeck@naturalbridge.com>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r113392
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
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
GCC Administrator [Sun, 30 Apr 2006 00:17:16 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113386
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
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
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
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
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
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
GCC Administrator [Sat, 29 Apr 2006 00:17:12 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113368
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
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
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
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
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
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
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
Matthias Klose [Fri, 28 Apr 2006 14:05:42 +0000 (14:05 +0000)]
- add missing ChangeLog entry, see PR27334
From-SVN: r113347
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
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
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
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
GCC Administrator [Fri, 28 Apr 2006 00:17:21 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113331
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
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Thu, 27 Apr 2006 00:17:35 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113290
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
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
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Wed, 26 Apr 2006 00:17:08 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r113263
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
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