Commit Graph

105499 Commits

Author SHA1 Message Date
Nicola Pero 9ecfa8de88 objects.c (object_copy): Do not #undef as we are no longer including objc/objc-api.h.
2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objects.c (object_copy): Do not #undef as we are no longer
        including objc/objc-api.h.
        * selector.c: Include objc/runtime.h and
        objc-private/module-abi-8.h.  Do not include objc/objc-api.h and
        objc/encoding.h.  Updated
        (__objc_register_selectors_from_class): Use struct
        objc_method_list * instead of MethodList_t.
        (__objc_register_selectors_from_list): Use Method instead of
        Method_t.
        (struct objc_method_description_list): Do not define here.
        (__objc_register_instance_methods_to_class): Use struct
        objc_method_list * instead of MethodList_t and Method instead of
        Method_t.

From-SVN: r167818
2010-12-14 21:57:31 +00:00
Nicola Pero 48d69c57af Indented two lines that I missed in last commit. No code changes
From-SVN: r167817
2010-12-14 20:56:30 +00:00
Ian Lance Taylor fd948ffb14 Check for duplicate methods.
Don't get into an endless loop given invalid recursive types.

From-SVN: r167816
2010-12-14 20:54:45 +00:00
Nicola Pero d4645ada25 selector.c: Reindented some code and tidied up comments.
2010-12-14  Nicola Pero  <nicola.pero@meta-innovation.com>

        * selector.c: Reindented some code and tidied up comments.  No
        actual code changes.

From-SVN: r167815
2010-12-14 20:52:10 +00:00
Nathan Froyd 993acb366e re PR c++/45330 (Suggest likely nested-name-specifiers for undeclared identifiers.)
gcc/cp/
	PR c++/45330
	* cp-tree.h (suggest_alternatives_for): Add location_t parameter.
	* name-lookup.c (suggest_alternatives_for): Likewise.  Adjust.
	* lex.c (unqualified_name_lookup_error): Adjust call to it.
	* semantics.c (qualified_name_lookup_error): Move to...
	* error.c (qualified_name_lookup_error): ...here.  Call.
	suggest_alternatives_for.

gcc/testsuite/
	PR c++/45330
	* g++.dg/lookup/suggestions1.C: New test.

From-SVN: r167814
2010-12-14 20:31:22 +00:00
Joseph Myers ec047df482 config.gcc (sparc-*-elf*, [...]): Don't use svr4.h.
* config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
	sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
	sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
	sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.

From-SVN: r167813
2010-12-14 20:09:01 +00:00
Ian Lance Taylor 5b0e99c90e Don't crash on erroneous receiver or parameters.
From-SVN: r167812
2010-12-14 19:35:58 +00:00
Ian Lance Taylor cd96b4e2db Correct handling of undefined name as key in map composite literal.
From-SVN: r167810
2010-12-14 19:27:07 +00:00
Ian Lance Taylor 7ed66e6669 Insert semicolon at EOF if necessary.
From-SVN: r167809
2010-12-14 18:52:09 +00:00
Ian Lance Taylor 894503cb31 Correct protection against recursive types.
From-SVN: r167807
2010-12-14 17:57:20 +00:00
Tobias Burnus 39752c6b14 re PR fortran/46937 (gfortran.dg/pointer_intent_1.f90 FAILs with -fno-inline)
2010-12-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46937
        * trans-types.c (create_fn_spec): "."-annotate derived types
        with (proc-)pointer components.

2010-12-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46937
        * gfortran.dg/pointer_intent_4.f90: New.

From-SVN: r167806
2010-12-14 18:09:33 +01:00
Thomas Klein 55256000cf arm.c (arm_expand_prologue): Report the static stack size if -fstack-usage is used.
* config/arm/arm.c (arm_expand_prologue): Report the static stack
	size if -fstack-usage is used.
	(thumb1_expand_prologue): Likewise.

From-SVN: r167805
2010-12-14 16:00:33 +00:00
Jakub Jelinek f5b77e7d99 re PR middle-end/46885 (ICE: in gsi_insert_seq_nodes_after, at gimple-iterator.c:251 with -ftree-parallelize-loops -g)
PR debug/46885
	* tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
	instead of gsi_last_nondebug_bb if bump_in_latch.

	* gcc.dg/autopar/pr46885.c: New test.

