Commit Graph

97743 Commits

Author SHA1 Message Date
GCC Administrator
25bf76a523 Daily bump.
From-SVN: r155497
2009-12-29 00:17:09 +00:00
Janus Weil
aba7171d5f re PR fortran/42353 ([OOP] Bogus Error: Name 'vtype$...' at (1) is an ambiguous reference ...)
gcc/fortran/
2009-12-28 Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42353
	* symbol.c (gfc_find_derived_vtab): Make vtabs and vtypes private.

gcc/testsuite/
2009-12-28  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42353
	* gfortran.dg/class_13.f03: New test.

From-SVN: r155494
2009-12-29 00:13:03 +01:00
David Edelsohn
72b79d3945 ffi_darwin.c (ffi_prep_args): Copy abi and nargs to local variables.
* src/powerpc/ffi_darwin.c (ffi_prep_args): Copy abi and nargs to
        local variables.
        (aix_adjust_aggregate_sizes): New function.
        (ffi_prep_cif_machdep): Call it.

From-SVN: r155492
2009-12-28 13:19:18 -05:00
H.J. Lu
36960f2e20 Correct pathname.
From-SVN: r155490
2009-12-28 08:57:01 -08:00
H.J. Lu
58e9bc70a6 Mention PR middle-end/41344.
From-SVN: r155488
2009-12-28 08:44:34 -08:00
H.J. Lu
ca50f84ad9 Handle GIMPLE_COND in diagnose_sb_2.
gcc/

2009-12-28  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/41344
	* omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.

gcc/testsuite/

2009-12-28  H.J. Lu  <hongjiu.lu@intel.com>

	* gfortran.dg/gomp/pr41344.f: New.

From-SVN: r155487
2009-12-28 08:41:33 -08:00
Christopher Faylor
f77f39454c MAINTAINERS: Change my email address.
* MAINTAINERS: Change my email address.

From-SVN: r155486
2009-12-28 04:50:44 +00:00
Martin Jambor
c5b338ad9d re PR tree-optimization/42231 (Wrong generated code when using a callback function (possible callback function inlining bug ?))
2009-12-27  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/42231
	* testsuite/gcc.c-torture/execute/pr42231.c: New test.

