Commit Graph

114956 Commits

Author SHA1 Message Date
Ian Lance Taylor
fa9fe7a5a7 compiler: Don't crash on switch _ := v.(type).
From-SVN: r183814
2012-02-01 20:40:31 +00:00
Thomas Koenig
cf82db1626 re PR fortran/51958 (-ffrontend-optimize generates wrong code)
2012-02-01  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/51958
	* frontend-passes.c (convert_elseif):  New function.
	(optimize_namespace):  Call it.

2012-02-01  Thomas König  <tkoenig@gcc.gnu.org>

	PR fortran/51958
	* gfortran.dg/function_optimize_10.f90:  New test.

From-SVN: r183812
2012-02-01 19:40:25 +00:00
Uros Bizjak
25f10bd4bb go-test.exp (go-gc-tests): xfail test/nilptr.go runtime test on alpha*-*-*.
* go.test/go-test.exp (go-gc-tests): xfail test/nilptr.go runtime
	test on alpha*-*-*.

From-SVN: r183811
2012-02-01 20:32:42 +01:00
Ian Lance Taylor
9af4cb9545 libgo: Update to weekly.2012-01-27.
From-SVN: r183810
2012-02-01 19:26:59 +00:00
Tobias Burnus
6b6cd722f3 re PR fortran/52024 ([OOP] GENERIC operator cannot be resolved)
2012-02-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52024
        * module.c (MOD_VERSION): Bump.
        (mio_typebound_proc): Read/write is_operator from/to the
        .mod file.

2012-02-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52024
        * gfortran.dg/typebound_operator_14.f90: New.

From-SVN: r183808
2012-02-01 20:06:07 +01:00
Tobias Burnus
887ee29f8e 2012-02-01 Tobias Burnus
PR fortran/52059
        * trans-expr.c (gfc_conv_procedure_call): Add array ref
        only to variables.

2012-02-01  Tobias Burnus

        PR fortran/52059
        * gfortran.dg/elemental_function_1.f90: New.

From-SVN: r183807
2012-02-01 20:01:49 +01:00
Jakub Jelinek
c2b13bb66d re PR target/52079 (ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf)
PR target/52079
	* go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
	return build_nonstandard_integer_type result if possible.

From-SVN: r183806
2012-02-01 19:58:44 +01:00
Ian Lance Taylor
f4f3b9d396 compiler: Permit a general expression in case x := <-c.
From-SVN: r183802
2012-02-01 14:29:28 +00:00
Georg-Johann Lay
c2453253e7 avr.c: Resolve all AS1 and AS2 macros.
* config/avr/avr.c: Resolve all AS1 and AS2 macros.
	* config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
	(OUT_AS1, OUT_AS2): Remove.

From-SVN: r183800
2012-02-01 13:21:21 +00:00
Georg-Johann Lay
619392851d re PR rtl-optimization/51374 ([avr] insn combine reorders volatile memory accesses)
PR rtl-optimization/51374
	* gcc.target/avr/torture/pr51374-1.c:
	Also fail if SBIS is seen.

From-SVN: r183798
2012-02-01 12:46:39 +00:00
Georg-Johann Lay
07ad5438a1 re PR rtl-optimization/51374 ([avr] insn combine reorders volatile memory accesses)
gcc/
	PR rtl-optimization/51374
	* combine.c (can_combine_p): Don't allow volatile_refs_p insns
	to cross other volatile_refs_p insns.

gcc/testsuite/
	PR rtl-optimization/51374
	* testsuite/gcc.target/avr/torture/pr51374-1.c: New.

From-SVN: r183796
2012-02-01 11:35:34 +00:00
Kai Tietz
76a3962fe9 re PR libgcj/51500 (106 unexpected libjava testsuite failures with mingw32)
PR target/51500
	* interpret.cc (_Jv_init_cif): Handle thiscall
	convention for 32-bit Windows.
	* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
	Likewise.
	* java/lang/reflect/natVMProxy.cc (invoke_t): Add
	thiscall-attribute for 32-bit Windows.

From-SVN: r183794
2012-02-01 11:46:36 +01:00
Tristan Gingold
337c6e076c trans.c (Loop_Statement_to_gnu): Use sizetype instead of size_type_node.
2012-02-01  Tristan Gingold  <gingold@adacore.com>

	* gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
	instead of size_type_node.

From-SVN: r183793
2012-02-01 09:52:28 +00:00
Richard Guenther
99ea07f8f0 invoke.texi (fno-inline): Clarify documentation.
2012-02-01  Richard Guenther  <rguenther@suse.de>

	* doc/invoke.texi (fno-inline): Clarify documentation.
	(finline-small-functions): Likewise.
	(finline-functions): Likewise.
	* common.opt (finline): Adjust comment and documentation.
	(finline-small-functions): Clarify documentation.
	(finline-functions): Likewise.
	(finline-functions-called-once): Likewise.

