Commit Graph

105738 Commits

Author SHA1 Message Date
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
Andrey Belevantsev
d7f672ecf6 re PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7058)
PR rtl-optimization/45352
	PR rtl-optimization/46521
	PR rtl-optimization/46522
	* sel-sched.c (reset_sched_cycles_in_current_ebb): Recheck the DFA state
	on the last iteration of the advancing loop.
	(sel_sched_region_1): Propagate the rescheduling bit to the next block
	also for empty blocks.

	* gcc.dg/pr46521.c: New.
	* gcc.dg/pr46522.c: New.

From-SVN: r168164
2010-12-22 10:46:53 +03:00
Ian Lance Taylor
d7ab2512cd Correct test for number of arguments to append.
From-SVN: r168163
2010-12-22 06:33:02 +00:00
Ian Lance Taylor
8e6c2a27c5 Don't crash if a constant initializer refers to the constant.
From-SVN: r168162
2010-12-22 06:27:50 +00:00
Ian Lance Taylor
ecdacbb305 Don't crash on invalid type conversion.
From-SVN: r168161
2010-12-22 06:17:55 +00:00
Alexandre Oliva
8dcfef8f2b re PR debug/46724 (Wrong debug info: Invalid variable location)
PR debug/46724
* function.c (assign_parms_augmented_arg_list): Name and mark
DECL of result address as NAMELESS rather than IGNORED.
(assign_parms): Set DECL_VALUE_EXPR for indirect result.
* tree.h (tree_decl_common::decl_flag_2): Document RESULT_DECL.
(DECL_HAS_VALUE_EXPR_P): Accept RESULT_DECL.
* dwarf2out.c (loc_list_from_tree) <RESULT_DECL>: Use
DECL_VALUE_EXPR.
* dbxout.c (dbxout_expand_expr) <RESULT_DECL>: Likewise.
* var-tracking.c (vt_add_function_parameter): New, split out of...
(vt_add_function_parameters): ... this.  Handle incoming
pointer to hold result.

From-SVN: r168160
2010-12-22 03:49:00 +00:00
Jie Zhang
16a9afdc66 arm.c (output_move_double): Update the comment above the function to reflect the current implementation.
* config/arm/arm.c (output_move_double): Update the comment
	above the function to reflect the current implementation.

From-SVN: r168159
2010-12-22 01:42:20 +00:00
Ian Lance Taylor
5c63bac2ec Fix uninitialized variable when looking up '_'.
From-SVN: r168158
2010-12-22 01:37:30 +00:00
Ian Lance Taylor
428f5f5f35 Don't crash receiving multiple results from void function.
From-SVN: r168157
2010-12-22 01:28:29 +00:00
Ian Lance Taylor
0cb04e3af7 Fix handling of functions with named results that call recover.
From-SVN: r168156
2010-12-22 01:22:56 +00:00
Ian Lance Taylor
11d6fcc2c4 Don't crash building erroneous variable initializer.
From-SVN: r168155
2010-12-22 01:14:41 +00:00
GCC Administrator
fe6e051695 Daily bump.
From-SVN: r168154
2010-12-22 00:21:25 +00:00
Nicola Pero
9fd553ccd9 In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc-private/objc-list.h: Reindented file.  No code changes.
	* objc-private/sarray.h: Same change.

From-SVN: r168150
2010-12-22 00:17:21 +00:00
Nicola Pero
8637d320f1 In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc-private/accessors.h: Removed 'extern "C"' guards.  This
	file is never compiled with C++.
	* objc-private/hash.h: Same change.
	* objc-private/objc-list.h: Same change.
	* objc-private/objc-sync.h: Same change.
	* objc-private/protocols.h: Same change.
	* objc-private/runtime.h: Same change.
	* objc-private/sarray.h: Same change.
	* objc-private/selector.h: Same change.