From-SVN: r155485
2009-12-28 02:41:07 +01:00
GCC Administrator
a85f9f14de Daily bump.
From-SVN: r155484
2009-12-28 00:16:38 +00:00
Joseph Myers
4852f38b7c * sv.po: Update.
From-SVN: r155480
2009-12-27 18:40:21 +00:00
Francois-Xavier Coudert
ca071303a5 re PR fortran/22552 (Would like warning when an undeclared function is called)
2009-12-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
	    Daniel Kraft  <d@domob.eu>

	PR fortran/22552
	* lang.opt (Wimplicit-procedure): New option.
	* gfortran.h (struct gfc_option_t): New member `warn_implicit_procedure'
	* options.c (gfc_handle_option): Handle -Wimplicit-procedure.
	* interface.c (gfc_procedure_use): Warn about procedure never
	explicitly declared if requested by the new flag.
	* invoke.texi: Document new flag -Wimplicit-procedure.

2009-12-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
	    Daniel Kraft  <d@domob.eu>

	PR fortran/22552
	* gfortran.dg/warn_implicit_procedure_1.f90: New test.

Co-Authored-By: Daniel Kraft <d@domob.eu>

From-SVN: r155479
2009-12-27 10:30:57 +01:00
GCC Administrator
6f352c3a70 Daily bump.
From-SVN: r155478
2009-12-27 00:17:00 +00:00
Andreas Tobler
99fba2c42a configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
2009-12-26  Andreas Tobler  <a.tobler@schweiz.org>

	* configure.ac: Define FFI_MMAP_EXEC_WRIT for the given targets.
	* configure: Regenerate.
	* fficonfig.h.in: Likewise.
	* src/closures.c: Remove the FFI_MMAP_EXEC_WRIT definition for
	Solaris/x86.

From-SVN: r155475
2009-12-26 19:49:55 +01:00
Andreas Schwab
302486f4fb ffi.c (ffi_prep_args_SYSV): Advance intarg_count when a float arguments is passed in memory.
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Advance intarg_count
when a float arguments is passed in memory.
(ffi_closure_helper_SYSV): Mark general registers as used up when
a 64bit or soft-float long double argument is passed in memory.

From-SVN: r155473
2009-12-26 12:40:27 +00:00
Anthony Green
b8f38e8917 Fix ChangeLog entry date
From-SVN: r155472
2009-12-26 05:04:08 +00:00
Matthias Klose
2c57b16134 Fix libffi docs
From-SVN: r155471
2009-12-26 05:01:43 +00:00
Frank Everdij
c4205f77f3 IRIX support
From-SVN: r155470
2009-12-26 04:59:25 +00:00
Bradley Smith
124f60ab29 avr32 libffi port
From-SVN: r155469
2009-12-26 04:21:07 +00:00
GCC Administrator
f8b9b505f2 Daily bump.
From-SVN: r155468
2009-12-26 00:17:04 +00:00
GCC Administrator
ac96f086a1 Daily bump.
From-SVN: r155464
2009-12-25 00:16:44 +00:00
Jason Merrill
db10df3dfc PR c++/41305, DR 384
PR c++/41305, DR 384
	* name-lookup.c (arg_assoc_class): Split out arg_assoc_class_only
	and arg_assoc_bases.
	(friend_of_associated_class_p): Remove.
	(arg_assoc_namespace): Don't call it.
	(arg_assoc_template_arg): Use arg_assoc_class_only for member
	template context.
	(arg_assoc_type): Handle UNION_TYPE and ENUMERAL_TYPE properly.

	* name-lookup.c (arg_assoc): Handle TEMPLATE_ID_EXPR properly.

From-SVN: r155461
2009-12-24 16:46:14 -05:00
Andy Hutchinson
17fad3611f re PR target/42457 (AVR fails to build with other than C family languages)
2009-12-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

	PR target/42457
	* config/avr/avr.c (avr_extra_arch_macro): Remove static.
	(avr_cpu_cpp_builtins): Remove.
	* config/avr/avr.h (avr_extra_arch_macro): Add prototype.
	* config/avr/avr-c.c: New File.
	(avr_cpu_cpp_builtins) : Add.
	* config/avr/t-avr: Add make information for avr-c.
	* config.gcc (avr-*-*): Include avr-c.o as c and cpp object.

From-SVN: r155460
2009-12-24 20:32:38 +00:00
Andy Hutchinson
846428f11f PR target/35013, 27192
2009-12-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

	PR target/35013, 27192
	* config/avr/avr.c (print_operand_address): Print correct program
	memory address.
	Add warning for large device offset addresses.
	(avr_assemble_integer): Ditto.
	(print_operand): Add warnings for incorrect addressing.
	(out_movqi_r_mr): Tag assembler with new address codes.
	(out_movhi_r_mr): Ditto.
	(out_movsi_r_mr): Ditto.
	(out_movqi_mr_r): Ditto.
	(out_movhi_mr_r): Ditto.
	(out_movsi_mr_r): Ditto.
	* config/avr/predicates.md (text_segment_operand): New predicate.
	* config/avr/avr.md (jump): Tag assembler with new address codes.
	(call_insn): Ditto.
	(call_value_insn): Ditto.
	(*tablejump_lib): Ditto.
	(*cbi): Ditto.
	(*sbi): Ditto.
	(indirect_jump): New define_expand.
	(jcindirect_jump): New pattern for constant expression jump.
	(njcindirect_jump): Renamed old indirect_jump.

From-SVN: r155459
2009-12-24 19:53:57 +00:00
Paolo Carlini
a1b418cb9f [multiple changes]
2009-12-24  Edward Smith-Rowland  <3dw4rd@verizon.net>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/bitset (bitset<>::bitset(const char*)): Add.

2009-12-24  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Edward Smith-Rowland  <3dw4rd@verizon.net>

	* testsuite/23_containers/bitset/cons/2.cc: New.

From-SVN: r155458
2009-12-24 18:12:02 +00:00
Jonathan Wakely
c5a2375241 functional (bind): Avoid invalid instantiations for bind<void>.
2009-12-24  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/functional (bind): Avoid invalid instantiations
	for bind<void>.
	* testsuite/20_util/bind/conv_result.cc: New.

From-SVN: r155457
2009-12-24 14:54:33 +00:00
Paolo Carlini
0800b8ea79 stl_deque.h (copy_backward(_Deque_iterator, _Deque_iterator, _Deque_iterator), [...]): Declare.
2009-12-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_deque.h (copy_backward(_Deque_iterator,
	_Deque_iterator, _Deque_iterator), move_backward(_Deque_iterator,
	_Deque_iterator, _Deque_iterator)): Declare.
	* include/bits/deque.tcc: Implement the latter.
	* testsuite/performance/25_algorithms/
	copy_backward_deque_iterators.cc: New.
	* testsuite/25_algorithms/move_backward/deque_iterators/1.cc: Likewise.
	* testsuite/25_algorithms/copy_backward/deque_iterators/1.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_2_neg.cc: Likewise.

From-SVN: r155455
2009-12-24 12:47:37 +00:00
Steven Bosscher
b114d73a7b store-motion.c (build_store_vectors): Clear regs_set_in_block at the start of a loop over basic blocks.
* store-motion.c (build_store_vectors): Clear regs_set_in_block at
	the start of a loop over basic blocks.

From-SVN: r155454
2009-12-24 12:28:52 +00:00
Julian Brown
0986ef456e re PR target/40887 (GCC generates suboptimal code for indirect function calls on ARM)
Fix PR target/40887



2009-12-24  Julian Brown  <julian@codesourcery.com>
            Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/40887

        * config/arm/arm.c (output_call_mem): Remove armv5 support.
        * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
        (*call_value_mem): Likewise.


        PR target/40887

        * gcc.target/gcc.arm/pr40887.c: New test.

Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

From-SVN: r155453
2009-12-24 10:46:00 +00:00
GCC Administrator
0b8a1859cf Daily bump.
From-SVN: r155447
2009-12-24 00:16:52 +00:00
Cary Coutant
b67d99f8af Fixed ChangeLog entry.
From-SVN: r155434
2009-12-23 11:02:07 -08:00
Paolo Carlini
a1ebe9ac3e 5.cc: Move...
2009-12-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/25_algorithms/copy/5.cc: Move...
	* testsuite/25_algorithms/copy/deque_iterators/1.cc: ... here.
	* testsuite/25_algorithms/move/2.cc: Move...
	* testsuite/25_algorithms/move/deque_iterators/1.cc: ... here.

From-SVN: r155433
2009-12-23 18:45:41 +00:00
Paolo Carlini
e2bf200700 stl_deque.h (copy(_Deque_iterator, _Deque_iterator, _Deque_iterator), [...]): Declare.
2009-12-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_deque.h (copy(_Deque_iterator, _Deque_iterator,
	_Deque_iterator), move(_Deque_iterator, _Deque_iterator,
	_Deque_iterator)): Declare.
	* include/bits/deque.tcc: Implement the latter.
	* testsuite/performance/25_algorithms/copy_deque_iterators.cc: New.
	* testsuite/25_algorithms/move/2.cc: Likewise.
	* testsuite/25_algorithms/copy/5.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_2_neg.cc: Likewise.

From-SVN: r155432
2009-12-23 17:14:15 +00:00
Jakub Jelinek
7f7211fb3f re PR rtl-optimization/42475 (ICE at -O1 and above: internal compiler error: in simplify_subreg, at simplify-rtx.c:4954)
PR rtl-optimization/42475
	* combine.c (make_compound_operation) <case SUBREG>: Use mode of
	SUBREG_REG (x) instead of tem's mode.

	* gcc.dg/pr42475.c: New test.

From-SVN: r155430
2009-12-23 18:04:07 +01:00
Jakub Jelinek
374b9cb810 re PR debug/42454 (debug_ranges table contains empty range for unused .text section with -ffunction-sections)
PR debug/42454
	* dwarf2out.c (add_ranges_by_labels_to_AT_range_list): New function.
	(dwarf2out_finish): Call add_ranges_by_labels_to_AT_range_list.

	* gcc.dg/debug/dwarf2/aranges-fnsec-1.c: Add check for .debug_ranges.

Co-Authored-By: Cary Coutant <ccoutant@google.com>

From-SVN: r155429
2009-12-23 17:54:35 +01:00
Ramana Radhakrishnan
83c3a2d826 re PR target/42093 (Compressed switch tables for Thumb2 have signed offsets)
Fix PR target/42093


2009-12-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/42093
        * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Fix macro usage
        to TARGET_THUMB1.
        (CASE_VECTOR_SHORTEN_MODE): Allow signed offsets 
        only for TARGET_THUMB1.

2009-12-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/42093
        * gcc.target/arm/pr42093.c: New test.

From-SVN: r155428
2009-12-23 16:36:40 +00:00
Ramana Radhakrishnan
07422036e3 Pass floating point constant moves to integer registers
as mov immediates for Thumb1.


2009-12-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/40670
        * config/arm/arm.md: Split for Thumb1 as well.

        * gcc.target/arm/pr40670.c: New test.

From-SVN: r155427
2009-12-23 16:29:12 +00:00
Uros Bizjak
9c419ba8f8 20000715-1.c: Remove target selector.
* gcc.target/alpha/20000715-1.c: Remove target selector.
	* gcc.target/alpha/20011018-1.c: Ditto.
	* gcc.target/alpha/980217-1.c: Ditto.
	* gcc.target/alpha/asm-1.c: Ditto.
	* gcc.target/alpha/base-1.c: Ditto.
	* gcc.target/alpha/base-2.c: Ditto.
	* gcc.target/alpha/cix-1.c: Ditto.
	* gcc.target/alpha/cix-2.c: Ditto.
	* gcc.target/alpha/max-1.c: Ditto.
	* gcc.target/alpha/max-2.c: Ditto.

From-SVN: r155426
2009-12-23 15:08:23 +01:00
Sebastian Pop
1b3abda87d Add missing testcases.
2009-12-23  Sebastian Pop  <sebpop@gmail.com>

	* g++.dg/graphite/id-1.C: New.
	* g++.dg/graphite/pr41305.C: New.
	* gcc.dg/graphite/id-16.c: New.
	* gcc.dg/graphite/interchange-10.c: New.
	* gcc.dg/graphite/interchange-11.c: New.
	* gcc.dg/graphite/interchange-mvt.c: New.
	* gcc.dg/graphite/pr40281.c: New.
	* gcc.dg/graphite/run-id-2.c: New.
	* gcc.dg/graphite/scop-dsyr2k.c: New.
	* gcc.dg/graphite/scop-dsyrk.c: New.
	* gcc.dg/graphite/scop-mvt.c: New.
	* gcc.dg/graphite/scop-sor.c: New.
	* gfortran.dg/graphite/id-18.f90: New.
	* gfortran.dg/graphite/interchange-3.f90: New.
	* gfortran.dg/graphite/pr42050.f90: New.

	* testsuite/libgomp.graphite/pr4118.c: New.

From-SVN: r155424
2009-12-23 07:51:19 +00:00
Sebastian Pop
a84a556d97 re PR middle-end/42180 (compiling induct.f90 with -ffast-math -O2 -fgraphite-identity ICEs gfortran)
Fix PR42180.

2009-12-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42180
	* graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
	GIMPLE_CALL.

	* testsuite/gfortran.dg/graphite/pr42180.f90: Add compile flags.

From-SVN: r155423
2009-12-23 07:51:05 +00:00
Sebastian Pop
b147df0bcf re PR middle-end/42180 (compiling induct.f90 with -ffast-math -O2 -fgraphite-identity ICEs gfortran)
Fix PR42180.

2009-12-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42180
	* graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
	that contain only one statement.

From-SVN: r155422
2009-12-23 07:50:53 +00:00
Sebastian Pop
ce20f9d674 re PR middle-end/42393 ([graphite] internal compiler error: in check_loop_closed_ssa_use)
Fix PR42393.

2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42393
	* testsuite/gfortran.dg/graphite/pr42393.f90: New.

From-SVN: r155421
2009-12-23 07:50:43 +00:00
Sebastian Pop
d2a271ac6f re PR debug/42186 ([graphite] internal compiler error: verify_ssa failed)
Fix PR42186.

2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42186
	* testsuite/gfortran.dg/graphite/pr42186.f90: New.

From-SVN: r155420
2009-12-23 07:50:32 +00:00
Sebastian Pop
403ebc7e2c re PR tree-optimization/42205 ([graphite] internal compiler error: verify_ssa failed with -ffast-math -floop-interchange)
Fix PR42205.

2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42205
	* graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
	Insert the reduction copy in the same block as the phi node.
	(follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.

	* testsuite/gcc.dg/graphite/pr42205-1.c: New.
	* testsuite/gcc.dg/graphite/pr42205-2.c: New.

From-SVN: r155419
2009-12-23 07:50:22 +00:00
Sebastian Pop
070ba48343 Fix PR42334: correct the update of the LST on loop interchange and distribution.
2009-12-15  Sebastian Pop  <sebastian.pop@amd.com>

        PR middle-end/42178
        PR middle-end/42334
        * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
        that are empty.
        (lst_do_interchange_1): Renamed lst_interchange_select_inner.
        (lst_try_interchange): Reimplemented.
        (lst_interchange_select_inner): Same.
        (lst_do_interchange): Renamed lst_interchange_select_outer.
        Reimplemented.
        (scop_do_interchange): Update use of lst_interchange_select_outer.

        * graphite-interchange.c (lst_try_interchange): Do not increment the
        the OUTER index when there is no AFTER kernel.  Do not increment the
        OUTER index for after processing the AFTER kernel.
        (lst_interchange_select_inner): Call lst_try_interchange only on loops.
        (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
        index.  Do not pass to lst_interchange_select_inner the OUTER index.
        (scop_do_interchange): Update use of lst_interchange_select_outer.

        * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
        index.  Call lst_interchange_select_inner only once.
        (lst_interchange_select_inner): Update use of lst_try_interchange.
        (lst_interchange_select_outer): Update.

        * testsuite/g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
        * testsuite/gcc.dg/graphite/block-0.c: Un-XFAILed.
        * testsuite/gcc.dg/graphite/pr42211.c: New.
        * testsuite/gfortran.dg/graphite/pr42334.f90: New.

        * testsuite/gfortran.dg/graphite/graphite.exp
        (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
        * testsuite/gfortran.dg/graphite/interchange-1.f: Add comment.  Clean
        the graphite dump file.
        * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
        * testsuite/gfortran.dg/graphite/pr42334-1.f: New.

From-SVN: r155418
2009-12-23 07:50:12 +00:00
Sebastian Pop
4b216ab08a re PR middle-end/42181 ([graphite] -fgraphite-identity miscompiles air.f90)
Fix PR42181.

2009-12-14  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42181
	* graphite-scop-detection.c (graphite_can_represent_scev): Handle more
	carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.

	* testsuite/gfortran.dg/graphite/pr42181.f90: New.

From-SVN: r155417
2009-12-23 07:50:00 +00:00
Dodji Seketeli
58326a5620 re PR c++/42260 (ICE looking up template conversion operator)
Fix PR c++/42260

gcc/cp/ChangeLog:
	PR c++/42260
	* cp-tree.h (lookup_conversions): Add new bool parameter to
	declaration.
	* search.c (lookup_conversion): Use new bool parameter in
	definition.
	* call.c (add_builtin_candidates): Don't lookup template conversion
	(convert_class_to_reference, build_user_type_conversion_1,
	 build_op_call): Adjust.
	* cvt.c (build_expr_type_conversion): Likewise

gcc/testsuite/ChangeLog:
	PR c++/42260
	* conversion/cast2.C: New test.

From-SVN: r155415
2009-12-23 01:31:33 +01:00
GCC Administrator
79e2daa9a1 Daily bump.
From-SVN: r155414
2009-12-23 00:16:57 +00:00
Jason Merrill
2865105751 re PR c++/42466 (Multiple instantiations of template constructor fail)
PR c++/42466
	* pt.c (reduce_template_parm_level): Check the type before
	returning cached TEMPLATE_PARM_INDEX.

From-SVN: r155411
2009-12-22 18:16:46 -05:00
Jason Merrill
5666bb32d1 re PR c++/42331 (ICE with invalid array initializer)
PR c++/42331
	* typeck.c (cp_build_modify_expr): Fix thinko.

From-SVN: r155410
2009-12-22 18:16:38 -05:00
Iain Sandoe
e19977d379 crayptr2.f90: Remove forced static linkage for darwin...
2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>

	* testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
	for darwin, protect the test with require-effective-target tls_runtime.
	* testsuite/libgomp.fortran/pr32550.f90: Ditto.

From-SVN: r155409
2009-12-22 22:16:02 +00:00