From-SVN: r183792
2012-02-01 09:20:32 +00:00
Tristan Gingold
3db684fb89 c-typeck.c (composite_type): Keep mode for pointers.
2012-02-01  Tristan Gingold  <gingold@adacore.com>

	* c-typeck.c (composite_type): Keep mode for pointers.

From-SVN: r183791
2012-02-01 08:49:11 +00:00
Jonathan Wakely
488b3e6573 re PR libstdc++/49204 ([C++0x] remaining issues in <future>)
PR libstdc++/49204
	* include/std/future (__future_base::_State_base::wait()): Use lambda
	expression for predicate and remove redundant test.
	(__future_base::_State_base::wait_for()): Return future_status and
	use lambda expression for predicate.
	(__future_base::_State_base::wait_until()): Likewise.
	(__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
	(__future_base::_Async_state): Replace with _Async_state_common
	class for non-dependent functionality and _Async_state_impl class
	template for dependent functionality.
	(__future_base::_Async_state_common::_M_join): Serialize attempts to
	join thread.
	(__future_base::_Async_state_common::_M_run_deferred): Join.
	(__future_base::_Async_state::_M_do_run): Replace with lambda.
	* src/c++11/future.cc (__future_base::_Async_state_common): Define
	destructor, so key function is in the library.
	* config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
	* testsuite/30_threads/packaged_task/members/get_future.cc: Expect
	future_status return instead of bool.
	* testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
	* testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
	* testsuite/30_threads/future/members/wait_until.cc: Likewise.
	* testsuite/30_threads/future/members/wait_for.cc: Likewise.
	* testsuite/30_threads/promise/members/set_value2.cc: Likewise.
	* testsuite/30_threads/promise/members/set_value3.cc: Likewise.
	* testsuite/30_threads/promise/members/swap.cc: Likewise.

From-SVN: r183788
2012-02-01 00:20:08 +00:00
GCC Administrator
3627585bcf Daily bump.
From-SVN: r183787
2012-02-01 00:19:29 +00:00
Ian Lance Taylor
a763aa92e5 compiler: Don't crash on type switch case nil with selector.
From-SVN: r183782
2012-02-01 00:02:58 +00:00
Ian Lance Taylor
7d18953823 syscall: Add Gettid on GNU/Linux systems.
From-SVN: r183775
2012-01-31 20:47:55 +00:00
Joseph Myers
e15999a5ed * uk.po: Update.
From-SVN: r183774
2012-01-31 19:57:49 +00:00
Richard Sandiford
35aebd5635 function.h (regno_reg_rtx): Adjust comment.
gcc/
	* function.h (regno_reg_rtx): Adjust comment.
	* reginfo.c (init_reg_modes_target): Only use the previous mode
	if it fits within one register.  Remove MIPS comment.

From-SVN: r183773
2012-01-31 19:11:00 +00:00
Tobias Burnus
218e1228c9 re PR fortran/52024 ([OOP] GENERIC operator cannot be resolved)
2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52024
        * gfortran.h (gfc_tbp_generic): Store whether the
        generic is an operator.
        * decl.c (gfc_match_generic): Set that flag.
        * resolve.c (check_generic_tbp_ambiguity): Use it in the
        gfc_compare_interfaces check.

2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52024
        * gfortran.dg/typebound_generic_11.f90: New.

From-SVN: r183771
2012-01-31 19:41:47 +01:00
Tobias Burnus
0b73eb812e re PR fortran/52029 ([OOP] _copy should be PURE)
2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52029
        * class.c (gfc_find_derived_vtab): Mark _copy function as pure.

2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52029
        * gfortran.dg/class_49.f90: New.

From-SVN: r183770
2012-01-31 19:38:43 +01:00
Tobias Burnus
2419ff64b9 re PR fortran/52013 ([OOP] Polymorphism and coarrays: Support as class container)
2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52013
        * class.c (get_unique_hashed_string): Adapt trim length.
        (gfc_build_class_symbol) Encode also corank in the container name.

2012-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52013

From-SVN: r183769
2012-01-31 19:36:40 +01:00
Jason Merrill
2297ab7d84 re PR c++/52043 ([C++0x] ICE: SIGSEGV in tsubst_copy (pt.c:12081) with -Wreturn-type)
PR c++/52043
	* cp-tree.h (PACK_EXPANSION_LOCAL_P): New.
	* pt.c (make_pack_expansion, tsubst_initializer_list): Set it.
	(tsubst_pack_expansion): Check it.

From-SVN: r183768
2012-01-31 12:41:24 -05:00
Joseph Myers
4277cddae3 * es.po: Update.
From-SVN: r183766
2012-01-31 16:41:53 +00:00
Joseph Myers
120ce43c9b * es.po: Update.
From-SVN: r183765
2012-01-31 16:41:16 +00:00
Jakub Jelinek
8bb1a172e7 re PR bootstrap/52058 (bootstrap fails on HAVE_cc0: combine.c: 'do_SUBST_LINK' defined but not used)
PR bootstrap/52058
	* combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.

From-SVN: r183763
2012-01-31 17:08:47 +01:00
Andreas Krebbel
01496eca3f s390.md ("*ashr<mode>3_and"): Add missing z196 flag to srak instruction.
2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
	to srak instruction.

From-SVN: r183759
2012-01-31 15:07:02 +00:00
Ian Lance Taylor
e8738e985e syscall: Don't use PtraceRegs if it is not defined.
From-SVN: r183758
2012-01-31 14:23:07 +00:00
Paul Thomas
458842fb38 re PR fortran/52012 (Wrong-code with realloc on assignment and RESHAPE w/ ORDER=)
2012-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52012
	* trans-expr.c (fcncall_realloc_result): Correct calculation of
	result offset.

2012-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52012
	* gfortran.dg/realloc_on_assign_10.f90: New test.

From-SVN: r183757
2012-01-31 12:30:32 +00:00
Matthew Gretton-Dann
a2be33be24 config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
condition.

From-SVN: r183756
2012-01-31 11:50:19 +00:00
Rainer Orth
fc985d2fc7 Fixed PR reference.
From-SVN: r183755
2012-01-31 11:42:55 +00:00
Rainer Orth
681355e30d Link C++ tests with -shared-libgcc (PR libitm/51822)
PR libstdc++/51296
	* testsuite/libitm.c++/c++.exp (lang_link_flags): Add
	-shared-libgcc.
	Correct libgomp references.

From-SVN: r183754
2012-01-31 11:40:17 +00:00
Jakub Jelinek
dd887943bf re PR bootstrap/52041 (Bootstrap failure at revision 183650 with --enable-checking=release)
PR bootstrap/52041
	PR bootstrap/52039
	PR target/51974
	* ipa-prop.c (detect_type_change_1): Call ao_ref_init.

From-SVN: r183753
2012-01-31 11:06:50 +01:00
Richard Guenther
63d7ceaaba re PR tree-optimization/51528 (SRA should not create BOOLEAN_TYPE replacements)
2012-01-31  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/51528
	* tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
	assigns.

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

From-SVN: r183752
2012-01-31 09:46:29 +00:00
Jakub Jelinek
68c8a82477 re PR bootstrap/52041 (Bootstrap failure at revision 183650 with --enable-checking=release)
PR bootstrap/52041
	PR bootstrap/52039
	PR target/51974
	* ree.c (add_removable_extension): Change def_map argument
	to unsigned *, store in def_map 1 + offset into *insn_list vector
	instead of pointers into the vector.
	(find_removable_extensions): Adjust caller.

From-SVN: r183751
2012-01-31 09:41:46 +01:00
GCC Administrator
a5516da864 Daily bump.
From-SVN: r183749
2012-01-31 00:19:10 +00:00
Ian Lance Taylor
4a1a859611 syscall: Support socket control messages.
From-SVN: r183745
2012-01-30 23:57:42 +00:00
Joseph Myers
842f302e91 be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
	ja.po, nl.po, ru.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po,
	zh_TW.po: Update.

From-SVN: r183744
2012-01-30 23:17:00 +00:00
Joseph Myers
9ad7dc8906 be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
	nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
	Update.

From-SVN: r183743
2012-01-30 23:14:36 +00:00
Uros Bizjak
25fb834e58 re PR go/48501 (64bit-out.go, select5-out.go, tmp.go compilation times out)
PR go/48501
	* lib/go.exp (go_target_compile): Append timeout= to options.
	* go.test/go-test.exp (go-gc-tests): Add dg-timeout-factor for
	select5-out.go test on alpha*-*-* targets.

From-SVN: r183741
2012-01-30 22:31:38 +01:00
Georg-Johann Lay
a7fd5c6b06 avr.md: Resolve all AS1 and AS2 macros.
* config/avr/avr.md: Resolve all AS1 and AS2 macros.
	Transform all "* quoted-c-code" to { c-code }.
	Remove redundant test for "optimize" in combine patterns.
	Move (include "avr-dimode.md") to end of file.

From-SVN: r183739
2012-01-30 19:38:07 +00:00
Richard Sandiford
03beeffe55 extend-1.c (TEST_CHAR): Use signed char.
gcc/testsuite/
	* gcc.target/mips/extend-1.c (TEST_CHAR): Use signed char.
	(TEST_SHORT): Reformat in the same way.
	* gcc.target/mips/octeon-exts-6.c (TEST_CHAR): Use signed char.
	(TEST_SHORT): Reformat in the same way.
	* gcc.target/mips/octeon2-lx-1.c (TEST): Make sign explicit.
	* gcc.target/mips/pr37362.c: Skip for mips-sde-elf.
	* gcc.target/mips/mmcount-ra-address-1.c (bazl): Add NOMIPS16.
	* gcc.target/mips/mmcount-ra-address-2.c (bar): Likewise.
	* gcc.target/mips/mmcount-ra-address-3.c (bar): Likewise.

From-SVN: r183737
2012-01-30 19:21:50 +00:00
Bin Cheng
ab07692c1a re PR target/51835 (ARM EABI violation when passing arguments to helper floating functions like __aeabi_d2iz)
2012-01-30  Bin Cheng  <bin.cheng@arm.com>

	PR target/51835
	* config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
	for __aeabi_d2iz/__aeabi_d2uiz with hard-float.

testcases:
	PR target/51835
	* gcc.target/arm/pr51835.c: New testcase.

From-SVN: r183733
2012-01-30 16:59:14 +00:00
Tom Tromey
3efe2bf72b re PR libstdc++/51649 (pretty printers don't handle std::__7:: namespace)
PR libstdc++/51649:
	* testsuite/libstdc++-prettyprinters/debug.cc: New file.
	* testsuite/lib/gdb-test.exp (regexp-test): New proc.
	(note-test): Update.
	(gdb-test): Handle regexp tests.  Add some logging.
	* testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
	(placeholder, use): Remove.
	(main): Add tests for deque, list, map, and set iterators.  Add
	tests for slist and slist iterator.
	* testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
	namespace.
	* python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
	the type's _Node typedef.
	(StdListIteratorPrinter.to_string): Change how node type is
	computed.
	(StdSlistPrinter.children): Use the type's _Node typedef.
	(StdSlistIteratorPrinter.to_string): Likewise.
	(StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
	typedef.
	(StdMapPrinter.children): Change how the node's type is computed.
	(StdSetPrinter.children): Likewise.
	(StdForwardListPrinter.children): Use the type's _Node typedef.
	(Printer.add_version): New method.
	(Printer.add_container): New method.
	(build_libstdcxx_dictionary): Handle __7 and __cxx1998
	namespaces.
	(find_type): New function.

From-SVN: r183732
2012-01-30 16:25:11 +00:00
Richard Guenther
e799d44709 re PR tree-optimization/52028 (wrong code with -O2 -ftree-loop-distribution)
2012-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52028
	* tree-loop-distribution.c (ldist_gen): Properly update
	virtual SSA form.

	* gcc.dg/torture/pr52028.c: New testcase.
	* gfortran.dg/ldist-pr45199.f: Adjust.
	* gcc.dg/tree-ssa/ldist-16.c: Likewise.
	* gcc.dg/tree-ssa/ldist-17.c: Likewise.
	* gcc.dg/tree-ssa/ldist-pr45948.c: Likewise.

From-SVN: r183730
2012-01-30 15:51:23 +00:00
Dodji Seketeli
be5295721c Revert "PR c++/51641 - Lookup finds enclosing class member instead of template parameter"
This reverts commit r183726

From-SVN: r183728
2012-01-30 15:54:39 +01:00
Dodji Seketeli
12e95d87ef PR c++/51641 - Lookup finds enclosing class member instead of template parameter
gcc/cp/

	PR c++/51641
	* cp-tree.h (template_type_parameter_p): Declare new function.
	(parameter_of_template_p): Remove
	* pt.c (template_type_parameter_p): Define new function.
	(parameter_of_template_p): Remove.
	* name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely
	on parameter_of_template_p anymore.  Compare the level of the
	template parameter to the depth of the template.

gcc/testsuite/

	PR c++/51641
	* g++.dg/lookup/hidden-class17.C: New test.

From-SVN: r183726
2012-01-30 15:26:12 +01:00
Jakub Jelinek
2026d51a41 re PR debug/52027 (ICE: SIGSEGV in set_cur_line_info_table (dwarf2out.c:20428) with -O -freorder-blocks-and-partition -fno-reorder-functions -fprofile-use)
PR debug/52027
	* dwarf2out.c (dwarf2out_switch_text_section): Don't call
	set_cur_line_info_table if not emitting debug info.

	* gcc.dg/tree-prof/pr52027.c: New test.

From-SVN: r183725
2012-01-30 14:49:44 +01:00