t-sol2 (sol2.o): Add $(TARGET_H) dependency.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-19  Anatoly Sokolov <aesok@post.ru>
2             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3
4         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5
6 2011-05-19  Richard Guenther  <rguenther@suse.de>
7
8         PR middle-end/48985
9         * tree-object-size.c (addr_object_size): If the pointed-to
10         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11
12 2011-05-19  Richard Guenther  <rguenther@suse.de>
13
14         * gimple.c (gimple_types_compatible_p_1): Compare names of
15         the types themselves.
16         (iterative_hash_gimple_type): And hash them that way.
17         (gimple_register_type_1): If we register a main variant properly
18         initialize the leader to ourselves.
19
20 2011-05-19  Tom de Vries  <tom@codesourcery.com>
21
22         PR target/45098
23         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
24         get_loop_invariant_expr_id.
25         (get_loop_invariant_expr_id): Use get_expr_id.
26         (parm_decl_cost): New function.
27         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
28         Improve bound cost estimation.  Use different inv_expr_id for elim and
29         express cases.
30
31 2011-05-19  Tom de Vries  <tom@codesourcery.com>
32
33         PR target/45098
34         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
35         cost_base.cost == 0.
36
37 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
38
39         PR target/49002
40         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
41         Properly handle load cast.
42
43 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
44
45         PR tree-optimization/49039
46         * tree-vrp.c (extract_range_from_binary_expr): For
47         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
48         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
49
50 2011-05-18  Tom de Vries  <tom@codesourcery.com>
51
52         PR target/45098
53         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
54
55 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
56
57         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
58         (*tls_global_dynamic_64): Ditto.
59         (*tls_local_dynamic_base_32_gnu): Ditto.
60         (*tls_local_dynamic_base_64): Ditto.
61         (tls_initial_exec_64_sun): Ditto.
62
63 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
64
65         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
66         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
67         bf592-none.
68         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
69         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
70         * config/bfin/bfin.c (bfin_cpus): Add bf592.
71         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
72         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
73         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
74         * config/bfin/elf.h (LIB_SPEC): Add bf592.
75
76 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
77
78         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
79         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
80         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
81         target_thread_pointer, arm_structure_size_boundary, struct
82         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
83         struct abi_name, arm_all_abis): Remove.
84         (arm_option_override) Don't process most enumerated option values here.
85         Don't process target_fpe_name here.  Work with integer not string for
86         structure size boundary; use separate diagnostics for each case.
87         * config/arm/arm.h (enum float_abi_type, enum
88         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
89         to arm-opts.h.
90         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
91         arm_structure_size_boundary): Remove.
92         * config/arm/arm.opt (mabi=): Use Enum and Init.
93         (arm_abi_type): New Enum and EnumValue entries.
94         (mfloat-abi=): Use Enum and Init.
95         (float_abi_type): New Enum and EnumValue entries.
96         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
97         (mfp16-format=): Use Enum and Init.
98         (arm_fp16_format_type): New Enum and EnumValue entries.
99         (mstructure-size-boundary=): Use UInteger and Init.
100         (mtp=): Use Enum and Init.
101         (arm_tp_type): New Enum and EnumValue entries.
102
103 2011-05-18  Richard Guenther  <rguenther@suse.de>
104
105         PR tree-optimization/49018
106         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
107         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
108         gimple_has_side_effects.
109
110 2011-05-18  Richard Guenther  <rguenther@suse.de>
111
112         * gimple.c (gimple_register_type_1): New function, split out from ...
113         (gimple_register_type): ... here.  Avoid infinite recursion.
114
115 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
116
117         PR tree-optimization/41881
118         * tree-vectorizer.h (struct _loop_vec_info): Add new field
119         reduction_chains along with a macro for its access.
120         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
121         (destroy_loop_vec_info): Free reduction chains.
122         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
123         (vect_is_slp_reduction): New function.
124         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
125         (vect_create_epilog_for_reduction): Support SLP reduction chains.
126         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
127         definition types for reduction chains.
128         (vect_supported_load_permutation_p): Don't allow permutations for
129         reduction chains.
130         (vect_analyze_slp_instance): Support reduction chains.
131         (vect_analyze_slp): Try to build SLP instance from reduction chains.
132         (vect_get_constant_vectors):  Handle reduction chains.
133         (vect_schedule_slp_instance): Mark the first statement of the
134         reduction chain as reduction.
135
136 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
137
138         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
139         names for group elements access.
140         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
141         reduction chains as well.  Remove data reference and interleaving
142         related words from the fields names.
143         * tree-vect-loop.c (vect_transform_loop): Use new names for group
144         elements access.
145         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
146         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
147         vect_update_interleaving_chain, vect_same_range_drs,
148         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
149         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
150         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
151         vect_analyze_group_access, vect_analyze_data_ref_access,
152         vect_create_data_ref_ptr, vect_transform_strided_load,
153         vect_record_strided_load_vectors): Likewise.
154         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
155         vect_model_load_cost, vectorizable_store, vectorizable_load,
156         vect_remove_stores, new_stmt_vec_info): Likewise.
157         * tree-vect-slp.c (vect_build_slp_tree,
158         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
159
160 2011-05-18  Richard Guenther  <rguenther@suse.de>
161
162         PR middle-end/48989
163         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
164         operand verification.
165         (verify_gimple_assign_binary): Likewise.
166         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
167         to non-1-precision BOOLEAN_TYPEs.
168
169 2011-05-18  Tom de Vries  <tom@codesourcery.com>
170
171         PR target/45098
172         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
173
174 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
175
176         PR tree-optimization/49000
177         * tree-ssa.c (execute_update_addresses_taken): Call
178         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
179         be rewritten and decl has been marked for renaming, reset
180         the debug stmt.
181
182 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
183
184         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
185         enum_opts_set when testing if attributes have set -mfpmath=.
186
187 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
188
189         * config/mips/mips.c (mips_handle_option): Remove unused variable.
190
191 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
192
193         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
194         info->entry with 0
195         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
196         id.transform_lang_insert_block with NULL.
197
198 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
199
200         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
201         (output_fp_compare): Change args 3 and 4 to bool.
202         (ix86_expand_call): Change arg 6 to bool.
203         (ix86_attr_length_immediate_default): Change arg 2 to bool.
204         (ix86_attr_length_vex_default): Change arg 3 to bool.
205         * config/i386/i386.md: Update all uses.
206         * config/i386/i386.c: Ditto.
207         (ix86_flags_dependent): Change return type to bool.
208
209 2011-05-17  Richard Guenther  <rguenther@suse.de>
210
211         * gimple.c (type_hash_pair_compare): Fix comparison.
212
213 2011-05-17  Richard Guenther  <rguenther@suse.de>
214
215         * gimple.c (iterative_hash_gimple_type): Simplify singleton
216         case some more, fix final hash value of the non-singleton case.
217
218 2011-05-17  Richard Guenther  <rguenther@suse.de>
219
220         PR bootstrap/49013
221         Revert
222         2011-05-16  Richard Guenther  <rguenther@suse.de>
223
224         * gimple.c (gimple_types_compatible_p_1): Use names of the
225         type itself, not its main variant.
226         (iterative_hash_gimple_type): Likewise.
227
228 2011-05-17  Richard Guenther  <rguenther@suse.de>
229
230         * gimple.c (gimple_register_canonical_type): Use the main-variant
231         leader for computing the canonical type.
232
233 2011-05-17  Nick Clifton  <nickc@redhat.com>
234
235         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
236         moves.
237
238         * config/rx/rx.md: Add peephole to remove redundant extensions
239         after loads.
240         (bitset_in_memory): Use rx_restricted_mem_operand.
241         (bitinvert_in_memory): Likewise.
242         (bitclr_in_memory): Likewise.
243
244 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
245             Nick Clifton  <nickc@redhat.com>
246
247         * config/rx/rx.md: Add peepholes to match a register move followed
248         by a comparison of the moved register.  Replace these with an
249         addition of zero that does both actions in one instruction.
250
251 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
252
253         PR target/48986
254         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
255         predicate to allow CONST_INT.
256         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
257
258 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
259
260         * opts-common.c (opt_enum_arg_to_value): New.
261         * opts.h (opt_enum_arg_to_value): Declare.
262         * config/i386/i386.opt (fpmath): Remove.
263         (mfpmath=): Use Enum, Init and Save.
264         (fpmath_unit): New Enum and EnumValue entries.
265         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
266         name for function fpmath state.
267         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
268         * config/i386/i386.c: Include diagnostic.h.
269         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
270         (ix86_target_string): Take enum fpmath_unit value instead of string.
271         (ix86_debug_options): Update call to ix86_target_string.
272         (ix86_option_override_internal): Don't process fpmath strings here.
273         (x86_function_specific_save, ix86_function_specific_restore):
274         Don't handle fpmath state specially.
275         (ix86_function_specific_print): Pass fpmath state to
276         ix86_target_string instead of printing in this function.
277         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
278         Handle enum attributes.
279         (IX86_ATTR_ENUM, ix86_opt_enum): New.
280         (ix86_valid_target_attribute_tree): Update option_strings
281         handling.  Handle fpmath as enum option.
282         (ix86_can_inline_p): Update field names for function fpmath state.
283         (ix86_expand_builtin): Update call to ix86_target_string.
284         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
285         (ix86_fpmath): Remove.
286         * config/i386/t-i386 (i386.o): Update dependencies.
287
288 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
289
290         PR preprocessor/48677
291         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
292         from decoded_options[0], not from itself.
293
294 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
295
296         * config/i386/constraints.md (z): New constraint.
297         * config/i386/i386.c (c): New mode attribute.
298         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
299         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
300         constraint for operand 0.
301         (*call_vzeroupper): Ditto.
302         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
303         (*call_rex64_ms_sysv_vzeroupper): Ditto.
304         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
305         Use "lzm" constraint for operand 0.
306         (*call_pop_vzeroupper): Ditto.
307         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
308         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
309         constraint for operand 0.
310         (*sibcall_vzeroupper): Ditto.
311         (*sibcall_rex64_ms_sysv): Ditto.
312         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
313         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
314         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
315         (*sibcall_pop_vzeroupper): Ditto.
316         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
317         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
318         mode iterator.  Use "<c>zm" constraint for operand 1.
319         (*call_value_vzeroupper): Ditto.
320         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
321         for operand 1.
322         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
323         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
324         *call_value_pop_1.  Use "lzm" constraint for operand 1.
325         (*call_value_pop_vzeroupper): Ditto.
326         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
327         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
328         mode iterator.  Use "Uz" constraint for operand 1.
329         (*sibcall_value_vzeroupper): Ditto.
330         (*sibcall_value_rex64_ms_sysv): Ditto.
331         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
332         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
333         constraint for operand 1.
334         (*sibcall_value_pop_vzeroupper): Ditto.
335         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
336         and "z" constraint for operand 2.
337         (*tls_global_dynamic_32_gnu): Ditto.
338         (*tls_local_dynamic_base_32_gnu): Ditto.
339         (*tls_local_dynamic_base_64): Ditto.
340         (*tls_local_dynamic_32_once): Ditto.
341         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
342         Update all callers.
343         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
344
345 2011-05-16  Richard Guenther  <rguenther@suse.de>
346
347         * gimple.c (gimple_types_compatible_p_1): Use names of the
348         type itself, not its main variant.
349         (iterative_hash_gimple_type): Likewise.
350
351 2011-05-16  Richard Guenther  <rguenther@suse.de>
352
353         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
354         always visit pointer target and function result and argument types.
355
356 2011-05-16  Jason Merrill  <jason@redhat.com>
357
358         PR c++/48999
359         * tree-inline.c (copy_statement_list): Put back recursion.
360
361 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
362
363         PR target/27663
364         PR target/41076
365         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
366         * config/avr/avr.md ("*ior<mode>qi.byte0",
367         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
368
369 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
370
371         PR target/45099
372         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
373         register is needed for a function argument.
374
375 2011-05-16  Richard Guenther  <rguenther@suse.de>
376
377         * gimple.c (struct type_hash_pair): New type.
378         (type_hash_pair_compare): New function.
379         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
380
381 2011-05-16  Revital Eres  <revital.eres@linaro.org>
382
383         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
384
385 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
386
387         * config/i386/i386.md (floating point move splitters): Fix
388         usage of standard_80387_constant_p.
389         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
390
391 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
392
393         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
394
395 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
396
397         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
398         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
399         (tree_ssa_lim_finalize): Likewise.
400
401 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
402
403         * config/i386/constraint.md (Yd, Yx): New register constraints.
404         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
405         Yd conditional register constraint.
406         (*movtf_internal): Use standard_sse_constant_opcode.
407         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
408         Yx conditional register constraint.
409         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
410         Yd conditional register constraint.  Use standard_sse_constant_p to
411         check for valid SSE constants and call standard_sse_constant_opcode to
412         output SSE insn.
413         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
414         constants and call standard_sse_constant_opcode to output SSE insn.
415         * config/i386/i386.c (ix86_option_ovverride_internal): Set
416         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
417         optimize_size is set.
418         (standard_sse_constant_opcode): Output conditional AVX insn templates.
419
420 2011-05-14  Tobias Burnus  <burnus@net-b.de>
421
422         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
423
424 2011-05-13  Martin Jambor  <mjambor@suse.cz>
425
426         * ipa-prop.c (ipa_cst_from_jfunc): New function.
427         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
428         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
429         (evaluate_conditions_for_ipcp_clone): Removed.
430         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
431         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
432         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
433
434 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
435
436         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
437         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
438         lieu of MAY_HAVE_DEBUG_STMTS.
439         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
440         debug statements if !MAY_HAVE_DEBUG_STMTS.
441
442 2011-05-13  Martin Thuresson  <martint@google.com>
443
444         PR gcov-profile/47793
445         * libgcov.c (gcov_exit): Support relative profile paths.
446         * doc/invoke.texi (-fprofile-dir): Update for above change.
447
448 2011-05-13  Richard Guenther  <rguenther@suse.de>
449
450         * gimple.c (gimple_canonical_types_compatible_p): Do not use
451         type-pair caching, do not compare hashes.
452
453 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
454
455         PR middle-end/48965
456         * tree-cfg.c (edge_to_cases_cleanup): Return true.
457         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
458
459 2011-05-13  Kai Tietz  <ktietz@redhat.com>
460
461         * gimplify.c (gimplify_expr): Make sure operand is boolified.
462         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
463         compatible type for TRUTH_NOT_EXPR.
464
465 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
466
467         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
468         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
469         can_create_pseudo_p ().
470
471 2011-05-13  Richard Guenther  <rguenther@suse.de>
472
473         PR lto/48978
474         * gimple.c (iterative_hash_gimple_type): Revert change in
475         pointer target and function result and argument hashing.
476
477 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
478
479         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
480         (*movxf_internal_nointeger): Ditto.
481         (*movdf_internal_rex64): Ditto.
482         (*movdf_internal): Ditto.
483         (*movdf_internal_nointeger): Ditto.
484         (*movsf_internal): Ditto.
485         (sincos splitters): Use can_create_pseudo ().
486
487 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
488
489         * config/i386/i386-opts.h: New.
490         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
491         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
492         ix86_section_threshold): Remove.
493         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
494         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
495         OPT_mbranch_cost_.
496         (ix86_option_override_internal): Don't decode strings for options
497         other than -march=, -mtune= and -mfpmath=.  Don't allow for
498         __attribute__ uses in remaining diagnostics for options with
499         string arguments.  Don't check for integer arguments being negative.
500         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
501         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
502         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
503         ix86_branch_cost, ix86_section_threshold): Remove.
504         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
505         HeaderInclude.
506         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
507         but not Var.
508         (masm=): Use Enum and Init.
509         (asm_dialect): New Enum and EnumValue entries.
510         (mbranch-cost=): Use UInteger.
511         (mlarge-data-threshold=): Use UInteger and Init.
512         (mcmodel=): Use Enum and Init.
513         (cmodel): New Enum and EnumValue entries.
514         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
515         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
516         mregparm=): Use UInteger.
517         (mstringop-strategy=): Use Enum and Init.
518         (stringop_alg): New Enum and EnumValue entries.
519         (mtls-dialect=): Use Enum and Init.
520         (tls_dialect): New Enum and EnumValue entries.
521         (mabi=): Use Enum and Init.
522         (calling_abi): New Enum and EnumValue entries.
523         (mveclibabi=): Use Enum and Init.
524         (ix86_veclibabi): New Enum and EnumValue entries.
525
526 2011-05-13  Nick Clifton  <nickc@redhat.com>
527
528         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
529         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
530
531 2011-05-13  Kai Tietz  <ktietz@redhat.com>
532
533         PR middle-end/48984
534         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
535         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
536         (gimple_boolify): Check for cast for boolean_type_node instead for
537         BOOLEAN_TYPE.
538
539 2011-05-13  Richard Guenther  <rguenther@suse.de>
540
541         PR tree-optimization/48172
542         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
543         multiplying by number of iterations for equal step.
544         (vect_create_cond_for_alias_checks): Likewise.
545
546 2011-05-13  Andreas Schwab  <schwab@redhat.com>
547
548         * configure.ac: Use AS_HELP_STRING throughout.
549         * configure: Regenerate.
550
551 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
552
553         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
554         (ix86_emit_restore_regs_using_mov): Likewise.
555         (ix86_emit_restore_sse_regs_using_mov): Likewise.
556
557 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
558
559         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
560         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
561         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
562         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
563         RTX_OK_FOR_OLO10_P): ...here.
564         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
565         SYMBOLIC_CONST.
566
567 2011-05-12  Kai Tietz  <ktietz@redhat.com>
568
569         * gimplify.c (gimple_boolify): Re-boolify expression
570         arguments even if expression type is of kind BOOLEAN_TYPE.
571         (gimplify_boolean_expr): Removed.
572         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
573         and XOR. Additional take care that we keep expression's type.
574         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
575         of TRUTH_AND|OR|XOR_EXPR.
576
577 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
578
579         PR tree-optimization/48975
580         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
581         on all bbs here and free and clear ifc_bbs at the end.
582
583 2011-05-12  Richard Guenther  <rguenther@suse.de>
584
585         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
586         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
587         until after simple checks.
588         (gimple_types_compatible_p): Likewise.
589         (iterative_hash_gimple_type): Always hash pointer targets
590         and function return and argument types.
591         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
592         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
593         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
594         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
595         completely in the simple compare section.
596         (gimple_register_canonical_type): Query the cache again after
597         registering.
598
599 2011-05-12  Richard Guenther  <rguenther@suse.de>
600
601         PR tree-optimization/48172
602         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
603         the number of iterations from the segment size calculation.
604         (vect_create_cond_for_alias_checks): Adjust.
605
606 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
607
608         PR debug/48967
609         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
610         if validate_subreg fails.
611
612 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
613
614         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
615         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
616         early.
617
618 2011-05-12  DJ Delorie  <dj@redhat.com>
619
620         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
621         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
622         created builtin into rx_builtins array.
623         (rx_builtin_decl): New function.
624         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
625
626 2011-05-12  DJ Delorie  <dj@redhat.com>
627             Nick Clifton  <nickc@redhat.com>
628
629         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
630         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
631         (rx_is_legitimate_address): Add pre-decrement and post-increment
632         addressing in HImode and QImode.  Fix test for out of range
633         REG+INT addressing.
634         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
635         (rx_align_for_label): Test label before extracting its usage count.
636         (rx_adjust_insn_lengths): Fix selection of insn codes.
637         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
638
639 2011-05-11  Jason Merrill  <jason@redhat.com>
640
641         * tree.c (type_hash_canon): Use struct tree_type_non_common.
642
643 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
644
645         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
646         reindent the subsequent block.
647
648 2011-05-11  Satoru Takabayashi  <satorux@google.com>
649             Paul Pluzhnikov  <ppluzhnikov@google.com>
650
651         * doc/install.texi (Configuration): Document --with-linker-hash-style.
652         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
653         * config.in: Add LINKER_HASH_STYLE.
654         * configure.ac: Add --with-linker-hash-style.
655         * configure: Regenerate.
656
657 2011-05-11  Richard Guenther  <rguenther@suse.de>
658
659         PR middle-end/48964
660         * gimple.c (iterative_hash_canonical_type): Fix typo.
661
662 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
663
664         * config/i386/i386.c (legitimize_tls_address)
665         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
666         expanders directly for TARGET_GNU2_TLS.  Determine pic and
667         __tls_get_addr symbol reference here.  Update call to
668         gen_tls_global_dynamic_{32,64} for added arguments.
669         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
670         expanders directly for TARGET_GNU2_TLS.  Determine
671         __tls_get_addr symbol reference here.  Update call to
672         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
673         unique UNSPEC REG_EQUIV to libcall block.
674         (ix86_tls_get_addr): Declare static.
675         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
676         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
677         Do not determine pic and __tls_get_addr symbol reference here. Do not
678         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
679         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
680         (tls_global_dynamic_64): Add operand 2.  Do not determine
681         __tls_get_addr symbol reference here.  Do not call
682         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
683         (tls_local_dynamic_base64): Ditto for operand 1.
684
685 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
686
687         * function.c (expand_function_start): Initialize stack_check_probe_note
688         only if the generic stack checking mechanism is used.
689
690 2011-05-11  Richard Guenther  <rguenther@suse.de>
691
692         PR tree-optimization/15256
693         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
694         (A & B) | C, combine (A op CST1) op CST2.
695         (tree_ssa_forward_propagate_single_use_vars): Only bother to
696         visit assigns that have uses.
697
698 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
699
700         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
701         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
702         (unpack_ts_type_common_value_fields): ...this.  Update comment.
703         (unpack_value_fields): Adjust for renaming.
704         (lto_input_ts_type_tree_pointers): Split into...
705         (lto_input_ts_type_common_tree_pointer): ...this and...
706         (lto_input_ts_type_non_common_tree_pointers): ...this.
707         (lto_input_tree_pointers): Adjust for above split.
708         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
709         (pack_ts_type_common_value_fields): ...this.  Update comment.
710         (lto_output_ts_type_tree_pointers): Split into...
711         (lto_output_ts_type_common_tree_pointers): ...this and...
712         (lto_output_ts_type_non_common_tree_pointers): ...this.
713         (lto_output_tree_pointers): Adjust for above split.
714         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
715         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
716         * stor-layout.c (vector_type_mode): Adjust location of mode field.
717         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
718         Define.
719         (struct tree_type): Split into...
720         (struct tree_type_common: ...this and...
721         (struct tree_type_with_lang_specific): ...this and...
722         (struct tree_type_non_common): ...this.  Adjust accessor macros
723         accordingly.
724         (TYPE_VALUES_RAW): Define.
725         (union tree_node): Update for above changes.
726         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
727         TS_TYPE_NON_COMMON.
728         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
729         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
730         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
731         * treestructu.def (TS_TYPE): Remove.
732         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
733         Define.
734
735 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
736
737         PR debug/48159
738         * tree-ssa.c (reset_debug_uses): New function.
739         * tree-flow.h (reset_debug_uses): New prototype.
740         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
741         * tree-loop-distribution.c (generate_loops_for_partition): Call
742         reset_debug_uses on the stmts that will be removed.  Keep around
743         all debug stmts, don't count them as bits in partition bitmap.
744         (generate_builtin): Don't count debug stmts or labels as bits in
745         partition bitmap.
746
747 2011-05-11  Richard Guenther  <rguenther@suse.de>
748
749         * gimple.c (gimple_type_hash_1): Merge with ...
750         (gimple_type_hash): ... this.
751         (gtc_visit): Remove mode parameter and simplify accordingly.
752         (gimple_types_compatible_p_1): Likewise.
753         (gimple_types_compatible_p): Likewise.
754         (iterative_hash_gimple_type): Likewise.
755         (visit): Likewise.
756         (gimple_type_eq): Adjust.
757
758 2011-05-11  Revital Eres  <revital.eres@linaro.org>
759
760         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
761         enters the branch create an anti edge in the opposite direction
762         to prevent the creation of reg-moves.
763         * modulo-sched.c: Adjust comment to reflect the fact we are
764         scheduling closing branch.
765         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
766         (stage_count): New field in struct partial_schedule.
767         (calculate_stage_count): New function.
768         (normalize_sched_times): Rename to reset_sched_times and handle
769         incrementing the sched time of the nodes by a constant value
770         passed as parameter.
771         (duplicate_insns_of_cycles): Skip closing branch.
772         (sms_schedule_by_order): Schedule closing branch.
773         (ps_insn_find_column): Handle closing branch.
774         (sms_schedule): Call reset_sched_times and adjust the code to
775         support scheduling of the closing branch.
776         (ps_insert_empty_row): Update calls to normalize_sched_times
777         and rotate_partial_schedule functions.
778
779 2011-05-11  Richard Guenther  <rguenther@suse.de>
780
781         PR middle-end/48953
782         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
783
784 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
785
786         * opts.c (finish_options): Move warning settings from process_options.
787         * toplev.c (process_options): Move warning settings to finish_options.
788
789 2011-05-11  Richard Guenther  <rguenther@suse.de>
790
791         PR tree-optimization/18041
792         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
793         (simplify_bitwise_binary): ... this.  Handle operand conversions
794         by applying them to the result instead.
795         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
796
797 2011-05-11  Richard Guenther  <rguenther@suse.de>
798
799         * gimple.c (gimple_canonical_types_compatible_p): Split out
800         from gimple_types_compatible_p and friends.  Do not recurse
801         to pointed-to types.
802         (gimple_canonical_type_eq): Use it.
803         (iterative_hash_canonical_type): Split out from
804         iterative_hash_gimple_type and friends.  Do not recurse
805         to pointed-to types.
806         (gimple_canonical_type_hash): Use it, allocate the hash here.
807
808 2011-05-11  Revital Eres  <revital.eres@linaro.org>
809
810         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
811         recognizing doloop.
812
813 2011-05-11  Revital Eres  <revital.eres@linaro.org>
814
815         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
816         instead of PREV_INSN.
817
818 2011-05-11  Revital Eres  <revital.eres@linaro.org>
819
820         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
821         * loop-doloop.c (doloop_condition_get): Likewise.
822         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
823         (doloop_end): New.
824         * config/arm/arm.md (*addsi3_compare0): Remove "*".
825
826 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
827
828         * tree.def (CASE_LABEL_EXPR): Add an operand.
829         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
830
831 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
832
833         * c-decl.c (c_override_global_bindings_to_false): Remove.
834         (global_bindings_p): Don't check
835         c_override_global_bindings_to_false.
836         * c-tree.h (c_override_global_bindings_to_false): Remove.
837         * c-typeck.c (composite_type): Don't set
838         c_override_global_bindings_to_false.
839
840 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
841
842         PR target/48857, 48495
843         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
844         (VSX_MODE): Ditto.
845         (VSX_MOVE_MODE): Ditto.
846         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
847         VSX vector types.  Add V2DImode.
848         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
849         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
850         (MODES_TIEABLE_P): Ditto.
851
852         * config/rs6000/rs6000.c (rs6000_emit_move): Use
853         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
854         VSX_VECTOR_MODE.
855         (init_cumulative_args): Ditto.
856         (rs6000_function_arg_boundary): Ditto.
857         (rs6000_function_arg_advance_1): Ditto.
858         (rs6000_function_arg): Ditto.
859         (rs6000_function_ok_for_sibcall): Ditto.
860         (emit_frame_save): Ditto.
861         (rs6000_function_value): Ditto.
862         (rs6000_libcall_value): Ditto.
863
864 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
865
866         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
867         i386/darwin-lib.h to $libgcc_tm_file.
868         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
869
870 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
871
872         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
873
874 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
875
876         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
877         * config/rs6000/rs6000-tables.opt: New file (generated).
878         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
879         rs6000/rs6000-tables.opt to extra_options.
880         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
881         * config/rs6000/rs6000.c (rs6000_select): Remove.
882         (processor_target_table): Move contents to rs6000-cpus.def.
883         (darwin_rs6000_override_options): Check
884         global_options_set.x_rs6000_cpu_index instead of
885         rs6000_select[1].string.
886         (rs6000_option_override_internal): Likewise.
887         (rs6000_handle_option): Don't assert that global structures are in
888         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
889         (rs6000_default_cpu): New variable.
890         (rs6000_file_start): Set it instead of local default_cpu.  Check
891         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
892         global_options_set.x_rs6000_tune_index instead of rs6000_select.
893         (rs6000_darwin_file_start): Check rs6000_default_cpu and
894         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
895         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
896         rs6000_select): Remove.
897         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
898         Remove.
899         (mcpu=, mtune=): Use Var, Init, Enum and Save.
900         * config/rs6000/t-rs6000
901         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
902         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
903         global_options_set.x_rs6000_cpu_index instead of
904         rs6000_select[1].string.
905         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
906         global_options_set.x_rs6000_cpu_index instead of
907         rs6000_select[1].string.
908
909 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
910
911         * config.gcc (libgcc_tm_file): Define instead of including files
912         from ../../libgcc/config/ in tm_file.
913         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
914         * configure: Regenerate.
915         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
916         libgcc_tm.h, cs-libgcc_tm.h): New.
917         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
918         (clean): Remove libgcc_tm.h.
919         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
920         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
921         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
922
923 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
924
925         PR target/48896
926         * config/avr/avr.c (avr_ret_register): Return unsigned int
927         instead of int.
928         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
929         it to avr_libcall_value.
930         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
931         expand_expr.
932         (avr_expand_binop_builtin): Ditto.
933         (avr_expand_unop_builtin): Ditto.
934
935 2011-05-10  DJ Delorie  <dj@redhat.com>
936
937         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
938         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
939         * config/rx/rx.c (rx_align_for_label): Add label and
940         uses_threshold parameters.  Do not align when the label is not
941         used enough.
942         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
943
944 2011-05-10  Richard Guenther  <rguenther@suse.de>
945
946         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
947         a series of conversions and apply foldings similar to what
948         fold-const does.
949         (tree_ssa_forward_propagate_single_use_vars): Call it.
950
951 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
952
953         PR tree-optimization/48611
954         PR tree-optimization/48794
955         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
956         referenced from RESX or EH_DISPATCH arguments.
957
958         PR debug/48928
959         * dfp.c (decimal_to_decnumber): Handle conversion from
960         dconst{1,2,m1,half}.
961
962 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
963
964         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
965         for !flag_prefer_avx128.
966         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
967
968 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
969
970         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
971         (fold_ternary_loc): Use expr_location_or.
972
973 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
974
975         PR debug/48853
976         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
977         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
978         Pmode and mem_mode is not VOIDmode.
979
980 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
981
982         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
983         TYPE_QUAL_RESTRICT): Convert to enum.
984
985 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
986
987         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
988         (const_pow2_1_to_8_operand): Ditto.
989         (const_pow2_1_to_128_operand): Ditto.
990         (const_pow2_1_to_32768_operand): Ditto.
991         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
992         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
993         in insn constraint to check integer value of operand 3.
994         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
995
996         (PINSR_MODE): New mode iterator.
997         (sse2p4_1): New mode attribute.
998         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
999         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1000         iterator.  Use const_int_operand instead of
1001         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1002         exact_log2 in insn constraint to check integer value of operand 3.
1003
1004 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1005
1006         * config/i386/sse.md (blendbits): Remove mode attribute.
1007         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1008         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1009         Check integer value of operand 3 in insn constraint.
1010
1011 2011-05-09  Richard Guenther  <rguenther@suse.de>
1012
1013         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1014         for diagnostics.
1015         (lto_symtab_merge): Likewise.  Do not register types here.
1016         (lto_symtab_merge_decls_2): Likewise.
1017         (lto_symtab_merge_decls_1): Likewise.
1018         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1019         * gimple.c (enum gtc_mode): Declare.
1020         (gimple_types_compatible_p): Make static.
1021
1022 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1023
1024         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1025         temporary register to match Pmode.
1026
1027 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1028
1029         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1030         and *vec_concatv4si_1_avx.
1031
1032 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1033
1034         PR rtl-optimization/48927
1035         * ira-conflicts.c (commutative_constraint_p): Use
1036         recog_data.alternative_enabled_p to disable alternatives where
1037         "enabled" attribute is false.
1038         (get_dup_num): Ditto.
1039         * ira-lives.c (single_reg_class): Ditto.
1040         (ira_implicitly_set_insn_hard_regs): Ditto.
1041
1042 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1043
1044         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1045         (dataflow_set_preserve_mem_locs): Likewise.
1046
1047 2011-05-09  Philipp Thomas  <pth@suse.de>
1048
1049         * config/mep/mep.c (mep_validate_vliw): Syntax description
1050         should not be translated.
1051
1052 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1053
1054         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1055         * config/mips/mips-tables.opt: New file (generated).
1056         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1057         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1058         MIPS_ARCH_OPTION_NATIVE): Define.
1059         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1060         mips-cpus.def.
1061         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1062         mips_parse_cpu): Remove.
1063         (mips_cpu_info_from_opt, mips_default_arch): New.
1064         (mips_handle_option): Don't assert that global structures are in
1065         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1066         (mips_option_override): Use new variables and functions to set
1067         state of these options.  Use strcmp to check for individual CPU names.
1068         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1069         definition.
1070         * config/mips/mips.opt (march=): Use ToLower and Enum.
1071         (mips): Use ToLower, Enum and Var.
1072         (mtune=): Use ToLower and Enum.
1073         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1074
1075 2011-05-08  Jan Hubicka  <jh@suse.cz>
1076
1077         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1078         Arrange type pairs to be UID ordered.
1079         (gimple_lookup_type_leader): Make inline.
1080
1081 2011-05-09  Nick Clifton  <nickc@redhat.com>
1082
1083         PR target/48899
1084         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1085         PROCESSOR_DEFAULT.
1086
1087         PR target/48897
1088         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1089         variable 's'.
1090
1091 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1092
1093         * combine.c (simplify_comparison): Abstract out parts into...
1094         (simplify_compare_const): ... new function.
1095         (try_combine): Generalize parallel arithmetic/compare combining
1096         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1097
1098 2011-05-08  Jan Hubicka  <jh@suse.cz>
1099
1100         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1101         (cgraph_create_virtual_clone): Call hooks once virtual clone
1102         is finished.
1103         * cgraph.h (cgraph_clone_node): Update prototype.
1104         * ipa-cp.c (ipcp_estimate_growth): Use
1105         estimate_ipcp_clone_size_and_time.
1106         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1107         * lto-cgraph.c (input_node): Update.
1108         * ipa-inline.c (recursive_inlining): Update.
1109         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1110         (evaluate_conditions_for_known_args): Break out from ...
1111         (evaluate_conditions_for_edge): ... here.
1112         (evaluate_conditions_for_ipcp_clone): New function.
1113         (inline_node_duplication_hook): Update clone summary based
1114         on parameter map.
1115         (estimate_callee_size_and_time): Rename to ...
1116         (estimate_node_size_and_time): take NODE instead of EDGE;
1117         take POSSIBLE_TRUTHS as argument.
1118         (estimate_callee_size_and_time): Update.
1119         (estimate_ipcp_clone_size_and_time): New function.
1120         (do_estimate_edge_time): Update.
1121
1122 2011-05-08  Richard Guenther  <rguenther@suse.de>
1123
1124         PR middle-end/48908
1125         PR middle-end/48905
1126         * expmed.c (expand_shift_1): Compute adjusted constant shift
1127         amount manually.
1128
1129 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1130
1131         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1132
1133 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1134
1135         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1136
1137 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1138
1139         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1140
1141 2011-05-07  Jan Hubicka  <jh@suse.cz>
1142
1143         * ipa-inline-transform.c (inline_call): Account when program size
1144         decreases.
1145         * ipa-inline.c (relative_time_benefit): New function.
1146         (edge_badness): Reorganize to be power 2 based; fix thinko when
1147         computing badness for negative growth; update comments to match
1148         reality; better dumps.
1149
1150 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1151
1152         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1153         type to bool and adjust comment.
1154         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1155         (fold_mathfn_compare): Remove calls to global_bindings_p.
1156         (fold_inf_compare): Likewise.
1157         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1158         * c-tree.h (global_bindings_p): Adjust prototype.
1159         * c-decl.c (global_bindings_p): Return bool and simplify.
1160
1161 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1162
1163         PR tree-optimization/48837
1164         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1165         when accumulator transformation is performed.
1166
1167 2011-05-06  Jan Hubicka  <jh@suse.cz>
1168
1169         * i386.h (ix86_tune_indices): Add
1170         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1171         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1172         * i386.c (initial_ix86_tune_features): Add
1173         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1174         (software_prefetching_beneficial_p): Remove predicate.
1175         (ix86_option_override_internal): Use new macro.
1176
1177 2011-05-06  Jan Hubicka  <jh@suse.cz>
1178
1179         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1180
1181 2011-05-06  Jan Hubicka  <jh@suse.cz>
1182
1183         * cgraph.c (cgraph_add_thunk): Create real function node instead
1184         of alias node; finalize it and mark needed/reachale; arrange visibility
1185         to be right and add it into the corresponding same comdat group list.
1186         (dump_cgraph_node): Dump thunks.
1187         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1188         cgraph_function_with_gimple_body_p,
1189         cgraph_first_function_with_gimple_body,
1190         cgraph_next_function_with_gimple_body): New functions.
1191         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1192         New macros.
1193         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1194         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1195         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1196         devirtualization when optimizing.
1197         (verify_cgraph_node): Verify thunks.
1198         (cgraph_analyze_function): Analyze thunks.
1199         (cgraph_mark_functions_to_output): Output thunks only in combination
1200         with function they are assigned to.
1201         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1202         alias into normal node.
1203         (assemble_thunks): New functoin.
1204         (cgraph_expand_function): Use it.
1205         * lto-cgraph.c (lto_output_node): Stream thunks.
1206         (input_overwrite_node): Stream in thunks.
1207         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1208         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1209         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1210         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1211         (inline_analyze_function): Do not care about thunk jump functions.
1212         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1213         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1214         cgraph_function_with_gimple_body_p.
1215         * passes.c (do_per_function_toporder): Use
1216         cgraph_function_with_gimple_body_p.
1217         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1218         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1219         (function_called_by_processed_nodes_p): Likewise.
1220
1221 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1222
1223         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1224         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1225         entries.
1226         (mabi=): Replace with separate entries for mabi=altivec,
1227         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1228         mabi=ieeelongdouble and mabi=ibmlongdouble.
1229         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1230         check for -mabi=spe without SPE ABI support here.
1231         (rs6000_handle_option): Replace OPT_mabi_ handling with
1232         OPT_mabi_altivec and OPT_mabi_spe handling.
1233
1234 2011-05-06  Cary Coutant  <ccoutant@google.com>
1235
1236         * dwarf2out.c (contains_subprogram_definition): New function.
1237         (should_move_die_to_comdat): Call it.
1238
1239 2011-05-06  Jeff Law  <law@redhat.com>
1240
1241         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1242         remove_ctrl_stmt_and_useless_edges.
1243         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1244         (fixup_template_block, thread_single_edge): Likewise.
1245         (mark_threaded_blocks): Use THREAD_TARGET.
1246
1247 2011-05-06  Alan Modra  <amodra@gmail.com>
1248
1249         PR target/48900
1250         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1251         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1252
1253 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1254
1255         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1256         constraint modifier to "r".
1257
1258 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1259
1260         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1261         fall through for OPT_mcmodel_.
1262
1263 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1264
1265         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1266         instruction sizes.
1267         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1268
1269 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1270
1271         PR target/47930
1272         * config/arm/arm.opt (marm): Document it.
1273         (mthumb): Reject negative variant.
1274
1275 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1276
1277         PR target/48898
1278         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1279         Fix typo in "ccvt" variable name.
1280
1281 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1282
1283         PR target/48895
1284         * config/vms/vms-ar.c (main): Remove cwd variable.
1285
1286 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1287
1288         PR debug/48902
1289         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1290
1291 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1292
1293         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1294         * gimplify.c (gimplify_switch_expr): Likewise.
1295         * omp-low.c (expand_omp_sections): Likewise.
1296         * tree-eh.c (lower_try_finally_switch): Likewise.
1297         (lower_eh_dispatch): Likewise.
1298         * tree.h (build_case_label): Declare.
1299         * tree.c (build_case_label): Define.
1300
1301 2011-05-05  Jason Merrill  <jason@redhat.com>
1302
1303         PR c++/40975
1304         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1305         (copy_statement_list): Don't recurse.
1306         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1307         STATEMENT_LIST.
1308
1309 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1310
1311         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1312         through from -mfpu= handling.
1313         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1314
1315 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1316
1317         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1318         POST_MODIFY.
1319
1320 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1321
1322         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1323         for 11.31.
1324         (hppa[12]*-*-hpux11*): Ditto.
1325         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1326         * config/ia64/hpux-unix2003.h: New.
1327         * config/pa/pa-hpux1131.opt: New.
1328         * config/pa/pa-hpux1131.h: New.
1329         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1330         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1331         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1332
1333 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1334
1335         PR debug/48853
1336         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1337         instead of mode as 3rd argument to recursive call.
1338         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1339         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1340         VOIDmode.
1341         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1342         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1343         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1344         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1345
1346 2011-05-05  Julian Brown  <julian@codesourcery.com>
1347
1348         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1349         parenthesis in D-register case.
1350
1351 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1352
1353         * opt-functions.awk (var_type_struct): Handle Enum options.
1354         * optc-gen.awk: Don't check range of variables of character type.
1355         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1356         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1357         rs6000_sdata_name, rs6000_explicit_options): Remove.
1358         (rs6000_option_override_internal): Check for -malign-power here.
1359         Use global_options_set instead of rs6000_explicit_options.
1360         (rs6000_parse_fpu_option): Remove.
1361         (rs6000_handle_option): Access variables via opts and opts_set
1362         pointers.  Use error_at and warning_at.  Add fall-through
1363         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1364         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1365         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1366         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1367         here.  Don't use rs6000_parse_fpu_option.
1368         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1369         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1370         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1371         (mrecip=): Use Var.
1372         (mspe): Use Var and Save.
1373         (mtraceback=): Use Enum and Var.
1374         (rs6000_traceback_type): New Enum and EnumValue entries.
1375         (mfloat-gprs=): Use Enum, Var and Save.
1376         (rs6000_float_gprs): New Enum and EnumValue entries.
1377         (mlong-double-): use Var and Save.
1378         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1379         (malign-): Use Enum and Var.
1380         (rs6000_alignment_flags): New Enum and EnumValue entries.
1381         (mfpu=): Use Enum.
1382         (fpu_type_t): New Enum and EnumValue entries.
1383         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1384         global_options_set instead of rs6000_explicit_options.
1385         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1386         global_options_set instead of rs6000_explicit_options.
1387         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1388         global_options_set instead of rs6000_explicit_options.
1389         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1390         global_options_set instead of rs6000_explicit_options.
1391         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1392         global_options_set instead of rs6000_explicit_options.
1393         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1394         global_options_set instead of rs6000_explicit_options.
1395         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1396         definition.
1397         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1398         global_options_set instead of rs6000_explicit_options.
1399         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1400         (rs6000_cmodel): New Enum and EnumValue entries.
1401         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1402         global_options_set instead of rs6000_explicit_options.
1403         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1404         (mtls-size=): Use Enum and Var.
1405         (rs6000_tls_size): New Enum and EnumValue entries.
1406
1407 2011-05-05  Michael Matz  <matz@suse.de>
1408
1409         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1410         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1411         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1412         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1413         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1414         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1415         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1416         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1417         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1418         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1419         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1420         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1421         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1422         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1423         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1424         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1425
1426 2011-05-05  Richard Guenther  <rguenther@suse.de>
1427
1428         * expmed.c (expand_variable_shift): Rename to ...
1429         (expand_shift_1): ... this.  Take an expanded shift amount.
1430         For rotates recurse directly not building trees for the shift amount.
1431         (expand_variable_shift): Wrap around expand_shift_1.
1432         (expand_shift): Adjust.
1433
1434 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1435
1436         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1437
1438 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1439
1440         * tree.h (get_pending_sizes): Remove prototype.
1441         (put_pending_size): Likewise.
1442         (put_pending_sizes): Likewise.
1443         * stor-layout.c (pending_sizes): Delete.
1444         (get_pending_sizes): Likewise.
1445         (put_pending_size): Likewise.
1446         (put_pending_sizes): Likewise.
1447         (variable_size): Do not call put_pending_size and tidy up.
1448         * function.h (struct function): Remove dont_save_pending_sizes_p.
1449         * lto-streamer-in.c (input_function): Do not stream it.
1450         * lto-streamer-out.c (output_function): Likewise.
1451         * tree-inline.c (initialize_cfun): Do not copy it.
1452         * c-decl.c (store_parm_decls): Do not set it.
1453         * omp-low.c (create_task_copyfn): Likewise.
1454         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1455
1456 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1457
1458         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1459         conditions.
1460         (*movdf_internal): Ditto.
1461         (*movdf_internal_nointeger): Ditto.
1462         (*movsf_internal): Ditto.
1463
1464 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1465
1466         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1467         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1468         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1469         (c_variable_size): Remove.
1470         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1471         call put_pending_sizes.
1472         (get_parm_info): Add parameter expr.  Use it to set
1473         arg_info->pending_sizes.
1474         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1475         get_pending_sizes.
1476         * c-parser.c (c_parser_parms_declarator): Update call to
1477         c_parser_parms_list_declarator.
1478         (c_parser_parms_list_declarator): Take parameter expr.  Update
1479         call to push_parm_decl.  Update recursive call.  Don't call
1480         get_pending_sizes.  Update calls to get_parm_info.
1481         (c_parser_objc_method_definition): Update calls to
1482         c_parser_objc_method_decl and objc_start_method_definition.
1483         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1484         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1485         grokparm.
1486         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1487         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1488         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1489
1490 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1491
1492         PR pch/45979
1493         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1494         __ARM_EABI__ hosts.
1495
1496 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1497
1498         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1499         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1500         (spu_output_mi_thunk): New function.
1501
1502 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1503
1504         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1505         targetm.asm_out.print_operand.
1506         * config/sol2.c: Include target.h.
1507
1508 2011-05-04  Jan Hubicka  <jh@suse.cz>
1509
1510         * ipa-inline.c (reset_edge_caches): New function.
1511         (update_caller_keys): Add check_inlinablity_for; do not
1512         reset edge caches; remove now unnecesary loop.
1513         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1514         (update_all_callee_keys): Likewise.
1515         (inline_small_functions): Sanity check cache; update code
1516         recomputing it.
1517
1518 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1519
1520         PR rtl-optimization/47612
1521         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1522         as the last insn of the sequence to be moved.
1523
1524 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1525
1526         PR fortran/48864
1527         * doc/invoke.texi (Ofast): Document that it
1528         enables Fortran's -fno-protect-parens.
1529
1530 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1531
1532         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1533
1534 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1535
1536         * stor-layout.c (variable_size): Do not issue errors.
1537
1538 2011-05-04  Richard Guenther  <rguenther@suse.de>
1539
1540         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1541         for array-ref indices.
1542         (tree_coverage_counter_addr): Likewise.
1543         (build_fn_info_type): Use size_int for index types.
1544         (build_gcov_info): Likewise.
1545
1546 2011-05-04  Richard Guenther  <rguenther@suse.de>
1547
1548         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1549         to build_int_cst.
1550         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1551         for constructor indices.
1552         (push_init_level): Likewise.
1553
1554 2011-05-04  Richard Guenther  <rguenther@suse.de>
1555
1556         * explow.c (promote_mode): Move variable declarations before code.
1557
1558 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1559
1560         * tree.h (build_function_type_array): Declare.
1561         (build_varargs_function_type_array): Declare.
1562         (build_function_type_vec, build_varargs_function_type_vec): Define.
1563         * tree.c (build_function_type_array_1): New function.
1564         (build_function_type_array): New function.
1565         (build_varargs_function_type_array): New function.
1566
1567 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1568
1569         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1570         before setting STMT_VINFO_TYPE.
1571
1572 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1573
1574         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1575         instead of spu_pass_by_reference.
1576
1577 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1578
1579         * calls.c (emit_library_call_value_1): Invoke
1580         promote_function_mode hook on libcall arguments.
1581         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1582         argument being NULL.
1583         * targhooks.c (default_promote_function_mode): Lisewise.
1584         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1585         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1586
1587         * doc/tm.texi: Document that TYPE argument might be NULL.
1588
1589 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1590
1591         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1592
1593 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1594
1595         From Bernd Schmidt
1596         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1597
1598 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1599
1600         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1601         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1602         Move ...
1603         * mips-tfile.c: ... here.
1604         Don't include coretypes.h, tm.h, filenames.h.
1605         (saber_stop): Remove definition and all calls.
1606         [__SABER__]: Remove.
1607         (__LINE__): Remove default.
1608         (Size_t, Ptrdiff_t): Remove definitions.
1609         Replace by size_t, ptrdiff_t.
1610         [!MIPS_DEBUGGING_INFO]: Remove.
1611         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1612         (progname): Add const.
1613         (STATIC): Remove.
1614         Replace all uses by static.
1615         (ALIGN_SYMTABLE_OFFSET): Remove default.
1616         * mips-tdump.c: Don't include coretypes.h, tm.h.
1617         Remove !MIPS_IS_STAB guard.
1618         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1619         $(TM_H), filenames.h dependencies.
1620         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1621
1622 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1623
1624         From Jie Zhang
1625         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1626         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1627
1628 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1629
1630         From Bernd Schmidt
1631         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1632         account and save/restore RETS.
1633         (PROFILE_BEFORE_PROLOGUE): Define.
1634         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1635         the push insn to use predecrement.
1636
1637 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1638
1639         From Jie Zhang
1640         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1641
1642 2011-05-04  Nick Clifton  <nickc@redhat.com>
1643
1644         * config/mn10300/mn10300.c: Include cfgloop.h.
1645         (DUMP): New macro.
1646         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1647         Lcc or a FLcc insn into the instruction stream.
1648         (mn10300_block_contains_call): New function.  Returns true if the
1649         given basic block contains a CALL insn.
1650         (mn10300_loop_contains_call_insn): New function.  Returns true if
1651         the given loop contains a CALL insn.
1652         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1653         to use the SETLB and Lcc or FLcc insns.
1654         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1655         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1656         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1657         disable the SETLB optimization.
1658         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1659         __SETLB__ or __NO_SETLB__.
1660         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1661         (movsf_internal): Handle MDR register.
1662         (cmpsi): Make visible.
1663         (setlb): New pattern.
1664         (Lcc): New pattern.
1665         (FLcc): New pattern.
1666
1667 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1668
1669         PR target/48860
1670         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1671         for reg<->xmm moves.
1672         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1673         (vec_concatv2di_rex64_sse): Ditto.
1674         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1675         (*vec_extractv2di_1_rex64): Ditto.
1676
1677         Revert:
1678         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1679
1680         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1681         reg<->xmm moves.
1682         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1683
1684 2011-05-04  Richard Guenther  <rguenther@suse.de>
1685
1686         * tree.h (int_const_binop): Remove notrunc argument.
1687         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1688         create integer constants that are properly truncated.
1689         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1690         (const_binop): Remove zero notrunc argument to int_const_binop.
1691         (size_binop_loc): Likewise.
1692         (fold_div_compare): Likewise.
1693         (maybe_canonicalize_comparison_1): Likewise.
1694         (fold_comparison): Likewise.
1695         (fold_binary_loc): Likewise.
1696         (multiple_of_p): Likewise.
1697         * expr.c (store_constructor): Likewise.
1698         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1699         (maybe_fold_stmt_addition): Likewise.
1700         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1701         * stor-layout.c (layout_type): Likewise.
1702         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1703         * tree-sra.c (build_ref_for_offset): Likewise.
1704         (build_user_friendly_ref_for_offset): Likewise.
1705         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1706         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1707         * tree-ssa-loop-niter.c (inverse): Likewise.
1708         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1709         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1710         * tree-switch-conversion.c (check_range): Likewise.
1711         (build_constructors): Likewise.
1712         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1713         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1714         (extract_range_from_assert): Likewise.
1715         (vrp_int_const_binop): Likewise.
1716         (extract_range_from_binary_expr): Likewise.
1717         (extract_range_from_unary_expr): Likewise.
1718         (check_array_ref): Likewise.
1719         (find_case_label_range): Likewise.
1720         (simplify_div_or_mod_using_ranges): Likewise.
1721         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1722         comparing case labels for merging.
1723
1724 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1725
1726         * dwarf2out.c (debug_str_hash_forced): Removed.
1727         (gen_label_for_indirect_string): Removed.
1728         (get_debug_string_label): Removed.
1729         (AT_string_form): Generate label directly.
1730         (output_indirect_string): Test indirect_string_node for
1731         DW_FORM_strp instead of checking label and refcount.
1732         (prune_indirect_string): Removed.
1733         (prune_unused_types): Don't check debug_str_hash_forced or
1734         call prune_indirect_string.
1735
1736 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1737
1738         PR other/48093
1739         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1740
1741 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1742
1743         PR debug/47994
1744         PR debug/47919
1745         * combine.c (try_combine): Skip debug insns at m_split tests.
1746
1747 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1748
1749         PR42288
1750         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1751         when info_section_emitted.
1752
1753 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1754
1755         * config/mips/mips-opts.h: New.
1756         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1757         to mips-opts.h.
1758         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1759         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1760         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1761         via opts pointer.
1762         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1763         mips-opts.h.
1764         (mips_abi, mips_code_readable): Don't declare.
1765         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1766         (mabi=): Use Enum and Var.
1767         (mips_abi): New Enum and EnumValue entries.
1768         (mcode-readable=): Use Enum and Var.
1769         (mips_code_readable_setting): New Enum and EnumValue entries.
1770         (mr10k-cache-barrier=): Use Enum and Var.
1771         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1772
1773 2011-05-03  Jan Hubicka  <jh@suse.cz>
1774
1775         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1776         replace hash by pointer map.
1777         (cgraph_node_set_element_def, cgraph_node_set_element,
1778         const_cgraph_node_set_element, varpool_node_set_element_def,
1779         varpool_node_set_element, const_varpool_node_set_element): Remove.
1780         (free_cgraph_node_set, free_varpool_node_set): New function.
1781         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1782         * tree-emutls.c: Free varpool node set.
1783         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1784         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1785         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1786         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1787         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1788         Move here from ipa.c; implement using pointer_map
1789         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1790         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1791         debug_cgraph_node_set, varpool_node_set_new,
1792         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1793         dump_varpool_node_set, debug_varpool_node_set):
1794         Move to ipa-uitls.c.
1795         * passes.c (ipa_write_summaries): Update.
1796
1797 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1798
1799         From Mike Frysinger:
1800         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1801         bf542/bf544/bf547/bf548/bf549.
1802
1803 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1804
1805         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1806
1807 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1808
1809         From Bernd Schmidt:
1810         * config/bfin/bfin.md (MOVCC): New mode_macro.
1811         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1812         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1813         comments from generated assembly.
1814
1815 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1816
1817         From Bernd Schmidt
1818         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1819         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1820         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1821         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1822         * config/bfin/lib1funcs.asm (___muldi3): New function.
1823
1824 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1825
1826         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1827         build_function_type_list instead of build_function_type.
1828         Rearrange initialization of `args' to do so.
1829
1830 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1831
1832         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1833         instead of build_function_type.
1834
1835 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1836
1837         * config/rs6000/rs6000.c (spe_init_builtins): Call
1838         build_function_type_list instead of build_function_type.
1839         (paired_init_builtins, altivec_init_builtins): Likewise.
1840         (builtin_function_type): Likewise.
1841
1842 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1843
1844         * config/sh/sh.c (sh_media_init_builtins): Call
1845         build_function_type_list instead of build_function_type.
1846
1847 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1848
1849         * config/sparc/sparc.c (sparc_file_end): Call
1850         build_function_type_list instead of build_function_type.
1851
1852 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1853
1854         * config/alpha/alpha.c (alpha_init_builtins): Call
1855         build_function_type_list instead of build_function_type.
1856
1857 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1858
1859         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1860         build_function_type_list instead of build_function_type.
1861
1862 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1863
1864         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1865         build_function_type_list instead of build_function_type.
1866         Delete `endlink' variable.
1867
1868 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1869
1870         * config/avr/avr.c (avr_init_builtins): Call
1871         build_function_type_list instead of build_function_type.
1872
1873 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1874
1875         * config/picochip/picochip.c (picochip_init_builtins): Call
1876         build_function_type_list instead of build_function_type.
1877         Delete `endlink' variable.
1878
1879 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1880
1881         * config/bfin/bfin.c (bfin_init_builtins): Call
1882         build_function_type_list instead of build_function_type.
1883
1884 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1885
1886         From Bernd Schmidt
1887         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1888         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1889
1890 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1891
1892         From Jie Zhang:
1893         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1894         libbffastfp overrides libgcc when -mfast-fp.
1895
1896 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1897
1898         Originally from Bernd Schmidt
1899         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1900         * config/bfin/bfin.c (override_options): Test it and error if
1901         TARGET_FDPIC.
1902
1903 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1904
1905         Originally From Bernd Schmidt
1906         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1907         FD-PIC.
1908
1909 2011-05-03  Jeff Law  <law@redhat.com>
1910
1911         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1912         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1913         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1914         than accessing AUX field directly.  Free the AUX field before
1915         clearing it.
1916         (thread_block, thread_through_loop_header): Likewise.
1917         (thread_single_edge, mark_threaded_blocks): Likewise.
1918         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1919         (register_jump_thread): Do not attempt to thread to a NULL edge.
1920
1921 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1922
1923         * function.c (init_function_start): Call decide_function_section.
1924         * varasm.c (decide_function_section): New function.
1925         (assemble_start_function): When not using
1926         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1927         or first_function_block_is_cold.
1928         * rtl.h (decide_function_section): Declare.
1929
1930 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1931             Jakub Jelinek  <jakub@redhat.com>
1932
1933         PR target/48774
1934         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1935         only succeed if req_mode is the same as set_mode.
1936
1937 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1938
1939         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1940         * genemit.c (gen_exp): Handle RETURN.
1941         * emit-rtl.c (verify_rtx_sharing): Likewise.
1942         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1943         * rtl.c (copy_rtx): RETURN is shared.
1944         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1945         (ret_rtx): New.
1946         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1947         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1948         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1949         * config/cris/cris.c (cris_expand_return): Likewise.
1950         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1951         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1952         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1953         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1954         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1955         Likewise.
1956         * config/v850/v850.c (expand_epilogue): Likewise.
1957         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1958         * config/arm/arm.md (epilogue): Likewise.
1959         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1960         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1961         variable to ret_reg.
1962
1963 2011-05-03  Richard Guenther  <rguenther@suse.de>
1964
1965         PR lto/48846
1966         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1967         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1968         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1969
1970 2011-05-03  Richard Guenther  <rguenther@suse.de>
1971
1972         * c-decl.c (grokdeclarator): Instead of looking at
1973         TREE_OVERFLOW check if the constant fits in the index type.
1974
1975 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1976
1977         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1978         (vec_store_lanes<mode><mode>): Likewise.
1979
1980 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1981
1982         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1983         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1984         convert_optab_index values.
1985         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1986         * genopinit.c (optabs): Initialize the new optabs.
1987         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1988         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1989         (expand_STORE_LANES): New functions.
1990         * tree.h (build_array_type_nelts): Declare.
1991         * tree.c (build_array_type_nelts): New function.
1992         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1993         (vect_model_load_cost): Likewise.
1994         (vect_store_lanes_supported, vect_load_lanes_supported)
1995         (vect_record_strided_load_vectors): Declare.
1996         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1997         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1998         (vect_transform_strided_load): Split out statement recording into...
1999         (vect_record_strided_load_vectors): ...this new function.
2000         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2001         (write_vector_array, create_array_ref): New functions.
2002         (vect_model_store_cost): Add store_lanes_p argument.
2003         (vect_model_load_cost): Add load_lanes_p argument.
2004         (vectorizable_store): Try to use store-lanes functions for
2005         interleaved stores.
2006         (vectorizable_load): Likewise load-lanes and loads.
2007         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2008         to vect_model_store_cost.
2009         (vect_build_slp_tree): Likewise vect_model_load_cost.
2010
2011 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2012
2013         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2014         * hooks.c (hook_bool_mode_uhwi_false): New function.
2015         * target.def (array_mode_supported_p): New hook.
2016         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2017         * doc/tm.texi: Regenerate.
2018         * stor-layout.c (mode_for_array): New function.
2019         (layout_type): Use it.
2020         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2021         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2022
2023 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2024
2025         PR target/48723
2026         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2027         for -fstack-check if the size to allocate is negative.
2028
2029 2011-05-02  Lawrence Crowl  <crowl@google.com>
2030
2031         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2032         (timevar_cond_start): New for starting a timer only when it is not
2033         already running.
2034         (timevar_cond_stop): New for stopping a timer when it was not already
2035         running.
2036
2037         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2038         (timevar_cond_start): New as above.
2039         (timevar_cond_stop): New as above.
2040
2041         * timevar.def: Add start/stop timers for compiler phases,
2042         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2043         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2044         and TV_PHASE_FINALIZE.
2045         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2046         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2047         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2048         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2049         Make unused TV_OVERLOAD into a start/stop timer.
2050
2051         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2052         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2053         to indicate that they are start/stop timers.
2054
2055         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2056         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2057         Move initialization to do_compile.
2058         (do_compile): Add initialization from above.
2059         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2060
2061         * c-decl.c (c_write_global_declarations): Add start/stop of
2062         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2063
2064         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2065         or TV_PARSE_INLINE, as appropriate.
2066         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2067         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2068
2069 2011-05-02  Jason Merrill  <jason@redhat.com>
2070
2071         PR c++/40975
2072         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2073
2074 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2075
2076         PR c/35445
2077         * c-decl.c (finish_decl): Only create a composite if the types are
2078         compatible.
2079
2080 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2081
2082         * config/fr30/fr30-protos.h (Mmode): Don't define.
2083         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2084         definition where used.
2085         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2086         define.  Expand definitions where used.
2087         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2088         Expand definitions where used.
2089         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2090         rx_function_arg, rx_function_arg_advance,
2091         rx_function_arg_boundary): Expand definitions of those macros.
2092         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2093         definition where used.
2094
2095 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2096
2097         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2098         reg<->xmm moves.
2099         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2100         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2101         with *movv2sf_internal_rex64_avx.
2102         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2103         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2104         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2105         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2106         "vex" in "prefix" attribute calculation.
2107         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2108
2109 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2110
2111         PR target/47951
2112         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2113         inputs match the output.
2114
2115 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2116
2117         PR target/47955
2118         * config/m68k/m68k.c (m68k_expand_prologue): Set
2119         current_function_static_stack_size.
2120
2121 2011-05-02   Jan Hubicka  <jh@suse.cz>
2122
2123         * lto-streamer.c (lto_streamer_cache_insert_1,
2124         lto_streamer_cache_lookup, lto_streamer_cache_create,
2125         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2126         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2127
2128 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2131         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2132         config/m68k/t-opts: New files.
2133         * config/m68k/m68k-tables.opt: New file (generated).
2134         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2135         extra_options and m68k/t-opts to tmake_file.
2136         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2137         (all_isas): Initialize using m68k-isas.def.
2138         (all_microarchs): Initialize using m68k-microarchs.def.
2139         (m68k_find_selection): Remove.
2140         (m68k_handle_option): Don't assert that global structures are in
2141         use.  Use error_at.  Access variables via opts pointer.  Don't
2142         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2143         directly for -m68020-40 and -m68020-60.
2144         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2145         m68k_tune_entry here.
2146         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2147         to m68k-opts.h.
2148         (m68k_library_id_string): Remove declaration.
2149         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2150         (m68k_library_id_string): New Variable.
2151         (march=, mcpu=, mtune=): Use Enum and Var.
2152
2153 2011-05-02  Richard Guenther  <rguenther@suse.de>
2154
2155         * varasm.c (output_constructor_regular_field): Compute zero-based
2156         index with double-ints.  Make sure to ICE instead of producing
2157         wrong code.
2158         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2159         in asserts.  Properly use a signed type.
2160
2161 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2162
2163         * config/i386/sse.md (V): New mode iterator.
2164         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2165         TARGET_SSE2.
2166         (V_256): Rename from AVX256MODE.
2167         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2168         condition to all users.
2169         (VF1): Ditto.
2170         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2171         condition to all users.
2172         (VF_128): Make V4SF mode unconditional.
2173         (VF_256): Rename from AVX256MODEF2P.
2174         (VI4F_128): Rename from SSEMODE4S.
2175         (VI8F_128): Rename from SSEMODE2D.
2176         (VI4F_256): Rename from AVX256MODE8P.
2177         (VI8F_256): Rename from AVX256MODE4P.
2178         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2179         (ssescalarmodesuffix): Remove SF and DF modes.
2180         (SSEMODE124): Remove.
2181         (SSEMODE1248): Ditto.
2182         (SSEMODEF2P): Ditto.
2183         (AVXMODEF2P): Ditto.
2184         (AVXMODEFDP): Ditto.
2185         (AVXMODEFSP): Ditto.
2186         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2187         unconditional.
2188         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2189         unconditional.
2190         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2191         xop_pcmov_<mode>256.  Use V mode iterator.
2192
2193         Adjust RTX patterns globally for renamed mode attributes.
2194
2195 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2196
2197         * haifa-sched.c (sched_emit_insn): Emit insn before first
2198         non-scheduled insn.  Inform back-end about new insn.  Add
2199         new insn to scheduled_insns list.
2200
2201 2011-05-02  Richard Guenther  <rguenther@suse.de>
2202
2203         PR tree-optimization/48822
2204         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2205         (process_scc): Indicate which iteration we start.
2206
2207 2011-05-02  Jan Hubicka  <jh@suse.cz>
2208
2209         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2210         (lto_section_overrun): New.
2211         * lto-section-out.c (append_block): Rename to ...
2212         (lto_append_block): ... this one; export.
2213         (lto_output_1_stream): Move lto lto-streamer.h
2214         (lto_output_data_stream): Update.
2215         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2216         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2217         functions.
2218
2219 2011-05-02  Richard Guenther  <rguenther@suse.de>
2220
2221         * tree.c (tree_code_counts): New global array.
2222         (record_node_allocation_statistics): Count individual tree codes.
2223         (dump_tree_statistics): Dump individual code stats.
2224
2225 2011-05-01  Jan Hubicka  <jh@suse.cz>
2226
2227         * ipa-inline.c (caller_growth_limits): Fix thinko when
2228         looking for largest stack frame.
2229         * ipa-inline.h (dump_inline_summary): Declare.
2230         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2231         on stack usage.
2232         (dump_inline_summary): Export.
2233         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2234
2235 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2236
2237         * reginfo.c (memory_move_cost): Change rclass argument type form
2238         'enum reg_class' to reg_class_t.
2239         * reload.h (memory_move_cost): Update prototype.
2240         * postreload.c reload_cse_simplify_set): Change type dclass var to
2241         reg_class_t.
2242         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2243         Update prototype.
2244         (ira_allocate_and_set_costs): Change aclass argument type form
2245         'enum reg_class' to reg_class_t.
2246         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2247         Change aclass argument type to reg_class_t.
2248         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2249         to reg_class_t.
2250         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2251         memory_move_cost call.
2252
2253         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2254         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2255         Change type tmp var to reg_class_t.
2256
2257 2011-04-30  Jan Hubicka  <jh@suse.cz>
2258
2259         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2260         inlining into function with flatten attribute.
2261         (want_inline_small_function_p): Be more realistic about inlining
2262         cold calls where callee size grows.
2263
2264 2011-04-30  Jan Hubicka  <jh@suse.cz>
2265
2266         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2267         flags.
2268
2269 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2270
2271         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2272         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2273         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2274         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2275         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2276         (print_operand): Rename to...
2277         (sparc_print_operand): ...this. Make static. Adjust
2278         sparc_print_operand function call.
2279         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2280         functions.
2281
2282 2011-04-30  Jan Hubicka  <jh@suse.cz>
2283
2284         PR middle-end/48752
2285         * ipa-inline.c (early_inliner): Disable when doing late
2286         addition of function.
2287
2288 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2289
2290         * dwarf2out.c (get_address_mode): New inline.
2291         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2292         if not dwarf_strict emit
2293         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2294         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2295         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2296         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2297         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2298         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2299         mem_loc_descriptor callers.
2300         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2301         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2302         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2303         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2304         (base_types): New variable.
2305         (get_base_type_offset, calc_base_type_die_sizes,
2306         base_type_for_mode, mark_base_types, base_type_cmp,
2307         move_marked_base_types): New functions.
2308         (calc_die_sizes): Assert that die_offset is 0 or equal to
2309         next_die_offset.
2310         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2311         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2312         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2313         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2314         (gen_subprogram_die): Don't give up on call site parameters
2315         with non-integral or large integral modes.  Adjust
2316         mem_loc_descriptor callers.
2317         (prune_unused_types): Call prune_unused_types_mark on base_types
2318         vector entries.
2319         (resolve_addr): Call mark_base_types.
2320         (dwarf2out_finish): Call move_marked_base_types.
2321
2322         PR tree-optimization/48809
2323         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2324         type.
2325         (gen_inbound_check): Don't compute index_expr - range_min in utype
2326         again, instead reuse SSA_NAME initialized in build_arrays.
2327         Remove two useless gsi_for_stmt calls.
2328
2329 2011-04-29  Jeff Law  <law@redhat.com>
2330
2331         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2332
2333 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2334
2335         * cgraph.h (cgraph_postorder): Remove declaration.
2336         * ipa-utils.h (ipa_free_postorder_info): Declare.
2337         (ipa_reverse_postorder): Likewise.
2338         * cgraphunit.c: Include ipa-utils.h.
2339         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2340         * ipa-inline.c: Include ipa-utils.h.
2341         (ipa_inline): Update call to ipa_reverse_postorder.
2342         * ipa-pure-const.c (propagate_pure_const): Update call to
2343         ipa_reduced_postorder and ipa_print_order.  Call
2344         ipa_free_postorder_info to clean up.
2345         (propagate_nothrow): Likewise.
2346         * ipa-reference.c (propagate): Removed a useless call to
2347         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2348         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2349         * ipa.c: Include ipa-utils.h.
2350         (ipa_profile): Update call to ipa_reverse_postorder.
2351         (cgraph_postorder): Moved to...
2352         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2353         (ipa_utils_print_order): Renamed to ipa_print_order.
2354         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2355         comments.
2356         (ipa_free_postorder_info): New function.
2357         * passes.c: Include ipa-utils.h.
2358         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2359         (ipa_write_summaries): Likewise.
2360         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2361         (cgraphunit.o): Likewise.
2362         (ipa.o): Likewise.
2363         (ipa-inline.o): Likewise.
2364
2365 2011-04-29  Jan Hubicka  <jh@suse.cz>
2366
2367         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2368         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2369         * ipa-inline.h (clause_t): Turn into unsigned int.
2370         * ipa-inline-analysis.c (add_clause): Do more simplification.
2371         (and_predicates): Shortcut more cases.
2372         (predicates_equal_p): Move forward; check that clauses are properly
2373         ordered.
2374         (or_predicates): Shortcut more cases.
2375         (edge_execution_predicate): Rewrite as...
2376         (set_cond_stmt_execution_predicate): ... this function; handle
2377         __builtin_constant_p.
2378         (set_switch_stmt_execution_predicate): New .
2379         (compute_bb_predicates): New.
2380         (will_be_nonconstant_predicate): Update TODO.
2381         (estimate_function_body_sizes): Use compute_bb_predicates
2382         and free them later, always try to estimate if stmt is constant.
2383         (estimate_time_after_inlining, estimate_size_after_inlining):
2384         Gracefully handle optimized out edges.
2385         (read_predicate): Fix off by one error.
2386
2387 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2388
2389         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2390
2391 2011-04-27  Xinliang David Li  <davidxl@google.com>
2392
2393         * tree-profile.c (init_ic_make_global_vars): Set
2394         tls attribute on ic vars.
2395         * coverage.c (coverage_end_function): Initialize
2396         function_list with zero.
2397
2398 2011-04-29  Richard Guenther  <rguenther@suse.de>
2399
2400         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2401         for the type of the result.
2402         (fold_builtin_isascii): Likewise.
2403         (fold_builtin_toascii): Use integer_type_node where appropriate.
2404         (fold_builtin_logb): Likewise.
2405         (fold_builtin_frexp): Likewise.
2406         (fold_builtin_strstr): Likewise.
2407         (fold_builtin_strpbrk): Likewise.
2408         (fold_builtin_fputs): Likewise.
2409         (fold_builtin_sprintf): Likewise.
2410         (fold_builtin_snprintf): Likewise.
2411         (fold_builtin_printf): Likewise.
2412         (do_mpfr_remquo): Use a proper type for the assigned constant.
2413         (do_mpfr_lgamma_r): Likewise.
2414         * dwarf2out.c (resolve_one_addr): Use size_int.
2415         * except.c (init_eh): Likewise.
2416         (assign_filter_values): Use integer_type_node for filter values.
2417         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2418         indices.
2419         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2420         for EH region numbers.
2421         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2422         for the shift amount.
2423
2424 2011-04-29  Richard Guenther  <rguenther@suse.de>
2425
2426         * expr.h (expand_shift): Rename to ...
2427         (expand_variable_shift): ... this.
2428         (expand_shift): Take a constant shift amount.
2429         * expmed.c (expand_shift): Rename to ...
2430         (expand_variable_shift): ... this.
2431         (expand_shift): New wrapper around expand_variable_shift.
2432         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2433         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2434         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2435         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2436         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2437         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2438         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2439         emit_store_flag_1, emit_store_flag): Likewise.
2440         * builtins.c (expand_builtin_signbit): Likewise.
2441         * calls.c (load_register_parameters): Likewise.
2442         * function.c (assign_parm_setup_block): Likewise.
2443         * lower-subreg.c (resolve_shift_zext): Likewise.
2444         * optabs.c (widen_bswap, expand_abs_nojump,
2445         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2446         * spu/spu.c (spu_expand_extv): Likewise.
2447         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2448
2449 2011-04-29  Richard Guenther  <rguenther@suse.de>
2450
2451         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2452         for the remapped region number.
2453         * predict.c (build_predict_expr): Use integer_type_node for the
2454         predict kind.
2455         * fold-const.c (fold_binary_loc): Use integer_type_node for
2456         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2457
2458 2011-04-29  Michael Matz  <matz@suse.de>
2459
2460         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2461         other trees that just builtins.
2462         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2463
2464 2011-04-29  Richard Guenther  <rguenther@suse.de>
2465
2466         * tree-nested.c (get_trampoline_type): Use size_int.
2467         (get_nl_goto_field): Likewise.
2468         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2469         for all indexes.
2470         (lower_eh_constructs_2): Likewise.
2471         (lower_resx): Likewise.
2472         (lower_eh_dispatch): Likewise.
2473         * tree-mudflap.c (mf_build_string): Use size_int.
2474         (mudflap_register_call): Use integer_type_node for the flag.
2475         (mudflap_enqueue_constant): Use size_int.
2476         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2477         instead of rebuilding it.
2478
2479 2011-04-29  Richard Guenther  <rguenther@suse.de>
2480
2481         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2482         Handle OBJ_TYPE_REF.
2483         (find_func_aliases_for_call): Use it more consistently.
2484
2485 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2486
2487         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2488         (rank_for_schedule): Use it.
2489         (schedule_block): Set it.
2490
2491 2011-04-28  David Li  <davidxl@google.com>
2492
2493         * tree.c (crc32_string): Use crc32_byte.
2494         (crc32_byte): New function.
2495         * tree.h (crc32_byte): New function.
2496         * gcov.c (read_graph_file): Handle new cfg_cksum.
2497         (read_count_file): Ditto.
2498         * profile.c (instrument_values): Ditto.
2499         (get_exec_counts): Ditto.
2500         (read_profile_edge_counts): Ditto.
2501         (compute_branch_probabilities): Ditto.
2502         (compute_value_histograms): Ditto.
2503         (branch_prob): Ditto.
2504         (end_branch_prob): Ditto.
2505         * coverage.c (read_counts_file): Ditto.
2506         (get_coverage_counts): Ditto.
2507         (tree_coverage_counter_addr): Ditto.
2508         (coverage_checksum_string): Ditto.
2509         (coverage_begin_output): Ditto.
2510         (coverage_end_function): Ditto.
2511         (build_fn_info_type): Ditto.
2512         (build_fn_info_value): Ditto.
2513         * libgcov.c (gcov_exit): Ditto.
2514         * gcov-dump.c (tag_function): Ditto.
2515         (compute_checksum): Remove.
2516
2517 2011-04-29  Alan Modra  <amodra@gmail.com>
2518
2519         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2520         unspec plus offset.  Tidy macho code.
2521
2522 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2523
2524         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2525         node instead of a decl.  Update all callers.
2526         * cgraph.h: Update declaration.
2527
2528 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2529
2530         PR tree-optimization/48765
2531         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2532         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2533         to indicate if loop aware SLP is being used.  Scan the statements
2534         and update the vectorization factor according to the type of
2535         vectorization before statement analysis.
2536         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2537         pass it to vect_analyze_loop_operations.
2538         (vectorizable_reduction): Set number of copies to 1 in case of pure
2539         SLP statement.
2540         * tree-vect-stmts.c (vectorizable_conversion,
2541         vectorizable_assignment, vectorizable_shift,
2542         vectorizable_operation, vectorizable_type_demotion,
2543         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2544         Likewise.
2545         (vectorizable_condition): Move the check that it is not SLP
2546         vectorization before the number of copies check.
2547         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2548         to vectorize the loop using SLP.
2549
2550 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2551
2552         PR middle-end/48597
2553         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2554         inline asm.
2555
2556 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2557
2558         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2559         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2560         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2561         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2562         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2563         linux*.h headers.
2564         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2565         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2566         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2567         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2568         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2569         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2570         REG_NAME.
2571         * config/i386/linux.h (REG_NAME): Don't define.
2572         * config/i386/linux64.h (REG_NAME): Don't define.
2573         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2574         Undefine before defining.
2575
2576 2011-04-28  Jan Hubicka  <jh@suse.cz>
2577
2578         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2579         nonconstant_names array.
2580         (estimate_function_body_sizes): Build nonconstant_names array; handle
2581         BUILT_IN_CONSTANT_P.
2582
2583 2011-04-28  Richard Guenther  <rguenther@suse.de>
2584
2585         PR bootstrap/48804
2586         Revert
2587         2011-04-28  Richard Guenther  <rguenther@suse.de>
2588
2589         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2590         as late as possible.
2591
2592 2011-04-28  Richard Guenther  <rguenther@suse.de>
2593
2594         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2595         (debug_constraint): Do it here.
2596         (dump_constraints): And here.
2597         (rewrite_constraints): And here.
2598         (dump_constraint_edge): Remove.
2599         (dump_constraint_graph): Rewrite to produce DOT output.
2600         (solve_constraints): Build succ graph as late as possible.
2601         Dump constraint graphs before and after solving.
2602
2603 2011-04-28  Richard Guenther  <rguenther@suse.de>
2604
2605         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2606         New function split out from ...
2607         (find_func_aliases): ... here.  Call it.
2608         (find_func_aliases_for_call): Likewise.
2609
2610 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2611
2612         * internal-fn.h (internal_fn_name_array): Declare.
2613         (internal_fn_flags_array): Likewise.
2614
2615 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2616
2617         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2618         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2619         Move from sse.md.
2620         (ssemodefsuffix): Remove.
2621         (ssevecmodesuffix): New mode attribute.
2622         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2623         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2624         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2625         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2626         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2627         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2628         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2629         ssemodesuffix mode attribute.
2630         (float splitters): Use ssevecmodesuffix mode attribute.
2631         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2632         (sseinsmode): Rename from avxvecmode.
2633         (avxsizesuffix): Rename from avxmodesuffix.
2634         (sseintvecmode): Rename from avxpermvecmode.
2635         (ssedoublevecmode): Rename from ssedoublesizemode.
2636         (ssehalfvecmode): Rename from avxhalfvecmode.
2637         (ssescalarmode): Rename from avxscalarmode.
2638         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2639         templates for ssemodesuffix mode attribute.
2640         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2641         mode attribute.
2642
2643         Adjust RTX patterns globally for renamed mode attributes.
2644
2645 2011-04-27  Jan Hubcika  <jh@suse.cz>
2646
2647         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2648         * ipa-inline-analysis.c: Include alloc-pool.h.
2649         (edge_predicate_pool): New.
2650         (trye_predicate_p): New function
2651         (false_predicate_p): New function.
2652         (add_clause): Sanity check that false clauses are "optimized";
2653         never add clauses to predicate that is already known to be false.
2654         (and_predicate): Use flase_predicate_p.
2655         (evaulate_predicate): Rename to ...
2656         (evaluate_predicate): ... this one; update all callers; assert
2657         that false is not listed among possible truths.
2658         (dump_predicate): Use true_predicate_p.
2659         (account_size_time): Use false_predicate_p.
2660         (evaulate_conditions_for_edge): Rename to ...
2661         (evaluate_conditions_for_edge) ... this one.
2662         (edge_set_predicate): New function.
2663         (inline_edge_duplication_hook): Duplicate edge predicates.
2664         (inline_edge_removal_hook): Free edge predicates.
2665         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2666         (dump_inline_summary): Update.
2667         (estimate_function_body_sizes): Set edge predicates.
2668         (estimate_calls_size_and_time): Handle predicates.
2669         (estimate_callee_size_and_time): Update.
2670         (remap_predicate): Add toplev_predicate; update comment.
2671         (remap_edge_predicates): New function.
2672         (inline_merge_summary): Compute toplev predicate; update.
2673         (read_predicate): New function.
2674         (read_inline_edge_summary): Use it.
2675         (inline_read_section): Likewise.
2676         (write_predicate): New function.
2677         (write_inline_edge_summary): Use it.
2678         (inline_write_summary): Likewise.
2679         (inline_free_summary): Free alloc pool and edge summary vec.
2680
2681 2011-04-27  Richard Guenther  <rguenther@suse.de>
2682
2683         * tree-ssa-structalias.c (changed_count): Remove.
2684         (changed): Use a bitmap.
2685         (unify_nodes): Adjust.
2686         (do_sd_constraint): Likewise.
2687         (do_ds_constraint): Likewise.
2688         (do_complex_constraint): Likewise.
2689         (solve_graph): Likewise.
2690
2691 2011-04-27  Jan Hubicka  <jh@suse.cz>
2692
2693         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2694
2695 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2696
2697         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2698         (avx_vperm2f128_*_operand): Ditto.
2699         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2700         Use avx_vpermilp_parallel in insn condition.
2701         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2702         Use avx_vperm2f128_parallel in insn condition.
2703
2704 2011-04-27  Richard Guenther  <rguenther@suse.de>
2705
2706         * Makefile.in (tree-ssa-structalias.o): Remove
2707         gt-tree-ssa-structalias.h dependency.
2708         (GTFILES): Remove tree-ssa-structalias.c.
2709         * tree.c (allocate_decl_uid): New function.
2710         (make_node_stat): Use it.
2711         (copy_node_stat): Likewise.
2712         * tree.h (allocate_decl_uid): Declare.
2713         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2714         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2715         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2716         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2717         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2718         (struct heapvar_map): Likewise.
2719         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2720         heapvar_insert): Likewise.
2721         (make_heapvar_for): Rename to ...
2722         (make_heapvar): ... this.  Simplify.
2723         (fake_var_decl_obstack): New global var.
2724         (build_fake_var_decl): New function.
2725         (make_constraint_from_heapvar): Adjust.
2726         (handle_lhs_call): Likewise.
2727         (create_function_info_for): Likewise.
2728         (intra_create_variable_infos): Likewise.
2729         (init_alias_vars): Allocate fake_var_decl_obstack.
2730         (init_alias_heapvars, delete_alias_heapvars): Remove.
2731         (compute_points_to_sets): Do not call init_alias_heapvars.
2732         (ipa_pta_execute): Likewise.
2733         (delete_points_to_sets): Free fake_var_decl_obstack.
2734
2735 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2736
2737         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2738         (si_from_UTItype, si_to_UTItype): New functions.
2739         (__udivmodti4): Use them to implement type-punning.
2740         * config/spu/multi3.c (union qword_TItype): New data type.
2741         (si_from_TItype, si_to_TItype): New functions.
2742         (__multi3): Use them to implement type-punning.
2743
2744 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2745
2746         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2747
2748 2011-04-27  Jan Hubicka  <jh@suse.cz>
2749
2750         * ipa-prop.c (function_insertion_hook_holder): New holder.
2751         (ipa_add_new_function): New function.
2752         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2753         Register/deregister holder.
2754
2755 2011-04-27  Richard Guenther  <rguenther@suse.de>
2756
2757         PR tree-optimization/48772
2758         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2759
2760 2011-04-27  Richard Guenther  <rguenther@suse.de>
2761
2762         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2763         TARGET_MEM_REF handling.
2764
2765 2011-04-27  Nick Clifton  <nickc@redhat.com>
2766
2767         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2768         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2769         (REG_CLASS_NAMES): Likewise.
2770         (REG_CLASS_CONTENTS): Likewise.
2771         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2772         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2773         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2774         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2775         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2776         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2777         duplicate register classes.
2778         (frv_class_likely_spilled_p): Likewise.
2779         (frv_register_move_cost): Likewise.
2780
2781         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2782         end of the regno_reg_class array.
2783
2784 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2785
2786         PR c/48742
2787         * c-typeck.c (build_binary_op): Don't wrap arguments if
2788         int_operands is true.
2789
2790 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2791
2792         PR target/48767
2793         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2794         targetm.calls.must_pass_in_stack for void type.
2795
2796 2011-04-26  Jan Hubicka  <jh@suse.cz>
2797
2798         * cgraphbuild.c (build_cgraph_edges): Update call
2799         of cgraph_create_edge and cgraph_create_indirect_edge.
2800         * cgraph.c (cgraph_create_edge_including_clones,
2801         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2802         cgraph_update_edges_for_call_stmt_node): Do not take nest
2803         argument; do not initialize call_stmt_size/time.
2804         (dump_cgraph_node): Do not dump nest.
2805         (cgraph_clone_edge): Do not take loop_nest argument;
2806         do not propagate it; do not clone call_stmt_size/time.
2807         (cgraph_clone_node): Likewise.
2808         (cgraph_create_virtual_clone): Update.
2809         * cgraph.h (struct cgraph_edge): Remove
2810         call_stmt_size/call_stmt_time/loop_nest.
2811         (cgraph_create_edge, cgraph_create_indirect_edge,
2812         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2813         prototype.
2814         * tree-emutls.c (gen_emutls_addr): Update.
2815         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2816         loop_nest; handle indirect calls, too.
2817         (clone_inlined_nodes): Do not care about updating inline summaries.
2818         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2819         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2820         stream call_stmt_size/call_stmt_time/loop_nest.
2821         * ipa-inline.c (edge_badness): Update.
2822         (ipa_inline): dump summaries after inlining.
2823         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2824         New.
2825         (inline_edge_summary): New function.
2826         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2827         (inline_edge_removal_hook): Handle edge summaries.
2828         (inline_edge_duplication_hook): New hook.
2829         (inline_summary_alloc): Alloc hooks.
2830         (initialize_growth_caches): Do not register removal hooks.
2831         (free_growth_caches); Do not free removal hook.
2832         (dump_inline_edge_summary): New function.
2833         (dump_inline_summary): Use it.
2834         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2835         (inline_update_callee_summaries): New function.
2836         (inline_merge_summary): Use it.
2837         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2838         (read_inline_edge_summary): New function.
2839         (inline_read_section): Use it.
2840         (write_inline_edge_summary): New function.
2841         (inline_write_summary): Use it.
2842         (inline_free_summary): Free edge new holders.
2843         * tree-inline.c (copy_bb): Update.
2844
2845 2011-04-26  Jason Merrill  <jason@redhat.com>
2846
2847         * tree-eh.c (lower_try_finally_switch): Create the label along with
2848         the CASE_LABEL_EXPR.
2849
2850 2011-04-26  David S. Miller  <davem@davemloft.net>
2851             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2852
2853         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2854         * configure: Regenerate.
2855
2856 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2857
2858         PR target/48258
2859         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2860         reduction.
2861         (VEC_reduc): New code iterator and splitters for vector reduction.
2862         (VEC_reduc_name): Ditto.
2863         (VEC_reduc_rtx): Ditto.
2864         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2865         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2866
2867         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2868         support for extracting SF on VSX.
2869
2870         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2871         generating xscvspdp.
2872         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2873         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2874         double add, minimum, maximum vector reduction.
2875         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2876         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2877         optimize double vector reduction.
2878         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2879
2880 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2881
2882         * config/fr30/fr30.h (inhibit_libc): Don't define.
2883         * config/m32r/m32r-protos.h: Correct comment.
2884         * config/v850/v850.h (GHS_default_section_names,
2885         GHS_current_section_names): Use tree, not union tree_node *.
2886
2887 2011-04-26  Xinliang David Li  <davidxl@google.com>
2888
2889         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2890         * c-family/c-opts.c (c_common_handle_option): Set
2891         warn_maybe_uninitialized.
2892         * opts.c (common_handle_option): Ditto.
2893         * common.opt:  New option.
2894         * tree-ssa.c (warn_uninit): Add one more parameter.
2895         (warn_uninitialized_var): Pass warning code.
2896         * tree-flow.h: Interface change.
2897
2898
2899 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2900
2901         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2902         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2903         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2904
2905 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2906
2907         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2908         * config/mips/mips.opt (mmips-tfile): Remove.
2909
2910         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2911         mips-tdump reference to ...
2912         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2913         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2914         reference by Tru64 UNIX.
2915
2916 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR debug/48768
2919         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2920         is error_mark_node, set value to NULL.
2921
2922         PR tree-optimization/48734
2923         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2924         if return value from maybe_fold_*_comparsions isn't something
2925         the code is prepared to handle.
2926
2927 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2928
2929         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2930         mode check.
2931         (ext_QIreg_nomode_operands): Remove.
2932         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2933         (*andsi_1): Ditto.
2934         (*andhi_1): Ditto.
2935
2936 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2937
2938         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2939
2940 2011-04-26  Richard Guenther  <rguenther@suse.de>
2941
2942         * c-typeck.c (build_unary_op): Do not expand array-refs via
2943         pointer arithmetic.  Only adjust qualifiers for function types.
2944
2945 2011-04-26  Richard Guenther  <rguenther@suse.de>
2946
2947         PR middle-end/48694
2948         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2949         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2950         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2951         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2952
2953 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2954
2955         * doc/extend.texi: Document __underlying_type.
2956
2957 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2958
2959         * config/rs6000/titan.md (automata_option "progress"): Remove.
2960
2961 2011-04-25  Jeff Law  <law@redhat.com>
2962
2963         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2964
2965 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2966
2967         * system.h (ENUM_BITFIELD): Remove.
2968
2969 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2970             Eric Botcazou  <ebotcazou@adacore.com>
2971
2972         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2973         for STORE_FLAG_VALUE==-1 case.
2974
2975 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2976
2977         PR target/43804
2978         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2979         LEGITIMATE_PIC_OPERAND_P.
2980
2981 2011-04-24  Jan Hubicka  <jh@suse.cz>
2982
2983         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2984         WPA hack.
2985         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2986         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2987         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2988         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2989         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2990         Sanity check predicate length.
2991         (remap_predicate): Likewise; sanity check jump functions.
2992         (inline_read_section, inline_write_summary): Sanity check
2993         predicate length.
2994
2995 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2996
2997         PR other/48748
2998         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2999         __is_literal_type, and __is_trivial; update throughout about
3000         possibly cv-qualified void types.
3001
3002 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3003
3004         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3005         testsuite and make it version agnostic.
3006
3007 2011-04-22  Jan Hubicka  <jh@suse.cz>
3008
3009         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3010
3011 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3012
3013         PR c/48685
3014         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3015         to VOID_TYPE even around MODIFY_EXPR.
3016
3017 2011-04-22  Mike Stump  <mikestump@comcast.net>
3018
3019         * gensupport.c (read_md_rtx): Fix typo in comment.
3020         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3021         comment.
3022
3023 2011-04-22  Jan Hubicka  <jh@suse.cz>
3024
3025         * gengtype.c (open_base_files): Add ipa-inline.h include.
3026         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3027         ipa-prop.c; update all uses.
3028         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3029         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3030         merge summary of inlined function into former caller.
3031         * ipa-inline.c (max_benefit): Remove.
3032         (edge_badness): Compensate for removal of benefits.
3033         (update_caller_keys): Use
3034         reset_node_growth_cache/reset_edge_growth_cache.
3035         (update_callee_keys): Likewise.
3036         (update_all_callee_keys): Likewise.
3037         (inline_small_functions): Do not collect max_benefit; do not reset
3038         estimated_growth; call free_growth_caches and initialize_growth_caches.
3039         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3040         struct size_time_entry): New structures.
3041         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3042         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3043         and estimated_growth.
3044         (edge_growth_cache_entry): New structure.
3045         (node_growth_cache, edge_growth_cache): New global vars.
3046         (estimate_growth): Turn into inline.
3047         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3048         initialize_growth_caches, free_growth_caches): Declare.
3049         (estimate_edge_growth): Rewrite.
3050         (estimate_edge_time): Implement as inline cache lookup.
3051         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3052         functions.
3053         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3054         (NUM_CONDITIONS): New constant.
3055         (predicate_conditions): New enum.
3056         (IS_NOT_CONSTANT): New constant.
3057         (edge_removal_hook_holder): New var.
3058         (node_growth_cache, edge_growth_cache): New global vars.
3059         (true_predicate, single_cond_predicate, false_predicate,
3060         not_inlined_predicate, add_condition, add_clause, and_predicates,
3061         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3062         dump_clause, dump_predicate, account_size_time,
3063         evaulate_conditions_for_edge): New functions.
3064         (inline_summary_alloc): Move to heap.
3065         (inline_node_removal_hook): Clear condition and entry vectors.
3066         (inline_edge_removal_hook): New function.
3067         (initialize_growth_caches, free_growth_caches): New function.
3068         (dump_inline_summary): Update.
3069         (edge_execution_predicate): New function.
3070         (will_be_nonconstant_predicate): New function.
3071         (estimate_function_body_sizes): Compute BB and constantness predicates.
3072         (compute_inline_parameters): Do not clear estimated_growth.
3073         (estimate_edge_size_and_time): New function.
3074         (estimate_calls_size_and_time): New function.
3075         (estimate_callee_size_and_time): New function.
3076         (remap_predicate): New function.
3077         (inline_merge_summary): New function.
3078         (do_estimate_edge_time): New function based on...
3079         (estimate_edge_time): ... this one.
3080         (do_estimate_edge_growth): New function.
3081         (do_estimate_growth): New function based on....
3082         (estimate_growth): ... this one.
3083         (inline_analyze_function): Analyze after deciding on jump functions.
3084         (inline_read_section): New function.
3085         (inline_read_summary): Use it.
3086         (inline_write_summary): Write all the new data.
3087         * ipa-prop.c (ipa_get_param_decl_index): Export.
3088         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3089         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3090         Declare.
3091         (ipa_get_lattice): Move here from ipa-cp.c
3092         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3093         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3094         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3095         cgraph_edge_inlinable_p): Remove.
3096         * cgraphunit.c: Include ipainline.h
3097         (cgraph_process_new_functions): Update call of
3098         compute_inline_parameters.
3099
3100 2011-04-22  Richard Guenther  <rguenther@suse.de>
3101
3102         * tree.c (build_int_cst): Properly create canonicalized integer
3103         constants.
3104         (build_int_cst_type): Remove scary comments.
3105
3106 2011-04-22  Xinliang David Li  <davidxl@google.com>
3107
3108         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3109         by default when -Wno-error is not specified.
3110         * opts-global.c (decode_options): Remove call to
3111         control_warning_options.
3112
3113 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3114
3115         PR tree-optimization/48717
3116         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3117         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3118
3119 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3120
3121         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3122         definition where used.
3123
3124 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3125
3126         PR c/48716
3127         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3128         TREE_STATIC variables declared inside of some OpenMP construct.
3129
3130 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3131
3132         PR middle-end/48585
3133         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3134
3135 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3136
3137         PR c/36750
3138         * c-typeck.c (pop_init_level): Do not warn about initializing
3139         with ` = {0}'.
3140
3141 2011-04-22  Alan Modra  <amodra@gmail.com>
3142
3143         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3144         when returning call_cookie.
3145         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3146         pointers, to functions with no more vector args than the current
3147         function, and some non-local calls for ABI_V4.
3148         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3149         sibcall_nonlocal_aix64): Combine to ..
3150         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3151         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3152         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3153         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3154         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3155         operand.
3156         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3157         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3158         sibcall_value_symbolic_64): Delete.
3159
3160 2011-04-21  Xinliang David Li  <davidxl@google.com>
3161
3162         * cgraph.h: Remove pid.
3163         * cgraph.c: Remove pid.
3164         * value-prof.c (init_node_map): New function.
3165         (del_node_map): New function.
3166         (find_func_by_funcdef_no): New function.
3167         (gimple_ic_transform): Call new function.
3168         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3169         * function.c (get_last_funcdef_no): New function.
3170         * function.h (get_last_funcdef_no): New function.
3171         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3172         to libgcov function.
3173         (tree-profiling): Call node map init and delete function.
3174
3175 2011-04-21  Ian Lance Taylor  <iant@google.com>
3176
3177         * godump.c (go_format_type): Use exported Go name for anonymous
3178         field name.
3179
3180 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3181
3182         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3183         Call builtin_function_type_list instead of builtin_function_type.
3184         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3185
3186 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3187
3188         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3189         build_function_type_list instead of build_function_type.
3190         Delete variable `endlink'.
3191
3192 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3193
3194         * config/s390/s390.c (s390_init_builtins): Call
3195         build_function_type_list instead of build_function_type.
3196
3197 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3198
3199         * config/ia64/ia64.c (ia64_init_builtins): Call
3200         build_function_type_list instead of builtin_function_type.
3201
3202 2011-04-21  Easwaran Raman  <eraman@google.com>
3203
3204         * cfgexpand.c (stack_var): Remove OFFSET...
3205         (add_stack_var): ...and its reference here...
3206         (expand_stack_vars): ...and here.
3207         (stack_var_cmp): Sort by descending order of size.
3208         (partition_stack_vars): Change heuristic.
3209         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3210         (dump_stack_var_partition): Add newline after each partition.
3211
3212 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3213             Jeff Law  <law@redhat.com>
3214
3215         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3216         * gengtype.c (matching_file_name_substitute): Likewise.
3217
3218 2011-04-21  Richard Guenther  <rguenther@suse.de>
3219
3220         PR lto/48703
3221         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3222
3223 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3224
3225         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3226
3227 2011-04-21  Richard Guenther  <rguenther@suse.de>
3228
3229         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3230         file name.
3231
3232 2011-04-21  Richard Guenther  <rguenther@suse.de>
3233
3234         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3235         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3236         Use DECL_P, not SSA_VAR_P.
3237         (ptr_derefs_may_alias_p): Likewise.
3238         (ptr_deref_may_alias_ref_p_1): Likewise.
3239         (decl_refs_may_alias_p): Likewise.
3240         (refs_may_alias_p_1): Likewise.
3241         (ref_maybe_used_by_call_p_1): Likewise.
3242         (call_may_clobber_ref_p_1): Likewise.
3243         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3244         are either MEM_REF or TARGET_MEM_REF.
3245         (indirect_refs_may_alias_p): Likewise.
3246         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3247         for MEM_EXPR of indirect calls.
3248
3249 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3250
3251         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3252         (dst_file_info_struct): Remove flen field.
3253         (lookup_filename): Remove code that set flen field.
3254
3255 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3256
3257         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3258
3259 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3260
3261         PR target/48708
3262         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3263         vec_extract and vec_concat for non-SSE4_1 targets.
3264
3265 2011-04-21  Richard Guenther  <rguenther@suse.de>
3266
3267         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3268         return statements.
3269
3270 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3271
3272         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3273         undefine.
3274         (FILE): Don't undefine.
3275
3276 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3277
3278         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3279         struct rtx_def *.
3280         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3281         struct rtx_def *.
3282         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3283         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3284         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3285         rtx_def *.
3286         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3287         definitions where used.
3288         * config/microblaze/microblaze.h (struct microblaze_args): Use
3289         rtx, not struct rtx_def *.
3290         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3291         rtx_def *.
3292         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3293         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3294         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3295         not struct rtx_def *.
3296         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3297         struct rtx_def *.
3298         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3299         rtx_def *.
3300         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3301
3302 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3303
3304         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3305         operand_equal_p to compare DR_BASE_ADDRESSes.
3306         (vect_check_interleaving): Likewise.
3307
3308 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3309
3310         PR target/46329
3311         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3312         for all Neon struct constants.
3313
3314 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3315
3316         * target.def (legitimate_constant_p): New hook.
3317         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3318         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3319         * doc/tm.texi: Regenerate.
3320         * hooks.h (hook_bool_mode_rtx_true): Declare.
3321         * hooks.c (hook_bool_mode_rtx_true): Define.
3322         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3323         * calls.c (precompute_register_parameters): Replace uses of
3324         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3325         (emit_library_call_value_1): Likewise.
3326         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3327         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3328         * ira-costs.c (scan_one_insn): Likewise.
3329         * recog.c (general_operand, immediate_operand): Likewise.
3330         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3331         * reload1.c (init_eliminable_invariants): Likewise.
3332
3333         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3334         mode argument.
3335         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3336         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3337         argument.
3338         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3339         * config/alpha/predicates.md (input_operand): Update call to
3340         alpha_legitimate_constant_p.
3341
3342         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3343         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3344         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3345         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3346         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3347         (arm_legitimate_constant_p): New functions.
3348         (arm_cannot_force_const_mem): Make static.
3349
3350         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3351
3352         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3353         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3354         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3355         instead of bfin_legitimate_constant_p.
3356         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3357         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3358
3359         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3360
3361         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3362
3363         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3364         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3365         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3366         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3367
3368         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3369         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3370         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3371
3372         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3373         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3374         * config/i386/i386.c (legitimate_constant_p): Rename to...
3375         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3376         argument.
3377         (ix86_cannot_force_const_mem): Update accordingly.
3378         (ix86_legitimate_address_p): Likewise.
3379         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3380         * config/i386/i386.md: Update commentary.
3381
3382         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3383         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3384         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3385         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3386
3387         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3388
3389         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3390         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3391         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3392         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3393
3394         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3395         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3396         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3397
3398         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3399         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3400         (m32r_legitimate_constant_p): New function.
3401
3402         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3403         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3404         LEGITIMATE_CONSTANT_P.
3405         (LEGITIMATE_CONSTANT_P): Delete.
3406         * config/m68k/m68k.c (m68k_expand_prologue): Call
3407         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3408         (m68k_legitimate_constant_p): New function.
3409         * config/m68k/m68k.md: Update comments.
3410
3411         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3412         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3413         (mcore_legitimate_constant_p): New function.
3414
3415         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3416         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3417         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3418         Add a mode argument.
3419         (mep_legitimate_address): Update accordingly.
3420         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3421
3422         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3423         Delete.
3424         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3425         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3426         static.  Check OP's mode for VOIDmode.
3427         (microblaze_legitimate_constant_p): New function.
3428         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3429
3430         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3431         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3432         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3433         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3434         * config/mips/predicates.md: Update comments.
3435
3436         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3437         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3438         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3439         (mmix_legitimate_constant_p): Make static, return a bool, and take
3440         a mode argument.
3441         (mmix_print_operand_address): Update accordingly.
3442
3443         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3444         Delete.
3445         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3446         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3447         static.  Add a mode argument.
3448         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3449
3450         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3451
3452         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3453         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3454         (pa_legitimate_constant_p): New function.
3455
3456         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3457
3458         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3459         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3460         (pdp11_legitimate_constant_p): New function.
3461
3462         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3463         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3464         (rs6000_legitimate_constant_p): New function.
3465
3466         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3467         (rx_legitimate_constant_p): ...this.
3468         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3469         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3470         (rx_legitimate_constant_p): ...this.
3471         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3472         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3473
3474         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3475         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3476         * config/s390/s390.c (legitimate_constant_p): Rename to...
3477         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3478         and add a mode argument.
3479         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3480
3481         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3482
3483         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3484         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3485         (sh_legitimate_constant_p): New function.
3486
3487         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3488         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3489         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3490         (legitimate_constant_p): Rename to...
3491         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3492         argument.
3493         (constant_address_p): Update accordingly.
3494
3495         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3496         argument and return a bool.
3497         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3498         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3499         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3500         (spu_rtx_costs): Update accordingly.
3501         * config/spu/predicates.md (vec_imm_operand): Likewise.
3502
3503         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3504
3505         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3506         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3507         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3508
3509         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3510         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3511         * config/vax/vax.c (legitimate_constant_p): Likewise.
3512
3513         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3514         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3515         (xtensa_legitimate_constant_p): New function.
3516
3517 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3518
3519         * target.def (cannot_force_const_mem): Add a mode argument.
3520         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3521         * doc/tm.texi: Regenerate.
3522         * hooks.h (hook_bool_mode_rtx_false): Declare.
3523         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3524         (hook_bool_mode_const_rtx_true): Likewise.
3525         (hook_bool_mode_rtx_false): New function.
3526         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3527         to be non-VOID.  Update call to cannot_force_const_mem.
3528         (find_reloads): Update accordingly.
3529         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3530         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3531         argument.
3532         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3533         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3534         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3535         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3536         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3537         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3538         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3539         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3540         (m68k_cannot_force_const_mem): ...this new function.
3541         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3542         argument.
3543         (mips_const_insns, mips_legitimize_const_move): Update calls.
3544         (mips_secondary_reload_class): Likewise.
3545         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3546         (pa_cannot_force_const_mem): ...this new function.
3547         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3548         (rs6000_cannot_force_const_mem): ...this new function.
3549         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3550         argument.
3551         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3552         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3553         to...
3554         (xtensa_cannot_force_const_mem): ...this new function.
3555
3556 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3557
3558         * config/mips/mips.c (mips16_build_function_stub): Call
3559         build_function_type_list instead of build_function_type.
3560         (mips16_build_call_stub): Likewise.
3561
3562 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3563
3564         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3565         instead of build_function_type.
3566
3567 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3568
3569         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3570         instead of build_function_type.
3571
3572 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3573
3574         PR target/48678
3575         * config/i386/i386.md (insv): Change operand 0 constraint to
3576         "register_operand".  Change operand 1 and 2 constraint to
3577         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3578         * config/i386/sse.md (sse4_1_pinsrb): Export.
3579         (sse2_pinsrw): Ditto.
3580         (sse4_1_pinsrd): Ditto.
3581         (sse4_1_pinsrq): Ditto.
3582         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3583         * config/i386/i386.c (ix86_expand_pinsr): New.
3584
3585 2011-04-20  Easwaran Raman  <eraman@google.com>
3586
3587         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3588         containing union type only with -fstrict-aliasing.
3589
3590 2011-04-20  Jim Meyering  <meyering@redhat.com>
3591
3592         Remove useless if-before-free tests.
3593         * calls.c (expand_call, save_area): Likewise.
3594         * cfgcleanup.c (try_forward_edges): Likewise.
3595         * collect2.c (collect_execute): Likewise.
3596         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3597         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3598         * coverage.c (coverage_checksum_string): Likewise.
3599         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3600         * cselib.c (cselib_init): Likewise.
3601         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3602         (df_set_clean_cfg): Likewise.
3603         * function.c (free_after_compilation): Likewise.
3604         * gcc.c (do_spec_1, main): Likewise.
3605         * gcov.c (create_file_names): Likewise.
3606         * gensupport.c (identify_predicable_attribute): Likewise.
3607         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3608         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3609         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3610         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3611         * ipa-pure-const.c (local_pure_const): Likewise.
3612         * ipa-reference.c (propagate): Likewise.
3613         * ira-costs.c (free_ira_costs): Likewise.
3614         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3615         * matrix-reorg.c (mat_free): Likewise.
3616         * prefix.c (get_key_value): Likewise.
3617         * profile.c (compute_value_histograms): Likewise.
3618         * reload1.c (free_reg_equiv): Likewise.
3619         * sched-deps.c (free_deps): Likewise.
3620         * sel-sched-ir.c (fence_clear): Likewise.
3621         * sese.c (set_rename, if_region_set_false_region): Likewise.
3622         * tree-data-ref.c (free_rdg): Likewise.
3623         * tree-eh.c (lower_try_finally): Likewise.
3624         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3625         * tree-ssa-live.c (delete_var_map): Likewise.
3626         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3627         * tree-ssa-pre.c (phi_trans_add): Likewise.
3628
3629 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3630
3631         PR tree-optimization/48611
3632         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3633         beyond ERT_MUST_NOT_THROW region.
3634
3635 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3636
3637         * config/mips/mips.opt (mfix-24k): New.
3638         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3639         * config/mips/mips.md (length): Increase by 4 for stores if
3640         fixing 24K errata.
3641         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3642         all noreorder if fixing 24K errata.
3643         * doc/invoke.texi: Document mfix-24k.
3644
3645 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3646
3647         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3648         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3649
3650 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3651
3652         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3653         (const_ok_for_op): ... to here.
3654
3655 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3656
3657         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3658         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3659
3660 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3661
3662         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3663
3664 2011-04-20  Richard Guenther  <rguenther@suse.de>
3665
3666         PR tree-optimization/47892
3667         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3668         are if-convertible.
3669
3670 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3671
3672         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3673
3674 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3675
3676         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3677
3678 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3679
3680         PR target/18145
3681
3682         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3683         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3684         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3685         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3686         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3687
3688         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3689         New prototype.
3690
3691         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3692         (avr_asm_named_section, avr_asm_output_aligned_common,
3693         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3694         New functions to update...
3695         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3696         (avr_asm_init_sections): Overwrite section callbacks for
3697         data_section, bss_section.
3698         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3699         from here to...
3700         (avr_file_end): ...here.
3701
3702 2011-04-20  Richard Guenther  <rguenther@suse.de>
3703
3704         PR middle-end/48695
3705         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3706         objects and types here.  Adjust for their offset before comparing.
3707
3708 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3709
3710         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3711         statement per copy.
3712
3713 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3714
3715         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3716         (GIMPLE_H): Include $(INTERNAL_FN_H).
3717         (OBJS-common): Add internal-fn.o.
3718         (internal-fn.o): New rule.
3719         * internal-fn.def: New file.
3720         * internal-fn.h: Likewise.
3721         * internal-fn.c: Likewise.
3722         * gimple.h: Include internal-fn.h.
3723         (GF_CALL_INTERNAL): New gf_mask.
3724         (gimple_statement_call): Put fntype into a union with a new
3725         internal_fn field.
3726         (gimple_build_call_internal): Declare.
3727         (gimple_build_call_internal_vec): Likewise.
3728         (gimple_call_same_target_p): Likewise.
3729         (gimple_call_internal_p): New function.
3730         (gimple_call_internal_fn): Likewise.
3731         (gimple_call_fntype): Return null for internal calls.
3732         (gimple_call_set_fntype): Assert that the function is not internal.
3733         (gimple_call_set_fn): Likewise.
3734         (gimple_call_set_fndecl): Likewise.
3735         (gimple_call_set_internal_fn): New function.
3736         (gimple_call_addr_fndecl): Handle null functions.
3737         (gimple_call_return_type): Likewise null types.
3738         * gimple.c (gimple_build_call_internal_1): New function.
3739         (gimple_build_call_internal): Likewise.
3740         (gimple_build_call_internal_vec): Likewise.
3741         (gimple_call_same_target_p): Likewise.
3742         (gimple_call_flags): Handle calls to internal functions.
3743         (gimple_call_fnspec): New function.
3744         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3745         (gimple_has_side_effects): Handle null functions.
3746         (gimple_rhs_has_side_effects): Likewise.
3747         (gimple_call_copy_skip_args): Handle calls to internal functions.
3748         * cfgexpand.c (expand_call_stmt): Likewise.
3749         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3750         * gimple-fold.c (gimple_fold_call): Handle null functions.
3751         (gimple_fold_stmt_to_constant_1): Don't fold
3752         calls to internal functions.
3753         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3754         functions.
3755         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3756         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3757         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3758         (do_warn_unused_result): Likewise.
3759         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3760         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3761         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3762         the target of a call.
3763         (initialize_hash_element): Update accordingly.
3764         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3765         (iterative_hash_hashable_expr): Handle calls to internal functions.
3766         (print_expr_hash_elt): Likewise.
3767         * tree-ssa-pre.c (can_value_number_call): Likewise.
3768         (eliminate): Handle null functions.
3769         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3770         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3771         (find_func_aliases): Likewise.
3772         * value-prof.c (gimple_ic_transform): Likewise.
3773         (gimple_indirect_call_to_profile): Likewise.
3774         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3775         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3776
3777 2011-04-19  Jan Hubicka  <jh@suse.cz>
3778
3779         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3780         * ipa-inline.c (inline_small_functions): Compute summaries first,
3781         populate heap later.
3782
3783 2011-04-19  Jan Hubicka  <jh@suse.cz>
3784
3785         * cgraph.h (save_inline_function_body): Remove.
3786         * ipa-inline-transform.c: New file, broke out of...
3787         * ipa-inline.c: ... this one; Update toplevel comment.
3788         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3789         make global.
3790         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3791         (cgraph_mark_inline_edge): Rename to inline_call; move to
3792         ipa-inline-transform.c.
3793         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3794         move to ipa-inline-transform.c
3795         (recursive_inlining, inline_small_functions, flatten_function,
3796         ipa_inline, inline_always_inline_functions,
3797         early_inline_small_functions): Update.
3798         (inline_transform): Move to ipa-inline-transform.c.
3799         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3800         Declare.
3801         * Makefile.in (ipa-inline-transform.o): New file.
3802         * cgraphunit.c (save_inline_function_body): Move to
3803         ipa-inline-transform.c
3804
3805 2011-04-19  DJ Delorie  <dj@redhat.com>
3806
3807         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3808         registers if we already know there aren't any.
3809         (m32c_emit_epilogue): Don't emit a barrier here.
3810         (m32c_emit_eh_epilogue): Likewise.
3811         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3812         operands at expand time.
3813         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3814         int" wchar type.
3815         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3816         duplicates.  Provide aliases instead.
3817         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3818         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3819         the compiler.
3820
3821 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3822
3823         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3824         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3825         (general_or_i64_p, sparc_register_move_cost): New function.
3826
3827 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3828
3829         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3830         Add lynx, mipssde.  Sort table.
3831
3832 2011-04-19  Xinliang David Li  <davidxl@google.com>
3833
3834         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3835         not negative.
3836
3837 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3838
3839         PR target/48678
3840         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3841         is a SUBREG with non-MODE_INT mode inside of it.
3842
3843 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3844
3845         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3846         also according to actual contants.
3847         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3848         (gimple_fold_call): Use it.
3849         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3850
3851 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3852
3853         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3854         non-pointer assignments.
3855
3856 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3857
3858         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3859         account anc_offset and otr_type from the indirect edge info.
3860         * ipa-prop.c (get_ancestor_addr_info): New function.
3861         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3862         get_ancestor_addr_info, call it.
3863         (ipa_note_param_call): Do not initialize information about polymorphic
3864         calls, return the indirect call graph edge.  Remove the last
3865         parameter, adjust all callers.
3866         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3867         parameters.  Initialize polymorphic information in the indirect edge.
3868
3869 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3870
3871         PR lto/48148
3872         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3873         the types if they have different enumeration identifiers.
3874
3875 2011-04-19  Jan Hubicka  <jh@suse.cz>
3876
3877         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3878         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3879         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3880         (optimize_function_for_size_p) ... here.
3881
3882 2011-04-19  Richard Guenther  <rguenther@suse.de>
3883
3884         PR lto/48207
3885         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3886         langhook.
3887
3888 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3889
3890         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3891         if DECL_NO_INLINE_WARNING_P is set on the function.
3892
3893 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3894
3895         PR fortran/47976
3896         * reload1.c (inc_for_reload): Return void. All callers changed.
3897         (emit_input_reload_insns): Don't try to delete previous output
3898         reloads to a register, or record spill_reg_store for autoincs.
3899
3900 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3901
3902         * gengtype.h: Updated copyright year.
3903         (struct input_file_st): Add inpisplugin field.
3904         (type_fileloc): New function.
3905         * gengtype.c
3906         (write_typed_struct_alloc_def): Add gcc_assert.
3907         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3908         (write_typed_alloc_defns): Don't output for plugin files.
3909         (input_file_by_name): Clear inpisplugin field.
3910         (main): Set inpisplugin field for plugin files.
3911
3912 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3913
3914         * gengtype-state.c (string_eq): New.
3915         (read_state): Use string_eq instead of strcmp when creating the
3916         state_ident_tab.
3917
3918 2011-04-19  Wei Guozhi  <carrot@google.com>
3919
3920         PR target/47855
3921         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3922         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3923         linkage.
3924         * config/arm/constraints.md (Uu): New constraint.
3925         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3926
3927 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3928
3929         * config.gcc (-*-*-*vms): Added.
3930         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3931         definitions moved.
3932         * config/vms/vms-ld.c: New file.
3933         * config/vms/vms-ar.c: New file.
3934         * config/vms/t-vmsnative: New file.
3935
3936 2011-04-18  Xinliang David Li  <davidxl@google.com>
3937
3938         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3939
3940 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3941
3942         PR middle-end/48661
3943         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3944         if TREE_TYPE (v) is non-NULL.
3945
3946         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3947         gimple_get_virt_mehtod_for_binfo.
3948         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3949         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3950         callers.
3951         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3952
3953 2011-04-18  Michael Matz  <matz@suse.de>
3954             Steve Ellcey  <sje@cup.hp.com>
3955
3956         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3957         use its mode as source mode if it isn't VOIDmode.
3958
3959 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3960
3961         * doc/passes.texi: Fill crossref nodes.
3962
3963 2011-04-18  Jim Meyering  <meyering@redhat.com>
3964
3965         Fix doubled-word typos in comments and strings
3966         * config/alpha/vms-unwind.h: s/for for/for/
3967         * config/arm/unwind-arm.h: Likewise.
3968         * config/microblaze/microblaze.c: Likewise.
3969         * config/sh/constraints.md: s/in in/in/
3970         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3971
3972 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3973
3974         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3975         (AVX_FLOAT_MODE_P): Ditto.
3976         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3977         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3978         (AVX_VEC_FLOAT_MODE_P): Ditto.
3979         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3980         (UNSPEC_MASKSTORE): Ditto.
3981         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3982         Merge from <sse>_movmsk<ssemodesuffix> and
3983         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3984         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3985         iterator.
3986         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3987         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3988         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3989
3990 2011-04-18  Jan Hubicka  <jh@suse.cz>
3991
3992         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3993
3994         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3995         (want_inline_function_called_once_p): Break out the logic from
3996         ipa_inline.
3997         (edge_badness): Ensure that profile is not misupdated.
3998         (lookup_recursive_calls): Prioritize by call frequencies.
3999         (inline_small_functions): Move program size estimates here;
4000         actually process whole queue even when unit growth has been
4001         met. (to properly compute inline_failed reasons and for the
4002         case unit size decrease.) Revisit comments on recursive inlining.
4003         (ipa_inline): Remove unit summary code; first inline hot calls
4004         of functions called once, cold calls next.
4005         (order, nnodes): Remove unused variables.
4006         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4007         (GTFILES): Remove ipa-inline.c
4008         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4009
4010 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4011
4012         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4013
4014 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4015             Richard Earnshaw  <rearnsha@arm.com>
4016
4017         * arm.c (neon_builtin_type_bits): Remove.
4018         (typedef enum neon_builtin_mode): New.
4019         (T_MAX): Don't define.
4020         (typedef enum neon_builtin_datum): Remove bits, codes[],
4021         num_vars and base_fcode.  Add mode, code and fcode.
4022         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4023         VAR10): Change accordingly.
4024         (neon_builtin_data[]): Change accordingly
4025         (arm_init_neon_builtins): Change accordingly.
4026         (neon_builtin_compare): Remove.
4027         (locate_neon_builtin_icode): Remove.
4028         (arm_expand_neon_builtin): Change accordingly.
4029
4030         * arm.h (enum arm_builtins): Move to ...
4031         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4032
4033         * arm.c (arm_builtin_decl): Declare.
4034         (TARGET_BUILTIN_DECL): Define.
4035         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4036         (arm_builtin_decls[]): New.
4037         (arm_init_neon_builtins): Store builtin declarations in
4038         arm_builtin_decls[].
4039         (arm_init_tls_builtins): Likewise.
4040         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4041         (arm_builtin_decl): New.
4042
4043 2011-04-18  Richard Guenther  <rguenther@suse.de>
4044
4045         * tree.c (upper_bound_in_type): Build properly canonicalized
4046         INTEGER_CSTs.
4047         (lower_bound_in_type): Likewise.
4048
4049 2011-04-18  Richard Guenther  <rguenther@suse.de>
4050
4051         * gimple.h (gimple_call_addr_fndecl): New function.
4052         (gimple_call_fndecl): Use it.
4053         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4054         for direct calls.
4055         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4056         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4057
4058 2011-04-18  Richard Guenther  <rguenther@suse.de>
4059
4060         PR middle-end/48650
4061         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4062
4063 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4064
4065         PR lto/48492
4066         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4067         DECL_IN_CONSTANT_POOL without RTL.
4068
4069 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4070             Ira Rosen  <ira.rosen@linaro.org>
4071
4072         PR target/48252
4073         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4074         to match neon_vzip/vuzp/vtrn_internal.
4075         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4076         outputs explicitly dependent on both inputs.
4077         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4078
4079 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4080
4081         PR tree-optimization/48616
4082         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4083         whether the shift is by scalar or vector based on whether all SLP
4084         scalar stmts have the same rhs.
4085
4086 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4087
4088         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4089         memory operands.
4090
4091 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4092
4093         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4094         registers.
4095
4096 2011-04-17  Jan Hubicka  <jh@suse.cz>
4097
4098         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4099         * cgrpahunit.c (cgraph_finalize_function): Do not set
4100         finalized_by_frontend.
4101         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4102         finalized_by_frontend.
4103
4104 2011-04-17  Jan Hubicka  <jh@suse.cz>
4105
4106         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4107         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4108         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4109         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4110         method.
4111         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4112         gimple-fold.c
4113         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4114
4115 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4116
4117         PR lto/48538
4118         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4119         is non-null before accessing it.
4120         (input_cgraph): Remove trailing spaces.
4121
4122 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4123
4124         * params.def (sms-min-sc): New param flag.
4125         * modulo-sched.c (sms_schedule): Use it.
4126         * doc/invoke.texi (sms-min-sc): Document it.
4127
4128 2011-04-17  Jan Hubicka  <jh@suse.cz>
4129
4130         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4131         present, also set gimple_call_set_cannot_inline.
4132         * ipa-inline.c: Update toplevel comment.
4133         (MAX_TIME): Remove.
4134         (cgraph_clone_inlined_nodes): Fix linebreaks.
4135         (cgraph_check_inline_limits): Restructure to ...
4136         (caller_growth_limits): ... this one; be more tolerant
4137         on growth in nested inline chains; add explanatory comment;
4138         fix stack accounting thinko introduced by previous patch.
4139         (cgraph_default_inline_p): Remove.
4140         (report_inline_failed_reason): New function.
4141         (can_inline_edge_p): New function.
4142         (can_early_inline_edge_p): New function.
4143         (leaf_node_p): Move upwards in file.
4144         (want_early_inline_function_p): New function.
4145         (want_inline_small_function_p): New function.
4146         (want_inline_self_recursive_call_p): New function.
4147         (cgraph_edge_badness): Rename to ...
4148         (edge_badness) ... this one; fix linebreaks.
4149         (update_edge_key): Update call of edge_baddness; add
4150         detailed dump about queue updates.
4151         (update_caller_keys): Use can_inline_edge_p and
4152         want_inline_small_function_p.
4153         (cgraph_decide_recursive_inlining): Rename to...
4154         (recursive_inlining): Use can_inline_edge_p and
4155         want_inline_self_recursive_call_p; simplify and remove no longer
4156         valid FIXME.
4157         (cgraph_set_inline_failed): Remove.
4158         (add_new_edges_to_heap): Use can_inline_edge_p and
4159         want_inline_small_function_p.
4160         (cgraph_decide_inlining_of_small_functions): Rename to ...
4161         (inline_small_functions): ... this one; cleanup; use
4162         can/want predicates; cleanup debug ouput; work edges till fibheap
4163         is exhausted and do not stop once unit growth is reached; remove
4164         later loop processing remaining edges.
4165         (cgraph_flatten): Rename to ...
4166         (flatten_function): ... this one; use can_inline_edge_p
4167         and can_early_inline_edge_p predicates.
4168         (cgraph_decide_inlining): Rename to ...
4169         (ipa_inline): ... this one; remove unreachable nodes before
4170         inlining functions called once; simplify the pass.
4171         (cgraph_perform_always_inlining): Rename to ...
4172         (inline_always_inline_functions): ... this one; use
4173         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4174         (cgraph_decide_inlining_incrementally): Rename to ...
4175         (early_inline_small_functions): ... this one; simplify
4176         using new predicates; cleanup; make dumps prettier.
4177         (cgraph_early_inlining): Rename to ...
4178         (early_inliner): newer inline regular functions into always-inlines;
4179         fix updating of call stmt summaries.
4180         (pass_early_inline): Update for new names.
4181         (inline_transform): Fix formating.
4182         (gate_cgraph_decide_inlining): Rename to ...
4183         (pass_ipa_inline): ... this one.
4184         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4185         * ipa-inline-analysis.c (dump_inline_summary): Update.
4186         (compute_inline_parameters): Do not compute disregard_inline_limits;
4187         look for mismatching arguments.
4188         (estimate_growth): Fix handlig of non-trivial self recursion.
4189         (inline_read_summary): Do not read info->disregard_inline_limits.
4190         (inline_write_summary): Do not write info->disregard_inline_limits.
4191         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4192         and move all checks into can_inline_edge_p predicate; re-enable code
4193         comparing optimization levels.
4194         (expand_call_inline): Do not test inline_forbidden_into_p.
4195         * Makefile.in (ipa-inline.o): Update arguments.
4196
4197 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4198
4199         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4200
4201 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4202
4203         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4204
4205 2011-04-17  Michael Matz  <matz@suse.de>
4206
4207         PR tree-optimization/48622
4208         PR lto/48645
4209         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4210         in same order as they're written.
4211
4212 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4213
4214         * config/pa/predicates.md: Reorganize and simplify predicates.
4215         Eliminate duplicate code checks.
4216         (arith_operand): Rename to arith14_operand
4217         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4218         * config/pa/pa.md: Use renamed operands.
4219         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4220         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4221         arith11_operand, adddi3_operand, indexed_memory_operand,
4222         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4223         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4224         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4225         move_dest_operand, move_src_operand, prefetch_cc_operand,
4226         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4227         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4228         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4229         div_operand, int5_operand, movb_comparison_operator,
4230         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4231         arith_double_operand, ireg_operand, lhs_lshift_operand,
4232         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4233         integer_store_memory_operand): Likewise.
4234         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4235         (integer_store_memory_operand, read_only_operand,
4236         function_label_operand, borx_reg_operand,
4237         non_hard_reg_operand): Likewise.
4238         (eq_neq_comparison_operator): Delete unused operator.
4239         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4240         function_label_operand.
4241         (emit_move_sequence): Likewise.
4242
4243 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4244
4245         * config/i386/sse.md (sseunpackmode): New mode attribute.
4246         (ssepackmode): Ditto.
4247         (vec_pack_trunc_<mode>): Macroize expander from
4248         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4249         (vec_unpacks_lo_<mode>): Macroize expander from
4250         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4251         (vec_unpacks_hi_<mode>): Macroize expander from
4252         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4253         (vec_unpacku_lo_<mode>): Macroize expander from
4254         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4255         (vec_unpacku_hi_<mode>): Macroize expander from
4256         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4257         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4258         ix86_expand_sse4_unpack.
4259         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4260
4261 2011-04-16  Jan Hubicka  <jh@suse.cz>
4262
4263         * cgraphbuild.c: Include ipa-inline.h.
4264         (reset_inline_failed): Use initialize_inline_failed.
4265         * cgraph.c: Include ipa-inline.h.
4266         (cgraph_create_node_1): Do not initialize estimated_growth.
4267         (initialize_inline_failed): More to ipa-inline-analysis.c
4268         (dump_cgraph_node): Do not dump inline flags.
4269         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4270         and disregard_inline_limits flags.
4271         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4272         time, size, estimated_growth.
4273         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4274         Update.
4275         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4276         DECL_DISREGARD_INLINE_LIMITS.
4277         (cgraph_analyze_function): Do not initialize
4278         node->local.disregard_inline_limits.
4279         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4280         inlinable, versionable and disregard_inline_limits.
4281         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4282         cgraph_check_inline_limits, cgraph_default_inline_p,
4283         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4284         add_new_edges_to_heap): Update.
4285         (cgraph_decide_inlining_of_small_function): Update; set
4286         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4287         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4288         cgraph_decide_inlining_incrementally): Update.
4289         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4290         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4291         time, size and estimated_growth parameters.
4292         (estimate_edge_growth): Update.
4293         (initialize_inline_failed): Declare.
4294         * ipa-split.c: Include ipa-inline.h
4295         (execute_split_functions): Update.
4296         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4297         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4298         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4299         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4300         estimated_growth to INT_MIN.
4301         (inline_node_duplication_hook): Likewise.
4302         (dump_inline_summary): Dump new fields.
4303         (compute_inline_parameters): Update.
4304         (estimate_edge_time, estimate_time_after_inlining,
4305         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4306         inline_write_summary):
4307         (initialize_inline_failed): Move here from cgraph.c.
4308         * tree-sra.c: Include ipa-inline.h.
4309         (ipa_sra_preliminary_function_checks): Update.
4310         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4311         ipa-inline.h.
4312
4313 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4314
4315         * config/i386/sse.md (V16): New mode iterator.
4316         (VI1, VI8): Ditto.
4317         (AVXMODEQI, AVXMODEDI): Remove.
4318         (sse2, sse3): New mode attribute.
4319         (mov<mode>): Use V16 mode iterator.
4320         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4321         (push<mode>1): Use V16 mode iterator.
4322         (movmisalign<mode>): Ditto.
4323         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4324         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4325         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4326         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4327         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4328         avx_movdqu<avxmodesuffix>.
4329         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4330         *avx_movdqu<avxmodesuffix>.
4331         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4332         avx_lddqu<avxmodesuffix>.
4333         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4334         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4335         avx_movnt<AVXMODEDI:mode>.
4336         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4337         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4338
4339 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4340
4341         PR target/48629
4342         * haifa-sched.c (prune_ready_list, schedule_block): Use
4343         sched_pressure_p rather than flag_sched_pressure.
4344
4345 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4346
4347         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4348         cgraph_get_node instead of cgraph_get_create_node.
4349
4350 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4351
4352         * cfgexpand.c (expand_debug_expr): Use
4353         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4354
4355 2011-04-15  Michael Matz  <matz@suse.de>
4356
4357         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4358         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4359         * function.c (gimplify_parameters): Ditto.
4360         * gimplify.c (gimplify_vla_decl): Ditto.
4361
4362         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4363         (gimple_call_set_alloca_for_var): New inline function.
4364         (gimple_call_alloca_for_var_p): Ditto.
4365         * gimple.c (gimple_build_call_from_tree): Remember
4366         CALL_ALLOCA_FOR_VAR_P state.
4367         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4368
4369         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4370         calls if they were for VLA objects.
4371
4372 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4373
4374         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4375         of ADR_EXPRs.
4376
4377 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4378
4379         PR middle-end/48601
4380         * tree-emutls.c (lower_emutls_function_body): Call
4381         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4382         result is non-NULL.
4383
4384 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4385
4386         * c-decl.c (detect_field_duplicates): Call
4387         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4388
4389 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4390
4391         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4392         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4393         * ipa-pure-const.c (check_stmt): Call it.
4394         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4395
4396 2011-04-15  Richard Guenther  <rguenther@suse.de>
4397
4398         PR tree-optimization/48290
4399         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4400         Properly decide inhibiting propagation based on the valueized
4401         operand.  Do loop-closed SSA form preserving here ...
4402         (init_copy_prop): ... not here.
4403
4404 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4405
4406         PR target/48612
4407         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4408         (*ieee_smax<mode>3): Likewise.
4409
4410 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4411
4412         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4413         Replace match_operand with match_dup for the third operand in
4414         these expanders.
4415
4416 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4417
4418         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4419         to track processing of conditionals.  Update all callers.
4420         (try_combine, simplify_if_then_else): Update.
4421
4422 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4423
4424         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4425         -fsched-pressure.
4426
4427 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4428
4429         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4430         instead of match_operand for operand 3.
4431
4432 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4433
4434         * recog.h (insn_operand_data): Add an "allows_mem" field.
4435         * genoutput.c (output_operand_data): Initialize it.
4436         * optabs.c (maybe_legitimize_operand_same_code): New function.
4437         (maybe_legitimize_operand): Use it when matching the original
4438         op->value.
4439
4440 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4441
4442         * gimplify.c: Fix issues in comments throughout.
4443         (voidify_wrapper_expr): Fix long line.
4444         (build_stack_save_restore): Likewise.
4445         (gimplify_loop_expr): Likewise.
4446         (gimplify_compound_lval): Likewise.
4447         (gimplify_init_ctor_eval): Likewise.
4448         (gimplify_modify_expr_rhs): Likewise.
4449         (omp_notice_threadprivate_variable): Likewise.
4450
4451 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4452
4453         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4454         original one if this is not a builtin function.
4455
4456 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4457
4458         PR target/48605
4459         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4460         offset it as needed based on top 2 bits in operands[3], change
4461         MEM mode to SFmode and mask those 2 bits away from operands[3].
4462
4463 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4464
4465         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4466         change from objc_declare_protocols() to objc_declare_protocol().
4467
4468 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4469
4470         * config/i386/sse.md (sse4_1): New mode attribute.
4471         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4472         avx_blend<ssemodesuffix><avxmodesuffix> and
4473         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4474         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4475         avx_blendv<ssemodesuffix><avxmodesuffix> and
4476         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4477         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4478         avx_dp<ssemodesuffix><avxmodesuffix> and
4479         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4480         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4481         (sse4_1_packusdw): Merge with *avx_packusdw.
4482         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4483         (sse4_1_pblendw): Merge with *avx_pblendw.
4484         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4485         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4486         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4487         VF mode iterator.
4488         (sse4_1_round<ssescalarmodesuffix>): Merge with
4489         *avx_round<ssescalarmodesuffix>.
4490         (aesenc): Merge with *avx_aesenc.
4491         (aesenclast): Merge with *avx_aesenclast.
4492         (aesdec): Merge with *avx_aesdec.
4493         (aesdeclast): Merge with *avx_aesdeclast.
4494         (pclmulqdq): Merge with *pclmulqdq.
4495         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4496         New predicate.
4497         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4498
4499 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4500
4501         PR middle-end/48608
4502         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4503         (align_local_variable): This.  Update DECL_ALIGN.
4504         (add_stack_var): Updated.
4505         (expand_one_stack_var): Likewise.
4506
4507 2011-04-14  Richard Guenther  <rguenther@suse.de>
4508
4509         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4510         Remove.
4511         (dse_initialize_block_local_data, dse_leave_block,
4512         record_voperand_set, get_stmt_uid): Likewise.
4513         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4514         (dse_optimize_stmt): Remove voperand set handling code.
4515         Simplify and improve to handle any kind of killing stmt.
4516         (dse_record_phi): Remove.
4517         (dse_enter_block): Simplify.
4518         (tree_ssa_dse): Likewise.
4519         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4520
4521 2011-04-14  Jan Hubicka  <jh@suse.cz>
4522
4523         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4524         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4525         (cgraph_local_info): Remove inline_summary.
4526         * ipa-cp.c: Include ipa-inline.h.
4527         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4528         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4529         accesor.
4530         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4531         (input_overwrite_node): Do not set inline summary.
4532         (input_node): Do not stream inline summary.
4533         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4534         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4535         growth; we do not have inline parameters computed for that anyway.
4536         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4537         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4538         (inline_summary_t): New type and VECtor.
4539         (debug_inline_summary, dump_inline_summaries): Declare.
4540         (inline_summary): Use VOCtor.
4541         (estimate_edge_growth): Kill hack computing call stmt size directly.
4542         * lto-section-in.c (lto_section_name): Add inline section.
4543         * ipa-inline-analysis.c: Include lto-streamer.h
4544         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4545         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4546         (inline_summary_vec): Define.
4547         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4548         dump_inline_summaries): New functions.
4549         (estimate_function_body_sizes): Properly compute size/time of outgoing
4550         calls.
4551         (compute_inline_parameters): Alloc inline_summary; do not compute
4552         size/time of incomming calls.
4553         (estimate_edge_time): Avoid missing time summary hack.
4554         (inline_read_summary): Read inline summary info.
4555         (inline_write_summary): Write inline summary info.
4556         (inline_free_summary): Free all hooks and inline summary vector.
4557         * lto-streamer.h: Add LTO_section_inline_summary section.
4558         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4559         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4560
4561 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4562
4563         * tree-vectorizer.h (vect_strided_store_supported): Add a
4564         HOST_WIDE_INT argument.
4565         (vect_strided_load_supported): Likewise.
4566         (vect_permute_store_chain): Return void.
4567         (vect_transform_strided_load): Likewise.
4568         (vect_permute_load_chain): Delete.
4569         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4570         count argument.  Check that the count is a power of two.
4571         (vect_strided_load_supported): Likewise.
4572         (vect_permute_store_chain): Return void.  Update after above changes.
4573         Assert that the access is supported.
4574         (vect_permute_load_chain): Likewise.
4575         (vect_transform_strided_load): Return void.
4576         * tree-vect-stmts.c (vectorizable_store): Update calls after
4577         above interface changes.
4578         (vectorizable_load): Likewise.
4579         (vect_analyze_stmt): Don't check for strided powers of two here.
4580
4581 2011-04-14  Richard Guenther  <rguenther@suse.de>
4582
4583         PR tree-optimization/48590
4584         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4585         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4586         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4587         BUILT_IN_STACK_SAVE.
4588         * tree-ssa-dce.c (propagate_necessity): Handle
4589         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4590
4591 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4592
4593         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4594         objc_declare_class.
4595
4596 2011-04-14  Richard Guenther  <rguenther@suse.de>
4597
4598         * tree.h (get_object_alignment_1): Declare.
4599         * builtins.c (get_object_alignment_1): Split out worker from ...
4600         (get_object_alignment): ... here.
4601         * fold-const.c (get_pointer_modulus_and_residue): Use
4602         get_object_alignment_1.
4603
4604 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4605
4606         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4607         type parameter.
4608         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4609         parameter.  Generalise code to handle arrays as well as vectors.
4610         (vect_setup_realignment): Update accordingly.
4611         * tree-vect-stmts.c (vectorizable_store): Likewise.
4612         (vectorizable_load): Likewise.
4613
4614 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4615
4616         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4617         within the per-copy loop.
4618
4619 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4620
4621         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4622         in the dump file.
4623
4624 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4625
4626         * doc/options.texi (Negative): Explicitly mention that the
4627         Negative chain must be circular.
4628
4629 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4630
4631         * function.h (block_chainon): Declare.
4632         * function.c (block_chainon): Define.
4633
4634 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4635             Eric Weddington  <eric.weddington@atmel.com>
4636             Georg-Johann Lay  <avr@gjlay.de>
4637
4638         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4639         New Includes
4640         (avr_init_builtins, avr_expand_builtin,
4641         avr_expand_delay_cycles, avr_expand_unop_builtin,
4642         avr_expand_binop_builtin ): New functions.
4643         (avr_builtin_id): New enum
4644         (struct avr_builtin_description): New struct
4645         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4646         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4647
4648         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4649         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4650         UNSPECV_DELAY_CYCLES): new enumeration values
4651         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4652         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4653         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4654         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4655         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4656         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4657         "fmulsu"): New insns
4658
4659         * config/avr/avr-c.c: fix line endings
4660         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4661         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4662         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4663         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4664         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4665
4666         * doc/extend.texi (AVR Built-in Functions): New node
4667         (Target Builtins): Add documentation of AVR
4668         built-in functions.
4669
4670 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4671
4672         PR target/44643
4673         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4674         alone. Error if non-const data has attribute progmem.
4675
4676 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4677
4678         * tree.h (struct tree_constructor): Include tree_typed instead of
4679         tree_common.
4680         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4681         TS_TYPED instead of TS_COMMON.
4682
4683 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4684
4685         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4686         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4687         (sse2_psadbw): Merge with *avx_psadbw.
4688         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4689         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4690         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4691         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4692         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4693         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4694         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4695         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4696         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4697         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4698         (ssse3_palignrti): Merge with *avx_palignrti.
4699
4700 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4701
4702         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4703         * tree-ssanames.c (fini_ssanames): VEC_free it.
4704         (make_ssa_name_fn): Update for VECness of free_ssanames.
4705         (release_ssa_name, release_dead_ssa_names): Likewise.
4706         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4707         tree_common.
4708         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4709         TS_TYPED instead of TS_COMMON.
4710
4711 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4712
4713         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4714         statistics_counter_event.
4715         * tree-ssa-copyrename.c (stats): Define.
4716         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4717         statistics_counter_event.
4718         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4719         (bswap_stats, widen_mul_stats): Define.
4720         (insert_reciprocals): Increment rdivs_inserted.
4721         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4722         rfuncs_inserted.  Add calls to statistics_counter_event.
4723         (execute_cse_sincos_1): Increment inserted.
4724         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4725         statistics_counter_event.
4726         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4727         of bswap_stats.  Add calls to statistics_counter_event.
4728         (convert_mult_to_widen): Increment widen_mults_inserted.
4729         (convert_plusminus_to_widen): Increment maccs_inserted.
4730         (convert_mult_to_fma): Increment fmas_inserted.
4731         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4732         calls to statistics_counter_event.
4733
4734 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4735
4736         PR rtl-optimization/48455
4737         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4738         `temp_costs->mem_cost'.
4739
4740 2011-04-13  Jan Hubicka  <jh@suse.cz>
4741
4742         * ipa-inline.h: New file.
4743         * ipa-inline-analysis.c: New file. Broken out of ...
4744         * ipa-inline.c: ... this file; update toplevel comment;
4745         include ipa-inline.h
4746         (inline_summary): Move to ipa-inline.h
4747         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4748         ipa-inline-analysis.c.
4749         (cgraph_estimate_time_after_inlining): Rename to
4750         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4751         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4752         to estimate_edge_growth.
4753         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4754         rename to estimate_size_after_inlining.
4755         (cgraph_mark_inline_edge): Update for new naming convention.
4756         (cgraph_check_inline_limits): Likewise.
4757         (cgraph_edge_badness): Likewise.
4758         (cgraph_decide_recursive_inlining): Likewise.
4759         (cgraph_decide_inlining_of_small_functions): Likewise.
4760         (cgraph_decide_inlining_incrementally): Likewise.
4761         (cgraph_estimate_growth): Rename to estimate_growth; move to
4762         ipa-inline-analysis.c.
4763         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4764         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4765         (compute_inline_parameters): Likewise.
4766         (compute_inline_parameters_for_current): Likewise.
4767         (pass_inline_parameters): Likewise.
4768         (inline_indirect_intraprocedural_analysis): Likewise.
4769         (analyze_function): Rename to inline_analyze_function; likewise.
4770         (add_new_function): Move to ipa-inline-analysis.c.
4771         (inline_generate_summary): Likewise.
4772         (inline_read_summary): Likewise.
4773         (inline_write_summary): Likewise.
4774         * Makefile.in (ipa-inline-analysis.c): New file.
4775
4776 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4777
4778         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4779         * configure: Regenerate.
4780
4781 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4782
4783         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4784         instead of tree_common.
4785         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4786         Likewise.
4787         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4788         TS_TYPED rather than TS_COMMON.
4789         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4790
4791 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4792
4793         PR target/45263
4794         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4795         r20 around calls of __tablejump_elpm__
4796
4797 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4798
4799         PR middle-end/48591
4800         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4801         NULL.
4802         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4803
4804 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4805
4806         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4807         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4808         (cfi_vec): New typedef.
4809         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4810         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4811         (cie_cfi_vec): New static variable.
4812         (cie_cfi_head): Delete.
4813         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4814         declaration changed. Use vector rather than list operations.
4815         (new_cfi): Don't initialize the dw_cfi_next field.
4816         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4817         rather than list operations.
4818         (lookup_cfa): Use vector rather than list operations.
4819         (output_cfis): New argument upto. Accept a cfi_vec rather than
4820         a dw_cfi_ref list head as argument. All callers changed.
4821         Iterate over the vector using upto as a maximum index.
4822         (output_all_cfis): New static function.
4823         (output_fde): Use vector rather than list operations. Use the
4824         new upto argument for output_cfis rather than manipulating a
4825         list.
4826         (dwarf2out_begin_prologue): Change initializations to match
4827         new struct members.
4828         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4829         from the vector length rather than searching for the end of a list.
4830         Use output_all_cfis.
4831         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4832
4833 2011-04-13  Nick Clifton  <nickc@redhat.com>
4834
4835         * config/rx/rx.md (movmemsi): Do not use this pattern when
4836         volatile pointers are involved.
4837
4838 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4839
4840         * config/i386/sse.md (pinsrbits): Remove.
4841         (sse2_packsswb): Merge with *avx_packsswb.
4842         (sse2_packssdw): Merge with *avx_packssdw.
4843         (sse2_packuswb): Merge with *avx_packuswb.
4844         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4845         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4846         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4847         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4848         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4849         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4850         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4851         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4852         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4853         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4854         (sse2_loadld): Merge with *avx_loadld.
4855         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4856         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4857         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4858         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4859         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4860
4861 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4862
4863         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4864         calling TREE_CHAIN.
4865         * print-tree.c (print_node): Likewise.
4866         * tree-inline.c (copy_tree_r): Likewise.
4867         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4868         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4869         instead of TS_COMMON.
4870         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4871         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4872         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4873         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4874         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4875         ...and these...
4876         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4877         * tree.h: ...here.
4878         (TREE_CHAIN): Check for a TS_COMMON structure.
4879         (TREE_TYPE): Check for a TS_TYPED structure.
4880
4881 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4882
4883         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4884         cgraph_get_create_node instead of cgraph_node.
4885
4886 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4887
4888         * c-parser.c (c_parser_initelt): Updated call to
4889         objc_build_message_expr.
4890         (c_parser_postfix_expression): Likewise.
4891
4892 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4893
4894         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4895         MASK_MS_BITFIELD_LAYOUT bit.
4896
4897 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4898
4899         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4900         assert it is always true.
4901         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4902         moves.
4903
4904 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4905
4906         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4907         compiling Objective-C to be more efficient.
4908
4909 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4910
4911         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4912         argv_copied.
4913
4914 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4915
4916         * recog.h, genoutput.c, optabs.c: Revert last patch.
4917
4918 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4919
4920         PR target/48090
4921         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4922
4923 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4924
4925         * recog.h (insn_operand_data): Add an "allows_mem" field.
4926         * genoutput.c (output_operand_data): Initialize it.
4927         * optabs.c (maybe_legitimize_operand_same_code): New function.
4928         (maybe_legitimize_operand): Use it when matching the original
4929         op->value.
4930
4931 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4932
4933         * genpreds.c (process_define_predicate): Move most processing
4934         to gensupport.c.  Continue to validate the expression.
4935         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4936         (process_define_predicate): Move processing to gensupport.c.
4937         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4938         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4939         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4940         argument.
4941         (valid_predicate_name_p): New function, split out from old
4942         genpreds.c:process_define_predicate.
4943         (process_define_predicate): New function, combining code from
4944         old genpreds.c and genrecog.c functions.
4945         (process_rtx): Call it for DEFINE_PREDICATE and
4946         DEFINE_SPECIAL_PREDICATE.
4947
4948 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4949
4950         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4951         size of a '%A' memory reference.
4952         (T_DREG, T_QREG): New neon_builtin_type_bits.
4953         (arm_init_neon_builtins): Assert that the load and store operands
4954         are neon_struct_operands.
4955         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4956         (NEON_ARG_MEMORY): New builtin_arg.
4957         (neon_dereference_pointer): New function.
4958         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4959         Handle NEON_ARG_MEMORY.
4960         (arm_expand_neon_builtin): Update after above interface changes.
4961         Use NEON_ARG_MEMORY for loads and stores.
4962         * config/arm/predicates.md (neon_struct_operand): New predicate.
4963         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4964         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4965         (V_four_elem): Tweak formatting.
4966         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4967         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4968         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4969         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4970         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4971         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4972         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4973         Use %A in the output template.
4974         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4975         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4976         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4977         the width of the memory access.  Remove post-increment.
4978         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4979
4980 2011-04-12  Nick Clifton  <nickc@redhat.com>
4981
4982         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4983         instruction for interrupt handlers if the target is the basic V850
4984         architecture.
4985         (expand_epilogue): Likewise.
4986
4987 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4988
4989         PR rtl-optimization/48549
4990         * combine.c (propagate_for_debug): Also stop after BB_END of
4991         this_basic_block.  Process LAST and just stop processing after it.
4992         (combine_instructions): If last_combined_insn has been deleted,
4993         set last_combined_insn to its PREV_INSN.
4994
4995 2011-04-12  Richard Guenther  <rguenther@suse.de>
4996
4997         PR tree-optimization/46076
4998         * gimple.h (struct gimple_statement_call): Add fntype field.
4999         (gimple_call_fntype): Adjust.
5000         (gimple_call_set_fntype): New function.
5001         * gimple.c (gimple_build_call_1): Set the call function type.
5002         * gimplify.c (gimplify_call_expr): Preserve the function
5003         type the frontend used for the call.
5004         (gimplify_modify_expr): Likewise.
5005         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5006         function type.
5007         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5008         function type.
5009         * tree-ssa.c (useless_type_conversion_p): Function pointer
5010         conversions are useless.
5011
5012 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5013
5014         * cgraph.h (cgraph_node): Remove function declaration.
5015         (cgraph_create_node): Declare.
5016         (cgraph_get_create_node): Likewise.
5017         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5018         Updated all callers.
5019         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5020         the decl does not already exist.  Call cgraph_get_create_node instead
5021         of cgraph_node.
5022         (cgraph_get_create_node): New function.
5023         (cgraph_same_body_alias): Update comment.
5024         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5025         assert it does not return NULL.
5026         (cgraph_update_edges_for_call_stmt): Likewise.
5027         (cgraph_clone_edge): Likewise.
5028         (cgraph_create_virtual_clone): Likewise.
5029         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5030         instead of cgraph_node.
5031         (cgraph_add_new_function): Call cgraph_create_node or
5032         cgraph_get_create_node instead of cgraph_node.
5033         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5034         instead of cgraph_node.
5035         (record_eh_tables): Likewise.
5036         (mark_address): Likewise.
5037         (mark_load): Likewise.
5038         (build_cgraph_edges): Call cgraph_get_create_node instead
5039         of cgraph_node.
5040         (rebuild_cgraph_edges): Likewise.
5041         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5042         instead of cgraph_node.
5043         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5044         cgraph_node.
5045         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5046         cgraph_create_node instead of cgraph_node.
5047         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5048         of cgraph_node.
5049         * lto-cgraph.c (input_node): Likewise.
5050         * lto-streamer-in.c (input_function): Likewise.
5051         * varasm.c (mark_decl_referenced): Likewise.
5052         (assemble_alias): Likewise.
5053
5054 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5055
5056         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5057         instead of cgraph_node and assert it does not return NULL.
5058         * lto-streamer-in.c (lto_read_body): Likewise.
5059         * omp-low.c (new_omp_context): Likewise.
5060         (create_task_copyfn): Likewise.
5061         * tree-emutls.c (lower_emutls_function_body): Likewise.
5062         * matrix-reorg.c (transform_allocation_sites): Likewise.
5063
5064 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5065
5066         PR c/48552
5067         * c-typeck.c (build_asm_expr): Error out on attempts to use
5068         void type outputs or inputs for constraints that allow reg or
5069         don't allow memory.
5070
5071 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5072             Richard Earnshaw  <rearnsha@arm.com>
5073
5074         PR target/48250
5075         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5076         to use sign-magnitude offsets. Reject unsupported unaligned
5077         cases. Add detailed description in comments.
5078         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5079         condition from TARGET_32BIT to TARGET_ARM.
5080
5081 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5082
5083         * tree.h (struct typed_tree): New.
5084         (struct tree_common): Include it instead of tree_base.
5085         (TREE_TYPE): Update for new location of type field.
5086         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5087         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5088         (union tree_node): Add typed field.
5089         * treestruct.def (TS_TYPED): New.
5090         * lto-streamer.c (check_handled_ts_structures): Handle it.
5091         * tree.c (MARK_TS_TYPED): New macro.
5092         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5093
5094 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5095
5096         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5097         (force_nonfallthru): Do not alter the loop nest if no basic block
5098         was created.
5099
5100 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5101
5102         * config/i386/sse.md (VI): New mode iterator.
5103         (SSEMODEI): Remove.
5104         (AVX256MODEI): Ditto.
5105         (AVXMODEF4P): Ditto.
5106         (avxvecpsmode): Ditto.
5107         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5108         (sse2_andnot<mode>3): New expander.
5109         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5110         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5111         (<any_logic:code><mode>3): Use VI mode iterator.
5112         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5113         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5114         (*andnottf3): Handle AVX three-operand constraints.
5115         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5116
5117 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5118             Robert Millan  <rmh@gnu.org>
5119
5120         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5121         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5122         GNU_USER_DYNAMIC_LINKER64): Define.
5123         (REG_NAME): Don't undefine.
5124         (MD_UNWIND_SUPPORT): Undefine.
5125         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5126         (REG_NAME): Don't undefine.
5127         (MD_UNWIND_SUPPORT): Undefine.
5128         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5129
5130 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5131
5132         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5133         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5134
5135 2011-04-11  Xinliang David Li  <davidxl@google.com>
5136
5137         * value-profile.c (check_ic_target): New function.
5138         (gimple_ic_transform): Sanity check indirect call target.
5139         * gimple-low.c (gimple_check_call_args): Interface change.
5140         (gimple_check_call_matching_types): New function.
5141         * tree-inline.c (tree_can_inline_p): Call new function.
5142
5143 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5144
5145         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5146         tree-pretty-print.h & realmpfr.h.
5147
5148 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5149
5150         PR middle-end/48464
5151         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5152         (setup_allocno_and_important_classes): Ditto.
5153
5154 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5157         GNU_USER_DYNAMIC_LINKER.
5158         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5159         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5160         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5161         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5162         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5163         GNU_USER_TARGET_OS_CPP_BUILTINS.
5164         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5165         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5166         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5167         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5168         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5169         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5170         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5171         GNU_USER_TARGET_OS_CPP_BUILTINS.
5172         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5173         GNU_USER_DYNAMIC_LINKER.
5174         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5175         GNU_USER_TARGET_OS_CPP_BUILTINS.
5176         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5177         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5178         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5179         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5180         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5181         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5182         GNU_USER_DYNAMIC_LINKER64): Remove.
5183         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5184         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5185         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5186         GNU_USER_DYNAMIC_LINKER.
5187         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5188         GNU_USER_TARGET_OS_CPP_BUILTINS.
5189         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5190         GNU_USER_TARGET_OS_CPP_BUILTINS.
5191         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5192         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5193         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5194         GNU_USER_TARGET_OS_CPP_BUILTINS.
5195         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5196         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5197         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5198         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5199         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5200         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5201         GNU_USER_DYNAMIC_LINKER.
5202         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5203         GNU_USER_TARGET_OS_CPP_BUILTINS.
5204         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5205         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5206         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5207         GNU_USER_DYNAMIC_LINKER.
5208         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5209         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5210         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5211         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5212         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5213         GNU_USER_DYNAMIC_LINKER.
5214         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5215         GNU_USER_DYNAMIC_LINKERN32.
5216         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5217         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5218         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5219         GNU_USER_DYNAMIC_LINKER32.
5220         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5221         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5222         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5223         GNU_USER_DYNAMIC_LINKER.
5224         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5225         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5226         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5228         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5229         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5230         GNU_USER_DYNAMIC_LINKER32.
5231         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5232         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5233         GNU_USER_DYNAMIC_LINKER.
5234         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5235         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5236         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5237         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5238         GNU_USER_DYNAMIC_LINKER64.
5239         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5240         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5241         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5242         GNU_USER_DYNAMIC_LINKER.
5243         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5244         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5245         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5246         GNU_USER_DYNAMIC_LINKER.
5247         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5248         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5249         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5250         GNU_USER_DYNAMIC_LINKER32.
5251         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5252         GNU_USER_DYNAMIC_LINKER64.
5253         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5254         GNU_USER_DYNAMIC_LINKER64.
5255         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5256         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5257         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5258         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5259         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5260
5261 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5262
5263         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5264         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5265         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5266         GNU_USER_DYNAMIC_LINKER.
5267         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5268         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5269         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5270         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5271         GNU_USER_DYNAMIC_LINKER64.
5272         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5273         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5274         GNU_USER_LINK_EMULATION.
5275         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5276         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5277         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5278         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5279         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5280         CPP_SPEC, CC1_SPEC): Remove.
5281         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5282         (GNU_USER_DYNAMIC_LINKER): Define.
5283         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5284         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5285         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5286         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5287         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5288         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5289         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5290         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5291         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5292         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5293         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5294         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5295         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5296         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5297         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5298         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5299         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5300         GNU_USER_DYNAMIC_LINKER.
5301         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5302         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5303         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5304         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5305         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5306         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5307         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5308         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5309         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5310         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5311
5312 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5313
5314         PR target/9601
5315         PR target/11772
5316         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5317         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5318         comment.
5319         (ix86_is_msabi_thiscall): Removed.
5320         (ix86_is_type_thiscall): Likewise.
5321         (ix86_get_callcvt): New function.
5322         (ix86_comp_type_attributes): Simplify check.
5323         (ix86_function_regparm): Use ix86_get_callcvt for calling
5324         convention attribute checks.
5325         (ix86_return_pops_args): Likewise.
5326         (ix86_static_chain): Likewise.
5327         (x86_this_parameter): Likewise.
5328         (x86_output_mi_thunk): Likewise.
5329         (ix86_function_type_abi): Optimize check for types without attributes.
5330         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5331         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5332         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5333         by flag-values.
5334         (IX86_BASE_CALLCVT): Helper macro.
5335         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5336         Use ix86_get_callcvt for calling convention attribute checks and avoid
5337         symbol-decoration for stdcall in TARGET_RTD case.
5338         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5339         Likewise.
5340         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5341         for declaration.
5342
5343 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5344
5345         * config/i386/sse.md (VI_128): New mode iterator.
5346         (VI12_128): Rename from SSEMODE12.
5347         (VI14_128): Rename from SSEMODE14.
5348         (VI124_128): New mode iterator.
5349         (VI24_128): Rename from SSEMODE248.
5350         (VI248_128): Rename from SSEMODE248.
5351         (SSEMODE124C8): Remove.
5352         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5353         (*sse2_<plusminus_insn><mode>3): Merge with
5354         *avx_<plusminus_insn><mode>3.
5355         (*mulv8hi3): Merge with *avx_mulv8hi3.
5356         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5357         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5358         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5359         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5360         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5361         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5362         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5363         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5364         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5365         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5366         (*<smaxmin:code>v8hi3): Ditto.
5367         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5368         (*<smaxmin:code>v16qi3): Ditto.
5369         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5370         (*sse2_eq<mode>3): Ditto.
5371         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5372         (*sse2_gt<mode>3): Ditto.
5373         (vcondv2di): Split out of vcond<mode>.
5374         (vconduv2di): Split out of vcondu<mode>.
5375
5376 2011-04-11  Richard Guenther  <rguenther@suse.de>
5377
5378         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5379         before calling tree_low_cst.
5380
5381 2011-04-11  Richard Guenther  <rguenther@suse.de>
5382
5383         * stor-layout.c (layout_type): Compute all array index size operations
5384         in the original type.
5385         (initialize_sizetypes): Add comment.
5386         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5387
5388 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5389
5390         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5391
5392 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5393
5394         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5395         of cgraph_node, handle NULL return value.
5396         (cgraph_global_info): Likewise.
5397         (cgraph_rtl_info): Likewise.
5398         * tree-inline.c (estimate_num_insns): Likewise.
5399         * gimplify.c (unshare_body): Likewise.
5400         (unvisit_body): Likewise.
5401         (gimplify_body): Likewise.
5402         * predict.c (optimize_function_for_size_p): Likewise.
5403         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5404         (call_may_clobber_ref_p_1): Likewise.
5405         * varasm.c (function_section_1): Likewise.
5406         (assemble_start_function): Likewise.
5407
5408 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5409
5410         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5411         of cgraph_node.
5412         * final.c (rest_of_clean_state): Likewise.
5413         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5414         * passes.c (pass_init_dump_file): Likewise.
5415         (execute_all_ipa_transforms): Likewise.
5416         (function_called_by_processed_nodes_p): Likewise.
5417         * predict.c (maybe_hot_frequency_p): Likewise.
5418         (probably_never_executed_bb_p): Likewise.
5419         (compute_function_frequency): Likewise.
5420         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5421         (unnest_nesting_tree_1): Likewise.
5422         (lower_nested_functions): Likewise.
5423         * tree-optimize.c (execute_fixup_cfg): Likewise.
5424         (tree_rest_of_compilation): Likewise.
5425         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5426         * tree-sra.c (ipa_early_sra): Likewise.
5427         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5428         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5429         * ipa.c (record_cdtor_fn): Likewise.
5430         * ipa-inline.c (cgraph_early_inlining): Likewise.
5431         (compute_inline_parameters_for_current): Likewise.
5432         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5433         * ipa-pure-const.c (local_pure_const): Likewise.
5434         * ipa-split.c (split_function): Likewise.
5435         (execute_split_functions): Likewise.
5436         * cgraphbuild.c (build_cgraph_edges): Likewise.
5437         (rebuild_cgraph_edges): Likewise.
5438         (cgraph_rebuild_references): Likewise.
5439         (remove_cgraph_callee_edges): Likewise.
5440         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5441         (verify_cgraph_node): Likewise.
5442         (cgraph_analyze_functions): Likewise.
5443         (cgraph_preserve_function_body_p): Likewise.
5444         (save_inline_function_body): Likewise.
5445         (save_inline_function_body): Likewise.
5446         * tree-inline.c (copy_bb): Likewise.
5447         (optimize_inline_calls): Likewise.
5448
5449 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5450
5451         PR tree-optimization/48195
5452         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5453         ipa_check_create_edge_args.
5454         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5455         ipa_check_create_edge_args.
5456         * ipa-inline.c (inline_generate_summary): Do not call
5457         ipa_check_create_node_params and ipa_check_create_edge_args.
5458         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5459         ipa_check_create_edge_args.
5460
5461 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5462
5463         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5464         instead of loop.
5465         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5466         * function.c (record_hard_reg_sets): Likewise.
5467         * ira.c (compute_regs_asm_clobbered): Likewise.
5468         * sched-deps.c (sched_analyze_1): Likewise.
5469         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5470
5471 2011-04-09  Xinliang David Li  <davidxl@google.com>
5472
5473         PR tree-optimization/PR48484
5474         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5475         has_valid_pred lazily
5476
5477 2011-04-09  Duncan Sands  <baldrick@free.fr>
5478
5479         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5480
5481 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5482
5483         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5484         cost of I0 to zero at the end, if any.
5485
5486 2011-04-08  Xinliang David Li  <davidxl@google.com>
5487
5488         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5489         to insane profile data.
5490
5491 2011-04-08  Xinliang David Li  <davidxl@google.com>
5492
5493         * ipa-cp.c (ipcp_update_profiling): Correct
5494          negative scale factor due to insane profile data.
5495
5496 2011-04-08  Xinliang David Li  <davidxl@google.com>
5497
5498         * final.c (dump_basic_block_info): New function.
5499         (final): Dump basic block.
5500         (final_scan_insn): Remove old dump.
5501
5502 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5503
5504         PR target/47829
5505         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5506         crtbegin/crtend.
5507
5508 2011-04-08  Michael Matz  <matz@suse.de>
5509
5510         PR middle-end/48389
5511         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5512         functions.
5513         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5514         * rtl.h (rebuild_jump_labels_chain): Declare.
5515         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5516         insns inserted on edges.
5517
5518 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5519
5520         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5521         * config/arm/arm-arches.def: New.
5522         * config/arm/arm-opts.h: New.
5523         * config/arm/genopt.sh: New.
5524         * config/arm/arm-tables.opt: New (generated).
5525         * config/arm/arm.c (arm_handle_option, arm_target_help,
5526         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5527         (all_architectures): Get most table contents from arm-arches.def.
5528         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5529         arm_selected_tune here.
5530         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5531         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5532         (march=, mcpu=, mtune=): Use Enum and Var.
5533         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5534         (arm.o): Update dependencies.
5535
5536 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5537
5538         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5539         of header_file.
5540         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5541         (write_typed_alloc_defns): Likewise.
5542         (main): Calls write_typed_alloc_defns with output_header.
5543
5544 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5545
5546         PR inline-asm/48435
5547         * ira-color.c (setup_profitable_hard_regs): Add comments.
5548         Don't take prohibited hard regs into account.
5549         (setup_conflict_profitable_regs): Rename to
5550         get_conflict_profitable_regs.
5551         (check_hard_reg_p): Check prohibited hard regs.
5552
5553 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5554
5555         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5556         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5557         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5558
5559 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5560
5561         PR target/48366
5562         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5563         move from floating point to shift amount register.
5564         (emit_move_sequence): Remove secondary reload support for floating
5565         point to shift amount amount register copies.
5566         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5567         amount register copies.
5568         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5569         register, return false if mode isn't a scalar integer mode.
5570         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5571
5572 2011-04-08  Richard Guenther  <rguenther@suse.de>
5573
5574         * gimple.c (gimple_call_flags): Remove kludge.
5575
5576 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5577
5578         * sel-sched.c (sel_region_init): Move call to
5579         sel_setup_region_sched_flags after setup_current_loop_nest.
5580
5581 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5582
5583         PR rtl-optimization/48272
5584         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5585         init_insn_reg_pressure_info.  Adjust a caller.
5586         * sched-int.h (init_insn_reg_pressure_info): Declare.
5587         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5588         when sched-pressure is enabled.
5589
5590 2011-04-08  Richard Guenther  <rguenther@suse.de>
5591
5592         * gimple.c (gimple_set_modified): Do not queue calls to
5593         MODIFIED_NORETURN_CALLS here ...
5594         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5595
5596 2011-04-08  Richard Guenther  <rguenther@suse.de>
5597
5598         PR lto/48467
5599         * toplev.c (lang_dependent_init): Do not open asm_out_file
5600         in WPA mode, nor perform debug machinery initialization.
5601         (finalize): Do not unlink asm_out_file in WPA mode.
5602
5603 2011-04-08  Richard Guenther  <rguenther@suse.de>
5604
5605         * gimple.h (gimple_call_fntype): New function.
5606         (gimple_call_return_type): Use it.
5607         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5608         * gimple-low.c (gimple_check_call_args): Likewise.
5609         * gimple.c (gimple_call_flags): Likewise.
5610         (gimple_call_arg_flags): Likewise.
5611         (gimple_call_return_flags): Likewise.
5612         * tree-cfg.c (verify_gimple_call): Likewise.
5613         (do_warn_unused_result): Likewise.
5614         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5615         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5616
5617 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5618
5619         PR rtl-optimization/48235
5620         * sel-sched.c (code_motion_process_successors): Recompute the last
5621         insn in basic block if control flow changed.
5622         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5623         Update condition for ilist_remove.
5624
5625 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5626
5627         PR rtl-optimization/48302
5628         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5629         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5630         it to record added preheader blocks.
5631         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5632         on to sel_add_loop_preheaders.
5633         (sel_region_init): Move call to setup_current_loop_nest after
5634         sel_init_bbs.
5635
5636 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5637
5638         PR target/48273
5639         * cfgloop.h (loop_has_exit_edges): New helper.
5640         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5641         non-clonable.
5642         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5643         that have no exit edges.
5644
5645 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5646
5647         PR rtl-optimization/48442
5648         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5649         all callers.  Adjust assert.
5650
5651 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5652
5653         PR tree-optimization/48377
5654         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5655         is_packed to true even for types with smaller TYPE_ALIGN than
5656         TYPE_SIZE.
5657
5658 2011-04-08  Richard Guenther  <rguenther@suse.de>
5659
5660         PR bootstrap/48513
5661         * doc/tm.texi: Re-generate.
5662
5663 2011-04-08  Wei Guozhi  <carrot@google.com>
5664
5665         PR target/47855
5666         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5667         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5668         * config/arm/arm.md (*push_multi): Change the length computation to
5669         call a C function.
5670
5671 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5672
5673         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5674         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5675         * doc/tm.texi: Regenerate.
5676         * system.h (ASM_OUTPUT_BSS): Poison.
5677         * varasm.c (asm_output_bss): Remove function.
5678         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5679
5680         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5681         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5682         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5683         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5684         Likewise.
5685         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5686         Likewise.
5687         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5688         Likewise.
5689         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5690
5691 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5692
5693         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5694         EnumValue lines.
5695
5696 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5697
5698         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5699         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5700         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5701         OPT_mcpu32.
5702         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5703         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5704         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5705         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5706         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5707         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5708         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5709         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5710         options.  Don't map other m68k options manually.  Don't handle
5711         old-style options as canonical.
5712         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5713         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5714
5715 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5716
5717         * basic-block.h (force_nonfallthru): Move to...
5718         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5719         (force_nonfallthru): ...here.
5720         * cfghooks.c (force_nonfallthru): New function.
5721         * cfgrtl.c (force_nonfallthru): Rename into...
5722         (rtl_force_nonfallthru): ...this.
5723         (commit_one_edge_insertion): Do not set AUX field.
5724         (commit_edge_insertions): Do not discover new basic blocks.
5725         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5726         (cfg_layout_rtl_cfg_hooks): Likewise.
5727         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5728         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5729         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5730
5731 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5732
5733         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5734         Remove macros.
5735
5736 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5737
5738         * config/i386/sse.md: Update copyright year.
5739         (avxcvtvecmode): Remove.
5740         (sse_movhlps): Merge with *avx_movhlps.
5741         (sse_movlhps): Merge with *avx_movlhps.
5742         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5743         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5744         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5745         (sse_loadhps): Merge with *avx_loadhps.
5746         (sse_storelps): Merge with *avx_storelps.
5747         (sse_loadlps): Merge with *avx_loadlps.
5748         (sse_movss): Merge with *avx_movss.
5749         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5750         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5751         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5752         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5753         (vec_set<mode>_0): Ditto.
5754         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5755         (sse4_1_insertps): Merge with *avx_insertps.
5756         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5757         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5758         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5759         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5760         (sse2_storehpd): Merge with *avx_storehpd.
5761         (sse2_loadhpd): Merge with *avx_loadhpd.
5762         (sse2_loadlpd): Merge with *avx_loadlpd.
5763         (sse2_movsd): Merge with *avx_movsd.
5764         (*vec_concatv2df): Merge with *vec_concatv2df.
5765
5766 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5767
5768         PR debug/48343
5769         * combine.c (combine_instructions): Add last_combined_insn,
5770         update it if insn is after it, pass it to all try_combine calls.
5771         (try_combine): Add last_combined_insn parameter, pass it instead of
5772         i3 to propagate_for_debug.
5773
5774 2011-04-07  Nick Clifton  <nickc@redhat.com>
5775
5776         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5777         to handle MDR <-> data register transfers.
5778         (movhi_internal): Likewise.
5779
5780 2011-04-07  Alan Modra  <amodra@gmail.com>
5781
5782         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5783         previous stack info.
5784
5785 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5786
5787         PR target/43920
5788         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5789         flow_find_cross_jump.  Swap variables to implement backward replacement.
5790         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5791
5792 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5793
5794         PR target/43920
5795         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5796         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5797         and bb2.
5798         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5799         src1 or src2.  Redirect edges to the last basic block.  Update
5800         frequency and count on multiple basic blocks in case of fallthru.
5801
5802 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5803
5804         PR target/43920
5805         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5806         function.
5807         (old_insns_match_p): Change return type.  Replace return false/true
5808         with return dir_none/dir_both.  Use can_replace_by.
5809         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5810         direction from dir_p.  Register replacement direction in dir, last_dir
5811         and afterlast_dir.  Handle new return type of old_insns_match_p using
5812         merge_dir.  Return replacement direction in dir_p.
5813         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5814         return type of old_insns_match_p.
5815         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5816         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5817         flow_find_cross_jump.
5818         * basic-block.h (enum replace_direction): New type.
5819         (flow_find_cross_jump): Add parameter to declaration.
5820
5821 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5822
5823         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5824         (AVXMODEDCVTPS2DQ): Ditto.
5825         (VEC_FLOAT_MODE): Ditto.
5826         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5827         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5828         (<any_logic:code><mode>3): Use VF mode iterator.
5829         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5830         Use VF mode iterator.
5831         (copysign<mode>3): Use VF mode iterator.
5832         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5833         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5834         (*<any_logic:code><MODEF:mode>3): Merge with
5835         *avx_<any_logic:code><MODEF:mode>3.
5836         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5837         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5838         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5839         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5840         (sse2_cvtdq2ps): Use %v modifier.
5841         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5842         (avx_cvtps2dq<avxmodesuffix>): Remove.
5843         (sse2_cvtps2dq): Use %v modifier.
5844         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5845         (avx_cvttps2dq<avxmodesuffix>): Remove.
5846         (sse2_cvttps2dq): Use %v modifier.
5847         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5848         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5849         (sse2_cvtsd2siq): Fix insn template.
5850         (sse2_cvtsd2siq_2): Ditto.
5851         (sse2_cvttsd2siq): Ditto.
5852         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5853         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5854
5855 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5856
5857         * gcov-io.c: Use GCC Runtime Library Exception.
5858
5859 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5860
5861         PR debug/48466
5862         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5863         as base_reg whatever register reg has been eliminated to, instead
5864         of hardcoding STACK_POINTER_REGNUM.
5865
5866 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5867
5868         * doc/tm.texi.in: Document C target hooks as separate from general
5869         target hooks.
5870         * doc/tm.texi: Regenerate.
5871         * genhooks.c (struct hook_desc): Add docname field.
5872         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5873         docname field.
5874         (hook_array): Include c-target.def.
5875         (emit_documentation): Use docname field in output.
5876         (emit_init_macros): Take docname argument.  Only emit definitions
5877         for hooks matching docname.
5878         (main): Expect additional arguments in all cases.  Pass argument
5879         to emit_init_macros.
5880         * target.def: Move initial macro definitions and comments to
5881         target-hooks-macros.h.
5882         (gcc_targetcm): Move to c-family/c-target.def.
5883         * target.h (targetcm): Move declaration to c-family/c-target.h.
5884         * targhooks.c (default_handle_c_option): Move to
5885         c-family/c-opts.c.
5886         * targhooks.h (default_handle_c_option): Move declaration to
5887         c-family/c-common.h.
5888         * target-hooks-macros.h: New file.
5889         * config.gcc (target_has_targetcm): Define and use to add to
5890         c_target_objs and cxx_target_objs.
5891         * config/default-c.c: New file.
5892         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5893         of target.h and target-def.h.
5894         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5895         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5896         darwin_check_cfstring_format_arg): Make static.
5897         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5898         TARGET_STRING_OBJECT_REF_TYPE_P,
5899         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5900         * config/darwin-protos.h (darwin_objc_construct_string,
5901         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5902         declare.
5903         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5904         TARGET_STRING_OBJECT_REF_TYPE_P,
5905         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5906         * config/t-darwin (darwin-c.o): Update dependencies.
5907         * system.h (TARGET_HAS_TARGETCM): Poison.
5908         * Makefile.in (TARGET_H): Update.
5909         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5910         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5911         (default-c.o): New target.
5912         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5913         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5914         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5915         c-target.def.
5916         (build/genhooks.o): Update dependencies.
5917
5918 2011-04-06  Richard Guenther  <rguenther@suse.de>
5919
5920         * ipa-inline.c (enum inlining_mode): Remove.
5921         (cgraph_flatten): Use some other token.
5922         (cgraph_edge_early_inlinable_p): New function, split out from ...
5923         (cgraph_perform_always_inlining): New function, split out from ...
5924         (cgraph_decide_inlining_incrementally): ... here.
5925         (cgraph_mark_inline_edge): Adjust.
5926         (cgraph_early_inlining): Re-structure.
5927         (pass_early_inline): Require SSA form.
5928
5929 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5930             Julian Brown  <julian@codesourcery.com>
5931             Mark Shinwell  <shinwell@codesourcery.com>
5932
5933         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5934         LO_REGS only for Thumb-1.
5935         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5936         be used in short instructions when optimising for size on Thumb-2.
5937
5938 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5939
5940         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5941         associated with user returns to be preserved.
5942
5943 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5944
5945         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5946         symbol_queue_size, DBXOUT_DECR_NESTING,
5947         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5948         if XCOFF_DEBUGGING_INFO.
5949
5950 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5951
5952         * config/i386/i386.md (attribute isa): New.
5953         (attribute enabled): New.
5954         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5955         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5956         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5957         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5958         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5959         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5960         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5961         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5962
5963         * config/i386/sse.md (VF): New mode iterator.
5964         (VF1): Ditto.
5965         (VF2): Ditto.
5966         (VF_128): Ditto.
5967         (SSEMODEF4): Remove.
5968         (attribute sse): Handle V8SF and V4DF modes.
5969         (<absneg:code><mode>2): Use VF mode iterator.
5970         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5971         mode iterator.
5972         (<plusminus_insn><mode>3): Use VF mode iterator.
5973         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5974         Use VF mode iterator.
5975         (<sse>_vm<plusminus_insn><mode>3): Merge with
5976         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5977         (mul<mode>3): Use VF mode iterator.
5978         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5979         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5980         mode iterator.
5981         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5982         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5983         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5984         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5985         mode iterator.
5986         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5987         Use VF1 mode iterator.
5988         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5989         (sqrt<VF2:mode>2): New expander.
5990         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5991         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5992         and sqrtv2df2.  Use VF mode iterator.
5993         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5994         mode iterator.
5995         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5996         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5997         Use VF1 mode iterator.
5998         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5999         (<smaxmin:code><mode>3): Use VF mode iterator.
6000         (*<smaxmin:code><mode>3_finite): Merge with
6001         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6002         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6003         (<sse>_vm<smaxmin:code><mode>2): Merge with
6004         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6005         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6006         mode iterator.
6007         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6008         mode iterator.
6009         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6010         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6011         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6012         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6013         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6014         VF mode iterator.
6015         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6016         Use VF_128 mode iterator.
6017         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6018         mode iterator.
6019         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6020         VF_128 mode iterator.
6021         (vcond<mode>): Use VF mode iterator.
6022         * config/i386/predicates.md (sse_comparison_operator): Merge with
6023         avx_comparison_float_operator.  Do not declare as special_predicate.
6024         * config/i386/i386.c (struct builtin_description): Update for renamed
6025         compare patterns.
6026         (ix86_expand_args_builtin): Ditto.
6027         (ix86_expand_sse_compare_mask): Ditto.
6028
6029 2011-04-06  Richard Guenther  <rguenther@suse.de>
6030
6031         * tree-inline.c (estimate_num_insns): For calls simply account
6032         for all passed arguments and a used return value.
6033
6034 2011-04-06  Richard Guenther  <rguenther@suse.de>
6035
6036         PR tree-optimization/47663
6037         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6038         call_stmt_time fields.
6039         (cgraph_edge_inlinable_p): Declare.
6040         (cgraph_edge_recursive_p): New inline function.
6041         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6042         (cgraph_clone_edge): Copy it.
6043         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6044         Account for call stmt time.
6045         (cgraph_estimate_time_after_inlining): Take edge argument.
6046         (cgraph_estimate_edge_growth): Account call stmt size.
6047         (cgraph_estimate_size_after_inlining): Take edge argument.
6048         (cgraph_mark_inline_edge): Adjust.
6049         (cgraph_check_inline_limits): Likewise.
6050         (cgraph_recursive_inlining_p): Remove.
6051         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6052         (cgraph_decide_recursive_inlining): Take edge argument and
6053         adjust.
6054         (cgraph_decide_inlining_of_small_functions): Do not avoid
6055         diags for recursive inlining here.
6056         (cgraph_flatten): Adjust.
6057         (cgraph_decide_inlining_incrementally): Likewise.
6058         (estimate_function_body_sizes): Remove call cost handling.
6059         (compute_inline_parameters): Initialize caller edge call costs.
6060         (cgraph_estimate_edge_growth): New function.
6061         (cgraph_estimate_growth): Use it.
6062         (cgraph_edge_badness): Likewise.
6063         (cgraph_check_inline_limits): Take an edge argument.
6064         (cgraph_decide_inlining_of_small_functions): Adjust.
6065         (cgraph_decide_inlining): Likewise.
6066         * tree-inline.c (estimate_num_insns): Only account for call
6067         return value if it is used.
6068         (expand_call_inline): Avoid diagnostics on recursive inline
6069         functions here.
6070         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6071         (input_edge): Input edge call costs.
6072
6073 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6074
6075         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6076
6077 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6078
6079         * doc/invoke.texi (Spec Files): Fix typo.
6080
6081 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6082
6083         * profile.c (branch_prob): Move declaration of local variable.  Remove
6084         obsolete ??? comment.  Expand the location explicitly instead of using
6085         the LOCATION_FILE and LOCATION_LINE macros.
6086
6087 2011-04-06  Wei Guozhi  <carrot@google.com>
6088
6089         PR target/47855
6090         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6091         (arm_cond_branch): Likewise.
6092         (arm_cond_branch_reversed): Likewise.
6093         (arm_jump): Likewise.
6094         (push_multi): Likewise.
6095         * config/arm/constraints.md (Py): New constraint.
6096
6097 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6098
6099         PR bootstrap/48471
6100         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6101         Move these...
6102         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6103         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6104         #ifdef DBX_DEBUGGING_INFO.
6105
6106 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6107
6108         PR bootstrap/48403
6109         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6110         if old and new states differ.
6111
6112 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6113
6114         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6115         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6116         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6117         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6118         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6119         mcfv4e): Use Alias.
6120         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6121         ColdFire options to -mcpu= options.
6122
6123 2011-04-05  Jeff Law  <law@redhat.com>
6124
6125         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6126         check if BB is a successor of LOOP->header and return
6127         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6128
6129 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6130
6131         * cprop.c (struct reg_use): Remove.
6132         (reg_use_table): Make an array of RTX.
6133         (find_used_regs, constprop_register, local_cprop_pass,
6134         bypass_block): Simplify users of reg_use_table.
6135         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6136         on one of the uses found by find_used_regs.
6137
6138 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6139
6140         PR bootstrap/48469
6141         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6142         declaration.
6143
6144 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6145
6146         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6147         as an rtx.
6148         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6149
6150 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6151
6152         PR middle-end/48441
6153         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6154
6155 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6156
6157         * combine.c: Include obstack.h.
6158         (struct insn_link): Define.
6159         (uid_log_links): Adjust type.
6160         (FOR_EACH_LOG_LINK): New macro.
6161         (insn_link_obstack): Declare.
6162         (alloc_insn_link): Define.
6163         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6164         type of link variables.
6165         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6166         (try_combine, record_promoted_values, distribute_notes): Likewise.
6167         (distribute_links): Likewise.  Tweak prototype.
6168         (clear_log_links): Delete.
6169         (adjust_for_new_dest): Call alloc_insn_link.
6170         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6171
6172 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6173
6174         * gcse.c (modify_mem_list): Convert to an array of VECs.
6175         (canon_modify_mem_list, compute_transp): Tweak formatting.
6176         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6177         (load_killed_in_block_p): Likewise.
6178         (record_last_mem_set_info): Likewise.
6179         (clear_modify_mem_tables): Likewise.
6180
6181 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6182
6183         PR middle-end/48461
6184         * function.c (emit_use_return_register_into_block): Only define if
6185         HAVE_return.
6186
6187 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6188
6189         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6190
6191 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6192
6193         * config/rx/rx-opts.h: New.
6194         * config/rx/rx.c (rx_cpu_type): Remove.
6195         (rx_handle_option): Don't assert that global structures are in
6196         use.  Access variables via opts pointer.  Defer most handling of
6197         OPT_mint_register_.  Use error_at.
6198         (rx_option_override): Handle deferred OPT_mint_register_ here.
6199         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6200         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6201         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6202         (rx_cpu_types): New Enum and EnumValue entries.
6203         (mint-register=): Use Defer and use Var accordingly.
6204
6205 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6206
6207         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6208         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6209         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6210         Move these...
6211         (debug_free_queue, debug_nesting, symbol_queue_index):
6212         ...and these...
6213         * dbxout.c: ...to here.  Make static.
6214
6215 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6216
6217         * gcse.c (modify_pair): Define.  Define a VEC of it.
6218         (canon_modify_mem_list): Convert to an array of VECs.
6219         (free_insn_expr_list_list): Delete.
6220         (clear_modify_mem_tables): Call VEC_free instead.
6221         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6222         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6223         (canon_list_insert, compute_transp): Likewise.
6224
6225 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6226
6227         PR target/43920
6228         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6229         for size.
6230
6231 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6232
6233         PR target/43920
6234         * function.c (emit_use_return_register_into_block): New function.
6235         (thread_prologue_and_epilogue_insns): Use
6236         emit_use_return_register_into_block.
6237
6238 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6239
6240         PR target/43920
6241         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6242         insn.
6243
6244 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6245
6246         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6247
6248 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6249
6250         * config/arm/arm.md (define_constants for unspec): Replace with
6251         define_c_enum.
6252         (define_constants for unspecv): Replace with define_c_enum.
6253         * config/arm/neon.md (define_constants for unspec): Replace with
6254         define_c_enum.
6255
6256 2011-04-04  Richard Henderson  <rth@redhat.com>
6257
6258         PR bootstrap/48400
6259         * dwarf2out.c (output_line_info): Always emit line info from
6260         at least one section.
6261         (dwarf2out_init): Create text_section_line_info here ...
6262         (set_cur_line_info_table): ... not here.
6263
6264 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6265
6266         PR target/48380
6267         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6268         not called.
6269
6270         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6271
6272 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6273
6274         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6275         (expr_equiv_p): Remove.
6276         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6277         (hash_scan_set): Update call to insert_set_in_table.
6278         (dump_hash_table): Dump <dest, src> pair.
6279         (lookup_set): Simplify.  Lookup <dest, src> pair.
6280         (compute_transp): Remove, fold heavily simplified code into...
6281         (compute_local_properties): ...here.  Expect COMP and TRANSP
6282         unconditionally.
6283         (find_avail_set): Take set directly from struct expr.
6284         (find_bypass-set): Likewise.
6285         (bypass_block): Likewise.
6286         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6287
6288         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6289         checks on form of COND from find_implicit_sets to here.
6290         (find_implicit_sets): Cleanup control flow. Split critical edges
6291         if it exposes implicit sets.  Allocate/resize implicit_sets as
6292         necessary.
6293         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6294         changed something.  Run df_analyze after find_implicit_sets if any
6295         edges were split.  Do not allocate implicit_sets here.
6296
6297         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6298         (gcse_obstack): Renamed to cprop_obstack.
6299         (GNEW, GNEWVEC, GNEWVAR): Remove.
6300         (gmalloc): Remove.
6301         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6302         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6303         (gcse_alloc): Likewise, and rename to cprop_alloc.
6304         (alloc_gcse_men, free_gcse_mem): Remove.
6305         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6306         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6307         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6308
6309         * cprop.c (oprs_not_set_p): Remove.
6310         (mark_set, mark_clobber): Remove.
6311         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6312         (reg_not_set_p): New function.
6313         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6314         (cprop_insn): Likewise.
6315         (cprop_jump): Use FOR_EACH_EDGE.
6316
6317 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6318
6319         PR bootstrap/48403
6320         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6321         (rank_for_schedule): Use scheduled_insns vector instead of
6322         last_scheduled_insn.
6323         (ok_for_early_queue_removal): Likewise.
6324         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6325         we have a dbg_cnt.
6326         (choose_ready): Likewise.
6327         (commit_schedule): Use VEC_iterate.
6328         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6329         a dbg_cnt, use it and ensure the first insn is in the ready list.
6330         (haifa_sched_init): Allocate scheduled_insns.
6331         (sched_extend_ready_list): Don't allocate it; reserve space.
6332         (haifa_sched_finish): Free it.
6333
6334 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6335
6336         * optc-gen.awk: Always remove type from Variable entry before
6337         recording in var_seen.
6338
6339 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6340
6341         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6342         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6343         call to tidy_fallthru_edges.
6344
6345 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * doc/options.texi (ToLower): Document.
6348         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6349         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6350         * opts.h (cl_option): Add cl_tolower field.
6351         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6352         arguments with lowercase strings.
6353         * config/rx/rx.opt (mcpu=): Add ToLower.
6354         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6355         argument.
6356
6357 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6358
6359         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6360
6361 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6362
6363         * config/vax/vax.c: Include reload.h.
6364
6365 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6366
6367         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6368         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6369         (sparc_preferred_reload_class): New function.
6370
6371 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6372
6373         PR debug/48401
6374         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6375         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6376
6377 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6378
6379         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6380         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6381
6382 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6383
6384         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6385         (ASM_OUTPUT_ALIGNED_BSS): Define.
6386
6387 2011-04-03  Michael Matz  <matz@suse.de>
6388
6389         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6390         and next_slot members.
6391         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6392         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6393         (lto_streamer_cache_append): Declare.
6394         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6395         unsigned index, remove offset parameter, ensure that we append
6396         or update existing entries.
6397         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6398         parameter, update next_slot for append.
6399         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6400         parameter.
6401         (lto_streamer_cache_insert_at): Likewise.
6402         (lto_streamer_cache_append): New function.
6403         (lto_streamer_cache_lookup): Use unsigned index.
6404         (lto_streamer_cache_get): Likewise.
6405         (lto_record_common_node): Don't test tree_node_can_be_shared.
6406         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6407         (lto_streamer_cache_delete): Don't free offsets member.
6408         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6409         (lto_output_string_with_length): Use lto_output_data_stream.
6410         (lto_output_tree_header): Remove ix parameter, don't write it.
6411         (lto_output_builtin_tree): Likewise.
6412         (lto_write_tree): Adjust callers to above, don't track and write
6413         offset, write unsigned index.
6414         (output_unreferenced_globals): Don't emit all global vars.
6415         (write_global_references): Use unsigned indices.
6416         (lto_output_decl_state_refs): Likewise.
6417         (write_symbol): Likewise.
6418         * lto-streamer-in.c (lto_input_chain): Move earlier.
6419         (input_function): Use unsigned index.
6420         (input_alias_pairs): Don't read and then ignore all global vars.
6421         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6422         don't pass it back, use lto_streamer_cache_append.
6423         (lto_register_var_decl_in_symtab): Use unsigned index.
6424         (lto_register_function_decl_in_symtab): Likewise.
6425         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6426         index.
6427         (lto_get_builtin_tree): Don't read index, use
6428         lto_streamer_cache_append.
6429         (lto_read_tree): Adjust call to lto_materialize_tree.
6430
6431         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6432         don't use function calls in arguments to MIN.
6433
6434         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6435         twice.
6436
6437         * gimple.c (gimple_type_leader_entry): Mark deletable.
6438
6439 2011-04-03  Alan Modra  <amodra@gmail.com>
6440
6441         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6442
6443 2011-04-03  Michael Matz  <matz@suse.de>
6444
6445         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6446         an integer.
6447         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6448
6449 2011-04-03  Michael Matz  <matz@suse.de>
6450
6451         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6452         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6453         without function context.
6454         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6455         current_function_decl and cfun.
6456
6457 2011-04-03  Michael Matz  <matz@suse.de>
6458
6459         * tree.c (decl_init_priority_insert): Don't create entry for
6460         default priority.
6461         (decl_fini_priority_insert): Ditto.
6462         (fields_compatible_p, find_compatible_field): Remove.
6463         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6464         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6465
6466 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6467
6468         * combine.c (try_combine): Remove useless local variable.
6469
6470 2011-04-03  Richard Guenther  <rguenther@suse.de>
6471             Ira Rosen  <ira.rosen@linaro.org>
6472
6473         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6474         non-variable offsets and compare the remaining bases of the two
6475         accesses instead of looking for exact same data-ref.
6476
6477 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6478
6479         PR target/48416
6480         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6481
6482         * i386.c (ix86_is_msabi_thiscall): New helper function.
6483         (ix86_is_type_thiscall): New helper function.
6484         (ix86_comp_type_attributes): Handle thiscall for method-functions
6485         special.
6486         (init_cumulative_args): Likewise.
6487         (find_drap_reg): Likewise.
6488         (ix86_static_chain): Likewise.
6489         (x86_this_parameter): Likewise.
6490         (x86_output_mi_thunk): Likewise.
6491
6492 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6493             Nicolas Setton  <setton@adacore.com>
6494             Eric Botcazou  <ebotcazou@adacore.com>
6495
6496         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6497         (add_gnat_descriptive_type_attribute): New function.
6498         (gen_array_type_die): Call it.
6499         (gen_enumeration_type_die): Likewise.
6500         (gen_struct_or_union_type_die): Likewise.
6501         (modified_type_die): Likewise.
6502         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6503         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6504         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6505
6506 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6507
6508         PR bootstrap/48148
6509         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6510         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6511
6512         Revert:
6513         2011-03-17  Richard Guenther  <rguenther@suse.de>
6514
6515         PR bootstrap/48148
6516         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6517         origin for decls in other ltrans units.
6518         (input_varpool_node): Likewise.
6519
6520 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6521
6522         PR middle-end/48335
6523         * expr.c (expand_assignment): Handle all possibilities
6524         if TO_RTX is CONCAT.
6525         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6526         (store_split_bit_field): If SUBREG_REG (op0) or
6527         op0 itself has smaller mode than word, return it
6528         for offset 0 and const0_rtx for out-of-bounds stores.
6529         If word is const0_rtx, skip it.
6530
6531 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6532
6533         * config/h8300/h8300.c (print_operand_address): Rename to...
6534         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6535         Call h8300_print_operand and h8300_print_operand_address instead of
6536         print_operand and print_operand_address. Declare.
6537         (print_operand): Renake to...
6538         (h8300_print_operand): ...this. Make static. Adjust comments.
6539         Call h8300_print_operand instead of print_operand. Declare.
6540         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6541         (h8300_register_move_cost): Likewise.
6542         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6543         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6544         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6545         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6546         * config/h8300/h8300-protos.h (print_operand): Delete.
6547         (print_operand_address): Delete.
6548
6549 2011-04-01  Richard Henderson  <rth@redhat.com>
6550
6551         PR 48400
6552         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6553         in strict mode before dwarf4.  Re-order tests to early out
6554         before switching sections.
6555
6556 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6557
6558         * config/h8300/constraints.md: New file.
6559         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6560         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6561         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6562         * config/h8300/predicates.md (bit_operand): Likewise.
6563         (incdec_operand): Use satisfies_constraint_M and
6564         satisfies_constraint_O.  Don't use C code block.
6565         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6566         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6567         (compute_mov_length): Use satisfies_constraint_G.
6568         (fix_bit_operand): Use satisfies_constraint_U.
6569         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6570         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6571         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6572         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6573         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6574         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6575         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6576         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6577         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6578         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6579         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6580         (EXTRA_MEMORY_CONSTRAINT): Delete.
6581
6582 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6583             Michael Meissner  <meissner@linux.vnet.ibm.com>
6584
6585         PR target/48262
6586         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6587         operands, as per the specifications.
6588
6589         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6590         (vec_extract_evenv4sf): Ditto.
6591         (vec_extract_evenv8hi): Ditto.
6592         (vec_extract_evenv16qi): Ditto.
6593         (vec_extract_oddv4si): Ditto.
6594
6595 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6596
6597         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6598         high_pc attribute if the CU has no associated code. Only output
6599         DW_AT_entry_pc for CU if not generating strict dwarf and
6600         dwarf_version < 4.
6601
6602 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6603
6604         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6605         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6606         out of ...
6607         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6608         * final.c (final_start_function): Call the new function rather
6609         than using a NULL argument for dwarf2out_frame_debug.
6610
6611         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6612         that contains the prologue.
6613
6614         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6615         changed.  Print it in debugging output.
6616
6617         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6618
6619         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6620         Split most of the code into...
6621         (begin_move_insn): ... here.  New function.
6622         (ebb_sched_info): Add a pointer to it.
6623         * haifa-sched.c (scheduled_insns): New static variable.
6624         (sched_extend_ready_list): Allocate it.
6625         (schedule_block): Use it to record the order of scheduled insns.
6626         Perform RTL changes to move insns only after all scheduling
6627         decisions have been made.
6628         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6629         begin_move_insn field.
6630         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6631         * sched-int.h (struct haifa_sched_info): Remove second argument
6632         from begin_schedule_ready hook.  Add new member begin_move_insn.
6633         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6634         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6635
6636         * haifa-sched.c (prune_ready_list): New function, broken out of
6637         schedule_block.
6638         (schedule_block): Use it.
6639
6640 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6641
6642         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6643
6644 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6645
6646         * config.gcc (*-*-mingw*): Allow as option the
6647         posix threading model.
6648         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6649         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6650         definition.
6651         (CPP_SPEC): Add pthread/no-pthread handling.
6652         (LIB_SPEC): Likewise.
6653         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6654         (LIB_SPEC): Likewise.
6655         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6656         flag to pass -pthread option for shared libgcc build.
6657         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6658         for shared libgcc build.
6659         * config/i386/t-mingw-pthread: New file.
6660         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6661         New define to enable use of library pthread by default.
6662         * config/i386/mingw.opt (pthread): New driver option.
6663         (no-pthread): New driver option.
6664         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6665         * config/i386/mingw-w64.opt: Likewise.
6666
6667 2011-04-01  Gary Funck  <gary@intrepid.com>
6668
6669         * c-decl.c (grokdeclarator): Fix formatting.
6670
6671 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6672
6673         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6674         instead of n_operands.
6675         (set_storage_via_setmem): Likewise.
6676         * optabs.c (maybe_gen_insn): Likewise.
6677         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6678         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6679         (mips_expand_builtin_direct): Likewise.
6680         * config/spu/spu.c (expand_builtin_args): Likewise.
6681
6682 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6683
6684         * recog.h (insn_data_d): Add n_generator_args.
6685         * genoutput.c (data): Likewise.
6686         (output_insn_data): Print it.
6687         (max_opno, num_dups): Delete.
6688         (scan_operands): Just fill in "d->operand[...]".
6689         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6690
6691 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6692
6693         * gensupport.h (pattern_stats): New structure.
6694         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6695         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6696         (max_operand_1, max_operand_vec): Delete.
6697         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6698
6699 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6700
6701         * emit-rtl.c (emit_pattern_after_setloc): New function.
6702         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6703         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6704         (emit_pattern_after): New function.
6705         (emit_insn_after, emit_jump_insn_after): Call it.
6706         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6707         (emit_pattern_before_setloc): New function.
6708         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6709         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6710         Likewise.
6711         (emit_pattern_before): New function.
6712         (emit_insn_before, emit_jump_insn_before): Call it.
6713         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6714
6715 2011-03-31  Richard Henderson  <rth@redhat.com>
6716
6717         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6718         (dw_separate_line_info_entry): Remove.
6719         (enum dw_line_info_opcode): New.
6720         (dw_line_info_entry): Use it.
6721         (dw_line_info_table, dw_line_info_table_p): New.
6722         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6723         (line_info_table, line_info_label_num): Remove.
6724         (line_info_table_in_use): Remove.
6725         (separate_line_info_table): Remove.
6726         (separate_line_info_table_allocated): Remove.
6727         (separate_line_info_table_in_use): Remove.
6728         (LINE_INFO_TABLE_INCREMENT): Remove.
6729         (line_info_label_num): New.
6730         (cur_line_info_table): New.
6731         (text_section_line_info, cold_text_section_line_info): New.
6732         (separate_line_info): New.
6733         (SEPARATE_LINE_CODE_LABEL): Remove.
6734         (print_dwarf_line_table): Remove.
6735         (debug_dwarf): Don't dump it.
6736         (output_one_line_info_table): New.
6737         (output_line_info): Use it.
6738         (new_line_info_table): New.
6739         (set_cur_line_info_table): New.
6740         (dwarf2out_switch_text_section): Use it.
6741         (dwarf2out_begin_function): Likewise.
6742         (push_dw_line_info_entry): New.
6743         (dwarf2out_source_line): Rewrite for new line info tables.
6744         (dwarf2out_init): Remove dead initailizations.
6745
6746 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6747
6748         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6749         various flags.
6750         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6751         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6752         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6753         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6754         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6755         * opt-functions.awk (flag_init, switch_bit_fields): New.
6756         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6757         generate CL_MISSING_OK or CL_SAVE.
6758         * optc-gen.awk: Update to generate bit-field output as well as
6759         flags field.
6760         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6761         bit-field instead of CL_REJECT_DRIVER flag.
6762         * opts-common.c (generate_canonical_option,
6763         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6764         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6765         instead of CL_REJECT_NEGATIVE flag.
6766         * toplev.c (print_switch_values): Use cl_report bit-field instead
6767         of CL_REPORT flag.
6768
6769 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6770
6771         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6772         a zero minimum index only if it is redundant.
6773
6774 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6775
6776         PR rtl-optimization/48381
6777         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6778         instead of ira_class_hard_reg_index for calculating conflicting
6779         hard registers.
6780
6781 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6782
6783         * cprop.c: Clean up hash table building.
6784         (reg_avail_info): Remove.
6785         (oprs_available_p): Remove.
6786         (record_last_reg_set_info): Remove.
6787         (record_last_set_info): Remove.
6788         (reg_available_p): New function.
6789         (gcse_constant_p): Do not treat unfolded conditions as constants.
6790         (make_set_regs_unavailable): New function.
6791         (hash_scan_set): Simplify with new reg_available_p.
6792         (compute_hash_table_work): Traverse insns stream only once.
6793         Do not compute reg_avail_info. Traverse insns in reverse order.
6794         Record implicit sets after recording explicit sets from the block.
6795
6796 2011-03-31  Michael Matz  <matz@suse.de>
6797
6798         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6799
6800 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6801
6802         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6803         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6804         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6805         (h8300_mode_dependent_address_p): New function.
6806         (h8300_get_index): Make static.
6807
6808 2011-03-31  Jeff Law  <law@redhat.com>
6809
6810         * reload1.c (elimination_effects): Fix typo in recent change.
6811
6812         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6813         typo potentially leading to null pointer dereference.
6814
6815         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6816         (setup_save_areas): Corresponding changes to avoid useless
6817         assignments.
6818
6819         * jump.c (reversed_comparison_code_parts): Avoid successive return
6820         statements when REVERSE_CONDITION is defined.
6821
6822         * expr.c (expand_assignment): Avoid useless assignments.
6823         (expand_expr_real_1): Likewise.
6824         (expand_expr_real_2): Avoid useless statements.
6825
6826         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6827
6828         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6829
6830         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6831         statements.
6832
6833         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6834
6835 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6836
6837         PR target/47109
6838         * doc/tm.texi.in (TARGET_VERSION): Remove.
6839         * doc/tm.texi: Regenerate.
6840         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6841         * collect2.c (main): Don't use TARGET_VERSION.
6842         * mips-tdump.c (main): Don't use TARGET_VERSION.
6843         * mips-tfile.c (main): Don't use TARGET_VERSION.
6844         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6845         * config/rs6000/vxworksae.h: Remove.
6846         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6847         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6848         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6849         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6850         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6851         * config/arm/arm.h (TARGET_VERSION): Remove.
6852         * config/arm/coff.h (TARGET_VERSION): Remove.
6853         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6854         * config/arm/elf.h (TARGET_VERSION): Remove.
6855         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6856         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6857         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6858         * config/arm/pe.h (TARGET_VERSION): Remove.
6859         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6860         * config/arm/semi.h (TARGET_VERSION): Remove.
6861         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6862         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6863         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6864         * config/avr/avr.h (TARGET_VERSION): Remove.
6865         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6866         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6867         * config/frv/frv.h (TARGET_VERSION): Remove.
6868         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6869         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6870         * config/i386/darwin.h (TARGET_VERSION): Remove.
6871         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6872         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6873         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6874         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6875         * config/i386/gnu.h (TARGET_VERSION): Remove.
6876         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6877         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6878         * config/i386/linux.h (TARGET_VERSION): Remove.
6879         * config/i386/linux64.h (TARGET_VERSION): Remove.
6880         * config/i386/lynx.h (TARGET_VERSION): Remove.
6881         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6882         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6883         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6884         * config/i386/netware.h (TARGET_VERSION): Remove.
6885         * config/i386/nto.h (TARGET_VERSION): Remove.
6886         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6887         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6888         * config/ia64/elf.h (TARGET_VERSION): Remove.
6889         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6890         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6891         * config/ia64/linux.h (TARGET_VERSION): Remove.
6892         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6893         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6894         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6895         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6896         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6897         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6898         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6899         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6900         * config/m68k/linux.h (TARGET_VERSION): Remove.
6901         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6902         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6903         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6904         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6905         * config/mep/mep.h (TARGET_VERSION): Remove.
6906         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6907         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6908         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6909         * config/mips/linux.h (TARGET_VERSION): Remove.
6910         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6911         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6912         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6913         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6914         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6915         * config/pa/pa.h (TARGET_VERSION): Remove.
6916         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6917         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6918         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6919         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6920         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6921         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6922         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6923         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6924         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6925         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6926         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6927         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6928         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6929         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6930         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6931         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6932         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6933         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6934         * config/s390/linux.h (TARGET_VERSION): Remove.
6935         * config/s390/s390.h (TARGET_VERSION): Remove.
6936         * config/s390/tpf.h (TARGET_VERSION): Remove.
6937         * config/score/score.h (TARGET_VERSION): Remove.
6938         * config/sh/linux.h (TARGET_VERSION): Remove.
6939         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6940         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6941         * config/sh/sh.h (TARGET_VERSION): Remove.
6942         * config/sh/sh64.h (TARGET_VERSION): Remove.
6943         * config/sh/superh.h (TARGET_VERSION): Remove.
6944         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6945         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6946         * config/sparc/linux.h (TARGET_VERSION): Remove.
6947         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6948         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6949         TARGET_NAME32, TARGET_NAME): Remove.
6950         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6951         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6952         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6953         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6954         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6955         * config/spu/spu.h (TARGET_VERSION): Remove.
6956         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6957         * config/v850/v850.h (TARGET_VERSION): Remove.
6958         * config/vax/linux.h (TARGET_VERSION): Remove.
6959         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6960         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6961         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6962
6963 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6964
6965         PR target/48142
6966         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6967         frame-related from frame-unrelated adjustments to the stack pointer.
6968
6969 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6970
6971         * common.opt (fdebug-types-section): Move earlier.
6972         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6973
6974 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6975
6976         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6977         var.
6978
6979 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6980
6981         * tree.h (CASE_CHAIN): Define.
6982         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6983         (gimple_redirect_edge_and_branch): Likewise.
6984
6985 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6986
6987         PR middle-end/48367
6988         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6989         calculation.
6990
6991 2011-03-30  Jeff Law  <law@redhat.com>
6992
6993         * PR bootstrap/48371
6994         * reload1.c (reload): Fix botch in last change.
6995
6996         * reload.h (struct reload): Fix typo introduced in last change.
6997
6998 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6999
7000         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7001         Undocumented.  Remove help text.
7002         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7003         -mhard-float.
7004
7005 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7006
7007         * doc/options.texi (NegativeAlias): Document.
7008         (Alias): Mention NegativeAlias.
7009         * opt-functions.awk: Handle NegativeAlias.
7010         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7011         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7012         * opts.h (CL_NEGATIVE_ALIAS): Define.
7013         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7014         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7015         OPT_mspe_.
7016         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7017         Alias entries.
7018         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7019         mno-spe and mno-isel instead of mspe=no and -misel=no.
7020
7021 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7022
7023         * common.opt (fdebug-types-section): New flag.
7024         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7025         * dwarf2out.c (use_debug_types): New define.
7026         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7027         (print_die): Guard output of type unit signatures using
7028         use_debug_types.
7029         (build_abbrev_table): Replace assert of dwarf_version >= 4
7030         with assert on use_debug_types.
7031         (size_of_die): Likewise.
7032         (unmark_dies): Likewise.
7033         (value_format): Decide AT_ref_external form on use_debug_types.
7034         (output_die): Replace dwarf_version version check guard with
7035         use_debug_types where appropriate.
7036         (modified_type_die): Likewise.
7037         (gen_reference_type_die): Likewise.
7038         (dwarf2out_start_source_file): Likewise.
7039         (dwarf2out_end_source_file): Likewise.
7040         (prune_unused_types_walk_attribs): Likewise.
7041         (dwarf2out_finish): Likewise.
7042
7043 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7044
7045         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7046
7047 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7048
7049         PR rtl-optimization/48332
7050         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7051         mode of input operand N and modeN to its actual mode.
7052
7053 2011-03-30  Jeff Law  <law@redhat.com>
7054
7055         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7056         define accessor macro.
7057         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7058         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7059         (reg_equiv_init): Likewise.
7060         (reg_equivs_size): New variable.
7061         (reg_equiv_init_size): Remove.
7062         (allocate_initial_values): Move prototype to here from....
7063         * integrate.h (allocate_initial_values): Remove prototype.
7064         * integrate.c: Include reload.h.
7065         (allocate_initial_values): Corresponding changes.
7066         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7067         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7068         (update_equiv_regs): Corresponding changes.
7069         (ira): Corresponding changes.
7070         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7071         (push_secondary_reload): Corresponding changes.
7072         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7073         (make_memloc, find_reloads_address): Corresponding changes.
7074         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7075         (find_reloads_address_1): Corresponding changes.
7076         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7077         (refers_to_regno_for_reload_p): Corresponding changes.
7078         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7079         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7080         * reload1.c: Include ggc.h.
7081         (grow_reg_equivs): New function.
7082         (replace_pseudos_in, reload): Corresponding changes.
7083         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7084         (eliminate_regs_1, elimination_effects): Corresponding changes.
7085         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7086         (delete_output_reload): Likewise.
7087         * caller-save.c (mark_referenced_regs): Corresponding changes.
7088         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7089         * frv/predicates.md (frv_load_operand): Corresponding changes.
7090         * microblaze/microblaze.c (double_memory_operand): Corresponding
7091         changes.
7092         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7093         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7094         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7095         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7096         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7097         changes.
7098         * pa/pa.c (emit_move_sequence): Corresponding changes.
7099         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7100
7101 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7102
7103         PR target/47551
7104         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7105         structure modes.  Don't check neon_vector_mem_operand for
7106         vector or structure modes.
7107
7108 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7109             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7110
7111         PR target/43590
7112         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7113         operand 1 and reshuffle the operands to match.
7114         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7115
7116 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7117
7118         PR driver/48208
7119         * config/c.opt (F): Added 'Driver' to -F option.
7120
7121         PR driver/48260
7122         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7123           handler function.
7124         * config/darwin.opt: Added '-arch' option.
7125
7126 2011-03-30  Nick Clifton  <nickc@redhat.com>
7127
7128         * config/rx/rx.md: Add peepholes and patterns to combine
7129         extending loads and simple arithmetic instructions.
7130         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7131         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7132         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7133         modes to use pre-decrement and post-increment addressing.
7134         (rx_is_restricted_memory_address): Add range checking of REG+INT
7135         addresses.
7136         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7137         (rx_memory_move_cost): Adjust cost of stores.
7138         (rx_adjust_insn_length): New function.
7139
7140 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7141
7142         PR c/48305
7143         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7144         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7145         matching arg00/arg01 types.
7146
7147 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7148
7149         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7150         last_location to UNKNOWN_LOCATION.
7151
7152 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7153
7154         PR target/48349
7155         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7156         FLOAT_SSE_REGS.
7157
7158 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7159             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7160
7161         PR bootstrap/48337
7162         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7163         Init(PROCESSOR_V7).
7164         (sparc_cpu): Likewise.
7165         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7166         PROCESSOR_V7.
7167
7168 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7169
7170         PR target/48336
7171         PR middle-end/48342
7172         PR rtl-optimization/48345
7173         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7174         hard regs for given mode from profitable regs when doing secondary
7175         allocation.
7176
7177 2011-03-29  Jeff Law  <law@redhat.com>
7178
7179         PR bootstrap/48327
7180         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7181         do_not_duplicate field.
7182         (lookup_redirection_data): Corresponding changes.
7183         (create_duplicates): Always create a template block.
7184         (redirect_edges): Remove code which reused the original block
7185         when it was going to become unreachable code.
7186         (thread_block): Don't set do_not_duplicate field.
7187
7188 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7189
7190         * lto-opts.c (register_user_option_p, lto_register_user_option):
7191         Make type argument unsigned.
7192         * lto-streamer.h (lto_register_user_option): Make type argument
7193         unsigned.
7194         * opth-gen.awk: Make CL_* macros unsigned.
7195         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7196         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7197         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7198         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7199         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7200         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7201         (find_opt): Make lang_mask argument unsigned.
7202
7203 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7204
7205         PR rtl-optimization/48331
7206         PR rtl-optimization/48334
7207         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7208         for any used algorithm.
7209
7210 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7211
7212         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7213         to parent_max.
7214
7215 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7216
7217         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7218         (alpha_option_override): Don't set alpha_sr_alias_set.
7219         (emit_frame_store_1): Use gen_frame_mem rather than calling
7220         set_mem_alias_set.
7221         (alpha_expand_epilogue): Ditto.
7222
7223 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7224
7225         PR tree-optimization/48290
7226         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7227         vectorization, check that relevant phis in the basic block after
7228         the inner loop are really inner loop's exit phis.
7229
7230 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7231
7232         PR debug/48190
7233         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7234         (cached_dw_loc_list_def): New structure.
7235         (cached_dw_loc_list): New typedef.
7236         (cached_dw_loc_list_table): New variable.
7237         (cached_dw_loc_list_table_hash): New function.
7238         (cached_dw_loc_list_table_eq): Likewise.
7239         (add_location_or_const_value_attribute): Take a bool cache_p.
7240         Cache the list when the parameter is true.
7241         (gen_formal_parameter_die): Update caller.
7242         (gen_variable_die): Likewise.
7243         (dwarf2out_finish): Likewise.
7244         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7245         while generating debug info for the decl.
7246         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7247         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7248         (resolve_addr): Cache the result of resolving a chain of
7249         location lists.
7250
7251 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7252
7253         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7254         conflict object hard regset nodes have intersecting hard reg sets.
7255
7256         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7257         after regstat_init_n_sets_and_refs.
7258
7259         * ira.c: Add more comments at the top.
7260         (setup_stack_reg_pressure_class, setup_pressure_classes):
7261         Add comments how we compute the register pressure classes.
7262         (setup_allocno_and_important_classes): Add more comments.
7263         (setup_class_translate_array, reorder_important_classes)
7264         (setup_reg_class_relations): Add comments.
7265
7266         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7267         start of the file.
7268
7269         * ira-color.c: Add 2011 to the Copyright line.
7270         (assign_hard_reg):  Add more comments.
7271         (improve_allocation): Ditto.
7272
7273         * ira-costs.c: Add 2011 to the Copyright line.
7274         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7275         comments.
7276         (setup_regno_cost_classes_by_mode): Ditto.
7277
7278         Initial patches from ira-improv branch:
7279
7280         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7281
7282         * ira-build.c (ira_create_object): Remove initialization of
7283         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7284         (ira_create_allocno): Remove initialization of
7285         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7286         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7287         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7288         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7289         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7290         Initialize ALLOCNO_ADD_DATA.
7291         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7292         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7293         ALLOCNO_REG.
7294         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7295         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7296
7297         * ira.c (ira_reallocate): Remove.
7298         (setup_pressure_classes): Call
7299         ira_init_register_move_cost_if_necessary.  Use
7300         ira_register_move_cost instead of ira_get_register_move_cost.
7301         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7302         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7303
7304         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7305         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7306         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7307         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7308         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7309         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7310         Fix formatting.
7311         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7312         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7313         (struct allocno_color_data): New.
7314         (allocno_color_data_t): New typedef.
7315         (allocno_color_data): New definition.
7316         (ALLOCNO_COLOR_DATA): New macro.
7317         (struct object_color_data): New.
7318         (object_color_data_t): New typedef.
7319         (object_color_data): New definition.
7320         (OBJECT_COLOR_DATA): New macro.
7321         (update_copy_costs, calculate_allocno_spill_cost): Call
7322         ira_init_register_move_cost_if_necessary.  Use
7323         ira_register_move_cost instead of ira_get_register_move_cost.
7324         (move_spill_restore, update_curr_costs): Ditto.
7325         (allocno_spill_priority): Make it inline.
7326         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7327         (struct coalesce_data, coalesce_data_t): New.
7328         (allocno_coalesce_data): New definition.
7329         (ALLOCNO_COALESCE_DATA): New macro.
7330         (merge_allocnos, coalesced_allocno_conflict_p): Use
7331         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7332         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7333         (coalesce_allocnos): Ditto.
7334         (setup_coalesced_allocno_costs_and_nums): Ditto.
7335         (collect_spilled_coalesced_allocnos): Ditto.
7336         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7337         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7338         (coalesce_spill_slots): Ditto.
7339         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7340         free allocno_coalesce_data.
7341
7342         * ira-conflicts.c: Fix formatting.
7343         (process_regs_for_copy): Call
7344         ira_init_register_move_cost_if_necessary.  Use
7345         ira_register_move_cost instead of ira_get_register_move_cost.
7346         (build_object_conflicts): Optimize.
7347
7348         * ira-costs.c (record_reg_classes): Optimize.  Call
7349         ira_init_register_move_cost_if_necessary.  Use
7350         ira_register_move_cost, ira_may_move_in_cost, and
7351         ira_may_move_out_cost instead of ira_get_register_move_cost and
7352         ira_get_may_move_cost.
7353         (record_address_regs): Ditto.
7354         (scan_one_insn): Optimize.
7355         (find_costs_and_classes): Optimize.
7356         (process_bb_node_for_hard_reg_moves): Call
7357         ira_init_register_move_cost_if_necessary.  Use
7358         ira_register_move_cost instead of ira_get_register_move_cost.
7359
7360         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7361         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7362         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7363         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7364         definitions.
7365         (ira_initiate_emit_data, ira_finish_emit_data)
7366         (create_new_allocno): New functions.
7367         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7368         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7369         Use ira_register_move_cost instead of ira_get_register_move_cost.
7370
7371         * ira-int.h: Fix some comments.
7372         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7373         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7374         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7375         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7376         add_data.
7377         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7378         bitfield after mode.  Make hard_regno a short int.  Make
7379         hard_regno short.  Remove first_coalesced_allocno and
7380         next_coalesced_allocno.  Move mem_optimized_dest_p,
7381         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7382         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7383         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7384         temp, colorable_p.  Add new member add_data.
7385         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7386         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7387         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7388         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7389         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7390         (ALLOCNO_ADD_DATA): New macro.
7391         (ira_emit_data_t): New typedef.
7392         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7393         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7394         from struct ira_allocno.
7395         (ALLOCNO_EMIT_DATA): New macro.
7396         (ira_allocno_emit_data, allocno_emit_reg): New.
7397         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7398         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7399         (OBJECT_ADD_DATA): New macro.
7400         (ira_reallocate): Remove.
7401         (ira_initiate_emit_data, ira_finish_emit_data): New.
7402         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7403         (ira_init_register_move_cost_if_necessary): New.
7404         (ira_object_conflict_iter_next): Merge into
7405         ira_object_conflict_iter_cond.
7406         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7407
7408         * ira-live.c (process_single_reg_class_operands): Call
7409         ira_init_register_move_cost_if_necessary.  Use
7410         ira_register_move_cost instead of ira_get_register_move_cost.
7411
7412         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7413
7414         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7415
7416         * ira-costs.c: Fix formatting.
7417         (cost_classes, cost_classes_num): Remove.
7418         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7419         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7420         (cost_classes_del, cost_classes_htab): New.
7421         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7422         (initiate_regno_cost_classes, setup_cost_classes): New.
7423         (setup_regno_cost_classes_by_aclass): New.
7424         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7425         (record_reg_classes): Use regno_cost_classes instead of
7426         cost_classes.  Move checking opposite operand up.
7427         (record_address_regs): Use regno_cost_classes
7428         instead of cost_classes.
7429         (scan_one_insn): Ditto.  Use always general register.
7430         (print_allocno_costs): Use regno_cost_classes instead of
7431         cost_classes.
7432         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7433         (find_costs_and_classes): Set up cost classes for each registers.
7434         Use also their mode for this.  Use regno_cost_classes instead of
7435         cost_classes.
7436         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7437         cost_classes.
7438         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7439         (ira_costs, ira_set_pseudo_classes): Call
7440         initiate_regno_cost_classes and finish_regno_cost_classes.
7441
7442         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7443
7444         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7445
7446         * target.def (ira_cover_classes): Remove.
7447
7448         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7449
7450         * doc/tm.texi.in: Ditto.
7451
7452         * ira-conflicts.c: Remove mentioning cover classes from the file.
7453         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7454         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7455
7456         * targhooks.c (default_ira_cover_classes): Remove.
7457
7458         * targhooks.h (default_ira_cover_classes): Ditto.
7459
7460         * haifa-sched.c: Remove mentioning cover classes from the file.
7461         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7462         ira_pressure_classes and ira_pressure_classes_num instead of
7463         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7464         sched_regno_pressure_class instead of sched_regno_cover_class.
7465         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7466         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7467
7468         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7469         classes from the file.
7470         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7471         (struct object_hard_regs, struct object_hard_regs_node): New.
7472         (struct ira_object): New members profitable_hard_regs,
7473         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7474         (struct ira_allocno): Rename cover_class to aclass.  Rename
7475         cover_class_cost and updated_cover_class_cost to class_cost and
7476         updated_class_cost.  Remove splay_removed_p and
7477         left_conflict_size.  Add new members colorable_p.
7478         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7479         (ALLOCNO_COLORABLE_P): New macro.
7480         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7481         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7482         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7483         (OBJECT_...): Rename parameter C to O.
7484         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7485         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7486         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7487         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7488         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7489         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7490         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7491         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7492         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7493         x_ira_reg_class_subunion.
7494         (ira_max_memory_move_cost, ira_max_register_move_cost)
7495         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7496         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7497         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7498         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7499         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7500         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7501         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7502         (ira_tune_allocno_costs_and_cover_classes): Rename to
7503         ira_tune_allocno_costs.
7504         (ira_debug_hard_regs_forest): New.
7505         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7506         (ira_object_conflict_iter_next): Fix comments.
7507         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7508         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7509         cover_class to aclass.
7510         (ira_allocate_and_accumulate_costs): Ditto.
7511         (ira_allocate_and_set_or_copy_costs): Ditto.
7512
7513         * opts.c (decode_options): Remove ira_cover_class check.
7514
7515         * ira-color.c: Remove mentioning cover classes from the file.  Use
7516         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7517         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7518         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7519         (splay-tree.h): Remove include.
7520         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7521         before copy_freq_compare_func.
7522         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7523         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7524         New definitions.
7525         (hard_regs_roots, hard_regs_node_vec): Ditto.
7526         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7527         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7528         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7529         (create_new_object_hard_regs_node): Ditto.
7530         (add_new_object_hard_regs_node_to_forest): Ditto.
7531         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7532         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7533         Ditto.
7534         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7535         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7536         (remove_unused_object_hard_regs_nodes): Ditto.
7537         (enumerate_object_hard_regs_nodes): Ditto.
7538         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7539         (object_hard_regs_subnode_t): Ditto.
7540         (struct object_hard_regs_subnode): Ditto.
7541         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7542         (setup_object_hard_regs_subnode_index): Ditto.
7543         (get_object_hard_regs_subnodes_num): Ditto.
7544         (form_object_hard_regs_nodes_forest): Ditto.
7545         (finish_object_hard_regs_nodes_tree): Ditto.
7546         (finish_object_hard_regs_nodes_forest): Ditto.
7547         (allocnos_have_intersected_live_ranges_p): Rename to
7548         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7549         (pseudos_have_intersected_live_ranges_p): Rename to
7550         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7551         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7552         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7553         (update_copy_costs): Remove assert.  Skip cost update if the hard
7554         reg does not belong the class.
7555         (assign_hard_reg): Process only profitable hard regs.
7556         (uncolorable_allocnos_num): Make it scalar.
7557         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7558         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7559         and ira_reg_class_max_nregs.
7560         (bucket_allocno_compare_func): Check frequency first.
7561         (sort_bucket): Add compare function as a parameter.
7562         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7563         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7564         (push_allocno_to_stack): Rewrite for checking new allocno
7565         colorability.
7566         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7567         (push_only_colorable): Pass new parameter to sort_bucket.
7568         (push_allocno_to_spill): Remove.
7569         (allocno_spill_priority_compare): Make it inline and rewrite.
7570         (splay_tree_allocate, splay_tree_free): Remove.
7571         (allocno_spill_sort_compare): New function.
7572         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7573         build and use splay tree.  Choose first allocno in uncolorable
7574         allocno bucket to spill.  Remove setting spill cost.
7575         (all_conflicting_hard_regs): Remove.
7576         (setup_allocno_available_regs_num): Check only profitable hard
7577         regs.  Print info about hard regs nodes.
7578         (setup_allocno_left_conflicts_size): Remove.
7579         (put_allocno_into_bucket): Don't call
7580         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7581         (improve_allocation): New.
7582         (color_allocnos): Call setup_profitable_hard_regs,
7583         form_object_hard_regs_nodes_forest, improve_allocation,
7584         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7585         (print_loop_title): Use pressure classes.
7586         (color_allocnso): Ditto.
7587         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7588         and allocnos_for_spilling.
7589         (ira_sort_regnos_for_alter_reg): Don't setup members
7590         {first,next}_coalesced_allocno.
7591         (color): Remove allocating and freeing removed_splay_allocno_vec.
7592         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7593         prohibited_class_mode_regs.
7594
7595         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7596         formatting.
7597         (update_allocno_pressure_excess_length): Use pressure classes.
7598         (inc_register_pressure, dec_register_pressure): Check for pressure
7599         class.
7600         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7601         pressure class.  Use ira_reg_class_nregs instead of
7602         ira_reg_class_max_nregs.
7603         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7604         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7605         (single_reg_class): Use ira_reg_class_nregs instead of
7606         ira_reg_class_max_nregs.
7607         (process_bb_node_lives): Use pressure classes.
7608
7609         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7610         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7611         (change_loop): Use pressure classes.
7612         (modify_move_list): Call ira_set_allocno_class instead of
7613         ira_set_allocno_cover_class.
7614
7615         * ira-build.c: Remove mentioning cover classes from the file.  Use
7616         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7617         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7618         ALLOCNO_UPDATED_CLASS_COST instead of
7619         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7620         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7621         (ira_create_allocno): Remove initialization of
7622         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7623         ALLOCNO_COLORABLE_P.
7624         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7625         Update conflict regs for the objects.
7626         (create_cap_allocno): Remove assert.  Don't propagate
7627         ALLOCNO_AVAILABLE_REGS_NUM.
7628         (ira_free_allocno_costs): New function.
7629         (finish_allocno): Change a part of code into call of
7630         ira_free_allocno_costs.
7631         (low_pressure_loop_node_p): Use pressure classes.
7632         (object_range_compare_func): Don't compare classes.
7633         (setup_min_max_conflict_allocno_ids): Ditto.
7634
7635         * loop-invariant.c: Remove mentioning cover classes from the file.
7636         Use ira_pressure_classes and ira_pressure_classes_num instead of
7637         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7638         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7639         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7640         Use reg_allocno_class instead of reg_cover_class.
7641         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7642         STACK_REG_COVER_CLASS.
7643         (get_regno_cover_class): Rename to get_regno_pressure_class.
7644         (move_loop_invariants): Initialize and finalize regstat.
7645
7646         * ira.c: Remove mentioning cover classes from the file.  Add
7647         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7648         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7649         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7650         setup_class_subset_and_memory_move_costs.
7651         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7652         (setup_cover_and_important_classes): Rename to
7653         setup_allocno_and_important_classes.
7654         (setup_class_translate_array): New.
7655         (setup_class_translate): Call it for allocno and pressure classes.
7656         (cover_class_order): Rename to allocno_class_order.
7657         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7658         of ira_class_translate.
7659         (reorder_important_classes): Set up ira_important_class_nums.
7660         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7661         (print_class_cover): Rename to print_classes.  Add parameter.
7662         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7663         Print pressure classes too.
7664         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7665         setup_reg_subclasses.
7666         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7667         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7668         (setup_prohibited_class_mode_regs): Use
7669         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7670         (clarify_prohibited_class_mode_regs): New function.
7671         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7672         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7673         (ira_init_once): Initialize them.
7674         (free_register_move_costs): Process them.
7675         (ira_init): Move calls of find_reg_classes and
7676         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7677         Call clarify_prohibited_class_mode_regs.
7678         (ira_no_alloc_reg): Remove.
7679         (too_high_register_pressure_p): Use pressure classes.
7680
7681         * sched-deps.c: Remove mentioning cover classes from the file.
7682         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7683         ira_pressure_classes and ira_pressure_classes_num instead of
7684         ira_reg_class_cover_size and ira_reg_class_cover.
7685         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7686         sched_regno_pressure_class instead of sched_regno_cover_class.
7687         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7688         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7689
7690         * ira.h: Add 2010 to Copyright.
7691         (ira_no_alloc_reg): Remove external.
7692         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7693         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7694         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7695         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7696         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7697         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7698         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7699         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7700         x_ira_no_alloc_regs.
7701         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7702         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7703         ira_allocno_classes_num and ira_allocno_classes.
7704         (ira_class_translate): Rename to ira_allocno_class_translate.
7705         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7706         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7707         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7708         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7709         (ira_no_alloc_regs): New.
7710
7711         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7712         classes from the file.  Use ALLOCNO_CLASS instead of
7713         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7714         ALLOCNO_COVER_CLASS_COST.
7715         (regno_cover_class): Rename to regno_aclass.
7716         (record_reg_classes): Use ira_reg_class_subunion instead of
7717         ira_reg_class_union.
7718         (record_address_regs): Check overflow.
7719         (scan_one_insn): Ditto.
7720         (print_allocno_costs): Print total mem cost fore regional allocation.
7721         (print_pseudo_costs): Use REG_N_REFS.
7722         (find_costs_and_classes): Use classes intersected with them on the
7723         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7724         ira_reg_class_union.  Use ira_allocno_class_translate and
7725         regno_aclass instead of ira_class_translate and regno_cover_class.
7726         Modify code for finding regno_aclass.  Setup preferred classes for
7727         the next pass.
7728         (setup_allocno_cover_class_and_costs): Rename to
7729         setup_allocno_class_and_costs.  Use regno_aclass instead of
7730         regno_cover_class.  Use ira_set_allocno_class instead of
7731         ira_set_allocno_cover_class.
7732         (init_costs, finish_costs): Use regno_aclass instead of
7733         regno_cover_class.
7734         (ira_costs): Use setup_allocno_class_and_costs instead of
7735         setup_allocno_cover_class_and_costs.
7736         (ira_tune_allocno_costs_and_cover_classes): Rename to
7737         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7738         by processing objects.  Use ira_reg_class_max_nregs instead of
7739         ira_reg_class_nregs.
7740
7741         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7742
7743         * sched-int.h: Remove mentioning cover classes from the file.
7744         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7745
7746         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7747         classes from the file.
7748         (struct reg_pref): Rename coverclass into allocnoclass.
7749         (reg_cover_class): Rename to reg_allocno_class.
7750
7751         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7752
7753         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7754
7755         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7756
7757         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7758
7759         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7760
7761         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7762
7763         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7764
7765         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7766
7767         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7768
7769         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7770
7771         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7772         (i386_ira_cover_classes): Ditto.
7773
7774         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7775
7776         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7777
7778         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7779
7780         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7781
7782         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7783
7784         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7785
7786         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7787         (mips_ira_cover_classes): Ditto.
7788
7789         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7790
7791         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7792
7793         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7794
7795         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7796
7797         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7798
7799         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7800         (IRA_COVER_CLASSES_VSX): Ditto.
7801
7802         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7803         (rs6000_ira_cover_classes): Ditto.
7804
7805         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7806
7807         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7808
7809         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7810
7811         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7812
7813         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7814
7815         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7816
7817         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7818
7819         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7820
7821         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7822
7823         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7824
7825 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7826
7827         PR debug/48253
7828         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7829         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7830         dw_fde_unlikely_section_end_label, cold_in_std_section,
7831         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7832         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7833         fields.
7834         (output_fde): Use dw_fde_second_{begin,end} if second is
7835         true, otherwise dw_fde_{begin,end}.
7836         (output_call_frame_info): Test dw_fde_second_begin != NULL
7837         instead of dw_fde_switched_sections.
7838         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7839         fields, initialize new fields.  Initialize in_std_section
7840         unconditionally from the first partition.
7841         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7842         dw_fde_second_begin is non-NULL.
7843         (dwarf2out_switch_text_section): Stop initializing removed
7844         dw_fde_struct fields, initialize new fields, initialize
7845         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7846         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7847         (struct var_loc_list_def): Add last_before_switch field.
7848         (arange_table, arange_table_allocated, arange_table_in_use,
7849         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7850         (size_of_aranges): Count !in_std_section and !second_in_std_section
7851         hunks in fdes, instead of looking at arange_table_in_use.
7852         (output_aranges): Add aranges_length argument, don't call
7853         size_of_aranges here.  Instead of using aranges_table*
7854         emit ranges for fdes when !in_std_section resp.
7855         !second_in_std_section.
7856         (dw_loc_list): Break ranges crossing section switch.
7857         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7858         use dw_fde_second_end instead of dw_fde_end as end of last range.
7859         (gen_subprogram_die): Don't call add_arange.  Use
7860         dw_fde_{begin,end} for first partition and if switched
7861         section dw_fde_second_{begin,end} for the second.
7862         (var_location_switch_text_section_1,
7863         var_location_switch_text_section): New functions.
7864         (dwarf2out_begin_function): Initialize cold_text_section even
7865         when function_section () isn't text_section.
7866         (prune_unused_types): Don't walk arange_table.
7867         (dwarf2out_finish): Don't needlessly test
7868         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7869         If info_section_emitted, call size_of_aranges and if it indicates
7870         non-empty .debug_aranges, call output_aranges with the computed
7871         size.  Stop using removed dw_fde_struct fields, use
7872         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7873         for second.
7874
7875         PR debug/48203
7876         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7877         create ENTRY_VALUE if incoming or address of incoming's MEM
7878         is a hard REG.
7879         * dwarf2out.c (mem_loc_descriptor): Don't emit
7880         DW_OP_GNU_entry_value of DW_OP_fbreg.
7881         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7882         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7883         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7884         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7885         ENTRY_VALUE_EXPs.
7886         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7887         is a REG_P or MEM_P with REG_P address, compute hash directly
7888         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7889         (preserve_only_constants): Don't clear VALUES forwaring
7890         ENTRY_VALUE to some other VALUE.
7891
7892 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7893
7894         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7895         instead of GEN_INT.
7896
7897 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7898
7899         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7900         block before expanding the statement.
7901         (expand_gimple_stmt_1): Likewise.  Set them here...
7902         (expand_gimple_stmt): ...and not here.  Tidy.
7903         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7904         unknown.
7905
7906 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7907
7908         * Makefile.in: New rule for cprop.o.
7909         * gcse.c: Move constant/copy propagation to cprop.c.
7910         (compute_local_properties): Only handle expression tables.
7911         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7912         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7913         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7914         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7915         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7916         compute_cprop_data, find_used_regs, try_replace_reg,
7917         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7918         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7919         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7920         find_bypass_set, reg_killed_on_edge, bypass_block,
7921         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7922         execute_rtl_cprop, pass_rtl_cprop): Move to...
7923         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7924         moved from gcse.c to here with minor cleanups in duplicated code.
7925
7926 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7927
7928         * config/i386/i386.c (flag_opts): Fix a typo in
7929         -mavx256-split-unaligned-store.
7930
7931 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7932
7933         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7934         LIBCALL_VALUE): Remove macros.
7935         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7936         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7937         (h8300_function_value, h8300_libcall_value,
7938         h8300_function_value_regno_p): New functions.
7939
7940 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7941
7942         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7943
7944 2011-03-28  Jeff Law  <law@redhat.com>
7945
7946         * tree-ssa-threadupdate.c (redirect_edges): Call
7947         create_edge_and_update_destination_phis as needed.
7948         (create_edge_and_update_destination_phis): Accept new BB argument.
7949         All callers updated.
7950         (thread_block): Do not update the profile when threading around
7951         intermediate blocks.
7952         (thread_single_edge): Likewise.
7953         (determine_bb_domination_status): If BB is not a successor of the
7954         loop header, return NONDOMINATING.
7955         (register_jump_thread): Note when we register a jump thread around
7956         an intermediate block.
7957         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7958         (thread_across_edge): Use it.
7959
7960 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7961
7962         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7963         when for_return is 2.
7964
7965 2011-03-28  Jeff Law  <law@redhat.com>
7966
7967         * var-tracking.c (canonicalize_values_mark): Delete unused
7968         lhs assignment.
7969         (canonicalize_values_star, set_variable_part): Likewise.
7970         (clobber_variable_part, delete_variable_part): Likewise.
7971
7972 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7973
7974         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7975
7976 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7977
7978         * tree-inline.c (expand_call_inline): Do not check that destination
7979         node is analyzed.
7980         (optimize_inline_calls): Assert that destination node is analyzed.
7981         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7982         not call tree_lowering_passes.
7983         * cgraph.h (cgraph_analyze_function): Declare.
7984         * cgraphunit.c (cgraph_analyze_function): Make public.
7985
7986 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7987
7988         * config/sparc/sparc-opts.h: New.
7989         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7990         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7991         (sparc_option_override): Store processor_type enumeration rather
7992         than string in cpu_default.  Remove name and enumeration from
7993         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7994         without using sparc_select.  Use target_flags_explicit instead of
7995         fpu_option_set.
7996         * config/sparc/sparc.h (enum processor_type): Move to
7997         sparc-opts.h.
7998         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7999         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8000         HeaderInclude entry.
8001         (mcpu=, mtune=): Use Var and Enum.
8002         (sparc_processor_type): New Enum and EnumValue entries.
8003
8004 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8005             Iain Sandoe  <iains@gcc.gnu.org>
8006
8007         PR target/48245
8008         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8009
8010 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8011
8012         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8013         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8014         Insert new statements at it in lieu of STMT.
8015         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8016         * tree-vect-stmts.c (vectorizable_store): Likewise.
8017         (vectorizable_load): Likewise.
8018
8019 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8020
8021         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8022         (divtf3): Ditto.
8023         (multf3): Ditto.
8024         (subtf3): Ditto.
8025
8026 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8027
8028         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8029         unaligned 256bit load/store.
8030         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8031         (*avx_movdqu<avxmodesuffix>): Likewise.
8032
8033 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8034
8035         PR target/48288
8036         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8037         * config/pa/pa.md (iordi3): Use new predicate in expander.
8038         (iorsi3): Likewise.
8039
8040 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8041
8042         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8043         FUNCTION_VALUE_REGNO_P): Remove macros.
8044         * config/mips/mips-protos.h (mips_function_value): Remove.
8045         * config/mips/mips.c (mips_function_value): Rename to...
8046         (mips_function_value_1): ... this. Make static.  Handle receiving
8047         the function type in 'fn_decl_or_type' argument.
8048         (mips_function_value, mips_libcall_value,
8049         mips_function_value_regno_p): New function.
8050         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8051         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8052
8053 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8054
8055         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8056         and -mavx256-split-unaligned-store.
8057         (ix86_option_override_internal): Split 32-byte AVX unaligned
8058         load/store by default.
8059         (ix86_avx256_split_vector_move_misalign): New.
8060         (ix86_expand_vector_move_misalign): Use it.
8061
8062         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8063         -mavx256-split-unaligned-store.
8064
8065         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8066         256bit load/store.  Generate unaligned store on misaligned memory
8067         operand.
8068         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8069         256bit load/store.
8070         (*avx_movdqu<avxmodesuffix>): Likewise.
8071
8072         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8073         -mavx256-split-unaligned-store.
8074
8075 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8076
8077         PR target/38598
8078         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8079         Update commentary.
8080
8081 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8082
8083         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8084         opno arguments with an expand_operand.  Use create_input_operand.
8085         (mips_prepare_builtin_target): Delete.
8086         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8087         functions.
8088         (mips_expand_builtin_direct): Use create_output_operand and
8089         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8090         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8091         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8092
8093 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8094
8095         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8096         function.
8097         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8098
8099 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8100
8101         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8102         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8103         basic blocks and call commit_edge_insertions directly.
8104         (fixup_abnormal_edges): Move from here to...
8105         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8106         on the edges and return whether some have actually been inserted.
8107         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8108         compensation code.
8109
8110 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8111
8112         PR rtl-optimization/48144
8113         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8114         (merge_expr_data): ... here.
8115         (av_set_intersect): Rename to av_set_code_motion_filter.
8116         Update all callers.  Call merge_history_vect when an expression
8117         is found in both sets.
8118         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8119
8120 2011-03-26  Alan Modra  <amodra@gmail.com>
8121
8122         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8123         cmodel medium addresses.
8124         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8125         64-bit gpr loads and stores.
8126         (rs6000_secondary_reload_ppc64): New function.
8127         * config/rs6000/rs6000-protos.h: Declare it.
8128         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8129
8130 2011-03-26  Alan Modra  <amodra@gmail.com>
8131
8132         PR target/47487
8133         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8134         GNU Go in traceback table.
8135
8136 2011-03-25  Richard Henderson  <rth@redhat.com>
8137
8138         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8139         if there are exactly 6 operands.
8140         (set_storage_via_setmem): Similarly.
8141
8142 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8143
8144         * collect2.c (write_c_file_stat): Handle backslash
8145         as right-hand directory separator.
8146         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8147         checking just for slash.
8148         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8149         instead of checking for trailing slash.
8150         * gcc.c (record_temp_file): Use filename_cmp instead
8151         of strcmp.
8152         (do_spec_1): Likewise.
8153         (replace_outfile_spec_function): Likewise.
8154         (is_directory): Use filename_ncmp instead of strncmp.
8155         (print_multilib_info): Likewise.
8156         * gcov.c (find_source): Use filename_cmp instead
8157         instead of strcmp.
8158         (make_gcov_file_name): Fix order of slash/backslash
8159         checks.
8160         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8161         (add_standard_paths): Likewise.
8162         * mips-tfile.c (saber_stop): Handle backslash.
8163         * prefix.c (update_path): Use filename_ncmp instead of
8164         strncmp.
8165         * profile.c (output_location): Use filename_cmp instead
8166         of strcmp.
8167         * read-md.c (handle_toplevel_file): Handle backslash.
8168         * tlink.c (frob_extension):  Likewise.
8169         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8170         strcmp.
8171         * tree-dump.c (dequeue_and_dump): Handle backslash.
8172         * tree.c (get_file_function_name): Likewise.
8173         * gengtype.c (read_input_list): Likewise.
8174         (get_file_realbasename): Likewise.
8175         (get_output_file_with_visibility): Use filename_cmp
8176         instead of strcmp.
8177
8178 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8179
8180         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8181         case to VFPv1.
8182
8183 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8184
8185         * fold-const.c (expr_location_or): New function.
8186         (fold_truth_not_expr): Call it.
8187
8188 2011-03-25  Jeff Law  <law@redhat.com>
8189
8190         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8191         va_end.
8192         * c-family/c-common.c (def_fn_type): Likewise.
8193         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8194         * emit-rtl.c (gen_rtvec): Likewise.
8195         * lto/lto-lang.c (def_fn_type): Likewise.
8196
8197 2011-03-25  Richard Guenther  <rguenther@suse.de>
8198
8199         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8200         also generate copies.
8201         (fini_copy_prop): Handle constant values properly.
8202
8203 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8204
8205         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8206         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8207         (hash_loc_operands, compare_loc_operands): Handle
8208         DW_OP_GNU_entry_value.
8209
8210 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8211
8212         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8213         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8214         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8215         comment and use macro TARGET_64BIT_MS_ABI instead.
8216         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8217         and change default behavior for 32-bit MS_ABI.
8218         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8219         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8220         32-bit, too.
8221         (ix86_cfun_abi): Likewise.
8222         (ix86_maybe_switch_abi): Adjust comment.
8223         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8224         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8225         instead of checking for SYSV_ABI.
8226         (ix86_nsaved_sseregs): Likewise.
8227         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8228         to 16 bytes.
8229         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8230         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8231         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8232         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8233         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8234
8235 2011-03-25  Richard Guenther  <rguenther@suse.de>
8236
8237         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8238         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8239         (verify_gimple): Remove.
8240         * tree-cfg.c (verify_gimple_call): Merge verification
8241         from verify_stmts.
8242         (verify_gimple_phi): Merge verification from verify_stmts.
8243         (verify_gimple_label): New function.
8244         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8245         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8246         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8247         (verify_stmts): Rename to verify_gimple_in_cfg.
8248         (verify_gimple_in_cfg): New function.
8249         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8250         * tree-ssa.c (verify_ssa): Likewise.
8251         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8252
8253 2011-03-25  Richard Guenther  <rguenther@suse.de>
8254
8255         * passes.c (init_optimization_passes): Add FRE pass after
8256         early SRA.
8257
8258 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8259             Andrew Stubbs  <ams@codesourcery.com>
8260
8261         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8262         for Cortex-A8.
8263         (arm_movdi_vfp_cortexa8): New pattern.
8264         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8265         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8266         instructions when tuning for Cortex-A8.  Set attribute "arch".
8267         * config/arm/arm.md: Move include arm-tune.md up a bit.
8268         (define_attr "arch"): Add "onlya8" and "nota8" values.
8269         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8270
8271 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8272
8273         PR bootstrap/48282
8274         Revert:
8275         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8276
8277         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8278         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8279         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8280         * passes.c (init_optimization_passes): Move
8281         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8282
8283 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8284
8285         * c-typeck.c (comptypes_internal): Replace target
8286         hook call of comp_type_attributes by version in tree.c file.
8287         * gimple.c (gimple_types_compatible_p_1): Likewise.
8288         * tree-ssa.c (useless_type_conversion_p): Likewise.
8289         * tree.c (build_type_attribute_qual_variant): Likewise.
8290         (attribute_value_equal): New static helper function.
8291         (comp_type_attributes): New function.
8292         (merge_attributes): Use attribute_value_equal for comparison.
8293         (attribute_list_contained): Likewise.
8294         * tree.h (comp_type_attributes): New prototype.
8295
8296 2011-03-25  Richard Guenther  <rguenther@suse.de>
8297
8298         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8299         of complex types at -O0.
8300         (verify_gimple_assign_binary): Likewise.
8301         (verify_gimple_assign_ternary): Likewise.
8302
8303 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8304
8305         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8306         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8307
8308 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8309
8310         PR debug/48041
8311         * dwarf2out.c (output_abbrev_section): Only write table when
8312         abbrev_die_table_in_use > 1.
8313
8314 2011-02-24  Richard Henderson  <rth@redhat.com>
8315
8316         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8317         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8318         (alpha_expand_unaligned_load_words): Use extql.
8319         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8320         (emit_insxl): Handle all modes for consistency.
8321
8322 2011-02-24  Richard Henderson  <rth@redhat.com>
8323
8324         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8325         (alpha_expand_unaligned_load): Likewise.
8326         (alpha_expand_unaligned_store): Likewise.
8327         (alpha_expand_unaligned_load_words): Likewise.
8328         (alpha_expand_unaligned_store_words): Likewise.
8329         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8330         (alpha_split_lock_test_and_set_12): Likewise.
8331         (print_operand, alpha_fold_builtin_extxx): Likewise.
8332         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8333         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8334         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8335         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8336         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8337         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8338         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8339         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8340         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8341         (extwl, extll, extql): Similarly.
8342         (inswh, inslh, insqh): Similarly.
8343         (mskbl, mskwl, mskll, mskql): Similarly.
8344         (mskwh, msklh, mskqh): Similarly.
8345
8346 2011-02-24  Richard Henderson  <rth@redhat.com>
8347
8348         * config/alpha/alpha.md (attribute isa): Add er, ner.
8349         (attribute enabled): Handle them.
8350         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8351
8352 2011-02-24  Richard Henderson  <rth@redhat.com>
8353
8354         * config/alpha/alpha.md (attribute isa): Add vms.
8355         (attribute enabled): Handle it.
8356         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8357         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8358         (*movtf): Rename from *movtf_internal for consistency.
8359         (*movsi): Merge with *movsi_nt_vms.
8360         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8361         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8362         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8363         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8364
8365 2011-02-24  Richard Henderson  <rth@redhat.com>
8366
8367         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8368         (extendqisi2, extendhisi2): Likewise.
8369         (extendqidi2): Simplify BWX/non-BWX expansions.
8370         (extendhidi2): Similarly.
8371
8372 2011-02-24  Richard Henderson  <rth@redhat.com>
8373
8374         * config/alpha/alpha.md (attribute isa): New.
8375         (attribute enabled): New.
8376         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8377         (zero_extendqisi2, zero_extendqidi2): Similarly.
8378         (zero_extendhisi2, zero_extendhidi2): Similarly.
8379         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8380
8381 2011-02-24  Richard Henderson  <rth@redhat.com>
8382
8383         * config/alpha/predicates.md (input_operand): Revert last change;
8384         update comment to mention 32-bit VMS rather than Windows.
8385
8386 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8387
8388         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8389         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8390         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8391         * passes.c (init_optimization_passes): Move
8392         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8393
8394 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8395
8396         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8397
8398 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8399
8400         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8401         correctly.
8402
8403 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8404
8405         PR debug/48204
8406         * simplify-rtx.c (simplify_const_unary_operation): Call
8407         real_convert when changing mode class with FLOAT_EXTEND.
8408
8409 2011-03-24  Nick Clifton  <nickc@redhat.com>
8410
8411         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8412         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8413         * config/rx/rx.c (rx_option_override): Set align_jumps,
8414         align_loops and align_labels if not set by the user.
8415         (rx_align_for_label): New function.
8416         (rx_max_skip_for_label): New function.
8417         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8418         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8419         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8420         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8421         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8422
8423 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8424
8425         PR rtl-optimization/48263
8426         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8427         and original commutative_p handling.  Use maybe_gen_insn.
8428
8429 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8430
8431         * reload.c (find_reloads_subreg_address): Add address_reloaded
8432         parameter and return true there if the full address has been
8433         reloaded.
8434         (find_reloads_toplev): Pass address_reloaded flag.
8435         (find_reloads_address_1): Don't use address_reloaded parameter.
8436
8437 2011-03-24  Jeff Law  <law@redhat.com>
8438
8439         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8440         unused variable "ann".
8441         (remove_unused_locals): Likewise.
8442
8443         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8444         statement.
8445
8446         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8447         after it is freed.
8448
8449 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8450
8451         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8452         for invalid symbolic addresses.
8453         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8454         larl operands.
8455
8456 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8457
8458         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8459         the argument in calls to fold_truth_not_expr.
8460
8461 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8462
8463         * tree.c (record_node_allocation_statistics): New function.
8464         (make_node_stat, copy_node_stat, build_string): Call it.
8465         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8466         (build1_stat, build_omp_clause): Likewise.
8467
8468 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8469
8470         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8471         last commit.
8472
8473 2011-03-24  Richard Guenther  <rguenther@suse.de>
8474
8475         PR tree-optimization/48271
8476         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8477         blocks that still exist.
8478
8479 2011-03-24  Richard Guenther  <rguenther@suse.de>
8480
8481         PR tree-optimization/48270
8482         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8483         not free datarefs before ddrs.
8484
8485 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8486
8487         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8488         from the address built for a reference with variable offset.
8489
8490 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8491
8492         PR target/48237
8493         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8494         alternatives that can be handled with movq or movabsq insn.
8495         (*movdf_internal): Disable for !TARGET_64BIT.
8496         (*movdf_internal_nointeger): Ditto.
8497         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8498
8499 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8500
8501         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8502         (FUNCTION_ARG_ADVANCE): Likewise.
8503         * tm.texi.in: Change references to them to hook references.
8504         * tm.texi: Regenerate.
8505         * targhooks.c (default_function_arg): Eliminate check for target macro.
8506         (default_function_incoming_arg): Likewise.
8507         (default_function_arg_advance): Likewise.
8508         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8509         (function_arg_advance): Likewise.
8510         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8511
8512 2011-03-24  Richard Guenther  <rguenther@suse.de>
8513
8514         PR middle-end/48269
8515         * tree-object-size.c (addr_object_size): Do not double-account
8516         for MEM_REF offsets.
8517
8518 2011-03-24  Diego Novillo  <dnovillo@google.com>
8519
8520         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8521         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8522         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8523         Update all users.
8524         (lto_input_string): Rename from input_string.  Make extern.
8525         Update all users.
8526         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8527         output_string_with_length.
8528         Output 0 to indicate a non-NULL string.  Update all callers to
8529         not emit 0.
8530         (lto_output_string): Rename from output_string.  Make extern.
8531         Update all users.
8532         (lto_output_decl_state_streams): Make extern.
8533         (lto_output_decl_state_refs): Make extern.
8534         * lto-streamer.h (lto_input_string): Declare.
8535         (lto_input_data_block): Declare.
8536         (lto_output_string): Declare.
8537         (lto_output_string_with_length): Declare.
8538         (lto_output_decl_state_streams): Declare.
8539         (lto_output_decl_state_refs): Declare.
8540
8541 2011-03-24  Richard Guenther  <rguenther@suse.de>
8542
8543         PR tree-optimization/46562
8544         * tree.c (build_invariant_address): New function.
8545         * tree.h (build_invariant_address): Declare.
8546         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8547         a renamed function moved ...
8548         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8549         Take valueization callback parameter.
8550         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8551         * gimple-fold.h: New file.
8552         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8553         (ccp_fold, fold_const_aggregate_ref,
8554         fold_ctor_reference, fold_nonarray_ctor_reference,
8555         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8556         get_base_constructor): Move ...
8557         * gimple-fold.c: ... here.
8558         (gimple_fold_stmt_to_constant_1): New function
8559         split out from ccp_fold.  Take a valueization callback parameter.
8560         Valueize all operands.
8561         (gimple_fold_stmt_to_constant): New wrapper function.
8562         (fold_const_aggregate_ref_1): New function split out from
8563         fold_const_aggregate_ref.  Take a valueization callback parameter.
8564         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8565         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8566         invariant POINTER_PLUS_EXPRs to invariant form.
8567         (vn_valueize): New function.
8568         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8569         * tree-vrp.c (vrp_valueize): New function.
8570         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8571         to fold statements to constants.
8572         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8573         function declarations.
8574         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8575         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8576
8577 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8578
8579         * config/h8300/predicates.md (jump_address_operand): Fix register
8580         mode check.
8581
8582 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8583
8584         * doc/invoke.texi (max-stores-to-sink): Document.
8585         * params.h (MAX_STORES_TO_SINK): Define.
8586         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8587         if either vectorization or if-conversion is disabled.
8588         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8589         tree-vect-data-refs.c vect_equal_offsets.
8590         (dr_equal_offsets_p): New function.
8591         (find_data_references_in_bb): Remove static.
8592         * tree-data-ref.h (find_data_references_in_bb): Declare.
8593         (dr_equal_offsets_p): Likewise.
8594         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8595         (vect_drs_dependent_in_basic_block): Update calls to
8596         vect_equal_offsets.
8597         (vect_check_interleaving): Likewise.
8598         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8599         (cond_if_else_store_replacement): Rename to...
8600         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8601         documentation.
8602         (cond_if_else_store_replacement): New function.
8603         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8604         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8605
8606 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8607
8608         PR target/46934
8609         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8610         to subtract lower bound instead of GEN_INT().
8611
8612 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8613
8614         PR other/48179
8615         PR other/48221
8616         PR other/48234
8617         * doc/extend.texi (Alignment): Move section to match order in TOC.
8618         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8619         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8620
8621 2011-03-23  Jeff Law  <law@redhat.com>
8622
8623         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8624         before removing the edge.
8625
8626         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8627         it may have been freed by redirect_branch_edge or
8628         redirect_edge_succ_nodup.
8629
8630 2011-03-23  Richard Guenther  <rguenther@suse.de>
8631
8632         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8633         (check_va_list_escapes): Likewise.
8634         (check_all_va_list_escapes): Likewise.
8635
8636 2011-03-23  Richard Guenther  <rguenther@suse.de>
8637
8638         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8639         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8640         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8641         (alias.o): Likewise.
8642         (ipa-type-escape.o): Remove.
8643         (ipa-struct-reorg.o): Likewise.
8644         (GTFILES): Remove ipa-struct-reorg.c.
8645         * alias.c: Do not include ipa-type-escape.h.
8646         * tree-ssa-alias.c: Likewise.
8647         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8648         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8649         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8650         and ipa-type-escape passes.
8651         * tree-pass.h (pass_ipa_type_escape): Remove.
8652         (pass_ipa_struct_reorg): Likewise.
8653         * ipa-struct-reorg.h: Remove.
8654         * ipa-struct-reorg.c: Likewise.
8655         * ipa-type-escape.h: Likewise.
8656         * ipa-type-escape.c: Likewise.
8657         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8658         (--param struct-reorg-cold-struct-ratio): Likewise.
8659         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8660         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8661         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8662
8663 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8664
8665         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8666         cpu attribute value.
8667         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8668         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8669         * config/s390/s390.c (processor_flags_table): New constant array.
8670         (s390_handle_arch_option): Remove.
8671         (s390_handle_option): Remove s390_handle_arch_option invocations
8672         and OPT_mwarn_framesize_ handling.
8673         (s390_option_override): Remove s390_handle_arch_option invocation.
8674         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8675         warnings.
8676         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8677         * config/s390/s390.opt (s390_tune, s390_arch)
8678         (march=): Replace s390_arch_option enum and values with
8679         processor_type.  Set variable name to s390_arch.  Set
8680         initialization value.
8681         (mtune=): Replace s390_arch_option with processor_type.  Set
8682         variable name to s390_tune.  Set initialization value.
8683
8684 2011-03-23  Julian Brown  <julian@codesourcery.com>
8685
8686         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8687         accesses which are not naturally aligned.
8688
8689 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8690
8691         PR target/47553
8692         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8693
8694 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8695
8696         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8697         parameter from "int" to "enum insn_code".
8698         (expand_operand_type): New enum.
8699         (expand_operand): New structure.
8700         (create_expand_operand): New function.
8701         (create_fixed_operand, create_output_operand): Likewise
8702         (create_input_operand, create_convert_operand_to): Likewise.
8703         (create_convert_operand_from, create_address_operand): Likewise.
8704         (create_integer_operand): Likewise.
8705         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8706         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8707         (expand_insn, expand_jump_insn): Likewise.
8708         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8709         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8710         (expand_movstr, expand_builtin___clear_cache): Likewise.
8711         (expand_builtin_lock_release): Likewise.
8712         * explow.c (allocate_dynamic_stack_space): Likewise.
8713         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8714         and use the default handling in that case.
8715         * expmed.c (check_predicate_volatile_ok): Delete.
8716         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8717         (emit_cstore): Likewise.
8718         * expr.c (emit_block_move_via_movmem): Likewise.
8719         (set_storage_via_setmem, expand_assignment): Likewise.
8720         (emit_storent_insn, try_casesi): Likewise.
8721         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8722         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8723         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8724         (expand_twoval_unop, expand_twoval_binop): Likewise.
8725         (expand_unop_direct, emit_indirect_jump): Likewise.
8726         (emit_conditional_move, vector_compare_rtx): Likewise.
8727         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8728         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8729         (expand_sync_lock_test_and_set): Likewise.
8730         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8731         (emit_unop_insn): Likewise.
8732         (expand_copysign_absneg): Change icode to an insn_code.
8733         (create_convert_operand_from_type): New function.
8734         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8735         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8736         (expand_insn, expand_jump_insn): Likewise.
8737         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8738         than const_int_operand for operand 2.
8739
8740 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8741
8742         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8743         if possible.
8744
8745 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8746
8747         * emit-rtl.c (emit_pattern_before_noloc): New function.
8748         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8749         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8750         (emit_pattern_after_noloc): New function.
8751         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8752         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8753
8754 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8755
8756         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8757         (__ffsDI2): Likewise.
8758
8759 2011-03-22  Richard Henderson  <rth@redhat.com>
8760
8761         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8762         of !TARGET_ABI_OPEN_VMS.
8763         (alpha_trampoline_init, alpha_start_function): Likewise.
8764         (alpha_expand_epilogue, alpha_file_start): Likewise.
8765         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8766         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8767         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8768         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8769         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8770
8771 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8772
8773         * config/s390/s390-opts.h: New.
8774         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8775         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8776         s390_stack_guard): Remove.
8777         (s390_handle_arch_option): Return void.  Take enum
8778         s390_arch_option value instead of string and searching array.
8779         (s390_handle_option): Don't assert that global structures are in
8780         use.  Access variables via opts pointer.  Use error_at.  Don't use
8781         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8782         s390_handle_arch_option.
8783         (s390_option_override): Update call to s390_handle_arch_option.
8784         (s390_emit_prologue): Use %d format for s390_stack_size in
8785         diagnostic.  Use %wd for HOST_WIDE_INT.
8786         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8787         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8788         * config/s390/s390.opt (config/s390/s390-opts.h): New
8789         HeaderInclude entry.
8790         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8791         s390_arch_flags, s390_warn_framesize): New Variable entries.
8792         (s390_arch_option): New Enum and EnumValue entries.
8793         (march=): Use Enum instead of Var.
8794         (mstack-guard=, mstack-size=): Use UInteger and Var.
8795         (mtune=): Use Enum.
8796
8797 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8798
8799         * config/score/score.c (score_handle_option): Don't assert that
8800         global structures are in use.  Access target_flags via opts
8801         pointer.  Use value of -march= option to determine target_flags
8802         settings.
8803         * config/score/score.opt (march=): Use Enum.
8804         (score_arch): New Enum and EnumValue entries.
8805
8806 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8807
8808         * config/mep/mep.c (option_mtiny_specified): Remove.
8809         (mep_option_override): Move register handling for -mivc2 from
8810         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8811         instead of option_mtiny_specified.
8812         (mep_handle_option): Access target_flags via opts pointer.  Don't
8813         assert that global structures are in use.  Defer part of -mivc2
8814         handling and move it to mep_option_override.
8815         * config/mep/mep.opt (IVC2): New Mask entry.
8816         (mivc2): Use Var and Defer instead of Mask.
8817
8818 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8819
8820         * config/v850/v850-opts.h: New.
8821         * config/v850/v850.c (small_memory): Replace with
8822         small_memory_physical_max array.  Make that array static const.
8823         (v850_handle_memory_option): Take integer value of argument.  Take
8824         gcc_options pointer, option text and location.  Return void.
8825         Update for changes to small memory structures.
8826         (v850_handle_option): Access target_flags via opts pointer.  Don't
8827         assert that global structures are in use.  Update calls to
8828         v850_handle_memory_option.
8829         (v850_encode_data_area): Update references to small memory settings.
8830         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8831         (enum small_memory_type): Move to v850-opts.h.
8832         * config/v850/v850.opt (config/v850/v850-opts.h): New
8833         HeaderInclude entry.
8834         (small_memory_max): New Variable entry.
8835         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8836         (mtda, mzda): Likewise.
8837
8838 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8839
8840         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8841         pointer.  Don't assert that global structures are in use.
8842
8843 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8844
8845         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8846         via opts pointer.  Don't assert that global structures are in use.
8847
8848 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8849
8850         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8851         (munix=93): Use Var.
8852         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8853         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8854         * config/pa/pa-opts.h: New.
8855         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8856         (pa_handle_option): Don't assert that global structures are in
8857         use.  Access target_flags via opts pointer.  Don't handle
8858         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8859         OPT_munix_98 here.
8860         (pa_option_override): Handle deferred OPT_mfixed_range_.
8861
8862 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8863
8864         * config/mn10300/mn10300-opts.h: New.
8865         * config/mn10300/mn10300.c (mn10300_processor,
8866         mn10300_tune_string): Remove.
8867         (mn10300_handle_option): Don't assert that global structures are
8868         in use.  Access mn10300_processor via opts pointer.  Don't handle
8869         OPT_mtune_ here.
8870         * config/mn10300/mn10300.h (enum processor_type): Move to
8871         mn10300-opts.h.
8872         (mn10300_processor): Remove.
8873         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8874         HeaderInclude entry.
8875         (mn10300_processor): New Variable entry.
8876         (mtune=): Use Var.
8877
8878 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8879
8880         * config/microblaze/microblaze.c: Don't include opts.h.
8881         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8882         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8883         (mno-clearbss): Use Var and Warn.
8884
8885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8886
8887         * config/m32r/m32r-opts.h: New.
8888         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8889         (m32r_handle_option): Don't assert that global structures are in
8890         use.  Access target_flags and m32r_cache_flush_func via opts
8891         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8892         OPT_mno_flush_trap here.
8893         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8894         include of m32r-opts.h.
8895         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8896         HeaderInclude entry.
8897         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8898         (mmodel=): Use Enum and Var.
8899         (m32r_model): New Enum and EnumValue entries.
8900         (mno-flush-trap): Use Var.
8901         (msdata=): Use Enum and Var.
8902         (m32r_sdata): New Enum and EnumValue entries.
8903
8904 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8905
8906         * config/m32c/m32c.c: Don't include opts.h.
8907         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8908         m32c_handle_option): Remove.
8909         (m32c_option_override): Check global_options_set.x_target_memregs
8910         instead of target_memregs_set.
8911         * config/m32c/m32c.h (target_memregs): Remove.
8912         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8913         variable.
8914
8915 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8916
8917         * config/iq2000/iq2000-opts.h: New.
8918         * config/iq2000/iq2000.c: Don't include opts.h.
8919         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8920         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8921         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8922         HeaderInclude entry.
8923         (iq2000_tune): New Variable entry.
8924         (march=): Add comment.  Use Enum.
8925         (iq2000_arch): New Enum and EnumValue entries.
8926         (mcpu=): Use Enum and Var.
8927         (iq2000_tune): New Enum and EnumValue entries.
8928
8929 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8930
8931         * config/ia64/ia64-opts.h: New.
8932         * config/ia64/ia64.c (ia64_tune): Remove.
8933         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8934         here.  Use error_at.
8935         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8936         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8937         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8938         HeaderInclude entry.
8939         (ia64_tune): New Variable entry.
8940         (mfixed-range=): Use Defer and Var.
8941         (mtune=): Use Enum and Var.
8942         (ia64_tune): New Enum and EnumValue entries.
8943
8944 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8945
8946         * config/frv/frv-opts.h: New.
8947         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8948         frv-opts.h.
8949         (frv_cpu_type): Remove.
8950         * config/frv/frv.c: Don't include opts.h.
8951         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8952         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8953         (frv_cpu_type): New Variable entry.
8954         (frv_cpu): New Enum and EnumValue entries.
8955
8956 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8957
8958         * config/cris/cris.c (cris_handle_option): Access target_flags via
8959         opts pointer.  Don't assert that global structures are in use.
8960         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8961         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8962
8963 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8964
8965         * config/bfin/bfin-opts.h: New.
8966         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8967         bfin_si_revision, bfin_workarounds): Remove.
8968         (bfin_cpus): Make static const.
8969         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8970         not bfin_lib_id_given.
8971         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8972         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8973         pointer. Use error_at.  Don't assert that global structures are in use.
8974         * config/bfin/bfin.h: Include bfin-opts.h.
8975         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8976         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8977         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8978         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8979         entries.
8980
8981 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8982
8983         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8984         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8985         or -msoft-float here.
8986         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8987         -msoft-float and -mhard-float.
8988         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8989         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8990         msoft-float.
8991         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8992         -msoft-float.
8993         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8994         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8995         not mhard-float.
8996         (LIBGCC_SPEC): Don't handle -msoft-float.
8997         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8998         -mhard-float.
8999         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9000         msoft-float.
9001         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9002         -mfloat-abi=*, not -msoft-float and -mhard-float.
9003         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9004         -msoft-float.
9005         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9006         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9007         mhard-float and msoft-float.
9008         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9009         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9010         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9011         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9012         mhard-float.
9013         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9014         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9015         msoft-float.
9016         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9017         not mhard-float.
9018         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9019         not msoft-float.
9020
9021 2011-03-22  Richard Henderson  <rth@redhat.com>
9022
9023         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9024         TARGET_ABI_WINDOWS_NT.
9025         (alpha_output_function_end_prologue): Likewise.
9026         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9027         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9028         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9029         (trap, *movsi_nt_vms): Likewise.
9030         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9031         (*tablejump_osf_nt_internal): Remove.
9032         * config/alpha/predicates.md (input_operand): Only test Pmode.
9033
9034 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9035
9036         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9037         via opts pointer.  Use error_at.  Don't assert that global
9038         structures are in use.
9039
9040 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9041
9042         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9043         (ix86_handle_option): Access ix86_isa_flags and
9044         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9045         global structures are in use.
9046         (ix86_function_specific_save, ix86_function_specific_restore):
9047         Update ix86_isa_flags_explicit field name.
9048         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9049         (ix86_isa_flags_explicit): Rename TargetSave entry to
9050         x_ix86_isa_flags_explicit.
9051
9052 2011-03-22  Richard Henderson  <rth@redhat.com>
9053
9054         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9055         (alpha_option_override, direct_return): Likewise.
9056         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9057         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9058         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9059         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9060         (alpha_expand_epilogue, alpha_end_function): Likewise.
9061         (alpha_init_libfuncs): Likewise.
9062         (struct machine_function): Remove unicosmk members.
9063         (print_operand) ['t']: Remove.
9064         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9065         unicosmk_output_module_name, unicosmk_output_common,
9066         current_section_align, unicosmk_output_text_section_asm_op,
9067         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9068         unicosmk_section_type_flags, unicosmk_unique_section,
9069         unicosmk_asm_named_section, unicosmk_insert_attributes,
9070         unicosmk_output_align, unicosmk_defer_case_vector,
9071         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9072         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9073         unicosmk_output_ssib, unicosmk_add_call_info_word,
9074         unicosmk_extern_head, unicosmk_output_default_externs,
9075         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9076         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9077         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9078         * config/alpha/alpha-protos.h: Update.
9079         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9080         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9081         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9082         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9083         (*mulsi_se, mulvsi3): Likewise.
9084         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9085         (*divmodsi_internal, call, call_value, realign): Likewise.
9086         (moddi3, umoddi3): Likewise; remove duplicate expander.
9087         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9088         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9089         (*movdi_nofix): Remove r/U alternative.
9090         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9091         * config/alpha/constraints.md ("U"): Remove.
9092         * config/alpha/predicates.md (call_operand"): Don't test
9093         TARGET_ABI_UNICOSMK.
9094
9095 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9096
9097         * target.def (handle_option): Take gcc_options and
9098         cl_decoded_option pointers and location_t.
9099         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9100         * doc/tm.texi: Regenerate.
9101         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9102         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9103         * lto-opts.c (lto_reissue_options): Generate option structure for
9104         targetm.handle_option call.
9105         * opts.c (target_handle_option): Update call to
9106         targetm.handle_option.  Remove assertions about values now passed
9107         down to hook.
9108         * targhooks.c (default_target_handle_option): New.
9109         * targhooks.h (default_target_handle_option): Declare.
9110         * config/alpha/alpha.c: Include opts.h.
9111         (alpha_handle_option): Update to new hook interface.
9112         * config/arm/arm.c: Include opts.h.
9113         (arm_handle_option): Update to new hook interface.
9114         * config/arm/t-arm (arm.o): Update dependencies.
9115         * config/bfin/bfin.c: Include opts.h.
9116         (bfin_handle_option): Update to new hook interface.
9117         * config/cris/cris.c: Include opts.h.
9118         (cris_handle_option): Update to new hook interface.
9119         * config/frv/frv.c: Include opts.h.
9120         (frv_handle_option): Update to new hook interface.
9121         * config/i386/i386.c: Include opts.h.
9122         (ix86_handle_option): Update to new hook interface.
9123         (ix86_valid_target_attribute_inner_p): Generate option structure
9124         for call to ix86_handle_option.
9125         * config/i386/t-i386 (i386.o): Update dependencies.
9126         * config/ia64/ia64.c: Include opts.h.
9127         (ia64_handle_option): Update to new hook interface.
9128         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9129         * config/iq2000/iq2000.c: Include opts.h.
9130         (iq2000_handle_option): Update to new hook interface.
9131         * config/m32c/m32c.c: Include opts.h.
9132         (m32c_handle_option): Update to new hook interface.
9133         * config/m32r/m32r.c: Include opts.h.
9134         (m32r_handle_option): Update to new hook interface.
9135         * config/m68k/m68k.c: Include opts.h.
9136         (m68k_handle_option): Update to new hook interface.
9137         * config/mep/mep.c: Include opts.h.
9138         (mep_handle_option): Update to new hook interface.
9139         * config/microblaze/microblaze.c: Include opts.h.
9140         (microblaze_handle_option): Update to new hook interface.
9141         * config/mips/mips.c: Include opts.h.
9142         (mips_handle_option): Update to new hook interface.
9143         * config/mn10300/mn10300.c: Include opts.h.
9144         (mn10300_handle_option): Update to new hook interface.
9145         * config/pa/pa.c: Include opts.h.
9146         (pa_handle_option): Update to new hook interface.
9147         * config/pdp11/pdp11.c: Include opts.h.
9148         (pdp11_handle_option): Update to new hook interface.
9149         * config/rs6000/rs6000.c: Include opts.h.
9150         (rs6000_handle_option): Update to new hook interface.
9151         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9152         * config/rx/rx.c: Include opts.h.
9153         (rx_handle_option): Update to new hook interface.
9154         * config/s390/s390.c: Include opts.h.
9155         (s390_handle_option): Update to new hook interface.
9156         * config/score/score.c: Include opts.h.
9157         (score_handle_option): Update to new hook interface.
9158         * config/sh/sh.c: Include opts.h.
9159         (sh_handle_option): Update to new hook interface.
9160         * config/sparc/sparc.c: Include opts.h.
9161         (sparc_handle_option): Update to new hook interface.
9162         * config/v850/v850.c: Include opts.h.
9163         (v850_handle_option): Update to new hook interface.
9164
9165 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9166
9167         * gcc.c (driver_unknown_option_callback): Only permit and save
9168         unknown -Wno- options.
9169         (driver_wrong_lang_callback): Save options directly instead of via
9170         driver_unknown_option_callback.
9171
9172 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9173
9174         * combine.c (simplify_set): Try harder to find the best CC mode when
9175         simplifying a nested COMPARE on the RHS.
9176
9177 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9178
9179         * config/alpha/gnu.h: Remove.
9180         * config/arc: Remove directory.
9181         * config/arm/netbsd.h: Remove.
9182         * config/arm/t-pe: Remove.
9183         * config/crx: Remove directory.
9184         * config/i386/netbsd.h: Remove.
9185         * config/m68hc11: Remove directory.
9186         * config/m68k/uclinux-oldabi.h: Remove.
9187         * config/mcore/mcore-pe.h: Remove.
9188         * config/mcore/t-mcore-pe: Remove.
9189         * config/netbsd-aout.h: Remove.
9190         * config/rs6000/gnu.h: Remove.
9191         * config/sh/sh-symbian.h: Remove.
9192         * config/sh/symbian-base.c: Remove.
9193         * config/sh/symbian-c.c: Remove.
9194         * config/sh/symbian-cxx.c: Remove.
9195         * config/sh/symbian-post.h: Remove.
9196         * config/sh/symbian-pre.h: Remove.
9197         * config/sh/t-symbian: Remove.
9198         * config/svr3.h: Remove.
9199         * config/vax/netbsd.h: Remove.
9200         * config.build: Don't handle i[34567]86-*-pe.
9201         * config.gcc: Remove handling of deprecations for most deprecated
9202         targets.
9203         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9204         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9205         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9206         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9207         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9208         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9209         Remove cases.
9210         * config.host: Don't handle i[34567]86-*-pe.
9211         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9212         (ASM_SPEC32): Don't handle -mcall-gnu.
9213         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9214         -mcall-gnu.
9215         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9216         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9217         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9218         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9219         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9220         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9221         conditional on SYMBIAN.
9222         * configure.ac: Don't handle powerpc*-*-gnu*.
9223         * configure: Regenerate.
9224         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9225         * doc/install-old.texi (m6811, m6812): Don't mention.
9226         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9227         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9228         (m68k-uclinuxoldabi): Don't mention.
9229         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9230         Remove.
9231         (-mcall-gnu): Remove.
9232         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9233         families): Remove constraint documentation.
9234
9235 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9236
9237         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9238         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9239         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9240
9241 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9242
9243         PR target/48226
9244         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9245         vector when peeking at the next token for vector, don't expand the
9246         keywords.
9247
9248 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9249
9250         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9251         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9252         * config/avr/avr.c (init_cumulative_args)
9253         (avr_function_arg_advance): Use it.
9254         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9255         sibcall epilogues.
9256         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9257         (avr_function_ok_for_sibcall): ...this new function.
9258         (avr_lookup_function_attribute1): New static Function.
9259         (avr_naked_function_p, interrupt_function_p)
9260         (signal_function_p, avr_OS_task_function_p)
9261         (avr_OS_main_function_p): Use it.
9262         * config/avr/avr.md ("sibcall", "sibcall_value")
9263         ("sibcall_epilogue"): New expander.
9264         ("*call_insn", "*call_value_insn"): New insn.
9265         ("call_insn", "call_value_insn"): Remove
9266         ("call", "call_value", "epilogue"): Change expander to handle
9267         sibling calls.
9268
9269 2011-03-21  Nick Clifton  <nickc@redhat.com>
9270
9271         * doc/invoke.texi (Overall Options): Move closing brace to end of
9272         options list.
9273         (Optimization Options): Add missing @gol.
9274         (Directory Options): Likewise.
9275         (i386 and x86-64 Options): Likewise.
9276         (RS6000 and PowerPC Options): Likewise.
9277         (i386 and x86-64 Windows Options): Likewise.
9278         (V850 Options): Add text missing from descriptions.
9279
9280 2011-03-22  Richard Henderson  <rth@redhat.com>
9281
9282         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9283         (avr_incoming_return_addr_rtx): New.
9284         (emit_push_byte): New.
9285         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9286         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9287         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9288         (emit_pop_byte): New.
9289         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9290         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9291         (INCOMING_RETURN_ADDR_RTX): New.
9292         (INCOMING_FRAME_SP_OFFSET): New.
9293         (ARG_POINTER_CFA_OFFSET): New.
9294         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9295         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9296         (pophi): Remove.
9297
9298         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9299
9300 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9301
9302         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9303         (FUNCTION_ARG_ADVANCE): Likewise.
9304         * tm.texi.in: Change references to them to hook references.
9305         * tm.texi: Regenerate.
9306         * targhooks.c (default_function_arg): Eliminate check for target
9307         macro.
9308         (default_function_incoming_arg): Likewise.
9309         (default_function_arg_advance): Likewise.
9310         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9311         (function_arg_advance): Likewise.
9312         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9313
9314 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9315
9316         * tree.c (build_call_1): New function.
9317         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9318
9319 2011-03-22  Richard Guenther  <rguenther@suse.de>
9320
9321         PR tree-optimization/48228
9322         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9323         for single-arg PHIs.
9324
9325 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9326
9327         PR rtl-optimization/48143
9328         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9329         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9330         sse2_cvtps2pd): Likewise.
9331
9332 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9333
9334         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9335
9336 2011-03-22  Richard Guenther  <rguenther@suse.de>
9337
9338         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9339         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9340         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9341         and REALIGN_LOAD_EXPR.
9342         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9343         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9344         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9345         DOT_PROD_EXPR case ...
9346         (expand_expr_real_2): ... here.
9347         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9348         and REALIGN_LOAD_EXPR.
9349         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9350         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9351         (vect_create_epilog_for_reduction): Likewise.
9352         (vectorizable_reduction): Likewise.
9353         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9354         * tree-vect-stmts.c (vectorizable_load): Likewise.
9355
9356 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9357
9358         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9359
9360 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9361
9362         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9363         handling for PLTOFF/GOTOFF.
9364
9365 2011-03-22  Nick Clifton  <nickc@redhat.com>
9366
9367         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9368         trailing backslash from the end of the macro definition.
9369
9370 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9371
9372         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9373         and PLT unspecs.
9374
9375 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9376
9377         * expr.h (prepare_operand): Move to...
9378         * optabs.h (prepare_operand): ...here and change the insn code
9379         parameter from "int" to "enum insn_code".
9380         (insn_operand_matches): Declare.
9381         * expr.c (init_expr_target): Use insn_operand_matches.
9382         (compress_float_constant): Likewise.
9383         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9384         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9385         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9386         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9387         Likewise.
9388         (gen_cond_trap): Likewise.
9389         (prepare_operand): Likewise.  Change icode to an insn_code.
9390         (insn_operand_matches): New function.
9391         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9392         * reload1.c (gen_reload): Likewise.
9393         * targhooks.c (default_secondary_reload): Likewise.
9394
9395 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9396
9397         * config/alpha/alpha.md (unspec): New define_c_enum.
9398         (unspecv): Ditto.
9399
9400 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9401
9402         PR debug/48214
9403         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9404         between a call and its CALL_ARG_LOCATION note.
9405
9406 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9407
9408         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9409
9410 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9411
9412         PR c/42544
9413         PR c/48197
9414         * c-common.c (shorten_compare): If primopN is first sign-extended
9415         to opN and then zero-extended to result type, set primopN to opN.
9416
9417 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9418
9419         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9420         for barrier handlers.
9421
9422 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9423
9424         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9425         UNSPEC constants to be in the unspec enumeration, and redefine
9426         all UNSPECV constants to be in the unspecv enumeration, so that
9427         dumps print which unspec/unspec_volatile this is.
9428         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9429         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9430         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9431         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9432         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9433
9434         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9435         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9436         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9437         * config/rs6000/sync.md (isync, lwsync): Ditto.
9438
9439 2011-03-21  Richard Guenther  <rguenther@suse.de>
9440
9441         * params.def (lto-min-partition): Fix typo.
9442
9443 2011-03-21  Richard Guenther  <rguenther@suse.de>
9444
9445         PR c/47939
9446         * c-decl.c (grokdeclarator): Drop to the main variant only
9447         for array types.  Drop flag_gen_aux_info check.
9448
9449 2011-03-21  Richard Guenther  <rguenther@suse.de>
9450
9451         PR translation/47911
9452         * params.def (lto-partitions): Fix typo.
9453         (lto-min-partition): Fix wording.
9454
9455 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9456
9457         * config/rs6000/t-freebsd: Remove duplication from file.
9458
9459 2011-03-21  Richard Guenther  <rguenther@suse.de>
9460
9461         PR middle-end/47661
9462         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9463
9464 2011-03-21  Richard Guenther  <rguenther@suse.de>
9465
9466         PR lto/48210
9467         * params.def (lto-partitions): Require at least 1 partition.
9468
9469 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9470
9471         * gthr-solaris.h: Remove.
9472         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9473         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9474         (LIB_SPEC): Likewise.
9475         * config/sol2.opt (threads): Remove.
9476         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9477         (sparc*-*-solaris2*): Likewise.
9478         * configure.ac (enable_threads): Enable solaris support.
9479         * configure: Regenerate.
9480         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9481         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9482         solaris.
9483
9484 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9485
9486         * config.gcc: Obsolete *-*-solaris2.8*.
9487         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9488
9489 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9490
9491         PR bootstrap/48135
9492         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9493         reference.  Solaris 8 perl works.
9494
9495 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9496
9497         PR bootstrap/48135
9498         * doc/install.texi (Prerequisites): Move jar etc. up.
9499         Explain support library version requirements.
9500
9501 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9502
9503         PR bootstrap/48135
9504         * doc/install.texi (Prerequisites): Move Perl to build
9505         requirements.  Always necessary on Solaris 2 with Sun ld.
9506
9507 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9508
9509         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9510         binutils 2.21.
9511         (Specific, i?86-*-solaris2.[89]): Likewise.
9512         (Specific, i?86-*-solaris2.10): Likewise.
9513         (Specific, mips-sgi-irix6): Likewise.
9514         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9515         Update for binutils 2.21.
9516
9517 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9518
9519         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9520         Allow -fuse-linker-plugin for non-default plugin linker.
9521         * configure: Regenerate.
9522
9523 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9524
9525         PR bootstrap/48167
9526         * gengtype.c (files_rules): Added rule for cp/parser.h.
9527
9528 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9529
9530         PR target/48213
9531         * config/s390/s390.c (s390_delegitimize_address): Don't call
9532         lowpart_subreg if orig_x has BLKmode.
9533
9534 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9535
9536         PR target/12171
9537         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9538         * tree.h (attribute_spec): Add new member affects_type_identity.
9539         * attribs.c (empty_attribute_table): Adjust attribute_spec
9540         initializers.
9541         * config/alpha/alpha.c: Likewise.
9542         * config/arc/arc.c: Likewise.
9543         * config/arm/arm.c: Likewise.
9544         * config/avr/avr.c: Likewise.
9545         * config/bfin/bfin.c: Likewise.
9546         * config/crx/crx.c: Likewise.
9547         * config/darwin.h: Likewise.
9548         * config/h8300/h8300.c: Likewise.
9549         * config/i386/cygming.h: Likewise.
9550         * config/i386/i386.c: Likewise.
9551         * config/ia64/ia64.c: Likewise.
9552         * config/m32c/m32c.c: Likewise.
9553         * config/m32r/m32r.c: Likewise.
9554         * config/m68hc11/m68hc11.c: Likewise.
9555         * config/m68k/m68k.c: Likewise.
9556         * config/mcore/mcore.c: Likewise.
9557         * config/mep/mep.c: Likewise.
9558         * config/microblaze/microblaze.c: Likewise.
9559         * config/mips/mips.c: Likewise.
9560         * config/rs6000/rs6000.c: Likewise.
9561         * config/rx/rx.c: Likewise.
9562         * config/sh/sh.c: Likewise.
9563         * config/sol2.h: Likewise.
9564         * config/sparc/sparc.c: Likewise.
9565         * config/spu/spu.c: Likewise.
9566         * config/stormy16/stormy16.c: Likewise.
9567         * config/v850/v850.c: Likewise.
9568
9569 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9570
9571         * simplify-rtx.c (simplify_binary_operation_1): Handle
9572         (xor (and A B) C) case when B and C are both constants.
9573
9574 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9575
9576         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9577
9578 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9579
9580         PR bootstrap/48168
9581         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9582
9583 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9584
9585         PR rtl-optimization/48156
9586         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9587         assume df and df_lr are not NULL.
9588
9589 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9590
9591         PR debug/48023
9592         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9593         between a call and its CALL_ARG_LOCATION note.
9594
9595 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9596
9597         PR debug/48178
9598         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9599         between a call and its corresponding CALL_ARG_LOCATION note.
9600
9601 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9602
9603         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9604         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9605         * haifa-sched.c (setup_ref_regs): Ditto.
9606         * caller-save.c (add_used_regs_1): Ditto.
9607         * dse.c (look_for_hardregs): Ditto.
9608         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9609         * sched-rgn.c (check_live_1): Ditto.
9610
9611 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9612
9613         * c-decl.c (diagnose_mismatched_decls): Give an error for
9614         redefining a typedef with variably modified type.
9615
9616 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9617
9618         * c-decl.c (grokfield): Don't allow typedefs for structures or
9619         unions with no tag by default.
9620         * doc/extend.texi (Unnamed Fields): Update.
9621
9622 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9623
9624         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9625         Rewrite using indirect functions.
9626         (lwp_slwpcb): Ditto.
9627         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9628         (avx_vinsertf128<mode>): Ditto.
9629
9630 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9631
9632         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9633         unspecs.
9634
9635 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9636
9637         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9638         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9639
9640 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9641
9642         PR rtl-optimization/48170
9643         * gcse.c (hoist_code): Remove bogus asserts.
9644
9645 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9646
9647         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9648         computation for prologue/epilogue.
9649
9650 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9651
9652         * Makefile.in (check-consistency): Remove.
9653
9654 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9655
9656         PR debug/48176
9657         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9658         arange_table_in_use is 0, but either text_section_used or
9659         cold_text_section_used is true.  Don't call it if
9660         !info_section_emitted.
9661
9662 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9663
9664         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9665         FUNCTION_VALUE_REGNO_P): Remove.
9666         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9667         Remove.
9668         * config/avr/avr.c (avr_ret_register): Make static inline.
9669         (avr_function_value_regno_p): New function.
9670         (avr_libcall_value): Make static. Add 'func' argument.
9671         (avr_function_value): Make static. Rename 'func' argument to
9672         'fn_decl_or_type', forward it to avr_libcall_value. Call
9673         avr_ret_register function instead of RET_REGISTER macro.
9674         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9675
9676 2011-03-18  Jason Merrill  <jason@redhat.com>
9677
9678         PR c++/23372
9679         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9680
9681 2011-03-18  Richard Guenther  <rguenther@suse.de>
9682
9683         * doc/install.texi (--enable-gold): Remove.
9684         (--with-plugin-ld): Document.
9685         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9686
9687 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9688
9689         PR middle-end/47790
9690         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9691         again after expansion changes.
9692
9693 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9694
9695         * combine.c (try_combine): Do simplification only call of
9696         subst() on i2 even when i1 is present. Update comments.
9697
9698 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9699
9700         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9701         and UNSPEC_PCREL_SYMOFF.
9702
9703 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9704
9705         * config/s390/s390.md: Use define_c_enum for the unspec constant
9706         definitions.
9707
9708 2011-03-18  Richard Henderson  <rth@redhat.com>
9709             Jakub Jelinek  <jakub@redhat.com>
9710
9711         PR bootstrap/48161
9712         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9713         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9714
9715 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9716
9717         PR middle-end/47725
9718         * combine.c (cant_combine_insn_p): Don't check zero/sign
9719         extended hard registers.
9720
9721 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9722
9723         PR middle-end/47725
9724         * combine.c (cant_combine_insn_p): Check zero/sign extended
9725         hard registers.
9726
9727 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9728
9729         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9730         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9731         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9732         Change return type to bool.
9733         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9734
9735 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9736
9737         PR debug/48163
9738         * var-tracking.c (prepare_call_arguments): If CALL target
9739         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9740         pc instead of looking it up using cselib_lookup and use
9741         Pmode for it if x has VOIDmode.
9742         * dwarf2out.c (gen_subprogram_die): If also both first and
9743         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9744
9745         PR debug/48163
9746         * function.c (assign_parms): For data.passed_pointer parms
9747         use MEM of data.entry_parm instead of data.entry_parm itself
9748         as DECL_INCOMING_RTL.
9749         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9750         also when passed and declared mode is the same, DECL_RTL
9751         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9752         a MEM too.
9753
9754 2011-03-16  Jeff Law  <law@redhat.com>
9755
9756         PR rtl-optimization/37273
9757         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9758         handle them like argument loads from stack slots.  Do not double
9759         count memory for memory constants and argument loads from stack slots.
9760
9761 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9762
9763         PR debug/48160
9764         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9765
9766 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9767
9768         PR target/48171
9769         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9770
9771 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9772
9773         PR bootstrap/48153
9774         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9775         if dwarf_strict.
9776         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9777         Clear call_arg_locations and call_arg_loc_last always.
9778
9779         PR middle-end/48152
9780         * var-tracking.c (prepare_call_arguments): If argument needs to be
9781         passed by reference, adjust argtype and mode.
9782
9783 2011-03-17  Richard Guenther  <rguenther@suse.de>
9784
9785         PR middle-end/48134
9786         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9787         a value make sure to fold the statement.
9788
9789 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9790
9791         PR target/43872
9792         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9793         return condition with !cfun->calls_alloca.
9794
9795 2011-03-17  Richard Guenther  <rguenther@suse.de>
9796
9797         PR bootstrap/48148
9798         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9799         origin for decls in other ltrans units.
9800         (input_varpool_node): Likewise.
9801
9802 2011-03-17  Richard Guenther  <rguenther@suse.de>
9803
9804         PR middle-end/48165
9805         * tree-object-size.c (compute_object_offset): Properly return
9806         the offset operand of MEM_REFs as sizetype.
9807
9808 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9809
9810         PR rtl-optimization/48141
9811         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9812         * dse.c: Include params.h.
9813         (active_local_stores_len): New variable.
9814         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9815         to NULL.
9816         (record_store, check_mem_read_rtx): Decrease it when removing
9817         from the chain.
9818         (scan_insn): Likewise.  Increase it when adding to chain, if it
9819         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9820         set active_local_stores to NULL before the addition.
9821         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9822
9823         PR rtl-optimization/48141
9824         * dse.c (record_store): If no positions are needed in an insn
9825         that cannot be deleted, at least unchain it from active_local_stores.
9826
9827 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9828
9829         PR debug/47510
9830         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9831         (lookup_type_die_strip_naming_typedef): ... here.
9832         (get_context_die): Use it.
9833         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9834         the anonymous struct named by the naming typedef.
9835
9836 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9837
9838         PR target/48154
9839         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9840         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9841
9842 2011-03-16  Jeff Law  <law@redhat.com>
9843
9844         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9845         check for operands of conditional.  Allow type to be a pointer.
9846
9847 2011-03-16  Richard Guenther  <rguenther@suse.de>
9848
9849         PR tree-optimization/48149
9850         * fold-const.c (fold_binary_loc): Fold
9851         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9852
9853 2011-03-16  Richard Guenther  <rguenther@suse.de>
9854
9855         PR tree-optimization/26134
9856         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9857         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9858         (non_rewritable_mem_ref_base): Handle complex type component
9859         accesses, constrain offsets for vector and complex extracts
9860         more properly.
9861
9862 2011-03-16  Richard Guenther  <rguenther@suse.de>
9863
9864         PR tree-optimization/48146
9865         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9866         operands avoiding the need for renaming.
9867
9868 2011-03-16  Richard Guenther  <rguenther@suse.de>
9869
9870         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9871         constant folding.  Move MEM_REF canonicalization first.
9872         Rely on fold_const_aggregate_ref for initializer folding.
9873         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9874
9875 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9876
9877         PR middle-end/48136
9878         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9879         arg0/arg1 or their arguments are always fold converted to matching
9880         types.
9881
9882         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9883         to nargs.
9884
9885 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9886
9887         PR lto/46944
9888         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9889         Handle in-tree gold.
9890         (ld_vers): Extract binutils version for gold.
9891         (gcc_cv_ld_hidden): Handle gold here.
9892         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9893         * configure: Regenerate.
9894         * config.in: Regenerate.
9895         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9896         -fuse-linker-plugin otherwise.
9897         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9898         (LINK_COMMAND_SPEC): Use it.
9899         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9900
9901 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9902
9903         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9904         * calls.c: Remove debug.h include.
9905         (emit_call_1): Don't call virtual_call_token debug hook.
9906         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9907         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9908         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9909         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9910         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9911         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9912         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9913         dwarf2out_virtual_call): Remove.
9914         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9915         copy_call_info and virtual_call hooks.
9916         (dwarf2out_init): Don't initialize vcall_insn_table,
9917         debug_dcall_section and debug_vcall_section.
9918         (prune_unused_types): Don't mark nodes from dcall_table.
9919         (dwarf2out_finish): Don't output dcall or vcall tables.
9920         * final.c (final_scan_insn): Don't call direct_call or
9921         virtual_call debug hooks.
9922         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9923         virtual_call_token, copy_call_info and virtual_call hooks.
9924         (debug_nothing_uid): Remove prototype.
9925         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9926         copy_call_info and virtual_call hooks.
9927         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9928         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9929         * debug.c (do_nothing_debug_hooks): Likewise.
9930         (debug_nothing_uid): Remove.
9931         * doc/invoke.texi (-fenable-icf-debug): Remove.
9932         * common.opt (-fenable-icf-debug): Likewise.
9933
9934         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9935         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9936         call's MEM.  Handle functions returning aggregate through a hidden
9937         first pointer.  For virtual calls add clobbered pc to call arguments
9938         chain.
9939         * dwarf2out.c (gen_subprogram_die): Emit
9940         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9941         can't be emitted.
9942
9943         PR debug/45882
9944         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9945         * rtl.h (ENTRY_VALUE_EXP): Define.
9946         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9947         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9948         * print-rtl.c (print_rtx): Likewise.
9949         * gengtype.c (adjust_field_rtx_def): Likewise.
9950         * var-tracking.c (vt_add_function_parameter): Adjust
9951         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9952         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9953         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9954         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9955         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9956
9957         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9958         Call var_location debug hook even on CALL_INSNs.
9959         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9960         * rtl.def (ENTRY_VALUE): New.
9961         * dwarf2out.c: Include cfglayout.h.
9962         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9963         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9964         (struct call_arg_loc_node): New type.
9965         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9966         tail_call_site_count): New variables.
9967         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9968         DW_TAG_GNU_call_site_parameter.
9969         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9970         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9971         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9972         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9973         and DW_AT_GNU_all_source_call_sites.
9974         (mem_loc_descriptor): Handle ENTRY_VALUE.
9975         (add_src_coords_attributes): Don't add enything if
9976         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9977         (dwarf2out_abstract_function): Save and clear call_arg_location,
9978         call_site_count and tail_call_site_count around dwarf2out_decl call.
9979         (gen_call_site_die): New function.
9980         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9981         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9982         (dwarf2out_function_decl): Clear call_arg_locations,
9983         call_arg_loc_last, set call_site_count and tail_call_site_count
9984         to -1 and free block_map.
9985         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9986         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9987         followed by any real instructions.
9988         (dwarf2out_begin_function): Set call_site_count and
9989         tail_call_site_count to 0.
9990         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9991         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9992         attempt to force a DIE for it and worst case remove the attribute.
9993         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9994         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9995         the decl itself.
9996         * var-tracking.c: Include tm_p.h.
9997         (vt_stack_adjustments): For calls call note_register_arguments.
9998         (argument_reg_set): New variable.
9999         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10000         ensure the VALUE is resolved.
10001         (call_arguments): New variable.
10002         (prepare_call_arguments): New function.
10003         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10004         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10005         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10006         always use the best expression.
10007         (vt_expand_loc): Add ignore_cur_loc argument.
10008         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10009         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10010         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10011         note for all calls.
10012         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10013         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10014         argument.  Don't call cselib_preserve_only_values and
10015         cselib_reset_table.
10016         (note_register_arguments): New function.
10017         (vt_initialize): Compute argument_reg_set.  Call
10018         vt_add_function_parameters before processing basic blocks instead of
10019         afterwards.  For calls call prepare_call_arguments before calling
10020         cselib_process_insn.
10021         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10022         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10023         (var-tracking.o): Depend on $(TM_P_H).
10024         * cfglayout.h (insn_scope): New prototype.
10025         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10026         * cfglayout.c (insn_scope): No longer static.
10027         * insn-notes.def (CALL_ARG_LOCATION): New.
10028         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10029         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10030         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10031         nothing for DECL_EXTERNAL BLOCK_VARS.
10032
10033 2011-03-16  Alan Modra  <amodra@gmail.com>
10034
10035         PR target/45844
10036         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10037         create invalid offset address for vsx splat insn.
10038         * config/rs6000/predicates.md (splat_input_operand): New.
10039         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10040
10041 2011-03-15  Xinliang David Li  <davidxl@google.com>
10042
10043         PR c/47837
10044         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10045         (normalize_preds): New function.
10046         (is_use_properly_guarded): Normalize def predicates.
10047
10048 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10049
10050         PR target/46788
10051         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10052         in the output template.
10053
10054 2011-03-15  Richard Guenther  <rguenther@suse.de>
10055
10056         PR middle-end/47650
10057         * tree-pretty-print.c (dump_function_declaration): Properly
10058         dump unprototyped and varargs function types.
10059
10060 2011-03-15  Richard Guenther  <rguenther@suse.de>
10061
10062         PR tree-optimization/13954
10063         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10064         and friends.
10065
10066 2011-03-15  Richard Guenther  <rguenther@suse.de>
10067
10068         PR tree-optimization/48037
10069         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10070         selects into BIT_FIELD_REFs.
10071         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10072         vector select.
10073
10074 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10075
10076         PR tree-optimization/48129
10077         * builtins.c (fold_builtin_snprintf): Convert to type of
10078         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10079         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10080
10081 2011-03-15  Richard Guenther  <rguenther@suse.de>
10082
10083         PR tree-optimization/41490
10084         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10085         value but with VUSE.
10086         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10087         return statements.
10088         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10089         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10090         * tree-tailcall.c (find_tail_calls): Ignore returns.
10091
10092 2011-03-15  Richard Guenther  <rguenther@suse.de>
10093
10094         PR middle-end/48031
10095         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10096         or variable-indexed array accesses when in gimple form.
10097
10098 2011-03-15  Richard Guenther  <rguenther@suse.de>
10099
10100         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10101
10102 2011-03-15  Alan Modra  <amodra@gmail.com>
10103
10104         PR target/48032
10105         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10106         presume symbol_refs without a symbol_ref_decl are suitably
10107         aligned, nor other trees we may see here.  Handle anchor symbols.
10108         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10109         Check cmodel=medium addresses.  Adjust all calls.
10110         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10111         creating cmodel=medium optimized access to locals.
10112         * config/rs6000/constraints.md (R): Pass QImode to
10113         legitimate_constant_pool_address_p.
10114         * config/rs6000/predicates.md (input_operand): Pass mode to
10115         legitimate_constant_pool_address_p.
10116         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10117         Update prototype.
10118
10119 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10120
10121         PR target/48053
10122         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10123         64-bit constants being loaded into registers other than GPRs such
10124         as loading 0 into a VSX register.
10125
10126 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10127
10128         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10129
10130 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10131
10132         PR middle-end/47917
10133         * builtins.c (fold_builtin_snprintf): New function.
10134         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10135         (fold_builtin_4): Likewise.
10136
10137         PR middle-end/38878
10138         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10139         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10140         and C - X == X also strip nops from +/-/p+ operand.
10141         When optimizing -X == C, fold C to arg0's type.
10142
10143         PR debug/47946
10144         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10145         emit it as add_AT_int instead of add_AT_unsigned.
10146
10147 2011-03-14  Tom Tromey  <tromey@redhat.com>
10148
10149         * unwind-dw2.c: Include sys/sdt.h if it exists.
10150         (_Unwind_DebugHook): Use STAP_PROBE2.
10151         * config.in, configure: Rebuild.
10152         * configure.ac: Check for sys/sdt.h.
10153
10154 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10155
10156         * config/i386/i386.md (ROUND_FLOOR): New constant.
10157         (ROUND_CEIL): Ditto.
10158         (ROUND_TRUNC): Ditto.
10159         (ROUND_MXCSR): Ditto.
10160         (ROUND_NO_EXC): Ditto.
10161         (rint<mode>2): Use new defines instead of numerical constants.
10162         (floor<mode>2): Ditto.
10163         (ceil<mode>2): Ditto.
10164         (btrunc<mode>2): Ditto.
10165         * config/i386/i386-builtin-types.def: Define ROUND function type
10166         aliases.
10167         * config/i386/i386.c (enum ix86_builtins): Add
10168         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10169         (struct builtin_description): Add
10170         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10171         (ix86_expand_sse_round): New static function.
10172         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10173         function types.
10174         (ix86_builtin_vectorized_function): Handle
10175         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10176
10177 2011-03-14  Tom Tromey  <tromey@redhat.com>
10178
10179         * c-parser.c (c_parser_asm_string_literal): Clear
10180         warn_overlength_strings.
10181
10182 2011-03-14  Tom Tromey  <tromey@redhat.com>
10183
10184         * c-parser.c (disable_extension_diagnostics): Save
10185         warn_overlength_strings.
10186         (restore_extension_diagnostics): Restore warn_overlength_strings.
10187
10188 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10189
10190         * BASE-VER: Change to 4.7.0.
10191
10192 2011-03-14  Richard Guenther  <rguenther@suse.de>
10193
10194         PR middle-end/48098
10195         * tree.c (build_vector_from_val): Adjust assert to requirements
10196         and reality.
10197
10198 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10199
10200         PR bootstrap/48102
10201         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10202
10203 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10204
10205         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10206         terms of target_flags_explicit. Adjust copyright year.
10207
10208         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10209         * config/rs6000/t-freebsd: New file. Add override for
10210         LIB2FUNCS_EXTRA.
10211
10212 2011-03-13  Chris Demetriou  <cgd@google.com>
10213
10214         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10215         (-fno-diagnostics-show-option): this, to reflect current default.
10216         (-Werror=): Update text about -fno-diagnostics-show-option.
10217
10218 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10219
10220         PR target/48053
10221         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10222         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10223         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10224         mode is not V2DImode or V2DFmode.
10225         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10226         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10227         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10228         registers to 0.
10229         (movdi_internal64): Likewise.
10230
10231 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10232
10233         PR tree-optimization/47127
10234         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10235         parameter.
10236         (set_cloog_options): Same.
10237         (scop_to_clast): Same.
10238         (print_clast_stmt): Do not call cloog_state_malloc and
10239         cloog_state_free.
10240         (print_generated_program): Same.
10241         (gloog): Same.
10242         * graphite-clast-to-gimple.h (cloog_state): Declared.
10243         (scop_to_clast): Adjust declaration.
10244         * graphite.c (cloog_state): Defined here.
10245         (graphite_initialize): Call cloog_state_malloc.
10246         (graphite_finalize): Call cloog_state_free.
10247
10248 2011-03-11  Jason Merrill  <jason@redhat.com>
10249
10250         * attribs.c (lookup_attribute_spec): Take const_tree.
10251         * tree.h: Adjust.
10252
10253 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10254
10255         * config/sparc/sparc.c (sparc_option_override): Use
10256         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10257
10258 2011-03-11  Richard Guenther  <rguenther@suse.de>
10259
10260         PR tree-optimization/48067
10261         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10262         multiplication result will be only used once on the target
10263         stmt.
10264
10265 2011-03-11  Richard Guenther  <rguenther@suse.de>
10266
10267         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10268
10269 2011-03-11  Richard Guenther  <rguenther@suse.de>
10270
10271         PR lto/48073
10272         * tree.c (find_decls_types_r): Do not walk types only reachable
10273         from IDENTIFIER_NODEs.
10274
10275 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10276
10277         PR middle-end/48044
10278         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10279         all vnode->force_output nodes as needed.
10280
10281 2011-03-11  Jason Merrill  <jason@redhat.com>
10282
10283         PR c++/48069
10284         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10285         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10286
10287 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10288
10289         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10290         cgraph_node.
10291
10292 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10293
10294         PR tree-optimization/48063
10295         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10296         inline functions called once if !tree_can_inline_p (node->callers).
10297
10298 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10299
10300         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10301         extra_objs.
10302         * config/score/score3.c: Delete.
10303         * config/score/score3.h: Delete.
10304         * config/score/mul-div.S: Delete.
10305         * config/score/sfp-machine.h: Add new file.
10306         * config/score/constraints.md: Add new file.
10307         * config/score/t-score-softfp: Add new file.
10308         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10309         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10310         (score7_extra_constraint): Delete.
10311         (score7_option_override): Remove unused code.
10312         * config/score/score.c: Remove score3 and score5 define and code.
10313         * config/score/score.h: Remove score3 and score5 define and code.
10314         * config/score/score.md: Remove score3 template and unusual insn.
10315         * config/score/score.opt: Remove score3 and score5 options.
10316
10317 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10318
10319         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10320         when _HPUX_SOURCE is defined.
10321         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10322
10323 2011-03-10  Jason Merrill  <jason@redhat.com>
10324
10325         PR c++/48029
10326         * stor-layout.c (layout_type): Don't set structural equality
10327         on arrays of incomplete type.
10328         * tree.c (type_hash_eq): Handle comparing them properly.
10329
10330 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10331
10332         PR debug/48043
10333         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10334         result mode matches original rtl mode.
10335
10336 2011-03-10  Nick Clifton  <nickc@redhat.com>
10337
10338         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10339         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10340
10341 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10342
10343         PR rtl-optimization/47866
10344         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10345         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10346         if target wasn't scalar.
10347         * function.c (assign_stack_temp_for_type): Assert that neither
10348         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10349         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10350         macro.
10351         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10352
10353 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10354
10355         * config/s390/s390-protos.h (s390_label_align): New prototype.
10356         * config/s390/s390.c (s390_label_align): New function.
10357         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10358
10359 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10360
10361         PR target/47755
10362         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10363         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10364         (output_vec_const_move): Ditto.
10365
10366 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10367
10368         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10369         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10370         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10371         Change 'rclass' argument and result type to reg_class_t.
10372         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10373
10374 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10375
10376         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10377         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10378         (TARGET_MEMORY_MOVE_COST): Define.
10379         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10380
10381 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10382
10383         PR debug/47881
10384         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10385         removed anything.
10386
10387         PR tree-optimization/48022
10388         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10389         for EQ/NE_EXPR.
10390
10391 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10392
10393         PR debug/47991
10394         * var-tracking.c (find_use_val): Return NULL for
10395         cui->sets && cui->store_p BLKmode MEMs.
10396
10397 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10398
10399         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10400         Remove.
10401         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10402         xstormy16_print_operand_address): Remove.
10403         * config/stormy16/stormy16.c (xstormy16_print_operand,
10404         xstormy16_print_operand_address): Make static.
10405         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10406
10407 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10408
10409         PR target/47862
10410         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10411         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10412         before definition.
10413
10414 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10415
10416         PR bootstrap/48000
10417         * cfgloopmanip.c (fix_bb_placements): Return immediately
10418         if FROM is BASE_LOOP's header.
10419
10420 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10421
10422         * gimplify.c (gimplify_function_tree): Fix building calls
10423         to __builtin_return_address.
10424
10425 2011-03-07  Alan Modra  <amodra@gmail.com>
10426
10427         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10428         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10429         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10430         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10431         return_mode args.
10432         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10433         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10434         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10435         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10436         * config/rs6000/rs6000.c
10437         (rs6000_elf_end_indicate_exec_stack): Rename to..
10438         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10439         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10440         (rs6000_file_start): ..here.
10441         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10442         file scope variables.
10443         (call_ABI_of_interest): New function.
10444         (init_cumulative_args): Set above vars when function return value
10445         is a float, vector, or small struct.
10446         (rs6000_function_arg_advance_1): Likewise for function args.
10447         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10448         references float args.
10449
10450 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10451
10452         * doc/cfg.texi: Remove "See" before @ref.
10453         * doc/invoke.texi: Likewise.
10454
10455 2011-03-05  Jason Merrill  <jason@redhat.com>
10456
10457         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10458
10459 2011-03-05  Anthony Green  <green@moxielogic.com>
10460
10461         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10462
10463 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10464
10465         PR rtl-optimization/47899
10466         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10467         to flow_loop_nested_p when moving the loop upward.
10468
10469 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10470
10471         PR target/47719
10472         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10473
10474 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10475
10476         PR tree-optimization/47967
10477         * ipa-cp.c (build_const_val): Return NULL instead of creating
10478         VIEW_CONVERT_EXPR for mismatching sizes.
10479         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10480         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10481         give up on versioning.
10482
10483 2011-03-05  Alan Modra  <amodra@gmail.com>
10484
10485         PR target/47986
10486         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10487         full cmodel medium/large lo_sum + high addresses.
10488
10489 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10490
10491         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10492         pool references in UNSPEC_LTREL_OFFSET.
10493
10494 2011-03-04  Jan Hubicka  <jh@suse.cz>
10495
10496         PR lto/47497
10497         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10498         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10499         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10500         Add node pointers.
10501         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10502         cgraph_add_thunk): Add node pointers.
10503         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10504         associated to right node.
10505         (input_node): Update use of cgraph_same_body_alias
10506         and cgraph_add_thunk.
10507
10508 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10509
10510         * config/i386/i386.opt (mprefer-avx128): New flag.
10511         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10512         modes when the flag -mprefer-avx128 is on.
10513
10514 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10515
10516         * dwarf2out.c (compare_loc_operands): Fix address handling.
10517
10518 2011-03-04  Alan Modra  <amodra@gmail.com>
10519
10520         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10521
10522 2011-03-04  Richard Guenther  <rguenther@suse.de>
10523
10524         PR middle-end/47968
10525         * expmed.c (extract_bit_field_1): Prefer vector modes that
10526         vec_extract patterns can handle.
10527
10528 2011-03-04  Richard Guenther  <rguenther@suse.de>
10529
10530         PR middle-end/47975
10531         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10532
10533 2011-03-04  Richard Henderson  <rth@redhat.com>
10534
10535         * explow.c (emit_stack_save): Remove 'after' parameter.
10536         (emit_stack_restore): Likewise.
10537         * expr.h: Update to match.
10538         * builtins.c, calls.c, stmt.c: Likewise.
10539         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10540         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10541         * function.c (expand_function_end): Insert the emit_stack_save
10542         sequence before parm_birth_insn instead of after.
10543
10544 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10545
10546         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10547         (ssse3_pmaddubsw128): Ditto.
10548         (ssse3_pmaddubsw): Ditto.
10549
10550 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10551
10552         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10553
10554 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10555
10556         PR c/47963
10557         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10558         on TYPE_SIZE_UNIT if it is a DECL.
10559
10560         PR debug/47283
10561         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10562         first operand is not is_gimple_mem_ref_addr, try to fold it.
10563         If the operand still isn't is_gimple_mem_ref_addr, clear
10564         MEM_EXPR on op0.
10565
10566 2011-03-03  Richard Guenther  <rguenther@suse.de>
10567
10568         PR middle-end/47283
10569         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10570         match comment.
10571         (refs_may_alias_p_1): For release branches return true if
10572         we are confused by our input.
10573
10574 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10575
10576         * config/s390/s390.c (s390_function_value): Rename to ...
10577         (s390_function_and_libcall_value): ... this.
10578         (s390_function_value): New function.
10579         (s390_libcall_value): New function.
10580         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10581         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10582         target macro definitions.
10583         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10584
10585 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10586
10587         * config/i386/freebsd64.h (CC1_SPEC): Define.
10588         * config/i386/linux64.h (CC1_SPEC): Define.
10589         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10590
10591 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10592
10593         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10594         Remove.
10595         * config/stormy16/stormy16.c: Include reload.h.
10596         (xstormy16_memory_move_cost): New function.
10597         (TARGET_MEMORY_MOVE_COST): Define.
10598
10599 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10600
10601         PR rtl-optimization/47925
10602         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10603         with side effects.  Remove the more-specific check for volatile asms.
10604
10605 2011-03-02  Alan Modra  <amodra@gmail.com>
10606
10607         PR target/47935
10608         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10609         toc relative addresses for valid offsets.
10610
10611 2011-03-01  Richard Guenther  <rguenther@suse.de>
10612
10613         PR tree-optimization/47890
10614         * tree-vect-loop.c (get_initial_def_for_induction): Set
10615         related stmt properly.
10616
10617 2011-03-01  Richard Guenther  <rguenther@suse.de>
10618
10619         PR lto/47924
10620         * lto-streamer.c (lto_record_common_node): Also register
10621         the canonical type.
10622
10623 2011-03-01  Richard Guenther  <rguenther@suse.de>
10624
10625         PR lto/46911
10626         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10627         Do not stream DECL_ABSTRACT_ORIGIN.
10628         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10629         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10630         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10631         Do not stream DECL_ABSTRACT_ORIGIN.
10632         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10633         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10634
10635 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10636
10637         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10638         FUNCTION_VALUE_REGNO_P): Remove.
10639         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10640         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10641         Add 'outgoing' argument.
10642         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10643         function.
10644         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10645         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10646
10647 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10648
10649         PR debug/28047
10650         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10651         (lookup_filename): Likewise.
10652         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10653
10654 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10655             Jakub Jelinek  <jakub@redhat.com>
10656
10657         PR middle-end/47893
10658         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10659         (assign_stack_local_1): Change last argument type to int.
10660         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10661         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10662         don't record padding space into frame_space_list nor use those areas.
10663         (assign_stack_local): Adjust caller.
10664         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10665         of assign_stack_local, pass 0 as last argument.
10666         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10667         callers.
10668
10669 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10670
10671         PR debug/47283
10672         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10673         Use target address_mode and pointer_mode hooks instead of hardcoded
10674         Pmode and ptr_mode.  Handle some simple cases of extending if
10675         POINTERS_EXTEND_UNSIGNED < 0.
10676         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10677         Call convert_debug_memory_address.
10678         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10679         convert_debug_memory_address.
10680
10681         PR middle-end/46790
10682         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10683         * configure: Regenerated.
10684         * config.in: Regenerated.
10685         * varasm.c (default_function_section): Return NULL
10686         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10687
10688 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10689
10690         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10691         the description to match the printed values.
10692
10693 2011-02-28  Richard Guenther  <rguenther@suse.de>
10694
10695         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10696         of the copied scope tree.
10697
10698 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10699
10700         * doc/extend.texi (Function Attributes): Avoid deeply (and
10701         wrongly) nested tables.
10702
10703 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10704
10705         PR middle-end/47903
10706         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10707         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10708         r isn't op0 nor op1.
10709
10710 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10711
10712         * config/avr/avr.md: Remove magic comment for emacs.
10713
10714 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10715
10716         PR target/45261
10717         * config/avr/avr.c (avr_option_override): Use error on bad options.
10718         (avr_help): New function.
10719         (TARGET_HELP): Define.
10720
10721 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10722
10723         PR target/42240
10724         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10725         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10726
10727 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10728
10729         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10730         (ARM Options): Ditto.
10731         (i386 and x86-64 Options): Ditto.
10732         (RX Options): Ditto.
10733         (SPARC Options): Ditto.
10734
10735 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10736
10737         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10738         FreeBSD 6 and later.  Generally use cpu generic.
10739
10740 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10741
10742         * doc/cpp.texi: Update copyright years.
10743
10744 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10745
10746         PR target/46898
10747         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10748
10749 2011-02-25  Jon Beniston  <jon@beniston.com>
10750
10751         PR target/46898
10752         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10753         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10754         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10755         (lm32_block_move_inline): Add type cast to remove warning.
10756         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10757         (gen_int_relational): Move declarations to start of function.
10758
10759 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10760
10761         PR tree-optimization/45470
10762         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10763         can throw internally only.
10764         * tree-vect-stmts.c (vectorizable_call): Likewise.
10765
10766 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10767
10768         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10769         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10770         * config/stormy16/stormy16-protos.h
10771         (xstormy16_preferred_reload_class): Remove.
10772         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10773         static. Change 'rclass' argument and return type to reg_class_t.
10774         (TARGET_PREFERRED_RELOAD_CLASS,
10775         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10776
10777 2011-02-24  Richard Guenther  <rguenther@suse.de>
10778
10779         * lto-streamer-in.c (input_bb): Do not find referenced vars
10780         in debug statements.
10781
10782 2011-02-23  Jason Merrill  <jason@redhat.com>
10783
10784         * common.opt (fabi-version): Document v5 and v6.
10785
10786 2011-02-23  Richard Guenther  <rguenther@suse.de>
10787
10788         PR tree-optimization/47849
10789         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10790
10791 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10792
10793         * opts-common.c (decode_cmdline_option): Print empty string
10794         argument as "" in decoded->orig_option_with_args_text.
10795         * gcc.c (execute): Print empty string argument as ""
10796         in the verbose output.
10797         (do_spec_1): Keep empty string argument.
10798
10799 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10800
10801         * config.gcc: Declare score-* and crx-* obsolete.
10802
10803 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10804
10805         PR rtl-optimization/47763
10806         * web.c (web_main): Ignore naked clobber when replacing register.
10807
10808 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10809
10810         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10811         Remove.
10812
10813 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10814
10815         PR doc/47848
10816         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10817
10818 2011-02-22  Mike Stump  <mikestump@comcast.net>
10819
10820         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10821         assembler.
10822         * configure: Regenerate.
10823
10824 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10825
10826         PR rtl-optimization/46002
10827         * ira-color.c (update_copy_costs): Change class intersection
10828         test to reg_class_contents[] test of 'hard_regno'.
10829
10830 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10831
10832         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10833         than Driver option.
10834         * config/hpux11.opt (mt): Likewise.
10835         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10836         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10837         * config/vax/elf.opt (mno-asm-pic): Likewise.
10838         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10839
10840 2011-02-21  Mike Stump  <mikestump@comcast.net>
10841
10842         PR target/47822
10843         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10844         tree so we can get save the type.
10845         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10846         for CFString instead of trying to use past the end of the builtins.
10847         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10848         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10849         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10850         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10851         Rename to darwin_builtin_cfstring.
10852         (darwin_init_cfstring_builtins): Return the built type.
10853
10854 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10855
10856         PR target/47840
10857         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10858         (_mm256_insert_epi64): Use _mm_insert_epi64.
10859
10860 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10861
10862         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10863         * config/stormy16/stormy16-protos.h
10864         (xstormy16_mode_dependent_address_p): Remove.
10865         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10866         Make static. Change return type to bool. Change argument type to
10867         const_rtx. Remove dead code.
10868         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10869
10870 2011-02-21  Richard Guenther  <rguenther@suse.de>
10871
10872         PR lto/47820
10873         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10874         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10875         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10876         TUs context.
10877         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10878         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10879
10880 2011-02-20  Richard Guenther  <rguenther@suse.de>
10881
10882         PR lto/47822
10883         * tree.c (free_lang_data_in_decl): Clean builtins from
10884         the TU decl BLOCK_VARS.
10885
10886 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10887
10888         PR debug/47620
10889         PR debug/47630
10890         * haifa-sched.c (fix_tick_ready): Skip tick computation
10891         for debug insns.
10892
10893 2011-02-19  Richard Guenther  <rguenther@suse.de>
10894
10895         PR lto/47647
10896         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10897         Remove lazy BLOCK_VARS streaming.
10898         (lto_input_ts_block_tree_pointers): Likewise.
10899         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10900
10901 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10902
10903         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10904
10905 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10906
10907         * config/i386/biarch32.h, config/i386/mach.h,
10908         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10909
10910 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10911
10912         PR target/47800
10913         * config/i386/i386.md (peephole2 for shift and plus): Use
10914         operands[1] original mode in the first insn.
10915
10916 2011-02-18  Mike Stump  <mikestump@comcast.net>
10917
10918         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10919
10920 2011-02-18  Jan Hubicka  <jh@suse.cz>
10921
10922         PR middle-end/47788
10923         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10924         to zero when the function is not inlinable at all.
10925
10926 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10927
10928         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10929         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10930         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10931         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10932         * config/pa/t-pa64: Likewise.
10933         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10934
10935 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10936
10937         PR driver/47787
10938         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10939
10940 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10941
10942         PR target/47792
10943         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10944
10945 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10946
10947         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10948         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10949         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10950         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10951         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10952         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10953         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10954         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10955         m32r_legitimate_address_p): New functions.
10956         * config/m32r/constraints.md (constraint "S"): Don't use
10957         STORE_PREINC_PREDEC_P.
10958         (constraint "U"): Don't use LOAD_POSTINC_P.
10959
10960 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10961
10962         PR rtl-optimization/46178
10963         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10964         compute ira_hard_regno_cover_class[].
10965
10966 2011-02-18  Richard Guenther  <rguenther@suse.de>
10967
10968         PR lto/47798
10969         * lto-streamer.h (lto_global_var_decls): Declare.
10970         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10971         statics for global var processing.
10972
10973 2011-02-18  Richard Guenther  <rguenther@suse.de>
10974
10975         PR tree-optimization/47737
10976         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10977         edge dominance check.
10978
10979 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10980
10981         PR debug/47780
10982         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10983         avoid invalid rtx sharing.
10984
10985 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10986
10987         * doc/cpp.texi (Obsolete Features): Add background on the
10988         origin of assertions.
10989
10990 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10991
10992         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10993         objc_abi == 2.
10994         * config/darwin.c (output_objc_section_asm_op): Added support for
10995         ABI v1 and v2.
10996         (is_objc_metadata): New.
10997         (darwin_objc2_section): New.
10998         (darwin_objc1_section): New.
10999         (machopic_select_section): Added support for ABI v1 and v2.
11000         (darwin_emit_objc_zeroed): New.
11001         (darwin_output_aligned_bss): Detect objc metadata and treat it
11002         appropriately.
11003         (darwin_asm_output_aligned_decl_common): Same.
11004         (darwin_asm_output_aligned_decl_local): Same.
11005         * config/darwin-sections.def: Updated for ABI v1 and v2.
11006         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11007         compiling Objective-C code for the NeXT runtime, default to using
11008         ABI version 0 for 32-bit, and version 2 for 64-bit.
11009
11010 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11011
11012         * common.opt (optimize_fast): New Variable.
11013         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11014         instead of local variable ofast.
11015
11016 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11017
11018         * doc/invoke.texi (fobjc-abi-version): Documented.
11019         (fobjc-nilcheck): Documented.
11020         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11021         version.
11022
11023 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11024
11025         PR driver/47390
11026         * common.opt (export-dynamic): New Driver option.
11027         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11028
11029 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11030
11031         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11032
11033 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11034             Jan Hubicka  <jh@suse.cz>
11035
11036         PR debug/47106
11037         PR debug/47402
11038         * cfgexpand.c (account_used_vars_for_block): Remove.
11039         (estimated_stack_frame_size): Use referenced vars.
11040         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11041         that were referenced in the original function.  Test src_fn
11042         rather than cfun.  Drop redundant get_var_ann.
11043         (setup_one_parameter): Drop redundant get_var_ann.
11044         (declare_return_variable): Likewise.
11045         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11046         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11047         * ipa-inline.c (compute_inline_parameters): Do not compute
11048         disregard_inline_limits here.
11049         (compute_inlinable_for_current, pass_inlinable): New.
11050         (pass_inline_parameters): Require PROP_referenced_vars.
11051         * cgraphunit.c (cgraph_process_new_functions): Don't run
11052         compute_inline_parameters explicitly unless function is in SSA form.
11053         (cgraph_analyze_function): Set .disregard_inline_limits.
11054         * tree-sra.c (convert_callers): Compute inliner parameters
11055         only for functions already in SSA form.
11056
11057 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11058
11059         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11060         -mlittle-endian-data.
11061
11062 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11065         -mno-fpu, not -fpu and -no-fpu.
11066         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11067         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11068
11069 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11070
11071         PR target/43653
11072         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11073         input reload with PLUS RTX.
11074
11075 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11076
11077         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11078         of InverseVar(MDMX).
11079
11080 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11081
11082         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11083         --m4-340.
11084
11085 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11086
11087         * config/mn10300/mn10300.opt (mno-crt0): New.
11088
11089 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11090
11091         * config/m68k/uclinux.opt (static-libc): New Driver option.
11092
11093 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11094
11095         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11096
11097 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11098
11099         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11100         %{muser-extend-enabled}.
11101
11102 2011-02-16  Richard Guenther  <rguenther@suse.de>
11103
11104         PR tree-optimization/47738
11105         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11106         the TODO from tree_predictive_commoning.
11107
11108 2011-02-15  Jeff Law  <law@redhat.com>
11109
11110         Revert
11111         2011-01-25  Jeff Law  <law@redhat.com>
11112
11113         PR rtl-optimization/37273
11114         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11115         handle them like argument loads from stack slots.  Do not double
11116         count memory for memory constants and argument loads from stack slots.
11117
11118 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11119
11120         PR middle-end/47725
11121         * combine.c (cant_combine_insn_p): Revert the last change.
11122
11123 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11124
11125         PR target/47755
11126         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11127         mode for vector constants.  Remove code that checks for TImode.
11128
11129 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11130
11131         PR debug/47106
11132         PR debug/47402
11133         * cgraph.h (compute_inline_parameters): Return void.
11134         * ipa-inline.c (compute_inline_parameters): Adjust.
11135
11136 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11137
11138         PR debug/47106
11139         PR debug/47402
11140         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11141         rather than decl.
11142         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11143         * ipa-inline.c (compute_inline_parameters): Adjust.
11144
11145 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11146
11147         PR debug/47106
11148         PR debug/47402
11149         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11150         Adjust all users.  Pass FN to...
11151         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11152         fn argument.
11153         * ipa-struct-reorg.c: Adjust.
11154         * tree-dfa.c: Adjust.
11155         * tree-into-ssa.c: Adjust.
11156         * tree-sra.c: Adjust.
11157         * tree-ssa-alias.c: Adjust.
11158         * tree-ssa-live.c: Adjust.
11159         * tree-ssa.c: Adjust.
11160         * tree-ssanames.c: Adjust.
11161         * tree-tailcall.c: Adjust.
11162
11163 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11164
11165         PR debug/47106
11166         PR debug/47402
11167         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11168         Adjust all callers.
11169         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11170         * tree-flow-inline.h: Adjust.
11171         * gimple-pretty-print.c: Adjust.
11172         * tree-into-ssa.c: Adjust.
11173         * tree-ssa.c: Adjust.
11174         * cfgexpand.c: Adjust.
11175
11176 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11177
11178         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11179         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11180         (EXTRA_CONSTRAINT): Delete.
11181         * config/iq2000/constraints.md: New file.
11182         * config/iq2000/iq2000.md: Include it.
11183         (define_insn ""): Delete.
11184         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11185         unsupported constraint letters from patterns.
11186         (call_value, call_value_internal1): Likewise.
11187         (call_value_multiple_internal1): Likewise.
11188
11189 2011-02-15  Nick Clifton  <nickc@redhat.com>
11190
11191         * config/mn10300/mn10300.c: Include tm-constrs.h.
11192         (struct liw_data): New data structure describing an LIW candidate
11193         instruction.
11194         (extract_bundle): Use struct liw_data.  Allow small integer
11195         operands for some instructions.
11196         (check_liw_constraints): Use struct liw_data.  Remove swapped
11197         parameter.  Add comments describing the checks.  Fix bug when
11198         assigning the source of liw1 to the source of liw2.
11199         (liw_candidate): Delete.  Code moved into extract_bundle.
11200         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11201         before swapping.
11202         * config/mn10300/predicates.md (liw_operand): New predicate.
11203         Allows registers and small integer constants.
11204         * config/mn10300/constraints.md (O): New constraint.  Accetps
11205         integers in the range -8 to +7 inclusive.
11206         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11207         for moving a small integer into a register.  Give this alternative
11208         LIW attributes.
11209         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11210         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11211         using the J,K,L and M constraints,
11212         (liw): Remove SI mode on second operands to allow for HI and QI
11213         mode values.
11214         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11215         instruction.
11216
11217 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11218
11219         PR middle-end/47725
11220         * combine.c (cant_combine_insn_p): Check zero/sign extended
11221         hard registers.
11222
11223 2011-02-15  Richard Guenther  <rguenther@suse.de>
11224
11225         PR tree-optimization/47743
11226         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11227         for a non-type-compatible VN lookup bail out.
11228
11229 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11230
11231         * config/fr30/constraints.md: New file.
11232         * config/fr30/fr30.md: Include it.
11233         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11234         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11235         (EXTRA_CONSTRAINT): Delete.
11236
11237 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11238
11239         * config/frv/constraints.md: New file.
11240         * config/frv/predicates.md: Include it.
11241         * config/frv/frv.c (reg_class_from_letter): Delete.
11242         (frv_option_override): Don't initialize it.
11243         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11244         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11245         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11246         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11247         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11248         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11249         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11250         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11251         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11252         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11253         (REG_CLASS_FROM_CONSTRAINT): Delete.
11254
11255 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11256
11257         PR middle-end/47581
11258         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11259         if frame size is 0 in a leaf function.
11260
11261 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11262
11263         PR pch/14940
11264         * config/alpha/host-osf.c: New file.
11265         * config/alpha/x-osf: New file.
11266         * config.host (alpha*-dec-osf*): Use it.
11267
11268 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11269
11270         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11271         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11272         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11273         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11274         type to const_rtx.
11275         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11276
11277 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11278
11279         * config/stormy16/constraints.md: New file.
11280         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11281         Use satisfies_constraint_Q and satisfies_constraint_R.
11282         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11283         Delete.
11284         (xstormy16_legitiamte_address_p): Declare.
11285         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11286         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11287         (EXTRA_CONSTRAINT): Delete.
11288         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11289         Un-staticize.
11290         (xstormy16_extra_constraint_p): Delete.
11291
11292 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11293
11294         PR tree-optimization/46494
11295         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11296         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11297         (pass_rtl_loop_done): Add TODO_verify_flow.
11298         * fwprop.c (pass_rtl_fwprop): Likewise.
11299         * modulo-sched.c (pass_sms): Likewise.
11300         * tree-ssa-dom.c (pass_dominator): Likewise.
11301         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11302         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11303         (pass_tree_loop_done): Likewise.
11304         * tree-ssa-pre.c (execute_pre): Likewise.
11305         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11306         * tree-ssa-sink.c (pass_sink_code): Likewise.
11307         * tree-vrp.c (pass_vrp): Likewise.
11308
11309 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11310
11311         * config/v850/constraints.md: New file.
11312         * config/v850/v850.md: Include it.
11313         * config/v850/predicates.md (reg_or_0_operand): Use
11314         satisfies_constraint_G.
11315         (special_symbolref_operand): Use satisfies_constraint_K.
11316         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11317         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11318         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11319         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11320         (EXTRA_CONSTRAINT): Delete.
11321         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11322         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11323         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11324
11325 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11326
11327         PR target/47696
11328         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11329         description.
11330
11331 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11332
11333         * config/mcore/constraints.md: New file.
11334         * config/mcore/mcore.md: Include it.
11335         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11336         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11337         (REG_CLASS_FROM_LETTER): Delete.
11338         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11339         insn_const_int_ok_for_constraint.
11340         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11341         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11342         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11343         (EXTRA_CONSTRAINT): Delete.
11344
11345 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11346
11347         PR ada/41929
11348         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11349         (IS_SIGHANDLER): Define.
11350         (sparc64_is_sighandler): New function, split off from
11351         sparc64_fallback_frame_state.
11352         (sparc_is_sighandler): New function, split off from
11353         sparc_fallback_frame_state.
11354         (sparc64_fallback_frame_state): Merge with ...
11355         (sparc_fallback_frame_state): ... this into ...
11356         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11357         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11358         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11359         stack instead of hardcoded offsets.
11360
11361 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11362
11363         PR target/45808
11364         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11365
11366 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11367
11368         * configure: Regenerate.
11369
11370 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11371
11372         PR driver/45731
11373         * gcc.c (asm_options): Correct spec matching --target-help.
11374
11375 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11376
11377         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11378         to gimple call error.
11379
11380 2011-02-12  Mike Stump  <mikestump@comcast.net>
11381
11382         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11383         comments in backslash regions.
11384
11385 2011-02-12  Mike Stump  <mikestump@comcast.net>
11386             Jakub Jelinek  <jakub@redhat.com>
11387             Iain Sandoe  <iains@gcc.gnu.org>
11388
11389         PR target/47324
11390         * dwarf2out.c (output_cfa_loc): When required, apply the
11391         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11392         (output_loc_sequence): Likewise.
11393         (output_loc_operands_raw): Likewise.
11394         (output_loc_sequence_raw): Likewise.
11395         (output_cfa_loc): Likewise.
11396         (output_loc_list): Suppress register number adjustment when
11397         calling output_loc_sequence()
11398         (output_die): Likewise.
11399
11400 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11401
11402         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11403         Remove macros.
11404         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11405         xtensa_memory_move_cost): New functions.
11406         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11407
11408 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11409
11410         PR lto/47225
11411         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11412         in the current directory.
11413         * configure: Rebuilt.
11414
11415 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11416
11417         * config/darwin.c (darwin_override_options): Add a hunk missed
11418         from the commit of r168571.  Trim comment line lengths and
11419         correct indents of the preceding block.
11420
11421 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11422
11423         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11424         the switch.
11425
11426 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11427
11428         * common.opt (nostartfiles): New Driver option.
11429
11430 2011-02-11  Xinliang David Li  <davidxl@google.com>
11431
11432         PR tree-optimization/47707
11433         * tree-chrec.c (convert_affine_scev): Keep type precision.
11434
11435 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11436
11437         PR tree-optimization/47420
11438         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11439
11440 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11441
11442         PR rtl-optimization/47614
11443         * rtl.h (check_for_inc_dec): Declare.
11444         * dse.c (check_for_inc_dec): Externalize...
11445         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11446         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11447
11448 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11449
11450         PR driver/47678
11451         * gcc.c (main): Do not compile inputs if there were errors in
11452         option handling.
11453         * opts-common.c (read_cmdline_option): Check for wrong language
11454         after other error checks.
11455
11456 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11457
11458         * cgraph.c: Fix comment typos.
11459         * cgraph.h: Likewise.
11460         * cgraphunit.c: Likewise.
11461         * ipa-cp.c: Likewise.
11462         * ipa-inline.c: Likewise.
11463         * ipa-prop.c: Likewise.
11464         * ipa-pure-const.c: Likewise.
11465         * ipa-ref.c: Likewise.
11466         * ipa-reference.c: Likewise.
11467
11468 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR debug/47684
11471         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11472
11473 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11474
11475         PR testsuite/47400
11476         * doc/sourcebuild.texi (Require Support): Document
11477         dg-require-ascii-locale.
11478
11479 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11480
11481         * doc/lto.texi (Write summary): Fix missing parentheses.
11482
11483 2011-02-10  DJ Delorie  <dj@redhat.com>
11484
11485         * config/m32c/m32c.c (m32c_option_override): Disable
11486         -fcombine-stack-adjustments until flag value tracking and compare
11487         optimization can be rewritten.
11488
11489 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11490
11491         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11492         PROCESSOR_POWER7.
11493         (PROCESSOR_DEFAULT64): Likewise.
11494
11495 2011-02-10  Richard Henderson  <rth@redhat.com>
11496
11497         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11498         change from 2011-02-03.
11499         * config/rx/rx.c (flags_from_code): Likewise.
11500         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11501         is valid, n/pz otherwise.
11502         (rx_select_cc_mode): Return CCmode if Y is not zero.
11503
11504 2011-02-10  Richard Guenther  <rguenther@suse.de>
11505
11506         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11507
11508 2011-02-10  Richard Guenther  <rguenther@suse.de>
11509
11510         PR tree-optimization/47677
11511         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11512
11513 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11514
11515         PR target/47665
11516         * combine.c (make_compound_operation): Only change shifts into
11517         multiplication for SCALAR_INT_MODE_P.
11518
11519 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11520
11521         PR testsuite/47622
11522         Revert
11523         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11524         PR debug/42631
11525         * web.c (entry_register): Don't clobber the number of the
11526         first uninitialized reference in used[].
11527
11528 2011-02-09  Richard Guenther  <rguenther@suse.de>
11529
11530         PR tree-optimization/47664
11531         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11532         all edges again.
11533
11534 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11535
11536         PR target/46481
11537         PR target/47032
11538         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11539         PROCESSOR_POWER7.
11540         (PROCESSOR_DEFAULT64): Same.
11541         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11542
11543 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11544
11545         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11546
11547 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11548
11549         PR middle-end/45505
11550         * tree-sra.c (struct access): New flags grp_scalar_read and
11551         grp_scalar_write.  Changed description of assignment read and write
11552         flags.
11553         (dump_access): Dump new flags, reorder all of them.
11554         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11555         to detect multiple scalar reads.
11556         (analyze_access_subtree): Use the new scalar read write flags instead
11557         of the old flags.  Adjusted comments.
11558
11559 2011-02-08  DJ Delorie  <dj@redhat.com>
11560
11561         PR target/47548
11562         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11563         patterns.
11564
11565 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11566
11567         * config/m68k/uclinux.opt: New.
11568         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11569
11570 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11571
11572         * config/cris/elf.opt (sim): New Driver option.
11573
11574 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11575
11576         * config/xtensa/elf.opt: New.
11577         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11578
11579 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11580
11581         * config/vax/elf.opt: New.
11582         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11583
11584 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11587
11588 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11589
11590         * config/gnu-user.opt: New.
11591         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11592         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11593         *-*-uclinux*): Use gnu-user.opt.
11594
11595 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11596
11597         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11598         * config/i386/gnu.h (CPP_SPEC): Likewise.
11599
11600 2011-02-08  Ian Lance Taylor  <iant@google.com>
11601
11602         * common.opt (fcx-limited-range): Add SetByCombined flag.
11603         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11604         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11605         (fassociative-math, freciprocal-math): Likewise.
11606         (funsafe-math-optimizations): Likewise.
11607         * opth-gen.awk: Handle SetByCombined.
11608         * optc-gen.awk: Likewise.
11609         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11610         (set_unsafe_math_optimizations_flags): Likewise.
11611         * doc/options.texi (Option properties): Document SetByCombined.
11612
11613 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11614
11615         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11616         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11617         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11618         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11619         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11620
11621 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11622
11623         PR tree-optimization/46834
11624         PR tree-optimization/46994
11625         PR tree-optimization/46995
11626         * graphite-sese-to-poly.c (used_outside_reduction): New.
11627         (detect_commutative_reduction): Call used_outside_reduction.
11628         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11629         translate_scalar_reduction_to_array only when at least one
11630         loop-phi/close-phi tuple has been detected.
11631
11632 2011-02-08  Richard Guenther  <rguenther@suse.de>
11633
11634         PR middle-end/47639
11635         * tree-vect-generic.c (expand_vector_operations_1): Update
11636         stmts here ...
11637         (expand_vector_operations): ... not here.  Cleanup EH info
11638         and the CFG if required.
11639
11640 2011-02-08  Richard Guenther  <rguenther@suse.de>
11641
11642         PR tree-optimization/47641
11643         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11644         require type compatibility.
11645
11646 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11647
11648         * gimple-low.c (lower_function_body): Don't remove the location of
11649         the return statement here.
11650         (lower_gimple_return): Do it here instead but only if the return
11651         statement is actually used twice.
11652
11653 2011-02-08  Richard Guenther  <rguenther@suse.de>
11654
11655         PR tree-optimization/47632
11656         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11657         unused up_to_stmt parameter, return whether cfg-cleanup is
11658         necessary, remove EH info properly.
11659         (forward_propagate_into_gimple_cond): Adjust caller.
11660         (forward_propagate_into_cond): Likewise.
11661         (forward_propagate_comparison): Likewise.
11662         (tree_ssa_forward_propagate_single_use_vars): Make
11663         forward_propagate_comparison case similar to the two others.
11664
11665 2011-02-08  Nick Clifton  <nickc@redhat.com>
11666
11667         * config/mn10300/mn10300.opt (mliw): New command line option.
11668         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11669         (liw_bundling): New automaton.
11670         (liw): New attribute.
11671         (liw_op): New attribute.
11672         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11673         (movsi_internal): Add LIW attributes.
11674         (andsi3): Likewise.
11675         (iorsi3): Likewise.
11676         (xorsi3): Likewise.
11677         (addsi3): Separate register and immediate alternatives.
11678         Add LIW attributes.
11679         (subsi3): Likewise.
11680         (cmpsi): Likewise.
11681         (aslsi3): Likewise.
11682         (lshrsi3): Likewise.
11683         (ashrsi3): Likewise.
11684         (liw): New pattern.
11685         * config/mn10300/mn10300.c (liw_op_names): New
11686         (mn10300_print_operand): Handle 'W' operand descriptor.
11687         (extract_bundle): New function.
11688         (check_liw_constraints): New function.
11689         (liw_candidate): New function.
11690         (mn10300_bundle_liw): New function.
11691         (mn10300_reorg): New function.
11692         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11693         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11694         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11695         __LIW__ or __NO_LIW__.
11696         * doc/invoke.texi: Describe the -mliw command line option.
11697
11698 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11699
11700         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11701         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11702         pthread_mutex_unlock): Remove.
11703         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11704         * config/pa/t-pa64: Likewise.
11705         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11706         shared libc if not linking against libpthread.
11707         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11708
11709 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11710
11711         PR target/47558
11712         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11713         on 10.6 and later to ensure that we always use the unwinder from
11714         the system.  Only add -no_compact_unwind when tarteting darwin
11715         10.6 or later.
11716
11717 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11718
11719         PR target/46997
11720         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11721         (vec_interleave_lowv2sf): Ditto.
11722         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11723         (vec_extract_oddv2sf): Ditto.
11724
11725 2011-02-07  Mike Stump  <mikestump@comcast.net>
11726
11727         PR target/42333
11728         Add __ieee_divdc3 entry point.
11729         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11730         entry point.
11731         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11732         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11733         * config/darwin.c (darwin_rename_builtins): Add.
11734         * config/darwin-protos.h (darwin_rename_builtins): Add.
11735
11736 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11737
11738         PR target/47636
11739         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11740         for the condition.
11741
11742 2011-02-07  Mike Stump  <mikestump@comcast.net>
11743
11744         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11745
11746 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11747
11748         PR target/47534
11749         * config/avr/libgcc.S (exit): Move .endfunc
11750
11751 2011-02-07  Richard Guenther  <rguenther@suse.de>
11752
11753         PR tree-optimization/47615
11754         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11755         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11756         (run_scc_vn): Initialize it.
11757         (visit_reference_op_load): Use it.
11758         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11759
11760 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11761
11762         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11763         DImode trapping arithmetic libfuncs.
11764
11765 2011-02-07  Richard Guenther  <rguenther@suse.de>
11766
11767         PR tree-optimization/47621
11768         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11769         two duplicates ...
11770         (execute_update_addresses_taken): ... here.  Make it more
11771         conservative in what we accept.
11772
11773 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11774
11775         * config/sparc/freebsd.h (ASM_SPEC): Define.
11776         * config/sparc/vxworks.h (ASM_SPEC): Define.
11777
11778 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11779
11780         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11781
11782 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11783
11784         * doc/invoke.texi: Remove reference to compiler internals from
11785         user documentation.
11786
11787         * reg-notes.def: Remove REG_VALUE_PROFILE.
11788         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11789
11790 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11791
11792         PR middle-end/47610
11793         * varasm.c (default_section_type_flags): If decl is NULL,
11794         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11795
11796 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11797
11798         PR debug/42631
11799         * web.c (entry_register): Don't clobber the number of the
11800         first uninitialized reference in used[].
11801
11802 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11803
11804         PR tree-optimization/46194
11805         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11806         (build_classic_dist_vector_1): Do not represent classic distance
11807         vectors when the access functions are variating in different loops.
11808
11809 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11810
11811         * config/mips/iris6.opt: New.
11812         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11813
11814 2011-02-04  Richard Henderson  <rth@redhat.com>
11815             Steve Ellcey  <sje@cup.hp.com>
11816
11817         PR target/46997
11818         * config/ia64/predicates.md (mux1_brcst_element): New.
11819         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11820         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11821         (ia64_unpack_sign): New.
11822         (ia64_expand_unpack): Rewrite using new routines.
11823         (ia64_expand_widen_sum): Ditto.
11824         (ia64_expand_dot_prod_v8qi): Ditto.
11825         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11826         routines, add endian check.
11827         (pmpy2_even): Rename from pmpy2_r, add endian check.
11828         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11829         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11830         (vec_widen_smult_hi_v4hi): Ditto.
11831         (vec_widen_umult_lo_v4hi): Ditto.
11832         (vec_widen_umult_hi_v4hi): Ditto.
11833         (mulv2si3): Change endian checks.
11834         (sdot_prodv4hi): Rewrite with new calls.
11835         (udot_prodv4hi): New.
11836         (vec_pack_ssat_v4hi): Add endian check.
11837         (vec_pack_usat_v4hi): Ditto.
11838         (vec_pack_ssat_v2si): Ditto.
11839         (max1_even): Rename from max1_r, add endian check.
11840         (max1_odd): Rename from max1_l, add endian check.
11841         (*mux1_rev): Format change.
11842         (*mux1_mix): Ditto.
11843         (*mux1_shuf): Ditto.
11844         (*mux1_alt): Ditto.
11845         (*mux1_brcst_v8qi): Use new predicate.
11846         (vec_extract_evenv8qi): Remove endian check.
11847         (vec_extract_oddv8qi): Ditto.
11848         (vec_interleave_lowv4hi): Format change.
11849         (vec_interleave_highv4hi): Ditto.
11850         (mix2_even): Rename from mix2_r, add endian check.
11851         (mix2_odd): Rename from mux2_l, add endian check.
11852         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11853         (vec_extract_evenodd_helper): Format change.
11854         (vec_extract_evenv4hi): Remove endian check.
11855         (vec_extract_oddv4hi): Remove endian check.
11856         (vec_interleave_lowv2si): Format change.
11857         (vec_interleave_highv2si): Format change.
11858         (vec_initv2si): Remove endian check.
11859         (vecinit_v2si): Add endian check.
11860         (reduc_splus_v2sf): Add endian check.
11861         (reduc_smax_v2sf): Ditto.
11862         (reduc_smin_v2sf): Ditto.
11863         (vec_initv2sf): Remove endian check.
11864         (fpack): Add endian check.
11865         (fswap): Add endian check.
11866         (vec_interleave_highv2sf): Add endian check.
11867         (vec_interleave_lowv2sf): Add endian check.
11868         (fmix_lr): Add endian check.
11869         (vec_setv2sf): Format change.
11870         (*vec_extractv2sf_0_be): Use shift to extract operand.
11871         (*vec_extractv2sf_1_be): New.
11872         (vec_pack_trunc_v4hi): Add endian check.
11873         (vec_pack_trunc_v2si): Format change.
11874
11875 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11876
11877         PR inline-asm/23200
11878         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11879         do bb, locus and block comparison and disallow loads if it is not set.
11880         (stmt_is_replaceable_p): New function.
11881         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11882         callers.
11883         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11884         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11885         SSA_NAME_DEF_STMT.
11886         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11887
11888 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11889
11890         * config/rs6000/xilinx.opt: New.
11891         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11892
11893 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11894
11895         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11896
11897 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11898
11899         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11900         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11901         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11902         secondary_reload_info, xtensa_secondary_reload): Remove.
11903         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11904         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11905         (xtensa_preferred_reload_class): Make static. Change return and
11906         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11907         Use CONST_DOUBLE_P predicate.
11908         (xtensa_preferred_output_reload_class): New function.
11909         (xtensa_secondary_reload): Make static.
11910
11911 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11912
11913         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11914         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11915         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11916
11917 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11918
11919         PR middle-end/31490
11920         * output.h (SECTION_RELRO): Define.
11921         (SECTION_MACH_DEP): Adjust.
11922         (get_variable_section): New prototype.
11923         * varpool.c (varpool_finalize_named_section_flags): New function.
11924         (varpool_assemble_pending_decls): Call it.
11925         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11926         * cgraphunit.c (cgraph_output_in_order): Call
11927         varpool_finalize_named_section_flags.
11928         * varasm.c (get_section): Allow section flags conflicts between
11929         relro and read-only sections if the section hasn't been declared yet.
11930         Set SECTION_OVERRIDE after diagnosing section type conflict.
11931         (get_variable_section): No longer static.
11932         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11933         readonly sections that need relocations.
11934         (decl_readonly_section_1): New function.
11935         (decl_readonly_section): Use it.
11936
11937         Revert:
11938         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11939                     Steve Ellcey  <sje@cup.hp.com>
11940
11941         PR middle-end/31490
11942         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11943         if section attribute used.
11944
11945 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11946
11947         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11948         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11949         (darwin_init_sections): Remove assertion.
11950
11951 2011-02-03  Nick Clifton  <nickc@redhat.com>
11952
11953         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11954         lt and ge.
11955         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11956         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11957         instead of "n" and "pz".
11958         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11959         CC_FLAG_S.
11960
11961 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11962
11963         PR target/47312
11964         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11965         fma, expand FMA_EXPR as fma{,f,l} call.
11966
11967         PR lto/47274
11968         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11969         copy them into a unsigned char variable and pass address of it to
11970         lto_output_data_stream.
11971
11972         PR target/47564
11973         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11974         around backend_init_target and lang_dependent_init_target calls.
11975         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11976         (verify_cgraph_node): Don't call set_cfun here.  Use
11977         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11978         Set error_found for incorrectly represented calls to thunks.
11979
11980 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11981
11982         PR debug/43092
11983         PR rtl-optimization/43494
11984         * rtl.h (for_each_inc_dec_fn): New type.
11985         (for_each_inc_dec): Declare.
11986         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11987         (for_each_inc_dec_find_inc_dec): New fn.
11988         (for_each_inc_dec_find_mem): New fn.
11989         (for_each_inc_dec): New fn.
11990         * dse.c (struct insn_size): Remove.
11991         (replace_inc_dec, replace_inc_dec_mem): Remove.
11992         (emit_inc_dec_insn_before): New fn.
11993         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11994         (canon_address): Pass mem modes to cselib_lookup.
11995         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11996         (cselib_lookup_from_insn): Likewise.
11997         (cselib_subst_to_values): Likewise.
11998         * cselib.c (find_slot_memmode): New var.
11999         (cselib_find_slot): New fn.  Use it instead of
12000         htab_find_slot_with_hash everywhere.
12001         (entry_and_rtx_equal_p): Use find_slot_memmode.
12002         (autoinc_split): New fn.
12003         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12004         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12005         Deal with autoinc.  Special-case recursion into MEMs.
12006         (cselib_hash_rtx): Likewise.
12007         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12008         address and MEM modes.
12009         (cselib_subst_to_values): Add memmode, pass it on.
12010         Deal with autoinc.
12011         (cselib_lookup): Add memmode argument, pass it on.
12012         (cselib_lookup_from_insn): Add memmode.
12013         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12014         (struct cselib_record_autoinc_data): New.
12015         (cselib_record_autoinc_cb): New fn.
12016         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12017         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12018         (cselib_process_insn): ... here.
12019         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12020         to cselib_lookup.
12021         (add_uses): Likewise, also to cselib_subst_to_values.
12022         (add_stores): Likewise.
12023         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12024         cselib_subst_to_values.
12025         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12026         * gcse.c (do_local_cprop): Adjusted.
12027         * postreload.c (reload_cse_simplify_set): Adjusted.
12028         (reload_cse_simplify_operands): Adjusted.
12029         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12030
12031 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12032
12033         PR tree-optimization/45122
12034         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12035         unsafe assumptions when there's more than one loop exit.
12036
12037 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12038
12039         PR target/47272
12040         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12041         Document using vector double with the load/store builtins, and
12042         that the load/store builtins always use Altivec instructions.
12043
12044         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12045         to use altivec memory instructions, even on VSX.
12046         (vector_altivec_store_<mode>): Ditto.
12047
12048         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12049         function.
12050
12051         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12052         V2DF, V2DI support to load/store overloaded builtins.
12053
12054         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12055         altivec load/store builtins for V2DF/V2DI types.
12056
12057         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12058         set avoid indexed addresses on power6 if -maltivec.
12059         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12060         vector_altivec_load/vector_altivec_store builtins.
12061         (altivec_expand_st_builtin): Ditto.
12062         (altivec_expand_builtin): Add VSX memory builtins.
12063         (rs6000_init_builtins): Add V2DI types to internal types.
12064         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12065         load/store builtins.
12066         (rs6000_address_for_altivec): Insure memory address is appropriate
12067         for Altivec.
12068
12069         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12070         vec_vsx_ld and vec_vsx_st.
12071         (vsx_store_<mode>): Ditto.
12072
12073         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12074         variables to hold long long types for VSX vector memory builtins.
12075         (RS6000_BTI_unsigned_long_long): Ditto.
12076         (long_long_integer_type_internal_node): Ditti.
12077         (long_long_unsigned_type_internal_node): Ditti.
12078
12079         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12080         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12081         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12082
12083         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12084         short cuts.
12085         (vec_vsx_st): Ditto.
12086
12087 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12088
12089         * config/pa/pa-hpux10.opt: New.
12090         * config/hpux11.opt (pthread): New Driver option.
12091         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12092         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12093
12094 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12095
12096         * config/ia64/vms.opt: New.
12097         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12098
12099 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12100
12101         PR target/47580
12102         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12103         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12104         generator functions.
12105         (vsx_floatuns<VSi><mode>2): Ditto.
12106         (vsx_fix_trunc<mode><VSi>2): Ditto.
12107         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12108
12109 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12110
12111         * config/i386/djgpp.opt (posix): New Driver option.
12112
12113 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12114
12115         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12116         Move to the unsupported targets list.
12117
12118 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12119
12120         PR rtl-optimization/47525
12121         * df-scan.c: Update copyright years.
12122         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12123         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12124
12125 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12126
12127         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12128         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12129         (ASM_OUTPUT_ASCII): Remove.
12130         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12131
12132 2011-02-02  Jeff Law  <law@redhat.com>
12133
12134         PR middle-end/47543
12135         * reload.c (find_reloads_address): Handle reg+d address where both
12136         components are invalid by reloading the entire address.
12137
12138 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12139             Richard Guenther  <rguenther@suse.de>
12140
12141         PR tree-optimization/40979
12142         PR bootstrap/47044
12143         * passes.c (init_optimization_passes): After LIM call copy_prop
12144         and DCE to clean up.
12145         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12146
12147 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12148
12149         PR tree-optimization/47576
12150         PR tree-optimization/47555
12151         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12152         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12153         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12154         * tree-scalar-evolution.c (follow_ssa_edge): Use
12155         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12156
12157 2011-02-02  Richard Guenther  <rguenther@suse.de>
12158
12159         PR tree-optimization/47566
12160         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12161
12162 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12163
12164         PR debug/47106
12165         PR debug/47402
12166         * tree-inline.c (declare_return_variable): Remove unused caller
12167         variable.
12168
12169         PR debug/47106
12170         PR debug/47402
12171         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12172         * cfgexpand.c (account_used_vars_for_block): Use them.
12173         * tree-nrv.c (tree_nrv): Likewise.
12174         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12175         (dump_scope_block): Likewise.
12176         (remove_unused_locals): Likewise.
12177
12178         PR debug/47106
12179         PR debug/47402
12180         * tree-inline.c (declare_return_variable): Add result decl to
12181         local decls only once.
12182         * gimple-low.c (record_vars_into): Mark newly-created variables
12183         as referenced.
12184
12185 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12186
12187         PR debug/47498
12188         PR debug/47501
12189         PR debug/45136
12190         PR debug/45130
12191         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12192         debug insns.
12193         (no_real_insns_p, schedule_block, set_priorities): Drop special
12194         treatment of boundary debug insns.
12195         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12196         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12197         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12198         (BOUNDARY_DEBUG_INSN_P): Likewise.
12199         (SCHEDULE_DEBUG_INSN_P): Likewise.
12200         * sched-rgn.c (init_ready_list): Drop special treatment of
12201         boundary debug insns.
12202         * final.c (rest_of_clean_state): Clear notes' BB.
12203
12204 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12205
12206         * config/openbsd.opt (assert=): New Driver option.
12207
12208 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12209
12210         * config/i386/nto.opt: New.
12211         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12212
12213 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12214
12215         * config/i386/netware.opt: New.
12216         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12217
12218 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12219
12220         * config/interix.opt (posix): New Driver option.
12221
12222 2011-02-01  DJ Delorie  <dj@redhat.com>
12223
12224         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12225
12226         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12227         class for A0/A1.
12228
12229 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12230
12231         PR tree-optimization/47561
12232         * toplev.c (process_options): Print the Graphite flags.  Add
12233         flag_loop_flatten to the list of options requiring Graphite.
12234
12235 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12236
12237         * config/i386/cygming.opt (posix): New Driver option.
12238
12239 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12240
12241         * config/arm/vxworks.opt: New.
12242         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12243
12244 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12245
12246         * config/alpha/elf.opt: New.
12247         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12248         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12249
12250 2011-02-01  Richard Guenther  <rguenther@suse.de>
12251
12252         PR tree-optimization/47559
12253         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12254         store-motion on references that can throw.
12255
12256 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12257
12258         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12259         * tree-pass.h (TDF_CSELIB): New macro.
12260         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12261         cselib_lookup): Check for it rather than for TDF_DETAILS.
12262
12263 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12264
12265         PR driver/47547
12266         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12267         is HOST_BIT_BUCKET.
12268
12269         * opts.c (finish_options): Don't add x_aux_base_name if it is
12270         HOST_BIT_BUCKET.
12271
12272 2011-02-01  Richard Guenther  <rguenther@suse.de>
12273
12274         PR tree-optimization/47555
12275         Revert
12276         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12277
12278         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12279
12280 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12281
12282         PR gcc/46692
12283         * config/lm32/t-lm32: Add multilib for all CPU options.
12284
12285 2011-02-01  Richard Guenther  <rguenther@suse.de>
12286
12287         PR tree-optimization/47541
12288         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12289         sure to have a field at offset zero.
12290
12291 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12292
12293         * config/arc/arc.opt (EB, EL): New Driver options.
12294
12295 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12296
12297         * config/alpha/osf5.opt: New.
12298         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12299
12300 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12301
12302         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12303
12304 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12305
12306         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12307         -floop-interchange.
12308         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12309         is an alias of -floop-interchange and that it requires the
12310         Graphite infrastructure.
12311         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12312         flag_loop_interchange based on the value of flag_tree_loop_linear.
12313
12314 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12315             Richard Guenther  <rguenther@suse.de>
12316
12317         PR tree-optimization/47538
12318         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12319         type instead of r1type, except for comparisons.  For right
12320         shifts and comparisons punt if there are mismatches in
12321         sizetype vs. non-sizetype types.
12322
12323 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12324
12325         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12326         avx_runtime.
12327
12328 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12329
12330         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12331         version number.
12332         * configure: Regenerate.
12333
12334 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12335
12336         * configure.ac (gcc_cv_ld_static_option): Define.
12337         (gcc_cv_ld_dynamic_option): Define.
12338         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12339         instead.
12340         (HAVE_LD_STATIC_DYNAMIC): Update message.
12341         (LD_STATIC_OPTION): Define.
12342         (LD_DYNAMIC_OPTION): Define.
12343         * configure: Regenerate.
12344         * config.in: Regenerate.
12345         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12346         HAVE_LD_STATIC_DYNAMIC]: Use them.
12347
12348 2011-01-31  Nick Clifton  <nickc@redhat.com>
12349
12350         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12351         registers inside interrupt handlers if the handler is not a leaf
12352         function.
12353
12354 2011-01-31  Nick Clifton  <nickc@redhat.com>
12355
12356         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12357         reg_renumber returning an INVALID_REGNUM.
12358
12359 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12360
12361         PR libgcj/44341
12362         * doc/install.texi: Document host options discarded when cross
12363         configuring target libraries.
12364
12365 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12366
12367         Reverted:
12368         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12369         PR debug/45136
12370         PR debug/45130
12371         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12372         debug insns.
12373         (no_real_insns_p, schedule_block, set_priorities): Drop special
12374         treatment of boundary debug insns.
12375         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12376         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12377         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12378         (BOUNDARY_DEBUG_INSN_P): Likewise.
12379         (SCHEDULE_DEBUG_INSN_P): Likewise.
12380         * sched-rgn.c (init_ready_list): Drop special treatment of
12381         boundary debug insns.
12382         * final.c (rest_of_clean-state): Clear notes' BB.
12383
12384 2011-01-31  Alan Modra  <amodra@gmail.com>
12385
12386         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12387         toc relative expressions as we do in print_operand_address.
12388
12389 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12390
12391         * doc/extend.texi: Follow spelling conventions.
12392         * doc/invoke.texi: Fix a typo.
12393
12394 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * config/hpux11.opt: New.
12397         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12398         ia64*-*-hpux*): Use hpux11.opt.
12399
12400 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12401
12402         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12403         to tmake_file.
12404
12405 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12406
12407         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12408         support sites.
12409
12410 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12411
12412         * doc/install.texi (Binaries): Remove outdated reference for
12413         Motorola 68HC11/68HC12 downloads.
12414
12415 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12416
12417         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12418         Drepper's paper.
12419
12420 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12421
12422         PR bootstrap/47147
12423         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12424         used by NetBSD.
12425
12426 2011-01-28  Ahmad Sharif  <asharif@google.com>
12427
12428         * value-prof.c (check_counter): Corrected error message.
12429
12430 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12431
12432         * config/arm/arm.c (arm_legitimize_reload_address): New.
12433         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12434         arm_legitimize_reload_address.
12435         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12436
12437 2011-01-28  Ian Lance Taylor  <iant@google.com>
12438
12439         * godump.c (go_define): Ignore macros whose definitions include
12440         two adjacent operands.
12441
12442 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12443
12444         PR target/42894
12445         * varasm.c (force_const_mem): Store copy of x in desc->constant
12446         instead of x itself.
12447         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12448         itself into REG_EQUAL note.
12449
12450 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12451
12452         * config/freebsd.opt (posix, rdynamic): New Driver options.
12453
12454 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12455
12456         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12457         -Bstatic/-Bdynamic.
12458         * configure: Regenerate.
12459
12460 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12461
12462         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12463         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12464
12465 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12466
12467         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12468         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12469         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12470         (s390_preferred_reload_class): Make static. Change return and
12471         'rclass' argument type to reg_class_t.
12472
12473 2011-01-27  Jan Hubicka  <jh@suse.cz>
12474
12475         PR middle-end/46949
12476         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12477         (process_function_and_variable_attributes): Check defined weakrefs.
12478
12479 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12480
12481         PR tree-optimization/47228
12482         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12483         build_ref_for_offset.
12484
12485 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12486
12487         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12488
12489 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12490
12491         PR rtl-optimization/46856
12492         * postreload.c (reload_combine_recognize_const_pattern): Do not
12493         separate cc0 setter and user on cc0 targets.
12494
12495 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12496
12497         PR c/43082
12498         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12499         passed a VOID_TYPE expression, immediately emit an error and
12500         return error_mark_node.
12501
12502 2011-01-26  Jeff Law  <law@redhat.com>
12503
12504         PR rtl-optimization/47464
12505         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12506         rather than may_trap_p as needed.
12507
12508 2011-01-26  DJ Delorie  <dj@redhat.com>
12509
12510         PR rtl-optimization/46878
12511         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12512         setter/user dependency as well.
12513
12514 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12515
12516         PR rtl-optimization/44469
12517         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12518         after removing trivially dead basic blocks.
12519
12520 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12521
12522         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12523         * config/frv/frv.h (LINK_SPEC): Likewise.
12524         * config/i386/netware.h (LINK_SPEC): Likewise.
12525         * config/m68k/linux.h (ASM_SPEC): Likewise.
12526         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12527         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12528         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12529         * config/sparc/linux.h (ASM_SPEC): Likewise.
12530         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12531         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12532
12533 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12534
12535         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12536         * config/frv/frv.h (ASM_SPEC): Likewise.
12537         * config/m68k/linux.h (ASM_SPEC): Likewise.
12538         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12539         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12540         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12541         * config/sparc/linux.h (ASM_SPEC): Likewise.
12542         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12543         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12544
12545 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12546
12547         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12548         * config/frv/frv.h (LINK_SPEC): Likewise.
12549         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12550
12551 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12552
12553         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12554         * config/frv/frv.h (ASM_SPEC): Likewise.
12555         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12556         * config/m68k/linux.h (ASM_SPEC): Likewise.
12557         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12558         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12559         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12560         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12561         * config/sparc/linux.h (ASM_SPEC): Likewise.
12562         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12563         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12564         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12565
12566 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12567
12568         PR target/46997
12569         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12570         (*mux2): Ditto.
12571         (vec_extract_evenodd_help): Ditto.
12572         (vec_extract_evenv4hi): Ditto.
12573         (vec_extract_oddv4hi): Ditto.
12574         (vec_interleave_lowv2si): Ditto.
12575         (vec_interleave_highv2si): Ditto.
12576         (vec_extract_evenv2si): Ditto.
12577         (vec_extract_oddv2si: Ditto.
12578         (vec_pack_trunc_v2si): Ditto.
12579
12580 2011-01-22  Jan Hubicka  <jh@suse.cz>
12581
12582         PR target/47237
12583         * cgraph.h (cgraph_local_info): New field can_change_signature.
12584         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12585         signature can change.
12586         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12587         can change.
12588         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12589         (cgraph_function_versioning): We can not change signature of functions
12590         that don't allow that.
12591         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12592         (lto_input_node): Likewise.
12593         * ipa-inline.c (compute_inline_parameters): Compute
12594         local.can_change_signature.
12595         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12596         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12597         functions that can not change signature.
12598         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12599         init_cumulative_args): Do not use local calling conventions
12600         for functions that can not change signature.
12601
12602 2011-01-22  Jan Hubicka  <jh@suse.cz>
12603
12604         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12605
12606 2011-01-26  Richard Guenther  <rguenther@suse.de>
12607
12608         PR tree-optimization/47190
12609         * cgraphunit.c (process_common_attributes): New function.
12610         (process_function_and_variable_attributes): Use it.
12611
12612 2011-01-26  Richard Guenther  <rguenther@suse.de>
12613
12614         PR lto/47423
12615         * cgraphbuild.c (record_eh_tables): Record reference to personality
12616         function.
12617
12618 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12619
12620         PR debug/45454
12621         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12622         non-debug insns from moving up.
12623
12624 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12625
12626         PR target/40125
12627         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12628         t-dlldir{,-x} fragment for build and add it to tmake_file.
12629         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12630         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12631         * config/i386/t-dlldir: New file.
12632         (SHLIB_DLLDIR): Define.
12633         * config/i386/t-dlldir-x: New file.
12634         (SHLIB_DLLDIR): Define.
12635         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12636         (SHLIB_INSTALL): Use it.
12637
12638 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12639
12640         PR target/47246
12641         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12642         lower bound of the allowed Thumb-2 coprocessor load/store
12643         index range to -256. Add explaining comment.
12644
12645 2011-01-25  Ian Lance Taylor  <iant@google.com>
12646
12647         * godump.c (go_define): Improve lexing of macro expansion to only
12648         accept expressions which match Go spec.
12649
12650 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12651
12652         PR c++/43601
12653         * tree.c (handle_dll_attribute): Handle it.
12654         * doc/extend.texi (@item dllexport): Mention it.
12655         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12656
12657 2011-01-25  Ian Lance Taylor  <iant@google.com>
12658
12659         PR tree-optimization/26854
12660         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12661         (decl_jump_unsafe): Move higher in file, with no other change.
12662         (bind): Set has_jump_unsafe_decl if appropriate.
12663         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12664         (check_earlier_gotos): Likewise.
12665         (c_check_switch_jump_warnings): Likewise.
12666
12667 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12668
12669         * doc/invoke.texi (Warning Options): Add missing hyphen.
12670         (-fprofile-dir): Minor grammatical fixes.
12671         (-fbranch-probabilities): Likewise.
12672
12673 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12674
12675         PR debug/45136
12676         PR debug/45130
12677         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12678         debug insns.
12679         (no_real_insns_p, schedule_block, set_priorities): Drop special
12680         treatment of boundary debug insns.
12681         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12682         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12683         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12684         (BOUNDARY_DEBUG_INSN_P): Likewise.
12685         (SCHEDULE_DEBUG_INSN_P): Likewise.
12686         * sched-rgn.c (init_ready_list): Drop special treatment of
12687         boundary debug insns.
12688         * final.c (rest_of_clean-state): Clear notes' BB.
12689
12690 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12691
12692         * Makefile.in (LAMBDA_H): Removed.
12693         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12694         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12695         lambda-trans.o, and tree-loop-linear.o.
12696         (lto-symtab.o): Remove dependence on LAMBDA_H.
12697         (tree-loop-linear.o): Remove rule.
12698         (lambda-mat.o): Same.
12699         (lambda-trans.o): Same.
12700         (lambda-code.o): Same.
12701         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12702         (tree-vect-slp.o): Same.
12703         * hwint.h (gcd): Moved here.
12704         (least_common_multiple): Same.
12705         * lambda-code.c: Removed.
12706         * lambda-mat.c: Removed.
12707         * lambda-trans.c: Removed.
12708         * lambda.h: Removed.
12709         * tree-loop-linear.c: Removed.
12710         * lto-symtab.c: Do not include lambda.h.
12711         * omega.c (gcd): Removed.
12712         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12713         * tree-data-ref.c (print_lambda_vector): Moved here.
12714         (lambda_vector_copy): Same.
12715         (lambda_matrix_copy): Same.
12716         (lambda_matrix_id): Same.
12717         (lambda_vector_first_nz): Same.
12718         (lambda_matrix_row_add): Same.
12719         (lambda_matrix_row_exchange): Same.
12720         (lambda_vector_mult_const): Same.
12721         (lambda_vector_negate): Same.
12722         (lambda_matrix_row_negate): Same.
12723         (lambda_vector_equal): Same.
12724         (lambda_matrix_right_hermite): Same.
12725         * tree-data-ref.h: Do not include lambda.h.
12726         (lambda_vector): Moved here.
12727         (lambda_matrix): Same.
12728         (dependence_level): Same.
12729         (lambda_transform_legal_p): Removed declaration.
12730         (lambda_collect_parameters): Same.
12731         (lambda_compute_access_matrices): Same.
12732         (lambda_vector_gcd): Same.
12733         (lambda_vector_new): Same.
12734         (lambda_vector_clear): Same.
12735         (lambda_vector_lexico_pos): Same.
12736         (lambda_vector_zerop): Same.
12737         (lambda_matrix_new): Same.
12738         * tree-flow.h (least_common_multiple): Removed declaration.
12739         * tree-parloops.c (lambda_trans_matrix): Moved here.
12740         (LTM_MATRIX): Same.
12741         (LTM_ROWSIZE): Same.
12742         (LTM_COLSIZE): Same.
12743         (LTM_DENOMINATOR): Same.
12744         (lambda_trans_matrix_new): Same.
12745         (lambda_matrix_vector_mult): Same.
12746         (lambda_transform_legal_p): Same.
12747         * tree-pass.h (pass_linear_transform): Removed declaration.
12748         * tree-ssa-loop.c (tree_linear_transform): Removed.
12749         (gate_tree_linear_transform): Removed.
12750         (pass_linear_transform): Removed.
12751         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12752         flag_loop_interchange.
12753
12754 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12755
12756         PR tree-optimization/47265
12757         PR tree-optimization/47443
12758         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12759         if name still has some uses.
12760
12761 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12762
12763         PR tree-optimization/47382
12764         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12765         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12766
12767 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12768
12769         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12770         sjlj_except_unwind_info.
12771
12772 2011-01-25  Richard Guenther  <rguenther@suse.de>
12773
12774         PR tree-optimization/47426
12775         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12776         visible functions results escape.
12777
12778 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12779
12780         PR target/45701
12781         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12782         (arm_get_frame_offsets): Use it.
12783
12784 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12785             Jakub Jelinek  <jakub@redhat.com>
12786
12787         PR tree-optimization/47271
12788         * tree-if-conv.c (bb_postdominates_preds): New.
12789         (if_convertible_bb_p): Call bb_postdominates_preds.
12790         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12791         (predicate_scalar_phi): Call bb_postdominates_preds.
12792
12793 2011-01-25  Nick Clifton  <nickc@redhat.com>
12794
12795         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12796         * config/rx/rx.c (rx_function_value): Likewise.
12797         (rx_promote_function_mode): Likewise.
12798         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12799         in order to make it legitimate.
12800         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12801         make sure that the first operand is the same as the result register.
12802         (addsi3_unspec): Delete.
12803         (subdi3): Do not accept immediate operands.
12804         (subdi3_internal): Likewise.
12805
12806 2011-01-25  Jeff Law  <law@redhat.com>
12807
12808         PR rtl-optimization/37273
12809         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12810         handle them like argument loads from stack slots.  Do not double
12811         count memory for memory constants and argument loads from stack slots.
12812
12813 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12814
12815         PR tree-optimization/47427
12816         PR tree-optimization/47428
12817         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12818         coalesce if the new root var would be TREE_READONLY.
12819
12820 2011-01-25  Richard Guenther  <rguenther@suse.de>
12821
12822         PR middle-end/47414
12823         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12824         correct type for TBAA.
12825
12826 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12827
12828         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12829         (close_phi_written_to_memory): Call for_each_index with
12830         dr_indices_valid_in_loop.
12831
12832 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12833
12834         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12835         when it is initialized.
12836
12837 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12838
12839         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12840         call to graphite_find_data_references_in_stmt.
12841         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12842         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12843         call to graphite_find_data_references_in_stmt.
12844         (analyze_drs_in_stmts): Same.
12845         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12846         in which the scalar analysis of indices is performed.
12847         (create_data_ref): Same.  Update call to dr_analyze_indices.
12848         (find_data_references_in_stmt): Update call to create_data_ref.
12849         (graphite_find_data_references_in_stmt): Same.
12850         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12851         declaration.
12852         (create_data_ref): Same.
12853         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12854         call to create_data_ref.
12855
12856 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12857
12858         * graphite-sese-to-poly.c (build_poly_scop): Move
12859         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12860
12861 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12862
12863         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12864         VAR_DECL, PARM_DECL, and RESULT_DECL.
12865
12866 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12867
12868         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12869         in a reduction PBB.
12870         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12871         that have already been marked as PBB_IS_REDUCTION.
12872
12873 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12874
12875         * graphite-scop-detection.c (same_close_phi_node): New.
12876         (remove_duplicate_close_phi): New.
12877         (make_close_phi_nodes_unique): New.
12878         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12879
12880 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12881
12882         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12883         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12884         of both data references to be the same.
12885
12886 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12887
12888         * graphite-dependences.c (build_lexicographical_constraint): Remove
12889         the gdim parameter.
12890         (build_lexicographical_constraint): Adjust call to
12891         ppl_powerset_is_empty.
12892         (dependence_polyhedron): Same.
12893         (graphite_legal_transform_dr): Same.
12894         (graphite_carried_dependence_level_k): Same.
12895         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12896         parameter.
12897         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12898
12899 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12900
12901         * graphite-sese-to-poly.c
12902         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12903         (close_phi_written_to_memory): New.
12904         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12905         and unshare_expr.
12906
12907 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12908
12909         * doc/install.texi: Update the expected version number of PPL to 0.11.
12910         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12911         #if PPL_VERSION_MINOR < 11.
12912
12913 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12914
12915         * graphite-dependences.c: Include graphite-cloog-util.h.
12916         (new_poly_ddr): Inlined into dependence_polyhedron.
12917         (free_poly_ddr): Moved close by new_poly_ddr.
12918         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12919         Early return NULL when ppl_powerset_is_empty returns true.
12920         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12921         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12922         (graphite_legal_transform_dr): Call new_poly_ddr.
12923         (graphite_carried_dependence_level_k): Same.
12924         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12925         (dot_transformed_deps_stmt_1): Removed.
12926         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12927         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12928         (dot_deps_1): Call dot_deps_2.
12929         * Makefile.in (graphite-dependences.o): Add missing dependence on
12930         graphite-cloog-util.h.
12931
12932 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12933
12934         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12935         (build_lexicographical_constraint): Same.
12936         (dependence_polyhedron_1): Same.
12937         (graphite_legal_transform_dr): Same.
12938         (graphite_carried_dependence_level_k): Same.
12939         * graphite-ppl.c (ppl_powerset_is_empty): New.
12940         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12941         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12942
12943 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12944
12945         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12946         the "a followed by b" relation and document it.
12947
12948 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12949
12950         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12951         iteration when the bag of constraints is empty.
12952
12953 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12954
12955         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12956
12957 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12958
12959         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12960         nest and two loop depths as parameters.
12961         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12962         lst_perfect_nestify.
12963
12964 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12965
12966         * graphite-dependences.c (print_pddr): Call
12967         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12968
12969 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12970
12971         * graphite-ppl.c (debug_gmp_value): New.
12972         * graphite-ppl.h (debug_gmp_value): Declared.
12973
12974 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12975
12976         * doc/install.texi: Document availability of cloog-0.16.
12977
12978 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12979
12980         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12981         invalid postdominance info.
12982
12983 2011-01-24  Jan Hubicka  <jh@suse.cz>
12984
12985         PR c/21659
12986         * doc/extend.texi (weak pragma): Drop claim that it must
12987         appear before definition.
12988         * varasm.c (merge_weak, declare_weak): Only sanity check
12989         that DECL is not output at a time it is declared weak.
12990
12991 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12992
12993         * machmode.def: Fixed comments.
12994
12995 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12996
12997         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12998
12999 2011-01-24  Paul Koning  <ni1d@arrl.net>
13000
13001         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13002         WORDS_BIG_ENDIAN.
13003
13004 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13005
13006         PR target/46519
13007         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13008         (block_info): Add scanned and prev.
13009         (move_or_delete_vzeroupper_2): Return if the basic block
13010         has been scanned and the upper 128bit state is unchanged
13011         from the last scan.
13012         (move_or_delete_vzeroupper_1): Return true if the exit
13013         state is changed.
13014         (move_or_delete_vzeroupper): Visit basic blocks using the
13015         work-list based algorithm based on vt_find_locations in
13016         var-tracking.c.
13017
13018         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13019
13020 2011-01-24  Nick Clifton  <nickc@redhat.com>
13021
13022         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13023         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13024         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13025         then define __v850e1__.
13026         * doc/invoke.texi: Document -mv850es.
13027
13028 2011-01-24  Richard Henderson  <rth@redhat.com>
13029
13030         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13031         compound unordered comparisons.
13032         * config/rx/rx.c (rx_split_fp_compare): Remove.
13033         * config/rx/rx-protos.h: Update.
13034         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13035         (cbranchsf4): Don't call rx_split_fp_compare.
13036         (*cbranchsf4): Use rx_split_cbranch.
13037         (*cmpsf): Don't accept "i" constraint.
13038         (*conditional_branch): Only valid after reload.
13039         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13040
13041 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13042
13043         PR target/47385
13044         * config/rs6000/altivec.md (vector constant splitters): Add
13045         support for creating vector single precision constants if -mvsx is
13046         used and we would create the constant using Altivec primitives.
13047
13048 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13049             Richard Sandiford  <rdsandiford@googlemail.com>
13050
13051         PR rtl-optimization/47166
13052         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13053         mechanism for PRE_MODIFY and POST_MODIFY.
13054         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13055         reloadreg.
13056
13057 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13058
13059         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13060
13061 2011-01-22  Jan Hubicka  <jh@suse.cz>
13062
13063         PR lto/47333
13064         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13065
13066 2011-01-22  Jan Hubicka  <jh@suse.cz>
13067
13068         PR tree-optimization/43884
13069         PR lto/44334
13070         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13071         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13072
13073 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13074
13075         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13076         * config/s390/s390.c (s390_register_move_cost,
13077         s390_memory_move_cost): New.
13078         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13079
13080 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13081
13082         PR middle-end/47401
13083         * except.c (sjlj_assign_call_site_values): Move setting the
13084         crtl->uses_eh_lsda flag to ...
13085         (sjlj_mark_call_sites): ... here.
13086         (sjlj_emit_function_enter): Support NULL dispatch label.
13087         (sjlj_build_landing_pads): In a function with no landing pads
13088         that still has must-not-throw regions, generate code to register
13089         a personality function with empty LSDA.
13090
13091 2011-01-21  Richard Henderson  <rth@redhat.com>
13092
13093         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13094
13095         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13096
13097         * compare-elim.c: New file.
13098         * Makefile.in (OBJS-common): Add it.
13099         (compare-elim.o): New.
13100         * common.opt (fcompare-elim): New.
13101         * opts.c (default_options_table): Add OPT_fcompare_elim.
13102         * tree-pass.h (pass_compare_elim_after_reload): New.
13103         * passes.c (init_optimization_passes): Add it.
13104         * recog.h: Protect against re-inclusion.
13105         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13106         * doc/invoke.texi (-fcompare-elim): Document it.
13107         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13108         * doc/tm.texi: Rebuild.
13109
13110 2011-01-22  Nick Clifton  <nickc@redhat.com>
13111
13112         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13113         rx_split_fp_compare.
13114
13115 2011-01-22  Nick Clifton  <nickc@redhat.com>
13116
13117         * config/rx/rx.md (UNSPEC_CONST): New.
13118         (deallocate_and_return): Wrap the amount popped off the stack in
13119         an UNSPEC_CONST in order to stop it being rejected by
13120         -mmax-constant-size.
13121         (pop_and_return): Add a "(return)" rtx.
13122         (call): Drop the immediate operand.
13123         (call_internal): Likewise.
13124         (call_value): Likewise.
13125         (call_value_internal): Likewise.
13126         (sibcall_internal): Likewise.
13127         (sibcall_value_internal): Likewise.
13128         (sibcall): Likewise.  Generate an explicit call using
13129         sibcall_internal.
13130         (sibcall_value): Likewise.
13131         (mov<>): FAIL if a constant operand is not legitimate.
13132         (addsi3_unpsec): New pattern.
13133
13134         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13135         (ok_for_max_constant): New function.
13136         (gen_safe_add): New function.
13137         (rx_expand_prologue): Use gen_safe_add.
13138         (rx_expand_epilogue): Likewise.
13139         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13140         UNSPEC CONSTs.
13141
13142 2011-01-21  Jeff Law  <law@redhat.com>
13143
13144         PR tree-optimization/47053
13145         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13146         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13147         statements are deleted.
13148         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13149         is nonempty, then purge dead edges and cleanup the CFG.
13150
13151 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13152
13153         PR debug/47402
13154         Temporarily revert:
13155         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13156         PR debug/47106
13157         * tree-dfa.c (create_var_ann): Mark variable as used.
13158
13159 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13160
13161         PR middle-end/45566
13162         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13163         notes from other section in hot/cold partitioning even if
13164         last_action is -3.  Increment call_site_base.
13165
13166         PR rtl-optimization/47366
13167         * fwprop.c (forward_propagate_into): Return bool.  If
13168         any changes are made, -fnon-call-exceptions is used and
13169         REG_EH_REGION note is present, call purge_dead_edges
13170         and return true if it purged anything.
13171         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13172         any EH edges were purged.
13173
13174 2011-01-21  Jeff Law  <law@redhat.com>
13175
13176         PR rtl-optimization/41619
13177         * caller-save.c (setup_save_areas): Break out code to determine
13178         which hard regs are live across calls by examining the reload chains
13179         so that it is always used.
13180         Eliminate code which checked REG_N_CALLS_CROSSED.
13181
13182 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13183
13184         PR tree-optimization/47355
13185         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13186         NOP has non-debug uses beyond PHIs in new_bb.
13187
13188 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13189
13190         PR debug/47106
13191         * cfgexpand.c (account_used_vars_for_block): Only account vars
13192         that are annotated as used.
13193         (estimated_stack_frame_size): Don't set TREE_USED.
13194         * tree-dfa.c (create_var_ann): Mark variable as used.
13195
13196 2011-01-21  Richard Guenther  <rguenther@suse.de>
13197
13198         PR middle-end/47395
13199         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13200
13201 2011-01-21  Richard Guenther  <rguenther@suse.de>
13202
13203         PR tree-optimization/47365
13204         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13205         (vn_reference_lookup_pieces): Adjust.
13206         (vn_reference_lookup): Likewise.
13207         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13208         (vn_reference_lookup_3): Only look through kills if in
13209         VN_WALKREWRITE mode.
13210         (vn_reference_lookup_pieces): Adjust.
13211         (vn_reference_lookup): Likewise.
13212         (visit_reference_op_load): Likewise.
13213         (visit_reference_op_store): Likewise.
13214         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13215         (compute_avail): Likewise.
13216         (eliminate): Likewise.
13217
13218 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13219
13220         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13221         DECL_IGNORED_P non-reg vars if they are used.
13222
13223         PR tree-optimization/47391
13224         * varpool.c (const_value_known_p): Return false if
13225         decl is volatile.
13226
13227 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13228
13229         PR bootstrap/47215
13230         * config/i386/i386.c (ix86_local_alignment): Handle
13231         case for va_list_type_node is nil.
13232         (ix86_canonical_va_list_type): Likewise.
13233
13234 2011-01-21  Alan Modra  <amodra@gmail.com>
13235
13236         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13237         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13238
13239 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13240
13241         * config/arm/arm.md (define_attr type): Rename f_load
13242         and f_store to f_fpa_load and f_fpa_store. Update.
13243         (write_conflict): Deal with rename fallout.
13244         (*push_fp_multi): Likewise.
13245         * config/arm/fpa.md (f_load): Use f_fpa_load.
13246         (f_store): Use f_fpa_store.
13247         (*movsf_fpa): Likewise.
13248         (*movdf_fpa): Likewise.
13249         (*movxf_fpa): Likewise.
13250         (*thumb2_movsf_fpa): Likewise.
13251         (*thumb2_movdf_fpa): Likewise.
13252         (*thumb2_movxf_fpa): Likewise.
13253         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13254         f_loadd and f_stored.
13255         (*thumb2_movdi_vfp): Likewise.
13256         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13257         (*thumb2_movsi_vfp): Likewise.
13258         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13259         Use f_loads instead of f_load.
13260         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13261
13262 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13263
13264         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13265         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13266         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13267         (xtensa_mode_dependent_address_p): New function.
13268         (constantpool_address_p): Make static. Change return type to bool.
13269         Change argument type to const_rtx. Use CONST_INT_P predicate.
13270
13271 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13272
13273         PR debug/46583
13274         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13275
13276 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13277
13278         PR debug/47283
13279         * cfgexpand.c (expand_debug_expr): Instead of generating
13280         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13281         etc. handling.
13282
13283 2011-01-20  Richard Guenther  <rguenther@suse.de>
13284
13285         PR middle-end/47370
13286         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13287         the pointer operand of MEM_REFs.
13288
13289 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13290
13291         PR tree-optimization/46130
13292         * ipa-split.c (consider_split): If return_bb contains non-virtual
13293         PHIs other than for retval or if split_function would not adjust it,
13294         refuse to split.
13295
13296 2011-01-20  Richard Guenther  <rguenther@suse.de>
13297
13298         PR tree-optimization/47167
13299         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13300         Revert previous change, only avoid enumeral type changes.
13301
13302 2011-01-19  Mike Stump  <mikestump@comcast.net>
13303
13304         * doc/tm.texi.in (BRANCH_COST): Englishify.
13305         * doc/tm.texi (BRANCH_COST): Likewise.
13306
13307 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13308
13309         PR c++/47291
13310         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13311         (gen_scheduled_generic_parms_dies): New functions.
13312         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13313         generation for the end of CU compilation.
13314         (dwarf2out_finish): Generate template parameters DIEs here.
13315
13316 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13317
13318         PR debug/46240
13319         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13320         debug bind stmt on merge edges.
13321
13322 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13323
13324         PR debug/47079
13325         PR debug/46724
13326         * function.c (instantiate_expr): Instantiate incoming rtl of
13327         implicit arguments, and recurse on VALUE_EXPRs.
13328         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13329         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13330
13331 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13332
13333         * c-parser.c (c_parser_for_statement): Initialize
13334         collection_expression.
13335
13336 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13337
13338         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13339
13340 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13341
13342         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13343         (LINK_SHLIB_SPEC): Don't use %(link_path).
13344         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13345
13346 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13347
13348         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13349         (NO_SHARED_LIB_SUPPORT): Remove.
13350         (LINK_SHLIB_SPEC): Remove one conditional definition.
13351
13352 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13353
13354         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13355         %{call_shared}.
13356         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13357         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13358         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13359         %{call_shared} and conditionals on these options not being passed.
13360         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13361         %{call_shared}.
13362
13363 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13364
13365         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13366         simplify.
13367
13368         * ipa-split.c: Spelling fixes.
13369
13370 2011-01-19  Richard Henderson  <rth@redhat.com>
13371
13372         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13373         (*mulsi3): Likewise.
13374
13375         * longlong.h [__mn10300__] (count_leading_zeros): New.
13376         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13377         [__mn10300__] (add_ssaaaa, subddmmss): New.
13378         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13379         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13380
13381 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13382
13383         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13384
13385 2011-01-19  Richard Henderson  <rth@redhat.com>
13386
13387         * config/mn10300/mn10300.md (addsi3_flags): New.
13388         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13389         (subsi3_flags, subc_internal, subdi3): New.
13390         (subdi3_internal, *subdi3_degenerate): New.
13391         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13392
13393         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13394         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13395         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13396         * config/mn10300/mn10300-protos.h: Update.
13397         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13398         (return_ret): Likewise.  Rename from return_internal_regs.
13399         (return_internal): Remove.
13400
13401         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13402         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13403         (mn10300_legitimate_constant_p): Likewise.
13404         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13405         (mn10300_frame_size): New.
13406         (mn10300_expand_prologue): Use it.
13407         (mn10300_expand_epilogue): Likewise.
13408         (mn10300_initial_offset): Likewise.
13409         * config/mn10300/mn10300-protos.h: Update.
13410         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13411         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13412         (prologue, epilogue, return_internal): Tidy output code.
13413         (mn10300_store_multiple_operation, return): Likewise.
13414         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13415         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13416         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13417         (load_pic, am33_load_pic): New.
13418         (mn10300_load_pic0, mn10300_load_pic1): New.
13419
13420         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13421         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13422         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13423         (cc_flags_for_mode, cc_flags_for_code): New.
13424         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13425         overflow flag is not valid.  Validate that the flags we need
13426         for the comparison are valid.
13427         (mn10300_output_cmp): Remove.
13428         (mn10300_output_add): New.
13429         (mn10300_select_cc_mode): Use cc_flags_for_code.
13430         (mn10300_split_cbranch): New.
13431         (mn10300_match_ccmode): New.
13432         (mn10300_split_and_operand_count): New.
13433         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13434         to the function.
13435         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13436         (addsi3): ... here.  Use mn10300_output_add.
13437         (*addsi3_flags): New.
13438         (*am33_subsi3, *mn10300_subsi3): Merge...
13439         (subsi3): ... here.  Use attribute isa.
13440         (*subsi3_flags): New.
13441         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13442         when possible.
13443         (*am33_andsi3, *mn10300_andsi3): Merge...
13444         (andsi3): ... here.
13445         (*andsi3_flags): New.
13446         (andsi3 splitters): New.
13447         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13448         (iorsi3): ... here.
13449         (*iorsi3_flags): New.
13450         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13451         (xorsi3): ... here.
13452         (*xorsi3_flags): New.
13453         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13454         (one_cmplsi2): ... here.
13455         (*one_cmplsi2_flags): New.
13456         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13457         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13458         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13459         use matching constraints to eliminate a self-comparison.
13460         (*integer_conditional_branch): Rename from integer_conditional_branch.
13461         Use int_mode_flags to match CC_REG.
13462         (*cbranchsi4_btst, *btstsi): New.
13463         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13464         mn10300_split_cbranch.
13465         (*am33_cmpsf): Rename from am33_cmpsf.
13466         (*float_conditional_branch): Rename from float_conditional_branch.
13467         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13468         (zero_extendqisi2): ... here.
13469         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13470         (zero_extendhisi2): ... here.
13471         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13472         (extendqisi2): ... here.
13473         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13474         (extendhisi2): ... here.
13475         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13476         (ashlsi3): ... here.
13477         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13478         (lshrsi3): ... here.
13479         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13480         (ashrsi3): ... here.
13481         (consecutive add peephole): Remove.
13482         * config/mn10300/predicates.md (label_ref_operand): New.
13483         (int_mode_flags): New.
13484         (CCZN_comparison_operator): New.
13485
13486         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13487         (throughput_42_latency_43): New reservation.
13488         (mulsidi3, umulsidi3): New expanders.
13489         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13490         the MDR register to allocation; separately allocate the low and
13491         high parts of the DImode result.
13492         (umulsidi3_internal): Similarly.
13493         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13494         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13495         (udivsi3, umodsi3): Remove.
13496         (udivmodsi4, divmodsi4): New expanders.
13497         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13498         (*divmodsi4): Simiarly.
13499         (ext_internal): New.
13500
13501         * config/mn10300/constraints.md ("z"): New constraint.
13502         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13503         (FIXED_REGISTERS): Don't fix MDR.
13504         (CALL_USED_REGSITERS): Reformat nicely.
13505         (REG_ALLOC_ORDER): Add MDR.
13506         (enum regclass): Add MDR_REGS.
13507         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13508         (IRA_COVER_CLASSES): Add MDR_REGS.
13509         (REGNO_REG_CLASS): Handle MDR_REG.
13510         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13511         (mn10300_register_move_cost): Likewise.
13512         * config/mn10300/mn10300.md (MDR_REG): New.
13513         (*movsi_internal): Handle moves to/from MDR_REGS.
13514
13515         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13516         POST_MODIFY.
13517         (mn10300_secondary_reload): Tidy combination reload classes.
13518         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13519         addresses for AM33.  Allow symbolic offsets for reg+imm.
13520         (mn10300_regno_in_class_p): New.
13521         (mn10300_legitimize_reload_address): New.
13522         * config/mn10300/mn10300.h (enum reg_class): Remove
13523         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13524         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13525         SP_OR_GENERAL_REGS.
13526         (REG_CLASS_NAMES): Update to match.
13527         (REG_CLASS_CONTENTS): Likewise.
13528         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13529         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13530         (REGNO_IN_RANGE_P): Remove.
13531         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13532         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13533         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13534         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13535         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13536         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13537         (REGNO_GENERAL_P): New.
13538         (HAVE_POST_MODIFY_DISP): New.
13539         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13540         (LEGITIMIZE_RELOAD_ADDRESS): New.
13541         * config/mn10300/mn10300-protos.h: Update.
13542
13543         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13544         DATA_REGS for AM33 stack-pointer destination.
13545         (mn10300_preferred_output_reload_class): Likewise.
13546         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13547         into a form appropriate for ...
13548         (TARGET_SECONDARY_RELOAD): New.
13549         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13550         * config/mn10300/mn10300-protos.h: Update.
13551         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13552         reload_insi; use the "A" constraint for the scratch; handle AM33
13553         moves of sp to non-address registers.
13554
13555         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13556         (*movqi_internal): ... here.
13557         (*am33_movhi, *mn10300_movhi): Merge into...
13558         (*movhi_internal): ... here.
13559         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13560         as the source/destination of moves from/to SP.
13561         (movsf): Only allow for AM33-2.
13562         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13563         any integer constant constraint.  Only allow for AM33-2.  Tidy
13564         all of the alternative outputs.
13565         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13566         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13567         for MN103.
13568         (udivsi3, umodsi3): New patterns for MN103 only.
13569
13570 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13571
13572         * doc/tm.texi.in: Spell out that a lack of register class unions
13573         can lead to ICEs.
13574         * doc/tm.texi: Regenerate.
13575
13576 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13577
13578         PR rtl-optimization/47337
13579         * dce.c (check_argument_store): New function.
13580         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13581
13582         PR tree-optimization/47290
13583         * tree-eh.c (infinite_empty_loop_p): New function.
13584         (cleanup_empty_eh): Use it.
13585
13586 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13587
13588         PR target/46997
13589         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13590         (a64_expand_widen_sum): Ditto.
13591         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13592         (vec_extract_evenodd_help): Ditto.
13593         (vec_extract_evenv4hi): Ditto.
13594         (vec_extract_oddv4hi): Ditto.
13595         (vec_extract_evenv2si): Ditto.
13596         (vec_extract_oddv2si): Ditto.
13597         (vec_extract_evenv2sf): Ditto.
13598         (vec_extract_oddv2sf): Ditto.
13599         (vec_pack_trunc_v4hi: Ditto.
13600         (vec_pack_trunc_v2si): Ditto.
13601         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13602         (vec_interleave_highv8qi): Ditto.
13603         (mix1_r): Ditto.
13604         (vec_extract_oddv8qi): Ditto.
13605         (vec_interleave_lowv4hi): Ditto.
13606         (vec_interleave_highv4hi): Ditto.
13607         (vec_interleave_lowv2si): Ditto.
13608         (vec_interleave_highv2si): Ditto.
13609
13610 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13611
13612         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13613         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13614         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13615         (pa_c_mode_for_suffix): New.
13616         (TARGET_EXPAND_BUILTIN): Define.
13617         (TARGET_C_MODE_FOR_SUFFIX): Define.
13618         (pa_builtins): Define.
13619         (pa_init_builtins): Register __float128 type and init new support
13620         builtins.
13621         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13622         * config/pa/quadlib.c (_U_Qfcopysign): New.
13623
13624 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13625
13626         PR middle-end/46894
13627         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13628         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13629         are defined.
13630
13631 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13632
13633         PR tree-optimization/47179
13634         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13635         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13636
13637 2011-01-18  Richard Guenther  <rguenther@suse.de>
13638
13639         PR rtl-optimization/47216
13640         * emit-rtl.c: Include tree-flow.h.
13641         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13642         of replicating it with different semantics.
13643         * Makefile.in (emit-rtl.o): Adjust.
13644
13645 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13646
13647         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13648         (cortex_a9_dp): Handle neon types correctly.
13649
13650 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13651
13652         PR rtl-optimization/47299
13653         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13654         subtarget.  Use normal multiplication if both operands are constants.
13655         * expmed.c (expand_widening_mult): Don't try to optimize constant
13656         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13657         before using it.
13658
13659 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13660
13661         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13662         spacing after 'e.g.', typos, comma, hyphenation.
13663
13664 2011-01-17  Richard Henderson  <rth@redhat.com>
13665
13666         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13667         (rx_restricted_mem_operand): New.
13668         (rx_shift_operand): Use register_operand.
13669         (rx_source_operand, rx_compare_operand): Likewise.
13670         * config/rx/rx.md (addsi3_flags): New expander.
13671         (adddi3): Rewrite as expander.
13672         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13673         (subsi3_flags): New expander.
13674         (subdi3): Rewrite as expander.
13675         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13676
13677         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13678         (rx_init_builtins): Remove sat builtin.
13679         (rx_expand_builtin): Likewise.
13680         * config/rx/rx.md (ssaddsi3): New.
13681         (*sat): Rename from sat.  Represent the CC_REG input.
13682
13683         * config/rx/predicates.md (rshift_operator): New.
13684         * config/rx/rx.c (rx_expand_insv): Remove.
13685         * config/rx/rx-protos.h: Update.
13686         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13687         operand to the canonical position.
13688         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13689         (*bitclr, *bitclr_in_memory): Similarly.
13690         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13691         (insv): Retain the zero_extract in the expansion.
13692
13693         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13694         (bswaphi2, bitinvert, revw): Likewise.
13695
13696         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13697         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13698         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13699         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13700         (bitset, bitset_in_memory): Likewise.
13701         (bitinvert, bitinvert_in_memory): Likewise.
13702         (bitclr, bitclr_in_memory): Likewise.
13703         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13704         (rx_strend, rx_cmpstrn): Likewise.
13705         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13706         (bitop peep2 patterns): Remove.
13707
13708         * config/rx/rx.c (rx_match_ccmode): New.
13709         * config/rx/rx-protos.h: Update.
13710         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13711         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13712         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13713         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13714         (fix_truncsfsi2, floatsisf2): Likewise.
13715         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13716         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13717         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13718         (*subsi3_flags, *xorsi3_flags): New.
13719
13720         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13721
13722         * config/rx/rx.c (rx_print_operand): Remove workaround for
13723         unsplit comparison operations.
13724
13725         * config/rx/rx.md (movsicc): Split after reload.
13726         (*movsicc): Merge *movsieq and *movsine via match_operator.
13727         (*stcc): New pattern.
13728
13729         * config/rx/rx.c (rx_float_compare_mode): Remove.
13730         * config/rx/rx.h (rx_float_compare_mode): Remove.
13731         * config/rx/rx.md (cstoresi4): Split after reload.
13732         (*sccc): New pattern.
13733
13734         * config/rx/predicates.md (label_ref_operand): New.
13735         (rx_z_comparison_operator): New.
13736         (rx_zs_comparison_operator): New.
13737         (rx_fp_comparison_operator): New.
13738         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13739         Validate that the flags are set properly for the comparison.
13740         (rx_gen_cond_branch_template): Remove.
13741         (rx_cc_modes_compatible): Remove.
13742         (mode_from_flags): New.
13743         (flags_from_code): Rename from flags_needed_for_conditional.
13744         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13745         (rx_select_cc_mode): Likewise.
13746         (rx_split_fp_compare): New.
13747         (rx_split_cbranch): New.
13748         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13749         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13750         (*cbranchsf4): Similarly.
13751         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13752         match_operator and rx_split_cbranch.
13753         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13754         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13755         (*cmpsi): Rename from cmpsi.
13756         (*tstsi): Rename from tstsi.
13757         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13758         (*conditional_branch): Rename from conditional_branch.
13759         (*reveresed_conditional_branch): Remove.
13760         (b<code>): Remove expander.
13761         * config/rx/rx-protos.h: Update.
13762
13763         * config/rx/rx.c (rx_compare_redundant): Remove.
13764         * config/rx/rx.md (cmpsi): Don't use it.
13765         * config/rx/rx-protos.h: Update.
13766
13767         * config/rx/rx-modes.def (CC_F): New mode.
13768         * config/rx/rx.c (rx_select_cc_mode): New.
13769         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13770         * config/rx/rx-protos.h: Update.
13771
13772 2011-01-17  Richard Henderson  <rth@redhat.com>
13773
13774         * except.c (dump_eh_tree): Fix stray ; after for statement.
13775
13776 2011-01-17  Richard Guenther  <rguenther@suse.de>
13777
13778         PR tree-optimization/47313
13779         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13780         handling before copying the body.  Properly deal with
13781         by-reference result in SSA form.
13782
13783 2011-01-17  Ian Lance Taylor  <iant@google.com>
13784
13785         PR target/47219
13786         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13787         (struct_value_alias_set): Don't define.
13788         (sparc_option_override): Don't set sparc_sr_alias_set and
13789         struct_value_alias_set.
13790         (save_or_restore_regs): Use gen_frame_mem rather than calling
13791         set_mem_alias_set.
13792         (sparc_struct_value_rtx): Likewise.
13793
13794 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13795
13796         PR target/47318
13797         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13798         (_mm_maskstore_pd): Likewise.
13799         (_mm_maskload_ps): Likewise.
13800         (_mm_maskstore_ps): Likewise.
13801         (_mm256_maskload_pd): Change mask to __m256i.
13802         (_mm256_maskstore_pd): Likewise.
13803         (_mm256_maskload_ps): Likewise.
13804         (_mm256_maskstore_ps): Likewise.
13805
13806         * config/i386/i386-builtin-types.def: Updated.
13807         (ix86_expand_special_args_builtin): Likewise.
13808
13809         * config/i386/i386.c (bdesc_special_args): Update
13810         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13811         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13812         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13813         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13814
13815         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13816         Use <avxpermvecmode> on mask register.
13817         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13818
13819 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13820             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13821             Eric Botcazou  <ebotcazou@adacore.com>
13822
13823         PR target/46655
13824         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13825         if <= USHRT_MAX in 32-bit mode.
13826
13827 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13828
13829         * doc/install.texi (Configuration, Specific): Wrap long
13830         lines in examples.  Allow line wrapping in long options
13831         and URLs where beneficial for PDF output.
13832
13833 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13834
13835         * config/mips/mips.c (mips_classify_symbol): Don't return
13836         SYMBOL_PC_RELATIVE for nonlocal labels.
13837
13838 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13839
13840         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13841
13842 2011-01-15  Jan Hubicka  <jh@suse.cz>
13843
13844         PR tree-optimization/47276
13845         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13846         declarations as needed.
13847
13848 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13849
13850         * common.opt (fdevirtualize): New flag.
13851         * doc/invoke.texi (Option Summary): Document it.
13852         * opts.c (default_options_table): Add devirtualize flag.
13853         * ipa-prop.c (detect_type_change): Return immediately if
13854         devirtualize flag is not set.
13855         (detect_type_change_ssa): Likewise.
13856         (compute_known_type_jump_func): Likewise.
13857         (ipa_analyze_virtual_call_uses): Likewise.
13858
13859 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13860
13861         PR tree-optimization/45934
13862         PR tree-optimization/46302
13863         * ipa-prop.c (type_change_info): New type.
13864         (stmt_may_be_vtbl_ptr_store): New function.
13865         (check_stmt_for_type_change): Likewise.
13866         (detect_type_change): Likewise.
13867         (detect_type_change_ssa): Likewise.
13868         (compute_complex_assign_jump_func): Check for dynamic type change.
13869         (compute_complex_ancestor_jump_func): Likewise.
13870         (compute_known_type_jump_func): Likewise.
13871         (compute_scalar_jump_functions): Likewise.
13872         (ipa_analyze_virtual_call_uses): Likewise.
13873         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13874
13875 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13876
13877         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13878         * config/i386/i386.opt (msse5): New Alias.
13879
13880 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13881
13882         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13883         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13884         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13885         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13886
13887 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13888
13889         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13890         -mcpu options.
13891         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13892         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13893         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13894         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13895         Likewise.
13896         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13897
13898 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13899
13900         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13901
13902 2011-01-14  Mike Stump  <mikestump@comcast.net>
13903
13904         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13905         * config/fr30/fr30.md: Likweise
13906         (movsi_push): Likewise.
13907         (movsi_pop): Likewise.
13908         (enter_func): Likewise.
13909         * config/moxie/moxie.md (movsi_push): Likewise.
13910         (movsi_pop): Likewise.
13911
13912 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13915         %{no_archive} %{exact_version}.
13916         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13917         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13918         %{no_archive} %{exact_version}.
13919         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13920         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13921         * config/mips/vxworks.h: Likewise.
13922
13923 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13924
13925         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13926
13927 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13928
13929         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13930         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13931
13932 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13935         -nodefaultlib.
13936
13937 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13938
13939         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13940         for mcpu not cpu.
13941         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13942         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13943         not cpu.
13944         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13945         Don't handle -shlib.
13946
13947 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13948
13949         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13950         (CC1_SPEC): Don't handle -profile.
13951
13952 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13953
13954         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13955         * config/mips/mips.h (CC1_SPEC): Likewise.
13956
13957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13958
13959         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13960         * config/mips/mips.h (CC1_SPEC): Likewise.
13961
13962 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13963
13964         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13965         * config/m32r/linux.h (LINK_SPEC): Likewise.
13966         * config/mips/linux.h (LINK_SPEC): Likewise.
13967         * config/mips/linux64.h (LINK_SPEC): Likewise.
13968         * config/sparc/linux.h (LINK_SPEC): Likewise.
13969         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13970         LINK_SPEC): Likewise.
13971         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13972
13973 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13974
13975         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13976         %{version:-v}.
13977         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13978
13979 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13982         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13983
13984 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13985
13986         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13987
13988 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13989
13990         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13991         supports -Bstatic/-Bdynamic.
13992         * configure: Regenerate.
13993
13994 2011-01-14  Jan Hubicka  <jh@suse.cz>
13995             Jack Howarth  <howarth@bromo.med.uc.edu>
13996
13997         PR target/46037
13998         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13999         when checking debug_info_level. Test write_symbols instead of
14000         debug_hooks->var_location when setting flag_var_tracking_uninit.
14001
14002 2011-01-14  Richard Guenther  <rguenther@suse.de>
14003
14004         PR tree-optimization/47179
14005         * target.def (ref_may_alias_errno): New target hook.
14006         * targhooks.h (default_ref_may_alias_errno): Declare.
14007         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14008         (default_ref_may_alias_errno): New function.
14009         * target.h (struct ao_ref_s): Declare.
14010         * tree-ssa-alias.c: Include target.h.
14011         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14012         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14013         (targhooks.o): Likewise.
14014         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14015         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14016
14017 2011-01-14  Richard Guenther  <rguenther@suse.de>
14018
14019         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14020
14021 2011-01-14  Richard Guenther  <rguenther@suse.de>
14022
14023         PR tree-optimization/47280
14024         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14025         return CFG changes.
14026         (tree_ssa_forward_propagate_single_use_vars): Deal with
14027         CFG changes from associate_plusminus.
14028
14029 2011-01-14  Richard Guenther  <rguenther@suse.de>
14030
14031         PR middle-end/47281
14032         Revert
14033         2011-01-11  Richard Guenther  <rguenther@suse.de>
14034
14035         PR tree-optimization/46076
14036         * tree-ssa.c (useless_type_conversion_p): Conversions from
14037         unprototyped to empty argument list function types are useless.
14038
14039 2011-01-14  Richard Guenther  <rguenther@suse.de>
14040
14041         PR tree-optimization/47286
14042         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14043
14044 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14045
14046         PR middle-end/46823
14047         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14048
14049 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14050
14051         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14052         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14053         * config/xtensa/xtensa.c (xtensa_libcall_value,
14054         xtensa_function_value_regno_p): New functions.
14055         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14056
14057 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14058
14059         PR c++/47213
14060         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14061         PE specific hook.
14062         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14063         New function prototype.
14064         * config/i386/winnt.c (i386_pe_assemble_visibility):
14065         Warn only if attribute was specified by user.
14066
14067 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14068
14069         PR target/47251
14070         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14071         floating point.
14072         (floatunsdidf2_fcfidu): Ditto.
14073
14074 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14075
14076         * config/s390/s390.c (print_operand_address): Replace 'error' with
14077         'output_operand_lossage'.
14078         (print_operand): Likewise.
14079
14080 2011-01-13  Jeff Law  <law@redhat.com>
14081
14082         PR rtl-optimization/39077
14083         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14084         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14085         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14086         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14087         * gcse.c (prune_insertions_deletions): New function.
14088         (compute_pre_data): Use it.
14089
14090 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14091
14092         PR debug/PR46973
14093         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14094         static function.
14095         (prune_unused_types_mark): Use it.
14096
14097 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14098
14099         PR rtl-optimization/45352
14100         * sel-sched.c: Update copyright years.
14101         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14102         in the advancing loop when we have issued issue_rate insns.
14103
14104 2011-01-12  Richard Henderson  <rth@redhat.com>
14105
14106         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14107         (TARGET_MD_ASM_CLOBBERS): New.
14108
14109         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14110         (TARGET_DELEGITIMIZE_ADDRESS): New.
14111
14112         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14113         (clzsi2, *bsch): New patterns.
14114
14115         * config/mn10300/mn10300.md (INT): New mode iterator.
14116         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14117
14118         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14119         flag_split_wide_types.
14120
14121         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14122         (mn10300_trampoline_init): Rewrite without a template, an immediate
14123         load and a direct branch.
14124         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14125
14126 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14127
14128         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14129         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14130         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14131         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14132
14133 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14134
14135         PR debug/47209
14136         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14137         of type.
14138
14139 2011-01-12  Jan Hubicka  <jh@suse.cz>
14140
14141         PR driver/47244
14142         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14143         (PLUGIN_COND_CLOSE): New macro.
14144         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14145
14146 2011-01-12  Richard Guenther  <rguenther@suse.de>
14147
14148         PR lto/47259
14149         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14150         register variables in a MEM_REF.
14151
14152 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14153
14154         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14155         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14156         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14157         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14158         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14159         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14160         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14161         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14162         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14163         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14164         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14165         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14166         * config/gnu-user.h: New.  Copied from linux.h.
14167         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14168         GNU_USER_TARGET_STARTFILE_SPEC.
14169         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14170         GNU_USER_TARGET_ENDFILE_SPEC.
14171         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14172         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14173         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14174         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14175         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14176         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14177         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14178         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14179         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14180         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14181         * config/arm/linux-eabi.h (CC1_SPEC): Use
14182         GNU_USER_TARGET_CC1_SPEC.
14183         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14184         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14185         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14186         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14187         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14188         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14189         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14190         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14191
14192 2011-01-12  Richard Guenther  <rguenther@suse.de>
14193
14194         PR other/46946
14195         * doc/invoke.texi (ffast-math): Document it is turned on
14196         with -Ofast.
14197
14198 2011-01-12  Jan Hubicka  <jh@suse.cz>
14199
14200         PR tree-optimization/47233
14201         * opts.c (common_handle_option): Disable ipa-reference with profile
14202         feedback.
14203
14204 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14205
14206         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14207         error message.
14208
14209 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14210
14211         * c-parser.c (c_lex_one_token): Updated and reindented some
14212         comments.  No changes in code.
14213
14214 2011-01-11  Ian Lance Taylor  <iant@google.com>
14215
14216         * godump.c (go_output_var): Don't output the variable if there is
14217         already a type with the same name.
14218
14219 2011-01-11  Ian Lance Taylor  <iant@google.com>
14220
14221         * godump.c (go_format_type): Don't generate float80.
14222
14223 2011-01-11  Richard Henderson  <rth@redhat.com>
14224
14225         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14226         declaration.  Rewrite for both speed and size.
14227         (mn10300_address_cost_1): Remove.
14228         (mn10300_register_move_cost): New.
14229         (mn10300_memory_move_cost): New.
14230         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14231         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14232         extensions, shifts, BSWAP, CLZ.
14233         (mn10300_wide_const_load_uses_clr): Remove.
14234         (TARGET_REGISTER_MOVE_COST): New.
14235         (TARGET_MEMORY_MOVE_COST): New.
14236         * config/mn10300/mn10300-protos.h: Update.
14237         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14238
14239         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14240         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14241         * config/mn10300/mn10300-protos.h: Update.
14242         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14243         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14244         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14245         (*test_int_bitfield, *test_byte_bitfield): Remove.
14246         (*bit_test, *subreg_bit_test): Remove.
14247         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14248
14249         * config/mn10300/constraints.md ("c"): Rename from "A".
14250         ("A", "D"): New constraint letters.
14251         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14252         (fmssf4, fnmasf4, fnmssf4): Likewise.
14253
14254         * config/mn10300/mn10300.md (isa): New attribute.
14255         (enabled): New attribute.
14256
14257         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14258         (abssf2, negsf2): Define only for hardware fp.
14259         (sqrtsf2): Reformat.
14260         (addsf3, subsf3, mulsf3): Merge expander and insn.
14261
14262         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14263         (DEBUGGER_AUTO_OFFSET): Remove.
14264         (DEBUGGER_ARG_OFFSET): Remove.
14265
14266         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14267         Emit register stores with the same offsets as the hardware.
14268         (mn10300_store_multiple_operation): Don't check that the register
14269         save offsets are monotonic.
14270         * config/mn10300/mn10300-protos.h: Update.
14271
14272         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14273
14274         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14275         in terms of the value on the stack, not the MDR register.
14276
14277 2011-01-11  Jan Hubicka  <jh@suse.cz>
14278
14279         PR lto/45721
14280         PR lto/45375
14281         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14282         (symbol_alias_set_destroy, symbol_alias_set_contains,
14283         propagate_aliases_backward): Declare.
14284         * lto-streamer-out.c (struct sets): New sturcture.
14285         (trivally_defined_alias): New function.
14286         (output_alias_pair_p): Rewrite.
14287         (output_unreferenced_globals): Fix output of alias pairs.
14288         (produce_symtab): Likewise.
14289         * ipa.c (function_and_variable_visibility): Set weak alias destination
14290         as needed in lto.
14291         * varasm.c (symbol_alias_set_t): Remove.
14292         (symbol_alias_set_destroy): Export.
14293         (propagate_aliases_forward, propagate_aliases_backward): New functions
14294         based on ...
14295         (compute_visible_aliases): ... this one; remove.
14296         (trivially_visible_alias): New
14297         (trivially_defined_alias): New.
14298         (remove_unreachable_alias_pairs): Rewrite.
14299         (finish_aliases_1): Reorganize code checking if alias is defined.
14300         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14301         in LTO mode.
14302
14303 2011-01-11  Richard Guenther  <rguenther@suse.de>
14304
14305         PR tree-optimization/46076
14306         * tree-ssa.c (useless_type_conversion_p): Conversions from
14307         unprototyped to empty argument list function types are useless.
14308
14309 2011-01-11  Richard Guenther  <rguenther@suse.de>
14310
14311         PR middle-end/45235
14312         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14313         volatile MEMs as MEM_READONLY_P.
14314
14315 2011-01-11  Richard Guenther  <rguenther@suse.de>
14316
14317         PR tree-optimization/47239
14318         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14319
14320 2011-01-11  Jeff Law  <law@redhat.com>
14321
14322         PR tree-optimization/47086
14323         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14324         IVs from statements that might throw.
14325
14326 2011-01-10  Jan Hubicka  <jh@suse.cz>
14327
14328         PR lto/45375
14329         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14330
14331 2011-01-10  Jan Hubicka  <jh@suse.cz>
14332
14333         PR lto/45375
14334         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14335         when correcting profile.
14336
14337 2011-01-10  Jan Hubicka  <jh@suse.cz>
14338
14339         PR lto/46083
14340         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14341         DECL_FINI_PRIORITY.
14342         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14343         Restore DECL_FINI_PRIORITY.
14344
14345 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14346
14347         * doc/gimple.texi: Fix quoting of multi-word return values in
14348         @deftypefn statements.  Ensure presence of return value.  Wrap
14349         overlong @deftypefn lines.
14350         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14351         descriptions of removed functions.
14352         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14353         of multi-word return value in @deftypefn statement.
14354
14355 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14356
14357         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14358         (Conditional Expressions, Logical Operators)
14359         (Statement and operand traversals): Do not indent smallexample
14360         code.  Fix duplicate function argument in example.
14361
14362 2011-01-10  Jeff Law  <law@redhat.com>
14363
14364         PR tree-optimization/47141
14365         * ipa-split.c (split_function): Handle case where we are
14366         returning a value and the return block has a virtual operand phi.
14367
14368 2011-01-10  Jan Hubicka  <jh@suse.cz>
14369
14370         PR tree-optimization/47234
14371         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14372         (pass_feedback_split_functions): Declare.
14373         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14374         tree-profile.
14375         * ipa-split.c (gate_split_functions): Update comments; disable
14376         split-functions for profile_arc_flag and branch_probabilities.
14377         (gate_feedback_split_functions): New function.
14378         (execute_feedback_split_functions): New function.
14379         (pass_feedback_split_functions): New global var.
14380
14381 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14382
14383         PR lto/46760
14384         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14385         calling gimple_call_set_cannot_inline.
14386
14387 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14388
14389         * config/darwin-sections.def: Remove unused section.
14390
14391 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14392
14393         PR c++/47218
14394         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14395
14396 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14397
14398         PR objc/47232
14399         * c-parser.c (c_parser_declaration_or_fndef): Improved
14400         error message.
14401
14402 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14403
14404         * config/i386/winnt.c (i386_pe_start_function): Make sure
14405         to switch back to function's section.
14406
14407 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14408
14409         PR gcc/46902
14410         PR testsuite/46912
14411         * plugin.c: Move include of dlfcn.h from here...
14412         * system.h: ... to here.
14413
14414 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14415
14416         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14417         file name.
14418         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14419         two extra empty pages in PDF output.
14420
14421 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14422
14423         PR objc/47078
14424         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14425         for error recovery purposes behave as if it was not specified so
14426         that the default type is usd.
14427
14428 2011-01-07  Jan Hubicka  <jh@suse.cz>
14429
14430         PR tree-optmization/46469
14431         * ipa.c (function_and_variable_visibility): Clear needed flags on
14432         nodes with external decls; handle weakrefs merging correctly.
14433
14434 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14435
14436         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14437         not false.
14438
14439 2011-01-07  Jan Hubicka  <jh@suse.cz>
14440
14441         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14442         and no longer claim that gold is required for linker plugin.
14443         * configure: Regenerate.
14444         * gcc.c (PLUGIN_COND): New macro.
14445         (LINK_COMMAND_SPEC): Use it.
14446         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14447         * config.in (HAVE_LTO_PLUGIN): New.
14448         * configure.ac (--with-lto-plugin): New parameter; autodetect
14449         HAVE_LTO_PLUGIN.
14450
14451 2011-01-07  Jan Hubicka  <jh@suse.cz>
14452
14453         PR tree-optimization/46367
14454         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14455         when we can update original.
14456         (cgraph_mark_inline_edge): Sanity check.
14457         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14458
14459 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14460
14461         * config/spu/spu.h (ASM_COMMENT_START): Define.
14462
14463 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14464
14465         PR driver/42445
14466         * gcc.c (%>S): New.
14467         (SWITCH_KEEP_FOR_GCC): Likewise.
14468         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14469         (do_spec_1): Handle "%>".
14470
14471         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14472
14473 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14474
14475         PR target/47201
14476         * config/i386/i386.c (ix86_delegitimize_address): If
14477         simplify_gen_subreg fails, return orig_x.
14478
14479         PR bootstrap/47187
14480         * value-prof.c (gimple_stringop_fixed_value): Handle
14481         lhs of the call properly.
14482
14483 2011-01-07  Jan Hubicka  <jh@suse.cz>
14484
14485         PR lto/45375
14486         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14487
14488 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14489
14490         * target.def (function_switched_text_sections): New hook.
14491         * doc/tm.texi: Regenerated.
14492         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14493         * final.c (default_function_switched_text_sections): New.
14494         (final_scan_insn): Call function_switched_text_sections when a
14495         mid-function section change occurs.
14496         * output.h (default_function_switched_text_sections): Declare.
14497         * config/darwin-protos.h (darwin_function_switched_text_sections):
14498         Likewise.
14499         * config/darwin.c (darwin_function_switched_text_sections): New.
14500         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14501
14502 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14503
14504         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14505         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14506         the secondary code fragment when outputting for DWARF == 2.
14507
14508 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14509
14510         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14511         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14512         Remove.
14513         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14514         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14515
14516 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14517
14518         PR debug/46704
14519         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14520         when it is not empty.
14521
14522 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14523
14524         Bobcat Enablement
14525         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14526         (case ${target}): Add btver1.
14527         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14528         -march=native recognize btver1 processors.
14529         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14530         btver1 def_and_undef
14531         * config/i386/i386.c (struct processor_costs btver1_cost): New
14532         btver1 cost table.
14533         (m_BTVER1): New definition.
14534         (m_AMD_MULTIPLE): Includes m_BTVER1.
14535         (initial_ix86_tune_features): Add btver1 tune.
14536         (processor_target_table): Add btver1 entry.
14537         (static const char *const cpu_names): Add btver1 entry.
14538         (software_prefetching_beneficial_p): Add btver1.
14539         (ix86_option_override_internal): Add btver1 instruction sets.
14540         (ix86_issue_rate): Add btver1.
14541         (ix86_adjust_cost): Add btver1.
14542         * config/i386/i386.h (TARGET_BTVER1): New definition.
14543         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14544         (enum processor_type): Add PROCESSOR_BTVER1.
14545         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14546
14547 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14548
14549         PR target/43309
14550         * config/i386/i386.c (legitimize_tls_address)
14551         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14552         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14553         (tls_initial_exec_64_sun): New pattern.
14554
14555 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14556
14557         * doc/invoke.texi (Overall Options): Improve wording and markup
14558         of the description of -wrapper.
14559
14560 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14561
14562         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14563         rdynamic, threads): New Driver options.
14564
14565 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14566
14567         PR target/38118
14568         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14569         if coming from .tdata.
14570         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14571
14572 2011-01-06  Jan Hubicka  <jh@suse.cz>
14573
14574         PR lto/47188
14575         * collect2.c (main): Do not enable LTOmode when plugin is active.
14576
14577 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14578
14579         PR other/45915
14580         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14581         --version output if supported.
14582         * configure: Regenerate.
14583
14584 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14585
14586         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14587         Driver options.
14588
14589 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14590
14591         PR c/47150
14592         * c-convert.c (convert): When converting a complex expression
14593         other than COMPLEX_EXPR to a different complex type, ensure
14594         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14595         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14596         when converting COMPLEX_TYPE.
14597
14598 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14599
14600         PR tree-optimization/47139
14601         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14602         only the last reduction value is used outside the loop.  Update
14603         documentation.
14604
14605 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14606
14607         * config/rtems.opt: New.
14608         * config.gcc (*-*-rtems*): Use rtems.opt.
14609
14610 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14611
14612         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14613         processors do not support 3DNow instructions.
14614
14615 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14616
14617         * config/spu/spu.c (spu_option_override): Set parameter
14618         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14619
14620 2011-01-05  Jan Hubicka  <jh@suse.cz>
14621
14622         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14623         at the command line.
14624
14625 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14626
14627         PR lto/47162
14628         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14629         deltas on streamed outgoing edges.
14630         (output_node_opt_summary): Output info for outgoing edges only when
14631         the node is in new parameter set.
14632         (output_cgraph_opt_summary): New parameter set, passed to the two
14633         aforementioned functions.  Update its forward declaration and its
14634         callee too.
14635
14636 2011-01-05  Tom Tromey  <tromey@redhat.com>
14637
14638         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14639         operator to c_finish_omp_atomic.
14640         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14641         (build_unary_op): Update.
14642         (build_modify_expr): Update.
14643         (build_asm_expr): Update.
14644
14645 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14646
14647         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14648         newly inserted insns.
14649         (pad_bb): Likewise.
14650         (spu_emit_branch_hint): Likewise.
14651         (insert_hbrp_for_ilb_runout): Likewise.
14652         (spu_machine_dependent_reorg): Call df_finish_pass after
14653         schedule_insns returns.
14654
14655 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14656
14657         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14658
14659 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14660
14661         PR tree-optimization/47005
14662         * tree-sra.c (struct access): Add 'non_addressable' bit.
14663         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14664         (decide_one_param_reduction): Return 0 if the parameter is passed by
14665         reference and one of the accesses in the group is non_addressable.
14666
14667 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14668
14669         PR tree-optimization/47056
14670         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14671         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14672         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14673
14674 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14675
14676         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14677         initializer.  Skip view conversions from aggregate types.
14678
14679 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14680
14681         PR bootstrap/47055
14682         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14683
14684 2011-01-04  Philipp Thomas  <pth@suse.de>
14685
14686         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14687         obvious typo.
14688
14689 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14690
14691         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14692         on empty epilogue sequences.
14693
14694 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14695
14696         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14697         non-static): New Driver options.
14698
14699 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14700
14701         PR driver/47137
14702         * gcc.c (default_compilers[]): Set combinable field to 0
14703         for all assembly languages.
14704
14705 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14706
14707         * config/mips/loongson3a.md: New file.
14708         * config/mips/mips.md: Include loongson3a.md.
14709         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14710         TUNE_LOONGSON_3A.
14711
14712 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14713
14714         PR middle-end/47017
14715         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14716         instead of convert_memory_address_addr_space on the base expression.
14717
14718 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14719
14720         * config/spu/spu.c (spu_option_override): Update error text
14721         for bad -march= / -mtune= values.
14722
14723 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14724
14725         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14726         if branch-hint optimization will be performed.
14727
14728 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14729
14730         PR tree-optimization/47148
14731         * ipa-split.c (split_function): Convert arguments to
14732         DECL_ARG_TYPE if possible.
14733
14734         PR tree-optimization/47155
14735         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14736         when computing uns.
14737
14738         PR rtl-optimization/47157
14739         * combine.c (try_combine): If undobuf.other_insn becomes
14740         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14741         and set *new_direct_jump_p too.
14742
14743 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14744
14745         PR tree-optimization/47021
14746         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14747
14748 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14749
14750         * gcc.c (process_command): Update copyright notice dates.
14751         * gcov.c (print_version): Likewise.
14752         * gcov-dump.c (print_version): Likewise.
14753         * mips-tfile.c (main): Likewise.
14754         * mips-tdump.c (main): Likewise.
14755
14756 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14757
14758         PR tree-optimization/46801
14759         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14760         aggregate fields start at byte boundary instead of the bit-field flag.
14761
14762 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14763
14764         PR driver/47137
14765         * gcc.c (main): Revert revision 168407.
14766
14767 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14768
14769         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14770
14771 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14772
14773         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14774         vector optab to expand vector/scalar shift, update gimple to vector.
14775
14776 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14777
14778         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14779         a thunk.
14780
14781 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14782
14783         PR tree-optimization/46984
14784         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14785         HOST_WIDE_INT.
14786         (cgraph_create_indirect_edge): Fixed line length.
14787         (cgraph_indirect_call_info): Declare.
14788         (cgraph_make_edge_direct) Update declaration.
14789         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14790         (cgraph_create_indirect_edge): Use it.
14791         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14792         callees.
14793         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14794         the new thunk_delta representation.
14795         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14796         HOST_WIDE_INT.
14797         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14798         (ipa_read_indirect_edge_info): Likewise.
14799         * lto-cgraph.c (output_edge_opt_summary): New function.
14800         (output_node_opt_summary): Call it on all outgoing edges.
14801         (input_edge_opt_summary): New function.
14802         (input_node_opt_summary): Call it on all outgoing edges.
14803
14804 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14805
14806         PR driver/47137
14807         * gcc.c (main): Don't check have_o when settting combine_inputs.
14808
14809 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14810
14811         * regrename.c: Add general comment describing the pass.
14812         (struct du_head): Remove 'length' field.
14813         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14814         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14815         Force renaming to the preferred class (if any) in the first pass and do
14816         not consider registers that belong to it in the second pass.
14817         (create_new_chain): Do not set 'length' field.
14818         (scan_rtx_reg): Likewise.
14819
14820 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14821
14822         PR tree-optimization/47140
14823         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14824         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14825         to bit_value_binop.
14826
14827         PR rtl-optimization/47028
14828         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14829         parm_birth_insn instead of at the beginning of first bb.
14830
14831 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14832
14833         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14834         Remove the word "see" before "@pxref".
14835         * doc/rtl.texi: Remove the word "see" before "@pxref".
14836
14837 2011-01-01  Jan Hubicka  <jh@suse.cz>
14838
14839         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14840         memory.
14841
14842 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14843
14844         PR target/38662
14845         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14846
14847 \f
14848 Copyright (C) 2011 Free Software Foundation, Inc.
14849
14850 Copying and distribution of this file, with or without modification,
14851 are permitted in any medium without royalty provided the copyright
14852 notice and this notice are preserved.