Commit Graph

105632 Commits

Author SHA1 Message Date
Eric Botcazou
e66d38fe05 * gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
From-SVN: r168227
2010-12-24 16:15:38 +00:00
Nicola Pero
877bf1953a In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc/runtime.h (class_conformsToProtocol,
	class_copyProtocolList): Updated documentation.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

	* obj-c.dg/gnu-api-2-class.m: Test that class_conformsToProtocol()
	does not check the superclasses.
	* obj-c++.dg/gnu-api-2-class.mm: Same change.

From-SVN: r168226
2010-12-24 15:32:25 +00:00
Alexander Monakov
eb277bf19c re PR rtl-optimization/47036 (ICE: in move_cond_jump, at sel-sched.c:4901 with -fschedule-insns -fselective-scheduling -fno-dce)
PR rtl-optimization/47036
	* sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for
	unconditional jumps.
	* sel-sched.c (moveup_expr): Ditto.

testsuite:
	* g++.dg/opt/pr47036.C: New.

From-SVN: r168225
2010-12-24 17:19:23 +03:00
Thomas Koenig
07818af47b re PR fortran/31821 (character pointer => target(range) should detect if lengths don't match)
2010-12-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/31821
	* check.c (gfc_var_strlen):  New function, also including
	substring references.
	(gfc_check_same_strlen):  Use gfc_var_strlen.

2010-12-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/31821
	* gfortran.dg/char_pointer_assign_6.f90:  New test.

From-SVN: r168224
2010-12-24 08:42:04 +00:00
Ian Lance Taylor
ab9d6dcfbe Avoid endless loop on array with recursive length.
From-SVN: r168223
2010-12-24 01:26:14 +00:00
Ian Lance Taylor
3746f0c781 Don't crash on invalid use of multiple results.
From-SVN: r168222
2010-12-24 00:51:10 +00:00
Ian Lance Taylor
38ac6be772 Avoid endless loop checking whether type is pointer.
From-SVN: r168221
2010-12-24 00:33:49 +00:00
GCC Administrator
4cc3ef6139 Daily bump.
From-SVN: r168220
2010-12-24 00:19:53 +00:00
Ian Lance Taylor
ae4aefdca3 Avoid endless loop inheriting interfaces.
From-SVN: r168216
2010-12-24 00:13:35 +00:00
Nicola Pero
e99776d82a In libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

	* init.c (create_tree_of_subclasses_inherited_from): Updated
	DEBUG_PRINTF messages.
	(__objc_tree_insert_class): Same.
	(__objc_send_load_using_method_list): Same.
	(__objc_send_load): Same.
	(__objc_exec_class): Same.  In particular, do not print the module
	name since it is no longer used.
	* sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
	tracking +initialize calls.
	(__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
	tracking updates of dispatch tables.
	(__objc_install_dispatch_table_for_class): Same.

From-SVN: r168215
2010-12-23 19:46:04 +00:00
Sebastian Pop
bd29eba228 Fix PR46758: Do not use int_cst_value.
2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
	    Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/46758
	* graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
	tree_int_to_gmp instead of int_cst_value.
	(scan_tree_for_params_int): Same.
	(scan_tree_for_params): Same.
	(pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.

	* gcc.dg/graphite/run-id-pr46758.c: New.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r168211
2010-12-23 16:26:11 +00:00
Sebastian Pop
01be8516aa Fix PR47002: memory leaks.
2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47002
	* tree-data-ref.c (compute_data_dependences_for_loop): Pass in a
	pointer to the loop_nest.
	(analyze_all_data_dependences): Initialize and free the loop_nest.
	(free_dependence_relations): Do not free loop_nest.
	(build_rdg): Pass in the loop_nest, datarefs, and dependence_relations.
	(free_rdg): Also free the data on edges.
	* tree-data-ref.h (build_rdg): Update declaration.
	(compute_data_dependences_for_loop): Same.
	* tree-if-conv.c (if_convertible_loop_p_1): Pass in the loop_nest.
	(if_convertible_loop_p): Allocate and free loop_nest.
	* tree-loop-distribution.c (rdg_flag_loop_exits): Free conds.
	(free_rdg_components): VEC_free components.
	(distribute_loop): Update call to build_rdg.  Allocate and free
	loop_nest, datarefs, and dependence_relations.
	* tree-loop-linear.c (linear_transform_loops): Allocate and free
	loop_nest.
	* tree-parloops.c (loop_parallel_p): Same.
	* tree-predcom.c (tree_predictive_commoning_loop): Same.
	* tree-vect-data-refs.c (vect_analyze_data_refs): Pass to
	compute_data_dependences_for_loop a pointer to LOOP_VINFO_LOOP_NEST.
	* tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_LOOP_NEST.
	(destroy_loop_vec_info): Free LOOP_VINFO_MAY_ALIAS_DDRS and
	LOOP_VINFO_LOOP_NEST.
	* tree-vect-slp.c (destroy_bb_vec_info): Call free_data_refs and
	free_dependence_relations.
	* tree-vectorizer.h (struct _loop_vec_info): Add a field loop_nest.
	(LOOP_VINFO_LOOP_NEST): New.

From-SVN: r168210
2010-12-23 16:25:52 +00:00
Martin Jambor
f5333fe82b ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even when not checking.
2010-12-23  Martin Jambor  <mjambor@suse.cz>

	* ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
	when not checking.

From-SVN: r168209
2010-12-23 17:12:07 +01:00
Hariharan Sandanagobalane
539b4d1106 * configure: Regenerate.
From-SVN: r168208
2010-12-23 16:09:09 +00:00
Mikael Morin
5235ddbc14 re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
2010-12-23  Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/46978
	* gfortran.dg/transpose_intrinsic_func_call_1.f90: New test.

From-SVN: r168207
2010-12-23 13:39:06 +00:00
Mikael Morin
2b63684b6e re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
2010-12-23  Mikael Morin  <mikael.morin@gcc.gnu.org>

	PR fortran/46978
	Revert part of revision 164112
	* trans-array.c (gfc_trans_create_temp_array):
	Set loop n'th upper bound from (possibly transposed) array's dim bounds.

From-SVN: r168206
2010-12-23 13:35:53 +00:00
Rainer Orth
6961669f48 configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for --eh-frame-hdr.
* configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
	--eh-frame-hdr.
	Check for working Sun ld version.
	(HAVE_LD_EH_FRAME_HDR): Adapt comment.
	(glibc_header_dir): Set only once.
	Rename to ...
	(target_header_dir): ... this.
	Adapt users.
	(gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
	(TARGET_DL_ITERATE_PHDR): Define if present.
	* configure: Regenerate.
	* config.in: Likewise.
	* config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
	* crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
	with linker support and dl_iterate_phdr.
	* unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
	(_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
	PT_SUNW_UNWIND .eh_frame_hdr sections.
	[CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
	load_base to data->dbase.
	[CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
	64-bit Solaris 10+/x86.
	* config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
	(LINK_EH_SPEC): Define.

From-SVN: r168204
2010-12-23 12:08:21 +00:00
Rainer Orth
1d439e6cd2 Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
* Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
	(libobjc_gc$(libsuffix).la): Likewise.

From-SVN: r168203
2010-12-23 11:26:14 +00:00
Ralf Wildenhues
2b0d357388 Fix typos in the manual.
gcc/:
	* doc/extend.texi (Function Attributes, Volatiles): Fix typos.
	* doc/install.texi (Prerequisites, Specific): Likewise.
	* doc/invoke.texi (C Dialect Options, Debugging Options)
	(Optimize Options, MicroBlaze Options)
	(RS/6000 and PowerPC Options, RX Options, Code Gen Options):
	Likewise.
	* doc/objc.texi (Method signatures)
	(Fast enumeration protocol): Likewise.
	* doc/tm.texi.in (Run-time Target, Register Arguments)
	(Scheduling, Macros for Initialization, Misc): Likewise.
	* doc/tm.texi: Renerate.

From-SVN: r168202
2010-12-23 10:38:55 +00:00
Nicola Pero
939e407566 In gcc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

	* doc/objc.texi (Modern GNU Objective-C runtime API): Mention that
	reference documentation for functions in the API is in the header
	files.
	(Messaging with the GNU Objective-C runtime, Dynamically
	registering methods, Forwarding hook): New sections.

From-SVN: r168200
2010-12-23 06:01:43 +00:00
Nicola Pero
8288398698 In gcc/testsuite/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

	* obj-c.dg/gnu-api-2-class.m: Test that class_addMethod() returns
	NO if the method is already implemented in the class.
	* obj-c++.dg/gnu-api-2-class.mm: Same change.

In libobjc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

	* sendmsg.c (class_addMethod): Return NO if the method already
	exists in the class.

From-SVN: r168199
2010-12-23 05:30:12 +00:00
Ian Lance Taylor
1e9402cb3d A variable with a preinit block requires an intialization function.
From-SVN: r168198
2010-12-23 01:35:27 +00:00
Ian Lance Taylor
9d65de2123 Don't crash building map descriptor for erroneous map.
From-SVN: r168197
2010-12-23 01:22:32 +00:00
Ian Lance Taylor
42471ba917 Initialize Lex::lineoff_ field.
From-SVN: r168196
2010-12-23 01:01:38 +00:00
Ian Lance Taylor
476e904fc3 Fix append with no extra arguments.
From-SVN: r168195
2010-12-23 00:55:31 +00:00
Ian Lance Taylor
8211d03c0b Don't crash asking for type of invalid const.
From-SVN: r168194
2010-12-23 00:40:29 +00:00
GCC Administrator
bf0a2edc32 Daily bump.
From-SVN: r168193
2010-12-23 00:19:57 +00:00
Ian Lance Taylor
34d9bc34c5 Avoid infinite recursion checking whether field is exported.
From-SVN: r168191
2010-12-23 00:18:50 +00:00
Ian Lance Taylor
62d1a8f904 Avoid crash when an unknown object is declared as a type.
From-SVN: r168188
2010-12-23 00:07:42 +00:00
Ian Lance Taylor
7838059fb2 Don't crash on invalid call to append.
From-SVN: r168187
2010-12-22 23:57:28 +00:00
Ian Lance Taylor
abff6b5fb5 Avoid infinite recursion looking up method in invalid recursive type.
From-SVN: r168186
2010-12-22 23:48:08 +00:00
Ian Lance Taylor
7cfc62ba9e Don't crash on index into erroneous map.
From-SVN: r168185
2010-12-22 23:24:33 +00:00
Ian Lance Taylor
8332d80edb Correctly handle tuple assignment to _ at global scope.
From-SVN: r168184
2010-12-22 23:09:40 +00:00
Nicola Pero
0bfe3fa10f In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>

	* init.c (duplicate_classes): New.
	(__objc_exec_class): Initialize duplicate_classes.
	(__objc_create_classes_tree): Ignore classes in the
	duplicate_classes table.
	(__objc_call_load_callback): Same.
	(__objc_init_class): If a duplicate class is found, add it to
	duplicate_classes instead of aborting.  Return YES if the class is
	not a duplicate, and NO if it is.
	* objc-private/runtime.h (__objc_init_class): Updated prototype.

From-SVN: r168183
2010-12-22 23:05:13 +00:00
Sebastian Pop
9be8ba7e82 Fix PR47019: parameters of a SCoP are SCEV analyzable.
2010-12-22  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47019
	* sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.

	* gfortran.dg/graphite/pr47019.f: New.

From-SVN: r168182
2010-12-22 21:19:34 +00:00
Nathan Froyd
f4da8dce7a c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
gcc/
	* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
	* c-decl.c (diagnose_arglist_conflict): Likewise.
	(diagnose_mismatched_decls, merge_decls): Likewise.
	(c_builtin_function, c_builtin_function_ext_scope): Likewise.
	(start_decl, start_function): Likewise.
	* c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
	* config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
	* config/mep/mep.c (mep_validate_interrupt): Likewise.
	* config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
	* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
	* config/sh/sh.c (sh_init_cumulative_args): Likewise.
	* config/sparc/sparc.c (init_cumulative_args): Likewise.
	* dwarf2out.c (add_prototyped_attribute): Likewise.
	(gen_subprogram_die): Likewise.
	* ipa-type-escape.c (check_function_parameter_and_return_types):
	Likewise.
	(check_call): Likewise.
	* tree-ssa.c (useless_type_conversion_p): Likewise.

gcc/ada/
	* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
	(handle_sentinel_attribute): Likewise.

gcc/c-family/
	* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
	Use prototype_p.

gcc/cp/
	* decl.c (decls_match, duplicate_decls): Use prototype_p.
	* pt.c (push_template_decl_real): Likewise.

gcc/lto/
	* lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
	Use prototype_p.

gcc/objc/
	* objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.

From-SVN: r168181
2010-12-22 19:45:58 +00:00
Jason Merrill
7d127f5921 re PR c++/47003 (ice in stabilize_expr)
PR c++/47003
	* tree.c (stabilize_expr): Really stabilize scalar glvalues.

From-SVN: r168180
2010-12-22 14:23:15 -05:00
Rodrigo Rivas Costa
711aef4331 parser.c (cp_parser_unary_expression): Call pedwarn for alignof with expression.
* parser.c (cp_parser_unary_expression): Call pedwarn for alignof
	with expression.

From-SVN: r168179
2010-12-22 14:23:00 -05:00
Ian Lance Taylor
8d2866eafb Don't crash on array type with erroneous length expression.
From-SVN: r168176
2010-12-22 16:47:53 +00:00
Ian Lance Taylor
6430af3843 Don't crash on variable initialization from erroneous receive.
From-SVN: r168175
2010-12-22 16:37:58 +00:00
Ian Lance Taylor
2a4eaec2b9 Don't crash on erroneous channel send or receive.
From-SVN: r168174
2010-12-22 16:27:51 +00:00
Ian Lance Taylor
480cc89916 Don't crash if a temporary is not defined due to errors.
From-SVN: r168173
2010-12-22 16:21:06 +00:00
Ian Lance Taylor
1d9fa70c34 More tweaking of recursive name types when converting to GENERIC.
From-SVN: r168172
2010-12-22 16:05:23 +00:00
Ian Lance Taylor
f39c772f2e Don't crash if array length is invalid const.
From-SVN: r168171
2010-12-22 15:25:23 +00:00
Ian Lance Taylor
9ed91cebef Fix handling of named results for functions which call recover.
From-SVN: r168170
2010-12-22 15:10:58 +00:00
Ulrich Weigand
46fc230528 spu.md ("mov<mode>"): Use nonimmediate_operand predicate for destination operand.
* config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
	predicate for destination operand.
	* config/spu/spu.c (spu_expand_mov): If move destination is an
	invalid subreg, perform move in the subreg's inner mode instead.

From-SVN: r168169
2010-12-22 15:09:17 +00:00
Martin Jambor
32aa622ca8 re PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline-small-functions)
2010-12-22  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/45934
	PR tree-optimization/46302
	PR tree-optimization/46987
	* gimple-fold.c (get_base_binfo_for_type): Removed.
	(gimple_get_relevant_ref_binfo): Likewise.
	(gimple_fold_obj_type_ref_call): Dumb down to 4.5 functionality,
	removed parameter inplace, updated the caller.
	* gimple.h (gimple_get_relevant_ref_binfo): Remove declaration.
	* ipa-cp.c (ipcp_propagate_types): Do not derive types from constants.
	(ipcp_discover_new_direct_edges): Do not do devirtualization based on
	constants.
	* ipa-prop.c (compute_known_type_jump_func): Use
	get_ref_base_and_extent and get_binfo_at_offset instead of
	gimple_get_relevant_ref_binfo.
	(compute_known_type_jump_func): Likewise.
	(update_jump_functions_after_inlining): Do not derive types from
	constants.
	(try_make_edge_direct_virtual_call): Likewise.
	* tree.c (get_binfo_at_offset): Get type from non-artificial fields.

	* testsuite/g++.dg/ipa/ipcp-ivi-1.C: Removed.
	* testsuite/g++.dg/ipa/ivinline-6.C: Likewise.
	* testsuite/g++.dg/otr-fold-1.C: Likewise.
	* testsuite/g++.dg/otr-fold-2.C: Likewise.
	* testsuite/g++.dg/tree-ssa/pr43411.C: Xfail dump scan.
	* testsuite/g++.dg/tree-ssa/pr45605.C: Likewise.
	* testsuite/g++.dg/tree-ssa/pr46987.C: New test.

From-SVN: r168168
2010-12-22 13:56:54 +01:00
Steven Bosscher
5eeac8330c * gfortran.dg/pr46755.f: Fix test case.
From-SVN: r168167
2010-12-22 12:15:12 +00:00
Joseph Myers
57809813b4 svr4.h: Remove.
* config/svr4.h: Remove.
	* system.h (USING_SVR4_H, SVR4_ASM_SPEC): Poison.
	* config.gcc, config/bfin/bfin.h, config/cris/cris.h,
	config/fr30/fr30.h, config/frv/frv.h, config/i386/openbsdelf.h,
	config/i386/vx-common.h, config/ia64/elf.h, config/ia64/ia64.h,
	config/ia64/sysv4.h, config/iq2000/iq2000.h, config/m68k/linux.h,
	config/m68k/m68kelf.h, config/mips/mips.h, config/mips/vxworks.h,
	config/moxie/moxie.h, config/netbsd-aout.h, config/openbsd.h,
	config/rs6000/sysv4.h, config/sh/elf.h, config/sh/sh.h,
	config/sol2.h, config/sparc/sysv4.h, config/stormy16/stormy16.h,
	config/v850/v850.h, config/vxworks.h: Remove or update comments
	referring to svr4.h.

From-SVN: r168166
2010-12-22 12:06:01 +00:00
Hariharan Sandanagobalane
6e30705627 configure.ac: (picochip): Disable libiberty.
* configure.ac: (picochip): Disable libiberty.

From-SVN: r168165
2010-12-22 10:34:23 +00:00