Commit Graph

114944 Commits

Author SHA1 Message Date
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
Jakub Jelinek
2f32669918 re PR tree-optimization/52046 (ICE: verify_gimple failed: invalid operands in ternary operation with -O -fexceptions -fnon-call-exceptions -ftree-vectorize)
PR tree-optimization/52046
	* tree-vect-patterns.c (check_bool_pattern): Give up if
	a comparison could throw.

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

From-SVN: r183724
2012-01-30 14:48:37 +01:00
Jakub Jelinek
dd44dcb022 re PR debug/52048 (-fcompare-debug failure with -O2 -fcompare-debug -fnon-call-exceptions -fno-tree-dominator-opts)
PR debug/52048
	* tree-ssa-tail-merge.c (local_def): Ignore debug uses.

	* g++.dg/other/pr52048.C: New test.

From-SVN: r183723
2012-01-30 14:47:38 +01:00
Richard Guenther
ab448cfa68 re PR middle-end/52045 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk())
2012-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52045
	* tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
	SSA form if cfgcleanup did anything.

	* gcc.dg/pr52045.c: New testcase.

From-SVN: r183722
2012-01-30 13:40:24 +00:00
Richard Guenther
f8698b375a re PR middle-end/52045 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk())
2012-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52045
	* ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
	before computing final todo.

From-SVN: r183721
2012-01-30 13:39:12 +00:00
Richard Guenther
fdad69c136 re PR tree-optimization/51528 (SRA should not create BOOLEAN_TYPE replacements)
2012-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/51528
	* tree-sra.c (sra_modify_assign): Re-factor in preparation
	for PR51528 fix.

From-SVN: r183720
2012-01-30 13:26:45 +00:00
Paolo Bonzini
8203ac4983 df-problems.c (df_kill_notes): Check that the use refers to the note under examination.
2012-01-30  Paolo Bonzini  <bonzini@gnu.org>

	* df-problems.c (df_kill_notes): Check that the use refers
	to the note under examination.

From-SVN: r183719
2012-01-30 12:56:17 +00:00
Greta Yorsh
825b2e07a5 For Greta Yorsh
2012-01-30  Greta Yorsh  <Greta.Yorsh@arm.com>

        * gcc.target/arm/di-longlong64-sync-withldrexd.c: Accept
        new code generated for __sync_lock_release.

From-SVN: r183718
2012-01-30 12:55:41 +00:00
Eric Botcazou
98e4350fe2 re PR target/51920 (64-bit gcc.target/sparc/vec-init-1-vis1.c FAILs)
PR target/51920
	* config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
	parameter and use short-lived pseudos.
	(vector_init_faligndata): Remove INNER_MODE parameter and use loop.
	(sparc_expand_vector_init): Const-ify local variables and adjust
	calls to above functions.

From-SVN: r183717
2012-01-30 12:43:51 +00:00
Nicolas Roche
982edf3a27 Make-lang.in: Update dependencies.
2012-01-30  Nicolas Roche  <roche@adacore.com>

	* gcc-interface/Make-lang.in: Update dependencies.
	* gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
	when needed.
	Remove Linker_Options -crtbe when building sjlj run-time.

From-SVN: r183715
2012-01-30 13:19:17 +01:00
Arnaud Charlet
b727a82b8c [multiple changes]
2012-01-30  Robert Dewar  <dewar@adacore.com>

	* sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
	* sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
	form 2 * small-literal.
	* sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
	mod value).
	* sem_ch4.ads (Analyze_Mod): New procedure.

2012-01-30  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
	types and return expression when building spec for implicit
	body, to preserve global references that may be present in an
	instantiation.

2012-01-30  Matthew Heaney  <heaney@adacore.com>

	* a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
	Reverse_Elements): Check for cursor tampering.

2012-01-30  Ed Schonberg  <schonberg@adacore.com>

	* sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
	type with aspect Default_Value or Default_Component_Value is
	fully initialized, and use of variables of such types do not
	generate warnings.

2012-01-30  Vincent Celier  <celier@adacore.com>

	* projects.texi: Add documentation for attribute Interfaces.

From-SVN: r183714
2012-01-30 13:16:12 +01:00
Javier Miranda
e11be5ac78 re PR ada/15846 (Illegal program not detected, self renames)
2012-01-30  Javier Miranda  <miranda@adacore.com>

PR ada/15846
	* sem_ch8.adb (Analyze_Subprogram_Renaming):
	Handle self-renaming when the renamed entity is referenced using
	its expanded name.

From-SVN: r183713
2012-01-30 13:15:42 +01:00
Arnaud Charlet
f849ad6ff8 [multiple changes]
2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_ch7.adb (Build_Finalizer_Call): Set loc again.
	* exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
	location for the wrapped call to the original AT_END routine
	and the subsequent return statement.

2012-01-30  Pascal Obry  <obry@adacore.com>

	* s-rannum.adb: Minor reformatting.

2012-01-30  Hristian Kirtchev  <kirtchev@adacore.com>

	* a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
	to 25 and add the hard time value for 2012-06-30.

From-SVN: r183711
2012-01-30 12:53:27 +01:00