Commit Graph

114914 Commits

Author SHA1 Message Date
Sumanth G
b25364a0b9 Adding GCC port for National Semicondutor's CR16 architecture
Co-Authored-By: Jayant R Sonar <jayant.sonar@kpitcummins.com>

From-SVN: r183832
2012-02-02 10:20:32 +00:00
Jakub Jelinek
903e49f520 re PR target/52086 (ICE caused by wrong peephole2 for QImode mem += reg followed by test)
PR target/52086
	* config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
	that operands[2] is either immediate, or q_regs_operand.

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

From-SVN: r183830
2012-02-02 10:04:57 +01:00
Jakub Jelinek
13c931c939 re PR tree-optimization/52073 (ICE: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:620)
PR tree-optimization/52073
	* tree-vect-stmts.c (vect_mark_relevant): When checking uses of
	a pattern stmt for pattern uses, ignore uses outside of the loop.

	* gcc.c-torture/compile/pr52073.c: New test.

From-SVN: r183829
2012-02-02 09:09:37 +01:00
Ian Lance Taylor
10f5ffa4e9 syscall: Add syscall.Times.
From-SVN: r183826
2012-02-02 06:40:11 +00:00
Ian Lance Taylor
3375a6c94c compiler: Fix parameter references in method expressions.
From-SVN: r183825
2012-02-02 06:24:07 +00:00
GCC Administrator
4e15881eeb Daily bump.
From-SVN: r183821
2012-02-02 00:18:30 +00:00
Ian Lance Taylor
80678229d7 compiler: Fix type checking for append.
From-SVN: r183816
2012-02-01 21:30:48 +00:00
Ian Lance Taylor
7c275c4339 os/exec: Make sure file descriptor is not closed early.
From-SVN: r183815
2012-02-01 20:47:15 +00:00
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