From-SVN: r168149
2010-12-22 00:05:57 +00:00
Ian Lance Taylor
0cc3d14ec1 Check for errors when building map construction.
From-SVN: r168148
2010-12-22 00:00:42 +00:00
Nicola Pero
522c4f1f1e Fixed changelog entry for one of my libobjc patches of a few days ago
From-SVN: r168147
2010-12-21 23:55:24 +00:00
Ian Lance Taylor
88a8aaac55 Don't warn about []int of string with NUL bytes.
From-SVN: r168146
2010-12-21 23:48:37 +00:00
Ian Lance Taylor
a8f3a62df1 Don't permit assigning abstract string/bool to numeric variable.
From-SVN: r168145
2010-12-21 23:33:51 +00:00
Ian Lance Taylor
67eff3d9f7 Don't crash on calling new with an erroneous type.
From-SVN: r168144
2010-12-21 23:19:43 +00:00
Ian Lance Taylor
9ff48ac359 Don't crash when returning something from a function named '_'.
From-SVN: r168143
2010-12-21 23:13:18 +00:00
Ian Lance Taylor
91ab22083a Don't crash indexing into erroneous array.
From-SVN: r168142
2010-12-21 22:59:31 +00:00
Steven Bosscher
e0cb7e1ef4 value-prof.c (value_prof_hooks): Remove.
* value-prof.c (value_prof_hooks): Remove.
	(struct value_prof_hooks): Remove.
	(gimple_value_prof_hooks): Remove.
	(gimple_register_value_prof_hooks): Remove.
	(find_values_to_profile): Remove.
	(value_profile_transformations): Remove.
	(gimple_value_profile_transformations): No longer static.
	(gimple_find_values_to_profile): Likewise.
	* value-prof.h (gimple_register_value_prof_hooks): Remove prototype.
	(find_values_to_profile): Likewise.
	(value_profile_transformations): Likewise.
	(tree_register_profile_hooks): Likewise.
	(struct profile_hooks): Remove.
	(tree_profile_hooks): Remove.
	(gimple_find_values_to_profile): New protoype.
	(gimple_value_profile_transformations): Likewise.
	(gimple_init_edge_profiler): Likewise.
	(gimple_gen_edge_profiler): Likewise.
	(gimple_gen_interval_profiler): Likewise.
	(gimple_gen_pow2_profiler): Likewise.
	(gimple_gen_one_value_profiler): Likewise.
	(gimple_gen_ic_profiler): Likewise.
	(gimple_gen_ic_func_profiler): Likewise.
	(gimple_gen_const_delta_profiler): Likewise.
	(gimple_gen_average_profiler): Likewise.
	(gimple_gen_ior_profiler): Likewise.
	* profile.c (profile_hooks): Remove.
	(instrument_edges): Call profiling functions directly instead
	of through removed profile_hooks.
	(instrument_values): Likewise.
	(branch_prob): Call gimple_find_values_to_profile instead of
	removed find_values_to_profile.
	Call gimple_init_edge_profiler instead of removed hook.
	(tree_register_profile_hooks): Remove.
	* tree-profile.c (tree_init_ic_make_global_vars): Rename to
	init_ic_make_global_vars.
	(tree_init_edge_profiler): Rename to gimple_init_edge_profiler
	and no longer static.
	(tree_gen_edge_profiler, tree_gen_interval_profiler,
	tree_gen_pow2_profiler, tree_gen_one_value_profiler,
	tree_gen_ic_profiler, tree_gen_ic_func_profiler,
	tree_gen_const_delta_profiler, tree_gen_average_profiler,
	tree_gen_ior_profiler): Similarly renamed and no longer static.
	(tree_profiling): Do not initialize tree profiling hooks.
	(tree_profile_hooks): Remove.

From-SVN: r168141
2010-12-21 22:58:57 +00:00
Ian Lance Taylor
74d272a2e7 Don't crash when copying a function with no closure variable.
From-SVN: r168140
2010-12-21 22:56:39 +00:00
Nicola Pero
1575c9deae In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR libobjc/18764
	* class.c (__objc_add_class_to_hash): Return YES if the class was
	added, and NO if it already existed.
	* init.c (__objc_init_class): If __objc_add_class_to_hash returns
	NO, then abort the program with an error message.
	* objc-private/runtime.h (__objc_add_class_to_hash): Updated
	declaration.

From-SVN: r168139
2010-12-21 22:49:37 +00:00
Ian Lance Taylor
2fdd3e0468 Make-lang.in (check-go): Remove.
* Make-lang.in (check-go): Remove.
	(lang_checks_parallelized): Add check-go.
	(check_go_parallelize): Set.

From-SVN: r168137
2010-12-21 22:45:54 +00:00
Ian Lance Taylor
5b1932a1b6 go-test.exp: Clear runtests around invocation of go-dg-runtest from errchk and go-execute-xfail.
* go.test/go-test.exp: Clear runtests around invocation of
	go-dg-runtest from errchk and go-execute-xfail.

From-SVN: r168136
2010-12-21 22:42:14 +00:00
Jakub Jelinek
401e4feab6 re PR target/46880 (generating of shufpd is broken)
PR target/46880
	* config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
	operand.

	* gcc.target/i386/pr46880.c: New test.

From-SVN: r168135
2010-12-21 23:37:23 +01:00
Ian Lance Taylor
31e1ba2e2a Don't finalize methods for a type more than once.
From-SVN: r168134
2010-12-21 22:33:04 +00:00
Nicola Pero
1588200e46 In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	* init.c (_objc_load_callback): Initialize with 0.
	(__objc_call_callback): Renamed to __objc_call_load_callback.
	Check _objc_load_callback only once, and if it is not set, return
	immediately.
	(objc_send_load): Updated call to __objc_call_callback.

