Commit Graph

114924 Commits

Author SHA1 Message Date
Ian Lance Taylor
b6422b3755 compiler: Compare slice start and end with cap, not len.
From-SVN: r183851
2012-02-02 22:23:10 +00:00
Paul Thomas
7de7ae1841 re PR fortran/52012 (Wrong-code with realloc on assignment and RESHAPE w/ ORDER=)
2012-02-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/52012
	* trans-expr.c (fcncall_realloc_result): If variable shape is
	correct, retain the bounds, whatever they are.

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

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

From-SVN: r183849
2012-02-02 21:20:14 +00:00
Tobias Burnus
1b3f07c72a re PR fortran/52093 (Extra parenthesis with Size and Shape functions argument cause internal compiler error: Segmentation fault)
2012-02-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52093
        * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESES.

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

        PR fortran/52093
        * gfortran.dg/shape_7.f90: New.

From-SVN: r183848
2012-02-02 22:01:34 +01:00
Jakub Jelinek
1f01c3ecd1 re PR middle-end/48071 (Blank line after 'all warnings being treated as errors')
PR middle-end/48071
	* diagnostic.c (diagnostic_finish): Remove trailing newlines.

From-SVN: r183847
2012-02-02 21:46:06 +01:00
Benjamin Kosnik
d1a6c0d4c9 re PR libstdc++/52068 (libc++98.a and libc++11.a are installed)
2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52068
	* src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
	libc__11_la_SOURCES): Remove.
	* src/c++11/Makefile.in: Regenerate.
	* src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
	libc__98_la_SOURCES): Remove.
	* src/c++98/Makefile.in: Regenerate.

From-SVN: r183846
2012-02-02 19:58:59 +00:00
Vladimir Makarov
662f8070eb re PR rtl-optimization/49800 (segfault with -fsched-pressure -fdump-rtl-sched1)
2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/49800
	* haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
	(sched_finish): Call regstat_free_n_sets_and_refs.

From-SVN: r183843
2012-02-02 19:45:04 +00:00
Richard Sandiford
14bc59cb4f mips-dspr2.md (mips_prepend): Mask operand 3 rather than operand 2.
gcc/
2012-02-02  Jia Liu  <proljc@gmail.com>

	* config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
	than operand 2.

gcc/testsuite/
	* gcc.target/mips/mips-prepend-1.c: New test.

From-SVN: r183841
2012-02-02 18:54:38 +00:00
Ian Lance Taylor
f22f4fc153 compiler: Permit importing a method to a type being defined.
From-SVN: r183840
2012-02-02 18:32:09 +00:00
Jan Hubicka
5ee770bf9e re PR middle-end/51998 (compiler hangs on self-recursive alias attribute)
PR middle-end/51998
	* cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
	* varpool.c (varpool_analyze_pending_decls): Likewise.

	* testsuite/gcc.dg/alias-12.c: New testcase.
	* testsuite/gcc.dg/alias-13.c: New testcase.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>

From-SVN: r183836
2012-02-02 13:29:31 +00:00
Jayant R Sonar
e5b8c09011 Adding myself to MAINTAINERS file for write after approval
From-SVN: r183833
2012-02-02 11:23:35 +00:00
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