invoke.texi (Blackfin Options): -mcpu accepts bf592.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
2
3         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5         bf592-none.
6         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8         * config/bfin/bfin.c (bfin_cpus): Add bf592.
9         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10         __ADSPBF592__ and __ADSPBF59x__ for     BFIN_CPU_BF592.
11         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13
14 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15
16         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from
18         arm.h.
19         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
20         target_thread_pointer, arm_structure_size_boundary, struct
21         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
22         struct abi_name, arm_all_abis): Remove.
23         (arm_option_override) Don't process most enumerated option values
24         here.  Don't process target_fpe_name here.  Work with integer not
25         string for structure size boundary; use separate diagnostics for
26         each case.
27         * config/arm/arm.h (enum float_abi_type, enum
28         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
29         to arm-opts.h.
30         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
31         arm_structure_size_boundary): Remove.
32         * config/arm/arm.opt (mabi=): Use Enum and Init.
33         (arm_abi_type): New Enum and EnumValue entries.
34         (mfloat-abi=): Use Enum and Init.
35         (float_abi_type): New Enum and EnumValue entries.
36         (mfp=, mfpe=): Replace by separate Alias entries for each
37         argument.
38         (mfp16-format=): Use Enum and Init.
39         (arm_fp16_format_type): New Enum and EnumValue entries.
40         (mstructure-size-boundary=): Use UInteger and Init.
41         (mtp=): Use Enum and Init.
42         (arm_tp_type): New Enum and EnumValue entries.
43
44 2011-05-18  Richard Guenther  <rguenther@suse.de>
45
46         PR tree-optimization/49018
47         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
48         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
49         gimple_has_side_effects.
50
51 2011-05-18  Richard Guenther  <rguenther@suse.de>
52
53         * gimple.c (gimple_register_type_1): New function, split out from ...
54         (gimple_register_type): ... here.  Avoid infinite recursion.
55
56 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
57
58         PR tree-optimization/41881
59         * tree-vectorizer.h (struct _loop_vec_info): Add new field
60         reduction_chains along with a macro for its access.
61         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
62         (destroy_loop_vec_info): Free reduction chains.
63         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
64         (vect_is_slp_reduction): New function.
65         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
66         (vect_create_epilog_for_reduction): Support SLP reduction chains.
67         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
68         definition types for reduction chains.
69         (vect_supported_load_permutation_p): Don't allow permutations for
70         reduction chains.
71         (vect_analyze_slp_instance): Support reduction chains.
72         (vect_analyze_slp): Try to build SLP instance from reduction chains.
73         (vect_get_constant_vectors):  Handle reduction chains.
74         (vect_schedule_slp_instance): Mark the first statement of the
75         reduction chain as reduction.
76
77 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
78
79         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
80         names for group elements access.
81         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
82         reduction chains as well.  Remove data reference and interleaving
83         related words from the fields names.
84         * tree-vect-loop.c (vect_transform_loop): Use new names for group
85         elements access.
86         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
87         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
88         vect_update_interleaving_chain, vect_same_range_drs,
89         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
90         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
91         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
92         vect_analyze_group_access, vect_analyze_data_ref_access,
93         vect_create_data_ref_ptr, vect_transform_strided_load,
94         vect_record_strided_load_vectors): Likewise.
95         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
96         vect_model_load_cost, vectorizable_store, vectorizable_load,
97         vect_remove_stores, new_stmt_vec_info): Likewise.
98         * tree-vect-slp.c (vect_build_slp_tree,
99         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
100
101 2011-05-18  Richard Guenther  <rguenther@suse.de>
102
103         PR middle-end/48989
104         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
105         operand verification.
106         (verify_gimple_assign_binary): Likewise.
107         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
108         to non-1-precision BOOLEAN_TYPEs.
109
110 2011-05-18  Tom de Vries  <tom@codesourcery.com>
111
112         PR target/45098
113         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
114
115 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
116
117         PR tree-optimization/49000
118         * tree-ssa.c (execute_update_addresses_taken): Call
119         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
120         be rewritten and decl has been marked for renaming, reset
121         the debug stmt.
122
123 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
124
125         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
126         enum_opts_set when testing if attributes have set -mfpmath=.
127
128 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
129
130         * config/mips/mips.c (mips_handle_option): Remove unused variable.
131
132 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
133
134         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
135         info->entry with 0
136         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
137         id.transform_lang_insert_block with NULL.
138
139 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
140
141         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
142         (output_fp_compare): Change args 3 and 4 to bool.
143         (ix86_expand_call): Change arg 6 to bool.
144         (ix86_attr_length_immediate_default): Change arg 2 to bool.
145         (ix86_attr_length_vex_default): Change arg 3 to bool.
146         * config/i386/i386.md: Update all uses.
147         * config/i386/i386.c: Ditto.
148         (ix86_flags_dependent): Change return type to bool.
149
150 2011-05-17  Richard Guenther  <rguenther@suse.de>
151
152         * gimple.c (type_hash_pair_compare): Fix comparison.
153
154 2011-05-17  Richard Guenther  <rguenther@suse.de>
155
156         * gimple.c (iterative_hash_gimple_type): Simplify singleton
157         case some more, fix final hash value of the non-singleton case.
158
159 2011-05-17  Richard Guenther  <rguenther@suse.de>
160
161         PR bootstrap/49013
162         Revert
163         2011-05-16  Richard Guenther  <rguenther@suse.de>
164
165         * gimple.c (gimple_types_compatible_p_1): Use names of the
166         type itself, not its main variant.
167         (iterative_hash_gimple_type): Likewise.
168
169 2011-05-17  Richard Guenther  <rguenther@suse.de>
170
171         * gimple.c (gimple_register_canonical_type): Use the main-variant
172         leader for computing the canonical type.
173
174 2011-05-17  Nick Clifton  <nickc@redhat.com>
175
176         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
177         moves.
178
179         * config/rx/rx.md: Add peephole to remove redundant extensions
180         after loads.
181         (bitset_in_memory): Use rx_restricted_mem_operand.
182         (bitinvert_in_memory): Likewise.
183         (bitclr_in_memory): Likewise.
184
185 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
186             Nick Clifton  <nickc@redhat.com>
187
188         * config/rx/rx.md: Add peepholes to match a register move followed
189         by a comparison of the moved register.  Replace these with an
190         addition of zero that does both actions in one instruction.
191
192 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
193
194         PR target/48986
195         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
196         predicate to allow CONST_INT.
197         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
198
199 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
200
201         * opts-common.c (opt_enum_arg_to_value): New.
202         * opts.h (opt_enum_arg_to_value): Declare.
203         * config/i386/i386.opt (fpmath): Remove.
204         (mfpmath=): Use Enum, Init and Save.
205         (fpmath_unit): New Enum and EnumValue entries.
206         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
207         name for function fpmath state.
208         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
209         * config/i386/i386.c: Include diagnostic.h.
210         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
211         (ix86_target_string): Take enum fpmath_unit value instead of string.
212         (ix86_debug_options): Update call to ix86_target_string.
213         (ix86_option_override_internal): Don't process fpmath strings here.
214         (x86_function_specific_save, ix86_function_specific_restore):
215         Don't handle fpmath state specially.
216         (ix86_function_specific_print): Pass fpmath state to
217         ix86_target_string instead of printing in this function.
218         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
219         Handle enum attributes.
220         (IX86_ATTR_ENUM, ix86_opt_enum): New.
221         (ix86_valid_target_attribute_tree): Update option_strings
222         handling.  Handle fpmath as enum option.
223         (ix86_can_inline_p): Update field names for function fpmath state.
224         (ix86_expand_builtin): Update call to ix86_target_string.
225         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
226         (ix86_fpmath): Remove.
227         * config/i386/t-i386 (i386.o): Update dependencies.
228
229 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
230
231         PR preprocessor/48677
232         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
233         from decoded_options[0], not from itself.
234
235 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
236
237         * config/i386/constraints.md (z): New constraint.
238         * config/i386/i386.c (c): New mode attribute.
239         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
240         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
241         constraint for operand 0.
242         (*call_vzeroupper): Ditto.
243         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
244         (*call_rex64_ms_sysv_vzeroupper): Ditto.
245         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
246         Use "lzm" constraint for operand 0.
247         (*call_pop_vzeroupper): Ditto.
248         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
249         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
250         constraint for operand 0.
251         (*sibcall_vzeroupper): Ditto.
252         (*sibcall_rex64_ms_sysv): Ditto.
253         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
254         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
255         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
256         (*sibcall_pop_vzeroupper): Ditto.
257         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
258         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
259         mode iterator.  Use "<c>zm" constraint for operand 1.
260         (*call_value_vzeroupper): Ditto.
261         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
262         for operand 1.
263         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
264         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
265         *call_value_pop_1.  Use "lzm" constraint for operand 1.
266         (*call_value_pop_vzeroupper): Ditto.
267         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
268         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
269         mode iterator.  Use "Uz" constraint for operand 1.
270         (*sibcall_value_vzeroupper): Ditto.
271         (*sibcall_value_rex64_ms_sysv): Ditto.
272         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
273         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
274         constraint for operand 1.
275         (*sibcall_value_pop_vzeroupper): Ditto.
276         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
277         and "z" constraint for operand 2.
278         (*tls_global_dynamic_32_gnu): Ditto.
279         (*tls_local_dynamic_base_32_gnu): Ditto.
280         (*tls_local_dynamic_base_64): Ditto.
281         (*tls_local_dynamic_32_once): Ditto.
282         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
283         Update all callers.
284         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
285
286 2011-05-16  Richard Guenther  <rguenther@suse.de>
287
288         * gimple.c (gimple_types_compatible_p_1): Use names of the
289         type itself, not its main variant.
290         (iterative_hash_gimple_type): Likewise.
291
292 2011-05-16  Richard Guenther  <rguenther@suse.de>
293
294         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
295         always visit pointer target and function result and argument types.
296
297 2011-05-16  Jason Merrill  <jason@redhat.com>
298
299         PR c++/48999
300         * tree-inline.c (copy_statement_list): Put back recursion.
301
302 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
303
304         PR target/27663
305         PR target/41076
306         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
307         * config/avr/avr.md ("*ior<mode>qi.byte0",
308         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
309
310 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
311
312         PR target/45099
313         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
314         register is needed for a function argument.
315
316 2011-05-16  Richard Guenther  <rguenther@suse.de>
317
318         * gimple.c (struct type_hash_pair): New type.
319         (type_hash_pair_compare): New function.
320         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
321
322 2011-05-16  Revital Eres  <revital.eres@linaro.org>
323
324         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
325
326 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
327
328         * config/i386/i386.md (floating point move splitters): Fix
329         usage of standard_80387_constant_p.
330         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
331
332 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
333
334         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
335
336 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
337
338         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
339         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
340         (tree_ssa_lim_finalize): Likewise.
341
342 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
343
344         * config/i386/constraint.md (Yd, Yx): New register constraints.
345         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
346         Yd conditional register constraint.
347         (*movtf_internal): Use standard_sse_constant_opcode.
348         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
349         Yx conditional register constraint.
350         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
351         Yd conditional register constraint.  Use standard_sse_constant_p to
352         check for valid SSE constants and call standard_sse_constant_opcode to
353         output SSE insn.
354         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
355         constants and call standard_sse_constant_opcode to output SSE insn.
356         * config/i386/i386.c (ix86_option_ovverride_internal): Set
357         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
358         optimize_size is set.
359         (standard_sse_constant_opcode): Output conditional AVX insn templates.
360
361 2011-05-14  Tobias Burnus  <burnus@net-b.de>
362
363         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
364
365 2011-05-13  Martin Jambor  <mjambor@suse.cz>
366
367         * ipa-prop.c (ipa_cst_from_jfunc): New function.
368         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
369         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
370         (evaluate_conditions_for_ipcp_clone): Removed.
371         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
372         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
373         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
374
375 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
376
377         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
378         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
379         lieu of MAY_HAVE_DEBUG_STMTS.
380         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
381         debug statements if !MAY_HAVE_DEBUG_STMTS.
382
383 2011-05-13  Martin Thuresson  <martint@google.com>
384
385         PR gcov-profile/47793
386         * libgcov.c (gcov_exit): Support relative profile paths.
387         * doc/invoke.texi (-fprofile-dir): Update for above change.
388
389 2011-05-13  Richard Guenther  <rguenther@suse.de>
390
391         * gimple.c (gimple_canonical_types_compatible_p): Do not use
392         type-pair caching, do not compare hashes.
393
394 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
395
396         PR middle-end/48965
397         * tree-cfg.c (edge_to_cases_cleanup): Return true.
398         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
399
400 2011-05-13  Kai Tietz  <ktietz@redhat.com>
401
402         * gimplify.c (gimplify_expr): Make sure operand is boolified.
403         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
404         compatible type for TRUTH_NOT_EXPR.
405
406 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
407
408         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
409         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
410         can_create_pseudo_p ().
411
412 2011-05-13  Richard Guenther  <rguenther@suse.de>
413
414         PR lto/48978
415         * gimple.c (iterative_hash_gimple_type): Revert change in
416         pointer target and function result and argument hashing.
417
418 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
419
420         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
421         (*movxf_internal_nointeger): Ditto.
422         (*movdf_internal_rex64): Ditto.
423         (*movdf_internal): Ditto.
424         (*movdf_internal_nointeger): Ditto.
425         (*movsf_internal): Ditto.
426         (sincos splitters): Use can_create_pseudo ().
427
428 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
429
430         * config/i386/i386-opts.h: New.
431         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
432         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
433         ix86_section_threshold): Remove.
434         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
435         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
436         OPT_mbranch_cost_.
437         (ix86_option_override_internal): Don't decode strings for options
438         other than -march=, -mtune= and -mfpmath=.  Don't allow for
439         __attribute__ uses in remaining diagnostics for options with
440         string arguments.  Don't check for integer arguments being negative.
441         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
442         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
443         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
444         ix86_branch_cost, ix86_section_threshold): Remove.
445         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
446         HeaderInclude.
447         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
448         but not Var.
449         (masm=): Use Enum and Init.
450         (asm_dialect): New Enum and EnumValue entries.
451         (mbranch-cost=): Use UInteger.
452         (mlarge-data-threshold=): Use UInteger and Init.
453         (mcmodel=): Use Enum and Init.
454         (cmodel): New Enum and EnumValue entries.
455         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
456         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
457         mregparm=): Use UInteger.
458         (mstringop-strategy=): Use Enum and Init.
459         (stringop_alg): New Enum and EnumValue entries.
460         (mtls-dialect=): Use Enum and Init.
461         (tls_dialect): New Enum and EnumValue entries.
462         (mabi=): Use Enum and Init.
463         (calling_abi): New Enum and EnumValue entries.
464         (mveclibabi=): Use Enum and Init.
465         (ix86_veclibabi): New Enum and EnumValue entries.
466
467 2011-05-13  Nick Clifton  <nickc@redhat.com>
468
469         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
470         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
471
472 2011-05-13  Kai Tietz  <ktietz@redhat.com>
473
474         PR middle-end/48984
475         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
476         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
477         (gimple_boolify): Check for cast for boolean_type_node instead for
478         BOOLEAN_TYPE.
479
480 2011-05-13  Richard Guenther  <rguenther@suse.de>
481
482         PR tree-optimization/48172
483         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
484         multiplying by number of iterations for equal step.
485         (vect_create_cond_for_alias_checks): Likewise.
486
487 2011-05-13  Andreas Schwab  <schwab@redhat.com>
488
489         * configure.ac: Use AS_HELP_STRING throughout.
490         * configure: Regenerate.
491
492 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
493
494         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
495         (ix86_emit_restore_regs_using_mov): Likewise.
496         (ix86_emit_restore_sse_regs_using_mov): Likewise.
497
498 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
499
500         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
501         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
502         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
503         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
504         RTX_OK_FOR_OLO10_P): ...here.
505         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
506         SYMBOLIC_CONST.
507
508 2011-05-12  Kai Tietz  <ktietz@redhat.com>
509
510         * gimplify.c (gimple_boolify): Re-boolify expression
511         arguments even if expression type is of kind BOOLEAN_TYPE.
512         (gimplify_boolean_expr): Removed.
513         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
514         and XOR. Additional take care that we keep expression's type.
515         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
516         of TRUTH_AND|OR|XOR_EXPR.
517
518 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
519
520         PR tree-optimization/48975
521         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
522         on all bbs here and free and clear ifc_bbs at the end.
523
524 2011-05-12  Richard Guenther  <rguenther@suse.de>
525
526         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
527         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
528         until after simple checks.
529         (gimple_types_compatible_p): Likewise.
530         (iterative_hash_gimple_type): Always hash pointer targets
531         and function return and argument types.
532         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
533         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
534         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
535         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
536         completely in the simple compare section.
537         (gimple_register_canonical_type): Query the cache again after
538         registering.
539
540 2011-05-12  Richard Guenther  <rguenther@suse.de>
541
542         PR tree-optimization/48172
543         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
544         the number of iterations from the segment size calculation.
545         (vect_create_cond_for_alias_checks): Adjust.
546
547 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
548
549         PR debug/48967
550         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
551         if validate_subreg fails.
552
553 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
554
555         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
556         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
557         early.
558
559 2011-05-12  DJ Delorie  <dj@redhat.com>
560
561         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
562         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
563         created builtin into rx_builtins array.
564         (rx_builtin_decl): New function.
565         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
566
567 2011-05-12  DJ Delorie  <dj@redhat.com>
568             Nick Clifton  <nickc@redhat.com>
569
570         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
571         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
572         (rx_is_legitimate_address): Add pre-decrement and post-increment
573         addressing in HImode and QImode.  Fix test for out of range
574         REG+INT addressing.
575         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
576         (rx_align_for_label): Test label before extracting its usage count.
577         (rx_adjust_insn_lengths): Fix selection of insn codes.
578         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
579
580 2011-05-11  Jason Merrill  <jason@redhat.com>
581
582         * tree.c (type_hash_canon): Use struct tree_type_non_common.
583
584 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
585
586         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
587         reindent the subsequent block.
588
589 2011-05-11  Satoru Takabayashi  <satorux@google.com>
590             Paul Pluzhnikov  <ppluzhnikov@google.com>
591
592         * doc/install.texi (Configuration): Document --with-linker-hash-style.
593         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
594         * config.in: Add LINKER_HASH_STYLE.
595         * configure.ac: Add --with-linker-hash-style.
596         * configure: Regenerate.
597
598 2011-05-11  Richard Guenther  <rguenther@suse.de>
599
600         PR middle-end/48964
601         * gimple.c (iterative_hash_canonical_type): Fix typo.
602
603 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
604
605         * config/i386/i386.c (legitimize_tls_address)
606         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
607         expanders directly for TARGET_GNU2_TLS.  Determine pic and
608         __tls_get_addr symbol reference here.  Update call to
609         gen_tls_global_dynamic_{32,64} for added arguments.
610         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
611         expanders directly for TARGET_GNU2_TLS.  Determine
612         __tls_get_addr symbol reference here.  Update call to
613         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
614         unique UNSPEC REG_EQUIV to libcall block.
615         (ix86_tls_get_addr): Declare static.
616         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
617         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
618         Do not determine pic and __tls_get_addr symbol reference here. Do not
619         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
620         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
621         (tls_global_dynamic_64): Add operand 2.  Do not determine
622         __tls_get_addr symbol reference here.  Do not call
623         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
624         (tls_local_dynamic_base64): Ditto for operand 1.
625
626 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
627
628         * function.c (expand_function_start): Initialize stack_check_probe_note
629         only if the generic stack checking mechanism is used.
630
631 2011-05-11  Richard Guenther  <rguenther@suse.de>
632
633         PR tree-optimization/15256
634         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
635         (A & B) | C, combine (A op CST1) op CST2.
636         (tree_ssa_forward_propagate_single_use_vars): Only bother to
637         visit assigns that have uses.
638
639 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
640
641         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
642         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
643         (unpack_ts_type_common_value_fields): ...this.  Update comment.
644         (unpack_value_fields): Adjust for renaming.
645         (lto_input_ts_type_tree_pointers): Split into...
646         (lto_input_ts_type_common_tree_pointer): ...this and...
647         (lto_input_ts_type_non_common_tree_pointers): ...this.
648         (lto_input_tree_pointers): Adjust for above split.
649         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
650         (pack_ts_type_common_value_fields): ...this.  Update comment.
651         (lto_output_ts_type_tree_pointers): Split into...
652         (lto_output_ts_type_common_tree_pointers): ...this and...
653         (lto_output_ts_type_non_common_tree_pointers): ...this.
654         (lto_output_tree_pointers): Adjust for above split.
655         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
656         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
657         * stor-layout.c (vector_type_mode): Adjust location of mode field.
658         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
659         Define.
660         (struct tree_type): Split into...
661         (struct tree_type_common: ...this and...
662         (struct tree_type_with_lang_specific): ...this and...
663         (struct tree_type_non_common): ...this.  Adjust accessor macros
664         accordingly.
665         (TYPE_VALUES_RAW): Define.
666         (union tree_node): Update for above changes.
667         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
668         TS_TYPE_NON_COMMON.
669         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
670         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
671         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
672         * treestructu.def (TS_TYPE): Remove.
673         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
674         Define.
675
676 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
677
678         PR debug/48159
679         * tree-ssa.c (reset_debug_uses): New function.
680         * tree-flow.h (reset_debug_uses): New prototype.
681         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
682         * tree-loop-distribution.c (generate_loops_for_partition): Call
683         reset_debug_uses on the stmts that will be removed.  Keep around
684         all debug stmts, don't count them as bits in partition bitmap.
685         (generate_builtin): Don't count debug stmts or labels as bits in
686         partition bitmap.
687
688 2011-05-11  Richard Guenther  <rguenther@suse.de>
689
690         * gimple.c (gimple_type_hash_1): Merge with ...
691         (gimple_type_hash): ... this.
692         (gtc_visit): Remove mode parameter and simplify accordingly.
693         (gimple_types_compatible_p_1): Likewise.
694         (gimple_types_compatible_p): Likewise.
695         (iterative_hash_gimple_type): Likewise.
696         (visit): Likewise.
697         (gimple_type_eq): Adjust.
698
699 2011-05-11  Revital Eres  <revital.eres@linaro.org>
700
701         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
702         enters the branch create an anti edge in the opposite direction
703         to prevent the creation of reg-moves.
704         * modulo-sched.c: Adjust comment to reflect the fact we are
705         scheduling closing branch.
706         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
707         (stage_count): New field in struct partial_schedule.
708         (calculate_stage_count): New function.
709         (normalize_sched_times): Rename to reset_sched_times and handle
710         incrementing the sched time of the nodes by a constant value
711         passed as parameter.
712         (duplicate_insns_of_cycles): Skip closing branch.
713         (sms_schedule_by_order): Schedule closing branch.
714         (ps_insn_find_column): Handle closing branch.
715         (sms_schedule): Call reset_sched_times and adjust the code to
716         support scheduling of the closing branch.
717         (ps_insert_empty_row): Update calls to normalize_sched_times
718         and rotate_partial_schedule functions.
719
720 2011-05-11  Richard Guenther  <rguenther@suse.de>
721
722         PR middle-end/48953
723         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
724
725 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
726
727         * opts.c (finish_options): Move warning settings from process_options.
728         * toplev.c (process_options): Move warning settings to finish_options.
729
730 2011-05-11  Richard Guenther  <rguenther@suse.de>
731
732         PR tree-optimization/18041
733         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
734         (simplify_bitwise_binary): ... this.  Handle operand conversions
735         by applying them to the result instead.
736         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
737
738 2011-05-11  Richard Guenther  <rguenther@suse.de>
739
740         * gimple.c (gimple_canonical_types_compatible_p): Split out
741         from gimple_types_compatible_p and friends.  Do not recurse
742         to pointed-to types.
743         (gimple_canonical_type_eq): Use it.
744         (iterative_hash_canonical_type): Split out from
745         iterative_hash_gimple_type and friends.  Do not recurse
746         to pointed-to types.
747         (gimple_canonical_type_hash): Use it, allocate the hash here.
748
749 2011-05-11  Revital Eres  <revital.eres@linaro.org>
750
751         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
752         recognizing doloop.
753
754 2011-05-11  Revital Eres  <revital.eres@linaro.org>
755
756         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
757         instead of PREV_INSN.
758
759 2011-05-11  Revital Eres  <revital.eres@linaro.org>
760
761         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
762         * loop-doloop.c (doloop_condition_get): Likewise.
763         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
764         (doloop_end): New.
765         * config/arm/arm.md (*addsi3_compare0): Remove "*".
766
767 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
768
769         * tree.def (CASE_LABEL_EXPR): Add an operand.
770         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
771
772 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
773
774         * c-decl.c (c_override_global_bindings_to_false): Remove.
775         (global_bindings_p): Don't check
776         c_override_global_bindings_to_false.
777         * c-tree.h (c_override_global_bindings_to_false): Remove.
778         * c-typeck.c (composite_type): Don't set
779         c_override_global_bindings_to_false.
780
781 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
782
783         PR target/48857, 48495
784         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
785         (VSX_MODE): Ditto.
786         (VSX_MOVE_MODE): Ditto.
787         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
788         VSX vector types.  Add V2DImode.
789         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
790         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
791         (MODES_TIEABLE_P): Ditto.
792
793         * config/rs6000/rs6000.c (rs6000_emit_move): Use
794         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
795         VSX_VECTOR_MODE.
796         (init_cumulative_args): Ditto.
797         (rs6000_function_arg_boundary): Ditto.
798         (rs6000_function_arg_advance_1): Ditto.
799         (rs6000_function_arg): Ditto.
800         (rs6000_function_ok_for_sibcall): Ditto.
801         (emit_frame_save): Ditto.
802         (rs6000_function_value): Ditto.
803         (rs6000_libcall_value): Ditto.
804
805 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
806
807         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
808         i386/darwin-lib.h to $libgcc_tm_file.
809         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
810
811 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
812
813         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
814
815 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
816
817         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
818         * config/rs6000/rs6000-tables.opt: New file (generated).
819         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
820         rs6000/rs6000-tables.opt to extra_options.
821         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
822         * config/rs6000/rs6000.c (rs6000_select): Remove.
823         (processor_target_table): Move contents to rs6000-cpus.def.
824         (darwin_rs6000_override_options): Check
825         global_options_set.x_rs6000_cpu_index instead of
826         rs6000_select[1].string.
827         (rs6000_option_override_internal): Likewise.
828         (rs6000_handle_option): Don't assert that global structures are in
829         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
830         (rs6000_default_cpu): New variable.
831         (rs6000_file_start): Set it instead of local default_cpu.  Check
832         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
833         global_options_set.x_rs6000_tune_index instead of rs6000_select.
834         (rs6000_darwin_file_start): Check rs6000_default_cpu and
835         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
836         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
837         rs6000_select): Remove.
838         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
839         Remove.
840         (mcpu=, mtune=): Use Var, Init, Enum and Save.
841         * config/rs6000/t-rs6000
842         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
843         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
844         global_options_set.x_rs6000_cpu_index instead of
845         rs6000_select[1].string.
846         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
847         global_options_set.x_rs6000_cpu_index instead of
848         rs6000_select[1].string.
849
850 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
851
852         * config.gcc (libgcc_tm_file): Define instead of including files
853         from ../../libgcc/config/ in tm_file.
854         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
855         * configure: Regenerate.
856         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
857         libgcc_tm.h, cs-libgcc_tm.h): New.
858         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
859         (clean): Remove libgcc_tm.h.
860         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
861         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
862         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
863
864 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
865
866         PR target/48896
867         * config/avr/avr.c (avr_ret_register): Return unsigned int
868         instead of int.
869         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
870         it to avr_libcall_value.
871         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
872         expand_expr.
873         (avr_expand_binop_builtin): Ditto.
874         (avr_expand_unop_builtin): Ditto.
875
876 2011-05-10  DJ Delorie  <dj@redhat.com>
877
878         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
879         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
880         * config/rx/rx.c (rx_align_for_label): Add label and
881         uses_threshold parameters.  Do not align when the label is not
882         used enough.
883         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
884
885 2011-05-10  Richard Guenther  <rguenther@suse.de>
886
887         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
888         a series of conversions and apply foldings similar to what
889         fold-const does.
890         (tree_ssa_forward_propagate_single_use_vars): Call it.
891
892 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
893
894         PR tree-optimization/48611
895         PR tree-optimization/48794
896         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
897         referenced from RESX or EH_DISPATCH arguments.
898
899         PR debug/48928
900         * dfp.c (decimal_to_decnumber): Handle conversion from
901         dconst{1,2,m1,half}.
902
903 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
904
905         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
906         for !flag_prefer_avx128.
907         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
908
909 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
910
911         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
912         (fold_ternary_loc): Use expr_location_or.
913
914 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
915
916         PR debug/48853
917         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
918         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
919         Pmode and mem_mode is not VOIDmode.
920
921 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
922
923         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
924         TYPE_QUAL_RESTRICT): Convert to enum.
925
926 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
927
928         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
929         (const_pow2_1_to_8_operand): Ditto.
930         (const_pow2_1_to_128_operand): Ditto.
931         (const_pow2_1_to_32768_operand): Ditto.
932         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
933         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
934         in insn constraint to check integer value of operand 3.
935         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
936
937         (PINSR_MODE): New mode iterator.
938         (sse2p4_1): New mode attribute.
939         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
940         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
941         iterator.  Use const_int_operand instead of
942         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
943         exact_log2 in insn constraint to check integer value of operand 3.
944
945 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
946
947         * config/i386/sse.md (blendbits): Remove mode attribute.
948         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
949         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
950         Check integer value of operand 3 in insn constraint.
951
952 2011-05-09  Richard Guenther  <rguenther@suse.de>
953
954         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
955         for diagnostics.
956         (lto_symtab_merge): Likewise.  Do not register types here.
957         (lto_symtab_merge_decls_2): Likewise.
958         (lto_symtab_merge_decls_1): Likewise.
959         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
960         * gimple.c (enum gtc_mode): Declare.
961         (gimple_types_compatible_p): Make static.
962
963 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
964
965         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
966         temporary register to match Pmode.
967
968 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
969
970         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
971         and *vec_concatv4si_1_avx.
972
973 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
974
975         PR rtl-optimization/48927
976         * ira-conflicts.c (commutative_constraint_p): Use
977         recog_data.alternative_enabled_p to disable alternatives where
978         "enabled" attribute is false.
979         (get_dup_num): Ditto.
980         * ira-lives.c (single_reg_class): Ditto.
981         (ira_implicitly_set_insn_hard_regs): Ditto.
982
983 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
984
985         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
986         (dataflow_set_preserve_mem_locs): Likewise.
987
988 2011-05-09  Philipp Thomas  <pth@suse.de>
989
990         * config/mep/mep.c (mep_validate_vliw): Syntax description
991         should not be translated.
992
993 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
994
995         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
996         * config/mips/mips-tables.opt: New file (generated).
997         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
998         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
999         MIPS_ARCH_OPTION_NATIVE): Define.
1000         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1001         mips-cpus.def.
1002         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1003         mips_parse_cpu): Remove.
1004         (mips_cpu_info_from_opt, mips_default_arch): New.
1005         (mips_handle_option): Don't assert that global structures are in
1006         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1007         (mips_option_override): Use new variables and functions to set
1008         state of these options.  Use strcmp to check for individual CPU names.
1009         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1010         definition.
1011         * config/mips/mips.opt (march=): Use ToLower and Enum.
1012         (mips): Use ToLower, Enum and Var.
1013         (mtune=): Use ToLower and Enum.
1014         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1015
1016 2011-05-08  Jan Hubicka  <jh@suse.cz>
1017
1018         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1019         Arrange type pairs to be UID ordered.
1020         (gimple_lookup_type_leader): Make inline.
1021
1022 2011-05-09  Nick Clifton  <nickc@redhat.com>
1023
1024         PR target/48899
1025         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1026         PROCESSOR_DEFAULT.
1027
1028         PR target/48897
1029         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1030         variable 's'.
1031
1032 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1033
1034         * combine.c (simplify_comparison): Abstract out parts into...
1035         (simplify_compare_const): ... new function.
1036         (try_combine): Generalize parallel arithmetic/compare combining
1037         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1038
1039 2011-05-08  Jan Hubicka  <jh@suse.cz>
1040
1041         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1042         (cgraph_create_virtual_clone): Call hooks once virtual clone
1043         is finished.
1044         * cgraph.h (cgraph_clone_node): Update prototype.
1045         * ipa-cp.c (ipcp_estimate_growth): Use
1046         estimate_ipcp_clone_size_and_time.
1047         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1048         * lto-cgraph.c (input_node): Update.
1049         * ipa-inline.c (recursive_inlining): Update.
1050         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1051         (evaluate_conditions_for_known_args): Break out from ...
1052         (evaluate_conditions_for_edge): ... here.
1053         (evaluate_conditions_for_ipcp_clone): New function.
1054         (inline_node_duplication_hook): Update clone summary based
1055         on parameter map.
1056         (estimate_callee_size_and_time): Rename to ...
1057         (estimate_node_size_and_time): take NODE instead of EDGE;
1058         take POSSIBLE_TRUTHS as argument.
1059         (estimate_callee_size_and_time): Update.
1060         (estimate_ipcp_clone_size_and_time): New function.
1061         (do_estimate_edge_time): Update.
1062
1063 2011-05-08  Richard Guenther  <rguenther@suse.de>
1064
1065         PR middle-end/48908
1066         PR middle-end/48905
1067         * expmed.c (expand_shift_1): Compute adjusted constant shift
1068         amount manually.
1069
1070 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1071
1072         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1073
1074 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1075
1076         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1077
1078 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1079
1080         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1081
1082 2011-05-07  Jan Hubicka  <jh@suse.cz>
1083
1084         * ipa-inline-transform.c (inline_call): Account when program size
1085         decreases.
1086         * ipa-inline.c (relative_time_benefit): New function.
1087         (edge_badness): Reorganize to be power 2 based; fix thinko when
1088         computing badness for negative growth; update comments to match
1089         reality; better dumps.
1090
1091 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1092
1093         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1094         type to bool and adjust comment.
1095         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1096         (fold_mathfn_compare): Remove calls to global_bindings_p.
1097         (fold_inf_compare): Likewise.
1098         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1099         * c-tree.h (global_bindings_p): Adjust prototype.
1100         * c-decl.c (global_bindings_p): Return bool and simplify.
1101
1102 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1103
1104         PR tree-optimization/48837
1105         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1106         when accumulator transformation is performed.
1107
1108 2011-05-06  Jan Hubicka  <jh@suse.cz>
1109
1110         * i386.h (ix86_tune_indices): Add
1111         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1112         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1113         * i386.c (initial_ix86_tune_features): Add
1114         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1115         (software_prefetching_beneficial_p): Remove predicate.
1116         (ix86_option_override_internal): Use new macro.
1117
1118 2011-05-06  Jan Hubicka  <jh@suse.cz>
1119
1120         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1121
1122 2011-05-06  Jan Hubicka  <jh@suse.cz>
1123
1124         * cgraph.c (cgraph_add_thunk): Create real function node instead
1125         of alias node; finalize it and mark needed/reachale; arrange visibility
1126         to be right and add it into the corresponding same comdat group list.
1127         (dump_cgraph_node): Dump thunks.
1128         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1129         cgraph_function_with_gimple_body_p,
1130         cgraph_first_function_with_gimple_body,
1131         cgraph_next_function_with_gimple_body): New functions.
1132         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1133         New macros.
1134         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1135         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1136         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1137         devirtualization when optimizing.
1138         (verify_cgraph_node): Verify thunks.
1139         (cgraph_analyze_function): Analyze thunks.
1140         (cgraph_mark_functions_to_output): Output thunks only in combination
1141         with function they are assigned to.
1142         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1143         alias into normal node.
1144         (assemble_thunks): New functoin.
1145         (cgraph_expand_function): Use it.
1146         * lto-cgraph.c (lto_output_node): Stream thunks.
1147         (input_overwrite_node): Stream in thunks.
1148         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1149         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1150         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1151         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1152         (inline_analyze_function): Do not care about thunk jump functions.
1153         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1154         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1155         cgraph_function_with_gimple_body_p.
1156         * passes.c (do_per_function_toporder): Use
1157         cgraph_function_with_gimple_body_p.
1158         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1159         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1160         (function_called_by_processed_nodes_p): Likewise.
1161
1162 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1163
1164         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1165         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1166         entries.
1167         (mabi=): Replace with separate entries for mabi=altivec,
1168         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1169         mabi=ieeelongdouble and mabi=ibmlongdouble.
1170         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1171         check for -mabi=spe without SPE ABI support here.
1172         (rs6000_handle_option): Replace OPT_mabi_ handling with
1173         OPT_mabi_altivec and OPT_mabi_spe handling.
1174
1175 2011-05-06  Cary Coutant  <ccoutant@google.com>
1176
1177         * dwarf2out.c (contains_subprogram_definition): New function.
1178         (should_move_die_to_comdat): Call it.
1179
1180 2011-05-06  Jeff Law  <law@redhat.com>
1181
1182         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1183         remove_ctrl_stmt_and_useless_edges.
1184         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1185         (fixup_template_block, thread_single_edge): Likewise.
1186         (mark_threaded_blocks): Use THREAD_TARGET.
1187
1188 2011-05-06  Alan Modra  <amodra@gmail.com>
1189
1190         PR target/48900
1191         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1192         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1193
1194 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1195
1196         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1197         constraint modifier to "r".
1198
1199 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1200
1201         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1202         fall through for OPT_mcmodel_.
1203
1204 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1205
1206         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1207         instruction sizes.
1208         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1209
1210 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1211
1212         PR target/47930
1213         * config/arm/arm.opt (marm): Document it.
1214         (mthumb): Reject negative variant.
1215
1216 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1217
1218         PR target/48898
1219         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1220         Fix typo in "ccvt" variable name.
1221
1222 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1223
1224         PR target/48895
1225         * config/vms/vms-ar.c (main): Remove cwd variable.
1226
1227 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1228
1229         PR debug/48902
1230         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1231
1232 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1233
1234         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1235         * gimplify.c (gimplify_switch_expr): Likewise.
1236         * omp-low.c (expand_omp_sections): Likewise.
1237         * tree-eh.c (lower_try_finally_switch): Likewise.
1238         (lower_eh_dispatch): Likewise.
1239         * tree.h (build_case_label): Declare.
1240         * tree.c (build_case_label): Define.
1241
1242 2011-05-05  Jason Merrill  <jason@redhat.com>
1243
1244         PR c++/40975
1245         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1246         (copy_statement_list): Don't recurse.
1247         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1248         STATEMENT_LIST.
1249
1250 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1251
1252         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1253         through from -mfpu= handling.
1254         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1255
1256 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1257
1258         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1259         POST_MODIFY.
1260
1261 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1262
1263         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1264         for 11.31.
1265         (hppa[12]*-*-hpux11*): Ditto.
1266         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1267         * config/ia64/hpux-unix2003.h: New.
1268         * config/pa/pa-hpux1131.opt: New.
1269         * config/pa/pa-hpux1131.h: New.
1270         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1271         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1272         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1273
1274 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1275
1276         PR debug/48853
1277         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1278         instead of mode as 3rd argument to recursive call.
1279         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1280         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1281         VOIDmode.
1282         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1283         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1284         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1285         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1286
1287 2011-05-05  Julian Brown  <julian@codesourcery.com>
1288
1289         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1290         parenthesis in D-register case.
1291
1292 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1293
1294         * opt-functions.awk (var_type_struct): Handle Enum options.
1295         * optc-gen.awk: Don't check range of variables of character type.
1296         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1297         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1298         rs6000_sdata_name, rs6000_explicit_options): Remove.
1299         (rs6000_option_override_internal): Check for -malign-power here.
1300         Use global_options_set instead of rs6000_explicit_options.
1301         (rs6000_parse_fpu_option): Remove.
1302         (rs6000_handle_option): Access variables via opts and opts_set
1303         pointers.  Use error_at and warning_at.  Add fall-through
1304         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1305         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1306         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1307         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1308         here.  Don't use rs6000_parse_fpu_option.
1309         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1310         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1311         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1312         (mrecip=): Use Var.
1313         (mspe): Use Var and Save.
1314         (mtraceback=): Use Enum and Var.
1315         (rs6000_traceback_type): New Enum and EnumValue entries.
1316         (mfloat-gprs=): Use Enum, Var and Save.
1317         (rs6000_float_gprs): New Enum and EnumValue entries.
1318         (mlong-double-): use Var and Save.
1319         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1320         (malign-): Use Enum and Var.
1321         (rs6000_alignment_flags): New Enum and EnumValue entries.
1322         (mfpu=): Use Enum.
1323         (fpu_type_t): New Enum and EnumValue entries.
1324         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1325         global_options_set instead of rs6000_explicit_options.
1326         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1327         global_options_set instead of rs6000_explicit_options.
1328         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1329         global_options_set instead of rs6000_explicit_options.
1330         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1331         global_options_set instead of rs6000_explicit_options.
1332         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1333         global_options_set instead of rs6000_explicit_options.
1334         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1335         global_options_set instead of rs6000_explicit_options.
1336         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1337         definition.
1338         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1339         global_options_set instead of rs6000_explicit_options.
1340         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1341         (rs6000_cmodel): New Enum and EnumValue entries.
1342         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1343         global_options_set instead of rs6000_explicit_options.
1344         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1345         (mtls-size=): Use Enum and Var.
1346         (rs6000_tls_size): New Enum and EnumValue entries.
1347
1348 2011-05-05  Michael Matz  <matz@suse.de>
1349
1350         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1351         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1352         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1353         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1354         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1355         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1356         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1357         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1358         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1359         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1360         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1361         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1362         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1363         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1364         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1365         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1366
1367 2011-05-05  Richard Guenther  <rguenther@suse.de>
1368
1369         * expmed.c (expand_variable_shift): Rename to ...
1370         (expand_shift_1): ... this.  Take an expanded shift amount.
1371         For rotates recurse directly not building trees for the shift amount.
1372         (expand_variable_shift): Wrap around expand_shift_1.
1373         (expand_shift): Adjust.
1374
1375 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1376
1377         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1378
1379 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1380
1381         * tree.h (get_pending_sizes): Remove prototype.
1382         (put_pending_size): Likewise.
1383         (put_pending_sizes): Likewise.
1384         * stor-layout.c (pending_sizes): Delete.
1385         (get_pending_sizes): Likewise.
1386         (put_pending_size): Likewise.
1387         (put_pending_sizes): Likewise.
1388         (variable_size): Do not call put_pending_size and tidy up.
1389         * function.h (struct function): Remove dont_save_pending_sizes_p.
1390         * lto-streamer-in.c (input_function): Do not stream it.
1391         * lto-streamer-out.c (output_function): Likewise.
1392         * tree-inline.c (initialize_cfun): Do not copy it.
1393         * c-decl.c (store_parm_decls): Do not set it.
1394         * omp-low.c (create_task_copyfn): Likewise.
1395         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1396
1397 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1398
1399         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1400         conditions.
1401         (*movdf_internal): Ditto.
1402         (*movdf_internal_nointeger): Ditto.
1403         (*movsf_internal): Ditto.
1404
1405 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1406
1407         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1408         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1409         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1410         (c_variable_size): Remove.
1411         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1412         call put_pending_sizes.
1413         (get_parm_info): Add parameter expr.  Use it to set
1414         arg_info->pending_sizes.
1415         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1416         get_pending_sizes.
1417         * c-parser.c (c_parser_parms_declarator): Update call to
1418         c_parser_parms_list_declarator.
1419         (c_parser_parms_list_declarator): Take parameter expr.  Update
1420         call to push_parm_decl.  Update recursive call.  Don't call
1421         get_pending_sizes.  Update calls to get_parm_info.
1422         (c_parser_objc_method_definition): Update calls to
1423         c_parser_objc_method_decl and objc_start_method_definition.
1424         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1425         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1426         grokparm.
1427         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1428         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1429         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1430
1431 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1432
1433         PR pch/45979
1434         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1435         __ARM_EABI__ hosts.
1436
1437 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1438
1439         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1440         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1441         (spu_output_mi_thunk): New function.
1442
1443 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1444
1445         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1446         targetm.asm_out.print_operand.
1447         * config/sol2.c: Include target.h.
1448
1449 2011-05-04  Jan Hubicka  <jh@suse.cz>
1450
1451         * ipa-inline.c (reset_edge_caches): New function.
1452         (update_caller_keys): Add check_inlinablity_for; do not
1453         reset edge caches; remove now unnecesary loop.
1454         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1455         (update_all_callee_keys): Likewise.
1456         (inline_small_functions): Sanity check cache; update code
1457         recomputing it.
1458
1459 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1460
1461         PR rtl-optimization/47612
1462         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1463         as the last insn of the sequence to be moved.
1464
1465 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1466
1467         PR fortran/48864
1468         * doc/invoke.texi (Ofast): Document that it
1469         enables Fortran's -fno-protect-parens.
1470
1471 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1472
1473         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1474
1475 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1476
1477         * stor-layout.c (variable_size): Do not issue errors.
1478
1479 2011-05-04  Richard Guenther  <rguenther@suse.de>
1480
1481         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1482         for array-ref indices.
1483         (tree_coverage_counter_addr): Likewise.
1484         (build_fn_info_type): Use size_int for index types.
1485         (build_gcov_info): Likewise.
1486
1487 2011-05-04  Richard Guenther  <rguenther@suse.de>
1488
1489         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1490         to build_int_cst.
1491         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1492         for constructor indices.
1493         (push_init_level): Likewise.
1494
1495 2011-05-04  Richard Guenther  <rguenther@suse.de>
1496
1497         * explow.c (promote_mode): Move variable declarations before code.
1498
1499 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1500
1501         * tree.h (build_function_type_array): Declare.
1502         (build_varargs_function_type_array): Declare.
1503         (build_function_type_vec, build_varargs_function_type_vec): Define.
1504         * tree.c (build_function_type_array_1): New function.
1505         (build_function_type_array): New function.
1506         (build_varargs_function_type_array): New function.
1507
1508 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1509
1510         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1511         before setting STMT_VINFO_TYPE.
1512
1513 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1514
1515         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1516         instead of spu_pass_by_reference.
1517
1518 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1519
1520         * calls.c (emit_library_call_value_1): Invoke
1521         promote_function_mode hook on libcall arguments.
1522         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1523         argument being NULL.
1524         * targhooks.c (default_promote_function_mode): Lisewise.
1525         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1526         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1527
1528         * doc/tm.texi: Document that TYPE argument might be NULL.
1529
1530 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1531
1532         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1533
1534 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1535
1536         From Bernd Schmidt
1537         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1538
1539 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1540
1541         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1542         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1543         Move ...
1544         * mips-tfile.c: ... here.
1545         Don't include coretypes.h, tm.h, filenames.h.
1546         (saber_stop): Remove definition and all calls.
1547         [__SABER__]: Remove.
1548         (__LINE__): Remove default.
1549         (Size_t, Ptrdiff_t): Remove definitions.
1550         Replace by size_t, ptrdiff_t.
1551         [!MIPS_DEBUGGING_INFO]: Remove.
1552         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1553         (progname): Add const.
1554         (STATIC): Remove.
1555         Replace all uses by static.
1556         (ALIGN_SYMTABLE_OFFSET): Remove default.
1557         * mips-tdump.c: Don't include coretypes.h, tm.h.
1558         Remove !MIPS_IS_STAB guard.
1559         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1560         $(TM_H), filenames.h dependencies.
1561         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1562
1563 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1564
1565         From Jie Zhang
1566         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1567         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1568
1569 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1570
1571         From Bernd Schmidt
1572         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1573         account and save/restore RETS.
1574         (PROFILE_BEFORE_PROLOGUE): Define.
1575         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1576         the push insn to use predecrement.
1577
1578 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1579
1580         From Jie Zhang
1581         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1582
1583 2011-05-04  Nick Clifton  <nickc@redhat.com>
1584
1585         * config/mn10300/mn10300.c: Include cfgloop.h.
1586         (DUMP): New macro.
1587         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1588         Lcc or a FLcc insn into the instruction stream.
1589         (mn10300_block_contains_call): New function.  Returns true if the
1590         given basic block contains a CALL insn.
1591         (mn10300_loop_contains_call_insn): New function.  Returns true if
1592         the given loop contains a CALL insn.
1593         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1594         to use the SETLB and Lcc or FLcc insns.
1595         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1596         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1597         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1598         disable the SETLB optimization.
1599         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1600         __SETLB__ or __NO_SETLB__.
1601         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1602         (movsf_internal): Handle MDR register.
1603         (cmpsi): Make visible.
1604         (setlb): New pattern.
1605         (Lcc): New pattern.
1606         (FLcc): New pattern.
1607
1608 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1609
1610         PR target/48860
1611         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1612         for reg<->xmm moves.
1613         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1614         (vec_concatv2di_rex64_sse): Ditto.
1615         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1616         (*vec_extractv2di_1_rex64): Ditto.
1617
1618         Revert:
1619         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1620
1621         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1622         reg<->xmm moves.
1623         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1624
1625 2011-05-04  Richard Guenther  <rguenther@suse.de>
1626
1627         * tree.h (int_const_binop): Remove notrunc argument.
1628         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1629         create integer constants that are properly truncated.
1630         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1631         (const_binop): Remove zero notrunc argument to int_const_binop.
1632         (size_binop_loc): Likewise.
1633         (fold_div_compare): Likewise.
1634         (maybe_canonicalize_comparison_1): Likewise.
1635         (fold_comparison): Likewise.
1636         (fold_binary_loc): Likewise.
1637         (multiple_of_p): Likewise.
1638         * expr.c (store_constructor): Likewise.
1639         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1640         (maybe_fold_stmt_addition): Likewise.
1641         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1642         * stor-layout.c (layout_type): Likewise.
1643         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1644         * tree-sra.c (build_ref_for_offset): Likewise.
1645         (build_user_friendly_ref_for_offset): Likewise.
1646         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1647         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1648         * tree-ssa-loop-niter.c (inverse): Likewise.
1649         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1650         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1651         * tree-switch-conversion.c (check_range): Likewise.
1652         (build_constructors): Likewise.
1653         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1654         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1655         (extract_range_from_assert): Likewise.
1656         (vrp_int_const_binop): Likewise.
1657         (extract_range_from_binary_expr): Likewise.
1658         (extract_range_from_unary_expr): Likewise.
1659         (check_array_ref): Likewise.
1660         (find_case_label_range): Likewise.
1661         (simplify_div_or_mod_using_ranges): Likewise.
1662         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1663         comparing case labels for merging.
1664
1665 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1666
1667         * dwarf2out.c (debug_str_hash_forced): Removed.
1668         (gen_label_for_indirect_string): Removed.
1669         (get_debug_string_label): Removed.
1670         (AT_string_form): Generate label directly.
1671         (output_indirect_string): Test indirect_string_node for
1672         DW_FORM_strp instead of checking label and refcount.
1673         (prune_indirect_string): Removed.
1674         (prune_unused_types): Don't check debug_str_hash_forced or
1675         call prune_indirect_string.
1676
1677 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1678
1679         PR other/48093
1680         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1681
1682 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1683
1684         PR debug/47994
1685         PR debug/47919
1686         * combine.c (try_combine): Skip debug insns at m_split tests.
1687
1688 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1689
1690         PR42288
1691         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1692         when info_section_emitted.
1693
1694 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * config/mips/mips-opts.h: New.
1697         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1698         to mips-opts.h.
1699         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1700         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1701         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1702         via opts pointer.
1703         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1704         mips-opts.h.
1705         (mips_abi, mips_code_readable): Don't declare.
1706         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1707         (mabi=): Use Enum and Var.
1708         (mips_abi): New Enum and EnumValue entries.
1709         (mcode-readable=): Use Enum and Var.
1710         (mips_code_readable_setting): New Enum and EnumValue entries.
1711         (mr10k-cache-barrier=): Use Enum and Var.
1712         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1713
1714 2011-05-03  Jan Hubicka  <jh@suse.cz>
1715
1716         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1717         replace hash by pointer map.
1718         (cgraph_node_set_element_def, cgraph_node_set_element,
1719         const_cgraph_node_set_element, varpool_node_set_element_def,
1720         varpool_node_set_element, const_varpool_node_set_element): Remove.
1721         (free_cgraph_node_set, free_varpool_node_set): New function.
1722         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1723         * tree-emutls.c: Free varpool node set.
1724         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1725         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1726         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1727         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1728         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1729         Move here from ipa.c; implement using pointer_map
1730         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1731         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1732         debug_cgraph_node_set, varpool_node_set_new,
1733         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1734         dump_varpool_node_set, debug_varpool_node_set):
1735         Move to ipa-uitls.c.
1736         * passes.c (ipa_write_summaries): Update.
1737
1738 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1739
1740         From Mike Frysinger:
1741         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1742         bf542/bf544/bf547/bf548/bf549.
1743
1744 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1747
1748 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1749
1750         From Bernd Schmidt:
1751         * config/bfin/bfin.md (MOVCC): New mode_macro.
1752         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1753         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1754         comments from generated assembly.
1755
1756 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1757
1758         From Bernd Schmidt
1759         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1760         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1761         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1762         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1763         * config/bfin/lib1funcs.asm (___muldi3): New function.
1764
1765 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1766
1767         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1768         build_function_type_list instead of build_function_type.
1769         Rearrange initialization of `args' to do so.
1770
1771 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1772
1773         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1774         instead of build_function_type.
1775
1776 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1777
1778         * config/rs6000/rs6000.c (spe_init_builtins): Call
1779         build_function_type_list instead of build_function_type.
1780         (paired_init_builtins, altivec_init_builtins): Likewise.
1781         (builtin_function_type): Likewise.
1782
1783 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1784
1785         * config/sh/sh.c (sh_media_init_builtins): Call
1786         build_function_type_list instead of build_function_type.
1787
1788 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1789
1790         * config/sparc/sparc.c (sparc_file_end): Call
1791         build_function_type_list instead of build_function_type.
1792
1793 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1794
1795         * config/alpha/alpha.c (alpha_init_builtins): Call
1796         build_function_type_list instead of build_function_type.
1797
1798 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1799
1800         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1801         build_function_type_list instead of build_function_type.
1802
1803 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1804
1805         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1806         build_function_type_list instead of build_function_type.
1807         Delete `endlink' variable.
1808
1809 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1810
1811         * config/avr/avr.c (avr_init_builtins): Call
1812         build_function_type_list instead of build_function_type.
1813
1814 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1815
1816         * config/picochip/picochip.c (picochip_init_builtins): Call
1817         build_function_type_list instead of build_function_type.
1818         Delete `endlink' variable.
1819
1820 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1821
1822         * config/bfin/bfin.c (bfin_init_builtins): Call
1823         build_function_type_list instead of build_function_type.
1824
1825 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1826
1827         From Bernd Schmidt
1828         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1829         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1830
1831 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1832
1833         From Jie Zhang:
1834         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1835         libbffastfp overrides libgcc when -mfast-fp.
1836
1837 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1838
1839         Originally from Bernd Schmidt
1840         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1841         * config/bfin/bfin.c (override_options): Test it and error if
1842         TARGET_FDPIC.
1843
1844 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1845
1846         Originally From Bernd Schmidt
1847         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1848         FD-PIC.
1849
1850 2011-05-03  Jeff Law  <law@redhat.com>
1851
1852         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1853         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1854         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1855         than accessing AUX field directly.  Free the AUX field before
1856         clearing it.
1857         (thread_block, thread_through_loop_header): Likewise.
1858         (thread_single_edge, mark_threaded_blocks): Likewise.
1859         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1860         (register_jump_thread): Do not attempt to thread to a NULL edge.
1861
1862 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1863
1864         * function.c (init_function_start): Call decide_function_section.
1865         * varasm.c (decide_function_section): New function.
1866         (assemble_start_function): When not using
1867         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1868         or first_function_block_is_cold.
1869         * rtl.h (decide_function_section): Declare.
1870
1871 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1872             Jakub Jelinek  <jakub@redhat.com>
1873
1874         PR target/48774
1875         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1876         only succeed if req_mode is the same as set_mode.
1877
1878 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1879
1880         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1881         * genemit.c (gen_exp): Handle RETURN.
1882         * emit-rtl.c (verify_rtx_sharing): Likewise.
1883         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1884         * rtl.c (copy_rtx): RETURN is shared.
1885         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1886         (ret_rtx): New.
1887         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1888         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1889         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1890         * config/cris/cris.c (cris_expand_return): Likewise.
1891         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1892         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1893         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1894         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1895         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1896         Likewise.
1897         * config/v850/v850.c (expand_epilogue): Likewise.
1898         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1899         * config/arm/arm.md (epilogue): Likewise.
1900         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1901         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1902         variable to ret_reg.
1903
1904 2011-05-03  Richard Guenther  <rguenther@suse.de>
1905
1906         PR lto/48846
1907         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1908         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1909         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1910
1911 2011-05-03  Richard Guenther  <rguenther@suse.de>
1912
1913         * c-decl.c (grokdeclarator): Instead of looking at
1914         TREE_OVERFLOW check if the constant fits in the index type.
1915
1916 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1917
1918         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1919         (vec_store_lanes<mode><mode>): Likewise.
1920
1921 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1922
1923         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1924         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1925         convert_optab_index values.
1926         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1927         * genopinit.c (optabs): Initialize the new optabs.
1928         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1929         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1930         (expand_STORE_LANES): New functions.
1931         * tree.h (build_array_type_nelts): Declare.
1932         * tree.c (build_array_type_nelts): New function.
1933         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1934         (vect_model_load_cost): Likewise.
1935         (vect_store_lanes_supported, vect_load_lanes_supported)
1936         (vect_record_strided_load_vectors): Declare.
1937         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1938         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1939         (vect_transform_strided_load): Split out statement recording into...
1940         (vect_record_strided_load_vectors): ...this new function.
1941         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1942         (write_vector_array, create_array_ref): New functions.
1943         (vect_model_store_cost): Add store_lanes_p argument.
1944         (vect_model_load_cost): Add load_lanes_p argument.
1945         (vectorizable_store): Try to use store-lanes functions for
1946         interleaved stores.
1947         (vectorizable_load): Likewise load-lanes and loads.
1948         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1949         to vect_model_store_cost.
1950         (vect_build_slp_tree): Likewise vect_model_load_cost.
1951
1952 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1953
1954         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1955         * hooks.c (hook_bool_mode_uhwi_false): New function.
1956         * target.def (array_mode_supported_p): New hook.
1957         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1958         * doc/tm.texi: Regenerate.
1959         * stor-layout.c (mode_for_array): New function.
1960         (layout_type): Use it.
1961         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1962         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1963
1964 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1965
1966         PR target/48723
1967         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1968         for -fstack-check if the size to allocate is negative.
1969
1970 2011-05-02  Lawrence Crowl  <crowl@google.com>
1971
1972         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1973         (timevar_cond_start): New for starting a timer only when it is not
1974         already running.
1975         (timevar_cond_stop): New for stopping a timer when it was not already
1976         running.
1977
1978         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1979         (timevar_cond_start): New as above.
1980         (timevar_cond_stop): New as above.
1981
1982         * timevar.def: Add start/stop timers for compiler phases,
1983         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1984         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1985         and TV_PHASE_FINALIZE.
1986         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1987         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1988         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1989         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1990         Make unused TV_OVERLOAD into a start/stop timer.
1991
1992         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1993         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1994         to indicate that they are start/stop timers.
1995
1996         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1997         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1998         Move initialization to do_compile.
1999         (do_compile): Add initialization from above.
2000         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2001
2002         * c-decl.c (c_write_global_declarations): Add start/stop of
2003         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2004
2005         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2006         or TV_PARSE_INLINE, as appropriate.
2007         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2008         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2009
2010 2011-05-02  Jason Merrill  <jason@redhat.com>
2011
2012         PR c++/40975
2013         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2014
2015 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2016
2017         PR c/35445
2018         * c-decl.c (finish_decl): Only create a composite if the types are
2019         compatible.
2020
2021 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2022
2023         * config/fr30/fr30-protos.h (Mmode): Don't define.
2024         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2025         definition where used.
2026         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2027         define.  Expand definitions where used.
2028         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2029         Expand definitions where used.
2030         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2031         rx_function_arg, rx_function_arg_advance,
2032         rx_function_arg_boundary): Expand definitions of those macros.
2033         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2034         definition where used.
2035
2036 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2037
2038         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2039         reg<->xmm moves.
2040         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2041         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2042         with *movv2sf_internal_rex64_avx.
2043         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2044         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2045         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2046         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2047         "vex" in "prefix" attribute calculation.
2048         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2049
2050 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2051
2052         PR target/47951
2053         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2054         inputs match the output.
2055
2056 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2057
2058         PR target/47955
2059         * config/m68k/m68k.c (m68k_expand_prologue): Set
2060         current_function_static_stack_size.
2061
2062 2011-05-02   Jan Hubicka  <jh@suse.cz>
2063
2064         * lto-streamer.c (lto_streamer_cache_insert_1,
2065         lto_streamer_cache_lookup, lto_streamer_cache_create,
2066         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2067         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2068
2069 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2070
2071         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2072         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2073         config/m68k/t-opts: New files.
2074         * config/m68k/m68k-tables.opt: New file (generated).
2075         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2076         extra_options and m68k/t-opts to tmake_file.
2077         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2078         (all_isas): Initialize using m68k-isas.def.
2079         (all_microarchs): Initialize using m68k-microarchs.def.
2080         (m68k_find_selection): Remove.
2081         (m68k_handle_option): Don't assert that global structures are in
2082         use.  Use error_at.  Access variables via opts pointer.  Don't
2083         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2084         directly for -m68020-40 and -m68020-60.
2085         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2086         m68k_tune_entry here.
2087         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2088         to m68k-opts.h.
2089         (m68k_library_id_string): Remove declaration.
2090         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2091         (m68k_library_id_string): New Variable.
2092         (march=, mcpu=, mtune=): Use Enum and Var.
2093
2094 2011-05-02  Richard Guenther  <rguenther@suse.de>
2095
2096         * varasm.c (output_constructor_regular_field): Compute zero-based
2097         index with double-ints.  Make sure to ICE instead of producing
2098         wrong code.
2099         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2100         in asserts.  Properly use a signed type.
2101
2102 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2103
2104         * config/i386/sse.md (V): New mode iterator.
2105         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2106         TARGET_SSE2.
2107         (V_256): Rename from AVX256MODE.
2108         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2109         condition to all users.
2110         (VF1): Ditto.
2111         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2112         condition to all users.
2113         (VF_128): Make V4SF mode unconditional.
2114         (VF_256): Rename from AVX256MODEF2P.
2115         (VI4F_128): Rename from SSEMODE4S.
2116         (VI8F_128): Rename from SSEMODE2D.
2117         (VI4F_256): Rename from AVX256MODE8P.
2118         (VI8F_256): Rename from AVX256MODE4P.
2119         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2120         (ssescalarmodesuffix): Remove SF and DF modes.
2121         (SSEMODE124): Remove.
2122         (SSEMODE1248): Ditto.
2123         (SSEMODEF2P): Ditto.
2124         (AVXMODEF2P): Ditto.
2125         (AVXMODEFDP): Ditto.
2126         (AVXMODEFSP): Ditto.
2127         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2128         unconditional.
2129         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2130         unconditional.
2131         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2132         xop_pcmov_<mode>256.  Use V mode iterator.
2133
2134         Adjust RTX patterns globally for renamed mode attributes.
2135
2136 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2137
2138         * haifa-sched.c (sched_emit_insn): Emit insn before first
2139         non-scheduled insn.  Inform back-end about new insn.  Add
2140         new insn to scheduled_insns list.
2141
2142 2011-05-02  Richard Guenther  <rguenther@suse.de>
2143
2144         PR tree-optimization/48822
2145         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2146         (process_scc): Indicate which iteration we start.
2147
2148 2011-05-02  Jan Hubicka  <jh@suse.cz>
2149
2150         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2151         (lto_section_overrun): New.
2152         * lto-section-out.c (append_block): Rename to ...
2153         (lto_append_block): ... this one; export.
2154         (lto_output_1_stream): Move lto lto-streamer.h
2155         (lto_output_data_stream): Update.
2156         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2157         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2158         functions.
2159
2160 2011-05-02  Richard Guenther  <rguenther@suse.de>
2161
2162         * tree.c (tree_code_counts): New global array.
2163         (record_node_allocation_statistics): Count individual tree codes.
2164         (dump_tree_statistics): Dump individual code stats.
2165
2166 2011-05-01  Jan Hubicka  <jh@suse.cz>
2167
2168         * ipa-inline.c (caller_growth_limits): Fix thinko when
2169         looking for largest stack frame.
2170         * ipa-inline.h (dump_inline_summary): Declare.
2171         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2172         on stack usage.
2173         (dump_inline_summary): Export.
2174         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2175
2176 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2177
2178         * reginfo.c (memory_move_cost): Change rclass argument type form
2179         'enum reg_class' to reg_class_t.
2180         * reload.h (memory_move_cost): Update prototype.
2181         * postreload.c reload_cse_simplify_set): Change type dclass var to
2182         reg_class_t.
2183         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2184         Update prototype.
2185         (ira_allocate_and_set_costs): Change aclass argument type form
2186         'enum reg_class' to reg_class_t.
2187         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2188         Change aclass argument type to reg_class_t.
2189         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2190         to reg_class_t.
2191         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2192         memory_move_cost call.
2193
2194         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2195         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2196         Change type tmp var to reg_class_t.
2197
2198 2011-04-30  Jan Hubicka  <jh@suse.cz>
2199
2200         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2201         inlining into function with flatten attribute.
2202         (want_inline_small_function_p): Be more realistic about inlining
2203         cold calls where callee size grows.
2204
2205 2011-04-30  Jan Hubicka  <jh@suse.cz>
2206
2207         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2208         flags.
2209
2210 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2211
2212         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2213         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2214         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2215         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2216         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2217         (print_operand): Rename to...
2218         (sparc_print_operand): ...this. Make static. Adjust
2219         sparc_print_operand function call.
2220         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2221         functions.
2222
2223 2011-04-30  Jan Hubicka  <jh@suse.cz>
2224
2225         PR middle-end/48752
2226         * ipa-inline.c (early_inliner): Disable when doing late
2227         addition of function.
2228
2229 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2230
2231         * dwarf2out.c (get_address_mode): New inline.
2232         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2233         if not dwarf_strict emit
2234         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2235         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2236         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2237         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2238         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2239         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2240         mem_loc_descriptor callers.
2241         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2242         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2243         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2244         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2245         (base_types): New variable.
2246         (get_base_type_offset, calc_base_type_die_sizes,
2247         base_type_for_mode, mark_base_types, base_type_cmp,
2248         move_marked_base_types): New functions.
2249         (calc_die_sizes): Assert that die_offset is 0 or equal to
2250         next_die_offset.
2251         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2252         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2253         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2254         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2255         (gen_subprogram_die): Don't give up on call site parameters
2256         with non-integral or large integral modes.  Adjust
2257         mem_loc_descriptor callers.
2258         (prune_unused_types): Call prune_unused_types_mark on base_types
2259         vector entries.
2260         (resolve_addr): Call mark_base_types.
2261         (dwarf2out_finish): Call move_marked_base_types.
2262
2263         PR tree-optimization/48809
2264         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2265         type.
2266         (gen_inbound_check): Don't compute index_expr - range_min in utype
2267         again, instead reuse SSA_NAME initialized in build_arrays.
2268         Remove two useless gsi_for_stmt calls.
2269
2270 2011-04-29  Jeff Law  <law@redhat.com>
2271
2272         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2273
2274 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2275
2276         * cgraph.h (cgraph_postorder): Remove declaration.
2277         * ipa-utils.h (ipa_free_postorder_info): Declare.
2278         (ipa_reverse_postorder): Likewise.
2279         * cgraphunit.c: Include ipa-utils.h.
2280         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2281         * ipa-inline.c: Include ipa-utils.h.
2282         (ipa_inline): Update call to ipa_reverse_postorder.
2283         * ipa-pure-const.c (propagate_pure_const): Update call to
2284         ipa_reduced_postorder and ipa_print_order.  Call
2285         ipa_free_postorder_info to clean up.
2286         (propagate_nothrow): Likewise.
2287         * ipa-reference.c (propagate): Removed a useless call to
2288         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2289         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2290         * ipa.c: Include ipa-utils.h.
2291         (ipa_profile): Update call to ipa_reverse_postorder.
2292         (cgraph_postorder): Moved to...
2293         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2294         (ipa_utils_print_order): Renamed to ipa_print_order.
2295         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2296         comments.
2297         (ipa_free_postorder_info): New function.
2298         * passes.c: Include ipa-utils.h.
2299         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2300         (ipa_write_summaries): Likewise.
2301         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2302         (cgraphunit.o): Likewise.
2303         (ipa.o): Likewise.
2304         (ipa-inline.o): Likewise.
2305
2306 2011-04-29  Jan Hubicka  <jh@suse.cz>
2307
2308         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2309         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2310         * ipa-inline.h (clause_t): Turn into unsigned int.
2311         * ipa-inline-analysis.c (add_clause): Do more simplification.
2312         (and_predicates): Shortcut more cases.
2313         (predicates_equal_p): Move forward; check that clauses are properly
2314         ordered.
2315         (or_predicates): Shortcut more cases.
2316         (edge_execution_predicate): Rewrite as...
2317         (set_cond_stmt_execution_predicate): ... this function; handle
2318         __builtin_constant_p.
2319         (set_switch_stmt_execution_predicate): New .
2320         (compute_bb_predicates): New.
2321         (will_be_nonconstant_predicate): Update TODO.
2322         (estimate_function_body_sizes): Use compute_bb_predicates
2323         and free them later, always try to estimate if stmt is constant.
2324         (estimate_time_after_inlining, estimate_size_after_inlining):
2325         Gracefully handle optimized out edges.
2326         (read_predicate): Fix off by one error.
2327
2328 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2329
2330         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2331
2332 2011-04-27  Xinliang David Li  <davidxl@google.com>
2333
2334         * tree-profile.c (init_ic_make_global_vars): Set
2335         tls attribute on ic vars.
2336         * coverage.c (coverage_end_function): Initialize
2337         function_list with zero.
2338
2339 2011-04-29  Richard Guenther  <rguenther@suse.de>
2340
2341         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2342         for the type of the result.
2343         (fold_builtin_isascii): Likewise.
2344         (fold_builtin_toascii): Use integer_type_node where appropriate.
2345         (fold_builtin_logb): Likewise.
2346         (fold_builtin_frexp): Likewise.
2347         (fold_builtin_strstr): Likewise.
2348         (fold_builtin_strpbrk): Likewise.
2349         (fold_builtin_fputs): Likewise.
2350         (fold_builtin_sprintf): Likewise.
2351         (fold_builtin_snprintf): Likewise.
2352         (fold_builtin_printf): Likewise.
2353         (do_mpfr_remquo): Use a proper type for the assigned constant.
2354         (do_mpfr_lgamma_r): Likewise.
2355         * dwarf2out.c (resolve_one_addr): Use size_int.
2356         * except.c (init_eh): Likewise.
2357         (assign_filter_values): Use integer_type_node for filter values.
2358         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2359         indices.
2360         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2361         for EH region numbers.
2362         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2363         for the shift amount.
2364
2365 2011-04-29  Richard Guenther  <rguenther@suse.de>
2366
2367         * expr.h (expand_shift): Rename to ...
2368         (expand_variable_shift): ... this.
2369         (expand_shift): Take a constant shift amount.
2370         * expmed.c (expand_shift): Rename to ...
2371         (expand_variable_shift): ... this.
2372         (expand_shift): New wrapper around expand_variable_shift.
2373         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2374         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2375         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2376         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2377         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2378         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2379         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2380         emit_store_flag_1, emit_store_flag): Likewise.
2381         * builtins.c (expand_builtin_signbit): Likewise.
2382         * calls.c (load_register_parameters): Likewise.
2383         * function.c (assign_parm_setup_block): Likewise.
2384         * lower-subreg.c (resolve_shift_zext): Likewise.
2385         * optabs.c (widen_bswap, expand_abs_nojump,
2386         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2387         * spu/spu.c (spu_expand_extv): Likewise.
2388         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2389
2390 2011-04-29  Richard Guenther  <rguenther@suse.de>
2391
2392         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2393         for the remapped region number.
2394         * predict.c (build_predict_expr): Use integer_type_node for the
2395         predict kind.
2396         * fold-const.c (fold_binary_loc): Use integer_type_node for
2397         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2398
2399 2011-04-29  Michael Matz  <matz@suse.de>
2400
2401         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2402         other trees that just builtins.
2403         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2404
2405 2011-04-29  Richard Guenther  <rguenther@suse.de>
2406
2407         * tree-nested.c (get_trampoline_type): Use size_int.
2408         (get_nl_goto_field): Likewise.
2409         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2410         for all indexes.
2411         (lower_eh_constructs_2): Likewise.
2412         (lower_resx): Likewise.
2413         (lower_eh_dispatch): Likewise.
2414         * tree-mudflap.c (mf_build_string): Use size_int.
2415         (mudflap_register_call): Use integer_type_node for the flag.
2416         (mudflap_enqueue_constant): Use size_int.
2417         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2418         instead of rebuilding it.
2419
2420 2011-04-29  Richard Guenther  <rguenther@suse.de>
2421
2422         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2423         Handle OBJ_TYPE_REF.
2424         (find_func_aliases_for_call): Use it more consistently.
2425
2426 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2427
2428         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2429         (rank_for_schedule): Use it.
2430         (schedule_block): Set it.
2431
2432 2011-04-28  David Li  <davidxl@google.com>
2433
2434         * tree.c (crc32_string): Use crc32_byte.
2435         (crc32_byte): New function.
2436         * tree.h (crc32_byte): New function.
2437         * gcov.c (read_graph_file): Handle new cfg_cksum.
2438         (read_count_file): Ditto.
2439         * profile.c (instrument_values): Ditto.
2440         (get_exec_counts): Ditto.
2441         (read_profile_edge_counts): Ditto.
2442         (compute_branch_probabilities): Ditto.
2443         (compute_value_histograms): Ditto.
2444         (branch_prob): Ditto.
2445         (end_branch_prob): Ditto.
2446         * coverage.c (read_counts_file): Ditto.
2447         (get_coverage_counts): Ditto.
2448         (tree_coverage_counter_addr): Ditto.
2449         (coverage_checksum_string): Ditto.
2450         (coverage_begin_output): Ditto.
2451         (coverage_end_function): Ditto.
2452         (build_fn_info_type): Ditto.
2453         (build_fn_info_value): Ditto.
2454         * libgcov.c (gcov_exit): Ditto.
2455         * gcov-dump.c (tag_function): Ditto.
2456         (compute_checksum): Remove.
2457
2458 2011-04-29  Alan Modra  <amodra@gmail.com>
2459
2460         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2461         unspec plus offset.  Tidy macho code.
2462
2463 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2464
2465         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2466         node instead of a decl.  Update all callers.
2467         * cgraph.h: Update declaration.
2468
2469 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2470
2471         PR tree-optimization/48765
2472         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2473         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2474         to indicate if loop aware SLP is being used.  Scan the statements
2475         and update the vectorization factor according to the type of
2476         vectorization before statement analysis.
2477         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2478         pass it to vect_analyze_loop_operations.
2479         (vectorizable_reduction): Set number of copies to 1 in case of pure
2480         SLP statement.
2481         * tree-vect-stmts.c (vectorizable_conversion,
2482         vectorizable_assignment, vectorizable_shift,
2483         vectorizable_operation, vectorizable_type_demotion,
2484         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2485         Likewise.
2486         (vectorizable_condition): Move the check that it is not SLP
2487         vectorization before the number of copies check.
2488         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2489         to vectorize the loop using SLP.
2490
2491 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2492
2493         PR middle-end/48597
2494         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2495         inline asm.
2496
2497 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2498
2499         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2500         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2501         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2502         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2503         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2504         linux*.h headers.
2505         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2506         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2507         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2508         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2509         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2510         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2511         REG_NAME.
2512         * config/i386/linux.h (REG_NAME): Don't define.
2513         * config/i386/linux64.h (REG_NAME): Don't define.
2514         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2515         Undefine before defining.
2516
2517 2011-04-28  Jan Hubicka  <jh@suse.cz>
2518
2519         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2520         nonconstant_names array.
2521         (estimate_function_body_sizes): Build nonconstant_names array; handle
2522         BUILT_IN_CONSTANT_P.
2523
2524 2011-04-28  Richard Guenther  <rguenther@suse.de>
2525
2526         PR bootstrap/48804
2527         Revert
2528         2011-04-28  Richard Guenther  <rguenther@suse.de>
2529
2530         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2531         as late as possible.
2532
2533 2011-04-28  Richard Guenther  <rguenther@suse.de>
2534
2535         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2536         (debug_constraint): Do it here.
2537         (dump_constraints): And here.
2538         (rewrite_constraints): And here.
2539         (dump_constraint_edge): Remove.
2540         (dump_constraint_graph): Rewrite to produce DOT output.
2541         (solve_constraints): Build succ graph as late as possible.
2542         Dump constraint graphs before and after solving.
2543
2544 2011-04-28  Richard Guenther  <rguenther@suse.de>
2545
2546         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2547         New function split out from ...
2548         (find_func_aliases): ... here.  Call it.
2549         (find_func_aliases_for_call): Likewise.
2550
2551 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2552
2553         * internal-fn.h (internal_fn_name_array): Declare.
2554         (internal_fn_flags_array): Likewise.
2555
2556 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2557
2558         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2559         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2560         Move from sse.md.
2561         (ssemodefsuffix): Remove.
2562         (ssevecmodesuffix): New mode attribute.
2563         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2564         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2565         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2566         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2567         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2568         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2569         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2570         ssemodesuffix mode attribute.
2571         (float splitters): Use ssevecmodesuffix mode attribute.
2572         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2573         (sseinsmode): Rename from avxvecmode.
2574         (avxsizesuffix): Rename from avxmodesuffix.
2575         (sseintvecmode): Rename from avxpermvecmode.
2576         (ssedoublevecmode): Rename from ssedoublesizemode.
2577         (ssehalfvecmode): Rename from avxhalfvecmode.
2578         (ssescalarmode): Rename from avxscalarmode.
2579         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2580         templates for ssemodesuffix mode attribute.
2581         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2582         mode attribute.
2583
2584         Adjust RTX patterns globally for renamed mode attributes.
2585
2586 2011-04-27  Jan Hubcika  <jh@suse.cz>
2587
2588         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2589         * ipa-inline-analysis.c: Include alloc-pool.h.
2590         (edge_predicate_pool): New.
2591         (trye_predicate_p): New function
2592         (false_predicate_p): New function.
2593         (add_clause): Sanity check that false clauses are "optimized";
2594         never add clauses to predicate that is already known to be false.
2595         (and_predicate): Use flase_predicate_p.
2596         (evaulate_predicate): Rename to ...
2597         (evaluate_predicate): ... this one; update all callers; assert
2598         that false is not listed among possible truths.
2599         (dump_predicate): Use true_predicate_p.
2600         (account_size_time): Use false_predicate_p.
2601         (evaulate_conditions_for_edge): Rename to ...
2602         (evaluate_conditions_for_edge) ... this one.
2603         (edge_set_predicate): New function.
2604         (inline_edge_duplication_hook): Duplicate edge predicates.
2605         (inline_edge_removal_hook): Free edge predicates.
2606         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2607         (dump_inline_summary): Update.
2608         (estimate_function_body_sizes): Set edge predicates.
2609         (estimate_calls_size_and_time): Handle predicates.
2610         (estimate_callee_size_and_time): Update.
2611         (remap_predicate): Add toplev_predicate; update comment.
2612         (remap_edge_predicates): New function.
2613         (inline_merge_summary): Compute toplev predicate; update.
2614         (read_predicate): New function.
2615         (read_inline_edge_summary): Use it.
2616         (inline_read_section): Likewise.
2617         (write_predicate): New function.
2618         (write_inline_edge_summary): Use it.
2619         (inline_write_summary): Likewise.
2620         (inline_free_summary): Free alloc pool and edge summary vec.
2621
2622 2011-04-27  Richard Guenther  <rguenther@suse.de>
2623
2624         * tree-ssa-structalias.c (changed_count): Remove.
2625         (changed): Use a bitmap.
2626         (unify_nodes): Adjust.
2627         (do_sd_constraint): Likewise.
2628         (do_ds_constraint): Likewise.
2629         (do_complex_constraint): Likewise.
2630         (solve_graph): Likewise.
2631
2632 2011-04-27  Jan Hubicka  <jh@suse.cz>
2633
2634         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2635
2636 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2637
2638         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2639         (avx_vperm2f128_*_operand): Ditto.
2640         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2641         Use avx_vpermilp_parallel in insn condition.
2642         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2643         Use avx_vperm2f128_parallel in insn condition.
2644
2645 2011-04-27  Richard Guenther  <rguenther@suse.de>
2646
2647         * Makefile.in (tree-ssa-structalias.o): Remove
2648         gt-tree-ssa-structalias.h dependency.
2649         (GTFILES): Remove tree-ssa-structalias.c.
2650         * tree.c (allocate_decl_uid): New function.
2651         (make_node_stat): Use it.
2652         (copy_node_stat): Likewise.
2653         * tree.h (allocate_decl_uid): Declare.
2654         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2655         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2656         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2657         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2658         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2659         (struct heapvar_map): Likewise.
2660         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2661         heapvar_insert): Likewise.
2662         (make_heapvar_for): Rename to ...
2663         (make_heapvar): ... this.  Simplify.
2664         (fake_var_decl_obstack): New global var.
2665         (build_fake_var_decl): New function.
2666         (make_constraint_from_heapvar): Adjust.
2667         (handle_lhs_call): Likewise.
2668         (create_function_info_for): Likewise.
2669         (intra_create_variable_infos): Likewise.
2670         (init_alias_vars): Allocate fake_var_decl_obstack.
2671         (init_alias_heapvars, delete_alias_heapvars): Remove.
2672         (compute_points_to_sets): Do not call init_alias_heapvars.
2673         (ipa_pta_execute): Likewise.
2674         (delete_points_to_sets): Free fake_var_decl_obstack.
2675
2676 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2677
2678         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2679         (si_from_UTItype, si_to_UTItype): New functions.
2680         (__udivmodti4): Use them to implement type-punning.
2681         * config/spu/multi3.c (union qword_TItype): New data type.
2682         (si_from_TItype, si_to_TItype): New functions.
2683         (__multi3): Use them to implement type-punning.
2684
2685 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2686
2687         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2688
2689 2011-04-27  Jan Hubicka  <jh@suse.cz>
2690
2691         * ipa-prop.c (function_insertion_hook_holder): New holder.
2692         (ipa_add_new_function): New function.
2693         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2694         Register/deregister holder.
2695
2696 2011-04-27  Richard Guenther  <rguenther@suse.de>
2697
2698         PR tree-optimization/48772
2699         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2700
2701 2011-04-27  Richard Guenther  <rguenther@suse.de>
2702
2703         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2704         TARGET_MEM_REF handling.
2705
2706 2011-04-27  Nick Clifton  <nickc@redhat.com>
2707
2708         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2709         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2710         (REG_CLASS_NAMES): Likewise.
2711         (REG_CLASS_CONTENTS): Likewise.
2712         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2713         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2714         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2715         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2716         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2717         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2718         duplicate register classes.
2719         (frv_class_likely_spilled_p): Likewise.
2720         (frv_register_move_cost): Likewise.
2721
2722         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2723         end of the regno_reg_class array.
2724
2725 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR c/48742
2728         * c-typeck.c (build_binary_op): Don't wrap arguments if
2729         int_operands is true.
2730
2731 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2732
2733         PR target/48767
2734         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2735         targetm.calls.must_pass_in_stack for void type.
2736
2737 2011-04-26  Jan Hubicka  <jh@suse.cz>
2738
2739         * cgraphbuild.c (build_cgraph_edges): Update call
2740         of cgraph_create_edge and cgraph_create_indirect_edge.
2741         * cgraph.c (cgraph_create_edge_including_clones,
2742         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2743         cgraph_update_edges_for_call_stmt_node): Do not take nest
2744         argument; do not initialize call_stmt_size/time.
2745         (dump_cgraph_node): Do not dump nest.
2746         (cgraph_clone_edge): Do not take loop_nest argument;
2747         do not propagate it; do not clone call_stmt_size/time.
2748         (cgraph_clone_node): Likewise.
2749         (cgraph_create_virtual_clone): Update.
2750         * cgraph.h (struct cgraph_edge): Remove
2751         call_stmt_size/call_stmt_time/loop_nest.
2752         (cgraph_create_edge, cgraph_create_indirect_edge,
2753         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2754         prototype.
2755         * tree-emutls.c (gen_emutls_addr): Update.
2756         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2757         loop_nest; handle indirect calls, too.
2758         (clone_inlined_nodes): Do not care about updating inline summaries.
2759         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2760         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2761         stream call_stmt_size/call_stmt_time/loop_nest.
2762         * ipa-inline.c (edge_badness): Update.
2763         (ipa_inline): dump summaries after inlining.
2764         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2765         New.
2766         (inline_edge_summary): New function.
2767         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2768         (inline_edge_removal_hook): Handle edge summaries.
2769         (inline_edge_duplication_hook): New hook.
2770         (inline_summary_alloc): Alloc hooks.
2771         (initialize_growth_caches): Do not register removal hooks.
2772         (free_growth_caches); Do not free removal hook.
2773         (dump_inline_edge_summary): New function.
2774         (dump_inline_summary): Use it.
2775         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2776         (inline_update_callee_summaries): New function.
2777         (inline_merge_summary): Use it.
2778         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2779         (read_inline_edge_summary): New function.
2780         (inline_read_section): Use it.
2781         (write_inline_edge_summary): New function.
2782         (inline_write_summary): Use it.
2783         (inline_free_summary): Free edge new holders.
2784         * tree-inline.c (copy_bb): Update.
2785
2786 2011-04-26  Jason Merrill  <jason@redhat.com>
2787
2788         * tree-eh.c (lower_try_finally_switch): Create the label along with
2789         the CASE_LABEL_EXPR.
2790
2791 2011-04-26  David S. Miller  <davem@davemloft.net>
2792             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2793
2794         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2795         * configure: Regenerate.
2796
2797 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2798
2799         PR target/48258
2800         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2801         reduction.
2802         (VEC_reduc): New code iterator and splitters for vector reduction.
2803         (VEC_reduc_name): Ditto.
2804         (VEC_reduc_rtx): Ditto.
2805         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2806         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2807
2808         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2809         support for extracting SF on VSX.
2810
2811         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2812         generating xscvspdp.
2813         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2814         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2815         double add, minimum, maximum vector reduction.
2816         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2817         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2818         optimize double vector reduction.
2819         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2820
2821 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * config/fr30/fr30.h (inhibit_libc): Don't define.
2824         * config/m32r/m32r-protos.h: Correct comment.
2825         * config/v850/v850.h (GHS_default_section_names,
2826         GHS_current_section_names): Use tree, not union tree_node *.
2827
2828 2011-04-26  Xinliang David Li  <davidxl@google.com>
2829
2830         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2831         * c-family/c-opts.c (c_common_handle_option): Set
2832         warn_maybe_uninitialized.
2833         * opts.c (common_handle_option): Ditto.
2834         * common.opt:  New option.
2835         * tree-ssa.c (warn_uninit): Add one more parameter.
2836         (warn_uninitialized_var): Pass warning code.
2837         * tree-flow.h: Interface change.
2838
2839
2840 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2841
2842         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2843         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2844         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2845
2846 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2847
2848         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2849         * config/mips/mips.opt (mmips-tfile): Remove.
2850
2851         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2852         mips-tdump reference to ...
2853         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2854         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2855         reference by Tru64 UNIX.
2856
2857 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2858
2859         PR debug/48768
2860         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2861         is error_mark_node, set value to NULL.
2862
2863         PR tree-optimization/48734
2864         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2865         if return value from maybe_fold_*_comparsions isn't something
2866         the code is prepared to handle.
2867
2868 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2869
2870         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2871         mode check.
2872         (ext_QIreg_nomode_operands): Remove.
2873         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2874         (*andsi_1): Ditto.
2875         (*andhi_1): Ditto.
2876
2877 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2878
2879         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2880
2881 2011-04-26  Richard Guenther  <rguenther@suse.de>
2882
2883         * c-typeck.c (build_unary_op): Do not expand array-refs via
2884         pointer arithmetic.  Only adjust qualifiers for function types.
2885
2886 2011-04-26  Richard Guenther  <rguenther@suse.de>
2887
2888         PR middle-end/48694
2889         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2890         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2891         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2892         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2893
2894 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2895
2896         * doc/extend.texi: Document __underlying_type.
2897
2898 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2899
2900         * config/rs6000/titan.md (automata_option "progress"): Remove.
2901
2902 2011-04-25  Jeff Law  <law@redhat.com>
2903
2904         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2905
2906 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2907
2908         * system.h (ENUM_BITFIELD): Remove.
2909
2910 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2911             Eric Botcazou  <ebotcazou@adacore.com>
2912
2913         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2914         for STORE_FLAG_VALUE==-1 case.
2915
2916 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2917
2918         PR target/43804
2919         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2920         LEGITIMATE_PIC_OPERAND_P.
2921
2922 2011-04-24  Jan Hubicka  <jh@suse.cz>
2923
2924         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2925         WPA hack.
2926         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2927         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2928         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2929         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2930         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2931         Sanity check predicate length.
2932         (remap_predicate): Likewise; sanity check jump functions.
2933         (inline_read_section, inline_write_summary): Sanity check
2934         predicate length.
2935
2936 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2937
2938         PR other/48748
2939         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2940         __is_literal_type, and __is_trivial; update throughout about
2941         possibly cv-qualified void types.
2942
2943 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2944
2945         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2946         testsuite and make it version agnostic.
2947
2948 2011-04-22  Jan Hubicka  <jh@suse.cz>
2949
2950         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2951
2952 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2953
2954         PR c/48685
2955         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2956         to VOID_TYPE even around MODIFY_EXPR.
2957
2958 2011-04-22  Mike Stump  <mikestump@comcast.net>
2959
2960         * gensupport.c (read_md_rtx): Fix typo in comment.
2961         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2962         comment.
2963
2964 2011-04-22  Jan Hubicka  <jh@suse.cz>
2965
2966         * gengtype.c (open_base_files): Add ipa-inline.h include.
2967         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2968         ipa-prop.c; update all uses.
2969         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2970         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2971         merge summary of inlined function into former caller.
2972         * ipa-inline.c (max_benefit): Remove.
2973         (edge_badness): Compensate for removal of benefits.
2974         (update_caller_keys): Use
2975         reset_node_growth_cache/reset_edge_growth_cache.
2976         (update_callee_keys): Likewise.
2977         (update_all_callee_keys): Likewise.
2978         (inline_small_functions): Do not collect max_benefit; do not reset
2979         estimated_growth; call free_growth_caches and initialize_growth_caches.
2980         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2981         struct size_time_entry): New structures.
2982         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2983         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2984         and estimated_growth.
2985         (edge_growth_cache_entry): New structure.
2986         (node_growth_cache, edge_growth_cache): New global vars.
2987         (estimate_growth): Turn into inline.
2988         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2989         initialize_growth_caches, free_growth_caches): Declare.
2990         (estimate_edge_growth): Rewrite.
2991         (estimate_edge_time): Implement as inline cache lookup.
2992         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2993         functions.
2994         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2995         (NUM_CONDITIONS): New constant.
2996         (predicate_conditions): New enum.
2997         (IS_NOT_CONSTANT): New constant.
2998         (edge_removal_hook_holder): New var.
2999         (node_growth_cache, edge_growth_cache): New global vars.
3000         (true_predicate, single_cond_predicate, false_predicate,
3001         not_inlined_predicate, add_condition, add_clause, and_predicates,
3002         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3003         dump_clause, dump_predicate, account_size_time,
3004         evaulate_conditions_for_edge): New functions.
3005         (inline_summary_alloc): Move to heap.
3006         (inline_node_removal_hook): Clear condition and entry vectors.
3007         (inline_edge_removal_hook): New function.
3008         (initialize_growth_caches, free_growth_caches): New function.
3009         (dump_inline_summary): Update.
3010         (edge_execution_predicate): New function.
3011         (will_be_nonconstant_predicate): New function.
3012         (estimate_function_body_sizes): Compute BB and constantness predicates.
3013         (compute_inline_parameters): Do not clear estimated_growth.
3014         (estimate_edge_size_and_time): New function.
3015         (estimate_calls_size_and_time): New function.
3016         (estimate_callee_size_and_time): New function.
3017         (remap_predicate): New function.
3018         (inline_merge_summary): New function.
3019         (do_estimate_edge_time): New function based on...
3020         (estimate_edge_time): ... this one.
3021         (do_estimate_edge_growth): New function.
3022         (do_estimate_growth): New function based on....
3023         (estimate_growth): ... this one.
3024         (inline_analyze_function): Analyze after deciding on jump functions.
3025         (inline_read_section): New function.
3026         (inline_read_summary): Use it.
3027         (inline_write_summary): Write all the new data.
3028         * ipa-prop.c (ipa_get_param_decl_index): Export.
3029         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3030         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3031         Declare.
3032         (ipa_get_lattice): Move here from ipa-cp.c
3033         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3034         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3035         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3036         cgraph_edge_inlinable_p): Remove.
3037         * cgraphunit.c: Include ipainline.h
3038         (cgraph_process_new_functions): Update call of
3039         compute_inline_parameters.
3040
3041 2011-04-22  Richard Guenther  <rguenther@suse.de>
3042
3043         * tree.c (build_int_cst): Properly create canonicalized integer
3044         constants.
3045         (build_int_cst_type): Remove scary comments.
3046
3047 2011-04-22  Xinliang David Li  <davidxl@google.com>
3048
3049         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3050         by default when -Wno-error is not specified.
3051         * opts-global.c (decode_options): Remove call to
3052         control_warning_options.
3053
3054 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3055
3056         PR tree-optimization/48717
3057         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3058         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3059
3060 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3061
3062         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3063         definition where used.
3064
3065 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3066
3067         PR c/48716
3068         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3069         TREE_STATIC variables declared inside of some OpenMP construct.
3070
3071 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3072
3073         PR middle-end/48585
3074         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3075
3076 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3077
3078         PR c/36750
3079         * c-typeck.c (pop_init_level): Do not warn about initializing
3080         with ` = {0}'.
3081
3082 2011-04-22  Alan Modra  <amodra@gmail.com>
3083
3084         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3085         when returning call_cookie.
3086         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3087         pointers, to functions with no more vector args than the current
3088         function, and some non-local calls for ABI_V4.
3089         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3090         sibcall_nonlocal_aix64): Combine to ..
3091         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3092         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3093         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3094         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3095         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3096         operand.
3097         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3098         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3099         sibcall_value_symbolic_64): Delete.
3100
3101 2011-04-21  Xinliang David Li  <davidxl@google.com>
3102
3103         * cgraph.h: Remove pid.
3104         * cgraph.c: Remove pid.
3105         * value-prof.c (init_node_map): New function.
3106         (del_node_map): New function.
3107         (find_func_by_funcdef_no): New function.
3108         (gimple_ic_transform): Call new function.
3109         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3110         * function.c (get_last_funcdef_no): New function.
3111         * function.h (get_last_funcdef_no): New function.
3112         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3113         to libgcov function.
3114         (tree-profiling): Call node map init and delete function.
3115
3116 2011-04-21  Ian Lance Taylor  <iant@google.com>
3117
3118         * godump.c (go_format_type): Use exported Go name for anonymous
3119         field name.
3120
3121 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3122
3123         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3124         Call builtin_function_type_list instead of builtin_function_type.
3125         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3126
3127 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3128
3129         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3130         build_function_type_list instead of build_function_type.
3131         Delete variable `endlink'.
3132
3133 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3134
3135         * config/s390/s390.c (s390_init_builtins): Call
3136         build_function_type_list instead of build_function_type.
3137
3138 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3139
3140         * config/ia64/ia64.c (ia64_init_builtins): Call
3141         build_function_type_list instead of builtin_function_type.
3142
3143 2011-04-21  Easwaran Raman  <eraman@google.com>
3144
3145         * cfgexpand.c (stack_var): Remove OFFSET...
3146         (add_stack_var): ...and its reference here...
3147         (expand_stack_vars): ...and here.
3148         (stack_var_cmp): Sort by descending order of size.
3149         (partition_stack_vars): Change heuristic.
3150         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3151         (dump_stack_var_partition): Add newline after each partition.
3152
3153 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3154             Jeff Law  <law@redhat.com>
3155
3156         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3157         * gengtype.c (matching_file_name_substitute): Likewise.
3158
3159 2011-04-21  Richard Guenther  <rguenther@suse.de>
3160
3161         PR lto/48703
3162         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3163
3164 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3165
3166         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3167
3168 2011-04-21  Richard Guenther  <rguenther@suse.de>
3169
3170         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3171         file name.
3172
3173 2011-04-21  Richard Guenther  <rguenther@suse.de>
3174
3175         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3176         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3177         Use DECL_P, not SSA_VAR_P.
3178         (ptr_derefs_may_alias_p): Likewise.
3179         (ptr_deref_may_alias_ref_p_1): Likewise.
3180         (decl_refs_may_alias_p): Likewise.
3181         (refs_may_alias_p_1): Likewise.
3182         (ref_maybe_used_by_call_p_1): Likewise.
3183         (call_may_clobber_ref_p_1): Likewise.
3184         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3185         are either MEM_REF or TARGET_MEM_REF.
3186         (indirect_refs_may_alias_p): Likewise.
3187         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3188         for MEM_EXPR of indirect calls.
3189
3190 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3191
3192         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3193         (dst_file_info_struct): Remove flen field.
3194         (lookup_filename): Remove code that set flen field.
3195
3196 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3197
3198         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3199
3200 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3201
3202         PR target/48708
3203         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3204         vec_extract and vec_concat for non-SSE4_1 targets.
3205
3206 2011-04-21  Richard Guenther  <rguenther@suse.de>
3207
3208         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3209         return statements.
3210
3211 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3212
3213         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3214         undefine.
3215         (FILE): Don't undefine.
3216
3217 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3218
3219         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3220         struct rtx_def *.
3221         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3222         struct rtx_def *.
3223         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3224         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3225         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3226         rtx_def *.
3227         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3228         definitions where used.
3229         * config/microblaze/microblaze.h (struct microblaze_args): Use
3230         rtx, not struct rtx_def *.
3231         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3232         rtx_def *.
3233         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3234         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3235         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3236         not struct rtx_def *.
3237         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3238         struct rtx_def *.
3239         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3240         rtx_def *.
3241         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3242
3243 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3244
3245         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3246         operand_equal_p to compare DR_BASE_ADDRESSes.
3247         (vect_check_interleaving): Likewise.
3248
3249 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3250
3251         PR target/46329
3252         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3253         for all Neon struct constants.
3254
3255 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3256
3257         * target.def (legitimate_constant_p): New hook.
3258         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3259         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3260         * doc/tm.texi: Regenerate.
3261         * hooks.h (hook_bool_mode_rtx_true): Declare.
3262         * hooks.c (hook_bool_mode_rtx_true): Define.
3263         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3264         * calls.c (precompute_register_parameters): Replace uses of
3265         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3266         (emit_library_call_value_1): Likewise.
3267         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3268         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3269         * ira-costs.c (scan_one_insn): Likewise.
3270         * recog.c (general_operand, immediate_operand): Likewise.
3271         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3272         * reload1.c (init_eliminable_invariants): Likewise.
3273
3274         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3275         mode argument.
3276         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3277         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3278         argument.
3279         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3280         * config/alpha/predicates.md (input_operand): Update call to
3281         alpha_legitimate_constant_p.
3282
3283         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3284         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3285         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3286         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3287         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3288         (arm_legitimate_constant_p): New functions.
3289         (arm_cannot_force_const_mem): Make static.
3290
3291         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3292
3293         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3294         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3295         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3296         instead of bfin_legitimate_constant_p.
3297         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3298         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3299
3300         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3301
3302         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3303
3304         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3305         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3306         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3307         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3308
3309         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3310         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3311         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3312
3313         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3314         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3315         * config/i386/i386.c (legitimate_constant_p): Rename to...
3316         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3317         argument.
3318         (ix86_cannot_force_const_mem): Update accordingly.
3319         (ix86_legitimate_address_p): Likewise.
3320         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3321         * config/i386/i386.md: Update commentary.
3322
3323         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3324         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3325         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3326         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3327
3328         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3329
3330         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3331         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3332         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3333         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3334
3335         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3336         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3337         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3338
3339         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3340         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3341         (m32r_legitimate_constant_p): New function.
3342
3343         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3344         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3345         LEGITIMATE_CONSTANT_P.
3346         (LEGITIMATE_CONSTANT_P): Delete.
3347         * config/m68k/m68k.c (m68k_expand_prologue): Call
3348         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3349         (m68k_legitimate_constant_p): New function.
3350         * config/m68k/m68k.md: Update comments.
3351
3352         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3353         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3354         (mcore_legitimate_constant_p): New function.
3355
3356         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3357         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3358         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3359         Add a mode argument.
3360         (mep_legitimate_address): Update accordingly.
3361         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3362
3363         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3364         Delete.
3365         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3366         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3367         static.  Check OP's mode for VOIDmode.
3368         (microblaze_legitimate_constant_p): New function.
3369         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3370
3371         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3372         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3373         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3374         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3375         * config/mips/predicates.md: Update comments.
3376
3377         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3378         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3379         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3380         (mmix_legitimate_constant_p): Make static, return a bool, and take
3381         a mode argument.
3382         (mmix_print_operand_address): Update accordingly.
3383
3384         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3385         Delete.
3386         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3387         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3388         static.  Add a mode argument.
3389         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3390
3391         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3392
3393         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3394         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3395         (pa_legitimate_constant_p): New function.
3396
3397         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3398
3399         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3400         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3401         (pdp11_legitimate_constant_p): New function.
3402
3403         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3404         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3405         (rs6000_legitimate_constant_p): New function.
3406
3407         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3408         (rx_legitimate_constant_p): ...this.
3409         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3410         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3411         (rx_legitimate_constant_p): ...this.
3412         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3413         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3414
3415         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3416         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3417         * config/s390/s390.c (legitimate_constant_p): Rename to...
3418         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3419         and add a mode argument.
3420         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3421
3422         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3423
3424         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3425         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3426         (sh_legitimate_constant_p): New function.
3427
3428         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3429         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3430         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3431         (legitimate_constant_p): Rename to...
3432         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3433         argument.
3434         (constant_address_p): Update accordingly.
3435
3436         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3437         argument and return a bool.
3438         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3439         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3440         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3441         (spu_rtx_costs): Update accordingly.
3442         * config/spu/predicates.md (vec_imm_operand): Likewise.
3443
3444         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3445
3446         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3447         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3448         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3449
3450         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3451         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3452         * config/vax/vax.c (legitimate_constant_p): Likewise.
3453
3454         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3455         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3456         (xtensa_legitimate_constant_p): New function.
3457
3458 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3459
3460         * target.def (cannot_force_const_mem): Add a mode argument.
3461         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3462         * doc/tm.texi: Regenerate.
3463         * hooks.h (hook_bool_mode_rtx_false): Declare.
3464         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3465         (hook_bool_mode_const_rtx_true): Likewise.
3466         (hook_bool_mode_rtx_false): New function.
3467         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3468         to be non-VOID.  Update call to cannot_force_const_mem.
3469         (find_reloads): Update accordingly.
3470         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3471         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3472         argument.
3473         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3474         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3475         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3476         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3477         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3478         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3479         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3480         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3481         (m68k_cannot_force_const_mem): ...this new function.
3482         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3483         argument.
3484         (mips_const_insns, mips_legitimize_const_move): Update calls.
3485         (mips_secondary_reload_class): Likewise.
3486         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3487         (pa_cannot_force_const_mem): ...this new function.
3488         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3489         (rs6000_cannot_force_const_mem): ...this new function.
3490         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3491         argument.
3492         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3493         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3494         to...
3495         (xtensa_cannot_force_const_mem): ...this new function.
3496
3497 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3498
3499         * config/mips/mips.c (mips16_build_function_stub): Call
3500         build_function_type_list instead of build_function_type.
3501         (mips16_build_call_stub): Likewise.
3502
3503 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3504
3505         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3506         instead of build_function_type.
3507
3508 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3509
3510         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3511         instead of build_function_type.
3512
3513 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3514
3515         PR target/48678
3516         * config/i386/i386.md (insv): Change operand 0 constraint to
3517         "register_operand".  Change operand 1 and 2 constraint to
3518         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3519         * config/i386/sse.md (sse4_1_pinsrb): Export.
3520         (sse2_pinsrw): Ditto.
3521         (sse4_1_pinsrd): Ditto.
3522         (sse4_1_pinsrq): Ditto.
3523         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3524         * config/i386/i386.c (ix86_expand_pinsr): New.
3525
3526 2011-04-20  Easwaran Raman  <eraman@google.com>
3527
3528         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3529         containing union type only with -fstrict-aliasing.
3530
3531 2011-04-20  Jim Meyering  <meyering@redhat.com>
3532
3533         Remove useless if-before-free tests.
3534         * calls.c (expand_call, save_area): Likewise.
3535         * cfgcleanup.c (try_forward_edges): Likewise.
3536         * collect2.c (collect_execute): Likewise.
3537         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3538         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3539         * coverage.c (coverage_checksum_string): Likewise.
3540         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3541         * cselib.c (cselib_init): Likewise.
3542         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3543         (df_set_clean_cfg): Likewise.
3544         * function.c (free_after_compilation): Likewise.
3545         * gcc.c (do_spec_1, main): Likewise.
3546         * gcov.c (create_file_names): Likewise.
3547         * gensupport.c (identify_predicable_attribute): Likewise.
3548         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3549         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3550         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3551         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3552         * ipa-pure-const.c (local_pure_const): Likewise.
3553         * ipa-reference.c (propagate): Likewise.
3554         * ira-costs.c (free_ira_costs): Likewise.
3555         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3556         * matrix-reorg.c (mat_free): Likewise.
3557         * prefix.c (get_key_value): Likewise.
3558         * profile.c (compute_value_histograms): Likewise.
3559         * reload1.c (free_reg_equiv): Likewise.
3560         * sched-deps.c (free_deps): Likewise.
3561         * sel-sched-ir.c (fence_clear): Likewise.
3562         * sese.c (set_rename, if_region_set_false_region): Likewise.
3563         * tree-data-ref.c (free_rdg): Likewise.
3564         * tree-eh.c (lower_try_finally): Likewise.
3565         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3566         * tree-ssa-live.c (delete_var_map): Likewise.
3567         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3568         * tree-ssa-pre.c (phi_trans_add): Likewise.
3569
3570 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3571
3572         PR tree-optimization/48611
3573         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3574         beyond ERT_MUST_NOT_THROW region.
3575
3576 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3577
3578         * config/mips/mips.opt (mfix-24k): New.
3579         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3580         * config/mips/mips.md (length): Increase by 4 for stores if
3581         fixing 24K errata.
3582         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3583         all noreorder if fixing 24K errata.
3584         * doc/invoke.texi: Document mfix-24k.
3585
3586 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3587
3588         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3589         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3590
3591 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3592
3593         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3594         (const_ok_for_op): ... to here.
3595
3596 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3597
3598         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3599         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3600
3601 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3602
3603         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3604
3605 2011-04-20  Richard Guenther  <rguenther@suse.de>
3606
3607         PR tree-optimization/47892
3608         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3609         are if-convertible.
3610
3611 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3612
3613         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3614
3615 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3616
3617         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3618
3619 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3620
3621         PR target/18145
3622
3623         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3624         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3625         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3626         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3627         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3628
3629         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3630         New prototype.
3631
3632         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3633         (avr_asm_named_section, avr_asm_output_aligned_common,
3634         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3635         New functions to update...
3636         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3637         (avr_asm_init_sections): Overwrite section callbacks for
3638         data_section, bss_section.
3639         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3640         from here to...
3641         (avr_file_end): ...here.
3642
3643 2011-04-20  Richard Guenther  <rguenther@suse.de>
3644
3645         PR middle-end/48695
3646         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3647         objects and types here.  Adjust for their offset before comparing.
3648
3649 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3650
3651         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3652         statement per copy.
3653
3654 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3655
3656         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3657         (GIMPLE_H): Include $(INTERNAL_FN_H).
3658         (OBJS-common): Add internal-fn.o.
3659         (internal-fn.o): New rule.
3660         * internal-fn.def: New file.
3661         * internal-fn.h: Likewise.
3662         * internal-fn.c: Likewise.
3663         * gimple.h: Include internal-fn.h.
3664         (GF_CALL_INTERNAL): New gf_mask.
3665         (gimple_statement_call): Put fntype into a union with a new
3666         internal_fn field.
3667         (gimple_build_call_internal): Declare.
3668         (gimple_build_call_internal_vec): Likewise.
3669         (gimple_call_same_target_p): Likewise.
3670         (gimple_call_internal_p): New function.
3671         (gimple_call_internal_fn): Likewise.
3672         (gimple_call_fntype): Return null for internal calls.
3673         (gimple_call_set_fntype): Assert that the function is not internal.
3674         (gimple_call_set_fn): Likewise.
3675         (gimple_call_set_fndecl): Likewise.
3676         (gimple_call_set_internal_fn): New function.
3677         (gimple_call_addr_fndecl): Handle null functions.
3678         (gimple_call_return_type): Likewise null types.
3679         * gimple.c (gimple_build_call_internal_1): New function.
3680         (gimple_build_call_internal): Likewise.
3681         (gimple_build_call_internal_vec): Likewise.
3682         (gimple_call_same_target_p): Likewise.
3683         (gimple_call_flags): Handle calls to internal functions.
3684         (gimple_call_fnspec): New function.
3685         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3686         (gimple_has_side_effects): Handle null functions.
3687         (gimple_rhs_has_side_effects): Likewise.
3688         (gimple_call_copy_skip_args): Handle calls to internal functions.
3689         * cfgexpand.c (expand_call_stmt): Likewise.
3690         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3691         * gimple-fold.c (gimple_fold_call): Handle null functions.
3692         (gimple_fold_stmt_to_constant_1): Don't fold
3693         calls to internal functions.
3694         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3695         functions.
3696         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3697         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3698         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3699         (do_warn_unused_result): Likewise.
3700         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3701         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3702         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3703         the target of a call.
3704         (initialize_hash_element): Update accordingly.
3705         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3706         (iterative_hash_hashable_expr): Handle calls to internal functions.
3707         (print_expr_hash_elt): Likewise.
3708         * tree-ssa-pre.c (can_value_number_call): Likewise.
3709         (eliminate): Handle null functions.
3710         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3711         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3712         (find_func_aliases): Likewise.
3713         * value-prof.c (gimple_ic_transform): Likewise.
3714         (gimple_indirect_call_to_profile): Likewise.
3715         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3716         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3717
3718 2011-04-19  Jan Hubicka  <jh@suse.cz>
3719
3720         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3721         * ipa-inline.c (inline_small_functions): Compute summaries first,
3722         populate heap later.
3723
3724 2011-04-19  Jan Hubicka  <jh@suse.cz>
3725
3726         * cgraph.h (save_inline_function_body): Remove.
3727         * ipa-inline-transform.c: New file, broke out of...
3728         * ipa-inline.c: ... this one; Update toplevel comment.
3729         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3730         make global.
3731         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3732         (cgraph_mark_inline_edge): Rename to inline_call; move to
3733         ipa-inline-transform.c.
3734         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3735         move to ipa-inline-transform.c
3736         (recursive_inlining, inline_small_functions, flatten_function,
3737         ipa_inline, inline_always_inline_functions,
3738         early_inline_small_functions): Update.
3739         (inline_transform): Move to ipa-inline-transform.c.
3740         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3741         Declare.
3742         * Makefile.in (ipa-inline-transform.o): New file.
3743         * cgraphunit.c (save_inline_function_body): Move to
3744         ipa-inline-transform.c
3745
3746 2011-04-19  DJ Delorie  <dj@redhat.com>
3747
3748         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3749         registers if we already know there aren't any.
3750         (m32c_emit_epilogue): Don't emit a barrier here.
3751         (m32c_emit_eh_epilogue): Likewise.
3752         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3753         operands at expand time.
3754         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3755         int" wchar type.
3756         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3757         duplicates.  Provide aliases instead.
3758         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3759         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3760         the compiler.
3761
3762 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3763
3764         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3765         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3766         (general_or_i64_p, sparc_register_move_cost): New function.
3767
3768 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769
3770         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3771         Add lynx, mipssde.  Sort table.
3772
3773 2011-04-19  Xinliang David Li  <davidxl@google.com>
3774
3775         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3776         not negative.
3777
3778 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3779
3780         PR target/48678
3781         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3782         is a SUBREG with non-MODE_INT mode inside of it.
3783
3784 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3785
3786         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3787         also according to actual contants.
3788         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3789         (gimple_fold_call): Use it.
3790         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3791
3792 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3793
3794         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3795         non-pointer assignments.
3796
3797 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3798
3799         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3800         account anc_offset and otr_type from the indirect edge info.
3801         * ipa-prop.c (get_ancestor_addr_info): New function.
3802         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3803         get_ancestor_addr_info, call it.
3804         (ipa_note_param_call): Do not initialize information about polymorphic
3805         calls, return the indirect call graph edge.  Remove the last
3806         parameter, adjust all callers.
3807         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3808         parameters.  Initialize polymorphic information in the indirect edge.
3809
3810 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3811
3812         PR lto/48148
3813         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3814         the types if they have different enumeration identifiers.
3815
3816 2011-04-19  Jan Hubicka  <jh@suse.cz>
3817
3818         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3819         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3820         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3821         (optimize_function_for_size_p) ... here.
3822
3823 2011-04-19  Richard Guenther  <rguenther@suse.de>
3824
3825         PR lto/48207
3826         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3827         langhook.
3828
3829 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3830
3831         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3832         if DECL_NO_INLINE_WARNING_P is set on the function.
3833
3834 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3835
3836         PR fortran/47976
3837         * reload1.c (inc_for_reload): Return void. All callers changed.
3838         (emit_input_reload_insns): Don't try to delete previous output
3839         reloads to a register, or record spill_reg_store for autoincs.
3840
3841 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3842
3843         * gengtype.h: Updated copyright year.
3844         (struct input_file_st): Add inpisplugin field.
3845         (type_fileloc): New function.
3846         * gengtype.c
3847         (write_typed_struct_alloc_def): Add gcc_assert.
3848         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3849         (write_typed_alloc_defns): Don't output for plugin files.
3850         (input_file_by_name): Clear inpisplugin field.
3851         (main): Set inpisplugin field for plugin files.
3852
3853 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3854
3855         * gengtype-state.c (string_eq): New.
3856         (read_state): Use string_eq instead of strcmp when creating the
3857         state_ident_tab.
3858
3859 2011-04-19  Wei Guozhi  <carrot@google.com>
3860
3861         PR target/47855
3862         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3863         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3864         linkage.
3865         * config/arm/constraints.md (Uu): New constraint.
3866         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3867
3868 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3869
3870         * config.gcc (-*-*-*vms): Added.
3871         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3872         definitions moved.
3873         * config/vms/vms-ld.c: New file.
3874         * config/vms/vms-ar.c: New file.
3875         * config/vms/t-vmsnative: New file.
3876
3877 2011-04-18  Xinliang David Li  <davidxl@google.com>
3878
3879         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3880
3881 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3882
3883         PR middle-end/48661
3884         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3885         if TREE_TYPE (v) is non-NULL.
3886
3887         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3888         gimple_get_virt_mehtod_for_binfo.
3889         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3890         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3891         callers.
3892         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3893
3894 2011-04-18  Michael Matz  <matz@suse.de>
3895             Steve Ellcey  <sje@cup.hp.com>
3896
3897         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3898         use its mode as source mode if it isn't VOIDmode.
3899
3900 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3901
3902         * doc/passes.texi: Fill crossref nodes.
3903
3904 2011-04-18  Jim Meyering  <meyering@redhat.com>
3905
3906         Fix doubled-word typos in comments and strings
3907         * config/alpha/vms-unwind.h: s/for for/for/
3908         * config/arm/unwind-arm.h: Likewise.
3909         * config/microblaze/microblaze.c: Likewise.
3910         * config/sh/constraints.md: s/in in/in/
3911         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3912
3913 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3914
3915         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3916         (AVX_FLOAT_MODE_P): Ditto.
3917         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3918         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3919         (AVX_VEC_FLOAT_MODE_P): Ditto.
3920         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3921         (UNSPEC_MASKSTORE): Ditto.
3922         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3923         Merge from <sse>_movmsk<ssemodesuffix> and
3924         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3925         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3926         iterator.
3927         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3928         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3929         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3930
3931 2011-04-18  Jan Hubicka  <jh@suse.cz>
3932
3933         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3934
3935         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3936         (want_inline_function_called_once_p): Break out the logic from
3937         ipa_inline.
3938         (edge_badness): Ensure that profile is not misupdated.
3939         (lookup_recursive_calls): Prioritize by call frequencies.
3940         (inline_small_functions): Move program size estimates here;
3941         actually process whole queue even when unit growth has been
3942         met. (to properly compute inline_failed reasons and for the
3943         case unit size decrease.) Revisit comments on recursive inlining.
3944         (ipa_inline): Remove unit summary code; first inline hot calls
3945         of functions called once, cold calls next.
3946         (order, nnodes): Remove unused variables.
3947         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3948         (GTFILES): Remove ipa-inline.c
3949         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3950
3951 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3952
3953         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3954
3955 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3956             Richard Earnshaw  <rearnsha@arm.com>
3957
3958         * arm.c (neon_builtin_type_bits): Remove.
3959         (typedef enum neon_builtin_mode): New.
3960         (T_MAX): Don't define.
3961         (typedef enum neon_builtin_datum): Remove bits, codes[],
3962         num_vars and base_fcode.  Add mode, code and fcode.
3963         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3964         VAR10): Change accordingly.
3965         (neon_builtin_data[]): Change accordingly
3966         (arm_init_neon_builtins): Change accordingly.
3967         (neon_builtin_compare): Remove.
3968         (locate_neon_builtin_icode): Remove.
3969         (arm_expand_neon_builtin): Change accordingly.
3970
3971         * arm.h (enum arm_builtins): Move to ...
3972         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3973
3974         * arm.c (arm_builtin_decl): Declare.
3975         (TARGET_BUILTIN_DECL): Define.
3976         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3977         (arm_builtin_decls[]): New.
3978         (arm_init_neon_builtins): Store builtin declarations in
3979         arm_builtin_decls[].
3980         (arm_init_tls_builtins): Likewise.
3981         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3982         (arm_builtin_decl): New.
3983
3984 2011-04-18  Richard Guenther  <rguenther@suse.de>
3985
3986         * tree.c (upper_bound_in_type): Build properly canonicalized
3987         INTEGER_CSTs.
3988         (lower_bound_in_type): Likewise.
3989
3990 2011-04-18  Richard Guenther  <rguenther@suse.de>
3991
3992         * gimple.h (gimple_call_addr_fndecl): New function.
3993         (gimple_call_fndecl): Use it.
3994         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3995         for direct calls.
3996         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3997         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3998
3999 2011-04-18  Richard Guenther  <rguenther@suse.de>
4000
4001         PR middle-end/48650
4002         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4003
4004 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4005
4006         PR lto/48492
4007         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4008         DECL_IN_CONSTANT_POOL without RTL.
4009
4010 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4011             Ira Rosen  <ira.rosen@linaro.org>
4012
4013         PR target/48252
4014         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4015         to match neon_vzip/vuzp/vtrn_internal.
4016         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4017         outputs explicitly dependent on both inputs.
4018         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4019
4020 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4021
4022         PR tree-optimization/48616
4023         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4024         whether the shift is by scalar or vector based on whether all SLP
4025         scalar stmts have the same rhs.
4026
4027 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4028
4029         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4030         memory operands.
4031
4032 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4033
4034         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4035         registers.
4036
4037 2011-04-17  Jan Hubicka  <jh@suse.cz>
4038
4039         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4040         * cgrpahunit.c (cgraph_finalize_function): Do not set
4041         finalized_by_frontend.
4042         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4043         finalized_by_frontend.
4044
4045 2011-04-17  Jan Hubicka  <jh@suse.cz>
4046
4047         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4048         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4049         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4050         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4051         method.
4052         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4053         gimple-fold.c
4054         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4055
4056 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4057
4058         PR lto/48538
4059         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4060         is non-null before accessing it.
4061         (input_cgraph): Remove trailing spaces.
4062
4063 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4064
4065         * params.def (sms-min-sc): New param flag.
4066         * modulo-sched.c (sms_schedule): Use it.
4067         * doc/invoke.texi (sms-min-sc): Document it.
4068
4069 2011-04-17  Jan Hubicka  <jh@suse.cz>
4070
4071         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4072         present, also set gimple_call_set_cannot_inline.
4073         * ipa-inline.c: Update toplevel comment.
4074         (MAX_TIME): Remove.
4075         (cgraph_clone_inlined_nodes): Fix linebreaks.
4076         (cgraph_check_inline_limits): Restructure to ...
4077         (caller_growth_limits): ... this one; be more tolerant
4078         on growth in nested inline chains; add explanatory comment;
4079         fix stack accounting thinko introduced by previous patch.
4080         (cgraph_default_inline_p): Remove.
4081         (report_inline_failed_reason): New function.
4082         (can_inline_edge_p): New function.
4083         (can_early_inline_edge_p): New function.
4084         (leaf_node_p): Move upwards in file.
4085         (want_early_inline_function_p): New function.
4086         (want_inline_small_function_p): New function.
4087         (want_inline_self_recursive_call_p): New function.
4088         (cgraph_edge_badness): Rename to ...
4089         (edge_badness) ... this one; fix linebreaks.
4090         (update_edge_key): Update call of edge_baddness; add
4091         detailed dump about queue updates.
4092         (update_caller_keys): Use can_inline_edge_p and
4093         want_inline_small_function_p.
4094         (cgraph_decide_recursive_inlining): Rename to...
4095         (recursive_inlining): Use can_inline_edge_p and
4096         want_inline_self_recursive_call_p; simplify and remove no longer
4097         valid FIXME.
4098         (cgraph_set_inline_failed): Remove.
4099         (add_new_edges_to_heap): Use can_inline_edge_p and
4100         want_inline_small_function_p.
4101         (cgraph_decide_inlining_of_small_functions): Rename to ...
4102         (inline_small_functions): ... this one; cleanup; use
4103         can/want predicates; cleanup debug ouput; work edges till fibheap
4104         is exhausted and do not stop once unit growth is reached; remove
4105         later loop processing remaining edges.
4106         (cgraph_flatten): Rename to ...
4107         (flatten_function): ... this one; use can_inline_edge_p
4108         and can_early_inline_edge_p predicates.
4109         (cgraph_decide_inlining): Rename to ...
4110         (ipa_inline): ... this one; remove unreachable nodes before
4111         inlining functions called once; simplify the pass.
4112         (cgraph_perform_always_inlining): Rename to ...
4113         (inline_always_inline_functions): ... this one; use
4114         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4115         (cgraph_decide_inlining_incrementally): Rename to ...
4116         (early_inline_small_functions): ... this one; simplify
4117         using new predicates; cleanup; make dumps prettier.
4118         (cgraph_early_inlining): Rename to ...
4119         (early_inliner): newer inline regular functions into always-inlines;
4120         fix updating of call stmt summaries.
4121         (pass_early_inline): Update for new names.
4122         (inline_transform): Fix formating.
4123         (gate_cgraph_decide_inlining): Rename to ...
4124         (pass_ipa_inline): ... this one.
4125         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4126         * ipa-inline-analysis.c (dump_inline_summary): Update.
4127         (compute_inline_parameters): Do not compute disregard_inline_limits;
4128         look for mismatching arguments.
4129         (estimate_growth): Fix handlig of non-trivial self recursion.
4130         (inline_read_summary): Do not read info->disregard_inline_limits.
4131         (inline_write_summary): Do not write info->disregard_inline_limits.
4132         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4133         and move all checks into can_inline_edge_p predicate; re-enable code
4134         comparing optimization levels.
4135         (expand_call_inline): Do not test inline_forbidden_into_p.
4136         * Makefile.in (ipa-inline.o): Update arguments.
4137
4138 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4139
4140         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4141
4142 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4143
4144         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4145
4146 2011-04-17  Michael Matz  <matz@suse.de>
4147
4148         PR tree-optimization/48622
4149         PR lto/48645
4150         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4151         in same order as they're written.
4152
4153 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4154
4155         * config/pa/predicates.md: Reorganize and simplify predicates.
4156         Eliminate duplicate code checks.
4157         (arith_operand): Rename to arith14_operand
4158         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4159         * config/pa/pa.md: Use renamed operands.
4160         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4161         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4162         arith11_operand, adddi3_operand, indexed_memory_operand,
4163         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4164         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4165         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4166         move_dest_operand, move_src_operand, prefetch_cc_operand,
4167         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4168         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4169         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4170         div_operand, int5_operand, movb_comparison_operator,
4171         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4172         arith_double_operand, ireg_operand, lhs_lshift_operand,
4173         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4174         integer_store_memory_operand): Likewise.
4175         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4176         (integer_store_memory_operand, read_only_operand,
4177         function_label_operand, borx_reg_operand,
4178         non_hard_reg_operand): Likewise.
4179         (eq_neq_comparison_operator): Delete unused operator.
4180         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4181         function_label_operand.
4182         (emit_move_sequence): Likewise.
4183
4184 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4185
4186         * config/i386/sse.md (sseunpackmode): New mode attribute.
4187         (ssepackmode): Ditto.
4188         (vec_pack_trunc_<mode>): Macroize expander from
4189         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4190         (vec_unpacks_lo_<mode>): Macroize expander from
4191         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4192         (vec_unpacks_hi_<mode>): Macroize expander from
4193         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4194         (vec_unpacku_lo_<mode>): Macroize expander from
4195         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4196         (vec_unpacku_hi_<mode>): Macroize expander from
4197         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4198         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4199         ix86_expand_sse4_unpack.
4200         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4201
4202 2011-04-16  Jan Hubicka  <jh@suse.cz>
4203
4204         * cgraphbuild.c: Include ipa-inline.h.
4205         (reset_inline_failed): Use initialize_inline_failed.
4206         * cgraph.c: Include ipa-inline.h.
4207         (cgraph_create_node_1): Do not initialize estimated_growth.
4208         (initialize_inline_failed): More to ipa-inline-analysis.c
4209         (dump_cgraph_node): Do not dump inline flags.
4210         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4211         and disregard_inline_limits flags.
4212         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4213         time, size, estimated_growth.
4214         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4215         Update.
4216         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4217         DECL_DISREGARD_INLINE_LIMITS.
4218         (cgraph_analyze_function): Do not initialize
4219         node->local.disregard_inline_limits.
4220         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4221         inlinable, versionable and disregard_inline_limits.
4222         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4223         cgraph_check_inline_limits, cgraph_default_inline_p,
4224         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4225         add_new_edges_to_heap): Update.
4226         (cgraph_decide_inlining_of_small_function): Update; set
4227         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4228         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4229         cgraph_decide_inlining_incrementally): Update.
4230         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4231         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4232         time, size and estimated_growth parameters.
4233         (estimate_edge_growth): Update.
4234         (initialize_inline_failed): Declare.
4235         * ipa-split.c: Include ipa-inline.h
4236         (execute_split_functions): Update.
4237         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4238         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4239         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4240         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4241         estimated_growth to INT_MIN.
4242         (inline_node_duplication_hook): Likewise.
4243         (dump_inline_summary): Dump new fields.
4244         (compute_inline_parameters): Update.
4245         (estimate_edge_time, estimate_time_after_inlining,
4246         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4247         inline_write_summary):
4248         (initialize_inline_failed): Move here from cgraph.c.
4249         * tree-sra.c: Include ipa-inline.h.
4250         (ipa_sra_preliminary_function_checks): Update.
4251         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4252         ipa-inline.h.
4253
4254 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4255
4256         * config/i386/sse.md (V16): New mode iterator.
4257         (VI1, VI8): Ditto.
4258         (AVXMODEQI, AVXMODEDI): Remove.
4259         (sse2, sse3): New mode attribute.
4260         (mov<mode>): Use V16 mode iterator.
4261         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4262         (push<mode>1): Use V16 mode iterator.
4263         (movmisalign<mode>): Ditto.
4264         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4265         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4266         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4267         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4268         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4269         avx_movdqu<avxmodesuffix>.
4270         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4271         *avx_movdqu<avxmodesuffix>.
4272         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4273         avx_lddqu<avxmodesuffix>.
4274         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4275         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4276         avx_movnt<AVXMODEDI:mode>.
4277         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4278         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4279
4280 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4281
4282         PR target/48629
4283         * haifa-sched.c (prune_ready_list, schedule_block): Use
4284         sched_pressure_p rather than flag_sched_pressure.
4285
4286 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4287
4288         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4289         cgraph_get_node instead of cgraph_get_create_node.
4290
4291 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4292
4293         * cfgexpand.c (expand_debug_expr): Use
4294         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4295
4296 2011-04-15  Michael Matz  <matz@suse.de>
4297
4298         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4299         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4300         * function.c (gimplify_parameters): Ditto.
4301         * gimplify.c (gimplify_vla_decl): Ditto.
4302
4303         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4304         (gimple_call_set_alloca_for_var): New inline function.
4305         (gimple_call_alloca_for_var_p): Ditto.
4306         * gimple.c (gimple_build_call_from_tree): Remember
4307         CALL_ALLOCA_FOR_VAR_P state.
4308         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4309
4310         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4311         calls if they were for VLA objects.
4312
4313 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4314
4315         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4316         of ADR_EXPRs.
4317
4318 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4319
4320         PR middle-end/48601
4321         * tree-emutls.c (lower_emutls_function_body): Call
4322         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4323         result is non-NULL.
4324
4325 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4326
4327         * c-decl.c (detect_field_duplicates): Call
4328         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4329
4330 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4331
4332         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4333         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4334         * ipa-pure-const.c (check_stmt): Call it.
4335         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4336
4337 2011-04-15  Richard Guenther  <rguenther@suse.de>
4338
4339         PR tree-optimization/48290
4340         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4341         Properly decide inhibiting propagation based on the valueized
4342         operand.  Do loop-closed SSA form preserving here ...
4343         (init_copy_prop): ... not here.
4344
4345 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4346
4347         PR target/48612
4348         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4349         (*ieee_smax<mode>3): Likewise.
4350
4351 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4352
4353         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4354         Replace match_operand with match_dup for the third operand in
4355         these expanders.
4356
4357 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4358
4359         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4360         to track processing of conditionals.  Update all callers.
4361         (try_combine, simplify_if_then_else): Update.
4362
4363 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4364
4365         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4366         -fsched-pressure.
4367
4368 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4369
4370         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4371         instead of match_operand for operand 3.
4372
4373 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4374
4375         * recog.h (insn_operand_data): Add an "allows_mem" field.
4376         * genoutput.c (output_operand_data): Initialize it.
4377         * optabs.c (maybe_legitimize_operand_same_code): New function.
4378         (maybe_legitimize_operand): Use it when matching the original
4379         op->value.
4380
4381 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4382
4383         * gimplify.c: Fix issues in comments throughout.
4384         (voidify_wrapper_expr): Fix long line.
4385         (build_stack_save_restore): Likewise.
4386         (gimplify_loop_expr): Likewise.
4387         (gimplify_compound_lval): Likewise.
4388         (gimplify_init_ctor_eval): Likewise.
4389         (gimplify_modify_expr_rhs): Likewise.
4390         (omp_notice_threadprivate_variable): Likewise.
4391
4392 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4393
4394         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4395         original one if this is not a builtin function.
4396
4397 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4398
4399         PR target/48605
4400         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4401         offset it as needed based on top 2 bits in operands[3], change
4402         MEM mode to SFmode and mask those 2 bits away from operands[3].
4403
4404 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4405
4406         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4407         change from objc_declare_protocols() to objc_declare_protocol().
4408
4409 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4410
4411         * config/i386/sse.md (sse4_1): New mode attribute.
4412         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4413         avx_blend<ssemodesuffix><avxmodesuffix> and
4414         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4415         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4416         avx_blendv<ssemodesuffix><avxmodesuffix> and
4417         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4418         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4419         avx_dp<ssemodesuffix><avxmodesuffix> and
4420         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4421         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4422         (sse4_1_packusdw): Merge with *avx_packusdw.
4423         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4424         (sse4_1_pblendw): Merge with *avx_pblendw.
4425         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4426         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4427         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4428         VF mode iterator.
4429         (sse4_1_round<ssescalarmodesuffix>): Merge with
4430         *avx_round<ssescalarmodesuffix>.
4431         (aesenc): Merge with *avx_aesenc.
4432         (aesenclast): Merge with *avx_aesenclast.
4433         (aesdec): Merge with *avx_aesdec.
4434         (aesdeclast): Merge with *avx_aesdeclast.
4435         (pclmulqdq): Merge with *pclmulqdq.
4436         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4437         New predicate.
4438         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4439
4440 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4441
4442         PR middle-end/48608
4443         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4444         (align_local_variable): This.  Update DECL_ALIGN.
4445         (add_stack_var): Updated.
4446         (expand_one_stack_var): Likewise.
4447
4448 2011-04-14  Richard Guenther  <rguenther@suse.de>
4449
4450         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4451         Remove.
4452         (dse_initialize_block_local_data, dse_leave_block,
4453         record_voperand_set, get_stmt_uid): Likewise.
4454         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4455         (dse_optimize_stmt): Remove voperand set handling code.
4456         Simplify and improve to handle any kind of killing stmt.
4457         (dse_record_phi): Remove.
4458         (dse_enter_block): Simplify.
4459         (tree_ssa_dse): Likewise.
4460         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4461
4462 2011-04-14  Jan Hubicka  <jh@suse.cz>
4463
4464         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4465         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4466         (cgraph_local_info): Remove inline_summary.
4467         * ipa-cp.c: Include ipa-inline.h.
4468         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4469         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4470         accesor.
4471         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4472         (input_overwrite_node): Do not set inline summary.
4473         (input_node): Do not stream inline summary.
4474         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4475         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4476         growth; we do not have inline parameters computed for that anyway.
4477         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4478         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4479         (inline_summary_t): New type and VECtor.
4480         (debug_inline_summary, dump_inline_summaries): Declare.
4481         (inline_summary): Use VOCtor.
4482         (estimate_edge_growth): Kill hack computing call stmt size directly.
4483         * lto-section-in.c (lto_section_name): Add inline section.
4484         * ipa-inline-analysis.c: Include lto-streamer.h
4485         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4486         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4487         (inline_summary_vec): Define.
4488         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4489         dump_inline_summaries): New functions.
4490         (estimate_function_body_sizes): Properly compute size/time of outgoing
4491         calls.
4492         (compute_inline_parameters): Alloc inline_summary; do not compute
4493         size/time of incomming calls.
4494         (estimate_edge_time): Avoid missing time summary hack.
4495         (inline_read_summary): Read inline summary info.
4496         (inline_write_summary): Write inline summary info.
4497         (inline_free_summary): Free all hooks and inline summary vector.
4498         * lto-streamer.h: Add LTO_section_inline_summary section.
4499         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4500         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4501
4502 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4503
4504         * tree-vectorizer.h (vect_strided_store_supported): Add a
4505         HOST_WIDE_INT argument.
4506         (vect_strided_load_supported): Likewise.
4507         (vect_permute_store_chain): Return void.
4508         (vect_transform_strided_load): Likewise.
4509         (vect_permute_load_chain): Delete.
4510         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4511         count argument.  Check that the count is a power of two.
4512         (vect_strided_load_supported): Likewise.
4513         (vect_permute_store_chain): Return void.  Update after above changes.
4514         Assert that the access is supported.
4515         (vect_permute_load_chain): Likewise.
4516         (vect_transform_strided_load): Return void.
4517         * tree-vect-stmts.c (vectorizable_store): Update calls after
4518         above interface changes.
4519         (vectorizable_load): Likewise.
4520         (vect_analyze_stmt): Don't check for strided powers of two here.
4521
4522 2011-04-14  Richard Guenther  <rguenther@suse.de>
4523
4524         PR tree-optimization/48590
4525         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4526         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4527         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4528         BUILT_IN_STACK_SAVE.
4529         * tree-ssa-dce.c (propagate_necessity): Handle
4530         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4531
4532 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4533
4534         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4535         objc_declare_class.
4536
4537 2011-04-14  Richard Guenther  <rguenther@suse.de>
4538
4539         * tree.h (get_object_alignment_1): Declare.
4540         * builtins.c (get_object_alignment_1): Split out worker from ...
4541         (get_object_alignment): ... here.
4542         * fold-const.c (get_pointer_modulus_and_residue): Use
4543         get_object_alignment_1.
4544
4545 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4546
4547         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4548         type parameter.
4549         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4550         parameter.  Generalise code to handle arrays as well as vectors.
4551         (vect_setup_realignment): Update accordingly.
4552         * tree-vect-stmts.c (vectorizable_store): Likewise.
4553         (vectorizable_load): Likewise.
4554
4555 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4556
4557         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4558         within the per-copy loop.
4559
4560 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4561
4562         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4563         in the dump file.
4564
4565 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4566
4567         * doc/options.texi (Negative): Explicitly mention that the
4568         Negative chain must be circular.
4569
4570 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4571
4572         * function.h (block_chainon): Declare.
4573         * function.c (block_chainon): Define.
4574
4575 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4576             Eric Weddington  <eric.weddington@atmel.com>
4577             Georg-Johann Lay  <avr@gjlay.de>
4578
4579         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4580         New Includes
4581         (avr_init_builtins, avr_expand_builtin,
4582         avr_expand_delay_cycles, avr_expand_unop_builtin,
4583         avr_expand_binop_builtin ): New functions.
4584         (avr_builtin_id): New enum
4585         (struct avr_builtin_description): New struct
4586         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4587         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4588
4589         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4590         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4591         UNSPECV_DELAY_CYCLES): new enumeration values
4592         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4593         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4594         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4595         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4596         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4597         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4598         "fmulsu"): New insns
4599
4600         * config/avr/avr-c.c: fix line endings
4601         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4602         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4603         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4604         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4605         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4606
4607         * doc/extend.texi (AVR Built-in Functions): New node
4608         (Target Builtins): Add documentation of AVR
4609         built-in functions.
4610
4611 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4612
4613         PR target/44643
4614         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4615         alone. Error if non-const data has attribute progmem.
4616
4617 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4618
4619         * tree.h (struct tree_constructor): Include tree_typed instead of
4620         tree_common.
4621         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4622         TS_TYPED instead of TS_COMMON.
4623
4624 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4625
4626         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4627         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4628         (sse2_psadbw): Merge with *avx_psadbw.
4629         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4630         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4631         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4632         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4633         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4634         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4635         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4636         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4637         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4638         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4639         (ssse3_palignrti): Merge with *avx_palignrti.
4640
4641 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4642
4643         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4644         * tree-ssanames.c (fini_ssanames): VEC_free it.
4645         (make_ssa_name_fn): Update for VECness of free_ssanames.
4646         (release_ssa_name, release_dead_ssa_names): Likewise.
4647         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4648         tree_common.
4649         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4650         TS_TYPED instead of TS_COMMON.
4651
4652 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4653
4654         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4655         statistics_counter_event.
4656         * tree-ssa-copyrename.c (stats): Define.
4657         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4658         statistics_counter_event.
4659         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4660         (bswap_stats, widen_mul_stats): Define.
4661         (insert_reciprocals): Increment rdivs_inserted.
4662         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4663         rfuncs_inserted.  Add calls to statistics_counter_event.
4664         (execute_cse_sincos_1): Increment inserted.
4665         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4666         statistics_counter_event.
4667         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4668         of bswap_stats.  Add calls to statistics_counter_event.
4669         (convert_mult_to_widen): Increment widen_mults_inserted.
4670         (convert_plusminus_to_widen): Increment maccs_inserted.
4671         (convert_mult_to_fma): Increment fmas_inserted.
4672         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4673         calls to statistics_counter_event.
4674
4675 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4676
4677         PR rtl-optimization/48455
4678         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4679         `temp_costs->mem_cost'.
4680
4681 2011-04-13  Jan Hubicka  <jh@suse.cz>
4682
4683         * ipa-inline.h: New file.
4684         * ipa-inline-analysis.c: New file. Broken out of ...
4685         * ipa-inline.c: ... this file; update toplevel comment;
4686         include ipa-inline.h
4687         (inline_summary): Move to ipa-inline.h
4688         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4689         ipa-inline-analysis.c.
4690         (cgraph_estimate_time_after_inlining): Rename to
4691         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4692         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4693         to estimate_edge_growth.
4694         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4695         rename to estimate_size_after_inlining.
4696         (cgraph_mark_inline_edge): Update for new naming convention.
4697         (cgraph_check_inline_limits): Likewise.
4698         (cgraph_edge_badness): Likewise.
4699         (cgraph_decide_recursive_inlining): Likewise.
4700         (cgraph_decide_inlining_of_small_functions): Likewise.
4701         (cgraph_decide_inlining_incrementally): Likewise.
4702         (cgraph_estimate_growth): Rename to estimate_growth; move to
4703         ipa-inline-analysis.c.
4704         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4705         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4706         (compute_inline_parameters): Likewise.
4707         (compute_inline_parameters_for_current): Likewise.
4708         (pass_inline_parameters): Likewise.
4709         (inline_indirect_intraprocedural_analysis): Likewise.
4710         (analyze_function): Rename to inline_analyze_function; likewise.
4711         (add_new_function): Move to ipa-inline-analysis.c.
4712         (inline_generate_summary): Likewise.
4713         (inline_read_summary): Likewise.
4714         (inline_write_summary): Likewise.
4715         * Makefile.in (ipa-inline-analysis.c): New file.
4716
4717 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4718
4719         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4720         * configure: Regenerate.
4721
4722 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4723
4724         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4725         instead of tree_common.
4726         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4727         Likewise.
4728         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4729         TS_TYPED rather than TS_COMMON.
4730         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4731
4732 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4733
4734         PR target/45263
4735         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4736         r20 around calls of __tablejump_elpm__
4737
4738 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4739
4740         PR middle-end/48591
4741         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4742         NULL.
4743         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4744
4745 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4746
4747         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4748         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4749         (cfi_vec): New typedef.
4750         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4751         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4752         (cie_cfi_vec): New static variable.
4753         (cie_cfi_head): Delete.
4754         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4755         declaration changed. Use vector rather than list operations.
4756         (new_cfi): Don't initialize the dw_cfi_next field.
4757         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4758         rather than list operations.
4759         (lookup_cfa): Use vector rather than list operations.
4760         (output_cfis): New argument upto. Accept a cfi_vec rather than
4761         a dw_cfi_ref list head as argument. All callers changed.
4762         Iterate over the vector using upto as a maximum index.
4763         (output_all_cfis): New static function.
4764         (output_fde): Use vector rather than list operations. Use the
4765         new upto argument for output_cfis rather than manipulating a
4766         list.
4767         (dwarf2out_begin_prologue): Change initializations to match
4768         new struct members.
4769         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4770         from the vector length rather than searching for the end of a list.
4771         Use output_all_cfis.
4772         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4773
4774 2011-04-13  Nick Clifton  <nickc@redhat.com>
4775
4776         * config/rx/rx.md (movmemsi): Do not use this pattern when
4777         volatile pointers are involved.
4778
4779 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4780
4781         * config/i386/sse.md (pinsrbits): Remove.
4782         (sse2_packsswb): Merge with *avx_packsswb.
4783         (sse2_packssdw): Merge with *avx_packssdw.
4784         (sse2_packuswb): Merge with *avx_packuswb.
4785         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4786         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4787         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4788         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4789         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4790         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4791         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4792         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4793         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4794         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4795         (sse2_loadld): Merge with *avx_loadld.
4796         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4797         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4798         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4799         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4800         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4801
4802 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4803
4804         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4805         calling TREE_CHAIN.
4806         * print-tree.c (print_node): Likewise.
4807         * tree-inline.c (copy_tree_r): Likewise.
4808         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4809         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4810         instead of TS_COMMON.
4811         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4812         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4813         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4814         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4815         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4816         ...and these...
4817         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4818         * tree.h: ...here.
4819         (TREE_CHAIN): Check for a TS_COMMON structure.
4820         (TREE_TYPE): Check for a TS_TYPED structure.
4821
4822 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4823
4824         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4825         cgraph_get_create_node instead of cgraph_node.
4826
4827 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4828
4829         * c-parser.c (c_parser_initelt): Updated call to
4830         objc_build_message_expr.
4831         (c_parser_postfix_expression): Likewise.
4832
4833 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4834
4835         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4836         MASK_MS_BITFIELD_LAYOUT bit.
4837
4838 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4839
4840         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4841         assert it is always true.
4842         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4843         moves.
4844
4845 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4846
4847         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4848         compiling Objective-C to be more efficient.
4849
4850 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4851
4852         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4853         argv_copied.
4854
4855 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4856
4857         * recog.h, genoutput.c, optabs.c: Revert last patch.
4858
4859 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4860
4861         PR target/48090
4862         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4863
4864 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4865
4866         * recog.h (insn_operand_data): Add an "allows_mem" field.
4867         * genoutput.c (output_operand_data): Initialize it.
4868         * optabs.c (maybe_legitimize_operand_same_code): New function.
4869         (maybe_legitimize_operand): Use it when matching the original
4870         op->value.
4871
4872 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4873
4874         * genpreds.c (process_define_predicate): Move most processing
4875         to gensupport.c.  Continue to validate the expression.
4876         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4877         (process_define_predicate): Move processing to gensupport.c.
4878         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4879         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4880         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4881         argument.
4882         (valid_predicate_name_p): New function, split out from old
4883         genpreds.c:process_define_predicate.
4884         (process_define_predicate): New function, combining code from
4885         old genpreds.c and genrecog.c functions.
4886         (process_rtx): Call it for DEFINE_PREDICATE and
4887         DEFINE_SPECIAL_PREDICATE.
4888
4889 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4890
4891         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4892         size of a '%A' memory reference.
4893         (T_DREG, T_QREG): New neon_builtin_type_bits.
4894         (arm_init_neon_builtins): Assert that the load and store operands
4895         are neon_struct_operands.
4896         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4897         (NEON_ARG_MEMORY): New builtin_arg.
4898         (neon_dereference_pointer): New function.
4899         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4900         Handle NEON_ARG_MEMORY.
4901         (arm_expand_neon_builtin): Update after above interface changes.
4902         Use NEON_ARG_MEMORY for loads and stores.
4903         * config/arm/predicates.md (neon_struct_operand): New predicate.
4904         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4905         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4906         (V_four_elem): Tweak formatting.
4907         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4908         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4909         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4910         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4911         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4912         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4913         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4914         Use %A in the output template.
4915         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4916         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4917         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4918         the width of the memory access.  Remove post-increment.
4919         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4920
4921 2011-04-12  Nick Clifton  <nickc@redhat.com>
4922
4923         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4924         instruction for interrupt handlers if the target is the basic V850
4925         architecture.
4926         (expand_epilogue): Likewise.
4927
4928 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4929
4930         PR rtl-optimization/48549
4931         * combine.c (propagate_for_debug): Also stop after BB_END of
4932         this_basic_block.  Process LAST and just stop processing after it.
4933         (combine_instructions): If last_combined_insn has been deleted,
4934         set last_combined_insn to its PREV_INSN.
4935
4936 2011-04-12  Richard Guenther  <rguenther@suse.de>
4937
4938         PR tree-optimization/46076
4939         * gimple.h (struct gimple_statement_call): Add fntype field.
4940         (gimple_call_fntype): Adjust.
4941         (gimple_call_set_fntype): New function.
4942         * gimple.c (gimple_build_call_1): Set the call function type.
4943         * gimplify.c (gimplify_call_expr): Preserve the function
4944         type the frontend used for the call.
4945         (gimplify_modify_expr): Likewise.
4946         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4947         function type.
4948         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4949         function type.
4950         * tree-ssa.c (useless_type_conversion_p): Function pointer
4951         conversions are useless.
4952
4953 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4954
4955         * cgraph.h (cgraph_node): Remove function declaration.
4956         (cgraph_create_node): Declare.
4957         (cgraph_get_create_node): Likewise.
4958         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4959         Updated all callers.
4960         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4961         the decl does not already exist.  Call cgraph_get_create_node instead
4962         of cgraph_node.
4963         (cgraph_get_create_node): New function.
4964         (cgraph_same_body_alias): Update comment.
4965         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4966         assert it does not return NULL.
4967         (cgraph_update_edges_for_call_stmt): Likewise.
4968         (cgraph_clone_edge): Likewise.
4969         (cgraph_create_virtual_clone): Likewise.
4970         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4971         instead of cgraph_node.
4972         (cgraph_add_new_function): Call cgraph_create_node or
4973         cgraph_get_create_node instead of cgraph_node.
4974         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4975         instead of cgraph_node.
4976         (record_eh_tables): Likewise.
4977         (mark_address): Likewise.
4978         (mark_load): Likewise.
4979         (build_cgraph_edges): Call cgraph_get_create_node instead
4980         of cgraph_node.
4981         (rebuild_cgraph_edges): Likewise.
4982         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4983         instead of cgraph_node.
4984         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4985         cgraph_node.
4986         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4987         cgraph_create_node instead of cgraph_node.
4988         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4989         of cgraph_node.
4990         * lto-cgraph.c (input_node): Likewise.
4991         * lto-streamer-in.c (input_function): Likewise.
4992         * varasm.c (mark_decl_referenced): Likewise.
4993         (assemble_alias): Likewise.
4994
4995 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4996
4997         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4998         instead of cgraph_node and assert it does not return NULL.
4999         * lto-streamer-in.c (lto_read_body): Likewise.
5000         * omp-low.c (new_omp_context): Likewise.
5001         (create_task_copyfn): Likewise.
5002         * tree-emutls.c (lower_emutls_function_body): Likewise.
5003         * matrix-reorg.c (transform_allocation_sites): Likewise.
5004
5005 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5006
5007         PR c/48552
5008         * c-typeck.c (build_asm_expr): Error out on attempts to use
5009         void type outputs or inputs for constraints that allow reg or
5010         don't allow memory.
5011
5012 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5013             Richard Earnshaw  <rearnsha@arm.com>
5014
5015         PR target/48250
5016         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5017         to use sign-magnitude offsets. Reject unsupported unaligned
5018         cases. Add detailed description in comments.
5019         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5020         condition from TARGET_32BIT to TARGET_ARM.
5021
5022 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5023
5024         * tree.h (struct typed_tree): New.
5025         (struct tree_common): Include it instead of tree_base.
5026         (TREE_TYPE): Update for new location of type field.
5027         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5028         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5029         (union tree_node): Add typed field.
5030         * treestruct.def (TS_TYPED): New.
5031         * lto-streamer.c (check_handled_ts_structures): Handle it.
5032         * tree.c (MARK_TS_TYPED): New macro.
5033         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5034
5035 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5036
5037         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5038         (force_nonfallthru): Do not alter the loop nest if no basic block
5039         was created.
5040
5041 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5042
5043         * config/i386/sse.md (VI): New mode iterator.
5044         (SSEMODEI): Remove.
5045         (AVX256MODEI): Ditto.
5046         (AVXMODEF4P): Ditto.
5047         (avxvecpsmode): Ditto.
5048         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5049         (sse2_andnot<mode>3): New expander.
5050         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5051         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5052         (<any_logic:code><mode>3): Use VI mode iterator.
5053         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5054         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5055         (*andnottf3): Handle AVX three-operand constraints.
5056         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5057
5058 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5059             Robert Millan  <rmh@gnu.org>
5060
5061         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5062         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5063         GNU_USER_DYNAMIC_LINKER64): Define.
5064         (REG_NAME): Don't undefine.
5065         (MD_UNWIND_SUPPORT): Undefine.
5066         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5067         (REG_NAME): Don't undefine.
5068         (MD_UNWIND_SUPPORT): Undefine.
5069         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5070
5071 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5072
5073         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5074         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5075
5076 2011-04-11  Xinliang David Li  <davidxl@google.com>
5077
5078         * value-profile.c (check_ic_target): New function.
5079         (gimple_ic_transform): Sanity check indirect call target.
5080         * gimple-low.c (gimple_check_call_args): Interface change.
5081         (gimple_check_call_matching_types): New function.
5082         * tree-inline.c (tree_can_inline_p): Call new function.
5083
5084 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5085
5086         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5087         tree-pretty-print.h & realmpfr.h.
5088
5089 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5090
5091         PR middle-end/48464
5092         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5093         (setup_allocno_and_important_classes): Ditto.
5094
5095 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5096
5097         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5098         GNU_USER_DYNAMIC_LINKER.
5099         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5100         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5101         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5102         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5103         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5104         GNU_USER_TARGET_OS_CPP_BUILTINS.
5105         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5106         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5107         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5108         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5109         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5110         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5111         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5112         GNU_USER_TARGET_OS_CPP_BUILTINS.
5113         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5114         GNU_USER_DYNAMIC_LINKER.
5115         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5116         GNU_USER_TARGET_OS_CPP_BUILTINS.
5117         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5118         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5119         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5120         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5121         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5122         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5123         GNU_USER_DYNAMIC_LINKER64): Remove.
5124         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5126         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5127         GNU_USER_DYNAMIC_LINKER.
5128         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5129         GNU_USER_TARGET_OS_CPP_BUILTINS.
5130         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5131         GNU_USER_TARGET_OS_CPP_BUILTINS.
5132         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5133         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5134         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5135         GNU_USER_TARGET_OS_CPP_BUILTINS.
5136         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5137         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5138         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5139         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5140         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5141         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5142         GNU_USER_DYNAMIC_LINKER.
5143         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5144         GNU_USER_TARGET_OS_CPP_BUILTINS.
5145         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5146         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5147         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5148         GNU_USER_DYNAMIC_LINKER.
5149         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5150         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5151         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5152         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5153         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5154         GNU_USER_DYNAMIC_LINKER.
5155         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5156         GNU_USER_DYNAMIC_LINKERN32.
5157         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5158         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5159         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5160         GNU_USER_DYNAMIC_LINKER32.
5161         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5162         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5163         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5164         GNU_USER_DYNAMIC_LINKER.
5165         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5166         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5167         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5168         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5169         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5170         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5171         GNU_USER_DYNAMIC_LINKER32.
5172         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5173         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5174         GNU_USER_DYNAMIC_LINKER.
5175         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5177         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5178         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5179         GNU_USER_DYNAMIC_LINKER64.
5180         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5181         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5182         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5183         GNU_USER_DYNAMIC_LINKER.
5184         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5185         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5186         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5187         GNU_USER_DYNAMIC_LINKER.
5188         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5189         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5190         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5191         GNU_USER_DYNAMIC_LINKER32.
5192         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5193         GNU_USER_DYNAMIC_LINKER64.
5194         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5195         GNU_USER_DYNAMIC_LINKER64.
5196         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5197         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5198         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5199         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5200         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5201
5202 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5203
5204         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5205         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5206         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5207         GNU_USER_DYNAMIC_LINKER.
5208         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5209         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5210         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5211         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5212         GNU_USER_DYNAMIC_LINKER64.
5213         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5214         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5215         GNU_USER_LINK_EMULATION.
5216         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5217         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5218         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5219         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5220         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5221         CPP_SPEC, CC1_SPEC): Remove.
5222         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5223         (GNU_USER_DYNAMIC_LINKER): Define.
5224         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5225         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5226         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5227         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5228         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5229         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5230         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5231         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5232         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5233         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5234         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5235         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5236         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5237         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5238         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5239         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5240         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5241         GNU_USER_DYNAMIC_LINKER.
5242         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5243         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5244         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5245         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5246         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5247         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5248         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5249         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5250         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5251         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5252
5253 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5254
5255         PR target/9601
5256         PR target/11772
5257         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5258         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5259         comment.
5260         (ix86_is_msabi_thiscall): Removed.
5261         (ix86_is_type_thiscall): Likewise.
5262         (ix86_get_callcvt): New function.
5263         (ix86_comp_type_attributes): Simplify check.
5264         (ix86_function_regparm): Use ix86_get_callcvt for calling
5265         convention attribute checks.
5266         (ix86_return_pops_args): Likewise.
5267         (ix86_static_chain): Likewise.
5268         (x86_this_parameter): Likewise.
5269         (x86_output_mi_thunk): Likewise.
5270         (ix86_function_type_abi): Optimize check for types without attributes.
5271         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5272         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5273         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5274         by flag-values.
5275         (IX86_BASE_CALLCVT): Helper macro.
5276         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5277         Use ix86_get_callcvt for calling convention attribute checks and avoid
5278         symbol-decoration for stdcall in TARGET_RTD case.
5279         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5280         Likewise.
5281         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5282         for declaration.
5283
5284 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5285
5286         * config/i386/sse.md (VI_128): New mode iterator.
5287         (VI12_128): Rename from SSEMODE12.
5288         (VI14_128): Rename from SSEMODE14.
5289         (VI124_128): New mode iterator.
5290         (VI24_128): Rename from SSEMODE248.
5291         (VI248_128): Rename from SSEMODE248.
5292         (SSEMODE124C8): Remove.
5293         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5294         (*sse2_<plusminus_insn><mode>3): Merge with
5295         *avx_<plusminus_insn><mode>3.
5296         (*mulv8hi3): Merge with *avx_mulv8hi3.
5297         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5298         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5299         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5300         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5301         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5302         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5303         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5304         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5305         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5306         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5307         (*<smaxmin:code>v8hi3): Ditto.
5308         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5309         (*<smaxmin:code>v16qi3): Ditto.
5310         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5311         (*sse2_eq<mode>3): Ditto.
5312         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5313         (*sse2_gt<mode>3): Ditto.
5314         (vcondv2di): Split out of vcond<mode>.
5315         (vconduv2di): Split out of vcondu<mode>.
5316
5317 2011-04-11  Richard Guenther  <rguenther@suse.de>
5318
5319         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5320         before calling tree_low_cst.
5321
5322 2011-04-11  Richard Guenther  <rguenther@suse.de>
5323
5324         * stor-layout.c (layout_type): Compute all array index size operations
5325         in the original type.
5326         (initialize_sizetypes): Add comment.
5327         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5328
5329 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5330
5331         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5332
5333 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5334
5335         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5336         of cgraph_node, handle NULL return value.
5337         (cgraph_global_info): Likewise.
5338         (cgraph_rtl_info): Likewise.
5339         * tree-inline.c (estimate_num_insns): Likewise.
5340         * gimplify.c (unshare_body): Likewise.
5341         (unvisit_body): Likewise.
5342         (gimplify_body): Likewise.
5343         * predict.c (optimize_function_for_size_p): Likewise.
5344         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5345         (call_may_clobber_ref_p_1): Likewise.
5346         * varasm.c (function_section_1): Likewise.
5347         (assemble_start_function): Likewise.
5348
5349 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5350
5351         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5352         of cgraph_node.
5353         * final.c (rest_of_clean_state): Likewise.
5354         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5355         * passes.c (pass_init_dump_file): Likewise.
5356         (execute_all_ipa_transforms): Likewise.
5357         (function_called_by_processed_nodes_p): Likewise.
5358         * predict.c (maybe_hot_frequency_p): Likewise.
5359         (probably_never_executed_bb_p): Likewise.
5360         (compute_function_frequency): Likewise.
5361         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5362         (unnest_nesting_tree_1): Likewise.
5363         (lower_nested_functions): Likewise.
5364         * tree-optimize.c (execute_fixup_cfg): Likewise.
5365         (tree_rest_of_compilation): Likewise.
5366         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5367         * tree-sra.c (ipa_early_sra): Likewise.
5368         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5369         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5370         * ipa.c (record_cdtor_fn): Likewise.
5371         * ipa-inline.c (cgraph_early_inlining): Likewise.
5372         (compute_inline_parameters_for_current): Likewise.
5373         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5374         * ipa-pure-const.c (local_pure_const): Likewise.
5375         * ipa-split.c (split_function): Likewise.
5376         (execute_split_functions): Likewise.
5377         * cgraphbuild.c (build_cgraph_edges): Likewise.
5378         (rebuild_cgraph_edges): Likewise.
5379         (cgraph_rebuild_references): Likewise.
5380         (remove_cgraph_callee_edges): Likewise.
5381         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5382         (verify_cgraph_node): Likewise.
5383         (cgraph_analyze_functions): Likewise.
5384         (cgraph_preserve_function_body_p): Likewise.
5385         (save_inline_function_body): Likewise.
5386         (save_inline_function_body): Likewise.
5387         * tree-inline.c (copy_bb): Likewise.
5388         (optimize_inline_calls): Likewise.
5389
5390 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5391
5392         PR tree-optimization/48195
5393         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5394         ipa_check_create_edge_args.
5395         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5396         ipa_check_create_edge_args.
5397         * ipa-inline.c (inline_generate_summary): Do not call
5398         ipa_check_create_node_params and ipa_check_create_edge_args.
5399         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5400         ipa_check_create_edge_args.
5401
5402 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5403
5404         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5405         instead of loop.
5406         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5407         * function.c (record_hard_reg_sets): Likewise.
5408         * ira.c (compute_regs_asm_clobbered): Likewise.
5409         * sched-deps.c (sched_analyze_1): Likewise.
5410         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5411
5412 2011-04-09  Xinliang David Li  <davidxl@google.com>
5413
5414         PR tree-optimization/PR48484
5415         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5416         has_valid_pred lazily
5417
5418 2011-04-09  Duncan Sands  <baldrick@free.fr>
5419
5420         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5421
5422 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5423
5424         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5425         cost of I0 to zero at the end, if any.
5426
5427 2011-04-08  Xinliang David Li  <davidxl@google.com>
5428
5429         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5430         to insane profile data.
5431
5432 2011-04-08  Xinliang David Li  <davidxl@google.com>
5433
5434         * ipa-cp.c (ipcp_update_profiling): Correct
5435          negative scale factor due to insane profile data.
5436
5437 2011-04-08  Xinliang David Li  <davidxl@google.com>
5438
5439         * final.c (dump_basic_block_info): New function.
5440         (final): Dump basic block.
5441         (final_scan_insn): Remove old dump.
5442
5443 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5444
5445         PR target/47829
5446         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5447         crtbegin/crtend.
5448
5449 2011-04-08  Michael Matz  <matz@suse.de>
5450
5451         PR middle-end/48389
5452         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5453         functions.
5454         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5455         * rtl.h (rebuild_jump_labels_chain): Declare.
5456         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5457         insns inserted on edges.
5458
5459 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5460
5461         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5462         * config/arm/arm-arches.def: New.
5463         * config/arm/arm-opts.h: New.
5464         * config/arm/genopt.sh: New.
5465         * config/arm/arm-tables.opt: New (generated).
5466         * config/arm/arm.c (arm_handle_option, arm_target_help,
5467         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5468         (all_architectures): Get most table contents from arm-arches.def.
5469         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5470         arm_selected_tune here.
5471         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5472         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5473         (march=, mcpu=, mtune=): Use Enum and Var.
5474         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5475         (arm.o): Update dependencies.
5476
5477 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5478
5479         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5480         of header_file.
5481         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5482         (write_typed_alloc_defns): Likewise.
5483         (main): Calls write_typed_alloc_defns with output_header.
5484
5485 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5486
5487         PR inline-asm/48435
5488         * ira-color.c (setup_profitable_hard_regs): Add comments.
5489         Don't take prohibited hard regs into account.
5490         (setup_conflict_profitable_regs): Rename to
5491         get_conflict_profitable_regs.
5492         (check_hard_reg_p): Check prohibited hard regs.
5493
5494 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5495
5496         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5497         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5498         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5499
5500 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5501
5502         PR target/48366
5503         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5504         move from floating point to shift amount register.
5505         (emit_move_sequence): Remove secondary reload support for floating
5506         point to shift amount amount register copies.
5507         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5508         amount register copies.
5509         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5510         register, return false if mode isn't a scalar integer mode.
5511         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5512
5513 2011-04-08  Richard Guenther  <rguenther@suse.de>
5514
5515         * gimple.c (gimple_call_flags): Remove kludge.
5516
5517 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5518
5519         * sel-sched.c (sel_region_init): Move call to
5520         sel_setup_region_sched_flags after setup_current_loop_nest.
5521
5522 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5523
5524         PR rtl-optimization/48272
5525         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5526         init_insn_reg_pressure_info.  Adjust a caller.
5527         * sched-int.h (init_insn_reg_pressure_info): Declare.
5528         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5529         when sched-pressure is enabled.
5530
5531 2011-04-08  Richard Guenther  <rguenther@suse.de>
5532
5533         * gimple.c (gimple_set_modified): Do not queue calls to
5534         MODIFIED_NORETURN_CALLS here ...
5535         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5536
5537 2011-04-08  Richard Guenther  <rguenther@suse.de>
5538
5539         PR lto/48467
5540         * toplev.c (lang_dependent_init): Do not open asm_out_file
5541         in WPA mode, nor perform debug machinery initialization.
5542         (finalize): Do not unlink asm_out_file in WPA mode.
5543
5544 2011-04-08  Richard Guenther  <rguenther@suse.de>
5545
5546         * gimple.h (gimple_call_fntype): New function.
5547         (gimple_call_return_type): Use it.
5548         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5549         * gimple-low.c (gimple_check_call_args): Likewise.
5550         * gimple.c (gimple_call_flags): Likewise.
5551         (gimple_call_arg_flags): Likewise.
5552         (gimple_call_return_flags): Likewise.
5553         * tree-cfg.c (verify_gimple_call): Likewise.
5554         (do_warn_unused_result): Likewise.
5555         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5556         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5557
5558 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5559
5560         PR rtl-optimization/48235
5561         * sel-sched.c (code_motion_process_successors): Recompute the last
5562         insn in basic block if control flow changed.
5563         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5564         Update condition for ilist_remove.
5565
5566 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5567
5568         PR rtl-optimization/48302
5569         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5570         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5571         it to record added preheader blocks.
5572         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5573         on to sel_add_loop_preheaders.
5574         (sel_region_init): Move call to setup_current_loop_nest after
5575         sel_init_bbs.
5576
5577 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5578
5579         PR target/48273
5580         * cfgloop.h (loop_has_exit_edges): New helper.
5581         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5582         non-clonable.
5583         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5584         that have no exit edges.
5585
5586 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5587
5588         PR rtl-optimization/48442
5589         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5590         all callers.  Adjust assert.
5591
5592 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5593
5594         PR tree-optimization/48377
5595         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5596         is_packed to true even for types with smaller TYPE_ALIGN than
5597         TYPE_SIZE.
5598
5599 2011-04-08  Richard Guenther  <rguenther@suse.de>
5600
5601         PR bootstrap/48513
5602         * doc/tm.texi: Re-generate.
5603
5604 2011-04-08  Wei Guozhi  <carrot@google.com>
5605
5606         PR target/47855
5607         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5608         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5609         * config/arm/arm.md (*push_multi): Change the length computation to
5610         call a C function.
5611
5612 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5613
5614         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5615         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5616         * doc/tm.texi: Regenerate.
5617         * system.h (ASM_OUTPUT_BSS): Poison.
5618         * varasm.c (asm_output_bss): Remove function.
5619         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5620
5621         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5622         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5623         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5624         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5625         Likewise.
5626         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5627         Likewise.
5628         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5629         Likewise.
5630         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5631
5632 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5633
5634         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5635         EnumValue lines.
5636
5637 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5638
5639         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5640         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5641         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5642         OPT_mcpu32.
5643         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5644         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5645         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5646         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5647         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5648         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5649         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5650         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5651         options.  Don't map other m68k options manually.  Don't handle
5652         old-style options as canonical.
5653         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5654         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5655
5656 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5657
5658         * basic-block.h (force_nonfallthru): Move to...
5659         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5660         (force_nonfallthru): ...here.
5661         * cfghooks.c (force_nonfallthru): New function.
5662         * cfgrtl.c (force_nonfallthru): Rename into...
5663         (rtl_force_nonfallthru): ...this.
5664         (commit_one_edge_insertion): Do not set AUX field.
5665         (commit_edge_insertions): Do not discover new basic blocks.
5666         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5667         (cfg_layout_rtl_cfg_hooks): Likewise.
5668         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5669         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5670         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5671
5672 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5673
5674         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5675         Remove macros.
5676
5677 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5678
5679         * config/i386/sse.md: Update copyright year.
5680         (avxcvtvecmode): Remove.
5681         (sse_movhlps): Merge with *avx_movhlps.
5682         (sse_movlhps): Merge with *avx_movlhps.
5683         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5684         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5685         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5686         (sse_loadhps): Merge with *avx_loadhps.
5687         (sse_storelps): Merge with *avx_storelps.
5688         (sse_loadlps): Merge with *avx_loadlps.
5689         (sse_movss): Merge with *avx_movss.
5690         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5691         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5692         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5693         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5694         (vec_set<mode>_0): Ditto.
5695         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5696         (sse4_1_insertps): Merge with *avx_insertps.
5697         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5698         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5699         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5700         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5701         (sse2_storehpd): Merge with *avx_storehpd.
5702         (sse2_loadhpd): Merge with *avx_loadhpd.
5703         (sse2_loadlpd): Merge with *avx_loadlpd.
5704         (sse2_movsd): Merge with *avx_movsd.
5705         (*vec_concatv2df): Merge with *vec_concatv2df.
5706
5707 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5708
5709         PR debug/48343
5710         * combine.c (combine_instructions): Add last_combined_insn,
5711         update it if insn is after it, pass it to all try_combine calls.
5712         (try_combine): Add last_combined_insn parameter, pass it instead of
5713         i3 to propagate_for_debug.
5714
5715 2011-04-07  Nick Clifton  <nickc@redhat.com>
5716
5717         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5718         to handle MDR <-> data register transfers.
5719         (movhi_internal): Likewise.
5720
5721 2011-04-07  Alan Modra  <amodra@gmail.com>
5722
5723         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5724         previous stack info.
5725
5726 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5727
5728         PR target/43920
5729         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5730         flow_find_cross_jump.  Swap variables to implement backward replacement.
5731         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5732
5733 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5734
5735         PR target/43920
5736         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5737         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5738         and bb2.
5739         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5740         src1 or src2.  Redirect edges to the last basic block.  Update
5741         frequency and count on multiple basic blocks in case of fallthru.
5742
5743 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5744
5745         PR target/43920
5746         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5747         function.
5748         (old_insns_match_p): Change return type.  Replace return false/true
5749         with return dir_none/dir_both.  Use can_replace_by.
5750         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5751         direction from dir_p.  Register replacement direction in dir, last_dir
5752         and afterlast_dir.  Handle new return type of old_insns_match_p using
5753         merge_dir.  Return replacement direction in dir_p.
5754         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5755         return type of old_insns_match_p.
5756         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5757         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5758         flow_find_cross_jump.
5759         * basic-block.h (enum replace_direction): New type.
5760         (flow_find_cross_jump): Add parameter to declaration.
5761
5762 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5763
5764         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5765         (AVXMODEDCVTPS2DQ): Ditto.
5766         (VEC_FLOAT_MODE): Ditto.
5767         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5768         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5769         (<any_logic:code><mode>3): Use VF mode iterator.
5770         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5771         Use VF mode iterator.
5772         (copysign<mode>3): Use VF mode iterator.
5773         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5774         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5775         (*<any_logic:code><MODEF:mode>3): Merge with
5776         *avx_<any_logic:code><MODEF:mode>3.
5777         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5778         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5779         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5780         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5781         (sse2_cvtdq2ps): Use %v modifier.
5782         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5783         (avx_cvtps2dq<avxmodesuffix>): Remove.
5784         (sse2_cvtps2dq): Use %v modifier.
5785         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5786         (avx_cvttps2dq<avxmodesuffix>): Remove.
5787         (sse2_cvttps2dq): Use %v modifier.
5788         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5789         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5790         (sse2_cvtsd2siq): Fix insn template.
5791         (sse2_cvtsd2siq_2): Ditto.
5792         (sse2_cvttsd2siq): Ditto.
5793         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5794         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5795
5796 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5797
5798         * gcov-io.c: Use GCC Runtime Library Exception.
5799
5800 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5801
5802         PR debug/48466
5803         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5804         as base_reg whatever register reg has been eliminated to, instead
5805         of hardcoding STACK_POINTER_REGNUM.
5806
5807 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5808
5809         * doc/tm.texi.in: Document C target hooks as separate from general
5810         target hooks.
5811         * doc/tm.texi: Regenerate.
5812         * genhooks.c (struct hook_desc): Add docname field.
5813         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5814         docname field.
5815         (hook_array): Include c-target.def.
5816         (emit_documentation): Use docname field in output.
5817         (emit_init_macros): Take docname argument.  Only emit definitions
5818         for hooks matching docname.
5819         (main): Expect additional arguments in all cases.  Pass argument
5820         to emit_init_macros.
5821         * target.def: Move initial macro definitions and comments to
5822         target-hooks-macros.h.
5823         (gcc_targetcm): Move to c-family/c-target.def.
5824         * target.h (targetcm): Move declaration to c-family/c-target.h.
5825         * targhooks.c (default_handle_c_option): Move to
5826         c-family/c-opts.c.
5827         * targhooks.h (default_handle_c_option): Move declaration to
5828         c-family/c-common.h.
5829         * target-hooks-macros.h: New file.
5830         * config.gcc (target_has_targetcm): Define and use to add to
5831         c_target_objs and cxx_target_objs.
5832         * config/default-c.c: New file.
5833         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5834         of target.h and target-def.h.
5835         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5836         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5837         darwin_check_cfstring_format_arg): Make static.
5838         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5839         TARGET_STRING_OBJECT_REF_TYPE_P,
5840         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5841         * config/darwin-protos.h (darwin_objc_construct_string,
5842         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5843         declare.
5844         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5845         TARGET_STRING_OBJECT_REF_TYPE_P,
5846         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5847         * config/t-darwin (darwin-c.o): Update dependencies.
5848         * system.h (TARGET_HAS_TARGETCM): Poison.
5849         * Makefile.in (TARGET_H): Update.
5850         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5851         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5852         (default-c.o): New target.
5853         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5854         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5855         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5856         c-target.def.
5857         (build/genhooks.o): Update dependencies.
5858
5859 2011-04-06  Richard Guenther  <rguenther@suse.de>
5860
5861         * ipa-inline.c (enum inlining_mode): Remove.
5862         (cgraph_flatten): Use some other token.
5863         (cgraph_edge_early_inlinable_p): New function, split out from ...
5864         (cgraph_perform_always_inlining): New function, split out from ...
5865         (cgraph_decide_inlining_incrementally): ... here.
5866         (cgraph_mark_inline_edge): Adjust.
5867         (cgraph_early_inlining): Re-structure.
5868         (pass_early_inline): Require SSA form.
5869
5870 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5871             Julian Brown  <julian@codesourcery.com>
5872             Mark Shinwell  <shinwell@codesourcery.com>
5873
5874         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5875         LO_REGS only for Thumb-1.
5876         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5877         be used in short instructions when optimising for size on Thumb-2.
5878
5879 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5880
5881         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5882         associated with user returns to be preserved.
5883
5884 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5885
5886         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5887         symbol_queue_size, DBXOUT_DECR_NESTING,
5888         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5889         if XCOFF_DEBUGGING_INFO.
5890
5891 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5892
5893         * config/i386/i386.md (attribute isa): New.
5894         (attribute enabled): New.
5895         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5896         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5897         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5898         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5899         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5900         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5901         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5902         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5903
5904         * config/i386/sse.md (VF): New mode iterator.
5905         (VF1): Ditto.
5906         (VF2): Ditto.
5907         (VF_128): Ditto.
5908         (SSEMODEF4): Remove.
5909         (attribute sse): Handle V8SF and V4DF modes.
5910         (<absneg:code><mode>2): Use VF mode iterator.
5911         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5912         mode iterator.
5913         (<plusminus_insn><mode>3): Use VF mode iterator.
5914         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5915         Use VF mode iterator.
5916         (<sse>_vm<plusminus_insn><mode>3): Merge with
5917         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5918         (mul<mode>3): Use VF mode iterator.
5919         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5920         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5921         mode iterator.
5922         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5923         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5924         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5925         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5926         mode iterator.
5927         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5928         Use VF1 mode iterator.
5929         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5930         (sqrt<VF2:mode>2): New expander.
5931         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5932         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5933         and sqrtv2df2.  Use VF mode iterator.
5934         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5935         mode iterator.
5936         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5937         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5938         Use VF1 mode iterator.
5939         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5940         (<smaxmin:code><mode>3): Use VF mode iterator.
5941         (*<smaxmin:code><mode>3_finite): Merge with
5942         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5943         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5944         (<sse>_vm<smaxmin:code><mode>2): Merge with
5945         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5946         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5947         mode iterator.
5948         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5949         mode iterator.
5950         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5951         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5952         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5953         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5954         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5955         VF mode iterator.
5956         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5957         Use VF_128 mode iterator.
5958         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5959         mode iterator.
5960         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5961         VF_128 mode iterator.
5962         (vcond<mode>): Use VF mode iterator.
5963         * config/i386/predicates.md (sse_comparison_operator): Merge with
5964         avx_comparison_float_operator.  Do not declare as special_predicate.
5965         * config/i386/i386.c (struct builtin_description): Update for renamed
5966         compare patterns.
5967         (ix86_expand_args_builtin): Ditto.
5968         (ix86_expand_sse_compare_mask): Ditto.
5969
5970 2011-04-06  Richard Guenther  <rguenther@suse.de>
5971
5972         * tree-inline.c (estimate_num_insns): For calls simply account
5973         for all passed arguments and a used return value.
5974
5975 2011-04-06  Richard Guenther  <rguenther@suse.de>
5976
5977         PR tree-optimization/47663
5978         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5979         call_stmt_time fields.
5980         (cgraph_edge_inlinable_p): Declare.
5981         (cgraph_edge_recursive_p): New inline function.
5982         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5983         (cgraph_clone_edge): Copy it.
5984         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5985         Account for call stmt time.
5986         (cgraph_estimate_time_after_inlining): Take edge argument.
5987         (cgraph_estimate_edge_growth): Account call stmt size.
5988         (cgraph_estimate_size_after_inlining): Take edge argument.
5989         (cgraph_mark_inline_edge): Adjust.
5990         (cgraph_check_inline_limits): Likewise.
5991         (cgraph_recursive_inlining_p): Remove.
5992         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5993         (cgraph_decide_recursive_inlining): Take edge argument and
5994         adjust.
5995         (cgraph_decide_inlining_of_small_functions): Do not avoid
5996         diags for recursive inlining here.
5997         (cgraph_flatten): Adjust.
5998         (cgraph_decide_inlining_incrementally): Likewise.
5999         (estimate_function_body_sizes): Remove call cost handling.
6000         (compute_inline_parameters): Initialize caller edge call costs.
6001         (cgraph_estimate_edge_growth): New function.
6002         (cgraph_estimate_growth): Use it.
6003         (cgraph_edge_badness): Likewise.
6004         (cgraph_check_inline_limits): Take an edge argument.
6005         (cgraph_decide_inlining_of_small_functions): Adjust.
6006         (cgraph_decide_inlining): Likewise.
6007         * tree-inline.c (estimate_num_insns): Only account for call
6008         return value if it is used.
6009         (expand_call_inline): Avoid diagnostics on recursive inline
6010         functions here.
6011         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6012         (input_edge): Input edge call costs.
6013
6014 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6015
6016         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6017
6018 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6019
6020         * doc/invoke.texi (Spec Files): Fix typo.
6021
6022 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6023
6024         * profile.c (branch_prob): Move declaration of local variable.  Remove
6025         obsolete ??? comment.  Expand the location explicitly instead of using
6026         the LOCATION_FILE and LOCATION_LINE macros.
6027
6028 2011-04-06  Wei Guozhi  <carrot@google.com>
6029
6030         PR target/47855
6031         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6032         (arm_cond_branch): Likewise.
6033         (arm_cond_branch_reversed): Likewise.
6034         (arm_jump): Likewise.
6035         (push_multi): Likewise.
6036         * config/arm/constraints.md (Py): New constraint.
6037
6038 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6039
6040         PR bootstrap/48471
6041         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6042         Move these...
6043         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6044         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6045         #ifdef DBX_DEBUGGING_INFO.
6046
6047 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6048
6049         PR bootstrap/48403
6050         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6051         if old and new states differ.
6052
6053 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6054
6055         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6056         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6057         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6058         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6059         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6060         mcfv4e): Use Alias.
6061         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6062         ColdFire options to -mcpu= options.
6063
6064 2011-04-05  Jeff Law  <law@redhat.com>
6065
6066         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6067         check if BB is a successor of LOOP->header and return
6068         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6069
6070 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6071
6072         * cprop.c (struct reg_use): Remove.
6073         (reg_use_table): Make an array of RTX.
6074         (find_used_regs, constprop_register, local_cprop_pass,
6075         bypass_block): Simplify users of reg_use_table.
6076         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6077         on one of the uses found by find_used_regs.
6078
6079 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6080
6081         PR bootstrap/48469
6082         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6083         declaration.
6084
6085 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6086
6087         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6088         as an rtx.
6089         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6090
6091 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6092
6093         PR middle-end/48441
6094         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6095
6096 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6097
6098         * combine.c: Include obstack.h.
6099         (struct insn_link): Define.
6100         (uid_log_links): Adjust type.
6101         (FOR_EACH_LOG_LINK): New macro.
6102         (insn_link_obstack): Declare.
6103         (alloc_insn_link): Define.
6104         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6105         type of link variables.
6106         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6107         (try_combine, record_promoted_values, distribute_notes): Likewise.
6108         (distribute_links): Likewise.  Tweak prototype.
6109         (clear_log_links): Delete.
6110         (adjust_for_new_dest): Call alloc_insn_link.
6111         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6112
6113 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6114
6115         * gcse.c (modify_mem_list): Convert to an array of VECs.
6116         (canon_modify_mem_list, compute_transp): Tweak formatting.
6117         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6118         (load_killed_in_block_p): Likewise.
6119         (record_last_mem_set_info): Likewise.
6120         (clear_modify_mem_tables): Likewise.
6121
6122 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6123
6124         PR middle-end/48461
6125         * function.c (emit_use_return_register_into_block): Only define if
6126         HAVE_return.
6127
6128 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6129
6130         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6131
6132 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6133
6134         * config/rx/rx-opts.h: New.
6135         * config/rx/rx.c (rx_cpu_type): Remove.
6136         (rx_handle_option): Don't assert that global structures are in
6137         use.  Access variables via opts pointer.  Defer most handling of
6138         OPT_mint_register_.  Use error_at.
6139         (rx_option_override): Handle deferred OPT_mint_register_ here.
6140         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6141         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6142         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6143         (rx_cpu_types): New Enum and EnumValue entries.
6144         (mint-register=): Use Defer and use Var accordingly.
6145
6146 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6147
6148         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6149         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6150         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6151         Move these...
6152         (debug_free_queue, debug_nesting, symbol_queue_index):
6153         ...and these...
6154         * dbxout.c: ...to here.  Make static.
6155
6156 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6157
6158         * gcse.c (modify_pair): Define.  Define a VEC of it.
6159         (canon_modify_mem_list): Convert to an array of VECs.
6160         (free_insn_expr_list_list): Delete.
6161         (clear_modify_mem_tables): Call VEC_free instead.
6162         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6163         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6164         (canon_list_insert, compute_transp): Likewise.
6165
6166 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6167
6168         PR target/43920
6169         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6170         for size.
6171
6172 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6173
6174         PR target/43920
6175         * function.c (emit_use_return_register_into_block): New function.
6176         (thread_prologue_and_epilogue_insns): Use
6177         emit_use_return_register_into_block.
6178
6179 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6180
6181         PR target/43920
6182         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6183         insn.
6184
6185 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6186
6187         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6188
6189 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6190
6191         * config/arm/arm.md (define_constants for unspec): Replace with
6192         define_c_enum.
6193         (define_constants for unspecv): Replace with define_c_enum.
6194         * config/arm/neon.md (define_constants for unspec): Replace with
6195         define_c_enum.
6196
6197 2011-04-04  Richard Henderson  <rth@redhat.com>
6198
6199         PR bootstrap/48400
6200         * dwarf2out.c (output_line_info): Always emit line info from
6201         at least one section.
6202         (dwarf2out_init): Create text_section_line_info here ...
6203         (set_cur_line_info_table): ... not here.
6204
6205 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6206
6207         PR target/48380
6208         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6209         not called.
6210
6211         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6212
6213 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6214
6215         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6216         (expr_equiv_p): Remove.
6217         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6218         (hash_scan_set): Update call to insert_set_in_table.
6219         (dump_hash_table): Dump <dest, src> pair.
6220         (lookup_set): Simplify.  Lookup <dest, src> pair.
6221         (compute_transp): Remove, fold heavily simplified code into...
6222         (compute_local_properties): ...here.  Expect COMP and TRANSP
6223         unconditionally.
6224         (find_avail_set): Take set directly from struct expr.
6225         (find_bypass-set): Likewise.
6226         (bypass_block): Likewise.
6227         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6228
6229         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6230         checks on form of COND from find_implicit_sets to here.
6231         (find_implicit_sets): Cleanup control flow. Split critical edges
6232         if it exposes implicit sets.  Allocate/resize implicit_sets as
6233         necessary.
6234         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6235         changed something.  Run df_analyze after find_implicit_sets if any
6236         edges were split.  Do not allocate implicit_sets here.
6237
6238         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6239         (gcse_obstack): Renamed to cprop_obstack.
6240         (GNEW, GNEWVEC, GNEWVAR): Remove.
6241         (gmalloc): Remove.
6242         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6243         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6244         (gcse_alloc): Likewise, and rename to cprop_alloc.
6245         (alloc_gcse_men, free_gcse_mem): Remove.
6246         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6247         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6248         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6249
6250         * cprop.c (oprs_not_set_p): Remove.
6251         (mark_set, mark_clobber): Remove.
6252         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6253         (reg_not_set_p): New function.
6254         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6255         (cprop_insn): Likewise.
6256         (cprop_jump): Use FOR_EACH_EDGE.
6257
6258 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6259
6260         PR bootstrap/48403
6261         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6262         (rank_for_schedule): Use scheduled_insns vector instead of
6263         last_scheduled_insn.
6264         (ok_for_early_queue_removal): Likewise.
6265         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6266         we have a dbg_cnt.
6267         (choose_ready): Likewise.
6268         (commit_schedule): Use VEC_iterate.
6269         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6270         a dbg_cnt, use it and ensure the first insn is in the ready list.
6271         (haifa_sched_init): Allocate scheduled_insns.
6272         (sched_extend_ready_list): Don't allocate it; reserve space.
6273         (haifa_sched_finish): Free it.
6274
6275 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6276
6277         * optc-gen.awk: Always remove type from Variable entry before
6278         recording in var_seen.
6279
6280 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6281
6282         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6283         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6284         call to tidy_fallthru_edges.
6285
6286 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6287
6288         * doc/options.texi (ToLower): Document.
6289         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6290         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6291         * opts.h (cl_option): Add cl_tolower field.
6292         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6293         arguments with lowercase strings.
6294         * config/rx/rx.opt (mcpu=): Add ToLower.
6295         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6296         argument.
6297
6298 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6299
6300         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6301
6302 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6303
6304         * config/vax/vax.c: Include reload.h.
6305
6306 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6307
6308         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6309         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6310         (sparc_preferred_reload_class): New function.
6311
6312 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6313
6314         PR debug/48401
6315         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6316         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6317
6318 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6319
6320         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6321         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6322
6323 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6324
6325         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6326         (ASM_OUTPUT_ALIGNED_BSS): Define.
6327
6328 2011-04-03  Michael Matz  <matz@suse.de>
6329
6330         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6331         and next_slot members.
6332         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6333         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6334         (lto_streamer_cache_append): Declare.
6335         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6336         unsigned index, remove offset parameter, ensure that we append
6337         or update existing entries.
6338         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6339         parameter, update next_slot for append.
6340         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6341         parameter.
6342         (lto_streamer_cache_insert_at): Likewise.
6343         (lto_streamer_cache_append): New function.
6344         (lto_streamer_cache_lookup): Use unsigned index.
6345         (lto_streamer_cache_get): Likewise.
6346         (lto_record_common_node): Don't test tree_node_can_be_shared.
6347         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6348         (lto_streamer_cache_delete): Don't free offsets member.
6349         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6350         (lto_output_string_with_length): Use lto_output_data_stream.
6351         (lto_output_tree_header): Remove ix parameter, don't write it.
6352         (lto_output_builtin_tree): Likewise.
6353         (lto_write_tree): Adjust callers to above, don't track and write
6354         offset, write unsigned index.
6355         (output_unreferenced_globals): Don't emit all global vars.
6356         (write_global_references): Use unsigned indices.
6357         (lto_output_decl_state_refs): Likewise.
6358         (write_symbol): Likewise.
6359         * lto-streamer-in.c (lto_input_chain): Move earlier.
6360         (input_function): Use unsigned index.
6361         (input_alias_pairs): Don't read and then ignore all global vars.
6362         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6363         don't pass it back, use lto_streamer_cache_append.
6364         (lto_register_var_decl_in_symtab): Use unsigned index.
6365         (lto_register_function_decl_in_symtab): Likewise.
6366         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6367         index.
6368         (lto_get_builtin_tree): Don't read index, use
6369         lto_streamer_cache_append.
6370         (lto_read_tree): Adjust call to lto_materialize_tree.
6371
6372         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6373         don't use function calls in arguments to MIN.
6374
6375         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6376         twice.
6377
6378         * gimple.c (gimple_type_leader_entry): Mark deletable.
6379
6380 2011-04-03  Alan Modra  <amodra@gmail.com>
6381
6382         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6383
6384 2011-04-03  Michael Matz  <matz@suse.de>
6385
6386         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6387         an integer.
6388         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6389
6390 2011-04-03  Michael Matz  <matz@suse.de>
6391
6392         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6393         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6394         without function context.
6395         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6396         current_function_decl and cfun.
6397
6398 2011-04-03  Michael Matz  <matz@suse.de>
6399
6400         * tree.c (decl_init_priority_insert): Don't create entry for
6401         default priority.
6402         (decl_fini_priority_insert): Ditto.
6403         (fields_compatible_p, find_compatible_field): Remove.
6404         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6405         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6406
6407 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6408
6409         * combine.c (try_combine): Remove useless local variable.
6410
6411 2011-04-03  Richard Guenther  <rguenther@suse.de>
6412             Ira Rosen  <ira.rosen@linaro.org>
6413
6414         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6415         non-variable offsets and compare the remaining bases of the two
6416         accesses instead of looking for exact same data-ref.
6417
6418 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6419
6420         PR target/48416
6421         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6422
6423         * i386.c (ix86_is_msabi_thiscall): New helper function.
6424         (ix86_is_type_thiscall): New helper function.
6425         (ix86_comp_type_attributes): Handle thiscall for method-functions
6426         special.
6427         (init_cumulative_args): Likewise.
6428         (find_drap_reg): Likewise.
6429         (ix86_static_chain): Likewise.
6430         (x86_this_parameter): Likewise.
6431         (x86_output_mi_thunk): Likewise.
6432
6433 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6434             Nicolas Setton  <setton@adacore.com>
6435             Eric Botcazou  <ebotcazou@adacore.com>
6436
6437         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6438         (add_gnat_descriptive_type_attribute): New function.
6439         (gen_array_type_die): Call it.
6440         (gen_enumeration_type_die): Likewise.
6441         (gen_struct_or_union_type_die): Likewise.
6442         (modified_type_die): Likewise.
6443         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6444         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6445         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6446
6447 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6448
6449         PR bootstrap/48148
6450         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6451         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6452
6453         Revert:
6454         2011-03-17  Richard Guenther  <rguenther@suse.de>
6455
6456         PR bootstrap/48148
6457         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6458         origin for decls in other ltrans units.
6459         (input_varpool_node): Likewise.
6460
6461 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6462
6463         PR middle-end/48335
6464         * expr.c (expand_assignment): Handle all possibilities
6465         if TO_RTX is CONCAT.
6466         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6467         (store_split_bit_field): If SUBREG_REG (op0) or
6468         op0 itself has smaller mode than word, return it
6469         for offset 0 and const0_rtx for out-of-bounds stores.
6470         If word is const0_rtx, skip it.
6471
6472 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6473
6474         * config/h8300/h8300.c (print_operand_address): Rename to...
6475         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6476         Call h8300_print_operand and h8300_print_operand_address instead of
6477         print_operand and print_operand_address. Declare.
6478         (print_operand): Renake to...
6479         (h8300_print_operand): ...this. Make static. Adjust comments.
6480         Call h8300_print_operand instead of print_operand. Declare.
6481         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6482         (h8300_register_move_cost): Likewise.
6483         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6484         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6485         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6486         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6487         * config/h8300/h8300-protos.h (print_operand): Delete.
6488         (print_operand_address): Delete.
6489
6490 2011-04-01  Richard Henderson  <rth@redhat.com>
6491
6492         PR 48400
6493         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6494         in strict mode before dwarf4.  Re-order tests to early out
6495         before switching sections.
6496
6497 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6498
6499         * config/h8300/constraints.md: New file.
6500         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6501         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6502         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6503         * config/h8300/predicates.md (bit_operand): Likewise.
6504         (incdec_operand): Use satisfies_constraint_M and
6505         satisfies_constraint_O.  Don't use C code block.
6506         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6507         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6508         (compute_mov_length): Use satisfies_constraint_G.
6509         (fix_bit_operand): Use satisfies_constraint_U.
6510         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6511         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6512         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6513         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6514         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6515         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6516         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6517         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6518         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6519         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6520         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6521         (EXTRA_MEMORY_CONSTRAINT): Delete.
6522
6523 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6524             Michael Meissner  <meissner@linux.vnet.ibm.com>
6525
6526         PR target/48262
6527         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6528         operands, as per the specifications.
6529
6530         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6531         (vec_extract_evenv4sf): Ditto.
6532         (vec_extract_evenv8hi): Ditto.
6533         (vec_extract_evenv16qi): Ditto.
6534         (vec_extract_oddv4si): Ditto.
6535
6536 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6537
6538         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6539         high_pc attribute if the CU has no associated code. Only output
6540         DW_AT_entry_pc for CU if not generating strict dwarf and
6541         dwarf_version < 4.
6542
6543 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6544
6545         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6546         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6547         out of ...
6548         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6549         * final.c (final_start_function): Call the new function rather
6550         than using a NULL argument for dwarf2out_frame_debug.
6551
6552         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6553         that contains the prologue.
6554
6555         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6556         changed.  Print it in debugging output.
6557
6558         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6559
6560         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6561         Split most of the code into...
6562         (begin_move_insn): ... here.  New function.
6563         (ebb_sched_info): Add a pointer to it.
6564         * haifa-sched.c (scheduled_insns): New static variable.
6565         (sched_extend_ready_list): Allocate it.
6566         (schedule_block): Use it to record the order of scheduled insns.
6567         Perform RTL changes to move insns only after all scheduling
6568         decisions have been made.
6569         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6570         begin_move_insn field.
6571         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6572         * sched-int.h (struct haifa_sched_info): Remove second argument
6573         from begin_schedule_ready hook.  Add new member begin_move_insn.
6574         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6575         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6576
6577         * haifa-sched.c (prune_ready_list): New function, broken out of
6578         schedule_block.
6579         (schedule_block): Use it.
6580
6581 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6582
6583         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6584
6585 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6586
6587         * config.gcc (*-*-mingw*): Allow as option the
6588         posix threading model.
6589         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6590         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6591         definition.
6592         (CPP_SPEC): Add pthread/no-pthread handling.
6593         (LIB_SPEC): Likewise.
6594         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6595         (LIB_SPEC): Likewise.
6596         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6597         flag to pass -pthread option for shared libgcc build.
6598         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6599         for shared libgcc build.
6600         * config/i386/t-mingw-pthread: New file.
6601         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6602         New define to enable use of library pthread by default.
6603         * config/i386/mingw.opt (pthread): New driver option.
6604         (no-pthread): New driver option.
6605         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6606         * config/i386/mingw-w64.opt: Likewise.
6607
6608 2011-04-01  Gary Funck  <gary@intrepid.com>
6609
6610         * c-decl.c (grokdeclarator): Fix formatting.
6611
6612 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6613
6614         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6615         instead of n_operands.
6616         (set_storage_via_setmem): Likewise.
6617         * optabs.c (maybe_gen_insn): Likewise.
6618         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6619         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6620         (mips_expand_builtin_direct): Likewise.
6621         * config/spu/spu.c (expand_builtin_args): Likewise.
6622
6623 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6624
6625         * recog.h (insn_data_d): Add n_generator_args.
6626         * genoutput.c (data): Likewise.
6627         (output_insn_data): Print it.
6628         (max_opno, num_dups): Delete.
6629         (scan_operands): Just fill in "d->operand[...]".
6630         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6631
6632 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6633
6634         * gensupport.h (pattern_stats): New structure.
6635         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6636         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6637         (max_operand_1, max_operand_vec): Delete.
6638         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6639
6640 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6641
6642         * emit-rtl.c (emit_pattern_after_setloc): New function.
6643         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6644         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6645         (emit_pattern_after): New function.
6646         (emit_insn_after, emit_jump_insn_after): Call it.
6647         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6648         (emit_pattern_before_setloc): New function.
6649         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6650         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6651         Likewise.
6652         (emit_pattern_before): New function.
6653         (emit_insn_before, emit_jump_insn_before): Call it.
6654         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6655
6656 2011-03-31  Richard Henderson  <rth@redhat.com>
6657
6658         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6659         (dw_separate_line_info_entry): Remove.
6660         (enum dw_line_info_opcode): New.
6661         (dw_line_info_entry): Use it.
6662         (dw_line_info_table, dw_line_info_table_p): New.
6663         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6664         (line_info_table, line_info_label_num): Remove.
6665         (line_info_table_in_use): Remove.
6666         (separate_line_info_table): Remove.
6667         (separate_line_info_table_allocated): Remove.
6668         (separate_line_info_table_in_use): Remove.
6669         (LINE_INFO_TABLE_INCREMENT): Remove.
6670         (line_info_label_num): New.
6671         (cur_line_info_table): New.
6672         (text_section_line_info, cold_text_section_line_info): New.
6673         (separate_line_info): New.
6674         (SEPARATE_LINE_CODE_LABEL): Remove.
6675         (print_dwarf_line_table): Remove.
6676         (debug_dwarf): Don't dump it.
6677         (output_one_line_info_table): New.
6678         (output_line_info): Use it.
6679         (new_line_info_table): New.
6680         (set_cur_line_info_table): New.
6681         (dwarf2out_switch_text_section): Use it.
6682         (dwarf2out_begin_function): Likewise.
6683         (push_dw_line_info_entry): New.
6684         (dwarf2out_source_line): Rewrite for new line info tables.
6685         (dwarf2out_init): Remove dead initailizations.
6686
6687 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6688
6689         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6690         various flags.
6691         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6692         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6693         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6694         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6695         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6696         * opt-functions.awk (flag_init, switch_bit_fields): New.
6697         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6698         generate CL_MISSING_OK or CL_SAVE.
6699         * optc-gen.awk: Update to generate bit-field output as well as
6700         flags field.
6701         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6702         bit-field instead of CL_REJECT_DRIVER flag.
6703         * opts-common.c (generate_canonical_option,
6704         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6705         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6706         instead of CL_REJECT_NEGATIVE flag.
6707         * toplev.c (print_switch_values): Use cl_report bit-field instead
6708         of CL_REPORT flag.
6709
6710 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6711
6712         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6713         a zero minimum index only if it is redundant.
6714
6715 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6716
6717         PR rtl-optimization/48381
6718         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6719         instead of ira_class_hard_reg_index for calculating conflicting
6720         hard registers.
6721
6722 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6723
6724         * cprop.c: Clean up hash table building.
6725         (reg_avail_info): Remove.
6726         (oprs_available_p): Remove.
6727         (record_last_reg_set_info): Remove.
6728         (record_last_set_info): Remove.
6729         (reg_available_p): New function.
6730         (gcse_constant_p): Do not treat unfolded conditions as constants.
6731         (make_set_regs_unavailable): New function.
6732         (hash_scan_set): Simplify with new reg_available_p.
6733         (compute_hash_table_work): Traverse insns stream only once.
6734         Do not compute reg_avail_info. Traverse insns in reverse order.
6735         Record implicit sets after recording explicit sets from the block.
6736
6737 2011-03-31  Michael Matz  <matz@suse.de>
6738
6739         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6740
6741 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6742
6743         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6744         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6745         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6746         (h8300_mode_dependent_address_p): New function.
6747         (h8300_get_index): Make static.
6748
6749 2011-03-31  Jeff Law  <law@redhat.com>
6750
6751         * reload1.c (elimination_effects): Fix typo in recent change.
6752
6753         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6754         typo potentially leading to null pointer dereference.
6755
6756         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6757         (setup_save_areas): Corresponding changes to avoid useless
6758         assignments.
6759
6760         * jump.c (reversed_comparison_code_parts): Avoid successive return
6761         statements when REVERSE_CONDITION is defined.
6762
6763         * expr.c (expand_assignment): Avoid useless assignments.
6764         (expand_expr_real_1): Likewise.
6765         (expand_expr_real_2): Avoid useless statements.
6766
6767         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6768
6769         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6770
6771         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6772         statements.
6773
6774         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6775
6776 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6777
6778         PR target/47109
6779         * doc/tm.texi.in (TARGET_VERSION): Remove.
6780         * doc/tm.texi: Regenerate.
6781         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6782         * collect2.c (main): Don't use TARGET_VERSION.
6783         * mips-tdump.c (main): Don't use TARGET_VERSION.
6784         * mips-tfile.c (main): Don't use TARGET_VERSION.
6785         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6786         * config/rs6000/vxworksae.h: Remove.
6787         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6788         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6789         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6790         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6791         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6792         * config/arm/arm.h (TARGET_VERSION): Remove.
6793         * config/arm/coff.h (TARGET_VERSION): Remove.
6794         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6795         * config/arm/elf.h (TARGET_VERSION): Remove.
6796         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6797         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6798         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6799         * config/arm/pe.h (TARGET_VERSION): Remove.
6800         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6801         * config/arm/semi.h (TARGET_VERSION): Remove.
6802         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6803         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6804         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6805         * config/avr/avr.h (TARGET_VERSION): Remove.
6806         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6807         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6808         * config/frv/frv.h (TARGET_VERSION): Remove.
6809         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6810         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6811         * config/i386/darwin.h (TARGET_VERSION): Remove.
6812         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6813         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6814         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6815         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6816         * config/i386/gnu.h (TARGET_VERSION): Remove.
6817         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6818         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6819         * config/i386/linux.h (TARGET_VERSION): Remove.
6820         * config/i386/linux64.h (TARGET_VERSION): Remove.
6821         * config/i386/lynx.h (TARGET_VERSION): Remove.
6822         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6823         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6824         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6825         * config/i386/netware.h (TARGET_VERSION): Remove.
6826         * config/i386/nto.h (TARGET_VERSION): Remove.
6827         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6828         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6829         * config/ia64/elf.h (TARGET_VERSION): Remove.
6830         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6831         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6832         * config/ia64/linux.h (TARGET_VERSION): Remove.
6833         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6834         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6835         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6836         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6837         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6838         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6839         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6840         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6841         * config/m68k/linux.h (TARGET_VERSION): Remove.
6842         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6843         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6844         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6845         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6846         * config/mep/mep.h (TARGET_VERSION): Remove.
6847         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6848         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6849         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6850         * config/mips/linux.h (TARGET_VERSION): Remove.
6851         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6852         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6853         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6854         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6855         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6856         * config/pa/pa.h (TARGET_VERSION): Remove.
6857         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6858         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6859         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6860         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6861         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6862         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6863         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6864         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6865         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6866         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6867         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6868         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6869         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6870         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6871         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6872         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6873         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6874         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6875         * config/s390/linux.h (TARGET_VERSION): Remove.
6876         * config/s390/s390.h (TARGET_VERSION): Remove.
6877         * config/s390/tpf.h (TARGET_VERSION): Remove.
6878         * config/score/score.h (TARGET_VERSION): Remove.
6879         * config/sh/linux.h (TARGET_VERSION): Remove.
6880         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6881         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6882         * config/sh/sh.h (TARGET_VERSION): Remove.
6883         * config/sh/sh64.h (TARGET_VERSION): Remove.
6884         * config/sh/superh.h (TARGET_VERSION): Remove.
6885         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6886         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6887         * config/sparc/linux.h (TARGET_VERSION): Remove.
6888         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6889         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6890         TARGET_NAME32, TARGET_NAME): Remove.
6891         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6892         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6893         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6894         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6895         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6896         * config/spu/spu.h (TARGET_VERSION): Remove.
6897         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6898         * config/v850/v850.h (TARGET_VERSION): Remove.
6899         * config/vax/linux.h (TARGET_VERSION): Remove.
6900         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6901         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6902         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6903
6904 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6905
6906         PR target/48142
6907         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6908         frame-related from frame-unrelated adjustments to the stack pointer.
6909
6910 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6911
6912         * common.opt (fdebug-types-section): Move earlier.
6913         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6914
6915 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6916
6917         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6918         var.
6919
6920 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6921
6922         * tree.h (CASE_CHAIN): Define.
6923         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6924         (gimple_redirect_edge_and_branch): Likewise.
6925
6926 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6927
6928         PR middle-end/48367
6929         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6930         calculation.
6931
6932 2011-03-30  Jeff Law  <law@redhat.com>
6933
6934         * PR bootstrap/48371
6935         * reload1.c (reload): Fix botch in last change.
6936
6937         * reload.h (struct reload): Fix typo introduced in last change.
6938
6939 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6940
6941         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6942         Undocumented.  Remove help text.
6943         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6944         -mhard-float.
6945
6946 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6947
6948         * doc/options.texi (NegativeAlias): Document.
6949         (Alias): Mention NegativeAlias.
6950         * opt-functions.awk: Handle NegativeAlias.
6951         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6952         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6953         * opts.h (CL_NEGATIVE_ALIAS): Define.
6954         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6955         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6956         OPT_mspe_.
6957         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6958         Alias entries.
6959         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6960         mno-spe and mno-isel instead of mspe=no and -misel=no.
6961
6962 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6963
6964         * common.opt (fdebug-types-section): New flag.
6965         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6966         * dwarf2out.c (use_debug_types): New define.
6967         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6968         (print_die): Guard output of type unit signatures using
6969         use_debug_types.
6970         (build_abbrev_table): Replace assert of dwarf_version >= 4
6971         with assert on use_debug_types.
6972         (size_of_die): Likewise.
6973         (unmark_dies): Likewise.
6974         (value_format): Decide AT_ref_external form on use_debug_types.
6975         (output_die): Replace dwarf_version version check guard with
6976         use_debug_types where appropriate.
6977         (modified_type_die): Likewise.
6978         (gen_reference_type_die): Likewise.
6979         (dwarf2out_start_source_file): Likewise.
6980         (dwarf2out_end_source_file): Likewise.
6981         (prune_unused_types_walk_attribs): Likewise.
6982         (dwarf2out_finish): Likewise.
6983
6984 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6985
6986         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6987
6988 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6989
6990         PR rtl-optimization/48332
6991         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6992         mode of input operand N and modeN to its actual mode.
6993
6994 2011-03-30  Jeff Law  <law@redhat.com>
6995
6996         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6997         define accessor macro.
6998         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6999         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7000         (reg_equiv_init): Likewise.
7001         (reg_equivs_size): New variable.
7002         (reg_equiv_init_size): Remove.
7003         (allocate_initial_values): Move prototype to here from....
7004         * integrate.h (allocate_initial_values): Remove prototype.
7005         * integrate.c: Include reload.h.
7006         (allocate_initial_values): Corresponding changes.
7007         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7008         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7009         (update_equiv_regs): Corresponding changes.
7010         (ira): Corresponding changes.
7011         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7012         (push_secondary_reload): Corresponding changes.
7013         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7014         (make_memloc, find_reloads_address): Corresponding changes.
7015         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7016         (find_reloads_address_1): Corresponding changes.
7017         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7018         (refers_to_regno_for_reload_p): Corresponding changes.
7019         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7020         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7021         * reload1.c: Include ggc.h.
7022         (grow_reg_equivs): New function.
7023         (replace_pseudos_in, reload): Corresponding changes.
7024         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7025         (eliminate_regs_1, elimination_effects): Corresponding changes.
7026         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7027         (delete_output_reload): Likewise.
7028         * caller-save.c (mark_referenced_regs): Corresponding changes.
7029         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7030         * frv/predicates.md (frv_load_operand): Corresponding changes.
7031         * microblaze/microblaze.c (double_memory_operand): Corresponding
7032         changes.
7033         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7034         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7035         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7036         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7037         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7038         changes.
7039         * pa/pa.c (emit_move_sequence): Corresponding changes.
7040         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7041
7042 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7043
7044         PR target/47551
7045         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7046         structure modes.  Don't check neon_vector_mem_operand for
7047         vector or structure modes.
7048
7049 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7050             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7051
7052         PR target/43590
7053         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7054         operand 1 and reshuffle the operands to match.
7055         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7056
7057 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7058
7059         PR driver/48208
7060         * config/c.opt (F): Added 'Driver' to -F option.
7061
7062         PR driver/48260
7063         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7064           handler function.
7065         * config/darwin.opt: Added '-arch' option.
7066
7067 2011-03-30  Nick Clifton  <nickc@redhat.com>
7068
7069         * config/rx/rx.md: Add peepholes and patterns to combine
7070         extending loads and simple arithmetic instructions.
7071         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7072         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7073         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7074         modes to use pre-decrement and post-increment addressing.
7075         (rx_is_restricted_memory_address): Add range checking of REG+INT
7076         addresses.
7077         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7078         (rx_memory_move_cost): Adjust cost of stores.
7079         (rx_adjust_insn_length): New function.
7080
7081 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7082
7083         PR c/48305
7084         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7085         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7086         matching arg00/arg01 types.
7087
7088 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7089
7090         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7091         last_location to UNKNOWN_LOCATION.
7092
7093 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7094
7095         PR target/48349
7096         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7097         FLOAT_SSE_REGS.
7098
7099 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7100             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7101
7102         PR bootstrap/48337
7103         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7104         Init(PROCESSOR_V7).
7105         (sparc_cpu): Likewise.
7106         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7107         PROCESSOR_V7.
7108
7109 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7110
7111         PR target/48336
7112         PR middle-end/48342
7113         PR rtl-optimization/48345
7114         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7115         hard regs for given mode from profitable regs when doing secondary
7116         allocation.
7117
7118 2011-03-29  Jeff Law  <law@redhat.com>
7119
7120         PR bootstrap/48327
7121         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7122         do_not_duplicate field.
7123         (lookup_redirection_data): Corresponding changes.
7124         (create_duplicates): Always create a template block.
7125         (redirect_edges): Remove code which reused the original block
7126         when it was going to become unreachable code.
7127         (thread_block): Don't set do_not_duplicate field.
7128
7129 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7130
7131         * lto-opts.c (register_user_option_p, lto_register_user_option):
7132         Make type argument unsigned.
7133         * lto-streamer.h (lto_register_user_option): Make type argument
7134         unsigned.
7135         * opth-gen.awk: Make CL_* macros unsigned.
7136         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7137         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7138         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7139         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7140         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7141         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7142         (find_opt): Make lang_mask argument unsigned.
7143
7144 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7145
7146         PR rtl-optimization/48331
7147         PR rtl-optimization/48334
7148         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7149         for any used algorithm.
7150
7151 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7152
7153         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7154         to parent_max.
7155
7156 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7157
7158         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7159         (alpha_option_override): Don't set alpha_sr_alias_set.
7160         (emit_frame_store_1): Use gen_frame_mem rather than calling
7161         set_mem_alias_set.
7162         (alpha_expand_epilogue): Ditto.
7163
7164 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7165
7166         PR tree-optimization/48290
7167         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7168         vectorization, check that relevant phis in the basic block after
7169         the inner loop are really inner loop's exit phis.
7170
7171 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7172
7173         PR debug/48190
7174         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7175         (cached_dw_loc_list_def): New structure.
7176         (cached_dw_loc_list): New typedef.
7177         (cached_dw_loc_list_table): New variable.
7178         (cached_dw_loc_list_table_hash): New function.
7179         (cached_dw_loc_list_table_eq): Likewise.
7180         (add_location_or_const_value_attribute): Take a bool cache_p.
7181         Cache the list when the parameter is true.
7182         (gen_formal_parameter_die): Update caller.
7183         (gen_variable_die): Likewise.
7184         (dwarf2out_finish): Likewise.
7185         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7186         while generating debug info for the decl.
7187         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7188         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7189         (resolve_addr): Cache the result of resolving a chain of
7190         location lists.
7191
7192 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7193
7194         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7195         conflict object hard regset nodes have intersecting hard reg sets.
7196
7197         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7198         after regstat_init_n_sets_and_refs.
7199
7200         * ira.c: Add more comments at the top.
7201         (setup_stack_reg_pressure_class, setup_pressure_classes):
7202         Add comments how we compute the register pressure classes.
7203         (setup_allocno_and_important_classes): Add more comments.
7204         (setup_class_translate_array, reorder_important_classes)
7205         (setup_reg_class_relations): Add comments.
7206
7207         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7208         start of the file.
7209
7210         * ira-color.c: Add 2011 to the Copyright line.
7211         (assign_hard_reg):  Add more comments.
7212         (improve_allocation): Ditto.
7213
7214         * ira-costs.c: Add 2011 to the Copyright line.
7215         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7216         comments.
7217         (setup_regno_cost_classes_by_mode): Ditto.
7218
7219         Initial patches from ira-improv branch:
7220
7221         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7222
7223         * ira-build.c (ira_create_object): Remove initialization of
7224         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7225         (ira_create_allocno): Remove initialization of
7226         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7227         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7228         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7229         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7230         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7231         Initialize ALLOCNO_ADD_DATA.
7232         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7233         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7234         ALLOCNO_REG.
7235         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7236         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7237
7238         * ira.c (ira_reallocate): Remove.
7239         (setup_pressure_classes): Call
7240         ira_init_register_move_cost_if_necessary.  Use
7241         ira_register_move_cost instead of ira_get_register_move_cost.
7242         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7243         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7244
7245         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7246         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7247         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7248         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7249         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7250         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7251         Fix formatting.
7252         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7253         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7254         (struct allocno_color_data): New.
7255         (allocno_color_data_t): New typedef.
7256         (allocno_color_data): New definition.
7257         (ALLOCNO_COLOR_DATA): New macro.
7258         (struct object_color_data): New.
7259         (object_color_data_t): New typedef.
7260         (object_color_data): New definition.
7261         (OBJECT_COLOR_DATA): New macro.
7262         (update_copy_costs, calculate_allocno_spill_cost): Call
7263         ira_init_register_move_cost_if_necessary.  Use
7264         ira_register_move_cost instead of ira_get_register_move_cost.
7265         (move_spill_restore, update_curr_costs): Ditto.
7266         (allocno_spill_priority): Make it inline.
7267         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7268         (struct coalesce_data, coalesce_data_t): New.
7269         (allocno_coalesce_data): New definition.
7270         (ALLOCNO_COALESCE_DATA): New macro.
7271         (merge_allocnos, coalesced_allocno_conflict_p): Use
7272         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7273         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7274         (coalesce_allocnos): Ditto.
7275         (setup_coalesced_allocno_costs_and_nums): Ditto.
7276         (collect_spilled_coalesced_allocnos): Ditto.
7277         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7278         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7279         (coalesce_spill_slots): Ditto.
7280         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7281         free allocno_coalesce_data.
7282
7283         * ira-conflicts.c: Fix formatting.
7284         (process_regs_for_copy): Call
7285         ira_init_register_move_cost_if_necessary.  Use
7286         ira_register_move_cost instead of ira_get_register_move_cost.
7287         (build_object_conflicts): Optimize.
7288
7289         * ira-costs.c (record_reg_classes): Optimize.  Call
7290         ira_init_register_move_cost_if_necessary.  Use
7291         ira_register_move_cost, ira_may_move_in_cost, and
7292         ira_may_move_out_cost instead of ira_get_register_move_cost and
7293         ira_get_may_move_cost.
7294         (record_address_regs): Ditto.
7295         (scan_one_insn): Optimize.
7296         (find_costs_and_classes): Optimize.
7297         (process_bb_node_for_hard_reg_moves): Call
7298         ira_init_register_move_cost_if_necessary.  Use
7299         ira_register_move_cost instead of ira_get_register_move_cost.
7300
7301         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7302         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7303         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7304         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7305         definitions.
7306         (ira_initiate_emit_data, ira_finish_emit_data)
7307         (create_new_allocno): New functions.
7308         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7309         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7310         Use ira_register_move_cost instead of ira_get_register_move_cost.
7311
7312         * ira-int.h: Fix some comments.
7313         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7314         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7315         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7316         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7317         add_data.
7318         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7319         bitfield after mode.  Make hard_regno a short int.  Make
7320         hard_regno short.  Remove first_coalesced_allocno and
7321         next_coalesced_allocno.  Move mem_optimized_dest_p,
7322         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7323         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7324         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7325         temp, colorable_p.  Add new member add_data.
7326         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7327         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7328         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7329         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7330         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7331         (ALLOCNO_ADD_DATA): New macro.
7332         (ira_emit_data_t): New typedef.
7333         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7334         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7335         from struct ira_allocno.
7336         (ALLOCNO_EMIT_DATA): New macro.
7337         (ira_allocno_emit_data, allocno_emit_reg): New.
7338         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7339         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7340         (OBJECT_ADD_DATA): New macro.
7341         (ira_reallocate): Remove.
7342         (ira_initiate_emit_data, ira_finish_emit_data): New.
7343         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7344         (ira_init_register_move_cost_if_necessary): New.
7345         (ira_object_conflict_iter_next): Merge into
7346         ira_object_conflict_iter_cond.
7347         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7348
7349         * ira-live.c (process_single_reg_class_operands): Call
7350         ira_init_register_move_cost_if_necessary.  Use
7351         ira_register_move_cost instead of ira_get_register_move_cost.
7352
7353         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7354
7355         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7356
7357         * ira-costs.c: Fix formatting.
7358         (cost_classes, cost_classes_num): Remove.
7359         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7360         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7361         (cost_classes_del, cost_classes_htab): New.
7362         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7363         (initiate_regno_cost_classes, setup_cost_classes): New.
7364         (setup_regno_cost_classes_by_aclass): New.
7365         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7366         (record_reg_classes): Use regno_cost_classes instead of
7367         cost_classes.  Move checking opposite operand up.
7368         (record_address_regs): Use regno_cost_classes
7369         instead of cost_classes.
7370         (scan_one_insn): Ditto.  Use always general register.
7371         (print_allocno_costs): Use regno_cost_classes instead of
7372         cost_classes.
7373         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7374         (find_costs_and_classes): Set up cost classes for each registers.
7375         Use also their mode for this.  Use regno_cost_classes instead of
7376         cost_classes.
7377         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7378         cost_classes.
7379         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7380         (ira_costs, ira_set_pseudo_classes): Call
7381         initiate_regno_cost_classes and finish_regno_cost_classes.
7382
7383         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7384
7385         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7386
7387         * target.def (ira_cover_classes): Remove.
7388
7389         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7390
7391         * doc/tm.texi.in: Ditto.
7392
7393         * ira-conflicts.c: Remove mentioning cover classes from the file.
7394         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7395         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7396
7397         * targhooks.c (default_ira_cover_classes): Remove.
7398
7399         * targhooks.h (default_ira_cover_classes): Ditto.
7400
7401         * haifa-sched.c: Remove mentioning cover classes from the file.
7402         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7403         ira_pressure_classes and ira_pressure_classes_num instead of
7404         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7405         sched_regno_pressure_class instead of sched_regno_cover_class.
7406         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7407         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7408
7409         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7410         classes from the file.
7411         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7412         (struct object_hard_regs, struct object_hard_regs_node): New.
7413         (struct ira_object): New members profitable_hard_regs,
7414         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7415         (struct ira_allocno): Rename cover_class to aclass.  Rename
7416         cover_class_cost and updated_cover_class_cost to class_cost and
7417         updated_class_cost.  Remove splay_removed_p and
7418         left_conflict_size.  Add new members colorable_p.
7419         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7420         (ALLOCNO_COLORABLE_P): New macro.
7421         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7422         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7423         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7424         (OBJECT_...): Rename parameter C to O.
7425         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7426         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7427         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7428         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7429         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7430         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7431         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7432         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7433         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7434         x_ira_reg_class_subunion.
7435         (ira_max_memory_move_cost, ira_max_register_move_cost)
7436         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7437         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7438         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7439         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7440         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7441         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7442         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7443         (ira_tune_allocno_costs_and_cover_classes): Rename to
7444         ira_tune_allocno_costs.
7445         (ira_debug_hard_regs_forest): New.
7446         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7447         (ira_object_conflict_iter_next): Fix comments.
7448         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7449         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7450         cover_class to aclass.
7451         (ira_allocate_and_accumulate_costs): Ditto.
7452         (ira_allocate_and_set_or_copy_costs): Ditto.
7453
7454         * opts.c (decode_options): Remove ira_cover_class check.
7455
7456         * ira-color.c: Remove mentioning cover classes from the file.  Use
7457         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7458         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7459         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7460         (splay-tree.h): Remove include.
7461         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7462         before copy_freq_compare_func.
7463         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7464         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7465         New definitions.
7466         (hard_regs_roots, hard_regs_node_vec): Ditto.
7467         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7468         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7469         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7470         (create_new_object_hard_regs_node): Ditto.
7471         (add_new_object_hard_regs_node_to_forest): Ditto.
7472         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7473         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7474         Ditto.
7475         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7476         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7477         (remove_unused_object_hard_regs_nodes): Ditto.
7478         (enumerate_object_hard_regs_nodes): Ditto.
7479         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7480         (object_hard_regs_subnode_t): Ditto.
7481         (struct object_hard_regs_subnode): Ditto.
7482         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7483         (setup_object_hard_regs_subnode_index): Ditto.
7484         (get_object_hard_regs_subnodes_num): Ditto.
7485         (form_object_hard_regs_nodes_forest): Ditto.
7486         (finish_object_hard_regs_nodes_tree): Ditto.
7487         (finish_object_hard_regs_nodes_forest): Ditto.
7488         (allocnos_have_intersected_live_ranges_p): Rename to
7489         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7490         (pseudos_have_intersected_live_ranges_p): Rename to
7491         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7492         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7493         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7494         (update_copy_costs): Remove assert.  Skip cost update if the hard
7495         reg does not belong the class.
7496         (assign_hard_reg): Process only profitable hard regs.
7497         (uncolorable_allocnos_num): Make it scalar.
7498         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7499         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7500         and ira_reg_class_max_nregs.
7501         (bucket_allocno_compare_func): Check frequency first.
7502         (sort_bucket): Add compare function as a parameter.
7503         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7504         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7505         (push_allocno_to_stack): Rewrite for checking new allocno
7506         colorability.
7507         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7508         (push_only_colorable): Pass new parameter to sort_bucket.
7509         (push_allocno_to_spill): Remove.
7510         (allocno_spill_priority_compare): Make it inline and rewrite.
7511         (splay_tree_allocate, splay_tree_free): Remove.
7512         (allocno_spill_sort_compare): New function.
7513         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7514         build and use splay tree.  Choose first allocno in uncolorable
7515         allocno bucket to spill.  Remove setting spill cost.
7516         (all_conflicting_hard_regs): Remove.
7517         (setup_allocno_available_regs_num): Check only profitable hard
7518         regs.  Print info about hard regs nodes.
7519         (setup_allocno_left_conflicts_size): Remove.
7520         (put_allocno_into_bucket): Don't call
7521         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7522         (improve_allocation): New.
7523         (color_allocnos): Call setup_profitable_hard_regs,
7524         form_object_hard_regs_nodes_forest, improve_allocation,
7525         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7526         (print_loop_title): Use pressure classes.
7527         (color_allocnso): Ditto.
7528         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7529         and allocnos_for_spilling.
7530         (ira_sort_regnos_for_alter_reg): Don't setup members
7531         {first,next}_coalesced_allocno.
7532         (color): Remove allocating and freeing removed_splay_allocno_vec.
7533         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7534         prohibited_class_mode_regs.
7535
7536         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7537         formatting.
7538         (update_allocno_pressure_excess_length): Use pressure classes.
7539         (inc_register_pressure, dec_register_pressure): Check for pressure
7540         class.
7541         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7542         pressure class.  Use ira_reg_class_nregs instead of
7543         ira_reg_class_max_nregs.
7544         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7545         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7546         (single_reg_class): Use ira_reg_class_nregs instead of
7547         ira_reg_class_max_nregs.
7548         (process_bb_node_lives): Use pressure classes.
7549
7550         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7551         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7552         (change_loop): Use pressure classes.
7553         (modify_move_list): Call ira_set_allocno_class instead of
7554         ira_set_allocno_cover_class.
7555
7556         * ira-build.c: Remove mentioning cover classes from the file.  Use
7557         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7558         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7559         ALLOCNO_UPDATED_CLASS_COST instead of
7560         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7561         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7562         (ira_create_allocno): Remove initialization of
7563         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7564         ALLOCNO_COLORABLE_P.
7565         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7566         Update conflict regs for the objects.
7567         (create_cap_allocno): Remove assert.  Don't propagate
7568         ALLOCNO_AVAILABLE_REGS_NUM.
7569         (ira_free_allocno_costs): New function.
7570         (finish_allocno): Change a part of code into call of
7571         ira_free_allocno_costs.
7572         (low_pressure_loop_node_p): Use pressure classes.
7573         (object_range_compare_func): Don't compare classes.
7574         (setup_min_max_conflict_allocno_ids): Ditto.
7575
7576         * loop-invariant.c: Remove mentioning cover classes from the file.
7577         Use ira_pressure_classes and ira_pressure_classes_num instead of
7578         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7579         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7580         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7581         Use reg_allocno_class instead of reg_cover_class.
7582         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7583         STACK_REG_COVER_CLASS.
7584         (get_regno_cover_class): Rename to get_regno_pressure_class.
7585         (move_loop_invariants): Initialize and finalize regstat.
7586
7587         * ira.c: Remove mentioning cover classes from the file.  Add
7588         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7589         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7590         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7591         setup_class_subset_and_memory_move_costs.
7592         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7593         (setup_cover_and_important_classes): Rename to
7594         setup_allocno_and_important_classes.
7595         (setup_class_translate_array): New.
7596         (setup_class_translate): Call it for allocno and pressure classes.
7597         (cover_class_order): Rename to allocno_class_order.
7598         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7599         of ira_class_translate.
7600         (reorder_important_classes): Set up ira_important_class_nums.
7601         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7602         (print_class_cover): Rename to print_classes.  Add parameter.
7603         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7604         Print pressure classes too.
7605         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7606         setup_reg_subclasses.
7607         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7608         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7609         (setup_prohibited_class_mode_regs): Use
7610         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7611         (clarify_prohibited_class_mode_regs): New function.
7612         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7613         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7614         (ira_init_once): Initialize them.
7615         (free_register_move_costs): Process them.
7616         (ira_init): Move calls of find_reg_classes and
7617         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7618         Call clarify_prohibited_class_mode_regs.
7619         (ira_no_alloc_reg): Remove.
7620         (too_high_register_pressure_p): Use pressure classes.
7621
7622         * sched-deps.c: Remove mentioning cover classes from the file.
7623         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7624         ira_pressure_classes and ira_pressure_classes_num instead of
7625         ira_reg_class_cover_size and ira_reg_class_cover.
7626         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7627         sched_regno_pressure_class instead of sched_regno_cover_class.
7628         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7629         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7630
7631         * ira.h: Add 2010 to Copyright.
7632         (ira_no_alloc_reg): Remove external.
7633         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7634         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7635         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7636         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7637         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7638         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7639         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7640         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7641         x_ira_no_alloc_regs.
7642         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7643         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7644         ira_allocno_classes_num and ira_allocno_classes.
7645         (ira_class_translate): Rename to ira_allocno_class_translate.
7646         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7647         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7648         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7649         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7650         (ira_no_alloc_regs): New.
7651
7652         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7653         classes from the file.  Use ALLOCNO_CLASS instead of
7654         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7655         ALLOCNO_COVER_CLASS_COST.
7656         (regno_cover_class): Rename to regno_aclass.
7657         (record_reg_classes): Use ira_reg_class_subunion instead of
7658         ira_reg_class_union.
7659         (record_address_regs): Check overflow.
7660         (scan_one_insn): Ditto.
7661         (print_allocno_costs): Print total mem cost fore regional allocation.
7662         (print_pseudo_costs): Use REG_N_REFS.
7663         (find_costs_and_classes): Use classes intersected with them on the
7664         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7665         ira_reg_class_union.  Use ira_allocno_class_translate and
7666         regno_aclass instead of ira_class_translate and regno_cover_class.
7667         Modify code for finding regno_aclass.  Setup preferred classes for
7668         the next pass.
7669         (setup_allocno_cover_class_and_costs): Rename to
7670         setup_allocno_class_and_costs.  Use regno_aclass instead of
7671         regno_cover_class.  Use ira_set_allocno_class instead of
7672         ira_set_allocno_cover_class.
7673         (init_costs, finish_costs): Use regno_aclass instead of
7674         regno_cover_class.
7675         (ira_costs): Use setup_allocno_class_and_costs instead of
7676         setup_allocno_cover_class_and_costs.
7677         (ira_tune_allocno_costs_and_cover_classes): Rename to
7678         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7679         by processing objects.  Use ira_reg_class_max_nregs instead of
7680         ira_reg_class_nregs.
7681
7682         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7683
7684         * sched-int.h: Remove mentioning cover classes from the file.
7685         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7686
7687         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7688         classes from the file.
7689         (struct reg_pref): Rename coverclass into allocnoclass.
7690         (reg_cover_class): Rename to reg_allocno_class.
7691
7692         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7693
7694         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7695
7696         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7697
7698         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7699
7700         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7701
7702         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7703
7704         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7705
7706         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7707
7708         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7709
7710         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7711
7712         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7713         (i386_ira_cover_classes): Ditto.
7714
7715         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7716
7717         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7718
7719         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7720
7721         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7722
7723         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7724
7725         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7726
7727         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7728         (mips_ira_cover_classes): Ditto.
7729
7730         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7731
7732         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7733
7734         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7735
7736         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7737
7738         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7739
7740         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7741         (IRA_COVER_CLASSES_VSX): Ditto.
7742
7743         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7744         (rs6000_ira_cover_classes): Ditto.
7745
7746         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7747
7748         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7749
7750         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7751
7752         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7753
7754         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7755
7756         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7757
7758         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7759
7760         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7761
7762         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7763
7764         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7765
7766 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7767
7768         PR debug/48253
7769         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7770         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7771         dw_fde_unlikely_section_end_label, cold_in_std_section,
7772         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7773         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7774         fields.
7775         (output_fde): Use dw_fde_second_{begin,end} if second is
7776         true, otherwise dw_fde_{begin,end}.
7777         (output_call_frame_info): Test dw_fde_second_begin != NULL
7778         instead of dw_fde_switched_sections.
7779         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7780         fields, initialize new fields.  Initialize in_std_section
7781         unconditionally from the first partition.
7782         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7783         dw_fde_second_begin is non-NULL.
7784         (dwarf2out_switch_text_section): Stop initializing removed
7785         dw_fde_struct fields, initialize new fields, initialize
7786         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7787         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7788         (struct var_loc_list_def): Add last_before_switch field.
7789         (arange_table, arange_table_allocated, arange_table_in_use,
7790         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7791         (size_of_aranges): Count !in_std_section and !second_in_std_section
7792         hunks in fdes, instead of looking at arange_table_in_use.
7793         (output_aranges): Add aranges_length argument, don't call
7794         size_of_aranges here.  Instead of using aranges_table*
7795         emit ranges for fdes when !in_std_section resp.
7796         !second_in_std_section.
7797         (dw_loc_list): Break ranges crossing section switch.
7798         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7799         use dw_fde_second_end instead of dw_fde_end as end of last range.
7800         (gen_subprogram_die): Don't call add_arange.  Use
7801         dw_fde_{begin,end} for first partition and if switched
7802         section dw_fde_second_{begin,end} for the second.
7803         (var_location_switch_text_section_1,
7804         var_location_switch_text_section): New functions.
7805         (dwarf2out_begin_function): Initialize cold_text_section even
7806         when function_section () isn't text_section.
7807         (prune_unused_types): Don't walk arange_table.
7808         (dwarf2out_finish): Don't needlessly test
7809         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7810         If info_section_emitted, call size_of_aranges and if it indicates
7811         non-empty .debug_aranges, call output_aranges with the computed
7812         size.  Stop using removed dw_fde_struct fields, use
7813         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7814         for second.
7815
7816         PR debug/48203
7817         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7818         create ENTRY_VALUE if incoming or address of incoming's MEM
7819         is a hard REG.
7820         * dwarf2out.c (mem_loc_descriptor): Don't emit
7821         DW_OP_GNU_entry_value of DW_OP_fbreg.
7822         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7823         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7824         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7825         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7826         ENTRY_VALUE_EXPs.
7827         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7828         is a REG_P or MEM_P with REG_P address, compute hash directly
7829         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7830         (preserve_only_constants): Don't clear VALUES forwaring
7831         ENTRY_VALUE to some other VALUE.
7832
7833 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7834
7835         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7836         instead of GEN_INT.
7837
7838 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7839
7840         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7841         block before expanding the statement.
7842         (expand_gimple_stmt_1): Likewise.  Set them here...
7843         (expand_gimple_stmt): ...and not here.  Tidy.
7844         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7845         unknown.
7846
7847 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7848
7849         * Makefile.in: New rule for cprop.o.
7850         * gcse.c: Move constant/copy propagation to cprop.c.
7851         (compute_local_properties): Only handle expression tables.
7852         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7853         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7854         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7855         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7856         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7857         compute_cprop_data, find_used_regs, try_replace_reg,
7858         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7859         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7860         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7861         find_bypass_set, reg_killed_on_edge, bypass_block,
7862         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7863         execute_rtl_cprop, pass_rtl_cprop): Move to...
7864         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7865         moved from gcse.c to here with minor cleanups in duplicated code.
7866
7867 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * config/i386/i386.c (flag_opts): Fix a typo in
7870         -mavx256-split-unaligned-store.
7871
7872 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7873
7874         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7875         LIBCALL_VALUE): Remove macros.
7876         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7877         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7878         (h8300_function_value, h8300_libcall_value,
7879         h8300_function_value_regno_p): New functions.
7880
7881 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7882
7883         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7884
7885 2011-03-28  Jeff Law  <law@redhat.com>
7886
7887         * tree-ssa-threadupdate.c (redirect_edges): Call
7888         create_edge_and_update_destination_phis as needed.
7889         (create_edge_and_update_destination_phis): Accept new BB argument.
7890         All callers updated.
7891         (thread_block): Do not update the profile when threading around
7892         intermediate blocks.
7893         (thread_single_edge): Likewise.
7894         (determine_bb_domination_status): If BB is not a successor of the
7895         loop header, return NONDOMINATING.
7896         (register_jump_thread): Note when we register a jump thread around
7897         an intermediate block.
7898         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7899         (thread_across_edge): Use it.
7900
7901 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7902
7903         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7904         when for_return is 2.
7905
7906 2011-03-28  Jeff Law  <law@redhat.com>
7907
7908         * var-tracking.c (canonicalize_values_mark): Delete unused
7909         lhs assignment.
7910         (canonicalize_values_star, set_variable_part): Likewise.
7911         (clobber_variable_part, delete_variable_part): Likewise.
7912
7913 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7914
7915         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7916
7917 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7918
7919         * tree-inline.c (expand_call_inline): Do not check that destination
7920         node is analyzed.
7921         (optimize_inline_calls): Assert that destination node is analyzed.
7922         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7923         not call tree_lowering_passes.
7924         * cgraph.h (cgraph_analyze_function): Declare.
7925         * cgraphunit.c (cgraph_analyze_function): Make public.
7926
7927 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7928
7929         * config/sparc/sparc-opts.h: New.
7930         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7931         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7932         (sparc_option_override): Store processor_type enumeration rather
7933         than string in cpu_default.  Remove name and enumeration from
7934         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7935         without using sparc_select.  Use target_flags_explicit instead of
7936         fpu_option_set.
7937         * config/sparc/sparc.h (enum processor_type): Move to
7938         sparc-opts.h.
7939         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7940         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7941         HeaderInclude entry.
7942         (mcpu=, mtune=): Use Var and Enum.
7943         (sparc_processor_type): New Enum and EnumValue entries.
7944
7945 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7946             Iain Sandoe  <iains@gcc.gnu.org>
7947
7948         PR target/48245
7949         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7950
7951 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7952
7953         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7954         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7955         Insert new statements at it in lieu of STMT.
7956         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7957         * tree-vect-stmts.c (vectorizable_store): Likewise.
7958         (vectorizable_load): Likewise.
7959
7960 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7961
7962         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7963         (divtf3): Ditto.
7964         (multf3): Ditto.
7965         (subtf3): Ditto.
7966
7967 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7968
7969         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7970         unaligned 256bit load/store.
7971         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7972         (*avx_movdqu<avxmodesuffix>): Likewise.
7973
7974 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7975
7976         PR target/48288
7977         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7978         * config/pa/pa.md (iordi3): Use new predicate in expander.
7979         (iorsi3): Likewise.
7980
7981 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7982
7983         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7984         FUNCTION_VALUE_REGNO_P): Remove macros.
7985         * config/mips/mips-protos.h (mips_function_value): Remove.
7986         * config/mips/mips.c (mips_function_value): Rename to...
7987         (mips_function_value_1): ... this. Make static.  Handle receiving
7988         the function type in 'fn_decl_or_type' argument.
7989         (mips_function_value, mips_libcall_value,
7990         mips_function_value_regno_p): New function.
7991         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7992         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7993
7994 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7995
7996         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7997         and -mavx256-split-unaligned-store.
7998         (ix86_option_override_internal): Split 32-byte AVX unaligned
7999         load/store by default.
8000         (ix86_avx256_split_vector_move_misalign): New.
8001         (ix86_expand_vector_move_misalign): Use it.
8002
8003         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8004         -mavx256-split-unaligned-store.
8005
8006         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8007         256bit load/store.  Generate unaligned store on misaligned memory
8008         operand.
8009         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8010         256bit load/store.
8011         (*avx_movdqu<avxmodesuffix>): Likewise.
8012
8013         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8014         -mavx256-split-unaligned-store.
8015
8016 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8017
8018         PR target/38598
8019         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8020         Update commentary.
8021
8022 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8023
8024         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8025         opno arguments with an expand_operand.  Use create_input_operand.
8026         (mips_prepare_builtin_target): Delete.
8027         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8028         functions.
8029         (mips_expand_builtin_direct): Use create_output_operand and
8030         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8031         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8032         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8033
8034 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8035
8036         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8037         function.
8038         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8039
8040 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8041
8042         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8043         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8044         basic blocks and call commit_edge_insertions directly.
8045         (fixup_abnormal_edges): Move from here to...
8046         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8047         on the edges and return whether some have actually been inserted.
8048         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8049         compensation code.
8050
8051 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8052
8053         PR rtl-optimization/48144
8054         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8055         (merge_expr_data): ... here.
8056         (av_set_intersect): Rename to av_set_code_motion_filter.
8057         Update all callers.  Call merge_history_vect when an expression
8058         is found in both sets.
8059         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8060
8061 2011-03-26  Alan Modra  <amodra@gmail.com>
8062
8063         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8064         cmodel medium addresses.
8065         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8066         64-bit gpr loads and stores.
8067         (rs6000_secondary_reload_ppc64): New function.
8068         * config/rs6000/rs6000-protos.h: Declare it.
8069         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8070
8071 2011-03-26  Alan Modra  <amodra@gmail.com>
8072
8073         PR target/47487
8074         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8075         GNU Go in traceback table.
8076
8077 2011-03-25  Richard Henderson  <rth@redhat.com>
8078
8079         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8080         if there are exactly 6 operands.
8081         (set_storage_via_setmem): Similarly.
8082
8083 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8084
8085         * collect2.c (write_c_file_stat): Handle backslash
8086         as right-hand directory separator.
8087         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8088         checking just for slash.
8089         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8090         instead of checking for trailing slash.
8091         * gcc.c (record_temp_file): Use filename_cmp instead
8092         of strcmp.
8093         (do_spec_1): Likewise.
8094         (replace_outfile_spec_function): Likewise.
8095         (is_directory): Use filename_ncmp instead of strncmp.
8096         (print_multilib_info): Likewise.
8097         * gcov.c (find_source): Use filename_cmp instead
8098         instead of strcmp.
8099         (make_gcov_file_name): Fix order of slash/backslash
8100         checks.
8101         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8102         (add_standard_paths): Likewise.
8103         * mips-tfile.c (saber_stop): Handle backslash.
8104         * prefix.c (update_path): Use filename_ncmp instead of
8105         strncmp.
8106         * profile.c (output_location): Use filename_cmp instead
8107         of strcmp.
8108         * read-md.c (handle_toplevel_file): Handle backslash.
8109         * tlink.c (frob_extension):  Likewise.
8110         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8111         strcmp.
8112         * tree-dump.c (dequeue_and_dump): Handle backslash.
8113         * tree.c (get_file_function_name): Likewise.
8114         * gengtype.c (read_input_list): Likewise.
8115         (get_file_realbasename): Likewise.
8116         (get_output_file_with_visibility): Use filename_cmp
8117         instead of strcmp.
8118
8119 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8120
8121         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8122         case to VFPv1.
8123
8124 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8125
8126         * fold-const.c (expr_location_or): New function.
8127         (fold_truth_not_expr): Call it.
8128
8129 2011-03-25  Jeff Law  <law@redhat.com>
8130
8131         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8132         va_end.
8133         * c-family/c-common.c (def_fn_type): Likewise.
8134         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8135         * emit-rtl.c (gen_rtvec): Likewise.
8136         * lto/lto-lang.c (def_fn_type): Likewise.
8137
8138 2011-03-25  Richard Guenther  <rguenther@suse.de>
8139
8140         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8141         also generate copies.
8142         (fini_copy_prop): Handle constant values properly.
8143
8144 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8145
8146         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8147         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8148         (hash_loc_operands, compare_loc_operands): Handle
8149         DW_OP_GNU_entry_value.
8150
8151 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8152
8153         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8154         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8155         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8156         comment and use macro TARGET_64BIT_MS_ABI instead.
8157         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8158         and change default behavior for 32-bit MS_ABI.
8159         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8160         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8161         32-bit, too.
8162         (ix86_cfun_abi): Likewise.
8163         (ix86_maybe_switch_abi): Adjust comment.
8164         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8165         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8166         instead of checking for SYSV_ABI.
8167         (ix86_nsaved_sseregs): Likewise.
8168         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8169         to 16 bytes.
8170         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8171         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8172         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8173         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8174         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8175
8176 2011-03-25  Richard Guenther  <rguenther@suse.de>
8177
8178         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8179         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8180         (verify_gimple): Remove.
8181         * tree-cfg.c (verify_gimple_call): Merge verification
8182         from verify_stmts.
8183         (verify_gimple_phi): Merge verification from verify_stmts.
8184         (verify_gimple_label): New function.
8185         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8186         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8187         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8188         (verify_stmts): Rename to verify_gimple_in_cfg.
8189         (verify_gimple_in_cfg): New function.
8190         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8191         * tree-ssa.c (verify_ssa): Likewise.
8192         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8193
8194 2011-03-25  Richard Guenther  <rguenther@suse.de>
8195
8196         * passes.c (init_optimization_passes): Add FRE pass after
8197         early SRA.
8198
8199 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8200             Andrew Stubbs  <ams@codesourcery.com>
8201
8202         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8203         for Cortex-A8.
8204         (arm_movdi_vfp_cortexa8): New pattern.
8205         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8206         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8207         instructions when tuning for Cortex-A8.  Set attribute "arch".
8208         * config/arm/arm.md: Move include arm-tune.md up a bit.
8209         (define_attr "arch"): Add "onlya8" and "nota8" values.
8210         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8211
8212 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8213
8214         PR bootstrap/48282
8215         Revert:
8216         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8217
8218         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8219         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8220         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8221         * passes.c (init_optimization_passes): Move
8222         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8223
8224 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8225
8226         * c-typeck.c (comptypes_internal): Replace target
8227         hook call of comp_type_attributes by version in tree.c file.
8228         * gimple.c (gimple_types_compatible_p_1): Likewise.
8229         * tree-ssa.c (useless_type_conversion_p): Likewise.
8230         * tree.c (build_type_attribute_qual_variant): Likewise.
8231         (attribute_value_equal): New static helper function.
8232         (comp_type_attributes): New function.
8233         (merge_attributes): Use attribute_value_equal for comparison.
8234         (attribute_list_contained): Likewise.
8235         * tree.h (comp_type_attributes): New prototype.
8236
8237 2011-03-25  Richard Guenther  <rguenther@suse.de>
8238
8239         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8240         of complex types at -O0.
8241         (verify_gimple_assign_binary): Likewise.
8242         (verify_gimple_assign_ternary): Likewise.
8243
8244 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8245
8246         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8247         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8248
8249 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8250
8251         PR debug/48041
8252         * dwarf2out.c (output_abbrev_section): Only write table when
8253         abbrev_die_table_in_use > 1.
8254
8255 2011-02-24  Richard Henderson  <rth@redhat.com>
8256
8257         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8258         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8259         (alpha_expand_unaligned_load_words): Use extql.
8260         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8261         (emit_insxl): Handle all modes for consistency.
8262
8263 2011-02-24  Richard Henderson  <rth@redhat.com>
8264
8265         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8266         (alpha_expand_unaligned_load): Likewise.
8267         (alpha_expand_unaligned_store): Likewise.
8268         (alpha_expand_unaligned_load_words): Likewise.
8269         (alpha_expand_unaligned_store_words): Likewise.
8270         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8271         (alpha_split_lock_test_and_set_12): Likewise.
8272         (print_operand, alpha_fold_builtin_extxx): Likewise.
8273         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8274         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8275         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8276         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8277         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8278         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8279         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8280         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8281         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8282         (extwl, extll, extql): Similarly.
8283         (inswh, inslh, insqh): Similarly.
8284         (mskbl, mskwl, mskll, mskql): Similarly.
8285         (mskwh, msklh, mskqh): Similarly.
8286
8287 2011-02-24  Richard Henderson  <rth@redhat.com>
8288
8289         * config/alpha/alpha.md (attribute isa): Add er, ner.
8290         (attribute enabled): Handle them.
8291         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8292
8293 2011-02-24  Richard Henderson  <rth@redhat.com>
8294
8295         * config/alpha/alpha.md (attribute isa): Add vms.
8296         (attribute enabled): Handle it.
8297         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8298         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8299         (*movtf): Rename from *movtf_internal for consistency.
8300         (*movsi): Merge with *movsi_nt_vms.
8301         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8302         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8303         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8304         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8305
8306 2011-02-24  Richard Henderson  <rth@redhat.com>
8307
8308         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8309         (extendqisi2, extendhisi2): Likewise.
8310         (extendqidi2): Simplify BWX/non-BWX expansions.
8311         (extendhidi2): Similarly.
8312
8313 2011-02-24  Richard Henderson  <rth@redhat.com>
8314
8315         * config/alpha/alpha.md (attribute isa): New.
8316         (attribute enabled): New.
8317         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8318         (zero_extendqisi2, zero_extendqidi2): Similarly.
8319         (zero_extendhisi2, zero_extendhidi2): Similarly.
8320         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8321
8322 2011-02-24  Richard Henderson  <rth@redhat.com>
8323
8324         * config/alpha/predicates.md (input_operand): Revert last change;
8325         update comment to mention 32-bit VMS rather than Windows.
8326
8327 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8328
8329         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8330         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8331         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8332         * passes.c (init_optimization_passes): Move
8333         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8334
8335 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8336
8337         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8338
8339 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8340
8341         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8342         correctly.
8343
8344 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8345
8346         PR debug/48204
8347         * simplify-rtx.c (simplify_const_unary_operation): Call
8348         real_convert when changing mode class with FLOAT_EXTEND.
8349
8350 2011-03-24  Nick Clifton  <nickc@redhat.com>
8351
8352         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8353         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8354         * config/rx/rx.c (rx_option_override): Set align_jumps,
8355         align_loops and align_labels if not set by the user.
8356         (rx_align_for_label): New function.
8357         (rx_max_skip_for_label): New function.
8358         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8359         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8360         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8361         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8362         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8363
8364 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8365
8366         PR rtl-optimization/48263
8367         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8368         and original commutative_p handling.  Use maybe_gen_insn.
8369
8370 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8371
8372         * reload.c (find_reloads_subreg_address): Add address_reloaded
8373         parameter and return true there if the full address has been
8374         reloaded.
8375         (find_reloads_toplev): Pass address_reloaded flag.
8376         (find_reloads_address_1): Don't use address_reloaded parameter.
8377
8378 2011-03-24  Jeff Law  <law@redhat.com>
8379
8380         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8381         unused variable "ann".
8382         (remove_unused_locals): Likewise.
8383
8384         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8385         statement.
8386
8387         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8388         after it is freed.
8389
8390 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8391
8392         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8393         for invalid symbolic addresses.
8394         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8395         larl operands.
8396
8397 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8398
8399         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8400         the argument in calls to fold_truth_not_expr.
8401
8402 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8403
8404         * tree.c (record_node_allocation_statistics): New function.
8405         (make_node_stat, copy_node_stat, build_string): Call it.
8406         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8407         (build1_stat, build_omp_clause): Likewise.
8408
8409 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8410
8411         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8412         last commit.
8413
8414 2011-03-24  Richard Guenther  <rguenther@suse.de>
8415
8416         PR tree-optimization/48271
8417         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8418         blocks that still exist.
8419
8420 2011-03-24  Richard Guenther  <rguenther@suse.de>
8421
8422         PR tree-optimization/48270
8423         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8424         not free datarefs before ddrs.
8425
8426 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8427
8428         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8429         from the address built for a reference with variable offset.
8430
8431 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8432
8433         PR target/48237
8434         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8435         alternatives that can be handled with movq or movabsq insn.
8436         (*movdf_internal): Disable for !TARGET_64BIT.
8437         (*movdf_internal_nointeger): Ditto.
8438         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8439
8440 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8441
8442         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8443         (FUNCTION_ARG_ADVANCE): Likewise.
8444         * tm.texi.in: Change references to them to hook references.
8445         * tm.texi: Regenerate.
8446         * targhooks.c (default_function_arg): Eliminate check for target macro.
8447         (default_function_incoming_arg): Likewise.
8448         (default_function_arg_advance): Likewise.
8449         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8450         (function_arg_advance): Likewise.
8451         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8452
8453 2011-03-24  Richard Guenther  <rguenther@suse.de>
8454
8455         PR middle-end/48269
8456         * tree-object-size.c (addr_object_size): Do not double-account
8457         for MEM_REF offsets.
8458
8459 2011-03-24  Diego Novillo  <dnovillo@google.com>
8460
8461         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8462         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8463         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8464         Update all users.
8465         (lto_input_string): Rename from input_string.  Make extern.
8466         Update all users.
8467         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8468         output_string_with_length.
8469         Output 0 to indicate a non-NULL string.  Update all callers to
8470         not emit 0.
8471         (lto_output_string): Rename from output_string.  Make extern.
8472         Update all users.
8473         (lto_output_decl_state_streams): Make extern.
8474         (lto_output_decl_state_refs): Make extern.
8475         * lto-streamer.h (lto_input_string): Declare.
8476         (lto_input_data_block): Declare.
8477         (lto_output_string): Declare.
8478         (lto_output_string_with_length): Declare.
8479         (lto_output_decl_state_streams): Declare.
8480         (lto_output_decl_state_refs): Declare.
8481
8482 2011-03-24  Richard Guenther  <rguenther@suse.de>
8483
8484         PR tree-optimization/46562
8485         * tree.c (build_invariant_address): New function.
8486         * tree.h (build_invariant_address): Declare.
8487         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8488         a renamed function moved ...
8489         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8490         Take valueization callback parameter.
8491         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8492         * gimple-fold.h: New file.
8493         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8494         (ccp_fold, fold_const_aggregate_ref,
8495         fold_ctor_reference, fold_nonarray_ctor_reference,
8496         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8497         get_base_constructor): Move ...
8498         * gimple-fold.c: ... here.
8499         (gimple_fold_stmt_to_constant_1): New function
8500         split out from ccp_fold.  Take a valueization callback parameter.
8501         Valueize all operands.
8502         (gimple_fold_stmt_to_constant): New wrapper function.
8503         (fold_const_aggregate_ref_1): New function split out from
8504         fold_const_aggregate_ref.  Take a valueization callback parameter.
8505         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8506         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8507         invariant POINTER_PLUS_EXPRs to invariant form.
8508         (vn_valueize): New function.
8509         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8510         * tree-vrp.c (vrp_valueize): New function.
8511         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8512         to fold statements to constants.
8513         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8514         function declarations.
8515         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8516         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8517
8518 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8519
8520         * config/h8300/predicates.md (jump_address_operand): Fix register
8521         mode check.
8522
8523 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8524
8525         * doc/invoke.texi (max-stores-to-sink): Document.
8526         * params.h (MAX_STORES_TO_SINK): Define.
8527         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8528         if either vectorization or if-conversion is disabled.
8529         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8530         tree-vect-data-refs.c vect_equal_offsets.
8531         (dr_equal_offsets_p): New function.
8532         (find_data_references_in_bb): Remove static.
8533         * tree-data-ref.h (find_data_references_in_bb): Declare.
8534         (dr_equal_offsets_p): Likewise.
8535         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8536         (vect_drs_dependent_in_basic_block): Update calls to
8537         vect_equal_offsets.
8538         (vect_check_interleaving): Likewise.
8539         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8540         (cond_if_else_store_replacement): Rename to...
8541         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8542         documentation.
8543         (cond_if_else_store_replacement): New function.
8544         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8545         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8546
8547 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8548
8549         PR target/46934
8550         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8551         to subtract lower bound instead of GEN_INT().
8552
8553 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8554
8555         PR other/48179
8556         PR other/48221
8557         PR other/48234
8558         * doc/extend.texi (Alignment): Move section to match order in TOC.
8559         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8560         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8561
8562 2011-03-23  Jeff Law  <law@redhat.com>
8563
8564         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8565         before removing the edge.
8566
8567         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8568         it may have been freed by redirect_branch_edge or
8569         redirect_edge_succ_nodup.
8570
8571 2011-03-23  Richard Guenther  <rguenther@suse.de>
8572
8573         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8574         (check_va_list_escapes): Likewise.
8575         (check_all_va_list_escapes): Likewise.
8576
8577 2011-03-23  Richard Guenther  <rguenther@suse.de>
8578
8579         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8580         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8581         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8582         (alias.o): Likewise.
8583         (ipa-type-escape.o): Remove.
8584         (ipa-struct-reorg.o): Likewise.
8585         (GTFILES): Remove ipa-struct-reorg.c.
8586         * alias.c: Do not include ipa-type-escape.h.
8587         * tree-ssa-alias.c: Likewise.
8588         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8589         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8590         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8591         and ipa-type-escape passes.
8592         * tree-pass.h (pass_ipa_type_escape): Remove.
8593         (pass_ipa_struct_reorg): Likewise.
8594         * ipa-struct-reorg.h: Remove.
8595         * ipa-struct-reorg.c: Likewise.
8596         * ipa-type-escape.h: Likewise.
8597         * ipa-type-escape.c: Likewise.
8598         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8599         (--param struct-reorg-cold-struct-ratio): Likewise.
8600         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8601         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8602         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8603
8604 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8605
8606         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8607         cpu attribute value.
8608         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8609         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8610         * config/s390/s390.c (processor_flags_table): New constant array.
8611         (s390_handle_arch_option): Remove.
8612         (s390_handle_option): Remove s390_handle_arch_option invocations
8613         and OPT_mwarn_framesize_ handling.
8614         (s390_option_override): Remove s390_handle_arch_option invocation.
8615         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8616         warnings.
8617         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8618         * config/s390/s390.opt (s390_tune, s390_arch)
8619         (march=): Replace s390_arch_option enum and values with
8620         processor_type.  Set variable name to s390_arch.  Set
8621         initialization value.
8622         (mtune=): Replace s390_arch_option with processor_type.  Set
8623         variable name to s390_tune.  Set initialization value.
8624
8625 2011-03-23  Julian Brown  <julian@codesourcery.com>
8626
8627         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8628         accesses which are not naturally aligned.
8629
8630 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8631
8632         PR target/47553
8633         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8634
8635 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8636
8637         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8638         parameter from "int" to "enum insn_code".
8639         (expand_operand_type): New enum.
8640         (expand_operand): New structure.
8641         (create_expand_operand): New function.
8642         (create_fixed_operand, create_output_operand): Likewise
8643         (create_input_operand, create_convert_operand_to): Likewise.
8644         (create_convert_operand_from, create_address_operand): Likewise.
8645         (create_integer_operand): Likewise.
8646         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8647         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8648         (expand_insn, expand_jump_insn): Likewise.
8649         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8650         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8651         (expand_movstr, expand_builtin___clear_cache): Likewise.
8652         (expand_builtin_lock_release): Likewise.
8653         * explow.c (allocate_dynamic_stack_space): Likewise.
8654         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8655         and use the default handling in that case.
8656         * expmed.c (check_predicate_volatile_ok): Delete.
8657         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8658         (emit_cstore): Likewise.
8659         * expr.c (emit_block_move_via_movmem): Likewise.
8660         (set_storage_via_setmem, expand_assignment): Likewise.
8661         (emit_storent_insn, try_casesi): Likewise.
8662         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8663         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8664         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8665         (expand_twoval_unop, expand_twoval_binop): Likewise.
8666         (expand_unop_direct, emit_indirect_jump): Likewise.
8667         (emit_conditional_move, vector_compare_rtx): Likewise.
8668         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8669         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8670         (expand_sync_lock_test_and_set): Likewise.
8671         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8672         (emit_unop_insn): Likewise.
8673         (expand_copysign_absneg): Change icode to an insn_code.
8674         (create_convert_operand_from_type): New function.
8675         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8676         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8677         (expand_insn, expand_jump_insn): Likewise.
8678         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8679         than const_int_operand for operand 2.
8680
8681 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8682
8683         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8684         if possible.
8685
8686 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8687
8688         * emit-rtl.c (emit_pattern_before_noloc): New function.
8689         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8690         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8691         (emit_pattern_after_noloc): New function.
8692         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8693         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8694
8695 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8696
8697         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8698         (__ffsDI2): Likewise.
8699
8700 2011-03-22  Richard Henderson  <rth@redhat.com>
8701
8702         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8703         of !TARGET_ABI_OPEN_VMS.
8704         (alpha_trampoline_init, alpha_start_function): Likewise.
8705         (alpha_expand_epilogue, alpha_file_start): Likewise.
8706         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8707         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8708         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8709         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8710         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8711
8712 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8713
8714         * config/s390/s390-opts.h: New.
8715         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8716         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8717         s390_stack_guard): Remove.
8718         (s390_handle_arch_option): Return void.  Take enum
8719         s390_arch_option value instead of string and searching array.
8720         (s390_handle_option): Don't assert that global structures are in
8721         use.  Access variables via opts pointer.  Use error_at.  Don't use
8722         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8723         s390_handle_arch_option.
8724         (s390_option_override): Update call to s390_handle_arch_option.
8725         (s390_emit_prologue): Use %d format for s390_stack_size in
8726         diagnostic.  Use %wd for HOST_WIDE_INT.
8727         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8728         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8729         * config/s390/s390.opt (config/s390/s390-opts.h): New
8730         HeaderInclude entry.
8731         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8732         s390_arch_flags, s390_warn_framesize): New Variable entries.
8733         (s390_arch_option): New Enum and EnumValue entries.
8734         (march=): Use Enum instead of Var.
8735         (mstack-guard=, mstack-size=): Use UInteger and Var.
8736         (mtune=): Use Enum.
8737
8738 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8739
8740         * config/score/score.c (score_handle_option): Don't assert that
8741         global structures are in use.  Access target_flags via opts
8742         pointer.  Use value of -march= option to determine target_flags
8743         settings.
8744         * config/score/score.opt (march=): Use Enum.
8745         (score_arch): New Enum and EnumValue entries.
8746
8747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * config/mep/mep.c (option_mtiny_specified): Remove.
8750         (mep_option_override): Move register handling for -mivc2 from
8751         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8752         instead of option_mtiny_specified.
8753         (mep_handle_option): Access target_flags via opts pointer.  Don't
8754         assert that global structures are in use.  Defer part of -mivc2
8755         handling and move it to mep_option_override.
8756         * config/mep/mep.opt (IVC2): New Mask entry.
8757         (mivc2): Use Var and Defer instead of Mask.
8758
8759 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8760
8761         * config/v850/v850-opts.h: New.
8762         * config/v850/v850.c (small_memory): Replace with
8763         small_memory_physical_max array.  Make that array static const.
8764         (v850_handle_memory_option): Take integer value of argument.  Take
8765         gcc_options pointer, option text and location.  Return void.
8766         Update for changes to small memory structures.
8767         (v850_handle_option): Access target_flags via opts pointer.  Don't
8768         assert that global structures are in use.  Update calls to
8769         v850_handle_memory_option.
8770         (v850_encode_data_area): Update references to small memory settings.
8771         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8772         (enum small_memory_type): Move to v850-opts.h.
8773         * config/v850/v850.opt (config/v850/v850-opts.h): New
8774         HeaderInclude entry.
8775         (small_memory_max): New Variable entry.
8776         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8777         (mtda, mzda): Likewise.
8778
8779 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8780
8781         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8782         pointer.  Don't assert that global structures are in use.
8783
8784 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8785
8786         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8787         via opts pointer.  Don't assert that global structures are in use.
8788
8789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8790
8791         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8792         (munix=93): Use Var.
8793         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8794         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8795         * config/pa/pa-opts.h: New.
8796         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8797         (pa_handle_option): Don't assert that global structures are in
8798         use.  Access target_flags via opts pointer.  Don't handle
8799         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8800         OPT_munix_98 here.
8801         (pa_option_override): Handle deferred OPT_mfixed_range_.
8802
8803 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8804
8805         * config/mn10300/mn10300-opts.h: New.
8806         * config/mn10300/mn10300.c (mn10300_processor,
8807         mn10300_tune_string): Remove.
8808         (mn10300_handle_option): Don't assert that global structures are
8809         in use.  Access mn10300_processor via opts pointer.  Don't handle
8810         OPT_mtune_ here.
8811         * config/mn10300/mn10300.h (enum processor_type): Move to
8812         mn10300-opts.h.
8813         (mn10300_processor): Remove.
8814         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8815         HeaderInclude entry.
8816         (mn10300_processor): New Variable entry.
8817         (mtune=): Use Var.
8818
8819 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8820
8821         * config/microblaze/microblaze.c: Don't include opts.h.
8822         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8823         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8824         (mno-clearbss): Use Var and Warn.
8825
8826 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * config/m32r/m32r-opts.h: New.
8829         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8830         (m32r_handle_option): Don't assert that global structures are in
8831         use.  Access target_flags and m32r_cache_flush_func via opts
8832         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8833         OPT_mno_flush_trap here.
8834         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8835         include of m32r-opts.h.
8836         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8837         HeaderInclude entry.
8838         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8839         (mmodel=): Use Enum and Var.
8840         (m32r_model): New Enum and EnumValue entries.
8841         (mno-flush-trap): Use Var.
8842         (msdata=): Use Enum and Var.
8843         (m32r_sdata): New Enum and EnumValue entries.
8844
8845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8846
8847         * config/m32c/m32c.c: Don't include opts.h.
8848         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8849         m32c_handle_option): Remove.
8850         (m32c_option_override): Check global_options_set.x_target_memregs
8851         instead of target_memregs_set.
8852         * config/m32c/m32c.h (target_memregs): Remove.
8853         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8854         variable.
8855
8856 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8857
8858         * config/iq2000/iq2000-opts.h: New.
8859         * config/iq2000/iq2000.c: Don't include opts.h.
8860         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8861         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8862         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8863         HeaderInclude entry.
8864         (iq2000_tune): New Variable entry.
8865         (march=): Add comment.  Use Enum.
8866         (iq2000_arch): New Enum and EnumValue entries.
8867         (mcpu=): Use Enum and Var.
8868         (iq2000_tune): New Enum and EnumValue entries.
8869
8870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8871
8872         * config/ia64/ia64-opts.h: New.
8873         * config/ia64/ia64.c (ia64_tune): Remove.
8874         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8875         here.  Use error_at.
8876         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8877         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8878         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8879         HeaderInclude entry.
8880         (ia64_tune): New Variable entry.
8881         (mfixed-range=): Use Defer and Var.
8882         (mtune=): Use Enum and Var.
8883         (ia64_tune): New Enum and EnumValue entries.
8884
8885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8886
8887         * config/frv/frv-opts.h: New.
8888         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8889         frv-opts.h.
8890         (frv_cpu_type): Remove.
8891         * config/frv/frv.c: Don't include opts.h.
8892         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8893         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8894         (frv_cpu_type): New Variable entry.
8895         (frv_cpu): New Enum and EnumValue entries.
8896
8897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8898
8899         * config/cris/cris.c (cris_handle_option): Access target_flags via
8900         opts pointer.  Don't assert that global structures are in use.
8901         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8902         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8903
8904 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8905
8906         * config/bfin/bfin-opts.h: New.
8907         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8908         bfin_si_revision, bfin_workarounds): Remove.
8909         (bfin_cpus): Make static const.
8910         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8911         not bfin_lib_id_given.
8912         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8913         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8914         pointer. Use error_at.  Don't assert that global structures are in use.
8915         * config/bfin/bfin.h: Include bfin-opts.h.
8916         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8917         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8918         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8919         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8920         entries.
8921
8922 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8923
8924         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8925         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8926         or -msoft-float here.
8927         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8928         -msoft-float and -mhard-float.
8929         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8930         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8931         msoft-float.
8932         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8933         -msoft-float.
8934         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8935         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8936         not mhard-float.
8937         (LIBGCC_SPEC): Don't handle -msoft-float.
8938         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8939         -mhard-float.
8940         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8941         msoft-float.
8942         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8943         -mfloat-abi=*, not -msoft-float and -mhard-float.
8944         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8945         -msoft-float.
8946         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8947         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8948         mhard-float and msoft-float.
8949         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8950         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8951         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8952         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8953         mhard-float.
8954         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8955         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8956         msoft-float.
8957         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8958         not mhard-float.
8959         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8960         not msoft-float.
8961
8962 2011-03-22  Richard Henderson  <rth@redhat.com>
8963
8964         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8965         TARGET_ABI_WINDOWS_NT.
8966         (alpha_output_function_end_prologue): Likewise.
8967         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8968         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8969         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8970         (trap, *movsi_nt_vms): Likewise.
8971         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8972         (*tablejump_osf_nt_internal): Remove.
8973         * config/alpha/predicates.md (input_operand): Only test Pmode.
8974
8975 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8976
8977         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8978         via opts pointer.  Use error_at.  Don't assert that global
8979         structures are in use.
8980
8981 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8982
8983         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8984         (ix86_handle_option): Access ix86_isa_flags and
8985         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8986         global structures are in use.
8987         (ix86_function_specific_save, ix86_function_specific_restore):
8988         Update ix86_isa_flags_explicit field name.
8989         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8990         (ix86_isa_flags_explicit): Rename TargetSave entry to
8991         x_ix86_isa_flags_explicit.
8992
8993 2011-03-22  Richard Henderson  <rth@redhat.com>
8994
8995         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8996         (alpha_option_override, direct_return): Likewise.
8997         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8998         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8999         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9000         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9001         (alpha_expand_epilogue, alpha_end_function): Likewise.
9002         (alpha_init_libfuncs): Likewise.
9003         (struct machine_function): Remove unicosmk members.
9004         (print_operand) ['t']: Remove.
9005         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9006         unicosmk_output_module_name, unicosmk_output_common,
9007         current_section_align, unicosmk_output_text_section_asm_op,
9008         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9009         unicosmk_section_type_flags, unicosmk_unique_section,
9010         unicosmk_asm_named_section, unicosmk_insert_attributes,
9011         unicosmk_output_align, unicosmk_defer_case_vector,
9012         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9013         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9014         unicosmk_output_ssib, unicosmk_add_call_info_word,
9015         unicosmk_extern_head, unicosmk_output_default_externs,
9016         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9017         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9018         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9019         * config/alpha/alpha-protos.h: Update.
9020         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9021         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9022         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9023         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9024         (*mulsi_se, mulvsi3): Likewise.
9025         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9026         (*divmodsi_internal, call, call_value, realign): Likewise.
9027         (moddi3, umoddi3): Likewise; remove duplicate expander.
9028         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9029         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9030         (*movdi_nofix): Remove r/U alternative.
9031         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9032         * config/alpha/constraints.md ("U"): Remove.
9033         * config/alpha/predicates.md (call_operand"): Don't test
9034         TARGET_ABI_UNICOSMK.
9035
9036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * target.def (handle_option): Take gcc_options and
9039         cl_decoded_option pointers and location_t.
9040         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9041         * doc/tm.texi: Regenerate.
9042         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9043         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9044         * lto-opts.c (lto_reissue_options): Generate option structure for
9045         targetm.handle_option call.
9046         * opts.c (target_handle_option): Update call to
9047         targetm.handle_option.  Remove assertions about values now passed
9048         down to hook.
9049         * targhooks.c (default_target_handle_option): New.
9050         * targhooks.h (default_target_handle_option): Declare.
9051         * config/alpha/alpha.c: Include opts.h.
9052         (alpha_handle_option): Update to new hook interface.
9053         * config/arm/arm.c: Include opts.h.
9054         (arm_handle_option): Update to new hook interface.
9055         * config/arm/t-arm (arm.o): Update dependencies.
9056         * config/bfin/bfin.c: Include opts.h.
9057         (bfin_handle_option): Update to new hook interface.
9058         * config/cris/cris.c: Include opts.h.
9059         (cris_handle_option): Update to new hook interface.
9060         * config/frv/frv.c: Include opts.h.
9061         (frv_handle_option): Update to new hook interface.
9062         * config/i386/i386.c: Include opts.h.
9063         (ix86_handle_option): Update to new hook interface.
9064         (ix86_valid_target_attribute_inner_p): Generate option structure
9065         for call to ix86_handle_option.
9066         * config/i386/t-i386 (i386.o): Update dependencies.
9067         * config/ia64/ia64.c: Include opts.h.
9068         (ia64_handle_option): Update to new hook interface.
9069         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9070         * config/iq2000/iq2000.c: Include opts.h.
9071         (iq2000_handle_option): Update to new hook interface.
9072         * config/m32c/m32c.c: Include opts.h.
9073         (m32c_handle_option): Update to new hook interface.
9074         * config/m32r/m32r.c: Include opts.h.
9075         (m32r_handle_option): Update to new hook interface.
9076         * config/m68k/m68k.c: Include opts.h.
9077         (m68k_handle_option): Update to new hook interface.
9078         * config/mep/mep.c: Include opts.h.
9079         (mep_handle_option): Update to new hook interface.
9080         * config/microblaze/microblaze.c: Include opts.h.
9081         (microblaze_handle_option): Update to new hook interface.
9082         * config/mips/mips.c: Include opts.h.
9083         (mips_handle_option): Update to new hook interface.
9084         * config/mn10300/mn10300.c: Include opts.h.
9085         (mn10300_handle_option): Update to new hook interface.
9086         * config/pa/pa.c: Include opts.h.
9087         (pa_handle_option): Update to new hook interface.
9088         * config/pdp11/pdp11.c: Include opts.h.
9089         (pdp11_handle_option): Update to new hook interface.
9090         * config/rs6000/rs6000.c: Include opts.h.
9091         (rs6000_handle_option): Update to new hook interface.
9092         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9093         * config/rx/rx.c: Include opts.h.
9094         (rx_handle_option): Update to new hook interface.
9095         * config/s390/s390.c: Include opts.h.
9096         (s390_handle_option): Update to new hook interface.
9097         * config/score/score.c: Include opts.h.
9098         (score_handle_option): Update to new hook interface.
9099         * config/sh/sh.c: Include opts.h.
9100         (sh_handle_option): Update to new hook interface.
9101         * config/sparc/sparc.c: Include opts.h.
9102         (sparc_handle_option): Update to new hook interface.
9103         * config/v850/v850.c: Include opts.h.
9104         (v850_handle_option): Update to new hook interface.
9105
9106 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9107
9108         * gcc.c (driver_unknown_option_callback): Only permit and save
9109         unknown -Wno- options.
9110         (driver_wrong_lang_callback): Save options directly instead of via
9111         driver_unknown_option_callback.
9112
9113 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9114
9115         * combine.c (simplify_set): Try harder to find the best CC mode when
9116         simplifying a nested COMPARE on the RHS.
9117
9118 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9119
9120         * config/alpha/gnu.h: Remove.
9121         * config/arc: Remove directory.
9122         * config/arm/netbsd.h: Remove.
9123         * config/arm/t-pe: Remove.
9124         * config/crx: Remove directory.
9125         * config/i386/netbsd.h: Remove.
9126         * config/m68hc11: Remove directory.
9127         * config/m68k/uclinux-oldabi.h: Remove.
9128         * config/mcore/mcore-pe.h: Remove.
9129         * config/mcore/t-mcore-pe: Remove.
9130         * config/netbsd-aout.h: Remove.
9131         * config/rs6000/gnu.h: Remove.
9132         * config/sh/sh-symbian.h: Remove.
9133         * config/sh/symbian-base.c: Remove.
9134         * config/sh/symbian-c.c: Remove.
9135         * config/sh/symbian-cxx.c: Remove.
9136         * config/sh/symbian-post.h: Remove.
9137         * config/sh/symbian-pre.h: Remove.
9138         * config/sh/t-symbian: Remove.
9139         * config/svr3.h: Remove.
9140         * config/vax/netbsd.h: Remove.
9141         * config.build: Don't handle i[34567]86-*-pe.
9142         * config.gcc: Remove handling of deprecations for most deprecated
9143         targets.
9144         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9145         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9146         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9147         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9148         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9149         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9150         Remove cases.
9151         * config.host: Don't handle i[34567]86-*-pe.
9152         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9153         (ASM_SPEC32): Don't handle -mcall-gnu.
9154         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9155         -mcall-gnu.
9156         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9157         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9158         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9159         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9160         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9161         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9162         conditional on SYMBIAN.
9163         * configure.ac: Don't handle powerpc*-*-gnu*.
9164         * configure: Regenerate.
9165         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9166         * doc/install-old.texi (m6811, m6812): Don't mention.
9167         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9168         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9169         (m68k-uclinuxoldabi): Don't mention.
9170         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9171         Remove.
9172         (-mcall-gnu): Remove.
9173         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9174         families): Remove constraint documentation.
9175
9176 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9177
9178         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9179         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9180         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9181
9182 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9183
9184         PR target/48226
9185         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9186         vector when peeking at the next token for vector, don't expand the
9187         keywords.
9188
9189 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9190
9191         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9192         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9193         * config/avr/avr.c (init_cumulative_args)
9194         (avr_function_arg_advance): Use it.
9195         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9196         sibcall epilogues.
9197         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9198         (avr_function_ok_for_sibcall): ...this new function.
9199         (avr_lookup_function_attribute1): New static Function.
9200         (avr_naked_function_p, interrupt_function_p)
9201         (signal_function_p, avr_OS_task_function_p)
9202         (avr_OS_main_function_p): Use it.
9203         * config/avr/avr.md ("sibcall", "sibcall_value")
9204         ("sibcall_epilogue"): New expander.
9205         ("*call_insn", "*call_value_insn"): New insn.
9206         ("call_insn", "call_value_insn"): Remove
9207         ("call", "call_value", "epilogue"): Change expander to handle
9208         sibling calls.
9209
9210 2011-03-21  Nick Clifton  <nickc@redhat.com>
9211
9212         * doc/invoke.texi (Overall Options): Move closing brace to end of
9213         options list.
9214         (Optimization Options): Add missing @gol.
9215         (Directory Options): Likewise.
9216         (i386 and x86-64 Options): Likewise.
9217         (RS6000 and PowerPC Options): Likewise.
9218         (i386 and x86-64 Windows Options): Likewise.
9219         (V850 Options): Add text missing from descriptions.
9220
9221 2011-03-22  Richard Henderson  <rth@redhat.com>
9222
9223         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9224         (avr_incoming_return_addr_rtx): New.
9225         (emit_push_byte): New.
9226         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9227         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9228         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9229         (emit_pop_byte): New.
9230         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9231         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9232         (INCOMING_RETURN_ADDR_RTX): New.
9233         (INCOMING_FRAME_SP_OFFSET): New.
9234         (ARG_POINTER_CFA_OFFSET): New.
9235         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9236         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9237         (pophi): Remove.
9238
9239         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9240
9241 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9242
9243         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9244         (FUNCTION_ARG_ADVANCE): Likewise.
9245         * tm.texi.in: Change references to them to hook references.
9246         * tm.texi: Regenerate.
9247         * targhooks.c (default_function_arg): Eliminate check for target
9248         macro.
9249         (default_function_incoming_arg): Likewise.
9250         (default_function_arg_advance): Likewise.
9251         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9252         (function_arg_advance): Likewise.
9253         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9254
9255 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9256
9257         * tree.c (build_call_1): New function.
9258         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9259
9260 2011-03-22  Richard Guenther  <rguenther@suse.de>
9261
9262         PR tree-optimization/48228
9263         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9264         for single-arg PHIs.
9265
9266 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9267
9268         PR rtl-optimization/48143
9269         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9270         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9271         sse2_cvtps2pd): Likewise.
9272
9273 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9274
9275         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9276
9277 2011-03-22  Richard Guenther  <rguenther@suse.de>
9278
9279         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9280         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9281         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9282         and REALIGN_LOAD_EXPR.
9283         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9284         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9285         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9286         DOT_PROD_EXPR case ...
9287         (expand_expr_real_2): ... here.
9288         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9289         and REALIGN_LOAD_EXPR.
9290         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9291         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9292         (vect_create_epilog_for_reduction): Likewise.
9293         (vectorizable_reduction): Likewise.
9294         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9295         * tree-vect-stmts.c (vectorizable_load): Likewise.
9296
9297 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9298
9299         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9300
9301 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9302
9303         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9304         handling for PLTOFF/GOTOFF.
9305
9306 2011-03-22  Nick Clifton  <nickc@redhat.com>
9307
9308         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9309         trailing backslash from the end of the macro definition.
9310
9311 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9312
9313         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9314         and PLT unspecs.
9315
9316 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9317
9318         * expr.h (prepare_operand): Move to...
9319         * optabs.h (prepare_operand): ...here and change the insn code
9320         parameter from "int" to "enum insn_code".
9321         (insn_operand_matches): Declare.
9322         * expr.c (init_expr_target): Use insn_operand_matches.
9323         (compress_float_constant): Likewise.
9324         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9325         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9326         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9327         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9328         Likewise.
9329         (gen_cond_trap): Likewise.
9330         (prepare_operand): Likewise.  Change icode to an insn_code.
9331         (insn_operand_matches): New function.
9332         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9333         * reload1.c (gen_reload): Likewise.
9334         * targhooks.c (default_secondary_reload): Likewise.
9335
9336 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9337
9338         * config/alpha/alpha.md (unspec): New define_c_enum.
9339         (unspecv): Ditto.
9340
9341 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9342
9343         PR debug/48214
9344         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9345         between a call and its CALL_ARG_LOCATION note.
9346
9347 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9348
9349         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9350
9351 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9352
9353         PR c/42544
9354         PR c/48197
9355         * c-common.c (shorten_compare): If primopN is first sign-extended
9356         to opN and then zero-extended to result type, set primopN to opN.
9357
9358 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9359
9360         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9361         for barrier handlers.
9362
9363 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9364
9365         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9366         UNSPEC constants to be in the unspec enumeration, and redefine
9367         all UNSPECV constants to be in the unspecv enumeration, so that
9368         dumps print which unspec/unspec_volatile this is.
9369         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9370         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9371         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9372         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9373         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9374
9375         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9376         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9377         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9378         * config/rs6000/sync.md (isync, lwsync): Ditto.
9379
9380 2011-03-21  Richard Guenther  <rguenther@suse.de>
9381
9382         * params.def (lto-min-partition): Fix typo.
9383
9384 2011-03-21  Richard Guenther  <rguenther@suse.de>
9385
9386         PR c/47939
9387         * c-decl.c (grokdeclarator): Drop to the main variant only
9388         for array types.  Drop flag_gen_aux_info check.
9389
9390 2011-03-21  Richard Guenther  <rguenther@suse.de>
9391
9392         PR translation/47911
9393         * params.def (lto-partitions): Fix typo.
9394         (lto-min-partition): Fix wording.
9395
9396 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9397
9398         * config/rs6000/t-freebsd: Remove duplication from file.
9399
9400 2011-03-21  Richard Guenther  <rguenther@suse.de>
9401
9402         PR middle-end/47661
9403         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9404
9405 2011-03-21  Richard Guenther  <rguenther@suse.de>
9406
9407         PR lto/48210
9408         * params.def (lto-partitions): Require at least 1 partition.
9409
9410 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9411
9412         * gthr-solaris.h: Remove.
9413         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9414         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9415         (LIB_SPEC): Likewise.
9416         * config/sol2.opt (threads): Remove.
9417         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9418         (sparc*-*-solaris2*): Likewise.
9419         * configure.ac (enable_threads): Enable solaris support.
9420         * configure: Regenerate.
9421         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9422         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9423         solaris.
9424
9425 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9426
9427         * config.gcc: Obsolete *-*-solaris2.8*.
9428         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9429
9430 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9431
9432         PR bootstrap/48135
9433         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9434         reference.  Solaris 8 perl works.
9435
9436 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9437
9438         PR bootstrap/48135
9439         * doc/install.texi (Prerequisites): Move jar etc. up.
9440         Explain support library version requirements.
9441
9442 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9443
9444         PR bootstrap/48135
9445         * doc/install.texi (Prerequisites): Move Perl to build
9446         requirements.  Always necessary on Solaris 2 with Sun ld.
9447
9448 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9449
9450         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9451         binutils 2.21.
9452         (Specific, i?86-*-solaris2.[89]): Likewise.
9453         (Specific, i?86-*-solaris2.10): Likewise.
9454         (Specific, mips-sgi-irix6): Likewise.
9455         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9456         Update for binutils 2.21.
9457
9458 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9459
9460         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9461         Allow -fuse-linker-plugin for non-default plugin linker.
9462         * configure: Regenerate.
9463
9464 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9465
9466         PR bootstrap/48167
9467         * gengtype.c (files_rules): Added rule for cp/parser.h.
9468
9469 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9470
9471         PR target/48213
9472         * config/s390/s390.c (s390_delegitimize_address): Don't call
9473         lowpart_subreg if orig_x has BLKmode.
9474
9475 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9476
9477         PR target/12171
9478         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9479         * tree.h (attribute_spec): Add new member affects_type_identity.
9480         * attribs.c (empty_attribute_table): Adjust attribute_spec
9481         initializers.
9482         * config/alpha/alpha.c: Likewise.
9483         * config/arc/arc.c: Likewise.
9484         * config/arm/arm.c: Likewise.
9485         * config/avr/avr.c: Likewise.
9486         * config/bfin/bfin.c: Likewise.
9487         * config/crx/crx.c: Likewise.
9488         * config/darwin.h: Likewise.
9489         * config/h8300/h8300.c: Likewise.
9490         * config/i386/cygming.h: Likewise.
9491         * config/i386/i386.c: Likewise.
9492         * config/ia64/ia64.c: Likewise.
9493         * config/m32c/m32c.c: Likewise.
9494         * config/m32r/m32r.c: Likewise.
9495         * config/m68hc11/m68hc11.c: Likewise.
9496         * config/m68k/m68k.c: Likewise.
9497         * config/mcore/mcore.c: Likewise.
9498         * config/mep/mep.c: Likewise.
9499         * config/microblaze/microblaze.c: Likewise.
9500         * config/mips/mips.c: Likewise.
9501         * config/rs6000/rs6000.c: Likewise.
9502         * config/rx/rx.c: Likewise.
9503         * config/sh/sh.c: Likewise.
9504         * config/sol2.h: Likewise.
9505         * config/sparc/sparc.c: Likewise.
9506         * config/spu/spu.c: Likewise.
9507         * config/stormy16/stormy16.c: Likewise.
9508         * config/v850/v850.c: Likewise.
9509
9510 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9511
9512         * simplify-rtx.c (simplify_binary_operation_1): Handle
9513         (xor (and A B) C) case when B and C are both constants.
9514
9515 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9516
9517         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9518
9519 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9520
9521         PR bootstrap/48168
9522         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9523
9524 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9525
9526         PR rtl-optimization/48156
9527         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9528         assume df and df_lr are not NULL.
9529
9530 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9531
9532         PR debug/48023
9533         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9534         between a call and its CALL_ARG_LOCATION note.
9535
9536 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9537
9538         PR debug/48178
9539         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9540         between a call and its corresponding CALL_ARG_LOCATION note.
9541
9542 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9543
9544         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9545         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9546         * haifa-sched.c (setup_ref_regs): Ditto.
9547         * caller-save.c (add_used_regs_1): Ditto.
9548         * dse.c (look_for_hardregs): Ditto.
9549         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9550         * sched-rgn.c (check_live_1): Ditto.
9551
9552 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9553
9554         * c-decl.c (diagnose_mismatched_decls): Give an error for
9555         redefining a typedef with variably modified type.
9556
9557 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9558
9559         * c-decl.c (grokfield): Don't allow typedefs for structures or
9560         unions with no tag by default.
9561         * doc/extend.texi (Unnamed Fields): Update.
9562
9563 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9564
9565         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9566         Rewrite using indirect functions.
9567         (lwp_slwpcb): Ditto.
9568         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9569         (avx_vinsertf128<mode>): Ditto.
9570
9571 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9572
9573         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9574         unspecs.
9575
9576 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9577
9578         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9579         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9580
9581 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9582
9583         PR rtl-optimization/48170
9584         * gcse.c (hoist_code): Remove bogus asserts.
9585
9586 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9587
9588         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9589         computation for prologue/epilogue.
9590
9591 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9592
9593         * Makefile.in (check-consistency): Remove.
9594
9595 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9596
9597         PR debug/48176
9598         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9599         arange_table_in_use is 0, but either text_section_used or
9600         cold_text_section_used is true.  Don't call it if
9601         !info_section_emitted.
9602
9603 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9604
9605         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9606         FUNCTION_VALUE_REGNO_P): Remove.
9607         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9608         Remove.
9609         * config/avr/avr.c (avr_ret_register): Make static inline.
9610         (avr_function_value_regno_p): New function.
9611         (avr_libcall_value): Make static. Add 'func' argument.
9612         (avr_function_value): Make static. Rename 'func' argument to
9613         'fn_decl_or_type', forward it to avr_libcall_value. Call
9614         avr_ret_register function instead of RET_REGISTER macro.
9615         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9616
9617 2011-03-18  Jason Merrill  <jason@redhat.com>
9618
9619         PR c++/23372
9620         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9621
9622 2011-03-18  Richard Guenther  <rguenther@suse.de>
9623
9624         * doc/install.texi (--enable-gold): Remove.
9625         (--with-plugin-ld): Document.
9626         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9627
9628 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9629
9630         PR middle-end/47790
9631         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9632         again after expansion changes.
9633
9634 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9635
9636         * combine.c (try_combine): Do simplification only call of
9637         subst() on i2 even when i1 is present. Update comments.
9638
9639 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9640
9641         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9642         and UNSPEC_PCREL_SYMOFF.
9643
9644 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9645
9646         * config/s390/s390.md: Use define_c_enum for the unspec constant
9647         definitions.
9648
9649 2011-03-18  Richard Henderson  <rth@redhat.com>
9650             Jakub Jelinek  <jakub@redhat.com>
9651
9652         PR bootstrap/48161
9653         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9654         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9655
9656 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9657
9658         PR middle-end/47725
9659         * combine.c (cant_combine_insn_p): Don't check zero/sign
9660         extended hard registers.
9661
9662 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9663
9664         PR middle-end/47725
9665         * combine.c (cant_combine_insn_p): Check zero/sign extended
9666         hard registers.
9667
9668 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9669
9670         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9671         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9672         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9673         Change return type to bool.
9674         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9675
9676 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9677
9678         PR debug/48163
9679         * var-tracking.c (prepare_call_arguments): If CALL target
9680         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9681         pc instead of looking it up using cselib_lookup and use
9682         Pmode for it if x has VOIDmode.
9683         * dwarf2out.c (gen_subprogram_die): If also both first and
9684         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9685
9686         PR debug/48163
9687         * function.c (assign_parms): For data.passed_pointer parms
9688         use MEM of data.entry_parm instead of data.entry_parm itself
9689         as DECL_INCOMING_RTL.
9690         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9691         also when passed and declared mode is the same, DECL_RTL
9692         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9693         a MEM too.
9694
9695 2011-03-16  Jeff Law  <law@redhat.com>
9696
9697         PR rtl-optimization/37273
9698         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9699         handle them like argument loads from stack slots.  Do not double
9700         count memory for memory constants and argument loads from stack slots.
9701
9702 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         PR debug/48160
9705         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9706
9707 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9708
9709         PR target/48171
9710         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9711
9712 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9713
9714         PR bootstrap/48153
9715         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9716         if dwarf_strict.
9717         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9718         Clear call_arg_locations and call_arg_loc_last always.
9719
9720         PR middle-end/48152
9721         * var-tracking.c (prepare_call_arguments): If argument needs to be
9722         passed by reference, adjust argtype and mode.
9723
9724 2011-03-17  Richard Guenther  <rguenther@suse.de>
9725
9726         PR middle-end/48134
9727         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9728         a value make sure to fold the statement.
9729
9730 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9731
9732         PR target/43872
9733         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9734         return condition with !cfun->calls_alloca.
9735
9736 2011-03-17  Richard Guenther  <rguenther@suse.de>
9737
9738         PR bootstrap/48148
9739         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9740         origin for decls in other ltrans units.
9741         (input_varpool_node): Likewise.
9742
9743 2011-03-17  Richard Guenther  <rguenther@suse.de>
9744
9745         PR middle-end/48165
9746         * tree-object-size.c (compute_object_offset): Properly return
9747         the offset operand of MEM_REFs as sizetype.
9748
9749 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9750
9751         PR rtl-optimization/48141
9752         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9753         * dse.c: Include params.h.
9754         (active_local_stores_len): New variable.
9755         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9756         to NULL.
9757         (record_store, check_mem_read_rtx): Decrease it when removing
9758         from the chain.
9759         (scan_insn): Likewise.  Increase it when adding to chain, if it
9760         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9761         set active_local_stores to NULL before the addition.
9762         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9763
9764         PR rtl-optimization/48141
9765         * dse.c (record_store): If no positions are needed in an insn
9766         that cannot be deleted, at least unchain it from active_local_stores.
9767
9768 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9769
9770         PR debug/47510
9771         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9772         (lookup_type_die_strip_naming_typedef): ... here.
9773         (get_context_die): Use it.
9774         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9775         the anonymous struct named by the naming typedef.
9776
9777 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9778
9779         PR target/48154
9780         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9781         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9782
9783 2011-03-16  Jeff Law  <law@redhat.com>
9784
9785         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9786         check for operands of conditional.  Allow type to be a pointer.
9787
9788 2011-03-16  Richard Guenther  <rguenther@suse.de>
9789
9790         PR tree-optimization/48149
9791         * fold-const.c (fold_binary_loc): Fold
9792         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9793
9794 2011-03-16  Richard Guenther  <rguenther@suse.de>
9795
9796         PR tree-optimization/26134
9797         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9798         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9799         (non_rewritable_mem_ref_base): Handle complex type component
9800         accesses, constrain offsets for vector and complex extracts
9801         more properly.
9802
9803 2011-03-16  Richard Guenther  <rguenther@suse.de>
9804
9805         PR tree-optimization/48146
9806         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9807         operands avoiding the need for renaming.
9808
9809 2011-03-16  Richard Guenther  <rguenther@suse.de>
9810
9811         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9812         constant folding.  Move MEM_REF canonicalization first.
9813         Rely on fold_const_aggregate_ref for initializer folding.
9814         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9815
9816 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9817
9818         PR middle-end/48136
9819         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9820         arg0/arg1 or their arguments are always fold converted to matching
9821         types.
9822
9823         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9824         to nargs.
9825
9826 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9827
9828         PR lto/46944
9829         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9830         Handle in-tree gold.
9831         (ld_vers): Extract binutils version for gold.
9832         (gcc_cv_ld_hidden): Handle gold here.
9833         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9834         * configure: Regenerate.
9835         * config.in: Regenerate.
9836         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9837         -fuse-linker-plugin otherwise.
9838         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9839         (LINK_COMMAND_SPEC): Use it.
9840         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9841
9842 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9843
9844         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9845         * calls.c: Remove debug.h include.
9846         (emit_call_1): Don't call virtual_call_token debug hook.
9847         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9848         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9849         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9850         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9851         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9852         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9853         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9854         dwarf2out_virtual_call): Remove.
9855         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9856         copy_call_info and virtual_call hooks.
9857         (dwarf2out_init): Don't initialize vcall_insn_table,
9858         debug_dcall_section and debug_vcall_section.
9859         (prune_unused_types): Don't mark nodes from dcall_table.
9860         (dwarf2out_finish): Don't output dcall or vcall tables.
9861         * final.c (final_scan_insn): Don't call direct_call or
9862         virtual_call debug hooks.
9863         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9864         virtual_call_token, copy_call_info and virtual_call hooks.
9865         (debug_nothing_uid): Remove prototype.
9866         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9867         copy_call_info and virtual_call hooks.
9868         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9869         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9870         * debug.c (do_nothing_debug_hooks): Likewise.
9871         (debug_nothing_uid): Remove.
9872         * doc/invoke.texi (-fenable-icf-debug): Remove.
9873         * common.opt (-fenable-icf-debug): Likewise.
9874
9875         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9876         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9877         call's MEM.  Handle functions returning aggregate through a hidden
9878         first pointer.  For virtual calls add clobbered pc to call arguments
9879         chain.
9880         * dwarf2out.c (gen_subprogram_die): Emit
9881         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9882         can't be emitted.
9883
9884         PR debug/45882
9885         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9886         * rtl.h (ENTRY_VALUE_EXP): Define.
9887         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9888         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9889         * print-rtl.c (print_rtx): Likewise.
9890         * gengtype.c (adjust_field_rtx_def): Likewise.
9891         * var-tracking.c (vt_add_function_parameter): Adjust
9892         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9893         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9894         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9895         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9896         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9897
9898         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9899         Call var_location debug hook even on CALL_INSNs.
9900         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9901         * rtl.def (ENTRY_VALUE): New.
9902         * dwarf2out.c: Include cfglayout.h.
9903         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9904         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9905         (struct call_arg_loc_node): New type.
9906         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9907         tail_call_site_count): New variables.
9908         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9909         DW_TAG_GNU_call_site_parameter.
9910         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9911         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9912         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9913         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9914         and DW_AT_GNU_all_source_call_sites.
9915         (mem_loc_descriptor): Handle ENTRY_VALUE.
9916         (add_src_coords_attributes): Don't add enything if
9917         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9918         (dwarf2out_abstract_function): Save and clear call_arg_location,
9919         call_site_count and tail_call_site_count around dwarf2out_decl call.
9920         (gen_call_site_die): New function.
9921         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9922         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9923         (dwarf2out_function_decl): Clear call_arg_locations,
9924         call_arg_loc_last, set call_site_count and tail_call_site_count
9925         to -1 and free block_map.
9926         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9927         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9928         followed by any real instructions.
9929         (dwarf2out_begin_function): Set call_site_count and
9930         tail_call_site_count to 0.
9931         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9932         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9933         attempt to force a DIE for it and worst case remove the attribute.
9934         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9935         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9936         the decl itself.
9937         * var-tracking.c: Include tm_p.h.
9938         (vt_stack_adjustments): For calls call note_register_arguments.
9939         (argument_reg_set): New variable.
9940         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9941         ensure the VALUE is resolved.
9942         (call_arguments): New variable.
9943         (prepare_call_arguments): New function.
9944         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9945         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9946         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9947         always use the best expression.
9948         (vt_expand_loc): Add ignore_cur_loc argument.
9949         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9950         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9951         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9952         note for all calls.
9953         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9954         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9955         argument.  Don't call cselib_preserve_only_values and
9956         cselib_reset_table.
9957         (note_register_arguments): New function.
9958         (vt_initialize): Compute argument_reg_set.  Call
9959         vt_add_function_parameters before processing basic blocks instead of
9960         afterwards.  For calls call prepare_call_arguments before calling
9961         cselib_process_insn.
9962         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9963         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9964         (var-tracking.o): Depend on $(TM_P_H).
9965         * cfglayout.h (insn_scope): New prototype.
9966         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9967         * cfglayout.c (insn_scope): No longer static.
9968         * insn-notes.def (CALL_ARG_LOCATION): New.
9969         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9970         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9971         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9972         nothing for DECL_EXTERNAL BLOCK_VARS.
9973
9974 2011-03-16  Alan Modra  <amodra@gmail.com>
9975
9976         PR target/45844
9977         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9978         create invalid offset address for vsx splat insn.
9979         * config/rs6000/predicates.md (splat_input_operand): New.
9980         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9981
9982 2011-03-15  Xinliang David Li  <davidxl@google.com>
9983
9984         PR c/47837
9985         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9986         (normalize_preds): New function.
9987         (is_use_properly_guarded): Normalize def predicates.
9988
9989 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9990
9991         PR target/46788
9992         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9993         in the output template.
9994
9995 2011-03-15  Richard Guenther  <rguenther@suse.de>
9996
9997         PR middle-end/47650
9998         * tree-pretty-print.c (dump_function_declaration): Properly
9999         dump unprototyped and varargs function types.
10000
10001 2011-03-15  Richard Guenther  <rguenther@suse.de>
10002
10003         PR tree-optimization/13954
10004         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10005         and friends.
10006
10007 2011-03-15  Richard Guenther  <rguenther@suse.de>
10008
10009         PR tree-optimization/48037
10010         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10011         selects into BIT_FIELD_REFs.
10012         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10013         vector select.
10014
10015 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10016
10017         PR tree-optimization/48129
10018         * builtins.c (fold_builtin_snprintf): Convert to type of
10019         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10020         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10021
10022 2011-03-15  Richard Guenther  <rguenther@suse.de>
10023
10024         PR tree-optimization/41490
10025         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10026         value but with VUSE.
10027         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10028         return statements.
10029         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10030         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10031         * tree-tailcall.c (find_tail_calls): Ignore returns.
10032
10033 2011-03-15  Richard Guenther  <rguenther@suse.de>
10034
10035         PR middle-end/48031
10036         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10037         or variable-indexed array accesses when in gimple form.
10038
10039 2011-03-15  Richard Guenther  <rguenther@suse.de>
10040
10041         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10042
10043 2011-03-15  Alan Modra  <amodra@gmail.com>
10044
10045         PR target/48032
10046         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10047         presume symbol_refs without a symbol_ref_decl are suitably
10048         aligned, nor other trees we may see here.  Handle anchor symbols.
10049         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10050         Check cmodel=medium addresses.  Adjust all calls.
10051         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10052         creating cmodel=medium optimized access to locals.
10053         * config/rs6000/constraints.md (R): Pass QImode to
10054         legitimate_constant_pool_address_p.
10055         * config/rs6000/predicates.md (input_operand): Pass mode to
10056         legitimate_constant_pool_address_p.
10057         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10058         Update prototype.
10059
10060 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10061
10062         PR target/48053
10063         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10064         64-bit constants being loaded into registers other than GPRs such
10065         as loading 0 into a VSX register.
10066
10067 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10068
10069         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10070
10071 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10072
10073         PR middle-end/47917
10074         * builtins.c (fold_builtin_snprintf): New function.
10075         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10076         (fold_builtin_4): Likewise.
10077
10078         PR middle-end/38878
10079         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10080         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10081         and C - X == X also strip nops from +/-/p+ operand.
10082         When optimizing -X == C, fold C to arg0's type.
10083
10084         PR debug/47946
10085         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10086         emit it as add_AT_int instead of add_AT_unsigned.
10087
10088 2011-03-14  Tom Tromey  <tromey@redhat.com>
10089
10090         * unwind-dw2.c: Include sys/sdt.h if it exists.
10091         (_Unwind_DebugHook): Use STAP_PROBE2.
10092         * config.in, configure: Rebuild.
10093         * configure.ac: Check for sys/sdt.h.
10094
10095 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10096
10097         * config/i386/i386.md (ROUND_FLOOR): New constant.
10098         (ROUND_CEIL): Ditto.
10099         (ROUND_TRUNC): Ditto.
10100         (ROUND_MXCSR): Ditto.
10101         (ROUND_NO_EXC): Ditto.
10102         (rint<mode>2): Use new defines instead of numerical constants.
10103         (floor<mode>2): Ditto.
10104         (ceil<mode>2): Ditto.
10105         (btrunc<mode>2): Ditto.
10106         * config/i386/i386-builtin-types.def: Define ROUND function type
10107         aliases.
10108         * config/i386/i386.c (enum ix86_builtins): Add
10109         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10110         (struct builtin_description): Add
10111         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10112         (ix86_expand_sse_round): New static function.
10113         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10114         function types.
10115         (ix86_builtin_vectorized_function): Handle
10116         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10117
10118 2011-03-14  Tom Tromey  <tromey@redhat.com>
10119
10120         * c-parser.c (c_parser_asm_string_literal): Clear
10121         warn_overlength_strings.
10122
10123 2011-03-14  Tom Tromey  <tromey@redhat.com>
10124
10125         * c-parser.c (disable_extension_diagnostics): Save
10126         warn_overlength_strings.
10127         (restore_extension_diagnostics): Restore warn_overlength_strings.
10128
10129 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10130
10131         * BASE-VER: Change to 4.7.0.
10132
10133 2011-03-14  Richard Guenther  <rguenther@suse.de>
10134
10135         PR middle-end/48098
10136         * tree.c (build_vector_from_val): Adjust assert to requirements
10137         and reality.
10138
10139 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10140
10141         PR bootstrap/48102
10142         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10143
10144 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10145
10146         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10147         terms of target_flags_explicit. Adjust copyright year.
10148
10149         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10150         * config/rs6000/t-freebsd: New file. Add override for
10151         LIB2FUNCS_EXTRA.
10152
10153 2011-03-13  Chris Demetriou  <cgd@google.com>
10154
10155         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10156         (-fno-diagnostics-show-option): this, to reflect current default.
10157         (-Werror=): Update text about -fno-diagnostics-show-option.
10158
10159 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10160
10161         PR target/48053
10162         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10163         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10164         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10165         mode is not V2DImode or V2DFmode.
10166         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10167         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10168         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10169         registers to 0.
10170         (movdi_internal64): Likewise.
10171
10172 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10173
10174         PR tree-optimization/47127
10175         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10176         parameter.
10177         (set_cloog_options): Same.
10178         (scop_to_clast): Same.
10179         (print_clast_stmt): Do not call cloog_state_malloc and
10180         cloog_state_free.
10181         (print_generated_program): Same.
10182         (gloog): Same.
10183         * graphite-clast-to-gimple.h (cloog_state): Declared.
10184         (scop_to_clast): Adjust declaration.
10185         * graphite.c (cloog_state): Defined here.
10186         (graphite_initialize): Call cloog_state_malloc.
10187         (graphite_finalize): Call cloog_state_free.
10188
10189 2011-03-11  Jason Merrill  <jason@redhat.com>
10190
10191         * attribs.c (lookup_attribute_spec): Take const_tree.
10192         * tree.h: Adjust.
10193
10194 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10195
10196         * config/sparc/sparc.c (sparc_option_override): Use
10197         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10198
10199 2011-03-11  Richard Guenther  <rguenther@suse.de>
10200
10201         PR tree-optimization/48067
10202         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10203         multiplication result will be only used once on the target
10204         stmt.
10205
10206 2011-03-11  Richard Guenther  <rguenther@suse.de>
10207
10208         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10209
10210 2011-03-11  Richard Guenther  <rguenther@suse.de>
10211
10212         PR lto/48073
10213         * tree.c (find_decls_types_r): Do not walk types only reachable
10214         from IDENTIFIER_NODEs.
10215
10216 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10217
10218         PR middle-end/48044
10219         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10220         all vnode->force_output nodes as needed.
10221
10222 2011-03-11  Jason Merrill  <jason@redhat.com>
10223
10224         PR c++/48069
10225         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10226         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10227
10228 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10229
10230         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10231         cgraph_node.
10232
10233 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10234
10235         PR tree-optimization/48063
10236         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10237         inline functions called once if !tree_can_inline_p (node->callers).
10238
10239 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10240
10241         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10242         extra_objs.
10243         * config/score/score3.c: Delete.
10244         * config/score/score3.h: Delete.
10245         * config/score/mul-div.S: Delete.
10246         * config/score/sfp-machine.h: Add new file.
10247         * config/score/constraints.md: Add new file.
10248         * config/score/t-score-softfp: Add new file.
10249         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10250         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10251         (score7_extra_constraint): Delete.
10252         (score7_option_override): Remove unused code.
10253         * config/score/score.c: Remove score3 and score5 define and code.
10254         * config/score/score.h: Remove score3 and score5 define and code.
10255         * config/score/score.md: Remove score3 template and unusual insn.
10256         * config/score/score.opt: Remove score3 and score5 options.
10257
10258 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10259
10260         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10261         when _HPUX_SOURCE is defined.
10262         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10263
10264 2011-03-10  Jason Merrill  <jason@redhat.com>
10265
10266         PR c++/48029
10267         * stor-layout.c (layout_type): Don't set structural equality
10268         on arrays of incomplete type.
10269         * tree.c (type_hash_eq): Handle comparing them properly.
10270
10271 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10272
10273         PR debug/48043
10274         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10275         result mode matches original rtl mode.
10276
10277 2011-03-10  Nick Clifton  <nickc@redhat.com>
10278
10279         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10280         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10281
10282 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10283
10284         PR rtl-optimization/47866
10285         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10286         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10287         if target wasn't scalar.
10288         * function.c (assign_stack_temp_for_type): Assert that neither
10289         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10290         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10291         macro.
10292         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10293
10294 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10295
10296         * config/s390/s390-protos.h (s390_label_align): New prototype.
10297         * config/s390/s390.c (s390_label_align): New function.
10298         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10299
10300 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10301
10302         PR target/47755
10303         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10304         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10305         (output_vec_const_move): Ditto.
10306
10307 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10308
10309         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10310         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10311         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10312         Change 'rclass' argument and result type to reg_class_t.
10313         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10314
10315 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10316
10317         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10318         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10319         (TARGET_MEMORY_MOVE_COST): Define.
10320         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10321
10322 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10323
10324         PR debug/47881
10325         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10326         removed anything.
10327
10328         PR tree-optimization/48022
10329         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10330         for EQ/NE_EXPR.
10331
10332 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10333
10334         PR debug/47991
10335         * var-tracking.c (find_use_val): Return NULL for
10336         cui->sets && cui->store_p BLKmode MEMs.
10337
10338 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10339
10340         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10341         Remove.
10342         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10343         xstormy16_print_operand_address): Remove.
10344         * config/stormy16/stormy16.c (xstormy16_print_operand,
10345         xstormy16_print_operand_address): Make static.
10346         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10347
10348 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10349
10350         PR target/47862
10351         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10352         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10353         before definition.
10354
10355 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10356
10357         PR bootstrap/48000
10358         * cfgloopmanip.c (fix_bb_placements): Return immediately
10359         if FROM is BASE_LOOP's header.
10360
10361 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10362
10363         * gimplify.c (gimplify_function_tree): Fix building calls
10364         to __builtin_return_address.
10365
10366 2011-03-07  Alan Modra  <amodra@gmail.com>
10367
10368         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10369         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10370         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10371         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10372         return_mode args.
10373         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10374         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10375         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10376         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10377         * config/rs6000/rs6000.c
10378         (rs6000_elf_end_indicate_exec_stack): Rename to..
10379         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10380         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10381         (rs6000_file_start): ..here.
10382         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10383         file scope variables.
10384         (call_ABI_of_interest): New function.
10385         (init_cumulative_args): Set above vars when function return value
10386         is a float, vector, or small struct.
10387         (rs6000_function_arg_advance_1): Likewise for function args.
10388         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10389         references float args.
10390
10391 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10392
10393         * doc/cfg.texi: Remove "See" before @ref.
10394         * doc/invoke.texi: Likewise.
10395
10396 2011-03-05  Jason Merrill  <jason@redhat.com>
10397
10398         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10399
10400 2011-03-05  Anthony Green  <green@moxielogic.com>
10401
10402         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10403
10404 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10405
10406         PR rtl-optimization/47899
10407         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10408         to flow_loop_nested_p when moving the loop upward.
10409
10410 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10411
10412         PR target/47719
10413         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10414
10415 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10416
10417         PR tree-optimization/47967
10418         * ipa-cp.c (build_const_val): Return NULL instead of creating
10419         VIEW_CONVERT_EXPR for mismatching sizes.
10420         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10421         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10422         give up on versioning.
10423
10424 2011-03-05  Alan Modra  <amodra@gmail.com>
10425
10426         PR target/47986
10427         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10428         full cmodel medium/large lo_sum + high addresses.
10429
10430 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10431
10432         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10433         pool references in UNSPEC_LTREL_OFFSET.
10434
10435 2011-03-04  Jan Hubicka  <jh@suse.cz>
10436
10437         PR lto/47497
10438         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10439         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10440         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10441         Add node pointers.
10442         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10443         cgraph_add_thunk): Add node pointers.
10444         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10445         associated to right node.
10446         (input_node): Update use of cgraph_same_body_alias
10447         and cgraph_add_thunk.
10448
10449 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10450
10451         * config/i386/i386.opt (mprefer-avx128): New flag.
10452         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10453         modes when the flag -mprefer-avx128 is on.
10454
10455 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10456
10457         * dwarf2out.c (compare_loc_operands): Fix address handling.
10458
10459 2011-03-04  Alan Modra  <amodra@gmail.com>
10460
10461         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10462
10463 2011-03-04  Richard Guenther  <rguenther@suse.de>
10464
10465         PR middle-end/47968
10466         * expmed.c (extract_bit_field_1): Prefer vector modes that
10467         vec_extract patterns can handle.
10468
10469 2011-03-04  Richard Guenther  <rguenther@suse.de>
10470
10471         PR middle-end/47975
10472         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10473
10474 2011-03-04  Richard Henderson  <rth@redhat.com>
10475
10476         * explow.c (emit_stack_save): Remove 'after' parameter.
10477         (emit_stack_restore): Likewise.
10478         * expr.h: Update to match.
10479         * builtins.c, calls.c, stmt.c: Likewise.
10480         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10481         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10482         * function.c (expand_function_end): Insert the emit_stack_save
10483         sequence before parm_birth_insn instead of after.
10484
10485 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10486
10487         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10488         (ssse3_pmaddubsw128): Ditto.
10489         (ssse3_pmaddubsw): Ditto.
10490
10491 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10492
10493         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10494
10495 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10496
10497         PR c/47963
10498         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10499         on TYPE_SIZE_UNIT if it is a DECL.
10500
10501         PR debug/47283
10502         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10503         first operand is not is_gimple_mem_ref_addr, try to fold it.
10504         If the operand still isn't is_gimple_mem_ref_addr, clear
10505         MEM_EXPR on op0.
10506
10507 2011-03-03  Richard Guenther  <rguenther@suse.de>
10508
10509         PR middle-end/47283
10510         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10511         match comment.
10512         (refs_may_alias_p_1): For release branches return true if
10513         we are confused by our input.
10514
10515 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10516
10517         * config/s390/s390.c (s390_function_value): Rename to ...
10518         (s390_function_and_libcall_value): ... this.
10519         (s390_function_value): New function.
10520         (s390_libcall_value): New function.
10521         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10522         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10523         target macro definitions.
10524         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10525
10526 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10527
10528         * config/i386/freebsd64.h (CC1_SPEC): Define.
10529         * config/i386/linux64.h (CC1_SPEC): Define.
10530         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10531
10532 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10533
10534         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10535         Remove.
10536         * config/stormy16/stormy16.c: Include reload.h.
10537         (xstormy16_memory_move_cost): New function.
10538         (TARGET_MEMORY_MOVE_COST): Define.
10539
10540 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10541
10542         PR rtl-optimization/47925
10543         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10544         with side effects.  Remove the more-specific check for volatile asms.
10545
10546 2011-03-02  Alan Modra  <amodra@gmail.com>
10547
10548         PR target/47935
10549         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10550         toc relative addresses for valid offsets.
10551
10552 2011-03-01  Richard Guenther  <rguenther@suse.de>
10553
10554         PR tree-optimization/47890
10555         * tree-vect-loop.c (get_initial_def_for_induction): Set
10556         related stmt properly.
10557
10558 2011-03-01  Richard Guenther  <rguenther@suse.de>
10559
10560         PR lto/47924
10561         * lto-streamer.c (lto_record_common_node): Also register
10562         the canonical type.
10563
10564 2011-03-01  Richard Guenther  <rguenther@suse.de>
10565
10566         PR lto/46911
10567         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10568         Do not stream DECL_ABSTRACT_ORIGIN.
10569         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10570         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10571         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10572         Do not stream DECL_ABSTRACT_ORIGIN.
10573         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10574         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10575
10576 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10577
10578         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10579         FUNCTION_VALUE_REGNO_P): Remove.
10580         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10581         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10582         Add 'outgoing' argument.
10583         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10584         function.
10585         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10586         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10587
10588 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10589
10590         PR debug/28047
10591         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10592         (lookup_filename): Likewise.
10593         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10594
10595 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10596             Jakub Jelinek  <jakub@redhat.com>
10597
10598         PR middle-end/47893
10599         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10600         (assign_stack_local_1): Change last argument type to int.
10601         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10602         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10603         don't record padding space into frame_space_list nor use those areas.
10604         (assign_stack_local): Adjust caller.
10605         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10606         of assign_stack_local, pass 0 as last argument.
10607         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10608         callers.
10609
10610 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10611
10612         PR debug/47283
10613         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10614         Use target address_mode and pointer_mode hooks instead of hardcoded
10615         Pmode and ptr_mode.  Handle some simple cases of extending if
10616         POINTERS_EXTEND_UNSIGNED < 0.
10617         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10618         Call convert_debug_memory_address.
10619         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10620         convert_debug_memory_address.
10621
10622         PR middle-end/46790
10623         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10624         * configure: Regenerated.
10625         * config.in: Regenerated.
10626         * varasm.c (default_function_section): Return NULL
10627         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10628
10629 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10630
10631         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10632         the description to match the printed values.
10633
10634 2011-02-28  Richard Guenther  <rguenther@suse.de>
10635
10636         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10637         of the copied scope tree.
10638
10639 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10640
10641         * doc/extend.texi (Function Attributes): Avoid deeply (and
10642         wrongly) nested tables.
10643
10644 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10645
10646         PR middle-end/47903
10647         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10648         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10649         r isn't op0 nor op1.
10650
10651 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10652
10653         * config/avr/avr.md: Remove magic comment for emacs.
10654
10655 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10656
10657         PR target/45261
10658         * config/avr/avr.c (avr_option_override): Use error on bad options.
10659         (avr_help): New function.
10660         (TARGET_HELP): Define.
10661
10662 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10663
10664         PR target/42240
10665         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10666         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10667
10668 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10669
10670         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10671         (ARM Options): Ditto.
10672         (i386 and x86-64 Options): Ditto.
10673         (RX Options): Ditto.
10674         (SPARC Options): Ditto.
10675
10676 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10677
10678         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10679         FreeBSD 6 and later.  Generally use cpu generic.
10680
10681 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10682
10683         * doc/cpp.texi: Update copyright years.
10684
10685 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10686
10687         PR target/46898
10688         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10689
10690 2011-02-25  Jon Beniston  <jon@beniston.com>
10691
10692         PR target/46898
10693         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10694         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10695         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10696         (lm32_block_move_inline): Add type cast to remove warning.
10697         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10698         (gen_int_relational): Move declarations to start of function.
10699
10700 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10701
10702         PR tree-optimization/45470
10703         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10704         can throw internally only.
10705         * tree-vect-stmts.c (vectorizable_call): Likewise.
10706
10707 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10708
10709         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10710         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10711         * config/stormy16/stormy16-protos.h
10712         (xstormy16_preferred_reload_class): Remove.
10713         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10714         static. Change 'rclass' argument and return type to reg_class_t.
10715         (TARGET_PREFERRED_RELOAD_CLASS,
10716         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10717
10718 2011-02-24  Richard Guenther  <rguenther@suse.de>
10719
10720         * lto-streamer-in.c (input_bb): Do not find referenced vars
10721         in debug statements.
10722
10723 2011-02-23  Jason Merrill  <jason@redhat.com>
10724
10725         * common.opt (fabi-version): Document v5 and v6.
10726
10727 2011-02-23  Richard Guenther  <rguenther@suse.de>
10728
10729         PR tree-optimization/47849
10730         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10731
10732 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10733
10734         * opts-common.c (decode_cmdline_option): Print empty string
10735         argument as "" in decoded->orig_option_with_args_text.
10736         * gcc.c (execute): Print empty string argument as ""
10737         in the verbose output.
10738         (do_spec_1): Keep empty string argument.
10739
10740 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10741
10742         * config.gcc: Declare score-* and crx-* obsolete.
10743
10744 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10745
10746         PR rtl-optimization/47763
10747         * web.c (web_main): Ignore naked clobber when replacing register.
10748
10749 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10750
10751         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10752         Remove.
10753
10754 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10755
10756         PR doc/47848
10757         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10758
10759 2011-02-22  Mike Stump  <mikestump@comcast.net>
10760
10761         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10762         assembler.
10763         * configure: Regenerate.
10764
10765 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10766
10767         PR rtl-optimization/46002
10768         * ira-color.c (update_copy_costs): Change class intersection
10769         test to reg_class_contents[] test of 'hard_regno'.
10770
10771 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10772
10773         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10774         than Driver option.
10775         * config/hpux11.opt (mt): Likewise.
10776         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10777         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10778         * config/vax/elf.opt (mno-asm-pic): Likewise.
10779         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10780
10781 2011-02-21  Mike Stump  <mikestump@comcast.net>
10782
10783         PR target/47822
10784         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10785         tree so we can get save the type.
10786         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10787         for CFString instead of trying to use past the end of the builtins.
10788         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10789         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10790         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10791         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10792         Rename to darwin_builtin_cfstring.
10793         (darwin_init_cfstring_builtins): Return the built type.
10794
10795 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10796
10797         PR target/47840
10798         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10799         (_mm256_insert_epi64): Use _mm_insert_epi64.
10800
10801 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10802
10803         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10804         * config/stormy16/stormy16-protos.h
10805         (xstormy16_mode_dependent_address_p): Remove.
10806         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10807         Make static. Change return type to bool. Change argument type to
10808         const_rtx. Remove dead code.
10809         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10810
10811 2011-02-21  Richard Guenther  <rguenther@suse.de>
10812
10813         PR lto/47820
10814         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10815         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10816         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10817         TUs context.
10818         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10819         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10820
10821 2011-02-20  Richard Guenther  <rguenther@suse.de>
10822
10823         PR lto/47822
10824         * tree.c (free_lang_data_in_decl): Clean builtins from
10825         the TU decl BLOCK_VARS.
10826
10827 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10828
10829         PR debug/47620
10830         PR debug/47630
10831         * haifa-sched.c (fix_tick_ready): Skip tick computation
10832         for debug insns.
10833
10834 2011-02-19  Richard Guenther  <rguenther@suse.de>
10835
10836         PR lto/47647
10837         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10838         Remove lazy BLOCK_VARS streaming.
10839         (lto_input_ts_block_tree_pointers): Likewise.
10840         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10841
10842 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10843
10844         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10845
10846 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10847
10848         * config/i386/biarch32.h, config/i386/mach.h,
10849         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10850
10851 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10852
10853         PR target/47800
10854         * config/i386/i386.md (peephole2 for shift and plus): Use
10855         operands[1] original mode in the first insn.
10856
10857 2011-02-18  Mike Stump  <mikestump@comcast.net>
10858
10859         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10860
10861 2011-02-18  Jan Hubicka  <jh@suse.cz>
10862
10863         PR middle-end/47788
10864         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10865         to zero when the function is not inlinable at all.
10866
10867 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10868
10869         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10870         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10871         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10872         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10873         * config/pa/t-pa64: Likewise.
10874         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10875
10876 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10877
10878         PR driver/47787
10879         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10880
10881 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10882
10883         PR target/47792
10884         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10885
10886 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10887
10888         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10889         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10890         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10891         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10892         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10893         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10894         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10895         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10896         m32r_legitimate_address_p): New functions.
10897         * config/m32r/constraints.md (constraint "S"): Don't use
10898         STORE_PREINC_PREDEC_P.
10899         (constraint "U"): Don't use LOAD_POSTINC_P.
10900
10901 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10902
10903         PR rtl-optimization/46178
10904         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10905         compute ira_hard_regno_cover_class[].
10906
10907 2011-02-18  Richard Guenther  <rguenther@suse.de>
10908
10909         PR lto/47798
10910         * lto-streamer.h (lto_global_var_decls): Declare.
10911         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10912         statics for global var processing.
10913
10914 2011-02-18  Richard Guenther  <rguenther@suse.de>
10915
10916         PR tree-optimization/47737
10917         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10918         edge dominance check.
10919
10920 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10921
10922         PR debug/47780
10923         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10924         avoid invalid rtx sharing.
10925
10926 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10927
10928         * doc/cpp.texi (Obsolete Features): Add background on the
10929         origin of assertions.
10930
10931 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10932
10933         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10934         objc_abi == 2.
10935         * config/darwin.c (output_objc_section_asm_op): Added support for
10936         ABI v1 and v2.
10937         (is_objc_metadata): New.
10938         (darwin_objc2_section): New.
10939         (darwin_objc1_section): New.
10940         (machopic_select_section): Added support for ABI v1 and v2.
10941         (darwin_emit_objc_zeroed): New.
10942         (darwin_output_aligned_bss): Detect objc metadata and treat it
10943         appropriately.
10944         (darwin_asm_output_aligned_decl_common): Same.
10945         (darwin_asm_output_aligned_decl_local): Same.
10946         * config/darwin-sections.def: Updated for ABI v1 and v2.
10947         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10948         compiling Objective-C code for the NeXT runtime, default to using
10949         ABI version 0 for 32-bit, and version 2 for 64-bit.
10950
10951 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10952
10953         * common.opt (optimize_fast): New Variable.
10954         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10955         instead of local variable ofast.
10956
10957 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10958
10959         * doc/invoke.texi (fobjc-abi-version): Documented.
10960         (fobjc-nilcheck): Documented.
10961         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10962         version.
10963
10964 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10965
10966         PR driver/47390
10967         * common.opt (export-dynamic): New Driver option.
10968         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10969
10970 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10971
10972         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10973
10974 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10975             Jan Hubicka  <jh@suse.cz>
10976
10977         PR debug/47106
10978         PR debug/47402
10979         * cfgexpand.c (account_used_vars_for_block): Remove.
10980         (estimated_stack_frame_size): Use referenced vars.
10981         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10982         that were referenced in the original function.  Test src_fn
10983         rather than cfun.  Drop redundant get_var_ann.
10984         (setup_one_parameter): Drop redundant get_var_ann.
10985         (declare_return_variable): Likewise.
10986         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10987         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10988         * ipa-inline.c (compute_inline_parameters): Do not compute
10989         disregard_inline_limits here.
10990         (compute_inlinable_for_current, pass_inlinable): New.
10991         (pass_inline_parameters): Require PROP_referenced_vars.
10992         * cgraphunit.c (cgraph_process_new_functions): Don't run
10993         compute_inline_parameters explicitly unless function is in SSA form.
10994         (cgraph_analyze_function): Set .disregard_inline_limits.
10995         * tree-sra.c (convert_callers): Compute inliner parameters
10996         only for functions already in SSA form.
10997
10998 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10999
11000         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11001         -mlittle-endian-data.
11002
11003 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11004
11005         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11006         -mno-fpu, not -fpu and -no-fpu.
11007         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11008         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11009
11010 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11011
11012         PR target/43653
11013         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11014         input reload with PLUS RTX.
11015
11016 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11017
11018         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11019         of InverseVar(MDMX).
11020
11021 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11022
11023         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11024         --m4-340.
11025
11026 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11027
11028         * config/mn10300/mn10300.opt (mno-crt0): New.
11029
11030 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11031
11032         * config/m68k/uclinux.opt (static-libc): New Driver option.
11033
11034 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11035
11036         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11037
11038 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11039
11040         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11041         %{muser-extend-enabled}.
11042
11043 2011-02-16  Richard Guenther  <rguenther@suse.de>
11044
11045         PR tree-optimization/47738
11046         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11047         the TODO from tree_predictive_commoning.
11048
11049 2011-02-15  Jeff Law  <law@redhat.com>
11050
11051         Revert
11052         2011-01-25  Jeff Law  <law@redhat.com>
11053
11054         PR rtl-optimization/37273
11055         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11056         handle them like argument loads from stack slots.  Do not double
11057         count memory for memory constants and argument loads from stack slots.
11058
11059 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11060
11061         PR middle-end/47725
11062         * combine.c (cant_combine_insn_p): Revert the last change.
11063
11064 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11065
11066         PR target/47755
11067         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11068         mode for vector constants.  Remove code that checks for TImode.
11069
11070 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11071
11072         PR debug/47106
11073         PR debug/47402
11074         * cgraph.h (compute_inline_parameters): Return void.
11075         * ipa-inline.c (compute_inline_parameters): Adjust.
11076
11077 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11078
11079         PR debug/47106
11080         PR debug/47402
11081         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11082         rather than decl.
11083         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11084         * ipa-inline.c (compute_inline_parameters): Adjust.
11085
11086 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11087
11088         PR debug/47106
11089         PR debug/47402
11090         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11091         Adjust all users.  Pass FN to...
11092         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11093         fn argument.
11094         * ipa-struct-reorg.c: Adjust.
11095         * tree-dfa.c: Adjust.
11096         * tree-into-ssa.c: Adjust.
11097         * tree-sra.c: Adjust.
11098         * tree-ssa-alias.c: Adjust.
11099         * tree-ssa-live.c: Adjust.
11100         * tree-ssa.c: Adjust.
11101         * tree-ssanames.c: Adjust.
11102         * tree-tailcall.c: Adjust.
11103
11104 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11105
11106         PR debug/47106
11107         PR debug/47402
11108         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11109         Adjust all callers.
11110         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11111         * tree-flow-inline.h: Adjust.
11112         * gimple-pretty-print.c: Adjust.
11113         * tree-into-ssa.c: Adjust.
11114         * tree-ssa.c: Adjust.
11115         * cfgexpand.c: Adjust.
11116
11117 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11118
11119         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11120         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11121         (EXTRA_CONSTRAINT): Delete.
11122         * config/iq2000/constraints.md: New file.
11123         * config/iq2000/iq2000.md: Include it.
11124         (define_insn ""): Delete.
11125         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11126         unsupported constraint letters from patterns.
11127         (call_value, call_value_internal1): Likewise.
11128         (call_value_multiple_internal1): Likewise.
11129
11130 2011-02-15  Nick Clifton  <nickc@redhat.com>
11131
11132         * config/mn10300/mn10300.c: Include tm-constrs.h.
11133         (struct liw_data): New data structure describing an LIW candidate
11134         instruction.
11135         (extract_bundle): Use struct liw_data.  Allow small integer
11136         operands for some instructions.
11137         (check_liw_constraints): Use struct liw_data.  Remove swapped
11138         parameter.  Add comments describing the checks.  Fix bug when
11139         assigning the source of liw1 to the source of liw2.
11140         (liw_candidate): Delete.  Code moved into extract_bundle.
11141         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11142         before swapping.
11143         * config/mn10300/predicates.md (liw_operand): New predicate.
11144         Allows registers and small integer constants.
11145         * config/mn10300/constraints.md (O): New constraint.  Accetps
11146         integers in the range -8 to +7 inclusive.
11147         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11148         for moving a small integer into a register.  Give this alternative
11149         LIW attributes.
11150         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11151         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11152         using the J,K,L and M constraints,
11153         (liw): Remove SI mode on second operands to allow for HI and QI
11154         mode values.
11155         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11156         instruction.
11157
11158 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11159
11160         PR middle-end/47725
11161         * combine.c (cant_combine_insn_p): Check zero/sign extended
11162         hard registers.
11163
11164 2011-02-15  Richard Guenther  <rguenther@suse.de>
11165
11166         PR tree-optimization/47743
11167         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11168         for a non-type-compatible VN lookup bail out.
11169
11170 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11171
11172         * config/fr30/constraints.md: New file.
11173         * config/fr30/fr30.md: Include it.
11174         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11175         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11176         (EXTRA_CONSTRAINT): Delete.
11177
11178 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11179
11180         * config/frv/constraints.md: New file.
11181         * config/frv/predicates.md: Include it.
11182         * config/frv/frv.c (reg_class_from_letter): Delete.
11183         (frv_option_override): Don't initialize it.
11184         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11185         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11186         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11187         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11188         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11189         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11190         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11191         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11192         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11193         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11194         (REG_CLASS_FROM_CONSTRAINT): Delete.
11195
11196 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11197
11198         PR middle-end/47581
11199         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11200         if frame size is 0 in a leaf function.
11201
11202 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11203
11204         PR pch/14940
11205         * config/alpha/host-osf.c: New file.
11206         * config/alpha/x-osf: New file.
11207         * config.host (alpha*-dec-osf*): Use it.
11208
11209 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11210
11211         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11212         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11213         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11214         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11215         type to const_rtx.
11216         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11217
11218 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11219
11220         * config/stormy16/constraints.md: New file.
11221         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11222         Use satisfies_constraint_Q and satisfies_constraint_R.
11223         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11224         Delete.
11225         (xstormy16_legitiamte_address_p): Declare.
11226         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11227         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11228         (EXTRA_CONSTRAINT): Delete.
11229         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11230         Un-staticize.
11231         (xstormy16_extra_constraint_p): Delete.
11232
11233 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11234
11235         PR tree-optimization/46494
11236         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11237         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11238         (pass_rtl_loop_done): Add TODO_verify_flow.
11239         * fwprop.c (pass_rtl_fwprop): Likewise.
11240         * modulo-sched.c (pass_sms): Likewise.
11241         * tree-ssa-dom.c (pass_dominator): Likewise.
11242         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11243         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11244         (pass_tree_loop_done): Likewise.
11245         * tree-ssa-pre.c (execute_pre): Likewise.
11246         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11247         * tree-ssa-sink.c (pass_sink_code): Likewise.
11248         * tree-vrp.c (pass_vrp): Likewise.
11249
11250 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11251
11252         * config/v850/constraints.md: New file.
11253         * config/v850/v850.md: Include it.
11254         * config/v850/predicates.md (reg_or_0_operand): Use
11255         satisfies_constraint_G.
11256         (special_symbolref_operand): Use satisfies_constraint_K.
11257         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11258         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11259         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11260         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11261         (EXTRA_CONSTRAINT): Delete.
11262         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11263         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11264         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11265
11266 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11267
11268         PR target/47696
11269         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11270         description.
11271
11272 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11273
11274         * config/mcore/constraints.md: New file.
11275         * config/mcore/mcore.md: Include it.
11276         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11277         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11278         (REG_CLASS_FROM_LETTER): Delete.
11279         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11280         insn_const_int_ok_for_constraint.
11281         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11282         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11283         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11284         (EXTRA_CONSTRAINT): Delete.
11285
11286 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11287
11288         PR ada/41929
11289         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11290         (IS_SIGHANDLER): Define.
11291         (sparc64_is_sighandler): New function, split off from
11292         sparc64_fallback_frame_state.
11293         (sparc_is_sighandler): New function, split off from
11294         sparc_fallback_frame_state.
11295         (sparc64_fallback_frame_state): Merge with ...
11296         (sparc_fallback_frame_state): ... this into ...
11297         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11298         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11299         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11300         stack instead of hardcoded offsets.
11301
11302 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11303
11304         PR target/45808
11305         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11306
11307 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11308
11309         * configure: Regenerate.
11310
11311 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11312
11313         PR driver/45731
11314         * gcc.c (asm_options): Correct spec matching --target-help.
11315
11316 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11317
11318         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11319         to gimple call error.
11320
11321 2011-02-12  Mike Stump  <mikestump@comcast.net>
11322
11323         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11324         comments in backslash regions.
11325
11326 2011-02-12  Mike Stump  <mikestump@comcast.net>
11327             Jakub Jelinek  <jakub@redhat.com>
11328             Iain Sandoe  <iains@gcc.gnu.org>
11329
11330         PR target/47324
11331         * dwarf2out.c (output_cfa_loc): When required, apply the
11332         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11333         (output_loc_sequence): Likewise.
11334         (output_loc_operands_raw): Likewise.
11335         (output_loc_sequence_raw): Likewise.
11336         (output_cfa_loc): Likewise.
11337         (output_loc_list): Suppress register number adjustment when
11338         calling output_loc_sequence()
11339         (output_die): Likewise.
11340
11341 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11342
11343         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11344         Remove macros.
11345         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11346         xtensa_memory_move_cost): New functions.
11347         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11348
11349 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11350
11351         PR lto/47225
11352         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11353         in the current directory.
11354         * configure: Rebuilt.
11355
11356 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11357
11358         * config/darwin.c (darwin_override_options): Add a hunk missed
11359         from the commit of r168571.  Trim comment line lengths and
11360         correct indents of the preceding block.
11361
11362 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11363
11364         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11365         the switch.
11366
11367 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11368
11369         * common.opt (nostartfiles): New Driver option.
11370
11371 2011-02-11  Xinliang David Li  <davidxl@google.com>
11372
11373         PR tree-optimization/47707
11374         * tree-chrec.c (convert_affine_scev): Keep type precision.
11375
11376 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11377
11378         PR tree-optimization/47420
11379         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11380
11381 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11382
11383         PR rtl-optimization/47614
11384         * rtl.h (check_for_inc_dec): Declare.
11385         * dse.c (check_for_inc_dec): Externalize...
11386         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11387         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11388
11389 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11390
11391         PR driver/47678
11392         * gcc.c (main): Do not compile inputs if there were errors in
11393         option handling.
11394         * opts-common.c (read_cmdline_option): Check for wrong language
11395         after other error checks.
11396
11397 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11398
11399         * cgraph.c: Fix comment typos.
11400         * cgraph.h: Likewise.
11401         * cgraphunit.c: Likewise.
11402         * ipa-cp.c: Likewise.
11403         * ipa-inline.c: Likewise.
11404         * ipa-prop.c: Likewise.
11405         * ipa-pure-const.c: Likewise.
11406         * ipa-ref.c: Likewise.
11407         * ipa-reference.c: Likewise.
11408
11409 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11410
11411         PR debug/47684
11412         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11413
11414 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11415
11416         PR testsuite/47400
11417         * doc/sourcebuild.texi (Require Support): Document
11418         dg-require-ascii-locale.
11419
11420 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11421
11422         * doc/lto.texi (Write summary): Fix missing parentheses.
11423
11424 2011-02-10  DJ Delorie  <dj@redhat.com>
11425
11426         * config/m32c/m32c.c (m32c_option_override): Disable
11427         -fcombine-stack-adjustments until flag value tracking and compare
11428         optimization can be rewritten.
11429
11430 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11431
11432         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11433         PROCESSOR_POWER7.
11434         (PROCESSOR_DEFAULT64): Likewise.
11435
11436 2011-02-10  Richard Henderson  <rth@redhat.com>
11437
11438         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11439         change from 2011-02-03.
11440         * config/rx/rx.c (flags_from_code): Likewise.
11441         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11442         is valid, n/pz otherwise.
11443         (rx_select_cc_mode): Return CCmode if Y is not zero.
11444
11445 2011-02-10  Richard Guenther  <rguenther@suse.de>
11446
11447         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11448
11449 2011-02-10  Richard Guenther  <rguenther@suse.de>
11450
11451         PR tree-optimization/47677
11452         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11453
11454 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11455
11456         PR target/47665
11457         * combine.c (make_compound_operation): Only change shifts into
11458         multiplication for SCALAR_INT_MODE_P.
11459
11460 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11461
11462         PR testsuite/47622
11463         Revert
11464         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11465         PR debug/42631
11466         * web.c (entry_register): Don't clobber the number of the
11467         first uninitialized reference in used[].
11468
11469 2011-02-09  Richard Guenther  <rguenther@suse.de>
11470
11471         PR tree-optimization/47664
11472         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11473         all edges again.
11474
11475 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11476
11477         PR target/46481
11478         PR target/47032
11479         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11480         PROCESSOR_POWER7.
11481         (PROCESSOR_DEFAULT64): Same.
11482         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11483
11484 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11485
11486         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11487
11488 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11489
11490         PR middle-end/45505
11491         * tree-sra.c (struct access): New flags grp_scalar_read and
11492         grp_scalar_write.  Changed description of assignment read and write
11493         flags.
11494         (dump_access): Dump new flags, reorder all of them.
11495         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11496         to detect multiple scalar reads.
11497         (analyze_access_subtree): Use the new scalar read write flags instead
11498         of the old flags.  Adjusted comments.
11499
11500 2011-02-08  DJ Delorie  <dj@redhat.com>
11501
11502         PR target/47548
11503         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11504         patterns.
11505
11506 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11507
11508         * config/m68k/uclinux.opt: New.
11509         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11510
11511 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11512
11513         * config/cris/elf.opt (sim): New Driver option.
11514
11515 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11516
11517         * config/xtensa/elf.opt: New.
11518         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11519
11520 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11521
11522         * config/vax/elf.opt: New.
11523         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11524
11525 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11526
11527         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11528
11529 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11530
11531         * config/gnu-user.opt: New.
11532         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11533         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11534         *-*-uclinux*): Use gnu-user.opt.
11535
11536 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11537
11538         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11539         * config/i386/gnu.h (CPP_SPEC): Likewise.
11540
11541 2011-02-08  Ian Lance Taylor  <iant@google.com>
11542
11543         * common.opt (fcx-limited-range): Add SetByCombined flag.
11544         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11545         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11546         (fassociative-math, freciprocal-math): Likewise.
11547         (funsafe-math-optimizations): Likewise.
11548         * opth-gen.awk: Handle SetByCombined.
11549         * optc-gen.awk: Likewise.
11550         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11551         (set_unsafe_math_optimizations_flags): Likewise.
11552         * doc/options.texi (Option properties): Document SetByCombined.
11553
11554 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11555
11556         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11557         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11558         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11559         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11560         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11561
11562 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11563
11564         PR tree-optimization/46834
11565         PR tree-optimization/46994
11566         PR tree-optimization/46995
11567         * graphite-sese-to-poly.c (used_outside_reduction): New.
11568         (detect_commutative_reduction): Call used_outside_reduction.
11569         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11570         translate_scalar_reduction_to_array only when at least one
11571         loop-phi/close-phi tuple has been detected.
11572
11573 2011-02-08  Richard Guenther  <rguenther@suse.de>
11574
11575         PR middle-end/47639
11576         * tree-vect-generic.c (expand_vector_operations_1): Update
11577         stmts here ...
11578         (expand_vector_operations): ... not here.  Cleanup EH info
11579         and the CFG if required.
11580
11581 2011-02-08  Richard Guenther  <rguenther@suse.de>
11582
11583         PR tree-optimization/47641
11584         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11585         require type compatibility.
11586
11587 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11588
11589         * gimple-low.c (lower_function_body): Don't remove the location of
11590         the return statement here.
11591         (lower_gimple_return): Do it here instead but only if the return
11592         statement is actually used twice.
11593
11594 2011-02-08  Richard Guenther  <rguenther@suse.de>
11595
11596         PR tree-optimization/47632
11597         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11598         unused up_to_stmt parameter, return whether cfg-cleanup is
11599         necessary, remove EH info properly.
11600         (forward_propagate_into_gimple_cond): Adjust caller.
11601         (forward_propagate_into_cond): Likewise.
11602         (forward_propagate_comparison): Likewise.
11603         (tree_ssa_forward_propagate_single_use_vars): Make
11604         forward_propagate_comparison case similar to the two others.
11605
11606 2011-02-08  Nick Clifton  <nickc@redhat.com>
11607
11608         * config/mn10300/mn10300.opt (mliw): New command line option.
11609         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11610         (liw_bundling): New automaton.
11611         (liw): New attribute.
11612         (liw_op): New attribute.
11613         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11614         (movsi_internal): Add LIW attributes.
11615         (andsi3): Likewise.
11616         (iorsi3): Likewise.
11617         (xorsi3): Likewise.
11618         (addsi3): Separate register and immediate alternatives.
11619         Add LIW attributes.
11620         (subsi3): Likewise.
11621         (cmpsi): Likewise.
11622         (aslsi3): Likewise.
11623         (lshrsi3): Likewise.
11624         (ashrsi3): Likewise.
11625         (liw): New pattern.
11626         * config/mn10300/mn10300.c (liw_op_names): New
11627         (mn10300_print_operand): Handle 'W' operand descriptor.
11628         (extract_bundle): New function.
11629         (check_liw_constraints): New function.
11630         (liw_candidate): New function.
11631         (mn10300_bundle_liw): New function.
11632         (mn10300_reorg): New function.
11633         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11634         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11635         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11636         __LIW__ or __NO_LIW__.
11637         * doc/invoke.texi: Describe the -mliw command line option.
11638
11639 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11640
11641         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11642         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11643         pthread_mutex_unlock): Remove.
11644         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11645         * config/pa/t-pa64: Likewise.
11646         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11647         shared libc if not linking against libpthread.
11648         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11649
11650 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11651
11652         PR target/47558
11653         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11654         on 10.6 and later to ensure that we always use the unwinder from
11655         the system.  Only add -no_compact_unwind when tarteting darwin
11656         10.6 or later.
11657
11658 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11659
11660         PR target/46997
11661         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11662         (vec_interleave_lowv2sf): Ditto.
11663         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11664         (vec_extract_oddv2sf): Ditto.
11665
11666 2011-02-07  Mike Stump  <mikestump@comcast.net>
11667
11668         PR target/42333
11669         Add __ieee_divdc3 entry point.
11670         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11671         entry point.
11672         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11673         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11674         * config/darwin.c (darwin_rename_builtins): Add.
11675         * config/darwin-protos.h (darwin_rename_builtins): Add.
11676
11677 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11678
11679         PR target/47636
11680         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11681         for the condition.
11682
11683 2011-02-07  Mike Stump  <mikestump@comcast.net>
11684
11685         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11686
11687 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11688
11689         PR target/47534
11690         * config/avr/libgcc.S (exit): Move .endfunc
11691
11692 2011-02-07  Richard Guenther  <rguenther@suse.de>
11693
11694         PR tree-optimization/47615
11695         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11696         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11697         (run_scc_vn): Initialize it.
11698         (visit_reference_op_load): Use it.
11699         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11700
11701 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11702
11703         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11704         DImode trapping arithmetic libfuncs.
11705
11706 2011-02-07  Richard Guenther  <rguenther@suse.de>
11707
11708         PR tree-optimization/47621
11709         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11710         two duplicates ...
11711         (execute_update_addresses_taken): ... here.  Make it more
11712         conservative in what we accept.
11713
11714 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * config/sparc/freebsd.h (ASM_SPEC): Define.
11717         * config/sparc/vxworks.h (ASM_SPEC): Define.
11718
11719 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11720
11721         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11722
11723 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11724
11725         * doc/invoke.texi: Remove reference to compiler internals from
11726         user documentation.
11727
11728         * reg-notes.def: Remove REG_VALUE_PROFILE.
11729         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11730
11731 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11732
11733         PR middle-end/47610
11734         * varasm.c (default_section_type_flags): If decl is NULL,
11735         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11736
11737 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11738
11739         PR debug/42631
11740         * web.c (entry_register): Don't clobber the number of the
11741         first uninitialized reference in used[].
11742
11743 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11744
11745         PR tree-optimization/46194
11746         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11747         (build_classic_dist_vector_1): Do not represent classic distance
11748         vectors when the access functions are variating in different loops.
11749
11750 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11751
11752         * config/mips/iris6.opt: New.
11753         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11754
11755 2011-02-04  Richard Henderson  <rth@redhat.com>
11756             Steve Ellcey  <sje@cup.hp.com>
11757
11758         PR target/46997
11759         * config/ia64/predicates.md (mux1_brcst_element): New.
11760         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11761         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11762         (ia64_unpack_sign): New.
11763         (ia64_expand_unpack): Rewrite using new routines.
11764         (ia64_expand_widen_sum): Ditto.
11765         (ia64_expand_dot_prod_v8qi): Ditto.
11766         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11767         routines, add endian check.
11768         (pmpy2_even): Rename from pmpy2_r, add endian check.
11769         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11770         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11771         (vec_widen_smult_hi_v4hi): Ditto.
11772         (vec_widen_umult_lo_v4hi): Ditto.
11773         (vec_widen_umult_hi_v4hi): Ditto.
11774         (mulv2si3): Change endian checks.
11775         (sdot_prodv4hi): Rewrite with new calls.
11776         (udot_prodv4hi): New.
11777         (vec_pack_ssat_v4hi): Add endian check.
11778         (vec_pack_usat_v4hi): Ditto.
11779         (vec_pack_ssat_v2si): Ditto.
11780         (max1_even): Rename from max1_r, add endian check.
11781         (max1_odd): Rename from max1_l, add endian check.
11782         (*mux1_rev): Format change.
11783         (*mux1_mix): Ditto.
11784         (*mux1_shuf): Ditto.
11785         (*mux1_alt): Ditto.
11786         (*mux1_brcst_v8qi): Use new predicate.
11787         (vec_extract_evenv8qi): Remove endian check.
11788         (vec_extract_oddv8qi): Ditto.
11789         (vec_interleave_lowv4hi): Format change.
11790         (vec_interleave_highv4hi): Ditto.
11791         (mix2_even): Rename from mix2_r, add endian check.
11792         (mix2_odd): Rename from mux2_l, add endian check.
11793         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11794         (vec_extract_evenodd_helper): Format change.
11795         (vec_extract_evenv4hi): Remove endian check.
11796         (vec_extract_oddv4hi): Remove endian check.
11797         (vec_interleave_lowv2si): Format change.
11798         (vec_interleave_highv2si): Format change.
11799         (vec_initv2si): Remove endian check.
11800         (vecinit_v2si): Add endian check.
11801         (reduc_splus_v2sf): Add endian check.
11802         (reduc_smax_v2sf): Ditto.
11803         (reduc_smin_v2sf): Ditto.
11804         (vec_initv2sf): Remove endian check.
11805         (fpack): Add endian check.
11806         (fswap): Add endian check.
11807         (vec_interleave_highv2sf): Add endian check.
11808         (vec_interleave_lowv2sf): Add endian check.
11809         (fmix_lr): Add endian check.
11810         (vec_setv2sf): Format change.
11811         (*vec_extractv2sf_0_be): Use shift to extract operand.
11812         (*vec_extractv2sf_1_be): New.
11813         (vec_pack_trunc_v4hi): Add endian check.
11814         (vec_pack_trunc_v2si): Format change.
11815
11816 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11817
11818         PR inline-asm/23200
11819         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11820         do bb, locus and block comparison and disallow loads if it is not set.
11821         (stmt_is_replaceable_p): New function.
11822         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11823         callers.
11824         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11825         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11826         SSA_NAME_DEF_STMT.
11827         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11828
11829 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11830
11831         * config/rs6000/xilinx.opt: New.
11832         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11833
11834 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11835
11836         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11837
11838 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11839
11840         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11841         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11842         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11843         secondary_reload_info, xtensa_secondary_reload): Remove.
11844         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11845         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11846         (xtensa_preferred_reload_class): Make static. Change return and
11847         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11848         Use CONST_DOUBLE_P predicate.
11849         (xtensa_preferred_output_reload_class): New function.
11850         (xtensa_secondary_reload): Make static.
11851
11852 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11853
11854         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11855         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11856         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11857
11858 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11859
11860         PR middle-end/31490
11861         * output.h (SECTION_RELRO): Define.
11862         (SECTION_MACH_DEP): Adjust.
11863         (get_variable_section): New prototype.
11864         * varpool.c (varpool_finalize_named_section_flags): New function.
11865         (varpool_assemble_pending_decls): Call it.
11866         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11867         * cgraphunit.c (cgraph_output_in_order): Call
11868         varpool_finalize_named_section_flags.
11869         * varasm.c (get_section): Allow section flags conflicts between
11870         relro and read-only sections if the section hasn't been declared yet.
11871         Set SECTION_OVERRIDE after diagnosing section type conflict.
11872         (get_variable_section): No longer static.
11873         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11874         readonly sections that need relocations.
11875         (decl_readonly_section_1): New function.
11876         (decl_readonly_section): Use it.
11877
11878         Revert:
11879         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11880                     Steve Ellcey  <sje@cup.hp.com>
11881
11882         PR middle-end/31490
11883         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11884         if section attribute used.
11885
11886 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11887
11888         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11889         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11890         (darwin_init_sections): Remove assertion.
11891
11892 2011-02-03  Nick Clifton  <nickc@redhat.com>
11893
11894         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11895         lt and ge.
11896         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11897         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11898         instead of "n" and "pz".
11899         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11900         CC_FLAG_S.
11901
11902 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11903
11904         PR target/47312
11905         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11906         fma, expand FMA_EXPR as fma{,f,l} call.
11907
11908         PR lto/47274
11909         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11910         copy them into a unsigned char variable and pass address of it to
11911         lto_output_data_stream.
11912
11913         PR target/47564
11914         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11915         around backend_init_target and lang_dependent_init_target calls.
11916         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11917         (verify_cgraph_node): Don't call set_cfun here.  Use
11918         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11919         Set error_found for incorrectly represented calls to thunks.
11920
11921 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11922
11923         PR debug/43092
11924         PR rtl-optimization/43494
11925         * rtl.h (for_each_inc_dec_fn): New type.
11926         (for_each_inc_dec): Declare.
11927         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11928         (for_each_inc_dec_find_inc_dec): New fn.
11929         (for_each_inc_dec_find_mem): New fn.
11930         (for_each_inc_dec): New fn.
11931         * dse.c (struct insn_size): Remove.
11932         (replace_inc_dec, replace_inc_dec_mem): Remove.
11933         (emit_inc_dec_insn_before): New fn.
11934         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11935         (canon_address): Pass mem modes to cselib_lookup.
11936         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11937         (cselib_lookup_from_insn): Likewise.
11938         (cselib_subst_to_values): Likewise.
11939         * cselib.c (find_slot_memmode): New var.
11940         (cselib_find_slot): New fn.  Use it instead of
11941         htab_find_slot_with_hash everywhere.
11942         (entry_and_rtx_equal_p): Use find_slot_memmode.
11943         (autoinc_split): New fn.
11944         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11945         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11946         Deal with autoinc.  Special-case recursion into MEMs.
11947         (cselib_hash_rtx): Likewise.
11948         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11949         address and MEM modes.
11950         (cselib_subst_to_values): Add memmode, pass it on.
11951         Deal with autoinc.
11952         (cselib_lookup): Add memmode argument, pass it on.
11953         (cselib_lookup_from_insn): Add memmode.
11954         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11955         (struct cselib_record_autoinc_data): New.
11956         (cselib_record_autoinc_cb): New fn.
11957         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11958         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11959         (cselib_process_insn): ... here.
11960         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11961         to cselib_lookup.
11962         (add_uses): Likewise, also to cselib_subst_to_values.
11963         (add_stores): Likewise.
11964         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11965         cselib_subst_to_values.
11966         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11967         * gcse.c (do_local_cprop): Adjusted.
11968         * postreload.c (reload_cse_simplify_set): Adjusted.
11969         (reload_cse_simplify_operands): Adjusted.
11970         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11971
11972 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11973
11974         PR tree-optimization/45122
11975         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11976         unsafe assumptions when there's more than one loop exit.
11977
11978 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11979
11980         PR target/47272
11981         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11982         Document using vector double with the load/store builtins, and
11983         that the load/store builtins always use Altivec instructions.
11984
11985         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11986         to use altivec memory instructions, even on VSX.
11987         (vector_altivec_store_<mode>): Ditto.
11988
11989         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11990         function.
11991
11992         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11993         V2DF, V2DI support to load/store overloaded builtins.
11994
11995         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11996         altivec load/store builtins for V2DF/V2DI types.
11997
11998         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11999         set avoid indexed addresses on power6 if -maltivec.
12000         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12001         vector_altivec_load/vector_altivec_store builtins.
12002         (altivec_expand_st_builtin): Ditto.
12003         (altivec_expand_builtin): Add VSX memory builtins.
12004         (rs6000_init_builtins): Add V2DI types to internal types.
12005         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12006         load/store builtins.
12007         (rs6000_address_for_altivec): Insure memory address is appropriate
12008         for Altivec.
12009
12010         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12011         vec_vsx_ld and vec_vsx_st.
12012         (vsx_store_<mode>): Ditto.
12013
12014         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12015         variables to hold long long types for VSX vector memory builtins.
12016         (RS6000_BTI_unsigned_long_long): Ditto.
12017         (long_long_integer_type_internal_node): Ditti.
12018         (long_long_unsigned_type_internal_node): Ditti.
12019
12020         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12021         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12022         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12023
12024         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12025         short cuts.
12026         (vec_vsx_st): Ditto.
12027
12028 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12029
12030         * config/pa/pa-hpux10.opt: New.
12031         * config/hpux11.opt (pthread): New Driver option.
12032         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12033         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12034
12035 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12036
12037         * config/ia64/vms.opt: New.
12038         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12039
12040 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12041
12042         PR target/47580
12043         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12044         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12045         generator functions.
12046         (vsx_floatuns<VSi><mode>2): Ditto.
12047         (vsx_fix_trunc<mode><VSi>2): Ditto.
12048         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12049
12050 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12051
12052         * config/i386/djgpp.opt (posix): New Driver option.
12053
12054 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12055
12056         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12057         Move to the unsupported targets list.
12058
12059 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12060
12061         PR rtl-optimization/47525
12062         * df-scan.c: Update copyright years.
12063         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12064         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12065
12066 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12067
12068         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12069         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12070         (ASM_OUTPUT_ASCII): Remove.
12071         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12072
12073 2011-02-02  Jeff Law  <law@redhat.com>
12074
12075         PR middle-end/47543
12076         * reload.c (find_reloads_address): Handle reg+d address where both
12077         components are invalid by reloading the entire address.
12078
12079 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12080             Richard Guenther  <rguenther@suse.de>
12081
12082         PR tree-optimization/40979
12083         PR bootstrap/47044
12084         * passes.c (init_optimization_passes): After LIM call copy_prop
12085         and DCE to clean up.
12086         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12087
12088 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12089
12090         PR tree-optimization/47576
12091         PR tree-optimization/47555
12092         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12093         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12094         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12095         * tree-scalar-evolution.c (follow_ssa_edge): Use
12096         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12097
12098 2011-02-02  Richard Guenther  <rguenther@suse.de>
12099
12100         PR tree-optimization/47566
12101         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12102
12103 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12104
12105         PR debug/47106
12106         PR debug/47402
12107         * tree-inline.c (declare_return_variable): Remove unused caller
12108         variable.
12109
12110         PR debug/47106
12111         PR debug/47402
12112         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12113         * cfgexpand.c (account_used_vars_for_block): Use them.
12114         * tree-nrv.c (tree_nrv): Likewise.
12115         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12116         (dump_scope_block): Likewise.
12117         (remove_unused_locals): Likewise.
12118
12119         PR debug/47106
12120         PR debug/47402
12121         * tree-inline.c (declare_return_variable): Add result decl to
12122         local decls only once.
12123         * gimple-low.c (record_vars_into): Mark newly-created variables
12124         as referenced.
12125
12126 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12127
12128         PR debug/47498
12129         PR debug/47501
12130         PR debug/45136
12131         PR debug/45130
12132         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12133         debug insns.
12134         (no_real_insns_p, schedule_block, set_priorities): Drop special
12135         treatment of boundary debug insns.
12136         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12137         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12138         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12139         (BOUNDARY_DEBUG_INSN_P): Likewise.
12140         (SCHEDULE_DEBUG_INSN_P): Likewise.
12141         * sched-rgn.c (init_ready_list): Drop special treatment of
12142         boundary debug insns.
12143         * final.c (rest_of_clean_state): Clear notes' BB.
12144
12145 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12146
12147         * config/openbsd.opt (assert=): New Driver option.
12148
12149 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12150
12151         * config/i386/nto.opt: New.
12152         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12153
12154 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12155
12156         * config/i386/netware.opt: New.
12157         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12158
12159 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12160
12161         * config/interix.opt (posix): New Driver option.
12162
12163 2011-02-01  DJ Delorie  <dj@redhat.com>
12164
12165         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12166
12167         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12168         class for A0/A1.
12169
12170 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12171
12172         PR tree-optimization/47561
12173         * toplev.c (process_options): Print the Graphite flags.  Add
12174         flag_loop_flatten to the list of options requiring Graphite.
12175
12176 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12177
12178         * config/i386/cygming.opt (posix): New Driver option.
12179
12180 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12181
12182         * config/arm/vxworks.opt: New.
12183         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12184
12185 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12186
12187         * config/alpha/elf.opt: New.
12188         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12189         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12190
12191 2011-02-01  Richard Guenther  <rguenther@suse.de>
12192
12193         PR tree-optimization/47559
12194         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12195         store-motion on references that can throw.
12196
12197 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12198
12199         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12200         * tree-pass.h (TDF_CSELIB): New macro.
12201         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12202         cselib_lookup): Check for it rather than for TDF_DETAILS.
12203
12204 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12205
12206         PR driver/47547
12207         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12208         is HOST_BIT_BUCKET.
12209
12210         * opts.c (finish_options): Don't add x_aux_base_name if it is
12211         HOST_BIT_BUCKET.
12212
12213 2011-02-01  Richard Guenther  <rguenther@suse.de>
12214
12215         PR tree-optimization/47555
12216         Revert
12217         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12218
12219         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12220
12221 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12222
12223         PR gcc/46692
12224         * config/lm32/t-lm32: Add multilib for all CPU options.
12225
12226 2011-02-01  Richard Guenther  <rguenther@suse.de>
12227
12228         PR tree-optimization/47541
12229         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12230         sure to have a field at offset zero.
12231
12232 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12233
12234         * config/arc/arc.opt (EB, EL): New Driver options.
12235
12236 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12237
12238         * config/alpha/osf5.opt: New.
12239         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12240
12241 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12242
12243         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12244
12245 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12246
12247         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12248         -floop-interchange.
12249         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12250         is an alias of -floop-interchange and that it requires the
12251         Graphite infrastructure.
12252         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12253         flag_loop_interchange based on the value of flag_tree_loop_linear.
12254
12255 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12256             Richard Guenther  <rguenther@suse.de>
12257
12258         PR tree-optimization/47538
12259         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12260         type instead of r1type, except for comparisons.  For right
12261         shifts and comparisons punt if there are mismatches in
12262         sizetype vs. non-sizetype types.
12263
12264 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12265
12266         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12267         avx_runtime.
12268
12269 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12270
12271         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12272         version number.
12273         * configure: Regenerate.
12274
12275 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12276
12277         * configure.ac (gcc_cv_ld_static_option): Define.
12278         (gcc_cv_ld_dynamic_option): Define.
12279         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12280         instead.
12281         (HAVE_LD_STATIC_DYNAMIC): Update message.
12282         (LD_STATIC_OPTION): Define.
12283         (LD_DYNAMIC_OPTION): Define.
12284         * configure: Regenerate.
12285         * config.in: Regenerate.
12286         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12287         HAVE_LD_STATIC_DYNAMIC]: Use them.
12288
12289 2011-01-31  Nick Clifton  <nickc@redhat.com>
12290
12291         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12292         registers inside interrupt handlers if the handler is not a leaf
12293         function.
12294
12295 2011-01-31  Nick Clifton  <nickc@redhat.com>
12296
12297         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12298         reg_renumber returning an INVALID_REGNUM.
12299
12300 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12301
12302         PR libgcj/44341
12303         * doc/install.texi: Document host options discarded when cross
12304         configuring target libraries.
12305
12306 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12307
12308         Reverted:
12309         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12310         PR debug/45136
12311         PR debug/45130
12312         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12313         debug insns.
12314         (no_real_insns_p, schedule_block, set_priorities): Drop special
12315         treatment of boundary debug insns.
12316         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12317         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12318         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12319         (BOUNDARY_DEBUG_INSN_P): Likewise.
12320         (SCHEDULE_DEBUG_INSN_P): Likewise.
12321         * sched-rgn.c (init_ready_list): Drop special treatment of
12322         boundary debug insns.
12323         * final.c (rest_of_clean-state): Clear notes' BB.
12324
12325 2011-01-31  Alan Modra  <amodra@gmail.com>
12326
12327         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12328         toc relative expressions as we do in print_operand_address.
12329
12330 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12331
12332         * doc/extend.texi: Follow spelling conventions.
12333         * doc/invoke.texi: Fix a typo.
12334
12335 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12336
12337         * config/hpux11.opt: New.
12338         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12339         ia64*-*-hpux*): Use hpux11.opt.
12340
12341 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12342
12343         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12344         to tmake_file.
12345
12346 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12347
12348         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12349         support sites.
12350
12351 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12352
12353         * doc/install.texi (Binaries): Remove outdated reference for
12354         Motorola 68HC11/68HC12 downloads.
12355
12356 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12357
12358         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12359         Drepper's paper.
12360
12361 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12362
12363         PR bootstrap/47147
12364         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12365         used by NetBSD.
12366
12367 2011-01-28  Ahmad Sharif  <asharif@google.com>
12368
12369         * value-prof.c (check_counter): Corrected error message.
12370
12371 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12372
12373         * config/arm/arm.c (arm_legitimize_reload_address): New.
12374         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12375         arm_legitimize_reload_address.
12376         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12377
12378 2011-01-28  Ian Lance Taylor  <iant@google.com>
12379
12380         * godump.c (go_define): Ignore macros whose definitions include
12381         two adjacent operands.
12382
12383 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12384
12385         PR target/42894
12386         * varasm.c (force_const_mem): Store copy of x in desc->constant
12387         instead of x itself.
12388         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12389         itself into REG_EQUAL note.
12390
12391 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12392
12393         * config/freebsd.opt (posix, rdynamic): New Driver options.
12394
12395 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12396
12397         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12398         -Bstatic/-Bdynamic.
12399         * configure: Regenerate.
12400
12401 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12402
12403         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12404         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12405
12406 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12407
12408         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12409         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12410         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12411         (s390_preferred_reload_class): Make static. Change return and
12412         'rclass' argument type to reg_class_t.
12413
12414 2011-01-27  Jan Hubicka  <jh@suse.cz>
12415
12416         PR middle-end/46949
12417         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12418         (process_function_and_variable_attributes): Check defined weakrefs.
12419
12420 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12421
12422         PR tree-optimization/47228
12423         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12424         build_ref_for_offset.
12425
12426 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12427
12428         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12429
12430 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12431
12432         PR rtl-optimization/46856
12433         * postreload.c (reload_combine_recognize_const_pattern): Do not
12434         separate cc0 setter and user on cc0 targets.
12435
12436 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12437
12438         PR c/43082
12439         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12440         passed a VOID_TYPE expression, immediately emit an error and
12441         return error_mark_node.
12442
12443 2011-01-26  Jeff Law  <law@redhat.com>
12444
12445         PR rtl-optimization/47464
12446         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12447         rather than may_trap_p as needed.
12448
12449 2011-01-26  DJ Delorie  <dj@redhat.com>
12450
12451         PR rtl-optimization/46878
12452         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12453         setter/user dependency as well.
12454
12455 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12456
12457         PR rtl-optimization/44469
12458         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12459         after removing trivially dead basic blocks.
12460
12461 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12462
12463         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12464         * config/frv/frv.h (LINK_SPEC): Likewise.
12465         * config/i386/netware.h (LINK_SPEC): Likewise.
12466         * config/m68k/linux.h (ASM_SPEC): Likewise.
12467         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12468         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12469         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12470         * config/sparc/linux.h (ASM_SPEC): Likewise.
12471         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12472         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12473
12474 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12475
12476         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12477         * config/frv/frv.h (ASM_SPEC): Likewise.
12478         * config/m68k/linux.h (ASM_SPEC): Likewise.
12479         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12480         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12481         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12482         * config/sparc/linux.h (ASM_SPEC): Likewise.
12483         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12484         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12485
12486 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12487
12488         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12489         * config/frv/frv.h (LINK_SPEC): Likewise.
12490         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12491
12492 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12493
12494         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12495         * config/frv/frv.h (ASM_SPEC): Likewise.
12496         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12497         * config/m68k/linux.h (ASM_SPEC): Likewise.
12498         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12499         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12500         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12501         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12502         * config/sparc/linux.h (ASM_SPEC): Likewise.
12503         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12504         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12505         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12506
12507 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12508
12509         PR target/46997
12510         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12511         (*mux2): Ditto.
12512         (vec_extract_evenodd_help): Ditto.
12513         (vec_extract_evenv4hi): Ditto.
12514         (vec_extract_oddv4hi): Ditto.
12515         (vec_interleave_lowv2si): Ditto.
12516         (vec_interleave_highv2si): Ditto.
12517         (vec_extract_evenv2si): Ditto.
12518         (vec_extract_oddv2si: Ditto.
12519         (vec_pack_trunc_v2si): Ditto.
12520
12521 2011-01-22  Jan Hubicka  <jh@suse.cz>
12522
12523         PR target/47237
12524         * cgraph.h (cgraph_local_info): New field can_change_signature.
12525         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12526         signature can change.
12527         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12528         can change.
12529         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12530         (cgraph_function_versioning): We can not change signature of functions
12531         that don't allow that.
12532         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12533         (lto_input_node): Likewise.
12534         * ipa-inline.c (compute_inline_parameters): Compute
12535         local.can_change_signature.
12536         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12537         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12538         functions that can not change signature.
12539         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12540         init_cumulative_args): Do not use local calling conventions
12541         for functions that can not change signature.
12542
12543 2011-01-22  Jan Hubicka  <jh@suse.cz>
12544
12545         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12546
12547 2011-01-26  Richard Guenther  <rguenther@suse.de>
12548
12549         PR tree-optimization/47190
12550         * cgraphunit.c (process_common_attributes): New function.
12551         (process_function_and_variable_attributes): Use it.
12552
12553 2011-01-26  Richard Guenther  <rguenther@suse.de>
12554
12555         PR lto/47423
12556         * cgraphbuild.c (record_eh_tables): Record reference to personality
12557         function.
12558
12559 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12560
12561         PR debug/45454
12562         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12563         non-debug insns from moving up.
12564
12565 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12566
12567         PR target/40125
12568         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12569         t-dlldir{,-x} fragment for build and add it to tmake_file.
12570         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12571         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12572         * config/i386/t-dlldir: New file.
12573         (SHLIB_DLLDIR): Define.
12574         * config/i386/t-dlldir-x: New file.
12575         (SHLIB_DLLDIR): Define.
12576         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12577         (SHLIB_INSTALL): Use it.
12578
12579 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12580
12581         PR target/47246
12582         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12583         lower bound of the allowed Thumb-2 coprocessor load/store
12584         index range to -256. Add explaining comment.
12585
12586 2011-01-25  Ian Lance Taylor  <iant@google.com>
12587
12588         * godump.c (go_define): Improve lexing of macro expansion to only
12589         accept expressions which match Go spec.
12590
12591 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12592
12593         PR c++/43601
12594         * tree.c (handle_dll_attribute): Handle it.
12595         * doc/extend.texi (@item dllexport): Mention it.
12596         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12597
12598 2011-01-25  Ian Lance Taylor  <iant@google.com>
12599
12600         PR tree-optimization/26854
12601         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12602         (decl_jump_unsafe): Move higher in file, with no other change.
12603         (bind): Set has_jump_unsafe_decl if appropriate.
12604         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12605         (check_earlier_gotos): Likewise.
12606         (c_check_switch_jump_warnings): Likewise.
12607
12608 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12609
12610         * doc/invoke.texi (Warning Options): Add missing hyphen.
12611         (-fprofile-dir): Minor grammatical fixes.
12612         (-fbranch-probabilities): Likewise.
12613
12614 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12615
12616         PR debug/45136
12617         PR debug/45130
12618         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12619         debug insns.
12620         (no_real_insns_p, schedule_block, set_priorities): Drop special
12621         treatment of boundary debug insns.
12622         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12623         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12624         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12625         (BOUNDARY_DEBUG_INSN_P): Likewise.
12626         (SCHEDULE_DEBUG_INSN_P): Likewise.
12627         * sched-rgn.c (init_ready_list): Drop special treatment of
12628         boundary debug insns.
12629         * final.c (rest_of_clean-state): Clear notes' BB.
12630
12631 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12632
12633         * Makefile.in (LAMBDA_H): Removed.
12634         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12635         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12636         lambda-trans.o, and tree-loop-linear.o.
12637         (lto-symtab.o): Remove dependence on LAMBDA_H.
12638         (tree-loop-linear.o): Remove rule.
12639         (lambda-mat.o): Same.
12640         (lambda-trans.o): Same.
12641         (lambda-code.o): Same.
12642         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12643         (tree-vect-slp.o): Same.
12644         * hwint.h (gcd): Moved here.
12645         (least_common_multiple): Same.
12646         * lambda-code.c: Removed.
12647         * lambda-mat.c: Removed.
12648         * lambda-trans.c: Removed.
12649         * lambda.h: Removed.
12650         * tree-loop-linear.c: Removed.
12651         * lto-symtab.c: Do not include lambda.h.
12652         * omega.c (gcd): Removed.
12653         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12654         * tree-data-ref.c (print_lambda_vector): Moved here.
12655         (lambda_vector_copy): Same.
12656         (lambda_matrix_copy): Same.
12657         (lambda_matrix_id): Same.
12658         (lambda_vector_first_nz): Same.
12659         (lambda_matrix_row_add): Same.
12660         (lambda_matrix_row_exchange): Same.
12661         (lambda_vector_mult_const): Same.
12662         (lambda_vector_negate): Same.
12663         (lambda_matrix_row_negate): Same.
12664         (lambda_vector_equal): Same.
12665         (lambda_matrix_right_hermite): Same.
12666         * tree-data-ref.h: Do not include lambda.h.
12667         (lambda_vector): Moved here.
12668         (lambda_matrix): Same.
12669         (dependence_level): Same.
12670         (lambda_transform_legal_p): Removed declaration.
12671         (lambda_collect_parameters): Same.
12672         (lambda_compute_access_matrices): Same.
12673         (lambda_vector_gcd): Same.
12674         (lambda_vector_new): Same.
12675         (lambda_vector_clear): Same.
12676         (lambda_vector_lexico_pos): Same.
12677         (lambda_vector_zerop): Same.
12678         (lambda_matrix_new): Same.
12679         * tree-flow.h (least_common_multiple): Removed declaration.
12680         * tree-parloops.c (lambda_trans_matrix): Moved here.
12681         (LTM_MATRIX): Same.
12682         (LTM_ROWSIZE): Same.
12683         (LTM_COLSIZE): Same.
12684         (LTM_DENOMINATOR): Same.
12685         (lambda_trans_matrix_new): Same.
12686         (lambda_matrix_vector_mult): Same.
12687         (lambda_transform_legal_p): Same.
12688         * tree-pass.h (pass_linear_transform): Removed declaration.
12689         * tree-ssa-loop.c (tree_linear_transform): Removed.
12690         (gate_tree_linear_transform): Removed.
12691         (pass_linear_transform): Removed.
12692         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12693         flag_loop_interchange.
12694
12695 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12696
12697         PR tree-optimization/47265
12698         PR tree-optimization/47443
12699         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12700         if name still has some uses.
12701
12702 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12703
12704         PR tree-optimization/47382
12705         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12706         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12707
12708 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12709
12710         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12711         sjlj_except_unwind_info.
12712
12713 2011-01-25  Richard Guenther  <rguenther@suse.de>
12714
12715         PR tree-optimization/47426
12716         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12717         visible functions results escape.
12718
12719 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12720
12721         PR target/45701
12722         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12723         (arm_get_frame_offsets): Use it.
12724
12725 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12726             Jakub Jelinek  <jakub@redhat.com>
12727
12728         PR tree-optimization/47271
12729         * tree-if-conv.c (bb_postdominates_preds): New.
12730         (if_convertible_bb_p): Call bb_postdominates_preds.
12731         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12732         (predicate_scalar_phi): Call bb_postdominates_preds.
12733
12734 2011-01-25  Nick Clifton  <nickc@redhat.com>
12735
12736         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12737         * config/rx/rx.c (rx_function_value): Likewise.
12738         (rx_promote_function_mode): Likewise.
12739         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12740         in order to make it legitimate.
12741         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12742         make sure that the first operand is the same as the result register.
12743         (addsi3_unspec): Delete.
12744         (subdi3): Do not accept immediate operands.
12745         (subdi3_internal): Likewise.
12746
12747 2011-01-25  Jeff Law  <law@redhat.com>
12748
12749         PR rtl-optimization/37273
12750         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12751         handle them like argument loads from stack slots.  Do not double
12752         count memory for memory constants and argument loads from stack slots.
12753
12754 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12755
12756         PR tree-optimization/47427
12757         PR tree-optimization/47428
12758         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12759         coalesce if the new root var would be TREE_READONLY.
12760
12761 2011-01-25  Richard Guenther  <rguenther@suse.de>
12762
12763         PR middle-end/47414
12764         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12765         correct type for TBAA.
12766
12767 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12768
12769         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12770         (close_phi_written_to_memory): Call for_each_index with
12771         dr_indices_valid_in_loop.
12772
12773 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12774
12775         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12776         when it is initialized.
12777
12778 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12779
12780         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12781         call to graphite_find_data_references_in_stmt.
12782         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12783         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12784         call to graphite_find_data_references_in_stmt.
12785         (analyze_drs_in_stmts): Same.
12786         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12787         in which the scalar analysis of indices is performed.
12788         (create_data_ref): Same.  Update call to dr_analyze_indices.
12789         (find_data_references_in_stmt): Update call to create_data_ref.
12790         (graphite_find_data_references_in_stmt): Same.
12791         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12792         declaration.
12793         (create_data_ref): Same.
12794         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12795         call to create_data_ref.
12796
12797 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12798
12799         * graphite-sese-to-poly.c (build_poly_scop): Move
12800         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12801
12802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12803
12804         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12805         VAR_DECL, PARM_DECL, and RESULT_DECL.
12806
12807 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12808
12809         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12810         in a reduction PBB.
12811         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12812         that have already been marked as PBB_IS_REDUCTION.
12813
12814 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12815
12816         * graphite-scop-detection.c (same_close_phi_node): New.
12817         (remove_duplicate_close_phi): New.
12818         (make_close_phi_nodes_unique): New.
12819         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12820
12821 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12822
12823         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12824         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12825         of both data references to be the same.
12826
12827 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12828
12829         * graphite-dependences.c (build_lexicographical_constraint): Remove
12830         the gdim parameter.
12831         (build_lexicographical_constraint): Adjust call to
12832         ppl_powerset_is_empty.
12833         (dependence_polyhedron): Same.
12834         (graphite_legal_transform_dr): Same.
12835         (graphite_carried_dependence_level_k): Same.
12836         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12837         parameter.
12838         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12839
12840 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12841
12842         * graphite-sese-to-poly.c
12843         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12844         (close_phi_written_to_memory): New.
12845         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12846         and unshare_expr.
12847
12848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12849
12850         * doc/install.texi: Update the expected version number of PPL to 0.11.
12851         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12852         #if PPL_VERSION_MINOR < 11.
12853
12854 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12855
12856         * graphite-dependences.c: Include graphite-cloog-util.h.
12857         (new_poly_ddr): Inlined into dependence_polyhedron.
12858         (free_poly_ddr): Moved close by new_poly_ddr.
12859         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12860         Early return NULL when ppl_powerset_is_empty returns true.
12861         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12862         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12863         (graphite_legal_transform_dr): Call new_poly_ddr.
12864         (graphite_carried_dependence_level_k): Same.
12865         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12866         (dot_transformed_deps_stmt_1): Removed.
12867         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12868         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12869         (dot_deps_1): Call dot_deps_2.
12870         * Makefile.in (graphite-dependences.o): Add missing dependence on
12871         graphite-cloog-util.h.
12872
12873 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12874
12875         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12876         (build_lexicographical_constraint): Same.
12877         (dependence_polyhedron_1): Same.
12878         (graphite_legal_transform_dr): Same.
12879         (graphite_carried_dependence_level_k): Same.
12880         * graphite-ppl.c (ppl_powerset_is_empty): New.
12881         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12882         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12883
12884 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12885
12886         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12887         the "a followed by b" relation and document it.
12888
12889 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12890
12891         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12892         iteration when the bag of constraints is empty.
12893
12894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12895
12896         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12897
12898 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12899
12900         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12901         nest and two loop depths as parameters.
12902         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12903         lst_perfect_nestify.
12904
12905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12906
12907         * graphite-dependences.c (print_pddr): Call
12908         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12909
12910 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12911
12912         * graphite-ppl.c (debug_gmp_value): New.
12913         * graphite-ppl.h (debug_gmp_value): Declared.
12914
12915 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12916
12917         * doc/install.texi: Document availability of cloog-0.16.
12918
12919 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12920
12921         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12922         invalid postdominance info.
12923
12924 2011-01-24  Jan Hubicka  <jh@suse.cz>
12925
12926         PR c/21659
12927         * doc/extend.texi (weak pragma): Drop claim that it must
12928         appear before definition.
12929         * varasm.c (merge_weak, declare_weak): Only sanity check
12930         that DECL is not output at a time it is declared weak.
12931
12932 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12933
12934         * machmode.def: Fixed comments.
12935
12936 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12937
12938         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12939
12940 2011-01-24  Paul Koning  <ni1d@arrl.net>
12941
12942         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12943         WORDS_BIG_ENDIAN.
12944
12945 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12946
12947         PR target/46519
12948         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12949         (block_info): Add scanned and prev.
12950         (move_or_delete_vzeroupper_2): Return if the basic block
12951         has been scanned and the upper 128bit state is unchanged
12952         from the last scan.
12953         (move_or_delete_vzeroupper_1): Return true if the exit
12954         state is changed.
12955         (move_or_delete_vzeroupper): Visit basic blocks using the
12956         work-list based algorithm based on vt_find_locations in
12957         var-tracking.c.
12958
12959         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12960
12961 2011-01-24  Nick Clifton  <nickc@redhat.com>
12962
12963         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12964         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12965         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12966         then define __v850e1__.
12967         * doc/invoke.texi: Document -mv850es.
12968
12969 2011-01-24  Richard Henderson  <rth@redhat.com>
12970
12971         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12972         compound unordered comparisons.
12973         * config/rx/rx.c (rx_split_fp_compare): Remove.
12974         * config/rx/rx-protos.h: Update.
12975         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12976         (cbranchsf4): Don't call rx_split_fp_compare.
12977         (*cbranchsf4): Use rx_split_cbranch.
12978         (*cmpsf): Don't accept "i" constraint.
12979         (*conditional_branch): Only valid after reload.
12980         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12981
12982 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12983
12984         PR target/47385
12985         * config/rs6000/altivec.md (vector constant splitters): Add
12986         support for creating vector single precision constants if -mvsx is
12987         used and we would create the constant using Altivec primitives.
12988
12989 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12990             Richard Sandiford  <rdsandiford@googlemail.com>
12991
12992         PR rtl-optimization/47166
12993         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12994         mechanism for PRE_MODIFY and POST_MODIFY.
12995         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12996         reloadreg.
12997
12998 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12999
13000         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13001
13002 2011-01-22  Jan Hubicka  <jh@suse.cz>
13003
13004         PR lto/47333
13005         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13006
13007 2011-01-22  Jan Hubicka  <jh@suse.cz>
13008
13009         PR tree-optimization/43884
13010         PR lto/44334
13011         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13012         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13013
13014 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13015
13016         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13017         * config/s390/s390.c (s390_register_move_cost,
13018         s390_memory_move_cost): New.
13019         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13020
13021 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13022
13023         PR middle-end/47401
13024         * except.c (sjlj_assign_call_site_values): Move setting the
13025         crtl->uses_eh_lsda flag to ...
13026         (sjlj_mark_call_sites): ... here.
13027         (sjlj_emit_function_enter): Support NULL dispatch label.
13028         (sjlj_build_landing_pads): In a function with no landing pads
13029         that still has must-not-throw regions, generate code to register
13030         a personality function with empty LSDA.
13031
13032 2011-01-21  Richard Henderson  <rth@redhat.com>
13033
13034         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13035
13036         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13037
13038         * compare-elim.c: New file.
13039         * Makefile.in (OBJS-common): Add it.
13040         (compare-elim.o): New.
13041         * common.opt (fcompare-elim): New.
13042         * opts.c (default_options_table): Add OPT_fcompare_elim.
13043         * tree-pass.h (pass_compare_elim_after_reload): New.
13044         * passes.c (init_optimization_passes): Add it.
13045         * recog.h: Protect against re-inclusion.
13046         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13047         * doc/invoke.texi (-fcompare-elim): Document it.
13048         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13049         * doc/tm.texi: Rebuild.
13050
13051 2011-01-22  Nick Clifton  <nickc@redhat.com>
13052
13053         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13054         rx_split_fp_compare.
13055
13056 2011-01-22  Nick Clifton  <nickc@redhat.com>
13057
13058         * config/rx/rx.md (UNSPEC_CONST): New.
13059         (deallocate_and_return): Wrap the amount popped off the stack in
13060         an UNSPEC_CONST in order to stop it being rejected by
13061         -mmax-constant-size.
13062         (pop_and_return): Add a "(return)" rtx.
13063         (call): Drop the immediate operand.
13064         (call_internal): Likewise.
13065         (call_value): Likewise.
13066         (call_value_internal): Likewise.
13067         (sibcall_internal): Likewise.
13068         (sibcall_value_internal): Likewise.
13069         (sibcall): Likewise.  Generate an explicit call using
13070         sibcall_internal.
13071         (sibcall_value): Likewise.
13072         (mov<>): FAIL if a constant operand is not legitimate.
13073         (addsi3_unpsec): New pattern.
13074
13075         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13076         (ok_for_max_constant): New function.
13077         (gen_safe_add): New function.
13078         (rx_expand_prologue): Use gen_safe_add.
13079         (rx_expand_epilogue): Likewise.
13080         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13081         UNSPEC CONSTs.
13082
13083 2011-01-21  Jeff Law  <law@redhat.com>
13084
13085         PR tree-optimization/47053
13086         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13087         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13088         statements are deleted.
13089         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13090         is nonempty, then purge dead edges and cleanup the CFG.
13091
13092 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13093
13094         PR debug/47402
13095         Temporarily revert:
13096         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13097         PR debug/47106
13098         * tree-dfa.c (create_var_ann): Mark variable as used.
13099
13100 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13101
13102         PR middle-end/45566
13103         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13104         notes from other section in hot/cold partitioning even if
13105         last_action is -3.  Increment call_site_base.
13106
13107         PR rtl-optimization/47366
13108         * fwprop.c (forward_propagate_into): Return bool.  If
13109         any changes are made, -fnon-call-exceptions is used and
13110         REG_EH_REGION note is present, call purge_dead_edges
13111         and return true if it purged anything.
13112         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13113         any EH edges were purged.
13114
13115 2011-01-21  Jeff Law  <law@redhat.com>
13116
13117         PR rtl-optimization/41619
13118         * caller-save.c (setup_save_areas): Break out code to determine
13119         which hard regs are live across calls by examining the reload chains
13120         so that it is always used.
13121         Eliminate code which checked REG_N_CALLS_CROSSED.
13122
13123 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13124
13125         PR tree-optimization/47355
13126         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13127         NOP has non-debug uses beyond PHIs in new_bb.
13128
13129 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13130
13131         PR debug/47106
13132         * cfgexpand.c (account_used_vars_for_block): Only account vars
13133         that are annotated as used.
13134         (estimated_stack_frame_size): Don't set TREE_USED.
13135         * tree-dfa.c (create_var_ann): Mark variable as used.
13136
13137 2011-01-21  Richard Guenther  <rguenther@suse.de>
13138
13139         PR middle-end/47395
13140         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13141
13142 2011-01-21  Richard Guenther  <rguenther@suse.de>
13143
13144         PR tree-optimization/47365
13145         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13146         (vn_reference_lookup_pieces): Adjust.
13147         (vn_reference_lookup): Likewise.
13148         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13149         (vn_reference_lookup_3): Only look through kills if in
13150         VN_WALKREWRITE mode.
13151         (vn_reference_lookup_pieces): Adjust.
13152         (vn_reference_lookup): Likewise.
13153         (visit_reference_op_load): Likewise.
13154         (visit_reference_op_store): Likewise.
13155         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13156         (compute_avail): Likewise.
13157         (eliminate): Likewise.
13158
13159 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13160
13161         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13162         DECL_IGNORED_P non-reg vars if they are used.
13163
13164         PR tree-optimization/47391
13165         * varpool.c (const_value_known_p): Return false if
13166         decl is volatile.
13167
13168 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13169
13170         PR bootstrap/47215
13171         * config/i386/i386.c (ix86_local_alignment): Handle
13172         case for va_list_type_node is nil.
13173         (ix86_canonical_va_list_type): Likewise.
13174
13175 2011-01-21  Alan Modra  <amodra@gmail.com>
13176
13177         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13178         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13179
13180 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13181
13182         * config/arm/arm.md (define_attr type): Rename f_load
13183         and f_store to f_fpa_load and f_fpa_store. Update.
13184         (write_conflict): Deal with rename fallout.
13185         (*push_fp_multi): Likewise.
13186         * config/arm/fpa.md (f_load): Use f_fpa_load.
13187         (f_store): Use f_fpa_store.
13188         (*movsf_fpa): Likewise.
13189         (*movdf_fpa): Likewise.
13190         (*movxf_fpa): Likewise.
13191         (*thumb2_movsf_fpa): Likewise.
13192         (*thumb2_movdf_fpa): Likewise.
13193         (*thumb2_movxf_fpa): Likewise.
13194         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13195         f_loadd and f_stored.
13196         (*thumb2_movdi_vfp): Likewise.
13197         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13198         (*thumb2_movsi_vfp): Likewise.
13199         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13200         Use f_loads instead of f_load.
13201         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13202
13203 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13204
13205         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13206         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13207         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13208         (xtensa_mode_dependent_address_p): New function.
13209         (constantpool_address_p): Make static. Change return type to bool.
13210         Change argument type to const_rtx. Use CONST_INT_P predicate.
13211
13212 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13213
13214         PR debug/46583
13215         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13216
13217 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13218
13219         PR debug/47283
13220         * cfgexpand.c (expand_debug_expr): Instead of generating
13221         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13222         etc. handling.
13223
13224 2011-01-20  Richard Guenther  <rguenther@suse.de>
13225
13226         PR middle-end/47370
13227         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13228         the pointer operand of MEM_REFs.
13229
13230 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13231
13232         PR tree-optimization/46130
13233         * ipa-split.c (consider_split): If return_bb contains non-virtual
13234         PHIs other than for retval or if split_function would not adjust it,
13235         refuse to split.
13236
13237 2011-01-20  Richard Guenther  <rguenther@suse.de>
13238
13239         PR tree-optimization/47167
13240         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13241         Revert previous change, only avoid enumeral type changes.
13242
13243 2011-01-19  Mike Stump  <mikestump@comcast.net>
13244
13245         * doc/tm.texi.in (BRANCH_COST): Englishify.
13246         * doc/tm.texi (BRANCH_COST): Likewise.
13247
13248 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13249
13250         PR c++/47291
13251         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13252         (gen_scheduled_generic_parms_dies): New functions.
13253         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13254         generation for the end of CU compilation.
13255         (dwarf2out_finish): Generate template parameters DIEs here.
13256
13257 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13258
13259         PR debug/46240
13260         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13261         debug bind stmt on merge edges.
13262
13263 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13264
13265         PR debug/47079
13266         PR debug/46724
13267         * function.c (instantiate_expr): Instantiate incoming rtl of
13268         implicit arguments, and recurse on VALUE_EXPRs.
13269         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13270         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13271
13272 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13273
13274         * c-parser.c (c_parser_for_statement): Initialize
13275         collection_expression.
13276
13277 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13278
13279         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13280
13281 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13282
13283         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13284         (LINK_SHLIB_SPEC): Don't use %(link_path).
13285         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13286
13287 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13288
13289         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13290         (NO_SHARED_LIB_SUPPORT): Remove.
13291         (LINK_SHLIB_SPEC): Remove one conditional definition.
13292
13293 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13294
13295         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13296         %{call_shared}.
13297         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13298         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13299         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13300         %{call_shared} and conditionals on these options not being passed.
13301         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13302         %{call_shared}.
13303
13304 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13305
13306         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13307         simplify.
13308
13309         * ipa-split.c: Spelling fixes.
13310
13311 2011-01-19  Richard Henderson  <rth@redhat.com>
13312
13313         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13314         (*mulsi3): Likewise.
13315
13316         * longlong.h [__mn10300__] (count_leading_zeros): New.
13317         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13318         [__mn10300__] (add_ssaaaa, subddmmss): New.
13319         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13320         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13321
13322 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13323
13324         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13325
13326 2011-01-19  Richard Henderson  <rth@redhat.com>
13327
13328         * config/mn10300/mn10300.md (addsi3_flags): New.
13329         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13330         (subsi3_flags, subc_internal, subdi3): New.
13331         (subdi3_internal, *subdi3_degenerate): New.
13332         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13333
13334         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13335         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13336         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13337         * config/mn10300/mn10300-protos.h: Update.
13338         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13339         (return_ret): Likewise.  Rename from return_internal_regs.
13340         (return_internal): Remove.
13341
13342         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13343         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13344         (mn10300_legitimate_constant_p): Likewise.
13345         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13346         (mn10300_frame_size): New.
13347         (mn10300_expand_prologue): Use it.
13348         (mn10300_expand_epilogue): Likewise.
13349         (mn10300_initial_offset): Likewise.
13350         * config/mn10300/mn10300-protos.h: Update.
13351         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13352         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13353         (prologue, epilogue, return_internal): Tidy output code.
13354         (mn10300_store_multiple_operation, return): Likewise.
13355         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13356         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13357         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13358         (load_pic, am33_load_pic): New.
13359         (mn10300_load_pic0, mn10300_load_pic1): New.
13360
13361         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13362         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13363         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13364         (cc_flags_for_mode, cc_flags_for_code): New.
13365         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13366         overflow flag is not valid.  Validate that the flags we need
13367         for the comparison are valid.
13368         (mn10300_output_cmp): Remove.
13369         (mn10300_output_add): New.
13370         (mn10300_select_cc_mode): Use cc_flags_for_code.
13371         (mn10300_split_cbranch): New.
13372         (mn10300_match_ccmode): New.
13373         (mn10300_split_and_operand_count): New.
13374         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13375         to the function.
13376         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13377         (addsi3): ... here.  Use mn10300_output_add.
13378         (*addsi3_flags): New.
13379         (*am33_subsi3, *mn10300_subsi3): Merge...
13380         (subsi3): ... here.  Use attribute isa.
13381         (*subsi3_flags): New.
13382         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13383         when possible.
13384         (*am33_andsi3, *mn10300_andsi3): Merge...
13385         (andsi3): ... here.
13386         (*andsi3_flags): New.
13387         (andsi3 splitters): New.
13388         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13389         (iorsi3): ... here.
13390         (*iorsi3_flags): New.
13391         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13392         (xorsi3): ... here.
13393         (*xorsi3_flags): New.
13394         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13395         (one_cmplsi2): ... here.
13396         (*one_cmplsi2_flags): New.
13397         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13398         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13399         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13400         use matching constraints to eliminate a self-comparison.
13401         (*integer_conditional_branch): Rename from integer_conditional_branch.
13402         Use int_mode_flags to match CC_REG.
13403         (*cbranchsi4_btst, *btstsi): New.
13404         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13405         mn10300_split_cbranch.
13406         (*am33_cmpsf): Rename from am33_cmpsf.
13407         (*float_conditional_branch): Rename from float_conditional_branch.
13408         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13409         (zero_extendqisi2): ... here.
13410         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13411         (zero_extendhisi2): ... here.
13412         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13413         (extendqisi2): ... here.
13414         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13415         (extendhisi2): ... here.
13416         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13417         (ashlsi3): ... here.
13418         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13419         (lshrsi3): ... here.
13420         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13421         (ashrsi3): ... here.
13422         (consecutive add peephole): Remove.
13423         * config/mn10300/predicates.md (label_ref_operand): New.
13424         (int_mode_flags): New.
13425         (CCZN_comparison_operator): New.
13426
13427         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13428         (throughput_42_latency_43): New reservation.
13429         (mulsidi3, umulsidi3): New expanders.
13430         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13431         the MDR register to allocation; separately allocate the low and
13432         high parts of the DImode result.
13433         (umulsidi3_internal): Similarly.
13434         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13435         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13436         (udivsi3, umodsi3): Remove.
13437         (udivmodsi4, divmodsi4): New expanders.
13438         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13439         (*divmodsi4): Simiarly.
13440         (ext_internal): New.
13441
13442         * config/mn10300/constraints.md ("z"): New constraint.
13443         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13444         (FIXED_REGISTERS): Don't fix MDR.
13445         (CALL_USED_REGSITERS): Reformat nicely.
13446         (REG_ALLOC_ORDER): Add MDR.
13447         (enum regclass): Add MDR_REGS.
13448         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13449         (IRA_COVER_CLASSES): Add MDR_REGS.
13450         (REGNO_REG_CLASS): Handle MDR_REG.
13451         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13452         (mn10300_register_move_cost): Likewise.
13453         * config/mn10300/mn10300.md (MDR_REG): New.
13454         (*movsi_internal): Handle moves to/from MDR_REGS.
13455
13456         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13457         POST_MODIFY.
13458         (mn10300_secondary_reload): Tidy combination reload classes.
13459         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13460         addresses for AM33.  Allow symbolic offsets for reg+imm.
13461         (mn10300_regno_in_class_p): New.
13462         (mn10300_legitimize_reload_address): New.
13463         * config/mn10300/mn10300.h (enum reg_class): Remove
13464         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13465         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13466         SP_OR_GENERAL_REGS.
13467         (REG_CLASS_NAMES): Update to match.
13468         (REG_CLASS_CONTENTS): Likewise.
13469         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13470         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13471         (REGNO_IN_RANGE_P): Remove.
13472         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13473         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13474         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13475         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13476         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13477         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13478         (REGNO_GENERAL_P): New.
13479         (HAVE_POST_MODIFY_DISP): New.
13480         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13481         (LEGITIMIZE_RELOAD_ADDRESS): New.
13482         * config/mn10300/mn10300-protos.h: Update.
13483
13484         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13485         DATA_REGS for AM33 stack-pointer destination.
13486         (mn10300_preferred_output_reload_class): Likewise.
13487         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13488         into a form appropriate for ...
13489         (TARGET_SECONDARY_RELOAD): New.
13490         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13491         * config/mn10300/mn10300-protos.h: Update.
13492         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13493         reload_insi; use the "A" constraint for the scratch; handle AM33
13494         moves of sp to non-address registers.
13495
13496         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13497         (*movqi_internal): ... here.
13498         (*am33_movhi, *mn10300_movhi): Merge into...
13499         (*movhi_internal): ... here.
13500         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13501         as the source/destination of moves from/to SP.
13502         (movsf): Only allow for AM33-2.
13503         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13504         any integer constant constraint.  Only allow for AM33-2.  Tidy
13505         all of the alternative outputs.
13506         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13507         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13508         for MN103.
13509         (udivsi3, umodsi3): New patterns for MN103 only.
13510
13511 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13512
13513         * doc/tm.texi.in: Spell out that a lack of register class unions
13514         can lead to ICEs.
13515         * doc/tm.texi: Regenerate.
13516
13517 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13518
13519         PR rtl-optimization/47337
13520         * dce.c (check_argument_store): New function.
13521         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13522
13523         PR tree-optimization/47290
13524         * tree-eh.c (infinite_empty_loop_p): New function.
13525         (cleanup_empty_eh): Use it.
13526
13527 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13528
13529         PR target/46997
13530         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13531         (a64_expand_widen_sum): Ditto.
13532         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13533         (vec_extract_evenodd_help): Ditto.
13534         (vec_extract_evenv4hi): Ditto.
13535         (vec_extract_oddv4hi): Ditto.
13536         (vec_extract_evenv2si): Ditto.
13537         (vec_extract_oddv2si): Ditto.
13538         (vec_extract_evenv2sf): Ditto.
13539         (vec_extract_oddv2sf): Ditto.
13540         (vec_pack_trunc_v4hi: Ditto.
13541         (vec_pack_trunc_v2si): Ditto.
13542         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13543         (vec_interleave_highv8qi): Ditto.
13544         (mix1_r): Ditto.
13545         (vec_extract_oddv8qi): Ditto.
13546         (vec_interleave_lowv4hi): Ditto.
13547         (vec_interleave_highv4hi): Ditto.
13548         (vec_interleave_lowv2si): Ditto.
13549         (vec_interleave_highv2si): Ditto.
13550
13551 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13552
13553         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13554         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13555         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13556         (pa_c_mode_for_suffix): New.
13557         (TARGET_EXPAND_BUILTIN): Define.
13558         (TARGET_C_MODE_FOR_SUFFIX): Define.
13559         (pa_builtins): Define.
13560         (pa_init_builtins): Register __float128 type and init new support
13561         builtins.
13562         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13563         * config/pa/quadlib.c (_U_Qfcopysign): New.
13564
13565 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13566
13567         PR middle-end/46894
13568         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13569         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13570         are defined.
13571
13572 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13573
13574         PR tree-optimization/47179
13575         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13576         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13577
13578 2011-01-18  Richard Guenther  <rguenther@suse.de>
13579
13580         PR rtl-optimization/47216
13581         * emit-rtl.c: Include tree-flow.h.
13582         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13583         of replicating it with different semantics.
13584         * Makefile.in (emit-rtl.o): Adjust.
13585
13586 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13587
13588         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13589         (cortex_a9_dp): Handle neon types correctly.
13590
13591 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13592
13593         PR rtl-optimization/47299
13594         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13595         subtarget.  Use normal multiplication if both operands are constants.
13596         * expmed.c (expand_widening_mult): Don't try to optimize constant
13597         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13598         before using it.
13599
13600 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13601
13602         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13603         spacing after 'e.g.', typos, comma, hyphenation.
13604
13605 2011-01-17  Richard Henderson  <rth@redhat.com>
13606
13607         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13608         (rx_restricted_mem_operand): New.
13609         (rx_shift_operand): Use register_operand.
13610         (rx_source_operand, rx_compare_operand): Likewise.
13611         * config/rx/rx.md (addsi3_flags): New expander.
13612         (adddi3): Rewrite as expander.
13613         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13614         (subsi3_flags): New expander.
13615         (subdi3): Rewrite as expander.
13616         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13617
13618         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13619         (rx_init_builtins): Remove sat builtin.
13620         (rx_expand_builtin): Likewise.
13621         * config/rx/rx.md (ssaddsi3): New.
13622         (*sat): Rename from sat.  Represent the CC_REG input.
13623
13624         * config/rx/predicates.md (rshift_operator): New.
13625         * config/rx/rx.c (rx_expand_insv): Remove.
13626         * config/rx/rx-protos.h: Update.
13627         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13628         operand to the canonical position.
13629         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13630         (*bitclr, *bitclr_in_memory): Similarly.
13631         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13632         (insv): Retain the zero_extract in the expansion.
13633
13634         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13635         (bswaphi2, bitinvert, revw): Likewise.
13636
13637         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13638         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13639         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13640         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13641         (bitset, bitset_in_memory): Likewise.
13642         (bitinvert, bitinvert_in_memory): Likewise.
13643         (bitclr, bitclr_in_memory): Likewise.
13644         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13645         (rx_strend, rx_cmpstrn): Likewise.
13646         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13647         (bitop peep2 patterns): Remove.
13648
13649         * config/rx/rx.c (rx_match_ccmode): New.
13650         * config/rx/rx-protos.h: Update.
13651         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13652         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13653         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13654         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13655         (fix_truncsfsi2, floatsisf2): Likewise.
13656         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13657         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13658         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13659         (*subsi3_flags, *xorsi3_flags): New.
13660
13661         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13662
13663         * config/rx/rx.c (rx_print_operand): Remove workaround for
13664         unsplit comparison operations.
13665
13666         * config/rx/rx.md (movsicc): Split after reload.
13667         (*movsicc): Merge *movsieq and *movsine via match_operator.
13668         (*stcc): New pattern.
13669
13670         * config/rx/rx.c (rx_float_compare_mode): Remove.
13671         * config/rx/rx.h (rx_float_compare_mode): Remove.
13672         * config/rx/rx.md (cstoresi4): Split after reload.
13673         (*sccc): New pattern.
13674
13675         * config/rx/predicates.md (label_ref_operand): New.
13676         (rx_z_comparison_operator): New.
13677         (rx_zs_comparison_operator): New.
13678         (rx_fp_comparison_operator): New.
13679         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13680         Validate that the flags are set properly for the comparison.
13681         (rx_gen_cond_branch_template): Remove.
13682         (rx_cc_modes_compatible): Remove.
13683         (mode_from_flags): New.
13684         (flags_from_code): Rename from flags_needed_for_conditional.
13685         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13686         (rx_select_cc_mode): Likewise.
13687         (rx_split_fp_compare): New.
13688         (rx_split_cbranch): New.
13689         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13690         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13691         (*cbranchsf4): Similarly.
13692         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13693         match_operator and rx_split_cbranch.
13694         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13695         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13696         (*cmpsi): Rename from cmpsi.
13697         (*tstsi): Rename from tstsi.
13698         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13699         (*conditional_branch): Rename from conditional_branch.
13700         (*reveresed_conditional_branch): Remove.
13701         (b<code>): Remove expander.
13702         * config/rx/rx-protos.h: Update.
13703
13704         * config/rx/rx.c (rx_compare_redundant): Remove.
13705         * config/rx/rx.md (cmpsi): Don't use it.
13706         * config/rx/rx-protos.h: Update.
13707
13708         * config/rx/rx-modes.def (CC_F): New mode.
13709         * config/rx/rx.c (rx_select_cc_mode): New.
13710         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13711         * config/rx/rx-protos.h: Update.
13712
13713 2011-01-17  Richard Henderson  <rth@redhat.com>
13714
13715         * except.c (dump_eh_tree): Fix stray ; after for statement.
13716
13717 2011-01-17  Richard Guenther  <rguenther@suse.de>
13718
13719         PR tree-optimization/47313
13720         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13721         handling before copying the body.  Properly deal with
13722         by-reference result in SSA form.
13723
13724 2011-01-17  Ian Lance Taylor  <iant@google.com>
13725
13726         PR target/47219
13727         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13728         (struct_value_alias_set): Don't define.
13729         (sparc_option_override): Don't set sparc_sr_alias_set and
13730         struct_value_alias_set.
13731         (save_or_restore_regs): Use gen_frame_mem rather than calling
13732         set_mem_alias_set.
13733         (sparc_struct_value_rtx): Likewise.
13734
13735 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13736
13737         PR target/47318
13738         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13739         (_mm_maskstore_pd): Likewise.
13740         (_mm_maskload_ps): Likewise.
13741         (_mm_maskstore_ps): Likewise.
13742         (_mm256_maskload_pd): Change mask to __m256i.
13743         (_mm256_maskstore_pd): Likewise.
13744         (_mm256_maskload_ps): Likewise.
13745         (_mm256_maskstore_ps): Likewise.
13746
13747         * config/i386/i386-builtin-types.def: Updated.
13748         (ix86_expand_special_args_builtin): Likewise.
13749
13750         * config/i386/i386.c (bdesc_special_args): Update
13751         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13752         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13753         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13754         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13755
13756         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13757         Use <avxpermvecmode> on mask register.
13758         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13759
13760 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13761             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13762             Eric Botcazou  <ebotcazou@adacore.com>
13763
13764         PR target/46655
13765         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13766         if <= USHRT_MAX in 32-bit mode.
13767
13768 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13769
13770         * doc/install.texi (Configuration, Specific): Wrap long
13771         lines in examples.  Allow line wrapping in long options
13772         and URLs where beneficial for PDF output.
13773
13774 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13775
13776         * config/mips/mips.c (mips_classify_symbol): Don't return
13777         SYMBOL_PC_RELATIVE for nonlocal labels.
13778
13779 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13780
13781         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13782
13783 2011-01-15  Jan Hubicka  <jh@suse.cz>
13784
13785         PR tree-optimization/47276
13786         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13787         declarations as needed.
13788
13789 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13790
13791         * common.opt (fdevirtualize): New flag.
13792         * doc/invoke.texi (Option Summary): Document it.
13793         * opts.c (default_options_table): Add devirtualize flag.
13794         * ipa-prop.c (detect_type_change): Return immediately if
13795         devirtualize flag is not set.
13796         (detect_type_change_ssa): Likewise.
13797         (compute_known_type_jump_func): Likewise.
13798         (ipa_analyze_virtual_call_uses): Likewise.
13799
13800 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13801
13802         PR tree-optimization/45934
13803         PR tree-optimization/46302
13804         * ipa-prop.c (type_change_info): New type.
13805         (stmt_may_be_vtbl_ptr_store): New function.
13806         (check_stmt_for_type_change): Likewise.
13807         (detect_type_change): Likewise.
13808         (detect_type_change_ssa): Likewise.
13809         (compute_complex_assign_jump_func): Check for dynamic type change.
13810         (compute_complex_ancestor_jump_func): Likewise.
13811         (compute_known_type_jump_func): Likewise.
13812         (compute_scalar_jump_functions): Likewise.
13813         (ipa_analyze_virtual_call_uses): Likewise.
13814         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13815
13816 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13817
13818         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13819         * config/i386/i386.opt (msse5): New Alias.
13820
13821 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13822
13823         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13824         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13825         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13826         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13827
13828 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13829
13830         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13831         -mcpu options.
13832         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13833         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13834         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13835         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13836         Likewise.
13837         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13838
13839 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13840
13841         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13842
13843 2011-01-14  Mike Stump  <mikestump@comcast.net>
13844
13845         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13846         * config/fr30/fr30.md: Likweise
13847         (movsi_push): Likewise.
13848         (movsi_pop): Likewise.
13849         (enter_func): Likewise.
13850         * config/moxie/moxie.md (movsi_push): Likewise.
13851         (movsi_pop): Likewise.
13852
13853 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13854
13855         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13856         %{no_archive} %{exact_version}.
13857         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13858         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13859         %{no_archive} %{exact_version}.
13860         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13861         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13862         * config/mips/vxworks.h: Likewise.
13863
13864 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13865
13866         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13867
13868 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13869
13870         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13871         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13872
13873 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13874
13875         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13876         -nodefaultlib.
13877
13878 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13879
13880         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13881         for mcpu not cpu.
13882         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13883         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13884         not cpu.
13885         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13886         Don't handle -shlib.
13887
13888 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13889
13890         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13891         (CC1_SPEC): Don't handle -profile.
13892
13893 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13894
13895         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13896         * config/mips/mips.h (CC1_SPEC): Likewise.
13897
13898 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13899
13900         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13901         * config/mips/mips.h (CC1_SPEC): Likewise.
13902
13903 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13904
13905         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13906         * config/m32r/linux.h (LINK_SPEC): Likewise.
13907         * config/mips/linux.h (LINK_SPEC): Likewise.
13908         * config/mips/linux64.h (LINK_SPEC): Likewise.
13909         * config/sparc/linux.h (LINK_SPEC): Likewise.
13910         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13911         LINK_SPEC): Likewise.
13912         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13913
13914 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13915
13916         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13917         %{version:-v}.
13918         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13919
13920 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13921
13922         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13923         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13924
13925 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13926
13927         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13928
13929 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13930
13931         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13932         supports -Bstatic/-Bdynamic.
13933         * configure: Regenerate.
13934
13935 2011-01-14  Jan Hubicka  <jh@suse.cz>
13936             Jack Howarth  <howarth@bromo.med.uc.edu>
13937
13938         PR target/46037
13939         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13940         when checking debug_info_level. Test write_symbols instead of
13941         debug_hooks->var_location when setting flag_var_tracking_uninit.
13942
13943 2011-01-14  Richard Guenther  <rguenther@suse.de>
13944
13945         PR tree-optimization/47179
13946         * target.def (ref_may_alias_errno): New target hook.
13947         * targhooks.h (default_ref_may_alias_errno): Declare.
13948         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13949         (default_ref_may_alias_errno): New function.
13950         * target.h (struct ao_ref_s): Declare.
13951         * tree-ssa-alias.c: Include target.h.
13952         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13953         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13954         (targhooks.o): Likewise.
13955         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13956         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13957
13958 2011-01-14  Richard Guenther  <rguenther@suse.de>
13959
13960         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13961
13962 2011-01-14  Richard Guenther  <rguenther@suse.de>
13963
13964         PR tree-optimization/47280
13965         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13966         return CFG changes.
13967         (tree_ssa_forward_propagate_single_use_vars): Deal with
13968         CFG changes from associate_plusminus.
13969
13970 2011-01-14  Richard Guenther  <rguenther@suse.de>
13971
13972         PR middle-end/47281
13973         Revert
13974         2011-01-11  Richard Guenther  <rguenther@suse.de>
13975
13976         PR tree-optimization/46076
13977         * tree-ssa.c (useless_type_conversion_p): Conversions from
13978         unprototyped to empty argument list function types are useless.
13979
13980 2011-01-14  Richard Guenther  <rguenther@suse.de>
13981
13982         PR tree-optimization/47286
13983         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13984
13985 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13986
13987         PR middle-end/46823
13988         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13989
13990 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13991
13992         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13993         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13994         * config/xtensa/xtensa.c (xtensa_libcall_value,
13995         xtensa_function_value_regno_p): New functions.
13996         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13997
13998 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13999
14000         PR c++/47213
14001         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14002         PE specific hook.
14003         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14004         New function prototype.
14005         * config/i386/winnt.c (i386_pe_assemble_visibility):
14006         Warn only if attribute was specified by user.
14007
14008 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14009
14010         PR target/47251
14011         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14012         floating point.
14013         (floatunsdidf2_fcfidu): Ditto.
14014
14015 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14016
14017         * config/s390/s390.c (print_operand_address): Replace 'error' with
14018         'output_operand_lossage'.
14019         (print_operand): Likewise.
14020
14021 2011-01-13  Jeff Law  <law@redhat.com>
14022
14023         PR rtl-optimization/39077
14024         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14025         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14026         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14027         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14028         * gcse.c (prune_insertions_deletions): New function.
14029         (compute_pre_data): Use it.
14030
14031 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14032
14033         PR debug/PR46973
14034         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14035         static function.
14036         (prune_unused_types_mark): Use it.
14037
14038 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14039
14040         PR rtl-optimization/45352
14041         * sel-sched.c: Update copyright years.
14042         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14043         in the advancing loop when we have issued issue_rate insns.
14044
14045 2011-01-12  Richard Henderson  <rth@redhat.com>
14046
14047         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14048         (TARGET_MD_ASM_CLOBBERS): New.
14049
14050         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14051         (TARGET_DELEGITIMIZE_ADDRESS): New.
14052
14053         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14054         (clzsi2, *bsch): New patterns.
14055
14056         * config/mn10300/mn10300.md (INT): New mode iterator.
14057         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14058
14059         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14060         flag_split_wide_types.
14061
14062         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14063         (mn10300_trampoline_init): Rewrite without a template, an immediate
14064         load and a direct branch.
14065         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14066
14067 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14068
14069         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14070         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14071         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14072         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14073
14074 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14075
14076         PR debug/47209
14077         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14078         of type.
14079
14080 2011-01-12  Jan Hubicka  <jh@suse.cz>
14081
14082         PR driver/47244
14083         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14084         (PLUGIN_COND_CLOSE): New macro.
14085         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14086
14087 2011-01-12  Richard Guenther  <rguenther@suse.de>
14088
14089         PR lto/47259
14090         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14091         register variables in a MEM_REF.
14092
14093 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14094
14095         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14096         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14097         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14098         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14099         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14100         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14101         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14102         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14103         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14104         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14105         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14106         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14107         * config/gnu-user.h: New.  Copied from linux.h.
14108         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14109         GNU_USER_TARGET_STARTFILE_SPEC.
14110         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14111         GNU_USER_TARGET_ENDFILE_SPEC.
14112         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14113         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14114         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14115         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14116         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14117         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14118         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14119         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14120         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14121         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14122         * config/arm/linux-eabi.h (CC1_SPEC): Use
14123         GNU_USER_TARGET_CC1_SPEC.
14124         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14125         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14126         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14127         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14128         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14129         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14130         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14131         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14132
14133 2011-01-12  Richard Guenther  <rguenther@suse.de>
14134
14135         PR other/46946
14136         * doc/invoke.texi (ffast-math): Document it is turned on
14137         with -Ofast.
14138
14139 2011-01-12  Jan Hubicka  <jh@suse.cz>
14140
14141         PR tree-optimization/47233
14142         * opts.c (common_handle_option): Disable ipa-reference with profile
14143         feedback.
14144
14145 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14146
14147         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14148         error message.
14149
14150 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14151
14152         * c-parser.c (c_lex_one_token): Updated and reindented some
14153         comments.  No changes in code.
14154
14155 2011-01-11  Ian Lance Taylor  <iant@google.com>
14156
14157         * godump.c (go_output_var): Don't output the variable if there is
14158         already a type with the same name.
14159
14160 2011-01-11  Ian Lance Taylor  <iant@google.com>
14161
14162         * godump.c (go_format_type): Don't generate float80.
14163
14164 2011-01-11  Richard Henderson  <rth@redhat.com>
14165
14166         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14167         declaration.  Rewrite for both speed and size.
14168         (mn10300_address_cost_1): Remove.
14169         (mn10300_register_move_cost): New.
14170         (mn10300_memory_move_cost): New.
14171         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14172         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14173         extensions, shifts, BSWAP, CLZ.
14174         (mn10300_wide_const_load_uses_clr): Remove.
14175         (TARGET_REGISTER_MOVE_COST): New.
14176         (TARGET_MEMORY_MOVE_COST): New.
14177         * config/mn10300/mn10300-protos.h: Update.
14178         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14179
14180         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14181         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14182         * config/mn10300/mn10300-protos.h: Update.
14183         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14184         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14185         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14186         (*test_int_bitfield, *test_byte_bitfield): Remove.
14187         (*bit_test, *subreg_bit_test): Remove.
14188         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14189
14190         * config/mn10300/constraints.md ("c"): Rename from "A".
14191         ("A", "D"): New constraint letters.
14192         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14193         (fmssf4, fnmasf4, fnmssf4): Likewise.
14194
14195         * config/mn10300/mn10300.md (isa): New attribute.
14196         (enabled): New attribute.
14197
14198         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14199         (abssf2, negsf2): Define only for hardware fp.
14200         (sqrtsf2): Reformat.
14201         (addsf3, subsf3, mulsf3): Merge expander and insn.
14202
14203         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14204         (DEBUGGER_AUTO_OFFSET): Remove.
14205         (DEBUGGER_ARG_OFFSET): Remove.
14206
14207         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14208         Emit register stores with the same offsets as the hardware.
14209         (mn10300_store_multiple_operation): Don't check that the register
14210         save offsets are monotonic.
14211         * config/mn10300/mn10300-protos.h: Update.
14212
14213         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14214
14215         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14216         in terms of the value on the stack, not the MDR register.
14217
14218 2011-01-11  Jan Hubicka  <jh@suse.cz>
14219
14220         PR lto/45721
14221         PR lto/45375
14222         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14223         (symbol_alias_set_destroy, symbol_alias_set_contains,
14224         propagate_aliases_backward): Declare.
14225         * lto-streamer-out.c (struct sets): New sturcture.
14226         (trivally_defined_alias): New function.
14227         (output_alias_pair_p): Rewrite.
14228         (output_unreferenced_globals): Fix output of alias pairs.
14229         (produce_symtab): Likewise.
14230         * ipa.c (function_and_variable_visibility): Set weak alias destination
14231         as needed in lto.
14232         * varasm.c (symbol_alias_set_t): Remove.
14233         (symbol_alias_set_destroy): Export.
14234         (propagate_aliases_forward, propagate_aliases_backward): New functions
14235         based on ...
14236         (compute_visible_aliases): ... this one; remove.
14237         (trivially_visible_alias): New
14238         (trivially_defined_alias): New.
14239         (remove_unreachable_alias_pairs): Rewrite.
14240         (finish_aliases_1): Reorganize code checking if alias is defined.
14241         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14242         in LTO mode.
14243
14244 2011-01-11  Richard Guenther  <rguenther@suse.de>
14245
14246         PR tree-optimization/46076
14247         * tree-ssa.c (useless_type_conversion_p): Conversions from
14248         unprototyped to empty argument list function types are useless.
14249
14250 2011-01-11  Richard Guenther  <rguenther@suse.de>
14251
14252         PR middle-end/45235
14253         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14254         volatile MEMs as MEM_READONLY_P.
14255
14256 2011-01-11  Richard Guenther  <rguenther@suse.de>
14257
14258         PR tree-optimization/47239
14259         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14260
14261 2011-01-11  Jeff Law  <law@redhat.com>
14262
14263         PR tree-optimization/47086
14264         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14265         IVs from statements that might throw.
14266
14267 2011-01-10  Jan Hubicka  <jh@suse.cz>
14268
14269         PR lto/45375
14270         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14271
14272 2011-01-10  Jan Hubicka  <jh@suse.cz>
14273
14274         PR lto/45375
14275         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14276         when correcting profile.
14277
14278 2011-01-10  Jan Hubicka  <jh@suse.cz>
14279
14280         PR lto/46083
14281         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14282         DECL_FINI_PRIORITY.
14283         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14284         Restore DECL_FINI_PRIORITY.
14285
14286 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14287
14288         * doc/gimple.texi: Fix quoting of multi-word return values in
14289         @deftypefn statements.  Ensure presence of return value.  Wrap
14290         overlong @deftypefn lines.
14291         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14292         descriptions of removed functions.
14293         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14294         of multi-word return value in @deftypefn statement.
14295
14296 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14297
14298         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14299         (Conditional Expressions, Logical Operators)
14300         (Statement and operand traversals): Do not indent smallexample
14301         code.  Fix duplicate function argument in example.
14302
14303 2011-01-10  Jeff Law  <law@redhat.com>
14304
14305         PR tree-optimization/47141
14306         * ipa-split.c (split_function): Handle case where we are
14307         returning a value and the return block has a virtual operand phi.
14308
14309 2011-01-10  Jan Hubicka  <jh@suse.cz>
14310
14311         PR tree-optimization/47234
14312         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14313         (pass_feedback_split_functions): Declare.
14314         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14315         tree-profile.
14316         * ipa-split.c (gate_split_functions): Update comments; disable
14317         split-functions for profile_arc_flag and branch_probabilities.
14318         (gate_feedback_split_functions): New function.
14319         (execute_feedback_split_functions): New function.
14320         (pass_feedback_split_functions): New global var.
14321
14322 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14323
14324         PR lto/46760
14325         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14326         calling gimple_call_set_cannot_inline.
14327
14328 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14329
14330         * config/darwin-sections.def: Remove unused section.
14331
14332 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14333
14334         PR c++/47218
14335         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14336
14337 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14338
14339         PR objc/47232
14340         * c-parser.c (c_parser_declaration_or_fndef): Improved
14341         error message.
14342
14343 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14344
14345         * config/i386/winnt.c (i386_pe_start_function): Make sure
14346         to switch back to function's section.
14347
14348 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14349
14350         PR gcc/46902
14351         PR testsuite/46912
14352         * plugin.c: Move include of dlfcn.h from here...
14353         * system.h: ... to here.
14354
14355 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14356
14357         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14358         file name.
14359         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14360         two extra empty pages in PDF output.
14361
14362 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14363
14364         PR objc/47078
14365         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14366         for error recovery purposes behave as if it was not specified so
14367         that the default type is usd.
14368
14369 2011-01-07  Jan Hubicka  <jh@suse.cz>
14370
14371         PR tree-optmization/46469
14372         * ipa.c (function_and_variable_visibility): Clear needed flags on
14373         nodes with external decls; handle weakrefs merging correctly.
14374
14375 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14376
14377         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14378         not false.
14379
14380 2011-01-07  Jan Hubicka  <jh@suse.cz>
14381
14382         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14383         and no longer claim that gold is required for linker plugin.
14384         * configure: Regenerate.
14385         * gcc.c (PLUGIN_COND): New macro.
14386         (LINK_COMMAND_SPEC): Use it.
14387         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14388         * config.in (HAVE_LTO_PLUGIN): New.
14389         * configure.ac (--with-lto-plugin): New parameter; autodetect
14390         HAVE_LTO_PLUGIN.
14391
14392 2011-01-07  Jan Hubicka  <jh@suse.cz>
14393
14394         PR tree-optimization/46367
14395         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14396         when we can update original.
14397         (cgraph_mark_inline_edge): Sanity check.
14398         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14399
14400 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14401
14402         * config/spu/spu.h (ASM_COMMENT_START): Define.
14403
14404 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14405
14406         PR driver/42445
14407         * gcc.c (%>S): New.
14408         (SWITCH_KEEP_FOR_GCC): Likewise.
14409         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14410         (do_spec_1): Handle "%>".
14411
14412         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14413
14414 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14415
14416         PR target/47201
14417         * config/i386/i386.c (ix86_delegitimize_address): If
14418         simplify_gen_subreg fails, return orig_x.
14419
14420         PR bootstrap/47187
14421         * value-prof.c (gimple_stringop_fixed_value): Handle
14422         lhs of the call properly.
14423
14424 2011-01-07  Jan Hubicka  <jh@suse.cz>
14425
14426         PR lto/45375
14427         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14428
14429 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14430
14431         * target.def (function_switched_text_sections): New hook.
14432         * doc/tm.texi: Regenerated.
14433         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14434         * final.c (default_function_switched_text_sections): New.
14435         (final_scan_insn): Call function_switched_text_sections when a
14436         mid-function section change occurs.
14437         * output.h (default_function_switched_text_sections): Declare.
14438         * config/darwin-protos.h (darwin_function_switched_text_sections):
14439         Likewise.
14440         * config/darwin.c (darwin_function_switched_text_sections): New.
14441         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14442
14443 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14444
14445         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14446         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14447         the secondary code fragment when outputting for DWARF == 2.
14448
14449 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14450
14451         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14452         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14453         Remove.
14454         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14455         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14456
14457 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14458
14459         PR debug/46704
14460         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14461         when it is not empty.
14462
14463 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14464
14465         Bobcat Enablement
14466         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14467         (case ${target}): Add btver1.
14468         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14469         -march=native recognize btver1 processors.
14470         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14471         btver1 def_and_undef
14472         * config/i386/i386.c (struct processor_costs btver1_cost): New
14473         btver1 cost table.
14474         (m_BTVER1): New definition.
14475         (m_AMD_MULTIPLE): Includes m_BTVER1.
14476         (initial_ix86_tune_features): Add btver1 tune.
14477         (processor_target_table): Add btver1 entry.
14478         (static const char *const cpu_names): Add btver1 entry.
14479         (software_prefetching_beneficial_p): Add btver1.
14480         (ix86_option_override_internal): Add btver1 instruction sets.
14481         (ix86_issue_rate): Add btver1.
14482         (ix86_adjust_cost): Add btver1.
14483         * config/i386/i386.h (TARGET_BTVER1): New definition.
14484         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14485         (enum processor_type): Add PROCESSOR_BTVER1.
14486         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14487
14488 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14489
14490         PR target/43309
14491         * config/i386/i386.c (legitimize_tls_address)
14492         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14493         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14494         (tls_initial_exec_64_sun): New pattern.
14495
14496 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14497
14498         * doc/invoke.texi (Overall Options): Improve wording and markup
14499         of the description of -wrapper.
14500
14501 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14502
14503         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14504         rdynamic, threads): New Driver options.
14505
14506 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14507
14508         PR target/38118
14509         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14510         if coming from .tdata.
14511         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14512
14513 2011-01-06  Jan Hubicka  <jh@suse.cz>
14514
14515         PR lto/47188
14516         * collect2.c (main): Do not enable LTOmode when plugin is active.
14517
14518 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14519
14520         PR other/45915
14521         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14522         --version output if supported.
14523         * configure: Regenerate.
14524
14525 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14526
14527         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14528         Driver options.
14529
14530 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14531
14532         PR c/47150
14533         * c-convert.c (convert): When converting a complex expression
14534         other than COMPLEX_EXPR to a different complex type, ensure
14535         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14536         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14537         when converting COMPLEX_TYPE.
14538
14539 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14540
14541         PR tree-optimization/47139
14542         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14543         only the last reduction value is used outside the loop.  Update
14544         documentation.
14545
14546 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14547
14548         * config/rtems.opt: New.
14549         * config.gcc (*-*-rtems*): Use rtems.opt.
14550
14551 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14552
14553         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14554         processors do not support 3DNow instructions.
14555
14556 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14557
14558         * config/spu/spu.c (spu_option_override): Set parameter
14559         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14560
14561 2011-01-05  Jan Hubicka  <jh@suse.cz>
14562
14563         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14564         at the command line.
14565
14566 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14567
14568         PR lto/47162
14569         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14570         deltas on streamed outgoing edges.
14571         (output_node_opt_summary): Output info for outgoing edges only when
14572         the node is in new parameter set.
14573         (output_cgraph_opt_summary): New parameter set, passed to the two
14574         aforementioned functions.  Update its forward declaration and its
14575         callee too.
14576
14577 2011-01-05  Tom Tromey  <tromey@redhat.com>
14578
14579         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14580         operator to c_finish_omp_atomic.
14581         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14582         (build_unary_op): Update.
14583         (build_modify_expr): Update.
14584         (build_asm_expr): Update.
14585
14586 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14587
14588         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14589         newly inserted insns.
14590         (pad_bb): Likewise.
14591         (spu_emit_branch_hint): Likewise.
14592         (insert_hbrp_for_ilb_runout): Likewise.
14593         (spu_machine_dependent_reorg): Call df_finish_pass after
14594         schedule_insns returns.
14595
14596 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14597
14598         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14599
14600 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14601
14602         PR tree-optimization/47005
14603         * tree-sra.c (struct access): Add 'non_addressable' bit.
14604         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14605         (decide_one_param_reduction): Return 0 if the parameter is passed by
14606         reference and one of the accesses in the group is non_addressable.
14607
14608 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14609
14610         PR tree-optimization/47056
14611         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14612         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14613         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14614
14615 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14616
14617         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14618         initializer.  Skip view conversions from aggregate types.
14619
14620 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14621
14622         PR bootstrap/47055
14623         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14624
14625 2011-01-04  Philipp Thomas  <pth@suse.de>
14626
14627         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14628         obvious typo.
14629
14630 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14631
14632         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14633         on empty epilogue sequences.
14634
14635 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14636
14637         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14638         non-static): New Driver options.
14639
14640 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14641
14642         PR driver/47137
14643         * gcc.c (default_compilers[]): Set combinable field to 0
14644         for all assembly languages.
14645
14646 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14647
14648         * config/mips/loongson3a.md: New file.
14649         * config/mips/mips.md: Include loongson3a.md.
14650         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14651         TUNE_LOONGSON_3A.
14652
14653 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14654
14655         PR middle-end/47017
14656         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14657         instead of convert_memory_address_addr_space on the base expression.
14658
14659 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14660
14661         * config/spu/spu.c (spu_option_override): Update error text
14662         for bad -march= / -mtune= values.
14663
14664 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14665
14666         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14667         if branch-hint optimization will be performed.
14668
14669 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14670
14671         PR tree-optimization/47148
14672         * ipa-split.c (split_function): Convert arguments to
14673         DECL_ARG_TYPE if possible.
14674
14675         PR tree-optimization/47155
14676         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14677         when computing uns.
14678
14679         PR rtl-optimization/47157
14680         * combine.c (try_combine): If undobuf.other_insn becomes
14681         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14682         and set *new_direct_jump_p too.
14683
14684 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14685
14686         PR tree-optimization/47021
14687         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14688
14689 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14690
14691         * gcc.c (process_command): Update copyright notice dates.
14692         * gcov.c (print_version): Likewise.
14693         * gcov-dump.c (print_version): Likewise.
14694         * mips-tfile.c (main): Likewise.
14695         * mips-tdump.c (main): Likewise.
14696
14697 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14698
14699         PR tree-optimization/46801
14700         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14701         aggregate fields start at byte boundary instead of the bit-field flag.
14702
14703 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14704
14705         PR driver/47137
14706         * gcc.c (main): Revert revision 168407.
14707
14708 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14709
14710         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14711
14712 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14713
14714         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14715         vector optab to expand vector/scalar shift, update gimple to vector.
14716
14717 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14718
14719         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14720         a thunk.
14721
14722 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14723
14724         PR tree-optimization/46984
14725         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14726         HOST_WIDE_INT.
14727         (cgraph_create_indirect_edge): Fixed line length.
14728         (cgraph_indirect_call_info): Declare.
14729         (cgraph_make_edge_direct) Update declaration.
14730         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14731         (cgraph_create_indirect_edge): Use it.
14732         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14733         callees.
14734         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14735         the new thunk_delta representation.
14736         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14737         HOST_WIDE_INT.
14738         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14739         (ipa_read_indirect_edge_info): Likewise.
14740         * lto-cgraph.c (output_edge_opt_summary): New function.
14741         (output_node_opt_summary): Call it on all outgoing edges.
14742         (input_edge_opt_summary): New function.
14743         (input_node_opt_summary): Call it on all outgoing edges.
14744
14745 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         PR driver/47137
14748         * gcc.c (main): Don't check have_o when settting combine_inputs.
14749
14750 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14751
14752         * regrename.c: Add general comment describing the pass.
14753         (struct du_head): Remove 'length' field.
14754         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14755         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14756         Force renaming to the preferred class (if any) in the first pass and do
14757         not consider registers that belong to it in the second pass.
14758         (create_new_chain): Do not set 'length' field.
14759         (scan_rtx_reg): Likewise.
14760
14761 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14762
14763         PR tree-optimization/47140
14764         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14765         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14766         to bit_value_binop.
14767
14768         PR rtl-optimization/47028
14769         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14770         parm_birth_insn instead of at the beginning of first bb.
14771
14772 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14773
14774         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14775         Remove the word "see" before "@pxref".
14776         * doc/rtl.texi: Remove the word "see" before "@pxref".
14777
14778 2011-01-01  Jan Hubicka  <jh@suse.cz>
14779
14780         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14781         memory.
14782
14783 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14784
14785         PR target/38662
14786         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14787
14788 \f
14789 Copyright (C) 2011 Free Software Foundation, Inc.
14790
14791 Copying and distribution of this file, with or without modification,
14792 are permitted in any medium without royalty provided the copyright
14793 notice and this notice are preserved.