From-SVN: r168133
2010-12-21 22:17:52 +00:00
Ian Lance Taylor
686875c172 Correct handling of methods which call recover.
From-SVN: r168132
2010-12-21 21:14:15 +00:00
Ian Lance Taylor
059e2a26f5 Don't crash when declaring methods on unknown name.
From-SVN: r168131
2010-12-21 20:32:36 +00:00
Ian Lance Taylor
7a8de70f01 Layout undefined type.
From-SVN: r168130
2010-12-21 18:59:22 +00:00
Ian Lance Taylor
093e663242 Correct lexing of exponents.
From-SVN: r168129
2010-12-21 18:51:45 +00:00
Ian Lance Taylor
3868d6bfa6 Report errors for temporary statements rather than crashing.
From-SVN: r168128
2010-12-21 18:31:48 +00:00
Joseph Myers
c8f2cf85f7 * es.po, ja.po: Update.
From-SVN: r168127
2010-12-21 18:28:33 +00:00
Ian Lance Taylor
3cddc98026 Don't crash when some object is redefined as a type.
From-SVN: r168126
2010-12-21 18:20:51 +00:00
Ian Lance Taylor
8cd15b1036 Traverse function types.
From-SVN: r168125
2010-12-21 18:10:13 +00:00
Ira Rosen
c9c1e77571 re PR tree-optimization/47001 (segmentation fault in vect_mark_slp_stmts)
PR tree-optimization/47001
        * tree-vect-slp.c (vect_supported_load_permutation_p): Check
        that the loads in reduction are different and there are no gaps
        between them.

From-SVN: r168123
2010-12-21 15:42:11 +00:00
Nicola Pero
c07499dc75 In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR libobjc/16110
	* init.c (__objc_send_message_in_list): Renamed to
	__objc_send_load_using_method_list.  Do not take an 'op' argument.
	Register the 'load' selector if needed.
	(__objc_send_load): Do not register the 'load' selector.  Updated
	call to __objc_send_message_in_list.
	(__objc_create_classes_tree): Add the class of any claimed
	category that was loaded in the module to the list of classes for
	which we try to execute +load.
	
In gcc/testsuite/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR libobjc/16110
	* objc.dg/special/special.exp: Added new test.
	* objc.dg/special/load-category-1.m: New.
	* objc.dg/special/load-category-1a.m: New.
	* objc.dg/special/load-category-1.h: New.

From-SVN: r168122
2010-12-21 15:34:19 +00:00
Steven Bosscher
c8613835dd Forgotten ChangeLog entries.
gcc/
	PR middle-end/45310
	* tree-ssa-phiprop.c (propagate_with_phi): Remove statement
	completely from the function, including EH traces.

testsuite/
	PR middle-end/45310
	* g++.dg/pr45310.C: New test.

From-SVN: r168121
2010-12-21 15:08:40 +00:00
Steven Bosscher
b1193f619b re PR middle-end/45310 (ICE: verify_stmts failed: Dead STMT in EH table with -O1 -fnon-call-exceptions)
gcc/
	PR middle-end/45310
	* tree-ssa-phiprop.c (propagate_with_phi): Remove statement
	completely from the function, including EH traces.

testsuite/
	PR middle-end/45310
	* g++.dg/pr45310.C: New test.

From-SVN: r168120
2010-12-21 15:02:02 +00:00
Nicola Pero
df0820da97 In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc-private/common.h: When DEBUG is defined, include <stdio.h>.
	Updated comments.
	* init.c (__objc_tree_insert_class): Use %p, not %x, when printing
	a pointer using DEBUG_PRINTF.

From-SVN: r168119
2010-12-21 14:56:18 +00:00
Steven Bosscher
59db109afd re PR rtl-optimization/46755 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
gcc/
	PR rtl-optimization/46755
	* ira.c (ira): If some dead edges were removed, find and delete
	any blocks that might have become unreachable.

testsuite/
	PR rtl-optimization/46755
	* gfortran.dg/pr46755.f: New test

From-SVN: r168118
2010-12-21 14:55:41 +00:00
Jakub Jelinek
96676a5df7 re PR rtl-optimization/47008 (gfortran.dg/extends_{23}.f03 FAIL with -Os -fschedule-insns)
PR rtl-optimization/47008
	* postreload.c (reload_combine_note_store): Also handle
	PRE_MODIFY and POST_MODIFY.

	* gfortran.dg/pr47008.f03: New test.

From-SVN: r168117
2010-12-21 15:51:42 +01:00
Nicola Pero
c75534d1e6 In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR libobjc/45953
	* selector.c (__sel_register_typed_name): When registering a new
	selector with the same name as an existing one, reuse the existing
	name string.  Also updated types, casts and comments in the whole
	function.

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

	PR libobjc/45953
	* objc.dg/libobjc-selector-1.m: New test.

From-SVN: r168115
2010-12-21 13:44:04 +00:00