From-SVN: r167801
2010-12-14 15:11:16 +01:00
Jakub Jelinek 8236c8eb4f re PR tree-optimization/46909 (Logical OR expressions are miscompiled)
PR tree-optimization/46909
	* gimple-fold.c (and_var_with_comparison_1): Save partial
	result even in the is_and case, if both partial results
	are the same, return it.
	(or_var_with_comparison_1): Use is_or predicate instead of
	innercode == TRUTH_OR_EXPR test.  Save partial result
	even in the is_or case, if both partial results are the
	same, return it.  In the !is_or case when both partial
	results are the same, return the partial result instead
	of boolean_true_node.

	* gcc.c-torture/execute/pr46909-1.c: New test.
	* gcc.c-torture/execute/pr46909-2.c: New test.
	* gcc.dg/pr46909.c: New test.

From-SVN: r167800
2010-12-14 15:09:59 +01:00
Jakub Jelinek 2b50313607 re PR fortran/46874 ([OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147)
PR fortran/46874
	* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
	dummy variables.

	* libgomp.fortran/allocatable6.f90: New test.

From-SVN: r167799
2010-12-14 14:59:20 +01:00
Jakub Jelinek af3fcdb4ac re PR fortran/46874 ([OpenMP] ICE in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147)
PR fortran/46874
	* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
	dummy variables.

	* libgomp.fortran/allocatable6.f90: New test.

From-SVN: r167798
2010-12-14 14:56:25 +01:00
Jan Hubicka ae9fd6b7cd re PR middle-end/46667 (-freorder-blocks-and-partition -g failed and libstdc++ builds for arm-eabi are broken.)
PR middle-end/46667
	* varasm.c (assemble_start_function): Do not call resolve_unique_section.
	* cfgexpand.c (gimple_expand_cfg): Resolve it here.

From-SVN: r167795
2010-12-14 13:07:05 +00:00
Alexander Monakov b4550bf7ad re PR rtl-optimization/46875 (ICE: verify_flow_info failed: too many outgoing branch edges from bb 3 with -Os -fselective-scheduling2)
PR rtl-optimization/46875
	* sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
	* sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.

testsuite:
	* gcc.dg/pr46875.c: New.

From-SVN: r167794
2010-12-14 15:43:47 +03:00
Jan Hubicka 02826ae997 first-global.C: Update regexp to match new names of ctors.
* g++.dg/other/first-global.C: Update regexp to match new
	names of ctors.

From-SVN: r167791
2010-12-14 10:57:11 +00:00
Kaushik Phatak c7e1fa8250 h8300.md (define_split): Add condition for "and with single_zero" splitter to handle 16-bit const operands.
* config/h8300/h8300.md (define_split) : Add condition for
	"and with single_zero" splitter to handle 16-bit const operands.
	* config/h8300/h8300.md (define_split) : Add condition for
	"ior with single_one" splitter to handle 16-bit const operands.
	* config/h8300/h8300.md (define_split) : Add condition for
	"xor with single_one" splitter to handle 16-bit const operands.	
	
	* testsuite/gcc.dg/h8300-bit-insn-ice.c: New.

From-SVN: r167789
2010-12-14 07:03:36 +00:00
Ian Lance Taylor 05d556e837 Don't incorrectly parse expression as type switch.
Improve error reporting of invalid type assertions.

From-SVN: r167787
2010-12-14 05:54:33 +00:00
Kaushik Phatak 0c2e69043f * MAINTAINERS: Added myself to MAINTAINERS (write after approval)
From-SVN: r167786
2010-12-14 05:28:02 +00:00
Ian Lance Taylor 646abff51d Better error message if malloc gets a SIGSEGV.
From-SVN: r167785
2010-12-14 05:19:51 +00:00
Ian Lance Taylor cac7efc966 Release cache while holding thread lock.
Don't bother to hold thread lock while allocating cache.

From-SVN: r167784
2010-12-14 05:16:18 +00:00
Jan Hubicka 3a9ed12a58 This time really commit PR middle-end/45388
This time really commit
	PR middle-end/45388
	* decl2.c (start_objects): Do not generate collect2 recognicable name
	for static ctor.
	* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
	(cgraph_build_static_cdtor): ... here.
	(build_cdtor): Use cgraph_build_static_cdtor_1.

From-SVN: r167781
2010-12-14 01:26:47 +00:00
Joseph Myers 24b005606a m32c.h (ENDFILE_SPEC, [...]): Define.
* config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
	PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
	* config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.

From-SVN: r167780
2010-12-14 00:26:29 +00:00
Bernd Schmidt 4ec5d4f5b9 re PR rtl-optimization/44374 (Hoist same instructions in different branches)
gcc/
	PR rtl-optimization/44374
	Reapply patch with fixes.
	* basic-block.h (enum bb_flags): Add BB_MODIFIED.
	* df-core.c (df_set_bb_dirty): Set it.
	* ifcvt.c (find_memory): Remove function.
	(dead_or_predicable): Use can_move_insns_across.
	* df.h (can_move_insns_across): Declare function.
	* cfgcleanup.c (block_was_dirty): New static variable.
	(flow_find_head_matching_sequence): Test for epilogue notes.
	(try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
	than df_get_bb_dirty.
	(try_head_merge_bb): New static function.
	(try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
	is set.
	* df-problems.c: Include "target.h"
	(df_simulate_find_uses): New static function.
	(MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
	(find_memory, find_memory_store): New static functions.
	(can_move_insns_across): New function.
	* Makefile.in (df-problems.o): Update dependencies.

gcc/testsuite/
	PR rtl-optimization/44374
	Reapply patch with fixes.
	* gcc.target/arm/headmerge-1.c: New test.
	* gcc.target/arm/headmerge-2.c: New test.
	* gcc.target/i386/headmerge-1.c: New test.
	* gcc.target/i386/headmerge-2.c: New test.

From-SVN: r167779
2010-12-14 00:23:40 +00:00
GCC Administrator 218cbe3757 Daily bump.
From-SVN: r167778
2010-12-14 00:17:44 +00:00
Joseph Myers 416ea72553 elf.h (SIZE_TYPE, [...]): Define.
* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
	(DBX_REGISTER_NUMBER): Undefine.
	* config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
	(DBX_REGISTER_NUMBER): Undefine.
	* config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.

From-SVN: r167774
2010-12-13 23:59:50 +00:00
Ian Lance Taylor 6f855258dd gospec.c (lang_specific_driver): Add a -o option if not linking and there is no -o option already.
* gospec.c (lang_specific_driver): Add a -o option if not linking
	and there is no -o option already.

From-SVN: r167773
2010-12-13 23:11:53 +00:00
Joseph Myers 3b58a10d5b * de.po: Update.
From-SVN: r167772
2010-12-13 21:49:00 +00:00
Joseph Myers 6759e139e7 * de.po, sv.po: Update.
From-SVN: r167771
2010-12-13 21:47:47 +00:00
Jason Merrill 0e5dcad1a4 re PR c++/46873 ([C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489)
PR c++/46873
	PR c++/46877
	* semantics.c (build_data_member_initialization): Handle
	cv-qualified data member.

From-SVN: r167770
2010-12-13 15:46:58 -05:00
Jason Merrill 42aa5ada5f foo
From-SVN: r167769
2010-12-13 15:46:34 -05:00
Tobias Burnus f0c2df63c6 re PR fortran/46625 (libquadmath: Mangle internal symbols; rename __float128 <-> string functions)
2010-12-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46625
        * gdtoa/gdtoaimp.h: Mangle internal functions by
        prefixing them with __quadmath. Don't use gdtoa's strcp(y).
        * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
        * gdtoa/misc.c (strcpy): Renamed from strcp and only use
        if NO_STRING_H is set.
        * quadmath-imp.h (__quadmath_rem_pio2q,
        * __quadmath_kernel_sincosq
        __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
        __quadmath prefix to internal functions.
        * math/cosq.c (cosq): Ditto.
        * math/sinq.c (cosq): Ditto.
        * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
        * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2):
        * Ditto.
        * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
        * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.

From-SVN: r167768
2010-12-13 20:44:38 +01:00
Janus Weil c58bb30d66 re PR fortran/46201 ([F03] ICE on procedure pointer component call)
2010-12-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46201
	* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
	components called on a dimensionful base object.

2010-12-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46201
	* gfortran.dg/proc_ptr_comp_27.f90: New.

From-SVN: r167767
2010-12-13 20:17:46 +01:00
Jack Howarth b767da733d re PR bootstrap/46650 (r167010 breaks --enable-build-with-cxx)
PR bootstrap/46650
	* system.h: Include cstring for cxx bootstrap.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>

From-SVN: r167764
2010-12-13 18:34:45 +00:00
Eric Botcazou e2d3a4bba9 decl.c (gnat_to_gnu_entity): Build a stub DECL for the dummy fat pointer type in the unconstrained array case.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_General_Access_Type>:
	Build a stub DECL for the dummy fat pointer type in the unconstrained
	array case.
	* gcc-interface/utils.c (update_pointer_to): Set the DECL_ORIGINAL_TYPE
	for all the variants in the fat pointer case.

From-SVN: r167758
2010-12-13 18:10:49 +00:00
Eric Botcazou 5128d641ba trans.c (can_be_lower_p): New predicate.
* gcc-interface/trans.c (can_be_lower_p): New predicate.
	(Loop_Statement_to_gnu): Do not generate the entry condition if we know
	that it will be true.

From-SVN: r167757
2010-12-13 17:51:47 +00:00
Ahmad Sharif 1643b12f56 Removed testcase that was failing on i386.
* testsuite/gcc.target/i386/max-stack-align.c. Removed testcase.

From-SVN: r167756
2010-12-13 17:43:07 +00:00
Jakub Jelinek 52bb43ceb5 re PR lto/46879 (ICE: in separate_decls_in_region_debug_bind, at tree-parloops.c:778 with -flto -ftree-parallelize-loops -gdwarf-3)
PR lto/46879
	* lto-streamer-out.c (output_gimple_stmt): Never replace first
	GIMPLE_DEBUG argument with MEM_REF.

From-SVN: r167755
2010-12-13 18:37:20 +01:00
Jakub Jelinek c171af0e00 re PR debug/46867 (ICE: in emit_note_insn_var_location, at var-tracking.c:7325 with -O -g)
PR debug/46867
	* var-tracking.c (emitted_notes, string_pointer_flags): Removed.
	(emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
	(vt_emit_notes): Don't initialize and destroy emitted_notes.

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

From-SVN: r167754
2010-12-13 18:36:26 +01:00
Jan Hubicka e953c7545f re PR middle-end/45388 (Global constructor not found)
PR middle-end/45388
	* decl2.c (start_objects): Do not generate collect2 recognicable name
	for static ctor.
	* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
	(cgraph_build_static_cdtor): ... here.
	(build_cdtor): Use cgraph_build_static_cdtor_1.

From-SVN: r167753
2010-12-13 17:29:14 +00:00
Nathan Froyd 26716c44a3 re PR target/46040 (crtstuff.c:308:26: error: '__DTOR_LIST__' undeclared)
gcc/
	PR target/46040
	* config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
	(arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.

libgcc/
	PR target/46040
	* config/arm/bpabi.h: Rename to...
	* config/arm/bpabi-lib.h: ...this.

From-SVN: r167751
2010-12-13 16:23:50 +00:00
Janus Weil b54b7821c6 re PR fortran/46841 ([F03] ICE on allocating array of procedure pointers)
2010-12-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46841
	* trans-expr.c (gfc_trans_subcomponent_assign): Handle array-valued
	procedure pointer components.

2010-12-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46841
	* gfortran.dg/proc_ptr_comp_26.f90: New.

From-SVN: r167750
2010-12-13 17:16:06 +01:00
Rainer Orth 0d64a1a38f baseline_symbols.txt: Regenerate.
* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
	* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.

From-SVN: r167748
2010-12-13 11:59:22 +00:00
Eric Botcazou 1eefb348b3 * gnat.dg/pack9.adb: XFAIL everywhere.
From-SVN: r167747
2010-12-13 11:35:10 +00:00
Joseph Myers fcbf5a00f8 v850.h (SIZE_TYPE, [...]): Define.
* config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Define.
	* config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.

From-SVN: r167746
2010-12-13 11:28:19 +00:00
Joseph Myers 0a3c149d3d config.gcc (s390-*-linux*, [...]): Don't use svr4.h.
* config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
	Don't use svr4.h.

From-SVN: r167745
2010-12-13 11:27:28 +00:00
Joseph Myers 6b9b8b34d1 linux.h (SIZE_TYPE, [...]): Undefine.
* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Undefine.
	* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Define.
	* config.gcc (mn10300-*-*): Don't use svr4.h.

From-SVN: r167744
2010-12-13 11:26:42 +00:00