re PR middle-end/45098 (Missed induction variable optimization)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2
3         PR target/45098
4         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5         get_loop_invariant_expr_id.
6         (get_loop_invariant_expr_id): Use get_expr_id.
7         (parm_decl_cost): New function.
8         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
9         Improve bound cost estimation.  Use different inv_expr_id for elim and
10         express cases.
11
12 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13
14         PR target/45098
15         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
16         cost_base.cost == 0.
17
18 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19
20         PR target/49002
21         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
22         Properly handle load cast.
23
24 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
25
26         PR tree-optimization/49039
27         * tree-vrp.c (extract_range_from_binary_expr): For
28         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
29         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
30
31 2011-05-18  Tom de Vries  <tom@codesourcery.com>
32
33         PR target/45098
34         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
35
36 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
37
38         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
39         (*tls_global_dynamic_64): Ditto.
40         (*tls_local_dynamic_base_32_gnu): Ditto.
41         (*tls_local_dynamic_base_64): Ditto.
42         (tls_initial_exec_64_sun): Ditto.
43
44 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
45
46         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
47         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
48         bf592-none.
49         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
50         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
51         * config/bfin/bfin.c (bfin_cpus): Add bf592.
52         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
53         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
54         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
55         * config/bfin/elf.h (LIB_SPEC): Add bf592.
56
57 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
58
59         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
60         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
61         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
62         target_thread_pointer, arm_structure_size_boundary, struct
63         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
64         struct abi_name, arm_all_abis): Remove.
65         (arm_option_override) Don't process most enumerated option values here.
66         Don't process target_fpe_name here.  Work with integer not string for
67         structure size boundary; use separate diagnostics for each case.
68         * config/arm/arm.h (enum float_abi_type, enum
69         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
70         to arm-opts.h.
71         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
72         arm_structure_size_boundary): Remove.
73         * config/arm/arm.opt (mabi=): Use Enum and Init.
74         (arm_abi_type): New Enum and EnumValue entries.
75         (mfloat-abi=): Use Enum and Init.
76         (float_abi_type): New Enum and EnumValue entries.
77         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
78         (mfp16-format=): Use Enum and Init.
79         (arm_fp16_format_type): New Enum and EnumValue entries.
80         (mstructure-size-boundary=): Use UInteger and Init.
81         (mtp=): Use Enum and Init.
82         (arm_tp_type): New Enum and EnumValue entries.
83
84 2011-05-18  Richard Guenther  <rguenther@suse.de>
85
86         PR tree-optimization/49018
87         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
88         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
89         gimple_has_side_effects.
90
91 2011-05-18  Richard Guenther  <rguenther@suse.de>
92
93         * gimple.c (gimple_register_type_1): New function, split out from ...
94         (gimple_register_type): ... here.  Avoid infinite recursion.
95
96 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
97
98         PR tree-optimization/41881
99         * tree-vectorizer.h (struct _loop_vec_info): Add new field
100         reduction_chains along with a macro for its access.
101         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
102         (destroy_loop_vec_info): Free reduction chains.
103         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
104         (vect_is_slp_reduction): New function.
105         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
106         (vect_create_epilog_for_reduction): Support SLP reduction chains.
107         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
108         definition types for reduction chains.
109         (vect_supported_load_permutation_p): Don't allow permutations for
110         reduction chains.
111         (vect_analyze_slp_instance): Support reduction chains.
112         (vect_analyze_slp): Try to build SLP instance from reduction chains.
113         (vect_get_constant_vectors):  Handle reduction chains.
114         (vect_schedule_slp_instance): Mark the first statement of the
115         reduction chain as reduction.
116
117 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
118
119         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
120         names for group elements access.
121         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
122         reduction chains as well.  Remove data reference and interleaving
123         related words from the fields names.
124         * tree-vect-loop.c (vect_transform_loop): Use new names for group
125         elements access.
126         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
127         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
128         vect_update_interleaving_chain, vect_same_range_drs,
129         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
130         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
131         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
132         vect_analyze_group_access, vect_analyze_data_ref_access,
133         vect_create_data_ref_ptr, vect_transform_strided_load,
134         vect_record_strided_load_vectors): Likewise.
135         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
136         vect_model_load_cost, vectorizable_store, vectorizable_load,
137         vect_remove_stores, new_stmt_vec_info): Likewise.
138         * tree-vect-slp.c (vect_build_slp_tree,
139         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
140
141 2011-05-18  Richard Guenther  <rguenther@suse.de>
142
143         PR middle-end/48989
144         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
145         operand verification.
146         (verify_gimple_assign_binary): Likewise.
147         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
148         to non-1-precision BOOLEAN_TYPEs.
149
150 2011-05-18  Tom de Vries  <tom@codesourcery.com>
151
152         PR target/45098
153         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
154
155 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
156
157         PR tree-optimization/49000
158         * tree-ssa.c (execute_update_addresses_taken): Call
159         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
160         be rewritten and decl has been marked for renaming, reset
161         the debug stmt.
162
163 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
164
165         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
166         enum_opts_set when testing if attributes have set -mfpmath=.
167
168 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
169
170         * config/mips/mips.c (mips_handle_option): Remove unused variable.
171
172 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
173
174         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
175         info->entry with 0
176         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
177         id.transform_lang_insert_block with NULL.
178
179 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
180
181         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
182         (output_fp_compare): Change args 3 and 4 to bool.
183         (ix86_expand_call): Change arg 6 to bool.
184         (ix86_attr_length_immediate_default): Change arg 2 to bool.
185         (ix86_attr_length_vex_default): Change arg 3 to bool.
186         * config/i386/i386.md: Update all uses.
187         * config/i386/i386.c: Ditto.
188         (ix86_flags_dependent): Change return type to bool.
189
190 2011-05-17  Richard Guenther  <rguenther@suse.de>
191
192         * gimple.c (type_hash_pair_compare): Fix comparison.
193
194 2011-05-17  Richard Guenther  <rguenther@suse.de>
195
196         * gimple.c (iterative_hash_gimple_type): Simplify singleton
197         case some more, fix final hash value of the non-singleton case.
198
199 2011-05-17  Richard Guenther  <rguenther@suse.de>
200
201         PR bootstrap/49013
202         Revert
203         2011-05-16  Richard Guenther  <rguenther@suse.de>
204
205         * gimple.c (gimple_types_compatible_p_1): Use names of the
206         type itself, not its main variant.
207         (iterative_hash_gimple_type): Likewise.
208
209 2011-05-17  Richard Guenther  <rguenther@suse.de>
210
211         * gimple.c (gimple_register_canonical_type): Use the main-variant
212         leader for computing the canonical type.
213
214 2011-05-17  Nick Clifton  <nickc@redhat.com>
215
216         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
217         moves.
218
219         * config/rx/rx.md: Add peephole to remove redundant extensions
220         after loads.
221         (bitset_in_memory): Use rx_restricted_mem_operand.
222         (bitinvert_in_memory): Likewise.
223         (bitclr_in_memory): Likewise.
224
225 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
226             Nick Clifton  <nickc@redhat.com>
227
228         * config/rx/rx.md: Add peepholes to match a register move followed
229         by a comparison of the moved register.  Replace these with an
230         addition of zero that does both actions in one instruction.
231
232 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
233
234         PR target/48986
235         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
236         predicate to allow CONST_INT.
237         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
238
239 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
240
241         * opts-common.c (opt_enum_arg_to_value): New.
242         * opts.h (opt_enum_arg_to_value): Declare.
243         * config/i386/i386.opt (fpmath): Remove.
244         (mfpmath=): Use Enum, Init and Save.
245         (fpmath_unit): New Enum and EnumValue entries.
246         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
247         name for function fpmath state.
248         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
249         * config/i386/i386.c: Include diagnostic.h.
250         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
251         (ix86_target_string): Take enum fpmath_unit value instead of string.
252         (ix86_debug_options): Update call to ix86_target_string.
253         (ix86_option_override_internal): Don't process fpmath strings here.
254         (x86_function_specific_save, ix86_function_specific_restore):
255         Don't handle fpmath state specially.
256         (ix86_function_specific_print): Pass fpmath state to
257         ix86_target_string instead of printing in this function.
258         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
259         Handle enum attributes.
260         (IX86_ATTR_ENUM, ix86_opt_enum): New.
261         (ix86_valid_target_attribute_tree): Update option_strings
262         handling.  Handle fpmath as enum option.
263         (ix86_can_inline_p): Update field names for function fpmath state.
264         (ix86_expand_builtin): Update call to ix86_target_string.
265         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
266         (ix86_fpmath): Remove.
267         * config/i386/t-i386 (i386.o): Update dependencies.
268
269 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
270
271         PR preprocessor/48677
272         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
273         from decoded_options[0], not from itself.
274
275 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
276
277         * config/i386/constraints.md (z): New constraint.
278         * config/i386/i386.c (c): New mode attribute.
279         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
280         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
281         constraint for operand 0.
282         (*call_vzeroupper): Ditto.
283         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
284         (*call_rex64_ms_sysv_vzeroupper): Ditto.
285         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
286         Use "lzm" constraint for operand 0.
287         (*call_pop_vzeroupper): Ditto.
288         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
289         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
290         constraint for operand 0.
291         (*sibcall_vzeroupper): Ditto.
292         (*sibcall_rex64_ms_sysv): Ditto.
293         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
294         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
295         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
296         (*sibcall_pop_vzeroupper): Ditto.
297         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
298         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
299         mode iterator.  Use "<c>zm" constraint for operand 1.
300         (*call_value_vzeroupper): Ditto.
301         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
302         for operand 1.
303         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
304         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
305         *call_value_pop_1.  Use "lzm" constraint for operand 1.
306         (*call_value_pop_vzeroupper): Ditto.
307         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
308         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
309         mode iterator.  Use "Uz" constraint for operand 1.
310         (*sibcall_value_vzeroupper): Ditto.
311         (*sibcall_value_rex64_ms_sysv): Ditto.
312         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
313         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
314         constraint for operand 1.
315         (*sibcall_value_pop_vzeroupper): Ditto.
316         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
317         and "z" constraint for operand 2.
318         (*tls_global_dynamic_32_gnu): Ditto.
319         (*tls_local_dynamic_base_32_gnu): Ditto.
320         (*tls_local_dynamic_base_64): Ditto.
321         (*tls_local_dynamic_32_once): Ditto.
322         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
323         Update all callers.
324         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
325
326 2011-05-16  Richard Guenther  <rguenther@suse.de>
327
328         * gimple.c (gimple_types_compatible_p_1): Use names of the
329         type itself, not its main variant.
330         (iterative_hash_gimple_type): Likewise.
331
332 2011-05-16  Richard Guenther  <rguenther@suse.de>
333
334         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
335         always visit pointer target and function result and argument types.
336
337 2011-05-16  Jason Merrill  <jason@redhat.com>
338
339         PR c++/48999
340         * tree-inline.c (copy_statement_list): Put back recursion.
341
342 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
343
344         PR target/27663
345         PR target/41076
346         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
347         * config/avr/avr.md ("*ior<mode>qi.byte0",
348         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
349
350 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
351
352         PR target/45099
353         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
354         register is needed for a function argument.
355
356 2011-05-16  Richard Guenther  <rguenther@suse.de>
357
358         * gimple.c (struct type_hash_pair): New type.
359         (type_hash_pair_compare): New function.
360         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
361
362 2011-05-16  Revital Eres  <revital.eres@linaro.org>
363
364         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
365
366 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
367
368         * config/i386/i386.md (floating point move splitters): Fix
369         usage of standard_80387_constant_p.
370         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
371
372 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
373
374         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
375
376 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
377
378         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
379         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
380         (tree_ssa_lim_finalize): Likewise.
381
382 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
383
384         * config/i386/constraint.md (Yd, Yx): New register constraints.
385         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
386         Yd conditional register constraint.
387         (*movtf_internal): Use standard_sse_constant_opcode.
388         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
389         Yx conditional register constraint.
390         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
391         Yd conditional register constraint.  Use standard_sse_constant_p to
392         check for valid SSE constants and call standard_sse_constant_opcode to
393         output SSE insn.
394         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
395         constants and call standard_sse_constant_opcode to output SSE insn.
396         * config/i386/i386.c (ix86_option_ovverride_internal): Set
397         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
398         optimize_size is set.
399         (standard_sse_constant_opcode): Output conditional AVX insn templates.
400
401 2011-05-14  Tobias Burnus  <burnus@net-b.de>
402
403         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
404
405 2011-05-13  Martin Jambor  <mjambor@suse.cz>
406
407         * ipa-prop.c (ipa_cst_from_jfunc): New function.
408         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
409         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
410         (evaluate_conditions_for_ipcp_clone): Removed.
411         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
412         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
413         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
414
415 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
416
417         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
418         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
419         lieu of MAY_HAVE_DEBUG_STMTS.
420         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
421         debug statements if !MAY_HAVE_DEBUG_STMTS.
422
423 2011-05-13  Martin Thuresson  <martint@google.com>
424
425         PR gcov-profile/47793
426         * libgcov.c (gcov_exit): Support relative profile paths.
427         * doc/invoke.texi (-fprofile-dir): Update for above change.
428
429 2011-05-13  Richard Guenther  <rguenther@suse.de>
430
431         * gimple.c (gimple_canonical_types_compatible_p): Do not use
432         type-pair caching, do not compare hashes.
433
434 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
435
436         PR middle-end/48965
437         * tree-cfg.c (edge_to_cases_cleanup): Return true.
438         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
439
440 2011-05-13  Kai Tietz  <ktietz@redhat.com>
441
442         * gimplify.c (gimplify_expr): Make sure operand is boolified.
443         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
444         compatible type for TRUTH_NOT_EXPR.
445
446 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
447
448         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
449         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
450         can_create_pseudo_p ().
451
452 2011-05-13  Richard Guenther  <rguenther@suse.de>
453
454         PR lto/48978
455         * gimple.c (iterative_hash_gimple_type): Revert change in
456         pointer target and function result and argument hashing.
457
458 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
459
460         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
461         (*movxf_internal_nointeger): Ditto.
462         (*movdf_internal_rex64): Ditto.
463         (*movdf_internal): Ditto.
464         (*movdf_internal_nointeger): Ditto.
465         (*movsf_internal): Ditto.
466         (sincos splitters): Use can_create_pseudo ().
467
468 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
469
470         * config/i386/i386-opts.h: New.
471         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
472         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
473         ix86_section_threshold): Remove.
474         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
475         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
476         OPT_mbranch_cost_.
477         (ix86_option_override_internal): Don't decode strings for options
478         other than -march=, -mtune= and -mfpmath=.  Don't allow for
479         __attribute__ uses in remaining diagnostics for options with
480         string arguments.  Don't check for integer arguments being negative.
481         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
482         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
483         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
484         ix86_branch_cost, ix86_section_threshold): Remove.
485         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
486         HeaderInclude.
487         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
488         but not Var.
489         (masm=): Use Enum and Init.
490         (asm_dialect): New Enum and EnumValue entries.
491         (mbranch-cost=): Use UInteger.
492         (mlarge-data-threshold=): Use UInteger and Init.
493         (mcmodel=): Use Enum and Init.
494         (cmodel): New Enum and EnumValue entries.
495         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
496         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
497         mregparm=): Use UInteger.
498         (mstringop-strategy=): Use Enum and Init.
499         (stringop_alg): New Enum and EnumValue entries.
500         (mtls-dialect=): Use Enum and Init.
501         (tls_dialect): New Enum and EnumValue entries.
502         (mabi=): Use Enum and Init.
503         (calling_abi): New Enum and EnumValue entries.
504         (mveclibabi=): Use Enum and Init.
505         (ix86_veclibabi): New Enum and EnumValue entries.
506
507 2011-05-13  Nick Clifton  <nickc@redhat.com>
508
509         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
510         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
511
512 2011-05-13  Kai Tietz  <ktietz@redhat.com>
513
514         PR middle-end/48984
515         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
516         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
517         (gimple_boolify): Check for cast for boolean_type_node instead for
518         BOOLEAN_TYPE.
519
520 2011-05-13  Richard Guenther  <rguenther@suse.de>
521
522         PR tree-optimization/48172
523         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
524         multiplying by number of iterations for equal step.
525         (vect_create_cond_for_alias_checks): Likewise.
526
527 2011-05-13  Andreas Schwab  <schwab@redhat.com>
528
529         * configure.ac: Use AS_HELP_STRING throughout.
530         * configure: Regenerate.
531
532 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
533
534         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
535         (ix86_emit_restore_regs_using_mov): Likewise.
536         (ix86_emit_restore_sse_regs_using_mov): Likewise.
537
538 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
539
540         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
541         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
542         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
543         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
544         RTX_OK_FOR_OLO10_P): ...here.
545         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
546         SYMBOLIC_CONST.
547
548 2011-05-12  Kai Tietz  <ktietz@redhat.com>
549
550         * gimplify.c (gimple_boolify): Re-boolify expression
551         arguments even if expression type is of kind BOOLEAN_TYPE.
552         (gimplify_boolean_expr): Removed.
553         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
554         and XOR. Additional take care that we keep expression's type.
555         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
556         of TRUTH_AND|OR|XOR_EXPR.
557
558 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
559
560         PR tree-optimization/48975
561         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
562         on all bbs here and free and clear ifc_bbs at the end.
563
564 2011-05-12  Richard Guenther  <rguenther@suse.de>
565
566         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
567         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
568         until after simple checks.
569         (gimple_types_compatible_p): Likewise.
570         (iterative_hash_gimple_type): Always hash pointer targets
571         and function return and argument types.
572         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
573         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
574         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
575         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
576         completely in the simple compare section.
577         (gimple_register_canonical_type): Query the cache again after
578         registering.
579
580 2011-05-12  Richard Guenther  <rguenther@suse.de>
581
582         PR tree-optimization/48172
583         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
584         the number of iterations from the segment size calculation.
585         (vect_create_cond_for_alias_checks): Adjust.
586
587 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
588
589         PR debug/48967
590         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
591         if validate_subreg fails.
592
593 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
594
595         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
596         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
597         early.
598
599 2011-05-12  DJ Delorie  <dj@redhat.com>
600
601         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
602         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
603         created builtin into rx_builtins array.
604         (rx_builtin_decl): New function.
605         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
606
607 2011-05-12  DJ Delorie  <dj@redhat.com>
608             Nick Clifton  <nickc@redhat.com>
609
610         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
611         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
612         (rx_is_legitimate_address): Add pre-decrement and post-increment
613         addressing in HImode and QImode.  Fix test for out of range
614         REG+INT addressing.
615         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
616         (rx_align_for_label): Test label before extracting its usage count.
617         (rx_adjust_insn_lengths): Fix selection of insn codes.
618         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
619
620 2011-05-11  Jason Merrill  <jason@redhat.com>
621
622         * tree.c (type_hash_canon): Use struct tree_type_non_common.
623
624 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
625
626         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
627         reindent the subsequent block.
628
629 2011-05-11  Satoru Takabayashi  <satorux@google.com>
630             Paul Pluzhnikov  <ppluzhnikov@google.com>
631
632         * doc/install.texi (Configuration): Document --with-linker-hash-style.
633         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
634         * config.in: Add LINKER_HASH_STYLE.
635         * configure.ac: Add --with-linker-hash-style.
636         * configure: Regenerate.
637
638 2011-05-11  Richard Guenther  <rguenther@suse.de>
639
640         PR middle-end/48964
641         * gimple.c (iterative_hash_canonical_type): Fix typo.
642
643 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
644
645         * config/i386/i386.c (legitimize_tls_address)
646         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
647         expanders directly for TARGET_GNU2_TLS.  Determine pic and
648         __tls_get_addr symbol reference here.  Update call to
649         gen_tls_global_dynamic_{32,64} for added arguments.
650         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
651         expanders directly for TARGET_GNU2_TLS.  Determine
652         __tls_get_addr symbol reference here.  Update call to
653         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
654         unique UNSPEC REG_EQUIV to libcall block.
655         (ix86_tls_get_addr): Declare static.
656         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
657         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
658         Do not determine pic and __tls_get_addr symbol reference here. Do not
659         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
660         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
661         (tls_global_dynamic_64): Add operand 2.  Do not determine
662         __tls_get_addr symbol reference here.  Do not call
663         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
664         (tls_local_dynamic_base64): Ditto for operand 1.
665
666 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
667
668         * function.c (expand_function_start): Initialize stack_check_probe_note
669         only if the generic stack checking mechanism is used.
670
671 2011-05-11  Richard Guenther  <rguenther@suse.de>
672
673         PR tree-optimization/15256
674         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
675         (A & B) | C, combine (A op CST1) op CST2.
676         (tree_ssa_forward_propagate_single_use_vars): Only bother to
677         visit assigns that have uses.
678
679 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
680
681         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
682         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
683         (unpack_ts_type_common_value_fields): ...this.  Update comment.
684         (unpack_value_fields): Adjust for renaming.
685         (lto_input_ts_type_tree_pointers): Split into...
686         (lto_input_ts_type_common_tree_pointer): ...this and...
687         (lto_input_ts_type_non_common_tree_pointers): ...this.
688         (lto_input_tree_pointers): Adjust for above split.
689         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
690         (pack_ts_type_common_value_fields): ...this.  Update comment.
691         (lto_output_ts_type_tree_pointers): Split into...
692         (lto_output_ts_type_common_tree_pointers): ...this and...
693         (lto_output_ts_type_non_common_tree_pointers): ...this.
694         (lto_output_tree_pointers): Adjust for above split.
695         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
696         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
697         * stor-layout.c (vector_type_mode): Adjust location of mode field.
698         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
699         Define.
700         (struct tree_type): Split into...
701         (struct tree_type_common: ...this and...
702         (struct tree_type_with_lang_specific): ...this and...
703         (struct tree_type_non_common): ...this.  Adjust accessor macros
704         accordingly.
705         (TYPE_VALUES_RAW): Define.
706         (union tree_node): Update for above changes.
707         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
708         TS_TYPE_NON_COMMON.
709         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
710         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
711         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
712         * treestructu.def (TS_TYPE): Remove.
713         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
714         Define.
715
716 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
717
718         PR debug/48159
719         * tree-ssa.c (reset_debug_uses): New function.
720         * tree-flow.h (reset_debug_uses): New prototype.
721         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
722         * tree-loop-distribution.c (generate_loops_for_partition): Call
723         reset_debug_uses on the stmts that will be removed.  Keep around
724         all debug stmts, don't count them as bits in partition bitmap.
725         (generate_builtin): Don't count debug stmts or labels as bits in
726         partition bitmap.
727
728 2011-05-11  Richard Guenther  <rguenther@suse.de>
729
730         * gimple.c (gimple_type_hash_1): Merge with ...
731         (gimple_type_hash): ... this.
732         (gtc_visit): Remove mode parameter and simplify accordingly.
733         (gimple_types_compatible_p_1): Likewise.
734         (gimple_types_compatible_p): Likewise.
735         (iterative_hash_gimple_type): Likewise.
736         (visit): Likewise.
737         (gimple_type_eq): Adjust.
738
739 2011-05-11  Revital Eres  <revital.eres@linaro.org>
740
741         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
742         enters the branch create an anti edge in the opposite direction
743         to prevent the creation of reg-moves.
744         * modulo-sched.c: Adjust comment to reflect the fact we are
745         scheduling closing branch.
746         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
747         (stage_count): New field in struct partial_schedule.
748         (calculate_stage_count): New function.
749         (normalize_sched_times): Rename to reset_sched_times and handle
750         incrementing the sched time of the nodes by a constant value
751         passed as parameter.
752         (duplicate_insns_of_cycles): Skip closing branch.
753         (sms_schedule_by_order): Schedule closing branch.
754         (ps_insn_find_column): Handle closing branch.
755         (sms_schedule): Call reset_sched_times and adjust the code to
756         support scheduling of the closing branch.
757         (ps_insert_empty_row): Update calls to normalize_sched_times
758         and rotate_partial_schedule functions.
759
760 2011-05-11  Richard Guenther  <rguenther@suse.de>
761
762         PR middle-end/48953
763         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
764
765 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
766
767         * opts.c (finish_options): Move warning settings from process_options.
768         * toplev.c (process_options): Move warning settings to finish_options.
769
770 2011-05-11  Richard Guenther  <rguenther@suse.de>
771
772         PR tree-optimization/18041
773         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
774         (simplify_bitwise_binary): ... this.  Handle operand conversions
775         by applying them to the result instead.
776         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
777
778 2011-05-11  Richard Guenther  <rguenther@suse.de>
779
780         * gimple.c (gimple_canonical_types_compatible_p): Split out
781         from gimple_types_compatible_p and friends.  Do not recurse
782         to pointed-to types.
783         (gimple_canonical_type_eq): Use it.
784         (iterative_hash_canonical_type): Split out from
785         iterative_hash_gimple_type and friends.  Do not recurse
786         to pointed-to types.
787         (gimple_canonical_type_hash): Use it, allocate the hash here.
788
789 2011-05-11  Revital Eres  <revital.eres@linaro.org>
790
791         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
792         recognizing doloop.
793
794 2011-05-11  Revital Eres  <revital.eres@linaro.org>
795
796         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
797         instead of PREV_INSN.
798
799 2011-05-11  Revital Eres  <revital.eres@linaro.org>
800
801         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
802         * loop-doloop.c (doloop_condition_get): Likewise.
803         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
804         (doloop_end): New.
805         * config/arm/arm.md (*addsi3_compare0): Remove "*".
806
807 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
808
809         * tree.def (CASE_LABEL_EXPR): Add an operand.
810         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
811
812 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
813
814         * c-decl.c (c_override_global_bindings_to_false): Remove.
815         (global_bindings_p): Don't check
816         c_override_global_bindings_to_false.
817         * c-tree.h (c_override_global_bindings_to_false): Remove.
818         * c-typeck.c (composite_type): Don't set
819         c_override_global_bindings_to_false.
820
821 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
822
823         PR target/48857, 48495
824         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
825         (VSX_MODE): Ditto.
826         (VSX_MOVE_MODE): Ditto.
827         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
828         VSX vector types.  Add V2DImode.
829         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
830         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
831         (MODES_TIEABLE_P): Ditto.
832
833         * config/rs6000/rs6000.c (rs6000_emit_move): Use
834         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
835         VSX_VECTOR_MODE.
836         (init_cumulative_args): Ditto.
837         (rs6000_function_arg_boundary): Ditto.
838         (rs6000_function_arg_advance_1): Ditto.
839         (rs6000_function_arg): Ditto.
840         (rs6000_function_ok_for_sibcall): Ditto.
841         (emit_frame_save): Ditto.
842         (rs6000_function_value): Ditto.
843         (rs6000_libcall_value): Ditto.
844
845 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
846
847         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
848         i386/darwin-lib.h to $libgcc_tm_file.
849         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
850
851 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
852
853         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
854
855 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
856
857         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
858         * config/rs6000/rs6000-tables.opt: New file (generated).
859         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
860         rs6000/rs6000-tables.opt to extra_options.
861         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
862         * config/rs6000/rs6000.c (rs6000_select): Remove.
863         (processor_target_table): Move contents to rs6000-cpus.def.
864         (darwin_rs6000_override_options): Check
865         global_options_set.x_rs6000_cpu_index instead of
866         rs6000_select[1].string.
867         (rs6000_option_override_internal): Likewise.
868         (rs6000_handle_option): Don't assert that global structures are in
869         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
870         (rs6000_default_cpu): New variable.
871         (rs6000_file_start): Set it instead of local default_cpu.  Check
872         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
873         global_options_set.x_rs6000_tune_index instead of rs6000_select.
874         (rs6000_darwin_file_start): Check rs6000_default_cpu and
875         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
876         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
877         rs6000_select): Remove.
878         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
879         Remove.
880         (mcpu=, mtune=): Use Var, Init, Enum and Save.
881         * config/rs6000/t-rs6000
882         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
883         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
884         global_options_set.x_rs6000_cpu_index instead of
885         rs6000_select[1].string.
886         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
887         global_options_set.x_rs6000_cpu_index instead of
888         rs6000_select[1].string.
889
890 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
891
892         * config.gcc (libgcc_tm_file): Define instead of including files
893         from ../../libgcc/config/ in tm_file.
894         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
895         * configure: Regenerate.
896         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
897         libgcc_tm.h, cs-libgcc_tm.h): New.
898         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
899         (clean): Remove libgcc_tm.h.
900         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
901         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
902         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
903
904 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
905
906         PR target/48896
907         * config/avr/avr.c (avr_ret_register): Return unsigned int
908         instead of int.
909         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
910         it to avr_libcall_value.
911         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
912         expand_expr.
913         (avr_expand_binop_builtin): Ditto.
914         (avr_expand_unop_builtin): Ditto.
915
916 2011-05-10  DJ Delorie  <dj@redhat.com>
917
918         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
919         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
920         * config/rx/rx.c (rx_align_for_label): Add label and
921         uses_threshold parameters.  Do not align when the label is not
922         used enough.
923         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
924
925 2011-05-10  Richard Guenther  <rguenther@suse.de>
926
927         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
928         a series of conversions and apply foldings similar to what
929         fold-const does.
930         (tree_ssa_forward_propagate_single_use_vars): Call it.
931
932 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
933
934         PR tree-optimization/48611
935         PR tree-optimization/48794
936         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
937         referenced from RESX or EH_DISPATCH arguments.
938
939         PR debug/48928
940         * dfp.c (decimal_to_decnumber): Handle conversion from
941         dconst{1,2,m1,half}.
942
943 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
944
945         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
946         for !flag_prefer_avx128.
947         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
948
949 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
950
951         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
952         (fold_ternary_loc): Use expr_location_or.
953
954 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
955
956         PR debug/48853
957         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
958         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
959         Pmode and mem_mode is not VOIDmode.
960
961 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
962
963         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
964         TYPE_QUAL_RESTRICT): Convert to enum.
965
966 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
967
968         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
969         (const_pow2_1_to_8_operand): Ditto.
970         (const_pow2_1_to_128_operand): Ditto.
971         (const_pow2_1_to_32768_operand): Ditto.
972         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
973         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
974         in insn constraint to check integer value of operand 3.
975         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
976
977         (PINSR_MODE): New mode iterator.
978         (sse2p4_1): New mode attribute.
979         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
980         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
981         iterator.  Use const_int_operand instead of
982         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
983         exact_log2 in insn constraint to check integer value of operand 3.
984
985 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
986
987         * config/i386/sse.md (blendbits): Remove mode attribute.
988         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
989         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
990         Check integer value of operand 3 in insn constraint.
991
992 2011-05-09  Richard Guenther  <rguenther@suse.de>
993
994         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
995         for diagnostics.
996         (lto_symtab_merge): Likewise.  Do not register types here.
997         (lto_symtab_merge_decls_2): Likewise.
998         (lto_symtab_merge_decls_1): Likewise.
999         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1000         * gimple.c (enum gtc_mode): Declare.
1001         (gimple_types_compatible_p): Make static.
1002
1003 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1004
1005         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1006         temporary register to match Pmode.
1007
1008 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1009
1010         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1011         and *vec_concatv4si_1_avx.
1012
1013 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1014
1015         PR rtl-optimization/48927
1016         * ira-conflicts.c (commutative_constraint_p): Use
1017         recog_data.alternative_enabled_p to disable alternatives where
1018         "enabled" attribute is false.
1019         (get_dup_num): Ditto.
1020         * ira-lives.c (single_reg_class): Ditto.
1021         (ira_implicitly_set_insn_hard_regs): Ditto.
1022
1023 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1024
1025         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1026         (dataflow_set_preserve_mem_locs): Likewise.
1027
1028 2011-05-09  Philipp Thomas  <pth@suse.de>
1029
1030         * config/mep/mep.c (mep_validate_vliw): Syntax description
1031         should not be translated.
1032
1033 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1034
1035         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1036         * config/mips/mips-tables.opt: New file (generated).
1037         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1038         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1039         MIPS_ARCH_OPTION_NATIVE): Define.
1040         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1041         mips-cpus.def.
1042         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1043         mips_parse_cpu): Remove.
1044         (mips_cpu_info_from_opt, mips_default_arch): New.
1045         (mips_handle_option): Don't assert that global structures are in
1046         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1047         (mips_option_override): Use new variables and functions to set
1048         state of these options.  Use strcmp to check for individual CPU names.
1049         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1050         definition.
1051         * config/mips/mips.opt (march=): Use ToLower and Enum.
1052         (mips): Use ToLower, Enum and Var.
1053         (mtune=): Use ToLower and Enum.
1054         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1055
1056 2011-05-08  Jan Hubicka  <jh@suse.cz>
1057
1058         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1059         Arrange type pairs to be UID ordered.
1060         (gimple_lookup_type_leader): Make inline.
1061
1062 2011-05-09  Nick Clifton  <nickc@redhat.com>
1063
1064         PR target/48899
1065         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1066         PROCESSOR_DEFAULT.
1067
1068         PR target/48897
1069         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1070         variable 's'.
1071
1072 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1073
1074         * combine.c (simplify_comparison): Abstract out parts into...
1075         (simplify_compare_const): ... new function.
1076         (try_combine): Generalize parallel arithmetic/compare combining
1077         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1078
1079 2011-05-08  Jan Hubicka  <jh@suse.cz>
1080
1081         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1082         (cgraph_create_virtual_clone): Call hooks once virtual clone
1083         is finished.
1084         * cgraph.h (cgraph_clone_node): Update prototype.
1085         * ipa-cp.c (ipcp_estimate_growth): Use
1086         estimate_ipcp_clone_size_and_time.
1087         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1088         * lto-cgraph.c (input_node): Update.
1089         * ipa-inline.c (recursive_inlining): Update.
1090         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1091         (evaluate_conditions_for_known_args): Break out from ...
1092         (evaluate_conditions_for_edge): ... here.
1093         (evaluate_conditions_for_ipcp_clone): New function.
1094         (inline_node_duplication_hook): Update clone summary based
1095         on parameter map.
1096         (estimate_callee_size_and_time): Rename to ...
1097         (estimate_node_size_and_time): take NODE instead of EDGE;
1098         take POSSIBLE_TRUTHS as argument.
1099         (estimate_callee_size_and_time): Update.
1100         (estimate_ipcp_clone_size_and_time): New function.
1101         (do_estimate_edge_time): Update.
1102
1103 2011-05-08  Richard Guenther  <rguenther@suse.de>
1104
1105         PR middle-end/48908
1106         PR middle-end/48905
1107         * expmed.c (expand_shift_1): Compute adjusted constant shift
1108         amount manually.
1109
1110 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1111
1112         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1113
1114 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1115
1116         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1117
1118 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1119
1120         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1121
1122 2011-05-07  Jan Hubicka  <jh@suse.cz>
1123
1124         * ipa-inline-transform.c (inline_call): Account when program size
1125         decreases.
1126         * ipa-inline.c (relative_time_benefit): New function.
1127         (edge_badness): Reorganize to be power 2 based; fix thinko when
1128         computing badness for negative growth; update comments to match
1129         reality; better dumps.
1130
1131 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1132
1133         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1134         type to bool and adjust comment.
1135         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1136         (fold_mathfn_compare): Remove calls to global_bindings_p.
1137         (fold_inf_compare): Likewise.
1138         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1139         * c-tree.h (global_bindings_p): Adjust prototype.
1140         * c-decl.c (global_bindings_p): Return bool and simplify.
1141
1142 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1143
1144         PR tree-optimization/48837
1145         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1146         when accumulator transformation is performed.
1147
1148 2011-05-06  Jan Hubicka  <jh@suse.cz>
1149
1150         * i386.h (ix86_tune_indices): Add
1151         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1152         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1153         * i386.c (initial_ix86_tune_features): Add
1154         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1155         (software_prefetching_beneficial_p): Remove predicate.
1156         (ix86_option_override_internal): Use new macro.
1157
1158 2011-05-06  Jan Hubicka  <jh@suse.cz>
1159
1160         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1161
1162 2011-05-06  Jan Hubicka  <jh@suse.cz>
1163
1164         * cgraph.c (cgraph_add_thunk): Create real function node instead
1165         of alias node; finalize it and mark needed/reachale; arrange visibility
1166         to be right and add it into the corresponding same comdat group list.
1167         (dump_cgraph_node): Dump thunks.
1168         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1169         cgraph_function_with_gimple_body_p,
1170         cgraph_first_function_with_gimple_body,
1171         cgraph_next_function_with_gimple_body): New functions.
1172         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1173         New macros.
1174         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1175         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1176         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1177         devirtualization when optimizing.
1178         (verify_cgraph_node): Verify thunks.
1179         (cgraph_analyze_function): Analyze thunks.
1180         (cgraph_mark_functions_to_output): Output thunks only in combination
1181         with function they are assigned to.
1182         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1183         alias into normal node.
1184         (assemble_thunks): New functoin.
1185         (cgraph_expand_function): Use it.
1186         * lto-cgraph.c (lto_output_node): Stream thunks.
1187         (input_overwrite_node): Stream in thunks.
1188         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1189         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1190         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1191         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1192         (inline_analyze_function): Do not care about thunk jump functions.
1193         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1194         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1195         cgraph_function_with_gimple_body_p.
1196         * passes.c (do_per_function_toporder): Use
1197         cgraph_function_with_gimple_body_p.
1198         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1199         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1200         (function_called_by_processed_nodes_p): Likewise.
1201
1202 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1203
1204         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1205         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1206         entries.
1207         (mabi=): Replace with separate entries for mabi=altivec,
1208         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1209         mabi=ieeelongdouble and mabi=ibmlongdouble.
1210         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1211         check for -mabi=spe without SPE ABI support here.
1212         (rs6000_handle_option): Replace OPT_mabi_ handling with
1213         OPT_mabi_altivec and OPT_mabi_spe handling.
1214
1215 2011-05-06  Cary Coutant  <ccoutant@google.com>
1216
1217         * dwarf2out.c (contains_subprogram_definition): New function.
1218         (should_move_die_to_comdat): Call it.
1219
1220 2011-05-06  Jeff Law  <law@redhat.com>
1221
1222         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1223         remove_ctrl_stmt_and_useless_edges.
1224         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1225         (fixup_template_block, thread_single_edge): Likewise.
1226         (mark_threaded_blocks): Use THREAD_TARGET.
1227
1228 2011-05-06  Alan Modra  <amodra@gmail.com>
1229
1230         PR target/48900
1231         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1232         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1233
1234 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1235
1236         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1237         constraint modifier to "r".
1238
1239 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1240
1241         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1242         fall through for OPT_mcmodel_.
1243
1244 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1245
1246         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1247         instruction sizes.
1248         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1249
1250 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1251
1252         PR target/47930
1253         * config/arm/arm.opt (marm): Document it.
1254         (mthumb): Reject negative variant.
1255
1256 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1257
1258         PR target/48898
1259         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1260         Fix typo in "ccvt" variable name.
1261
1262 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1263
1264         PR target/48895
1265         * config/vms/vms-ar.c (main): Remove cwd variable.
1266
1267 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1268
1269         PR debug/48902
1270         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1271
1272 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1273
1274         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1275         * gimplify.c (gimplify_switch_expr): Likewise.
1276         * omp-low.c (expand_omp_sections): Likewise.
1277         * tree-eh.c (lower_try_finally_switch): Likewise.
1278         (lower_eh_dispatch): Likewise.
1279         * tree.h (build_case_label): Declare.
1280         * tree.c (build_case_label): Define.
1281
1282 2011-05-05  Jason Merrill  <jason@redhat.com>
1283
1284         PR c++/40975
1285         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1286         (copy_statement_list): Don't recurse.
1287         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1288         STATEMENT_LIST.
1289
1290 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1291
1292         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1293         through from -mfpu= handling.
1294         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1295
1296 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1297
1298         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1299         POST_MODIFY.
1300
1301 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1302
1303         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1304         for 11.31.
1305         (hppa[12]*-*-hpux11*): Ditto.
1306         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1307         * config/ia64/hpux-unix2003.h: New.
1308         * config/pa/pa-hpux1131.opt: New.
1309         * config/pa/pa-hpux1131.h: New.
1310         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1311         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1312         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1313
1314 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1315
1316         PR debug/48853
1317         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1318         instead of mode as 3rd argument to recursive call.
1319         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1320         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1321         VOIDmode.
1322         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1323         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1324         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1325         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1326
1327 2011-05-05  Julian Brown  <julian@codesourcery.com>
1328
1329         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1330         parenthesis in D-register case.
1331
1332 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1333
1334         * opt-functions.awk (var_type_struct): Handle Enum options.
1335         * optc-gen.awk: Don't check range of variables of character type.
1336         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1337         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1338         rs6000_sdata_name, rs6000_explicit_options): Remove.
1339         (rs6000_option_override_internal): Check for -malign-power here.
1340         Use global_options_set instead of rs6000_explicit_options.
1341         (rs6000_parse_fpu_option): Remove.
1342         (rs6000_handle_option): Access variables via opts and opts_set
1343         pointers.  Use error_at and warning_at.  Add fall-through
1344         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1345         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1346         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1347         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1348         here.  Don't use rs6000_parse_fpu_option.
1349         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1350         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1351         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1352         (mrecip=): Use Var.
1353         (mspe): Use Var and Save.
1354         (mtraceback=): Use Enum and Var.
1355         (rs6000_traceback_type): New Enum and EnumValue entries.
1356         (mfloat-gprs=): Use Enum, Var and Save.
1357         (rs6000_float_gprs): New Enum and EnumValue entries.
1358         (mlong-double-): use Var and Save.
1359         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1360         (malign-): Use Enum and Var.
1361         (rs6000_alignment_flags): New Enum and EnumValue entries.
1362         (mfpu=): Use Enum.
1363         (fpu_type_t): New Enum and EnumValue entries.
1364         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1365         global_options_set instead of rs6000_explicit_options.
1366         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1367         global_options_set instead of rs6000_explicit_options.
1368         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1369         global_options_set instead of rs6000_explicit_options.
1370         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1371         global_options_set instead of rs6000_explicit_options.
1372         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1373         global_options_set instead of rs6000_explicit_options.
1374         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1375         global_options_set instead of rs6000_explicit_options.
1376         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1377         definition.
1378         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1379         global_options_set instead of rs6000_explicit_options.
1380         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1381         (rs6000_cmodel): New Enum and EnumValue entries.
1382         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1383         global_options_set instead of rs6000_explicit_options.
1384         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1385         (mtls-size=): Use Enum and Var.
1386         (rs6000_tls_size): New Enum and EnumValue entries.
1387
1388 2011-05-05  Michael Matz  <matz@suse.de>
1389
1390         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1391         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1392         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1393         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1394         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1395         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1396         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1397         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1398         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1399         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1400         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1401         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1402         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1403         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1404         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1405         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1406
1407 2011-05-05  Richard Guenther  <rguenther@suse.de>
1408
1409         * expmed.c (expand_variable_shift): Rename to ...
1410         (expand_shift_1): ... this.  Take an expanded shift amount.
1411         For rotates recurse directly not building trees for the shift amount.
1412         (expand_variable_shift): Wrap around expand_shift_1.
1413         (expand_shift): Adjust.
1414
1415 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1416
1417         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1418
1419 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1420
1421         * tree.h (get_pending_sizes): Remove prototype.
1422         (put_pending_size): Likewise.
1423         (put_pending_sizes): Likewise.
1424         * stor-layout.c (pending_sizes): Delete.
1425         (get_pending_sizes): Likewise.
1426         (put_pending_size): Likewise.
1427         (put_pending_sizes): Likewise.
1428         (variable_size): Do not call put_pending_size and tidy up.
1429         * function.h (struct function): Remove dont_save_pending_sizes_p.
1430         * lto-streamer-in.c (input_function): Do not stream it.
1431         * lto-streamer-out.c (output_function): Likewise.
1432         * tree-inline.c (initialize_cfun): Do not copy it.
1433         * c-decl.c (store_parm_decls): Do not set it.
1434         * omp-low.c (create_task_copyfn): Likewise.
1435         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1436
1437 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1438
1439         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1440         conditions.
1441         (*movdf_internal): Ditto.
1442         (*movdf_internal_nointeger): Ditto.
1443         (*movsf_internal): Ditto.
1444
1445 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1446
1447         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1448         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1449         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1450         (c_variable_size): Remove.
1451         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1452         call put_pending_sizes.
1453         (get_parm_info): Add parameter expr.  Use it to set
1454         arg_info->pending_sizes.
1455         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1456         get_pending_sizes.
1457         * c-parser.c (c_parser_parms_declarator): Update call to
1458         c_parser_parms_list_declarator.
1459         (c_parser_parms_list_declarator): Take parameter expr.  Update
1460         call to push_parm_decl.  Update recursive call.  Don't call
1461         get_pending_sizes.  Update calls to get_parm_info.
1462         (c_parser_objc_method_definition): Update calls to
1463         c_parser_objc_method_decl and objc_start_method_definition.
1464         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1465         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1466         grokparm.
1467         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1468         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1469         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1470
1471 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1472
1473         PR pch/45979
1474         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1475         __ARM_EABI__ hosts.
1476
1477 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1478
1479         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1480         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1481         (spu_output_mi_thunk): New function.
1482
1483 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1484
1485         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1486         targetm.asm_out.print_operand.
1487         * config/sol2.c: Include target.h.
1488
1489 2011-05-04  Jan Hubicka  <jh@suse.cz>
1490
1491         * ipa-inline.c (reset_edge_caches): New function.
1492         (update_caller_keys): Add check_inlinablity_for; do not
1493         reset edge caches; remove now unnecesary loop.
1494         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1495         (update_all_callee_keys): Likewise.
1496         (inline_small_functions): Sanity check cache; update code
1497         recomputing it.
1498
1499 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1500
1501         PR rtl-optimization/47612
1502         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1503         as the last insn of the sequence to be moved.
1504
1505 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1506
1507         PR fortran/48864
1508         * doc/invoke.texi (Ofast): Document that it
1509         enables Fortran's -fno-protect-parens.
1510
1511 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1512
1513         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1514
1515 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1516
1517         * stor-layout.c (variable_size): Do not issue errors.
1518
1519 2011-05-04  Richard Guenther  <rguenther@suse.de>
1520
1521         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1522         for array-ref indices.
1523         (tree_coverage_counter_addr): Likewise.
1524         (build_fn_info_type): Use size_int for index types.
1525         (build_gcov_info): Likewise.
1526
1527 2011-05-04  Richard Guenther  <rguenther@suse.de>
1528
1529         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1530         to build_int_cst.
1531         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1532         for constructor indices.
1533         (push_init_level): Likewise.
1534
1535 2011-05-04  Richard Guenther  <rguenther@suse.de>
1536
1537         * explow.c (promote_mode): Move variable declarations before code.
1538
1539 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1540
1541         * tree.h (build_function_type_array): Declare.
1542         (build_varargs_function_type_array): Declare.
1543         (build_function_type_vec, build_varargs_function_type_vec): Define.
1544         * tree.c (build_function_type_array_1): New function.
1545         (build_function_type_array): New function.
1546         (build_varargs_function_type_array): New function.
1547
1548 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1549
1550         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1551         before setting STMT_VINFO_TYPE.
1552
1553 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1554
1555         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1556         instead of spu_pass_by_reference.
1557
1558 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1559
1560         * calls.c (emit_library_call_value_1): Invoke
1561         promote_function_mode hook on libcall arguments.
1562         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1563         argument being NULL.
1564         * targhooks.c (default_promote_function_mode): Lisewise.
1565         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1566         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1567
1568         * doc/tm.texi: Document that TYPE argument might be NULL.
1569
1570 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1571
1572         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1573
1574 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1575
1576         From Bernd Schmidt
1577         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1578
1579 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1580
1581         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1582         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1583         Move ...
1584         * mips-tfile.c: ... here.
1585         Don't include coretypes.h, tm.h, filenames.h.
1586         (saber_stop): Remove definition and all calls.
1587         [__SABER__]: Remove.
1588         (__LINE__): Remove default.
1589         (Size_t, Ptrdiff_t): Remove definitions.
1590         Replace by size_t, ptrdiff_t.
1591         [!MIPS_DEBUGGING_INFO]: Remove.
1592         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1593         (progname): Add const.
1594         (STATIC): Remove.
1595         Replace all uses by static.
1596         (ALIGN_SYMTABLE_OFFSET): Remove default.
1597         * mips-tdump.c: Don't include coretypes.h, tm.h.
1598         Remove !MIPS_IS_STAB guard.
1599         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1600         $(TM_H), filenames.h dependencies.
1601         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1602
1603 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1604
1605         From Jie Zhang
1606         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1607         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1608
1609 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1610
1611         From Bernd Schmidt
1612         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1613         account and save/restore RETS.
1614         (PROFILE_BEFORE_PROLOGUE): Define.
1615         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1616         the push insn to use predecrement.
1617
1618 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1619
1620         From Jie Zhang
1621         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1622
1623 2011-05-04  Nick Clifton  <nickc@redhat.com>
1624
1625         * config/mn10300/mn10300.c: Include cfgloop.h.
1626         (DUMP): New macro.
1627         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1628         Lcc or a FLcc insn into the instruction stream.
1629         (mn10300_block_contains_call): New function.  Returns true if the
1630         given basic block contains a CALL insn.
1631         (mn10300_loop_contains_call_insn): New function.  Returns true if
1632         the given loop contains a CALL insn.
1633         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1634         to use the SETLB and Lcc or FLcc insns.
1635         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1636         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1637         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1638         disable the SETLB optimization.
1639         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1640         __SETLB__ or __NO_SETLB__.
1641         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1642         (movsf_internal): Handle MDR register.
1643         (cmpsi): Make visible.
1644         (setlb): New pattern.
1645         (Lcc): New pattern.
1646         (FLcc): New pattern.
1647
1648 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1649
1650         PR target/48860
1651         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1652         for reg<->xmm moves.
1653         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1654         (vec_concatv2di_rex64_sse): Ditto.
1655         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1656         (*vec_extractv2di_1_rex64): Ditto.
1657
1658         Revert:
1659         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1660
1661         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1662         reg<->xmm moves.
1663         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1664
1665 2011-05-04  Richard Guenther  <rguenther@suse.de>
1666
1667         * tree.h (int_const_binop): Remove notrunc argument.
1668         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1669         create integer constants that are properly truncated.
1670         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1671         (const_binop): Remove zero notrunc argument to int_const_binop.
1672         (size_binop_loc): Likewise.
1673         (fold_div_compare): Likewise.
1674         (maybe_canonicalize_comparison_1): Likewise.
1675         (fold_comparison): Likewise.
1676         (fold_binary_loc): Likewise.
1677         (multiple_of_p): Likewise.
1678         * expr.c (store_constructor): Likewise.
1679         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1680         (maybe_fold_stmt_addition): Likewise.
1681         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1682         * stor-layout.c (layout_type): Likewise.
1683         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1684         * tree-sra.c (build_ref_for_offset): Likewise.
1685         (build_user_friendly_ref_for_offset): Likewise.
1686         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1687         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1688         * tree-ssa-loop-niter.c (inverse): Likewise.
1689         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1690         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1691         * tree-switch-conversion.c (check_range): Likewise.
1692         (build_constructors): Likewise.
1693         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1694         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1695         (extract_range_from_assert): Likewise.
1696         (vrp_int_const_binop): Likewise.
1697         (extract_range_from_binary_expr): Likewise.
1698         (extract_range_from_unary_expr): Likewise.
1699         (check_array_ref): Likewise.
1700         (find_case_label_range): Likewise.
1701         (simplify_div_or_mod_using_ranges): Likewise.
1702         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1703         comparing case labels for merging.
1704
1705 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1706
1707         * dwarf2out.c (debug_str_hash_forced): Removed.
1708         (gen_label_for_indirect_string): Removed.
1709         (get_debug_string_label): Removed.
1710         (AT_string_form): Generate label directly.
1711         (output_indirect_string): Test indirect_string_node for
1712         DW_FORM_strp instead of checking label and refcount.
1713         (prune_indirect_string): Removed.
1714         (prune_unused_types): Don't check debug_str_hash_forced or
1715         call prune_indirect_string.
1716
1717 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1718
1719         PR other/48093
1720         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1721
1722 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1723
1724         PR debug/47994
1725         PR debug/47919
1726         * combine.c (try_combine): Skip debug insns at m_split tests.
1727
1728 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1729
1730         PR42288
1731         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1732         when info_section_emitted.
1733
1734 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1735
1736         * config/mips/mips-opts.h: New.
1737         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1738         to mips-opts.h.
1739         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1740         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1741         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1742         via opts pointer.
1743         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1744         mips-opts.h.
1745         (mips_abi, mips_code_readable): Don't declare.
1746         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1747         (mabi=): Use Enum and Var.
1748         (mips_abi): New Enum and EnumValue entries.
1749         (mcode-readable=): Use Enum and Var.
1750         (mips_code_readable_setting): New Enum and EnumValue entries.
1751         (mr10k-cache-barrier=): Use Enum and Var.
1752         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1753
1754 2011-05-03  Jan Hubicka  <jh@suse.cz>
1755
1756         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1757         replace hash by pointer map.
1758         (cgraph_node_set_element_def, cgraph_node_set_element,
1759         const_cgraph_node_set_element, varpool_node_set_element_def,
1760         varpool_node_set_element, const_varpool_node_set_element): Remove.
1761         (free_cgraph_node_set, free_varpool_node_set): New function.
1762         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1763         * tree-emutls.c: Free varpool node set.
1764         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1765         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1766         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1767         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1768         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1769         Move here from ipa.c; implement using pointer_map
1770         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1771         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1772         debug_cgraph_node_set, varpool_node_set_new,
1773         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1774         dump_varpool_node_set, debug_varpool_node_set):
1775         Move to ipa-uitls.c.
1776         * passes.c (ipa_write_summaries): Update.
1777
1778 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1779
1780         From Mike Frysinger:
1781         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1782         bf542/bf544/bf547/bf548/bf549.
1783
1784 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1785
1786         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1787
1788 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1789
1790         From Bernd Schmidt:
1791         * config/bfin/bfin.md (MOVCC): New mode_macro.
1792         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1793         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1794         comments from generated assembly.
1795
1796 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1797
1798         From Bernd Schmidt
1799         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1800         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1801         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1802         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1803         * config/bfin/lib1funcs.asm (___muldi3): New function.
1804
1805 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1806
1807         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1808         build_function_type_list instead of build_function_type.
1809         Rearrange initialization of `args' to do so.
1810
1811 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1812
1813         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1814         instead of build_function_type.
1815
1816 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1817
1818         * config/rs6000/rs6000.c (spe_init_builtins): Call
1819         build_function_type_list instead of build_function_type.
1820         (paired_init_builtins, altivec_init_builtins): Likewise.
1821         (builtin_function_type): Likewise.
1822
1823 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1824
1825         * config/sh/sh.c (sh_media_init_builtins): Call
1826         build_function_type_list instead of build_function_type.
1827
1828 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1829
1830         * config/sparc/sparc.c (sparc_file_end): Call
1831         build_function_type_list instead of build_function_type.
1832
1833 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1834
1835         * config/alpha/alpha.c (alpha_init_builtins): Call
1836         build_function_type_list instead of build_function_type.
1837
1838 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1839
1840         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1841         build_function_type_list instead of build_function_type.
1842
1843 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1844
1845         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1846         build_function_type_list instead of build_function_type.
1847         Delete `endlink' variable.
1848
1849 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1850
1851         * config/avr/avr.c (avr_init_builtins): Call
1852         build_function_type_list instead of build_function_type.
1853
1854 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1855
1856         * config/picochip/picochip.c (picochip_init_builtins): Call
1857         build_function_type_list instead of build_function_type.
1858         Delete `endlink' variable.
1859
1860 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1861
1862         * config/bfin/bfin.c (bfin_init_builtins): Call
1863         build_function_type_list instead of build_function_type.
1864
1865 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1866
1867         From Bernd Schmidt
1868         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1869         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1870
1871 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1872
1873         From Jie Zhang:
1874         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1875         libbffastfp overrides libgcc when -mfast-fp.
1876
1877 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1878
1879         Originally from Bernd Schmidt
1880         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1881         * config/bfin/bfin.c (override_options): Test it and error if
1882         TARGET_FDPIC.
1883
1884 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1885
1886         Originally From Bernd Schmidt
1887         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1888         FD-PIC.
1889
1890 2011-05-03  Jeff Law  <law@redhat.com>
1891
1892         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1893         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1894         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1895         than accessing AUX field directly.  Free the AUX field before
1896         clearing it.
1897         (thread_block, thread_through_loop_header): Likewise.
1898         (thread_single_edge, mark_threaded_blocks): Likewise.
1899         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1900         (register_jump_thread): Do not attempt to thread to a NULL edge.
1901
1902 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1903
1904         * function.c (init_function_start): Call decide_function_section.
1905         * varasm.c (decide_function_section): New function.
1906         (assemble_start_function): When not using
1907         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1908         or first_function_block_is_cold.
1909         * rtl.h (decide_function_section): Declare.
1910
1911 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1912             Jakub Jelinek  <jakub@redhat.com>
1913
1914         PR target/48774
1915         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1916         only succeed if req_mode is the same as set_mode.
1917
1918 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1919
1920         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1921         * genemit.c (gen_exp): Handle RETURN.
1922         * emit-rtl.c (verify_rtx_sharing): Likewise.
1923         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1924         * rtl.c (copy_rtx): RETURN is shared.
1925         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1926         (ret_rtx): New.
1927         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1928         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1929         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1930         * config/cris/cris.c (cris_expand_return): Likewise.
1931         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1932         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1933         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1934         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1935         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1936         Likewise.
1937         * config/v850/v850.c (expand_epilogue): Likewise.
1938         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1939         * config/arm/arm.md (epilogue): Likewise.
1940         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1941         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1942         variable to ret_reg.
1943
1944 2011-05-03  Richard Guenther  <rguenther@suse.de>
1945
1946         PR lto/48846
1947         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1948         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1949         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1950
1951 2011-05-03  Richard Guenther  <rguenther@suse.de>
1952
1953         * c-decl.c (grokdeclarator): Instead of looking at
1954         TREE_OVERFLOW check if the constant fits in the index type.
1955
1956 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1957
1958         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1959         (vec_store_lanes<mode><mode>): Likewise.
1960
1961 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1962
1963         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1964         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1965         convert_optab_index values.
1966         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1967         * genopinit.c (optabs): Initialize the new optabs.
1968         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1969         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1970         (expand_STORE_LANES): New functions.
1971         * tree.h (build_array_type_nelts): Declare.
1972         * tree.c (build_array_type_nelts): New function.
1973         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1974         (vect_model_load_cost): Likewise.
1975         (vect_store_lanes_supported, vect_load_lanes_supported)
1976         (vect_record_strided_load_vectors): Declare.
1977         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1978         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1979         (vect_transform_strided_load): Split out statement recording into...
1980         (vect_record_strided_load_vectors): ...this new function.
1981         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1982         (write_vector_array, create_array_ref): New functions.
1983         (vect_model_store_cost): Add store_lanes_p argument.
1984         (vect_model_load_cost): Add load_lanes_p argument.
1985         (vectorizable_store): Try to use store-lanes functions for
1986         interleaved stores.
1987         (vectorizable_load): Likewise load-lanes and loads.
1988         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1989         to vect_model_store_cost.
1990         (vect_build_slp_tree): Likewise vect_model_load_cost.
1991
1992 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1993
1994         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1995         * hooks.c (hook_bool_mode_uhwi_false): New function.
1996         * target.def (array_mode_supported_p): New hook.
1997         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1998         * doc/tm.texi: Regenerate.
1999         * stor-layout.c (mode_for_array): New function.
2000         (layout_type): Use it.
2001         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2002         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2003
2004 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2005
2006         PR target/48723
2007         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2008         for -fstack-check if the size to allocate is negative.
2009
2010 2011-05-02  Lawrence Crowl  <crowl@google.com>
2011
2012         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2013         (timevar_cond_start): New for starting a timer only when it is not
2014         already running.
2015         (timevar_cond_stop): New for stopping a timer when it was not already
2016         running.
2017
2018         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2019         (timevar_cond_start): New as above.
2020         (timevar_cond_stop): New as above.
2021
2022         * timevar.def: Add start/stop timers for compiler phases,
2023         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2024         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2025         and TV_PHASE_FINALIZE.
2026         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2027         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2028         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2029         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2030         Make unused TV_OVERLOAD into a start/stop timer.
2031
2032         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2033         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2034         to indicate that they are start/stop timers.
2035
2036         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2037         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2038         Move initialization to do_compile.
2039         (do_compile): Add initialization from above.
2040         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2041
2042         * c-decl.c (c_write_global_declarations): Add start/stop of
2043         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2044
2045         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2046         or TV_PARSE_INLINE, as appropriate.
2047         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2048         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2049
2050 2011-05-02  Jason Merrill  <jason@redhat.com>
2051
2052         PR c++/40975
2053         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2054
2055 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2056
2057         PR c/35445
2058         * c-decl.c (finish_decl): Only create a composite if the types are
2059         compatible.
2060
2061 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2062
2063         * config/fr30/fr30-protos.h (Mmode): Don't define.
2064         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2065         definition where used.
2066         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2067         define.  Expand definitions where used.
2068         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2069         Expand definitions where used.
2070         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2071         rx_function_arg, rx_function_arg_advance,
2072         rx_function_arg_boundary): Expand definitions of those macros.
2073         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2074         definition where used.
2075
2076 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2077
2078         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2079         reg<->xmm moves.
2080         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2081         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2082         with *movv2sf_internal_rex64_avx.
2083         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2084         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2085         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2086         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2087         "vex" in "prefix" attribute calculation.
2088         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2089
2090 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2091
2092         PR target/47951
2093         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2094         inputs match the output.
2095
2096 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2097
2098         PR target/47955
2099         * config/m68k/m68k.c (m68k_expand_prologue): Set
2100         current_function_static_stack_size.
2101
2102 2011-05-02   Jan Hubicka  <jh@suse.cz>
2103
2104         * lto-streamer.c (lto_streamer_cache_insert_1,
2105         lto_streamer_cache_lookup, lto_streamer_cache_create,
2106         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2107         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2108
2109 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2110
2111         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2112         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2113         config/m68k/t-opts: New files.
2114         * config/m68k/m68k-tables.opt: New file (generated).
2115         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2116         extra_options and m68k/t-opts to tmake_file.
2117         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2118         (all_isas): Initialize using m68k-isas.def.
2119         (all_microarchs): Initialize using m68k-microarchs.def.
2120         (m68k_find_selection): Remove.
2121         (m68k_handle_option): Don't assert that global structures are in
2122         use.  Use error_at.  Access variables via opts pointer.  Don't
2123         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2124         directly for -m68020-40 and -m68020-60.
2125         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2126         m68k_tune_entry here.
2127         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2128         to m68k-opts.h.
2129         (m68k_library_id_string): Remove declaration.
2130         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2131         (m68k_library_id_string): New Variable.
2132         (march=, mcpu=, mtune=): Use Enum and Var.
2133
2134 2011-05-02  Richard Guenther  <rguenther@suse.de>
2135
2136         * varasm.c (output_constructor_regular_field): Compute zero-based
2137         index with double-ints.  Make sure to ICE instead of producing
2138         wrong code.
2139         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2140         in asserts.  Properly use a signed type.
2141
2142 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2143
2144         * config/i386/sse.md (V): New mode iterator.
2145         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2146         TARGET_SSE2.
2147         (V_256): Rename from AVX256MODE.
2148         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2149         condition to all users.
2150         (VF1): Ditto.
2151         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2152         condition to all users.
2153         (VF_128): Make V4SF mode unconditional.
2154         (VF_256): Rename from AVX256MODEF2P.
2155         (VI4F_128): Rename from SSEMODE4S.
2156         (VI8F_128): Rename from SSEMODE2D.
2157         (VI4F_256): Rename from AVX256MODE8P.
2158         (VI8F_256): Rename from AVX256MODE4P.
2159         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2160         (ssescalarmodesuffix): Remove SF and DF modes.
2161         (SSEMODE124): Remove.
2162         (SSEMODE1248): Ditto.
2163         (SSEMODEF2P): Ditto.
2164         (AVXMODEF2P): Ditto.
2165         (AVXMODEFDP): Ditto.
2166         (AVXMODEFSP): Ditto.
2167         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2168         unconditional.
2169         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2170         unconditional.
2171         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2172         xop_pcmov_<mode>256.  Use V mode iterator.
2173
2174         Adjust RTX patterns globally for renamed mode attributes.
2175
2176 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2177
2178         * haifa-sched.c (sched_emit_insn): Emit insn before first
2179         non-scheduled insn.  Inform back-end about new insn.  Add
2180         new insn to scheduled_insns list.
2181
2182 2011-05-02  Richard Guenther  <rguenther@suse.de>
2183
2184         PR tree-optimization/48822
2185         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2186         (process_scc): Indicate which iteration we start.
2187
2188 2011-05-02  Jan Hubicka  <jh@suse.cz>
2189
2190         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2191         (lto_section_overrun): New.
2192         * lto-section-out.c (append_block): Rename to ...
2193         (lto_append_block): ... this one; export.
2194         (lto_output_1_stream): Move lto lto-streamer.h
2195         (lto_output_data_stream): Update.
2196         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2197         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2198         functions.
2199
2200 2011-05-02  Richard Guenther  <rguenther@suse.de>
2201
2202         * tree.c (tree_code_counts): New global array.
2203         (record_node_allocation_statistics): Count individual tree codes.
2204         (dump_tree_statistics): Dump individual code stats.
2205
2206 2011-05-01  Jan Hubicka  <jh@suse.cz>
2207
2208         * ipa-inline.c (caller_growth_limits): Fix thinko when
2209         looking for largest stack frame.
2210         * ipa-inline.h (dump_inline_summary): Declare.
2211         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2212         on stack usage.
2213         (dump_inline_summary): Export.
2214         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2215
2216 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2217
2218         * reginfo.c (memory_move_cost): Change rclass argument type form
2219         'enum reg_class' to reg_class_t.
2220         * reload.h (memory_move_cost): Update prototype.
2221         * postreload.c reload_cse_simplify_set): Change type dclass var to
2222         reg_class_t.
2223         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2224         Update prototype.
2225         (ira_allocate_and_set_costs): Change aclass argument type form
2226         'enum reg_class' to reg_class_t.
2227         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2228         Change aclass argument type to reg_class_t.
2229         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2230         to reg_class_t.
2231         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2232         memory_move_cost call.
2233
2234         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2235         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2236         Change type tmp var to reg_class_t.
2237
2238 2011-04-30  Jan Hubicka  <jh@suse.cz>
2239
2240         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2241         inlining into function with flatten attribute.
2242         (want_inline_small_function_p): Be more realistic about inlining
2243         cold calls where callee size grows.
2244
2245 2011-04-30  Jan Hubicka  <jh@suse.cz>
2246
2247         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2248         flags.
2249
2250 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2251
2252         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2253         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2254         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2255         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2256         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2257         (print_operand): Rename to...
2258         (sparc_print_operand): ...this. Make static. Adjust
2259         sparc_print_operand function call.
2260         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2261         functions.
2262
2263 2011-04-30  Jan Hubicka  <jh@suse.cz>
2264
2265         PR middle-end/48752
2266         * ipa-inline.c (early_inliner): Disable when doing late
2267         addition of function.
2268
2269 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2270
2271         * dwarf2out.c (get_address_mode): New inline.
2272         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2273         if not dwarf_strict emit
2274         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2275         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2276         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2277         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2278         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2279         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2280         mem_loc_descriptor callers.
2281         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2282         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2283         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2284         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2285         (base_types): New variable.
2286         (get_base_type_offset, calc_base_type_die_sizes,
2287         base_type_for_mode, mark_base_types, base_type_cmp,
2288         move_marked_base_types): New functions.
2289         (calc_die_sizes): Assert that die_offset is 0 or equal to
2290         next_die_offset.
2291         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2292         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2293         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2294         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2295         (gen_subprogram_die): Don't give up on call site parameters
2296         with non-integral or large integral modes.  Adjust
2297         mem_loc_descriptor callers.
2298         (prune_unused_types): Call prune_unused_types_mark on base_types
2299         vector entries.
2300         (resolve_addr): Call mark_base_types.
2301         (dwarf2out_finish): Call move_marked_base_types.
2302
2303         PR tree-optimization/48809
2304         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2305         type.
2306         (gen_inbound_check): Don't compute index_expr - range_min in utype
2307         again, instead reuse SSA_NAME initialized in build_arrays.
2308         Remove two useless gsi_for_stmt calls.
2309
2310 2011-04-29  Jeff Law  <law@redhat.com>
2311
2312         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2313
2314 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2315
2316         * cgraph.h (cgraph_postorder): Remove declaration.
2317         * ipa-utils.h (ipa_free_postorder_info): Declare.
2318         (ipa_reverse_postorder): Likewise.
2319         * cgraphunit.c: Include ipa-utils.h.
2320         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2321         * ipa-inline.c: Include ipa-utils.h.
2322         (ipa_inline): Update call to ipa_reverse_postorder.
2323         * ipa-pure-const.c (propagate_pure_const): Update call to
2324         ipa_reduced_postorder and ipa_print_order.  Call
2325         ipa_free_postorder_info to clean up.
2326         (propagate_nothrow): Likewise.
2327         * ipa-reference.c (propagate): Removed a useless call to
2328         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2329         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2330         * ipa.c: Include ipa-utils.h.
2331         (ipa_profile): Update call to ipa_reverse_postorder.
2332         (cgraph_postorder): Moved to...
2333         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2334         (ipa_utils_print_order): Renamed to ipa_print_order.
2335         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2336         comments.
2337         (ipa_free_postorder_info): New function.
2338         * passes.c: Include ipa-utils.h.
2339         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2340         (ipa_write_summaries): Likewise.
2341         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2342         (cgraphunit.o): Likewise.
2343         (ipa.o): Likewise.
2344         (ipa-inline.o): Likewise.
2345
2346 2011-04-29  Jan Hubicka  <jh@suse.cz>
2347
2348         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2349         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2350         * ipa-inline.h (clause_t): Turn into unsigned int.
2351         * ipa-inline-analysis.c (add_clause): Do more simplification.
2352         (and_predicates): Shortcut more cases.
2353         (predicates_equal_p): Move forward; check that clauses are properly
2354         ordered.
2355         (or_predicates): Shortcut more cases.
2356         (edge_execution_predicate): Rewrite as...
2357         (set_cond_stmt_execution_predicate): ... this function; handle
2358         __builtin_constant_p.
2359         (set_switch_stmt_execution_predicate): New .
2360         (compute_bb_predicates): New.
2361         (will_be_nonconstant_predicate): Update TODO.
2362         (estimate_function_body_sizes): Use compute_bb_predicates
2363         and free them later, always try to estimate if stmt is constant.
2364         (estimate_time_after_inlining, estimate_size_after_inlining):
2365         Gracefully handle optimized out edges.
2366         (read_predicate): Fix off by one error.
2367
2368 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2369
2370         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2371
2372 2011-04-27  Xinliang David Li  <davidxl@google.com>
2373
2374         * tree-profile.c (init_ic_make_global_vars): Set
2375         tls attribute on ic vars.
2376         * coverage.c (coverage_end_function): Initialize
2377         function_list with zero.
2378
2379 2011-04-29  Richard Guenther  <rguenther@suse.de>
2380
2381         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2382         for the type of the result.
2383         (fold_builtin_isascii): Likewise.
2384         (fold_builtin_toascii): Use integer_type_node where appropriate.
2385         (fold_builtin_logb): Likewise.
2386         (fold_builtin_frexp): Likewise.
2387         (fold_builtin_strstr): Likewise.
2388         (fold_builtin_strpbrk): Likewise.
2389         (fold_builtin_fputs): Likewise.
2390         (fold_builtin_sprintf): Likewise.
2391         (fold_builtin_snprintf): Likewise.
2392         (fold_builtin_printf): Likewise.
2393         (do_mpfr_remquo): Use a proper type for the assigned constant.
2394         (do_mpfr_lgamma_r): Likewise.
2395         * dwarf2out.c (resolve_one_addr): Use size_int.
2396         * except.c (init_eh): Likewise.
2397         (assign_filter_values): Use integer_type_node for filter values.
2398         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2399         indices.
2400         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2401         for EH region numbers.
2402         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2403         for the shift amount.
2404
2405 2011-04-29  Richard Guenther  <rguenther@suse.de>
2406
2407         * expr.h (expand_shift): Rename to ...
2408         (expand_variable_shift): ... this.
2409         (expand_shift): Take a constant shift amount.
2410         * expmed.c (expand_shift): Rename to ...
2411         (expand_variable_shift): ... this.
2412         (expand_shift): New wrapper around expand_variable_shift.
2413         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2414         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2415         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2416         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2417         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2418         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2419         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2420         emit_store_flag_1, emit_store_flag): Likewise.
2421         * builtins.c (expand_builtin_signbit): Likewise.
2422         * calls.c (load_register_parameters): Likewise.
2423         * function.c (assign_parm_setup_block): Likewise.
2424         * lower-subreg.c (resolve_shift_zext): Likewise.
2425         * optabs.c (widen_bswap, expand_abs_nojump,
2426         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2427         * spu/spu.c (spu_expand_extv): Likewise.
2428         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2429
2430 2011-04-29  Richard Guenther  <rguenther@suse.de>
2431
2432         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2433         for the remapped region number.
2434         * predict.c (build_predict_expr): Use integer_type_node for the
2435         predict kind.
2436         * fold-const.c (fold_binary_loc): Use integer_type_node for
2437         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2438
2439 2011-04-29  Michael Matz  <matz@suse.de>
2440
2441         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2442         other trees that just builtins.
2443         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2444
2445 2011-04-29  Richard Guenther  <rguenther@suse.de>
2446
2447         * tree-nested.c (get_trampoline_type): Use size_int.
2448         (get_nl_goto_field): Likewise.
2449         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2450         for all indexes.
2451         (lower_eh_constructs_2): Likewise.
2452         (lower_resx): Likewise.
2453         (lower_eh_dispatch): Likewise.
2454         * tree-mudflap.c (mf_build_string): Use size_int.
2455         (mudflap_register_call): Use integer_type_node for the flag.
2456         (mudflap_enqueue_constant): Use size_int.
2457         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2458         instead of rebuilding it.
2459
2460 2011-04-29  Richard Guenther  <rguenther@suse.de>
2461
2462         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2463         Handle OBJ_TYPE_REF.
2464         (find_func_aliases_for_call): Use it more consistently.
2465
2466 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2467
2468         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2469         (rank_for_schedule): Use it.
2470         (schedule_block): Set it.
2471
2472 2011-04-28  David Li  <davidxl@google.com>
2473
2474         * tree.c (crc32_string): Use crc32_byte.
2475         (crc32_byte): New function.
2476         * tree.h (crc32_byte): New function.
2477         * gcov.c (read_graph_file): Handle new cfg_cksum.
2478         (read_count_file): Ditto.
2479         * profile.c (instrument_values): Ditto.
2480         (get_exec_counts): Ditto.
2481         (read_profile_edge_counts): Ditto.
2482         (compute_branch_probabilities): Ditto.
2483         (compute_value_histograms): Ditto.
2484         (branch_prob): Ditto.
2485         (end_branch_prob): Ditto.
2486         * coverage.c (read_counts_file): Ditto.
2487         (get_coverage_counts): Ditto.
2488         (tree_coverage_counter_addr): Ditto.
2489         (coverage_checksum_string): Ditto.
2490         (coverage_begin_output): Ditto.
2491         (coverage_end_function): Ditto.
2492         (build_fn_info_type): Ditto.
2493         (build_fn_info_value): Ditto.
2494         * libgcov.c (gcov_exit): Ditto.
2495         * gcov-dump.c (tag_function): Ditto.
2496         (compute_checksum): Remove.
2497
2498 2011-04-29  Alan Modra  <amodra@gmail.com>
2499
2500         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2501         unspec plus offset.  Tidy macho code.
2502
2503 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2504
2505         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2506         node instead of a decl.  Update all callers.
2507         * cgraph.h: Update declaration.
2508
2509 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2510
2511         PR tree-optimization/48765
2512         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2513         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2514         to indicate if loop aware SLP is being used.  Scan the statements
2515         and update the vectorization factor according to the type of
2516         vectorization before statement analysis.
2517         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2518         pass it to vect_analyze_loop_operations.
2519         (vectorizable_reduction): Set number of copies to 1 in case of pure
2520         SLP statement.
2521         * tree-vect-stmts.c (vectorizable_conversion,
2522         vectorizable_assignment, vectorizable_shift,
2523         vectorizable_operation, vectorizable_type_demotion,
2524         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2525         Likewise.
2526         (vectorizable_condition): Move the check that it is not SLP
2527         vectorization before the number of copies check.
2528         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2529         to vectorize the loop using SLP.
2530
2531 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2532
2533         PR middle-end/48597
2534         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2535         inline asm.
2536
2537 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2538
2539         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2540         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2541         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2542         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2543         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2544         linux*.h headers.
2545         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2546         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2547         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2548         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2549         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2550         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2551         REG_NAME.
2552         * config/i386/linux.h (REG_NAME): Don't define.
2553         * config/i386/linux64.h (REG_NAME): Don't define.
2554         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2555         Undefine before defining.
2556
2557 2011-04-28  Jan Hubicka  <jh@suse.cz>
2558
2559         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2560         nonconstant_names array.
2561         (estimate_function_body_sizes): Build nonconstant_names array; handle
2562         BUILT_IN_CONSTANT_P.
2563
2564 2011-04-28  Richard Guenther  <rguenther@suse.de>
2565
2566         PR bootstrap/48804
2567         Revert
2568         2011-04-28  Richard Guenther  <rguenther@suse.de>
2569
2570         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2571         as late as possible.
2572
2573 2011-04-28  Richard Guenther  <rguenther@suse.de>
2574
2575         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2576         (debug_constraint): Do it here.
2577         (dump_constraints): And here.
2578         (rewrite_constraints): And here.
2579         (dump_constraint_edge): Remove.
2580         (dump_constraint_graph): Rewrite to produce DOT output.
2581         (solve_constraints): Build succ graph as late as possible.
2582         Dump constraint graphs before and after solving.
2583
2584 2011-04-28  Richard Guenther  <rguenther@suse.de>
2585
2586         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2587         New function split out from ...
2588         (find_func_aliases): ... here.  Call it.
2589         (find_func_aliases_for_call): Likewise.
2590
2591 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2592
2593         * internal-fn.h (internal_fn_name_array): Declare.
2594         (internal_fn_flags_array): Likewise.
2595
2596 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2597
2598         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2599         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2600         Move from sse.md.
2601         (ssemodefsuffix): Remove.
2602         (ssevecmodesuffix): New mode attribute.
2603         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2604         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2605         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2606         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2607         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2608         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2609         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2610         ssemodesuffix mode attribute.
2611         (float splitters): Use ssevecmodesuffix mode attribute.
2612         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2613         (sseinsmode): Rename from avxvecmode.
2614         (avxsizesuffix): Rename from avxmodesuffix.
2615         (sseintvecmode): Rename from avxpermvecmode.
2616         (ssedoublevecmode): Rename from ssedoublesizemode.
2617         (ssehalfvecmode): Rename from avxhalfvecmode.
2618         (ssescalarmode): Rename from avxscalarmode.
2619         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2620         templates for ssemodesuffix mode attribute.
2621         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2622         mode attribute.
2623
2624         Adjust RTX patterns globally for renamed mode attributes.
2625
2626 2011-04-27  Jan Hubcika  <jh@suse.cz>
2627
2628         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2629         * ipa-inline-analysis.c: Include alloc-pool.h.
2630         (edge_predicate_pool): New.
2631         (trye_predicate_p): New function
2632         (false_predicate_p): New function.
2633         (add_clause): Sanity check that false clauses are "optimized";
2634         never add clauses to predicate that is already known to be false.
2635         (and_predicate): Use flase_predicate_p.
2636         (evaulate_predicate): Rename to ...
2637         (evaluate_predicate): ... this one; update all callers; assert
2638         that false is not listed among possible truths.
2639         (dump_predicate): Use true_predicate_p.
2640         (account_size_time): Use false_predicate_p.
2641         (evaulate_conditions_for_edge): Rename to ...
2642         (evaluate_conditions_for_edge) ... this one.
2643         (edge_set_predicate): New function.
2644         (inline_edge_duplication_hook): Duplicate edge predicates.
2645         (inline_edge_removal_hook): Free edge predicates.
2646         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2647         (dump_inline_summary): Update.
2648         (estimate_function_body_sizes): Set edge predicates.
2649         (estimate_calls_size_and_time): Handle predicates.
2650         (estimate_callee_size_and_time): Update.
2651         (remap_predicate): Add toplev_predicate; update comment.
2652         (remap_edge_predicates): New function.
2653         (inline_merge_summary): Compute toplev predicate; update.
2654         (read_predicate): New function.
2655         (read_inline_edge_summary): Use it.
2656         (inline_read_section): Likewise.
2657         (write_predicate): New function.
2658         (write_inline_edge_summary): Use it.
2659         (inline_write_summary): Likewise.
2660         (inline_free_summary): Free alloc pool and edge summary vec.
2661
2662 2011-04-27  Richard Guenther  <rguenther@suse.de>
2663
2664         * tree-ssa-structalias.c (changed_count): Remove.
2665         (changed): Use a bitmap.
2666         (unify_nodes): Adjust.
2667         (do_sd_constraint): Likewise.
2668         (do_ds_constraint): Likewise.
2669         (do_complex_constraint): Likewise.
2670         (solve_graph): Likewise.
2671
2672 2011-04-27  Jan Hubicka  <jh@suse.cz>
2673
2674         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2675
2676 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2677
2678         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2679         (avx_vperm2f128_*_operand): Ditto.
2680         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2681         Use avx_vpermilp_parallel in insn condition.
2682         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2683         Use avx_vperm2f128_parallel in insn condition.
2684
2685 2011-04-27  Richard Guenther  <rguenther@suse.de>
2686
2687         * Makefile.in (tree-ssa-structalias.o): Remove
2688         gt-tree-ssa-structalias.h dependency.
2689         (GTFILES): Remove tree-ssa-structalias.c.
2690         * tree.c (allocate_decl_uid): New function.
2691         (make_node_stat): Use it.
2692         (copy_node_stat): Likewise.
2693         * tree.h (allocate_decl_uid): Declare.
2694         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2695         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2696         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2697         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2698         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2699         (struct heapvar_map): Likewise.
2700         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2701         heapvar_insert): Likewise.
2702         (make_heapvar_for): Rename to ...
2703         (make_heapvar): ... this.  Simplify.
2704         (fake_var_decl_obstack): New global var.
2705         (build_fake_var_decl): New function.
2706         (make_constraint_from_heapvar): Adjust.
2707         (handle_lhs_call): Likewise.
2708         (create_function_info_for): Likewise.
2709         (intra_create_variable_infos): Likewise.
2710         (init_alias_vars): Allocate fake_var_decl_obstack.
2711         (init_alias_heapvars, delete_alias_heapvars): Remove.
2712         (compute_points_to_sets): Do not call init_alias_heapvars.
2713         (ipa_pta_execute): Likewise.
2714         (delete_points_to_sets): Free fake_var_decl_obstack.
2715
2716 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2717
2718         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2719         (si_from_UTItype, si_to_UTItype): New functions.
2720         (__udivmodti4): Use them to implement type-punning.
2721         * config/spu/multi3.c (union qword_TItype): New data type.
2722         (si_from_TItype, si_to_TItype): New functions.
2723         (__multi3): Use them to implement type-punning.
2724
2725 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2726
2727         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2728
2729 2011-04-27  Jan Hubicka  <jh@suse.cz>
2730
2731         * ipa-prop.c (function_insertion_hook_holder): New holder.
2732         (ipa_add_new_function): New function.
2733         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2734         Register/deregister holder.
2735
2736 2011-04-27  Richard Guenther  <rguenther@suse.de>
2737
2738         PR tree-optimization/48772
2739         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2740
2741 2011-04-27  Richard Guenther  <rguenther@suse.de>
2742
2743         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2744         TARGET_MEM_REF handling.
2745
2746 2011-04-27  Nick Clifton  <nickc@redhat.com>
2747
2748         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2749         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2750         (REG_CLASS_NAMES): Likewise.
2751         (REG_CLASS_CONTENTS): Likewise.
2752         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2753         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2754         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2755         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2756         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2757         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2758         duplicate register classes.
2759         (frv_class_likely_spilled_p): Likewise.
2760         (frv_register_move_cost): Likewise.
2761
2762         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2763         end of the regno_reg_class array.
2764
2765 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2766
2767         PR c/48742
2768         * c-typeck.c (build_binary_op): Don't wrap arguments if
2769         int_operands is true.
2770
2771 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2772
2773         PR target/48767
2774         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2775         targetm.calls.must_pass_in_stack for void type.
2776
2777 2011-04-26  Jan Hubicka  <jh@suse.cz>
2778
2779         * cgraphbuild.c (build_cgraph_edges): Update call
2780         of cgraph_create_edge and cgraph_create_indirect_edge.
2781         * cgraph.c (cgraph_create_edge_including_clones,
2782         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2783         cgraph_update_edges_for_call_stmt_node): Do not take nest
2784         argument; do not initialize call_stmt_size/time.
2785         (dump_cgraph_node): Do not dump nest.
2786         (cgraph_clone_edge): Do not take loop_nest argument;
2787         do not propagate it; do not clone call_stmt_size/time.
2788         (cgraph_clone_node): Likewise.
2789         (cgraph_create_virtual_clone): Update.
2790         * cgraph.h (struct cgraph_edge): Remove
2791         call_stmt_size/call_stmt_time/loop_nest.
2792         (cgraph_create_edge, cgraph_create_indirect_edge,
2793         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2794         prototype.
2795         * tree-emutls.c (gen_emutls_addr): Update.
2796         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2797         loop_nest; handle indirect calls, too.
2798         (clone_inlined_nodes): Do not care about updating inline summaries.
2799         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2800         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2801         stream call_stmt_size/call_stmt_time/loop_nest.
2802         * ipa-inline.c (edge_badness): Update.
2803         (ipa_inline): dump summaries after inlining.
2804         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2805         New.
2806         (inline_edge_summary): New function.
2807         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2808         (inline_edge_removal_hook): Handle edge summaries.
2809         (inline_edge_duplication_hook): New hook.
2810         (inline_summary_alloc): Alloc hooks.
2811         (initialize_growth_caches): Do not register removal hooks.
2812         (free_growth_caches); Do not free removal hook.
2813         (dump_inline_edge_summary): New function.
2814         (dump_inline_summary): Use it.
2815         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2816         (inline_update_callee_summaries): New function.
2817         (inline_merge_summary): Use it.
2818         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2819         (read_inline_edge_summary): New function.
2820         (inline_read_section): Use it.
2821         (write_inline_edge_summary): New function.
2822         (inline_write_summary): Use it.
2823         (inline_free_summary): Free edge new holders.
2824         * tree-inline.c (copy_bb): Update.
2825
2826 2011-04-26  Jason Merrill  <jason@redhat.com>
2827
2828         * tree-eh.c (lower_try_finally_switch): Create the label along with
2829         the CASE_LABEL_EXPR.
2830
2831 2011-04-26  David S. Miller  <davem@davemloft.net>
2832             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2833
2834         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2835         * configure: Regenerate.
2836
2837 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2838
2839         PR target/48258
2840         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2841         reduction.
2842         (VEC_reduc): New code iterator and splitters for vector reduction.
2843         (VEC_reduc_name): Ditto.
2844         (VEC_reduc_rtx): Ditto.
2845         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2846         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2847
2848         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2849         support for extracting SF on VSX.
2850
2851         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2852         generating xscvspdp.
2853         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2854         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2855         double add, minimum, maximum vector reduction.
2856         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2857         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2858         optimize double vector reduction.
2859         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2860
2861 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2862
2863         * config/fr30/fr30.h (inhibit_libc): Don't define.
2864         * config/m32r/m32r-protos.h: Correct comment.
2865         * config/v850/v850.h (GHS_default_section_names,
2866         GHS_current_section_names): Use tree, not union tree_node *.
2867
2868 2011-04-26  Xinliang David Li  <davidxl@google.com>
2869
2870         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2871         * c-family/c-opts.c (c_common_handle_option): Set
2872         warn_maybe_uninitialized.
2873         * opts.c (common_handle_option): Ditto.
2874         * common.opt:  New option.
2875         * tree-ssa.c (warn_uninit): Add one more parameter.
2876         (warn_uninitialized_var): Pass warning code.
2877         * tree-flow.h: Interface change.
2878
2879
2880 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2881
2882         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2883         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2884         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2885
2886 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2887
2888         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2889         * config/mips/mips.opt (mmips-tfile): Remove.
2890
2891         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2892         mips-tdump reference to ...
2893         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2894         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2895         reference by Tru64 UNIX.
2896
2897 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2898
2899         PR debug/48768
2900         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2901         is error_mark_node, set value to NULL.
2902
2903         PR tree-optimization/48734
2904         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2905         if return value from maybe_fold_*_comparsions isn't something
2906         the code is prepared to handle.
2907
2908 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2909
2910         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2911         mode check.
2912         (ext_QIreg_nomode_operands): Remove.
2913         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2914         (*andsi_1): Ditto.
2915         (*andhi_1): Ditto.
2916
2917 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2918
2919         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2920
2921 2011-04-26  Richard Guenther  <rguenther@suse.de>
2922
2923         * c-typeck.c (build_unary_op): Do not expand array-refs via
2924         pointer arithmetic.  Only adjust qualifiers for function types.
2925
2926 2011-04-26  Richard Guenther  <rguenther@suse.de>
2927
2928         PR middle-end/48694
2929         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2930         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2931         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2932         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2933
2934 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2935
2936         * doc/extend.texi: Document __underlying_type.
2937
2938 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2939
2940         * config/rs6000/titan.md (automata_option "progress"): Remove.
2941
2942 2011-04-25  Jeff Law  <law@redhat.com>
2943
2944         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2945
2946 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2947
2948         * system.h (ENUM_BITFIELD): Remove.
2949
2950 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2951             Eric Botcazou  <ebotcazou@adacore.com>
2952
2953         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2954         for STORE_FLAG_VALUE==-1 case.
2955
2956 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2957
2958         PR target/43804
2959         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2960         LEGITIMATE_PIC_OPERAND_P.
2961
2962 2011-04-24  Jan Hubicka  <jh@suse.cz>
2963
2964         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2965         WPA hack.
2966         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2967         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2968         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2969         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2970         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2971         Sanity check predicate length.
2972         (remap_predicate): Likewise; sanity check jump functions.
2973         (inline_read_section, inline_write_summary): Sanity check
2974         predicate length.
2975
2976 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2977
2978         PR other/48748
2979         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2980         __is_literal_type, and __is_trivial; update throughout about
2981         possibly cv-qualified void types.
2982
2983 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2984
2985         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2986         testsuite and make it version agnostic.
2987
2988 2011-04-22  Jan Hubicka  <jh@suse.cz>
2989
2990         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2991
2992 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2993
2994         PR c/48685
2995         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2996         to VOID_TYPE even around MODIFY_EXPR.
2997
2998 2011-04-22  Mike Stump  <mikestump@comcast.net>
2999
3000         * gensupport.c (read_md_rtx): Fix typo in comment.
3001         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3002         comment.
3003
3004 2011-04-22  Jan Hubicka  <jh@suse.cz>
3005
3006         * gengtype.c (open_base_files): Add ipa-inline.h include.
3007         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3008         ipa-prop.c; update all uses.
3009         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3010         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3011         merge summary of inlined function into former caller.
3012         * ipa-inline.c (max_benefit): Remove.
3013         (edge_badness): Compensate for removal of benefits.
3014         (update_caller_keys): Use
3015         reset_node_growth_cache/reset_edge_growth_cache.
3016         (update_callee_keys): Likewise.
3017         (update_all_callee_keys): Likewise.
3018         (inline_small_functions): Do not collect max_benefit; do not reset
3019         estimated_growth; call free_growth_caches and initialize_growth_caches.
3020         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3021         struct size_time_entry): New structures.
3022         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3023         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3024         and estimated_growth.
3025         (edge_growth_cache_entry): New structure.
3026         (node_growth_cache, edge_growth_cache): New global vars.
3027         (estimate_growth): Turn into inline.
3028         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3029         initialize_growth_caches, free_growth_caches): Declare.
3030         (estimate_edge_growth): Rewrite.
3031         (estimate_edge_time): Implement as inline cache lookup.
3032         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3033         functions.
3034         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3035         (NUM_CONDITIONS): New constant.
3036         (predicate_conditions): New enum.
3037         (IS_NOT_CONSTANT): New constant.
3038         (edge_removal_hook_holder): New var.
3039         (node_growth_cache, edge_growth_cache): New global vars.
3040         (true_predicate, single_cond_predicate, false_predicate,
3041         not_inlined_predicate, add_condition, add_clause, and_predicates,
3042         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3043         dump_clause, dump_predicate, account_size_time,
3044         evaulate_conditions_for_edge): New functions.
3045         (inline_summary_alloc): Move to heap.
3046         (inline_node_removal_hook): Clear condition and entry vectors.
3047         (inline_edge_removal_hook): New function.
3048         (initialize_growth_caches, free_growth_caches): New function.
3049         (dump_inline_summary): Update.
3050         (edge_execution_predicate): New function.
3051         (will_be_nonconstant_predicate): New function.
3052         (estimate_function_body_sizes): Compute BB and constantness predicates.
3053         (compute_inline_parameters): Do not clear estimated_growth.
3054         (estimate_edge_size_and_time): New function.
3055         (estimate_calls_size_and_time): New function.
3056         (estimate_callee_size_and_time): New function.
3057         (remap_predicate): New function.
3058         (inline_merge_summary): New function.
3059         (do_estimate_edge_time): New function based on...
3060         (estimate_edge_time): ... this one.
3061         (do_estimate_edge_growth): New function.
3062         (do_estimate_growth): New function based on....
3063         (estimate_growth): ... this one.
3064         (inline_analyze_function): Analyze after deciding on jump functions.
3065         (inline_read_section): New function.
3066         (inline_read_summary): Use it.
3067         (inline_write_summary): Write all the new data.
3068         * ipa-prop.c (ipa_get_param_decl_index): Export.
3069         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3070         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3071         Declare.
3072         (ipa_get_lattice): Move here from ipa-cp.c
3073         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3074         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3075         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3076         cgraph_edge_inlinable_p): Remove.
3077         * cgraphunit.c: Include ipainline.h
3078         (cgraph_process_new_functions): Update call of
3079         compute_inline_parameters.
3080
3081 2011-04-22  Richard Guenther  <rguenther@suse.de>
3082
3083         * tree.c (build_int_cst): Properly create canonicalized integer
3084         constants.
3085         (build_int_cst_type): Remove scary comments.
3086
3087 2011-04-22  Xinliang David Li  <davidxl@google.com>
3088
3089         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3090         by default when -Wno-error is not specified.
3091         * opts-global.c (decode_options): Remove call to
3092         control_warning_options.
3093
3094 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3095
3096         PR tree-optimization/48717
3097         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3098         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3099
3100 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3101
3102         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3103         definition where used.
3104
3105 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3106
3107         PR c/48716
3108         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3109         TREE_STATIC variables declared inside of some OpenMP construct.
3110
3111 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3112
3113         PR middle-end/48585
3114         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3115
3116 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3117
3118         PR c/36750
3119         * c-typeck.c (pop_init_level): Do not warn about initializing
3120         with ` = {0}'.
3121
3122 2011-04-22  Alan Modra  <amodra@gmail.com>
3123
3124         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3125         when returning call_cookie.
3126         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3127         pointers, to functions with no more vector args than the current
3128         function, and some non-local calls for ABI_V4.
3129         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3130         sibcall_nonlocal_aix64): Combine to ..
3131         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3132         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3133         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3134         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3135         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3136         operand.
3137         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3138         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3139         sibcall_value_symbolic_64): Delete.
3140
3141 2011-04-21  Xinliang David Li  <davidxl@google.com>
3142
3143         * cgraph.h: Remove pid.
3144         * cgraph.c: Remove pid.
3145         * value-prof.c (init_node_map): New function.
3146         (del_node_map): New function.
3147         (find_func_by_funcdef_no): New function.
3148         (gimple_ic_transform): Call new function.
3149         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3150         * function.c (get_last_funcdef_no): New function.
3151         * function.h (get_last_funcdef_no): New function.
3152         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3153         to libgcov function.
3154         (tree-profiling): Call node map init and delete function.
3155
3156 2011-04-21  Ian Lance Taylor  <iant@google.com>
3157
3158         * godump.c (go_format_type): Use exported Go name for anonymous
3159         field name.
3160
3161 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3162
3163         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3164         Call builtin_function_type_list instead of builtin_function_type.
3165         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3166
3167 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3168
3169         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3170         build_function_type_list instead of build_function_type.
3171         Delete variable `endlink'.
3172
3173 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3174
3175         * config/s390/s390.c (s390_init_builtins): Call
3176         build_function_type_list instead of build_function_type.
3177
3178 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3179
3180         * config/ia64/ia64.c (ia64_init_builtins): Call
3181         build_function_type_list instead of builtin_function_type.
3182
3183 2011-04-21  Easwaran Raman  <eraman@google.com>
3184
3185         * cfgexpand.c (stack_var): Remove OFFSET...
3186         (add_stack_var): ...and its reference here...
3187         (expand_stack_vars): ...and here.
3188         (stack_var_cmp): Sort by descending order of size.
3189         (partition_stack_vars): Change heuristic.
3190         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3191         (dump_stack_var_partition): Add newline after each partition.
3192
3193 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3194             Jeff Law  <law@redhat.com>
3195
3196         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3197         * gengtype.c (matching_file_name_substitute): Likewise.
3198
3199 2011-04-21  Richard Guenther  <rguenther@suse.de>
3200
3201         PR lto/48703
3202         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3203
3204 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3205
3206         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3207
3208 2011-04-21  Richard Guenther  <rguenther@suse.de>
3209
3210         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3211         file name.
3212
3213 2011-04-21  Richard Guenther  <rguenther@suse.de>
3214
3215         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3216         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3217         Use DECL_P, not SSA_VAR_P.
3218         (ptr_derefs_may_alias_p): Likewise.
3219         (ptr_deref_may_alias_ref_p_1): Likewise.
3220         (decl_refs_may_alias_p): Likewise.
3221         (refs_may_alias_p_1): Likewise.
3222         (ref_maybe_used_by_call_p_1): Likewise.
3223         (call_may_clobber_ref_p_1): Likewise.
3224         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3225         are either MEM_REF or TARGET_MEM_REF.
3226         (indirect_refs_may_alias_p): Likewise.
3227         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3228         for MEM_EXPR of indirect calls.
3229
3230 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3231
3232         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3233         (dst_file_info_struct): Remove flen field.
3234         (lookup_filename): Remove code that set flen field.
3235
3236 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3237
3238         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3239
3240 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3241
3242         PR target/48708
3243         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3244         vec_extract and vec_concat for non-SSE4_1 targets.
3245
3246 2011-04-21  Richard Guenther  <rguenther@suse.de>
3247
3248         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3249         return statements.
3250
3251 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3252
3253         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3254         undefine.
3255         (FILE): Don't undefine.
3256
3257 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3258
3259         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3260         struct rtx_def *.
3261         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3262         struct rtx_def *.
3263         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3264         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3265         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3266         rtx_def *.
3267         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3268         definitions where used.
3269         * config/microblaze/microblaze.h (struct microblaze_args): Use
3270         rtx, not struct rtx_def *.
3271         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3272         rtx_def *.
3273         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3274         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3275         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3276         not struct rtx_def *.
3277         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3278         struct rtx_def *.
3279         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3280         rtx_def *.
3281         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3282
3283 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3284
3285         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3286         operand_equal_p to compare DR_BASE_ADDRESSes.
3287         (vect_check_interleaving): Likewise.
3288
3289 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3290
3291         PR target/46329
3292         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3293         for all Neon struct constants.
3294
3295 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3296
3297         * target.def (legitimate_constant_p): New hook.
3298         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3299         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3300         * doc/tm.texi: Regenerate.
3301         * hooks.h (hook_bool_mode_rtx_true): Declare.
3302         * hooks.c (hook_bool_mode_rtx_true): Define.
3303         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3304         * calls.c (precompute_register_parameters): Replace uses of
3305         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3306         (emit_library_call_value_1): Likewise.
3307         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3308         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3309         * ira-costs.c (scan_one_insn): Likewise.
3310         * recog.c (general_operand, immediate_operand): Likewise.
3311         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3312         * reload1.c (init_eliminable_invariants): Likewise.
3313
3314         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3315         mode argument.
3316         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3317         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3318         argument.
3319         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3320         * config/alpha/predicates.md (input_operand): Update call to
3321         alpha_legitimate_constant_p.
3322
3323         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3324         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3325         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3326         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3327         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3328         (arm_legitimate_constant_p): New functions.
3329         (arm_cannot_force_const_mem): Make static.
3330
3331         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3332
3333         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3334         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3335         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3336         instead of bfin_legitimate_constant_p.
3337         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3338         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3339
3340         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3341
3342         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3343
3344         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3345         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3346         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3347         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3348
3349         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3350         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3351         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3352
3353         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3354         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3355         * config/i386/i386.c (legitimate_constant_p): Rename to...
3356         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3357         argument.
3358         (ix86_cannot_force_const_mem): Update accordingly.
3359         (ix86_legitimate_address_p): Likewise.
3360         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3361         * config/i386/i386.md: Update commentary.
3362
3363         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3364         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3365         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3366         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3367
3368         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3369
3370         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3371         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3372         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3373         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3374
3375         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3376         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3377         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3378
3379         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3380         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3381         (m32r_legitimate_constant_p): New function.
3382
3383         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3384         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3385         LEGITIMATE_CONSTANT_P.
3386         (LEGITIMATE_CONSTANT_P): Delete.
3387         * config/m68k/m68k.c (m68k_expand_prologue): Call
3388         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3389         (m68k_legitimate_constant_p): New function.
3390         * config/m68k/m68k.md: Update comments.
3391
3392         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3393         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3394         (mcore_legitimate_constant_p): New function.
3395
3396         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3397         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3398         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3399         Add a mode argument.
3400         (mep_legitimate_address): Update accordingly.
3401         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3402
3403         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3404         Delete.
3405         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3406         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3407         static.  Check OP's mode for VOIDmode.
3408         (microblaze_legitimate_constant_p): New function.
3409         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3410
3411         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3412         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3413         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3414         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3415         * config/mips/predicates.md: Update comments.
3416
3417         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3418         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3419         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3420         (mmix_legitimate_constant_p): Make static, return a bool, and take
3421         a mode argument.
3422         (mmix_print_operand_address): Update accordingly.
3423
3424         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3425         Delete.
3426         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3427         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3428         static.  Add a mode argument.
3429         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3430
3431         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3432
3433         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3434         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3435         (pa_legitimate_constant_p): New function.
3436
3437         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3438
3439         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3440         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3441         (pdp11_legitimate_constant_p): New function.
3442
3443         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3444         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3445         (rs6000_legitimate_constant_p): New function.
3446
3447         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3448         (rx_legitimate_constant_p): ...this.
3449         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3450         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3451         (rx_legitimate_constant_p): ...this.
3452         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3453         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3454
3455         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3456         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3457         * config/s390/s390.c (legitimate_constant_p): Rename to...
3458         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3459         and add a mode argument.
3460         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3461
3462         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3463
3464         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3465         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3466         (sh_legitimate_constant_p): New function.
3467
3468         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3469         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3470         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3471         (legitimate_constant_p): Rename to...
3472         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3473         argument.
3474         (constant_address_p): Update accordingly.
3475
3476         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3477         argument and return a bool.
3478         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3479         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3480         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3481         (spu_rtx_costs): Update accordingly.
3482         * config/spu/predicates.md (vec_imm_operand): Likewise.
3483
3484         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3485
3486         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3487         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3488         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3489
3490         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3491         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3492         * config/vax/vax.c (legitimate_constant_p): Likewise.
3493
3494         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3495         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3496         (xtensa_legitimate_constant_p): New function.
3497
3498 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3499
3500         * target.def (cannot_force_const_mem): Add a mode argument.
3501         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3502         * doc/tm.texi: Regenerate.
3503         * hooks.h (hook_bool_mode_rtx_false): Declare.
3504         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3505         (hook_bool_mode_const_rtx_true): Likewise.
3506         (hook_bool_mode_rtx_false): New function.
3507         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3508         to be non-VOID.  Update call to cannot_force_const_mem.
3509         (find_reloads): Update accordingly.
3510         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3511         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3512         argument.
3513         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3514         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3515         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3516         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3517         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3518         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3519         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3520         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3521         (m68k_cannot_force_const_mem): ...this new function.
3522         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3523         argument.
3524         (mips_const_insns, mips_legitimize_const_move): Update calls.
3525         (mips_secondary_reload_class): Likewise.
3526         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3527         (pa_cannot_force_const_mem): ...this new function.
3528         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3529         (rs6000_cannot_force_const_mem): ...this new function.
3530         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3531         argument.
3532         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3533         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3534         to...
3535         (xtensa_cannot_force_const_mem): ...this new function.
3536
3537 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3538
3539         * config/mips/mips.c (mips16_build_function_stub): Call
3540         build_function_type_list instead of build_function_type.
3541         (mips16_build_call_stub): Likewise.
3542
3543 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3544
3545         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3546         instead of build_function_type.
3547
3548 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3549
3550         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3551         instead of build_function_type.
3552
3553 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3554
3555         PR target/48678
3556         * config/i386/i386.md (insv): Change operand 0 constraint to
3557         "register_operand".  Change operand 1 and 2 constraint to
3558         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3559         * config/i386/sse.md (sse4_1_pinsrb): Export.
3560         (sse2_pinsrw): Ditto.
3561         (sse4_1_pinsrd): Ditto.
3562         (sse4_1_pinsrq): Ditto.
3563         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3564         * config/i386/i386.c (ix86_expand_pinsr): New.
3565
3566 2011-04-20  Easwaran Raman  <eraman@google.com>
3567
3568         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3569         containing union type only with -fstrict-aliasing.
3570
3571 2011-04-20  Jim Meyering  <meyering@redhat.com>
3572
3573         Remove useless if-before-free tests.
3574         * calls.c (expand_call, save_area): Likewise.
3575         * cfgcleanup.c (try_forward_edges): Likewise.
3576         * collect2.c (collect_execute): Likewise.
3577         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3578         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3579         * coverage.c (coverage_checksum_string): Likewise.
3580         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3581         * cselib.c (cselib_init): Likewise.
3582         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3583         (df_set_clean_cfg): Likewise.
3584         * function.c (free_after_compilation): Likewise.
3585         * gcc.c (do_spec_1, main): Likewise.
3586         * gcov.c (create_file_names): Likewise.
3587         * gensupport.c (identify_predicable_attribute): Likewise.
3588         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3589         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3590         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3591         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3592         * ipa-pure-const.c (local_pure_const): Likewise.
3593         * ipa-reference.c (propagate): Likewise.
3594         * ira-costs.c (free_ira_costs): Likewise.
3595         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3596         * matrix-reorg.c (mat_free): Likewise.
3597         * prefix.c (get_key_value): Likewise.
3598         * profile.c (compute_value_histograms): Likewise.
3599         * reload1.c (free_reg_equiv): Likewise.
3600         * sched-deps.c (free_deps): Likewise.
3601         * sel-sched-ir.c (fence_clear): Likewise.
3602         * sese.c (set_rename, if_region_set_false_region): Likewise.
3603         * tree-data-ref.c (free_rdg): Likewise.
3604         * tree-eh.c (lower_try_finally): Likewise.
3605         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3606         * tree-ssa-live.c (delete_var_map): Likewise.
3607         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3608         * tree-ssa-pre.c (phi_trans_add): Likewise.
3609
3610 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3611
3612         PR tree-optimization/48611
3613         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3614         beyond ERT_MUST_NOT_THROW region.
3615
3616 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3617
3618         * config/mips/mips.opt (mfix-24k): New.
3619         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3620         * config/mips/mips.md (length): Increase by 4 for stores if
3621         fixing 24K errata.
3622         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3623         all noreorder if fixing 24K errata.
3624         * doc/invoke.texi: Document mfix-24k.
3625
3626 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3627
3628         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3629         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3630
3631 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3632
3633         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3634         (const_ok_for_op): ... to here.
3635
3636 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3637
3638         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3639         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3640
3641 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3642
3643         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3644
3645 2011-04-20  Richard Guenther  <rguenther@suse.de>
3646
3647         PR tree-optimization/47892
3648         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3649         are if-convertible.
3650
3651 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3652
3653         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3654
3655 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3656
3657         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3658
3659 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3660
3661         PR target/18145
3662
3663         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3664         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3665         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3666         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3667         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3668
3669         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3670         New prototype.
3671
3672         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3673         (avr_asm_named_section, avr_asm_output_aligned_common,
3674         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3675         New functions to update...
3676         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3677         (avr_asm_init_sections): Overwrite section callbacks for
3678         data_section, bss_section.
3679         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3680         from here to...
3681         (avr_file_end): ...here.
3682
3683 2011-04-20  Richard Guenther  <rguenther@suse.de>
3684
3685         PR middle-end/48695
3686         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3687         objects and types here.  Adjust for their offset before comparing.
3688
3689 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3690
3691         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3692         statement per copy.
3693
3694 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3695
3696         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3697         (GIMPLE_H): Include $(INTERNAL_FN_H).
3698         (OBJS-common): Add internal-fn.o.
3699         (internal-fn.o): New rule.
3700         * internal-fn.def: New file.
3701         * internal-fn.h: Likewise.
3702         * internal-fn.c: Likewise.
3703         * gimple.h: Include internal-fn.h.
3704         (GF_CALL_INTERNAL): New gf_mask.
3705         (gimple_statement_call): Put fntype into a union with a new
3706         internal_fn field.
3707         (gimple_build_call_internal): Declare.
3708         (gimple_build_call_internal_vec): Likewise.
3709         (gimple_call_same_target_p): Likewise.
3710         (gimple_call_internal_p): New function.
3711         (gimple_call_internal_fn): Likewise.
3712         (gimple_call_fntype): Return null for internal calls.
3713         (gimple_call_set_fntype): Assert that the function is not internal.
3714         (gimple_call_set_fn): Likewise.
3715         (gimple_call_set_fndecl): Likewise.
3716         (gimple_call_set_internal_fn): New function.
3717         (gimple_call_addr_fndecl): Handle null functions.
3718         (gimple_call_return_type): Likewise null types.
3719         * gimple.c (gimple_build_call_internal_1): New function.
3720         (gimple_build_call_internal): Likewise.
3721         (gimple_build_call_internal_vec): Likewise.
3722         (gimple_call_same_target_p): Likewise.
3723         (gimple_call_flags): Handle calls to internal functions.
3724         (gimple_call_fnspec): New function.
3725         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3726         (gimple_has_side_effects): Handle null functions.
3727         (gimple_rhs_has_side_effects): Likewise.
3728         (gimple_call_copy_skip_args): Handle calls to internal functions.
3729         * cfgexpand.c (expand_call_stmt): Likewise.
3730         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3731         * gimple-fold.c (gimple_fold_call): Handle null functions.
3732         (gimple_fold_stmt_to_constant_1): Don't fold
3733         calls to internal functions.
3734         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3735         functions.
3736         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3737         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3738         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3739         (do_warn_unused_result): Likewise.
3740         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3741         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3742         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3743         the target of a call.
3744         (initialize_hash_element): Update accordingly.
3745         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3746         (iterative_hash_hashable_expr): Handle calls to internal functions.
3747         (print_expr_hash_elt): Likewise.
3748         * tree-ssa-pre.c (can_value_number_call): Likewise.
3749         (eliminate): Handle null functions.
3750         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3751         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3752         (find_func_aliases): Likewise.
3753         * value-prof.c (gimple_ic_transform): Likewise.
3754         (gimple_indirect_call_to_profile): Likewise.
3755         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3756         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3757
3758 2011-04-19  Jan Hubicka  <jh@suse.cz>
3759
3760         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3761         * ipa-inline.c (inline_small_functions): Compute summaries first,
3762         populate heap later.
3763
3764 2011-04-19  Jan Hubicka  <jh@suse.cz>
3765
3766         * cgraph.h (save_inline_function_body): Remove.
3767         * ipa-inline-transform.c: New file, broke out of...
3768         * ipa-inline.c: ... this one; Update toplevel comment.
3769         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3770         make global.
3771         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3772         (cgraph_mark_inline_edge): Rename to inline_call; move to
3773         ipa-inline-transform.c.
3774         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3775         move to ipa-inline-transform.c
3776         (recursive_inlining, inline_small_functions, flatten_function,
3777         ipa_inline, inline_always_inline_functions,
3778         early_inline_small_functions): Update.
3779         (inline_transform): Move to ipa-inline-transform.c.
3780         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3781         Declare.
3782         * Makefile.in (ipa-inline-transform.o): New file.
3783         * cgraphunit.c (save_inline_function_body): Move to
3784         ipa-inline-transform.c
3785
3786 2011-04-19  DJ Delorie  <dj@redhat.com>
3787
3788         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3789         registers if we already know there aren't any.
3790         (m32c_emit_epilogue): Don't emit a barrier here.
3791         (m32c_emit_eh_epilogue): Likewise.
3792         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3793         operands at expand time.
3794         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3795         int" wchar type.
3796         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3797         duplicates.  Provide aliases instead.
3798         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3799         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3800         the compiler.
3801
3802 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3803
3804         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3805         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3806         (general_or_i64_p, sparc_register_move_cost): New function.
3807
3808 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3809
3810         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3811         Add lynx, mipssde.  Sort table.
3812
3813 2011-04-19  Xinliang David Li  <davidxl@google.com>
3814
3815         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3816         not negative.
3817
3818 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3819
3820         PR target/48678
3821         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3822         is a SUBREG with non-MODE_INT mode inside of it.
3823
3824 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3825
3826         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3827         also according to actual contants.
3828         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3829         (gimple_fold_call): Use it.
3830         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3831
3832 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3833
3834         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3835         non-pointer assignments.
3836
3837 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3838
3839         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3840         account anc_offset and otr_type from the indirect edge info.
3841         * ipa-prop.c (get_ancestor_addr_info): New function.
3842         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3843         get_ancestor_addr_info, call it.
3844         (ipa_note_param_call): Do not initialize information about polymorphic
3845         calls, return the indirect call graph edge.  Remove the last
3846         parameter, adjust all callers.
3847         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3848         parameters.  Initialize polymorphic information in the indirect edge.
3849
3850 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3851
3852         PR lto/48148
3853         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3854         the types if they have different enumeration identifiers.
3855
3856 2011-04-19  Jan Hubicka  <jh@suse.cz>
3857
3858         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3859         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3860         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3861         (optimize_function_for_size_p) ... here.
3862
3863 2011-04-19  Richard Guenther  <rguenther@suse.de>
3864
3865         PR lto/48207
3866         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3867         langhook.
3868
3869 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3870
3871         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3872         if DECL_NO_INLINE_WARNING_P is set on the function.
3873
3874 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3875
3876         PR fortran/47976
3877         * reload1.c (inc_for_reload): Return void. All callers changed.
3878         (emit_input_reload_insns): Don't try to delete previous output
3879         reloads to a register, or record spill_reg_store for autoincs.
3880
3881 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3882
3883         * gengtype.h: Updated copyright year.
3884         (struct input_file_st): Add inpisplugin field.
3885         (type_fileloc): New function.
3886         * gengtype.c
3887         (write_typed_struct_alloc_def): Add gcc_assert.
3888         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3889         (write_typed_alloc_defns): Don't output for plugin files.
3890         (input_file_by_name): Clear inpisplugin field.
3891         (main): Set inpisplugin field for plugin files.
3892
3893 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3894
3895         * gengtype-state.c (string_eq): New.
3896         (read_state): Use string_eq instead of strcmp when creating the
3897         state_ident_tab.
3898
3899 2011-04-19  Wei Guozhi  <carrot@google.com>
3900
3901         PR target/47855
3902         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3903         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3904         linkage.
3905         * config/arm/constraints.md (Uu): New constraint.
3906         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3907
3908 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3909
3910         * config.gcc (-*-*-*vms): Added.
3911         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3912         definitions moved.
3913         * config/vms/vms-ld.c: New file.
3914         * config/vms/vms-ar.c: New file.
3915         * config/vms/t-vmsnative: New file.
3916
3917 2011-04-18  Xinliang David Li  <davidxl@google.com>
3918
3919         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3920
3921 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3922
3923         PR middle-end/48661
3924         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3925         if TREE_TYPE (v) is non-NULL.
3926
3927         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3928         gimple_get_virt_mehtod_for_binfo.
3929         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3930         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3931         callers.
3932         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3933
3934 2011-04-18  Michael Matz  <matz@suse.de>
3935             Steve Ellcey  <sje@cup.hp.com>
3936
3937         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3938         use its mode as source mode if it isn't VOIDmode.
3939
3940 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3941
3942         * doc/passes.texi: Fill crossref nodes.
3943
3944 2011-04-18  Jim Meyering  <meyering@redhat.com>
3945
3946         Fix doubled-word typos in comments and strings
3947         * config/alpha/vms-unwind.h: s/for for/for/
3948         * config/arm/unwind-arm.h: Likewise.
3949         * config/microblaze/microblaze.c: Likewise.
3950         * config/sh/constraints.md: s/in in/in/
3951         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3952
3953 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3954
3955         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3956         (AVX_FLOAT_MODE_P): Ditto.
3957         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3958         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3959         (AVX_VEC_FLOAT_MODE_P): Ditto.
3960         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3961         (UNSPEC_MASKSTORE): Ditto.
3962         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3963         Merge from <sse>_movmsk<ssemodesuffix> and
3964         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3965         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3966         iterator.
3967         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3968         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3969         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3970
3971 2011-04-18  Jan Hubicka  <jh@suse.cz>
3972
3973         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3974
3975         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3976         (want_inline_function_called_once_p): Break out the logic from
3977         ipa_inline.
3978         (edge_badness): Ensure that profile is not misupdated.
3979         (lookup_recursive_calls): Prioritize by call frequencies.
3980         (inline_small_functions): Move program size estimates here;
3981         actually process whole queue even when unit growth has been
3982         met. (to properly compute inline_failed reasons and for the
3983         case unit size decrease.) Revisit comments on recursive inlining.
3984         (ipa_inline): Remove unit summary code; first inline hot calls
3985         of functions called once, cold calls next.
3986         (order, nnodes): Remove unused variables.
3987         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3988         (GTFILES): Remove ipa-inline.c
3989         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3990
3991 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3992
3993         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3994
3995 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3996             Richard Earnshaw  <rearnsha@arm.com>
3997
3998         * arm.c (neon_builtin_type_bits): Remove.
3999         (typedef enum neon_builtin_mode): New.
4000         (T_MAX): Don't define.
4001         (typedef enum neon_builtin_datum): Remove bits, codes[],
4002         num_vars and base_fcode.  Add mode, code and fcode.
4003         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4004         VAR10): Change accordingly.
4005         (neon_builtin_data[]): Change accordingly
4006         (arm_init_neon_builtins): Change accordingly.
4007         (neon_builtin_compare): Remove.
4008         (locate_neon_builtin_icode): Remove.
4009         (arm_expand_neon_builtin): Change accordingly.
4010
4011         * arm.h (enum arm_builtins): Move to ...
4012         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4013
4014         * arm.c (arm_builtin_decl): Declare.
4015         (TARGET_BUILTIN_DECL): Define.
4016         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4017         (arm_builtin_decls[]): New.
4018         (arm_init_neon_builtins): Store builtin declarations in
4019         arm_builtin_decls[].
4020         (arm_init_tls_builtins): Likewise.
4021         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4022         (arm_builtin_decl): New.
4023
4024 2011-04-18  Richard Guenther  <rguenther@suse.de>
4025
4026         * tree.c (upper_bound_in_type): Build properly canonicalized
4027         INTEGER_CSTs.
4028         (lower_bound_in_type): Likewise.
4029
4030 2011-04-18  Richard Guenther  <rguenther@suse.de>
4031
4032         * gimple.h (gimple_call_addr_fndecl): New function.
4033         (gimple_call_fndecl): Use it.
4034         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4035         for direct calls.
4036         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4037         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4038
4039 2011-04-18  Richard Guenther  <rguenther@suse.de>
4040
4041         PR middle-end/48650
4042         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4043
4044 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4045
4046         PR lto/48492
4047         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4048         DECL_IN_CONSTANT_POOL without RTL.
4049
4050 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4051             Ira Rosen  <ira.rosen@linaro.org>
4052
4053         PR target/48252
4054         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4055         to match neon_vzip/vuzp/vtrn_internal.
4056         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4057         outputs explicitly dependent on both inputs.
4058         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4059
4060 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4061
4062         PR tree-optimization/48616
4063         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4064         whether the shift is by scalar or vector based on whether all SLP
4065         scalar stmts have the same rhs.
4066
4067 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4068
4069         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4070         memory operands.
4071
4072 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4073
4074         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4075         registers.
4076
4077 2011-04-17  Jan Hubicka  <jh@suse.cz>
4078
4079         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4080         * cgrpahunit.c (cgraph_finalize_function): Do not set
4081         finalized_by_frontend.
4082         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4083         finalized_by_frontend.
4084
4085 2011-04-17  Jan Hubicka  <jh@suse.cz>
4086
4087         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4088         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4089         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4090         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4091         method.
4092         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4093         gimple-fold.c
4094         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4095
4096 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4097
4098         PR lto/48538
4099         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4100         is non-null before accessing it.
4101         (input_cgraph): Remove trailing spaces.
4102
4103 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4104
4105         * params.def (sms-min-sc): New param flag.
4106         * modulo-sched.c (sms_schedule): Use it.
4107         * doc/invoke.texi (sms-min-sc): Document it.
4108
4109 2011-04-17  Jan Hubicka  <jh@suse.cz>
4110
4111         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4112         present, also set gimple_call_set_cannot_inline.
4113         * ipa-inline.c: Update toplevel comment.
4114         (MAX_TIME): Remove.
4115         (cgraph_clone_inlined_nodes): Fix linebreaks.
4116         (cgraph_check_inline_limits): Restructure to ...
4117         (caller_growth_limits): ... this one; be more tolerant
4118         on growth in nested inline chains; add explanatory comment;
4119         fix stack accounting thinko introduced by previous patch.
4120         (cgraph_default_inline_p): Remove.
4121         (report_inline_failed_reason): New function.
4122         (can_inline_edge_p): New function.
4123         (can_early_inline_edge_p): New function.
4124         (leaf_node_p): Move upwards in file.
4125         (want_early_inline_function_p): New function.
4126         (want_inline_small_function_p): New function.
4127         (want_inline_self_recursive_call_p): New function.
4128         (cgraph_edge_badness): Rename to ...
4129         (edge_badness) ... this one; fix linebreaks.
4130         (update_edge_key): Update call of edge_baddness; add
4131         detailed dump about queue updates.
4132         (update_caller_keys): Use can_inline_edge_p and
4133         want_inline_small_function_p.
4134         (cgraph_decide_recursive_inlining): Rename to...
4135         (recursive_inlining): Use can_inline_edge_p and
4136         want_inline_self_recursive_call_p; simplify and remove no longer
4137         valid FIXME.
4138         (cgraph_set_inline_failed): Remove.
4139         (add_new_edges_to_heap): Use can_inline_edge_p and
4140         want_inline_small_function_p.
4141         (cgraph_decide_inlining_of_small_functions): Rename to ...
4142         (inline_small_functions): ... this one; cleanup; use
4143         can/want predicates; cleanup debug ouput; work edges till fibheap
4144         is exhausted and do not stop once unit growth is reached; remove
4145         later loop processing remaining edges.
4146         (cgraph_flatten): Rename to ...
4147         (flatten_function): ... this one; use can_inline_edge_p
4148         and can_early_inline_edge_p predicates.
4149         (cgraph_decide_inlining): Rename to ...
4150         (ipa_inline): ... this one; remove unreachable nodes before
4151         inlining functions called once; simplify the pass.
4152         (cgraph_perform_always_inlining): Rename to ...
4153         (inline_always_inline_functions): ... this one; use
4154         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4155         (cgraph_decide_inlining_incrementally): Rename to ...
4156         (early_inline_small_functions): ... this one; simplify
4157         using new predicates; cleanup; make dumps prettier.
4158         (cgraph_early_inlining): Rename to ...
4159         (early_inliner): newer inline regular functions into always-inlines;
4160         fix updating of call stmt summaries.
4161         (pass_early_inline): Update for new names.
4162         (inline_transform): Fix formating.
4163         (gate_cgraph_decide_inlining): Rename to ...
4164         (pass_ipa_inline): ... this one.
4165         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4166         * ipa-inline-analysis.c (dump_inline_summary): Update.
4167         (compute_inline_parameters): Do not compute disregard_inline_limits;
4168         look for mismatching arguments.
4169         (estimate_growth): Fix handlig of non-trivial self recursion.
4170         (inline_read_summary): Do not read info->disregard_inline_limits.
4171         (inline_write_summary): Do not write info->disregard_inline_limits.
4172         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4173         and move all checks into can_inline_edge_p predicate; re-enable code
4174         comparing optimization levels.
4175         (expand_call_inline): Do not test inline_forbidden_into_p.
4176         * Makefile.in (ipa-inline.o): Update arguments.
4177
4178 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4179
4180         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4181
4182 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4183
4184         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4185
4186 2011-04-17  Michael Matz  <matz@suse.de>
4187
4188         PR tree-optimization/48622
4189         PR lto/48645
4190         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4191         in same order as they're written.
4192
4193 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4194
4195         * config/pa/predicates.md: Reorganize and simplify predicates.
4196         Eliminate duplicate code checks.
4197         (arith_operand): Rename to arith14_operand
4198         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4199         * config/pa/pa.md: Use renamed operands.
4200         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4201         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4202         arith11_operand, adddi3_operand, indexed_memory_operand,
4203         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4204         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4205         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4206         move_dest_operand, move_src_operand, prefetch_cc_operand,
4207         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4208         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4209         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4210         div_operand, int5_operand, movb_comparison_operator,
4211         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4212         arith_double_operand, ireg_operand, lhs_lshift_operand,
4213         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4214         integer_store_memory_operand): Likewise.
4215         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4216         (integer_store_memory_operand, read_only_operand,
4217         function_label_operand, borx_reg_operand,
4218         non_hard_reg_operand): Likewise.
4219         (eq_neq_comparison_operator): Delete unused operator.
4220         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4221         function_label_operand.
4222         (emit_move_sequence): Likewise.
4223
4224 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4225
4226         * config/i386/sse.md (sseunpackmode): New mode attribute.
4227         (ssepackmode): Ditto.
4228         (vec_pack_trunc_<mode>): Macroize expander from
4229         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4230         (vec_unpacks_lo_<mode>): Macroize expander from
4231         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4232         (vec_unpacks_hi_<mode>): Macroize expander from
4233         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4234         (vec_unpacku_lo_<mode>): Macroize expander from
4235         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4236         (vec_unpacku_hi_<mode>): Macroize expander from
4237         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4238         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4239         ix86_expand_sse4_unpack.
4240         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4241
4242 2011-04-16  Jan Hubicka  <jh@suse.cz>
4243
4244         * cgraphbuild.c: Include ipa-inline.h.
4245         (reset_inline_failed): Use initialize_inline_failed.
4246         * cgraph.c: Include ipa-inline.h.
4247         (cgraph_create_node_1): Do not initialize estimated_growth.
4248         (initialize_inline_failed): More to ipa-inline-analysis.c
4249         (dump_cgraph_node): Do not dump inline flags.
4250         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4251         and disregard_inline_limits flags.
4252         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4253         time, size, estimated_growth.
4254         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4255         Update.
4256         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4257         DECL_DISREGARD_INLINE_LIMITS.
4258         (cgraph_analyze_function): Do not initialize
4259         node->local.disregard_inline_limits.
4260         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4261         inlinable, versionable and disregard_inline_limits.
4262         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4263         cgraph_check_inline_limits, cgraph_default_inline_p,
4264         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4265         add_new_edges_to_heap): Update.
4266         (cgraph_decide_inlining_of_small_function): Update; set
4267         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4268         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4269         cgraph_decide_inlining_incrementally): Update.
4270         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4271         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4272         time, size and estimated_growth parameters.
4273         (estimate_edge_growth): Update.
4274         (initialize_inline_failed): Declare.
4275         * ipa-split.c: Include ipa-inline.h
4276         (execute_split_functions): Update.
4277         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4278         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4279         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4280         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4281         estimated_growth to INT_MIN.
4282         (inline_node_duplication_hook): Likewise.
4283         (dump_inline_summary): Dump new fields.
4284         (compute_inline_parameters): Update.
4285         (estimate_edge_time, estimate_time_after_inlining,
4286         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4287         inline_write_summary):
4288         (initialize_inline_failed): Move here from cgraph.c.
4289         * tree-sra.c: Include ipa-inline.h.
4290         (ipa_sra_preliminary_function_checks): Update.
4291         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4292         ipa-inline.h.
4293
4294 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4295
4296         * config/i386/sse.md (V16): New mode iterator.
4297         (VI1, VI8): Ditto.
4298         (AVXMODEQI, AVXMODEDI): Remove.
4299         (sse2, sse3): New mode attribute.
4300         (mov<mode>): Use V16 mode iterator.
4301         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4302         (push<mode>1): Use V16 mode iterator.
4303         (movmisalign<mode>): Ditto.
4304         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4305         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4306         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4307         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4308         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4309         avx_movdqu<avxmodesuffix>.
4310         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4311         *avx_movdqu<avxmodesuffix>.
4312         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4313         avx_lddqu<avxmodesuffix>.
4314         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4315         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4316         avx_movnt<AVXMODEDI:mode>.
4317         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4318         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4319
4320 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4321
4322         PR target/48629
4323         * haifa-sched.c (prune_ready_list, schedule_block): Use
4324         sched_pressure_p rather than flag_sched_pressure.
4325
4326 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4327
4328         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4329         cgraph_get_node instead of cgraph_get_create_node.
4330
4331 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4332
4333         * cfgexpand.c (expand_debug_expr): Use
4334         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4335
4336 2011-04-15  Michael Matz  <matz@suse.de>
4337
4338         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4339         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4340         * function.c (gimplify_parameters): Ditto.
4341         * gimplify.c (gimplify_vla_decl): Ditto.
4342
4343         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4344         (gimple_call_set_alloca_for_var): New inline function.
4345         (gimple_call_alloca_for_var_p): Ditto.
4346         * gimple.c (gimple_build_call_from_tree): Remember
4347         CALL_ALLOCA_FOR_VAR_P state.
4348         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4349
4350         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4351         calls if they were for VLA objects.
4352
4353 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4354
4355         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4356         of ADR_EXPRs.
4357
4358 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4359
4360         PR middle-end/48601
4361         * tree-emutls.c (lower_emutls_function_body): Call
4362         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4363         result is non-NULL.
4364
4365 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4366
4367         * c-decl.c (detect_field_duplicates): Call
4368         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4369
4370 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4371
4372         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4373         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4374         * ipa-pure-const.c (check_stmt): Call it.
4375         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4376
4377 2011-04-15  Richard Guenther  <rguenther@suse.de>
4378
4379         PR tree-optimization/48290
4380         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4381         Properly decide inhibiting propagation based on the valueized
4382         operand.  Do loop-closed SSA form preserving here ...
4383         (init_copy_prop): ... not here.
4384
4385 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4386
4387         PR target/48612
4388         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4389         (*ieee_smax<mode>3): Likewise.
4390
4391 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4392
4393         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4394         Replace match_operand with match_dup for the third operand in
4395         these expanders.
4396
4397 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4398
4399         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4400         to track processing of conditionals.  Update all callers.
4401         (try_combine, simplify_if_then_else): Update.
4402
4403 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4404
4405         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4406         -fsched-pressure.
4407
4408 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4409
4410         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4411         instead of match_operand for operand 3.
4412
4413 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4414
4415         * recog.h (insn_operand_data): Add an "allows_mem" field.
4416         * genoutput.c (output_operand_data): Initialize it.
4417         * optabs.c (maybe_legitimize_operand_same_code): New function.
4418         (maybe_legitimize_operand): Use it when matching the original
4419         op->value.
4420
4421 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4422
4423         * gimplify.c: Fix issues in comments throughout.
4424         (voidify_wrapper_expr): Fix long line.
4425         (build_stack_save_restore): Likewise.
4426         (gimplify_loop_expr): Likewise.
4427         (gimplify_compound_lval): Likewise.
4428         (gimplify_init_ctor_eval): Likewise.
4429         (gimplify_modify_expr_rhs): Likewise.
4430         (omp_notice_threadprivate_variable): Likewise.
4431
4432 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4433
4434         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4435         original one if this is not a builtin function.
4436
4437 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4438
4439         PR target/48605
4440         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4441         offset it as needed based on top 2 bits in operands[3], change
4442         MEM mode to SFmode and mask those 2 bits away from operands[3].
4443
4444 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4445
4446         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4447         change from objc_declare_protocols() to objc_declare_protocol().
4448
4449 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4450
4451         * config/i386/sse.md (sse4_1): New mode attribute.
4452         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4453         avx_blend<ssemodesuffix><avxmodesuffix> and
4454         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4455         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4456         avx_blendv<ssemodesuffix><avxmodesuffix> and
4457         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4458         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4459         avx_dp<ssemodesuffix><avxmodesuffix> and
4460         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4461         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4462         (sse4_1_packusdw): Merge with *avx_packusdw.
4463         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4464         (sse4_1_pblendw): Merge with *avx_pblendw.
4465         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4466         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4467         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4468         VF mode iterator.
4469         (sse4_1_round<ssescalarmodesuffix>): Merge with
4470         *avx_round<ssescalarmodesuffix>.
4471         (aesenc): Merge with *avx_aesenc.
4472         (aesenclast): Merge with *avx_aesenclast.
4473         (aesdec): Merge with *avx_aesdec.
4474         (aesdeclast): Merge with *avx_aesdeclast.
4475         (pclmulqdq): Merge with *pclmulqdq.
4476         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4477         New predicate.
4478         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4479
4480 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4481
4482         PR middle-end/48608
4483         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4484         (align_local_variable): This.  Update DECL_ALIGN.
4485         (add_stack_var): Updated.
4486         (expand_one_stack_var): Likewise.
4487
4488 2011-04-14  Richard Guenther  <rguenther@suse.de>
4489
4490         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4491         Remove.
4492         (dse_initialize_block_local_data, dse_leave_block,
4493         record_voperand_set, get_stmt_uid): Likewise.
4494         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4495         (dse_optimize_stmt): Remove voperand set handling code.
4496         Simplify and improve to handle any kind of killing stmt.
4497         (dse_record_phi): Remove.
4498         (dse_enter_block): Simplify.
4499         (tree_ssa_dse): Likewise.
4500         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4501
4502 2011-04-14  Jan Hubicka  <jh@suse.cz>
4503
4504         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4505         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4506         (cgraph_local_info): Remove inline_summary.
4507         * ipa-cp.c: Include ipa-inline.h.
4508         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4509         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4510         accesor.
4511         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4512         (input_overwrite_node): Do not set inline summary.
4513         (input_node): Do not stream inline summary.
4514         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4515         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4516         growth; we do not have inline parameters computed for that anyway.
4517         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4518         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4519         (inline_summary_t): New type and VECtor.
4520         (debug_inline_summary, dump_inline_summaries): Declare.
4521         (inline_summary): Use VOCtor.
4522         (estimate_edge_growth): Kill hack computing call stmt size directly.
4523         * lto-section-in.c (lto_section_name): Add inline section.
4524         * ipa-inline-analysis.c: Include lto-streamer.h
4525         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4526         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4527         (inline_summary_vec): Define.
4528         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4529         dump_inline_summaries): New functions.
4530         (estimate_function_body_sizes): Properly compute size/time of outgoing
4531         calls.
4532         (compute_inline_parameters): Alloc inline_summary; do not compute
4533         size/time of incomming calls.
4534         (estimate_edge_time): Avoid missing time summary hack.
4535         (inline_read_summary): Read inline summary info.
4536         (inline_write_summary): Write inline summary info.
4537         (inline_free_summary): Free all hooks and inline summary vector.
4538         * lto-streamer.h: Add LTO_section_inline_summary section.
4539         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4540         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4541
4542 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4543
4544         * tree-vectorizer.h (vect_strided_store_supported): Add a
4545         HOST_WIDE_INT argument.
4546         (vect_strided_load_supported): Likewise.
4547         (vect_permute_store_chain): Return void.
4548         (vect_transform_strided_load): Likewise.
4549         (vect_permute_load_chain): Delete.
4550         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4551         count argument.  Check that the count is a power of two.
4552         (vect_strided_load_supported): Likewise.
4553         (vect_permute_store_chain): Return void.  Update after above changes.
4554         Assert that the access is supported.
4555         (vect_permute_load_chain): Likewise.
4556         (vect_transform_strided_load): Return void.
4557         * tree-vect-stmts.c (vectorizable_store): Update calls after
4558         above interface changes.
4559         (vectorizable_load): Likewise.
4560         (vect_analyze_stmt): Don't check for strided powers of two here.
4561
4562 2011-04-14  Richard Guenther  <rguenther@suse.de>
4563
4564         PR tree-optimization/48590
4565         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4566         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4567         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4568         BUILT_IN_STACK_SAVE.
4569         * tree-ssa-dce.c (propagate_necessity): Handle
4570         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4571
4572 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4573
4574         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4575         objc_declare_class.
4576
4577 2011-04-14  Richard Guenther  <rguenther@suse.de>
4578
4579         * tree.h (get_object_alignment_1): Declare.
4580         * builtins.c (get_object_alignment_1): Split out worker from ...
4581         (get_object_alignment): ... here.
4582         * fold-const.c (get_pointer_modulus_and_residue): Use
4583         get_object_alignment_1.
4584
4585 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4586
4587         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4588         type parameter.
4589         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4590         parameter.  Generalise code to handle arrays as well as vectors.
4591         (vect_setup_realignment): Update accordingly.
4592         * tree-vect-stmts.c (vectorizable_store): Likewise.
4593         (vectorizable_load): Likewise.
4594
4595 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4596
4597         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4598         within the per-copy loop.
4599
4600 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4601
4602         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4603         in the dump file.
4604
4605 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4606
4607         * doc/options.texi (Negative): Explicitly mention that the
4608         Negative chain must be circular.
4609
4610 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4611
4612         * function.h (block_chainon): Declare.
4613         * function.c (block_chainon): Define.
4614
4615 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4616             Eric Weddington  <eric.weddington@atmel.com>
4617             Georg-Johann Lay  <avr@gjlay.de>
4618
4619         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4620         New Includes
4621         (avr_init_builtins, avr_expand_builtin,
4622         avr_expand_delay_cycles, avr_expand_unop_builtin,
4623         avr_expand_binop_builtin ): New functions.
4624         (avr_builtin_id): New enum
4625         (struct avr_builtin_description): New struct
4626         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4627         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4628
4629         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4630         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4631         UNSPECV_DELAY_CYCLES): new enumeration values
4632         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4633         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4634         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4635         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4636         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4637         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4638         "fmulsu"): New insns
4639
4640         * config/avr/avr-c.c: fix line endings
4641         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4642         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4643         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4644         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4645         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4646
4647         * doc/extend.texi (AVR Built-in Functions): New node
4648         (Target Builtins): Add documentation of AVR
4649         built-in functions.
4650
4651 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4652
4653         PR target/44643
4654         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4655         alone. Error if non-const data has attribute progmem.
4656
4657 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4658
4659         * tree.h (struct tree_constructor): Include tree_typed instead of
4660         tree_common.
4661         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4662         TS_TYPED instead of TS_COMMON.
4663
4664 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4665
4666         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4667         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4668         (sse2_psadbw): Merge with *avx_psadbw.
4669         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4670         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4671         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4672         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4673         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4674         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4675         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4676         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4677         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4678         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4679         (ssse3_palignrti): Merge with *avx_palignrti.
4680
4681 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4682
4683         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4684         * tree-ssanames.c (fini_ssanames): VEC_free it.
4685         (make_ssa_name_fn): Update for VECness of free_ssanames.
4686         (release_ssa_name, release_dead_ssa_names): Likewise.
4687         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4688         tree_common.
4689         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4690         TS_TYPED instead of TS_COMMON.
4691
4692 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4693
4694         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4695         statistics_counter_event.
4696         * tree-ssa-copyrename.c (stats): Define.
4697         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4698         statistics_counter_event.
4699         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4700         (bswap_stats, widen_mul_stats): Define.
4701         (insert_reciprocals): Increment rdivs_inserted.
4702         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4703         rfuncs_inserted.  Add calls to statistics_counter_event.
4704         (execute_cse_sincos_1): Increment inserted.
4705         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4706         statistics_counter_event.
4707         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4708         of bswap_stats.  Add calls to statistics_counter_event.
4709         (convert_mult_to_widen): Increment widen_mults_inserted.
4710         (convert_plusminus_to_widen): Increment maccs_inserted.
4711         (convert_mult_to_fma): Increment fmas_inserted.
4712         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4713         calls to statistics_counter_event.
4714
4715 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4716
4717         PR rtl-optimization/48455
4718         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4719         `temp_costs->mem_cost'.
4720
4721 2011-04-13  Jan Hubicka  <jh@suse.cz>
4722
4723         * ipa-inline.h: New file.
4724         * ipa-inline-analysis.c: New file. Broken out of ...
4725         * ipa-inline.c: ... this file; update toplevel comment;
4726         include ipa-inline.h
4727         (inline_summary): Move to ipa-inline.h
4728         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4729         ipa-inline-analysis.c.
4730         (cgraph_estimate_time_after_inlining): Rename to
4731         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4732         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4733         to estimate_edge_growth.
4734         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4735         rename to estimate_size_after_inlining.
4736         (cgraph_mark_inline_edge): Update for new naming convention.
4737         (cgraph_check_inline_limits): Likewise.
4738         (cgraph_edge_badness): Likewise.
4739         (cgraph_decide_recursive_inlining): Likewise.
4740         (cgraph_decide_inlining_of_small_functions): Likewise.
4741         (cgraph_decide_inlining_incrementally): Likewise.
4742         (cgraph_estimate_growth): Rename to estimate_growth; move to
4743         ipa-inline-analysis.c.
4744         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4745         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4746         (compute_inline_parameters): Likewise.
4747         (compute_inline_parameters_for_current): Likewise.
4748         (pass_inline_parameters): Likewise.
4749         (inline_indirect_intraprocedural_analysis): Likewise.
4750         (analyze_function): Rename to inline_analyze_function; likewise.
4751         (add_new_function): Move to ipa-inline-analysis.c.
4752         (inline_generate_summary): Likewise.
4753         (inline_read_summary): Likewise.
4754         (inline_write_summary): Likewise.
4755         * Makefile.in (ipa-inline-analysis.c): New file.
4756
4757 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4758
4759         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4760         * configure: Regenerate.
4761
4762 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4763
4764         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4765         instead of tree_common.
4766         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4767         Likewise.
4768         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4769         TS_TYPED rather than TS_COMMON.
4770         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4771
4772 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4773
4774         PR target/45263
4775         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4776         r20 around calls of __tablejump_elpm__
4777
4778 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4779
4780         PR middle-end/48591
4781         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4782         NULL.
4783         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4784
4785 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4786
4787         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4788         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4789         (cfi_vec): New typedef.
4790         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4791         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4792         (cie_cfi_vec): New static variable.
4793         (cie_cfi_head): Delete.
4794         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4795         declaration changed. Use vector rather than list operations.
4796         (new_cfi): Don't initialize the dw_cfi_next field.
4797         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4798         rather than list operations.
4799         (lookup_cfa): Use vector rather than list operations.
4800         (output_cfis): New argument upto. Accept a cfi_vec rather than
4801         a dw_cfi_ref list head as argument. All callers changed.
4802         Iterate over the vector using upto as a maximum index.
4803         (output_all_cfis): New static function.
4804         (output_fde): Use vector rather than list operations. Use the
4805         new upto argument for output_cfis rather than manipulating a
4806         list.
4807         (dwarf2out_begin_prologue): Change initializations to match
4808         new struct members.
4809         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4810         from the vector length rather than searching for the end of a list.
4811         Use output_all_cfis.
4812         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4813
4814 2011-04-13  Nick Clifton  <nickc@redhat.com>
4815
4816         * config/rx/rx.md (movmemsi): Do not use this pattern when
4817         volatile pointers are involved.
4818
4819 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4820
4821         * config/i386/sse.md (pinsrbits): Remove.
4822         (sse2_packsswb): Merge with *avx_packsswb.
4823         (sse2_packssdw): Merge with *avx_packssdw.
4824         (sse2_packuswb): Merge with *avx_packuswb.
4825         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4826         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4827         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4828         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4829         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4830         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4831         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4832         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4833         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4834         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4835         (sse2_loadld): Merge with *avx_loadld.
4836         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4837         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4838         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4839         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4840         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4841
4842 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4843
4844         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4845         calling TREE_CHAIN.
4846         * print-tree.c (print_node): Likewise.
4847         * tree-inline.c (copy_tree_r): Likewise.
4848         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4849         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4850         instead of TS_COMMON.
4851         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4852         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4853         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4854         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4855         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4856         ...and these...
4857         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4858         * tree.h: ...here.
4859         (TREE_CHAIN): Check for a TS_COMMON structure.
4860         (TREE_TYPE): Check for a TS_TYPED structure.
4861
4862 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4863
4864         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4865         cgraph_get_create_node instead of cgraph_node.
4866
4867 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4868
4869         * c-parser.c (c_parser_initelt): Updated call to
4870         objc_build_message_expr.
4871         (c_parser_postfix_expression): Likewise.
4872
4873 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4874
4875         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4876         MASK_MS_BITFIELD_LAYOUT bit.
4877
4878 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4879
4880         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4881         assert it is always true.
4882         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4883         moves.
4884
4885 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4886
4887         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4888         compiling Objective-C to be more efficient.
4889
4890 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4891
4892         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4893         argv_copied.
4894
4895 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4896
4897         * recog.h, genoutput.c, optabs.c: Revert last patch.
4898
4899 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4900
4901         PR target/48090
4902         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4903
4904 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4905
4906         * recog.h (insn_operand_data): Add an "allows_mem" field.
4907         * genoutput.c (output_operand_data): Initialize it.
4908         * optabs.c (maybe_legitimize_operand_same_code): New function.
4909         (maybe_legitimize_operand): Use it when matching the original
4910         op->value.
4911
4912 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4913
4914         * genpreds.c (process_define_predicate): Move most processing
4915         to gensupport.c.  Continue to validate the expression.
4916         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4917         (process_define_predicate): Move processing to gensupport.c.
4918         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4919         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4920         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4921         argument.
4922         (valid_predicate_name_p): New function, split out from old
4923         genpreds.c:process_define_predicate.
4924         (process_define_predicate): New function, combining code from
4925         old genpreds.c and genrecog.c functions.
4926         (process_rtx): Call it for DEFINE_PREDICATE and
4927         DEFINE_SPECIAL_PREDICATE.
4928
4929 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4930
4931         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4932         size of a '%A' memory reference.
4933         (T_DREG, T_QREG): New neon_builtin_type_bits.
4934         (arm_init_neon_builtins): Assert that the load and store operands
4935         are neon_struct_operands.
4936         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4937         (NEON_ARG_MEMORY): New builtin_arg.
4938         (neon_dereference_pointer): New function.
4939         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4940         Handle NEON_ARG_MEMORY.
4941         (arm_expand_neon_builtin): Update after above interface changes.
4942         Use NEON_ARG_MEMORY for loads and stores.
4943         * config/arm/predicates.md (neon_struct_operand): New predicate.
4944         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4945         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4946         (V_four_elem): Tweak formatting.
4947         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4948         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4949         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4950         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4951         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4952         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4953         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4954         Use %A in the output template.
4955         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4956         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4957         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4958         the width of the memory access.  Remove post-increment.
4959         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4960
4961 2011-04-12  Nick Clifton  <nickc@redhat.com>
4962
4963         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4964         instruction for interrupt handlers if the target is the basic V850
4965         architecture.
4966         (expand_epilogue): Likewise.
4967
4968 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4969
4970         PR rtl-optimization/48549
4971         * combine.c (propagate_for_debug): Also stop after BB_END of
4972         this_basic_block.  Process LAST and just stop processing after it.
4973         (combine_instructions): If last_combined_insn has been deleted,
4974         set last_combined_insn to its PREV_INSN.
4975
4976 2011-04-12  Richard Guenther  <rguenther@suse.de>
4977
4978         PR tree-optimization/46076
4979         * gimple.h (struct gimple_statement_call): Add fntype field.
4980         (gimple_call_fntype): Adjust.
4981         (gimple_call_set_fntype): New function.
4982         * gimple.c (gimple_build_call_1): Set the call function type.
4983         * gimplify.c (gimplify_call_expr): Preserve the function
4984         type the frontend used for the call.
4985         (gimplify_modify_expr): Likewise.
4986         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4987         function type.
4988         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4989         function type.
4990         * tree-ssa.c (useless_type_conversion_p): Function pointer
4991         conversions are useless.
4992
4993 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4994
4995         * cgraph.h (cgraph_node): Remove function declaration.
4996         (cgraph_create_node): Declare.
4997         (cgraph_get_create_node): Likewise.
4998         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4999         Updated all callers.
5000         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5001         the decl does not already exist.  Call cgraph_get_create_node instead
5002         of cgraph_node.
5003         (cgraph_get_create_node): New function.
5004         (cgraph_same_body_alias): Update comment.
5005         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5006         assert it does not return NULL.
5007         (cgraph_update_edges_for_call_stmt): Likewise.
5008         (cgraph_clone_edge): Likewise.
5009         (cgraph_create_virtual_clone): Likewise.
5010         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5011         instead of cgraph_node.
5012         (cgraph_add_new_function): Call cgraph_create_node or
5013         cgraph_get_create_node instead of cgraph_node.
5014         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5015         instead of cgraph_node.
5016         (record_eh_tables): Likewise.
5017         (mark_address): Likewise.
5018         (mark_load): Likewise.
5019         (build_cgraph_edges): Call cgraph_get_create_node instead
5020         of cgraph_node.
5021         (rebuild_cgraph_edges): Likewise.
5022         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5023         instead of cgraph_node.
5024         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5025         cgraph_node.
5026         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5027         cgraph_create_node instead of cgraph_node.
5028         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5029         of cgraph_node.
5030         * lto-cgraph.c (input_node): Likewise.
5031         * lto-streamer-in.c (input_function): Likewise.
5032         * varasm.c (mark_decl_referenced): Likewise.
5033         (assemble_alias): Likewise.
5034
5035 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5036
5037         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5038         instead of cgraph_node and assert it does not return NULL.
5039         * lto-streamer-in.c (lto_read_body): Likewise.
5040         * omp-low.c (new_omp_context): Likewise.
5041         (create_task_copyfn): Likewise.
5042         * tree-emutls.c (lower_emutls_function_body): Likewise.
5043         * matrix-reorg.c (transform_allocation_sites): Likewise.
5044
5045 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5046
5047         PR c/48552
5048         * c-typeck.c (build_asm_expr): Error out on attempts to use
5049         void type outputs or inputs for constraints that allow reg or
5050         don't allow memory.
5051
5052 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5053             Richard Earnshaw  <rearnsha@arm.com>
5054
5055         PR target/48250
5056         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5057         to use sign-magnitude offsets. Reject unsupported unaligned
5058         cases. Add detailed description in comments.
5059         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5060         condition from TARGET_32BIT to TARGET_ARM.
5061
5062 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5063
5064         * tree.h (struct typed_tree): New.
5065         (struct tree_common): Include it instead of tree_base.
5066         (TREE_TYPE): Update for new location of type field.
5067         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5068         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5069         (union tree_node): Add typed field.
5070         * treestruct.def (TS_TYPED): New.
5071         * lto-streamer.c (check_handled_ts_structures): Handle it.
5072         * tree.c (MARK_TS_TYPED): New macro.
5073         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5074
5075 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5076
5077         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5078         (force_nonfallthru): Do not alter the loop nest if no basic block
5079         was created.
5080
5081 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5082
5083         * config/i386/sse.md (VI): New mode iterator.
5084         (SSEMODEI): Remove.
5085         (AVX256MODEI): Ditto.
5086         (AVXMODEF4P): Ditto.
5087         (avxvecpsmode): Ditto.
5088         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5089         (sse2_andnot<mode>3): New expander.
5090         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5091         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5092         (<any_logic:code><mode>3): Use VI mode iterator.
5093         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5094         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5095         (*andnottf3): Handle AVX three-operand constraints.
5096         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5097
5098 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5099             Robert Millan  <rmh@gnu.org>
5100
5101         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5102         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5103         GNU_USER_DYNAMIC_LINKER64): Define.
5104         (REG_NAME): Don't undefine.
5105         (MD_UNWIND_SUPPORT): Undefine.
5106         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5107         (REG_NAME): Don't undefine.
5108         (MD_UNWIND_SUPPORT): Undefine.
5109         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5110
5111 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5112
5113         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5114         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5115
5116 2011-04-11  Xinliang David Li  <davidxl@google.com>
5117
5118         * value-profile.c (check_ic_target): New function.
5119         (gimple_ic_transform): Sanity check indirect call target.
5120         * gimple-low.c (gimple_check_call_args): Interface change.
5121         (gimple_check_call_matching_types): New function.
5122         * tree-inline.c (tree_can_inline_p): Call new function.
5123
5124 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5125
5126         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5127         tree-pretty-print.h & realmpfr.h.
5128
5129 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5130
5131         PR middle-end/48464
5132         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5133         (setup_allocno_and_important_classes): Ditto.
5134
5135 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5136
5137         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5138         GNU_USER_DYNAMIC_LINKER.
5139         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5140         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5141         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5142         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5143         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5144         GNU_USER_TARGET_OS_CPP_BUILTINS.
5145         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5146         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5147         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5148         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5149         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5150         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5151         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5152         GNU_USER_TARGET_OS_CPP_BUILTINS.
5153         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5154         GNU_USER_DYNAMIC_LINKER.
5155         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5156         GNU_USER_TARGET_OS_CPP_BUILTINS.
5157         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5158         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5159         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5161         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5162         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5163         GNU_USER_DYNAMIC_LINKER64): Remove.
5164         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5165         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5166         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5167         GNU_USER_DYNAMIC_LINKER.
5168         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5169         GNU_USER_TARGET_OS_CPP_BUILTINS.
5170         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5171         GNU_USER_TARGET_OS_CPP_BUILTINS.
5172         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5173         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5174         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5175         GNU_USER_TARGET_OS_CPP_BUILTINS.
5176         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5177         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5178         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5179         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5180         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5181         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5182         GNU_USER_DYNAMIC_LINKER.
5183         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5184         GNU_USER_TARGET_OS_CPP_BUILTINS.
5185         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5186         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5187         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5188         GNU_USER_DYNAMIC_LINKER.
5189         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5190         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5191         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5192         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5193         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5194         GNU_USER_DYNAMIC_LINKER.
5195         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5196         GNU_USER_DYNAMIC_LINKERN32.
5197         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5198         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5199         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5200         GNU_USER_DYNAMIC_LINKER32.
5201         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5202         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5203         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5204         GNU_USER_DYNAMIC_LINKER.
5205         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5206         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5207         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5208         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5209         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5210         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5211         GNU_USER_DYNAMIC_LINKER32.
5212         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5213         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5214         GNU_USER_DYNAMIC_LINKER.
5215         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5216         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5217         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5218         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5219         GNU_USER_DYNAMIC_LINKER64.
5220         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5221         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5222         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5223         GNU_USER_DYNAMIC_LINKER.
5224         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5225         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5226         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5227         GNU_USER_DYNAMIC_LINKER.
5228         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5229         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5230         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5231         GNU_USER_DYNAMIC_LINKER32.
5232         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5233         GNU_USER_DYNAMIC_LINKER64.
5234         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5235         GNU_USER_DYNAMIC_LINKER64.
5236         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5238         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5239         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5240         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5241
5242 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5243
5244         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5245         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5246         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5247         GNU_USER_DYNAMIC_LINKER.
5248         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5249         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5250         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5251         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5252         GNU_USER_DYNAMIC_LINKER64.
5253         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5254         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5255         GNU_USER_LINK_EMULATION.
5256         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5257         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5258         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5259         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5260         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5261         CPP_SPEC, CC1_SPEC): Remove.
5262         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5263         (GNU_USER_DYNAMIC_LINKER): Define.
5264         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5265         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5266         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5267         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5268         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5269         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5270         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5271         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5272         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5273         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5274         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5275         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5276         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5277         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5278         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5279         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5280         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5281         GNU_USER_DYNAMIC_LINKER.
5282         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5283         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5284         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5285         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5286         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5287         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5288         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5289         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5290         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5291         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5292
5293 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5294
5295         PR target/9601
5296         PR target/11772
5297         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5298         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5299         comment.
5300         (ix86_is_msabi_thiscall): Removed.
5301         (ix86_is_type_thiscall): Likewise.
5302         (ix86_get_callcvt): New function.
5303         (ix86_comp_type_attributes): Simplify check.
5304         (ix86_function_regparm): Use ix86_get_callcvt for calling
5305         convention attribute checks.
5306         (ix86_return_pops_args): Likewise.
5307         (ix86_static_chain): Likewise.
5308         (x86_this_parameter): Likewise.
5309         (x86_output_mi_thunk): Likewise.
5310         (ix86_function_type_abi): Optimize check for types without attributes.
5311         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5312         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5313         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5314         by flag-values.
5315         (IX86_BASE_CALLCVT): Helper macro.
5316         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5317         Use ix86_get_callcvt for calling convention attribute checks and avoid
5318         symbol-decoration for stdcall in TARGET_RTD case.
5319         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5320         Likewise.
5321         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5322         for declaration.
5323
5324 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5325
5326         * config/i386/sse.md (VI_128): New mode iterator.
5327         (VI12_128): Rename from SSEMODE12.
5328         (VI14_128): Rename from SSEMODE14.
5329         (VI124_128): New mode iterator.
5330         (VI24_128): Rename from SSEMODE248.
5331         (VI248_128): Rename from SSEMODE248.
5332         (SSEMODE124C8): Remove.
5333         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5334         (*sse2_<plusminus_insn><mode>3): Merge with
5335         *avx_<plusminus_insn><mode>3.
5336         (*mulv8hi3): Merge with *avx_mulv8hi3.
5337         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5338         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5339         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5340         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5341         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5342         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5343         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5344         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5345         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5346         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5347         (*<smaxmin:code>v8hi3): Ditto.
5348         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5349         (*<smaxmin:code>v16qi3): Ditto.
5350         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5351         (*sse2_eq<mode>3): Ditto.
5352         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5353         (*sse2_gt<mode>3): Ditto.
5354         (vcondv2di): Split out of vcond<mode>.
5355         (vconduv2di): Split out of vcondu<mode>.
5356
5357 2011-04-11  Richard Guenther  <rguenther@suse.de>
5358
5359         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5360         before calling tree_low_cst.
5361
5362 2011-04-11  Richard Guenther  <rguenther@suse.de>
5363
5364         * stor-layout.c (layout_type): Compute all array index size operations
5365         in the original type.
5366         (initialize_sizetypes): Add comment.
5367         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5368
5369 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5370
5371         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5372
5373 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5374
5375         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5376         of cgraph_node, handle NULL return value.
5377         (cgraph_global_info): Likewise.
5378         (cgraph_rtl_info): Likewise.
5379         * tree-inline.c (estimate_num_insns): Likewise.
5380         * gimplify.c (unshare_body): Likewise.
5381         (unvisit_body): Likewise.
5382         (gimplify_body): Likewise.
5383         * predict.c (optimize_function_for_size_p): Likewise.
5384         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5385         (call_may_clobber_ref_p_1): Likewise.
5386         * varasm.c (function_section_1): Likewise.
5387         (assemble_start_function): Likewise.
5388
5389 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5390
5391         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5392         of cgraph_node.
5393         * final.c (rest_of_clean_state): Likewise.
5394         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5395         * passes.c (pass_init_dump_file): Likewise.
5396         (execute_all_ipa_transforms): Likewise.
5397         (function_called_by_processed_nodes_p): Likewise.
5398         * predict.c (maybe_hot_frequency_p): Likewise.
5399         (probably_never_executed_bb_p): Likewise.
5400         (compute_function_frequency): Likewise.
5401         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5402         (unnest_nesting_tree_1): Likewise.
5403         (lower_nested_functions): Likewise.
5404         * tree-optimize.c (execute_fixup_cfg): Likewise.
5405         (tree_rest_of_compilation): Likewise.
5406         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5407         * tree-sra.c (ipa_early_sra): Likewise.
5408         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5409         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5410         * ipa.c (record_cdtor_fn): Likewise.
5411         * ipa-inline.c (cgraph_early_inlining): Likewise.
5412         (compute_inline_parameters_for_current): Likewise.
5413         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5414         * ipa-pure-const.c (local_pure_const): Likewise.
5415         * ipa-split.c (split_function): Likewise.
5416         (execute_split_functions): Likewise.
5417         * cgraphbuild.c (build_cgraph_edges): Likewise.
5418         (rebuild_cgraph_edges): Likewise.
5419         (cgraph_rebuild_references): Likewise.
5420         (remove_cgraph_callee_edges): Likewise.
5421         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5422         (verify_cgraph_node): Likewise.
5423         (cgraph_analyze_functions): Likewise.
5424         (cgraph_preserve_function_body_p): Likewise.
5425         (save_inline_function_body): Likewise.
5426         (save_inline_function_body): Likewise.
5427         * tree-inline.c (copy_bb): Likewise.
5428         (optimize_inline_calls): Likewise.
5429
5430 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5431
5432         PR tree-optimization/48195
5433         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5434         ipa_check_create_edge_args.
5435         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5436         ipa_check_create_edge_args.
5437         * ipa-inline.c (inline_generate_summary): Do not call
5438         ipa_check_create_node_params and ipa_check_create_edge_args.
5439         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5440         ipa_check_create_edge_args.
5441
5442 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5443
5444         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5445         instead of loop.
5446         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5447         * function.c (record_hard_reg_sets): Likewise.
5448         * ira.c (compute_regs_asm_clobbered): Likewise.
5449         * sched-deps.c (sched_analyze_1): Likewise.
5450         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5451
5452 2011-04-09  Xinliang David Li  <davidxl@google.com>
5453
5454         PR tree-optimization/PR48484
5455         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5456         has_valid_pred lazily
5457
5458 2011-04-09  Duncan Sands  <baldrick@free.fr>
5459
5460         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5461
5462 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5463
5464         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5465         cost of I0 to zero at the end, if any.
5466
5467 2011-04-08  Xinliang David Li  <davidxl@google.com>
5468
5469         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5470         to insane profile data.
5471
5472 2011-04-08  Xinliang David Li  <davidxl@google.com>
5473
5474         * ipa-cp.c (ipcp_update_profiling): Correct
5475          negative scale factor due to insane profile data.
5476
5477 2011-04-08  Xinliang David Li  <davidxl@google.com>
5478
5479         * final.c (dump_basic_block_info): New function.
5480         (final): Dump basic block.
5481         (final_scan_insn): Remove old dump.
5482
5483 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5484
5485         PR target/47829
5486         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5487         crtbegin/crtend.
5488
5489 2011-04-08  Michael Matz  <matz@suse.de>
5490
5491         PR middle-end/48389
5492         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5493         functions.
5494         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5495         * rtl.h (rebuild_jump_labels_chain): Declare.
5496         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5497         insns inserted on edges.
5498
5499 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5500
5501         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5502         * config/arm/arm-arches.def: New.
5503         * config/arm/arm-opts.h: New.
5504         * config/arm/genopt.sh: New.
5505         * config/arm/arm-tables.opt: New (generated).
5506         * config/arm/arm.c (arm_handle_option, arm_target_help,
5507         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5508         (all_architectures): Get most table contents from arm-arches.def.
5509         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5510         arm_selected_tune here.
5511         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5512         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5513         (march=, mcpu=, mtune=): Use Enum and Var.
5514         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5515         (arm.o): Update dependencies.
5516
5517 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5518
5519         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5520         of header_file.
5521         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5522         (write_typed_alloc_defns): Likewise.
5523         (main): Calls write_typed_alloc_defns with output_header.
5524
5525 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5526
5527         PR inline-asm/48435
5528         * ira-color.c (setup_profitable_hard_regs): Add comments.
5529         Don't take prohibited hard regs into account.
5530         (setup_conflict_profitable_regs): Rename to
5531         get_conflict_profitable_regs.
5532         (check_hard_reg_p): Check prohibited hard regs.
5533
5534 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5535
5536         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5537         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5538         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5539
5540 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5541
5542         PR target/48366
5543         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5544         move from floating point to shift amount register.
5545         (emit_move_sequence): Remove secondary reload support for floating
5546         point to shift amount amount register copies.
5547         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5548         amount register copies.
5549         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5550         register, return false if mode isn't a scalar integer mode.
5551         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5552
5553 2011-04-08  Richard Guenther  <rguenther@suse.de>
5554
5555         * gimple.c (gimple_call_flags): Remove kludge.
5556
5557 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5558
5559         * sel-sched.c (sel_region_init): Move call to
5560         sel_setup_region_sched_flags after setup_current_loop_nest.
5561
5562 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5563
5564         PR rtl-optimization/48272
5565         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5566         init_insn_reg_pressure_info.  Adjust a caller.
5567         * sched-int.h (init_insn_reg_pressure_info): Declare.
5568         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5569         when sched-pressure is enabled.
5570
5571 2011-04-08  Richard Guenther  <rguenther@suse.de>
5572
5573         * gimple.c (gimple_set_modified): Do not queue calls to
5574         MODIFIED_NORETURN_CALLS here ...
5575         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5576
5577 2011-04-08  Richard Guenther  <rguenther@suse.de>
5578
5579         PR lto/48467
5580         * toplev.c (lang_dependent_init): Do not open asm_out_file
5581         in WPA mode, nor perform debug machinery initialization.
5582         (finalize): Do not unlink asm_out_file in WPA mode.
5583
5584 2011-04-08  Richard Guenther  <rguenther@suse.de>
5585
5586         * gimple.h (gimple_call_fntype): New function.
5587         (gimple_call_return_type): Use it.
5588         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5589         * gimple-low.c (gimple_check_call_args): Likewise.
5590         * gimple.c (gimple_call_flags): Likewise.
5591         (gimple_call_arg_flags): Likewise.
5592         (gimple_call_return_flags): Likewise.
5593         * tree-cfg.c (verify_gimple_call): Likewise.
5594         (do_warn_unused_result): Likewise.
5595         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5596         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5597
5598 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5599
5600         PR rtl-optimization/48235
5601         * sel-sched.c (code_motion_process_successors): Recompute the last
5602         insn in basic block if control flow changed.
5603         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5604         Update condition for ilist_remove.
5605
5606 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5607
5608         PR rtl-optimization/48302
5609         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5610         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5611         it to record added preheader blocks.
5612         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5613         on to sel_add_loop_preheaders.
5614         (sel_region_init): Move call to setup_current_loop_nest after
5615         sel_init_bbs.
5616
5617 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5618
5619         PR target/48273
5620         * cfgloop.h (loop_has_exit_edges): New helper.
5621         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5622         non-clonable.
5623         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5624         that have no exit edges.
5625
5626 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5627
5628         PR rtl-optimization/48442
5629         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5630         all callers.  Adjust assert.
5631
5632 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5633
5634         PR tree-optimization/48377
5635         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5636         is_packed to true even for types with smaller TYPE_ALIGN than
5637         TYPE_SIZE.
5638
5639 2011-04-08  Richard Guenther  <rguenther@suse.de>
5640
5641         PR bootstrap/48513
5642         * doc/tm.texi: Re-generate.
5643
5644 2011-04-08  Wei Guozhi  <carrot@google.com>
5645
5646         PR target/47855
5647         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5648         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5649         * config/arm/arm.md (*push_multi): Change the length computation to
5650         call a C function.
5651
5652 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5653
5654         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5655         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5656         * doc/tm.texi: Regenerate.
5657         * system.h (ASM_OUTPUT_BSS): Poison.
5658         * varasm.c (asm_output_bss): Remove function.
5659         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5660
5661         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5662         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5663         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5664         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5665         Likewise.
5666         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5667         Likewise.
5668         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5669         Likewise.
5670         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5671
5672 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5673
5674         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5675         EnumValue lines.
5676
5677 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5678
5679         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5680         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5681         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5682         OPT_mcpu32.
5683         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5684         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5685         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5686         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5687         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5688         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5689         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5690         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5691         options.  Don't map other m68k options manually.  Don't handle
5692         old-style options as canonical.
5693         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5694         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5695
5696 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5697
5698         * basic-block.h (force_nonfallthru): Move to...
5699         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5700         (force_nonfallthru): ...here.
5701         * cfghooks.c (force_nonfallthru): New function.
5702         * cfgrtl.c (force_nonfallthru): Rename into...
5703         (rtl_force_nonfallthru): ...this.
5704         (commit_one_edge_insertion): Do not set AUX field.
5705         (commit_edge_insertions): Do not discover new basic blocks.
5706         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5707         (cfg_layout_rtl_cfg_hooks): Likewise.
5708         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5709         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5710         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5711
5712 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5713
5714         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5715         Remove macros.
5716
5717 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5718
5719         * config/i386/sse.md: Update copyright year.
5720         (avxcvtvecmode): Remove.
5721         (sse_movhlps): Merge with *avx_movhlps.
5722         (sse_movlhps): Merge with *avx_movlhps.
5723         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5724         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5725         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5726         (sse_loadhps): Merge with *avx_loadhps.
5727         (sse_storelps): Merge with *avx_storelps.
5728         (sse_loadlps): Merge with *avx_loadlps.
5729         (sse_movss): Merge with *avx_movss.
5730         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5731         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5732         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5733         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5734         (vec_set<mode>_0): Ditto.
5735         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5736         (sse4_1_insertps): Merge with *avx_insertps.
5737         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5738         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5739         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5740         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5741         (sse2_storehpd): Merge with *avx_storehpd.
5742         (sse2_loadhpd): Merge with *avx_loadhpd.
5743         (sse2_loadlpd): Merge with *avx_loadlpd.
5744         (sse2_movsd): Merge with *avx_movsd.
5745         (*vec_concatv2df): Merge with *vec_concatv2df.
5746
5747 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5748
5749         PR debug/48343
5750         * combine.c (combine_instructions): Add last_combined_insn,
5751         update it if insn is after it, pass it to all try_combine calls.
5752         (try_combine): Add last_combined_insn parameter, pass it instead of
5753         i3 to propagate_for_debug.
5754
5755 2011-04-07  Nick Clifton  <nickc@redhat.com>
5756
5757         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5758         to handle MDR <-> data register transfers.
5759         (movhi_internal): Likewise.
5760
5761 2011-04-07  Alan Modra  <amodra@gmail.com>
5762
5763         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5764         previous stack info.
5765
5766 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5767
5768         PR target/43920
5769         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5770         flow_find_cross_jump.  Swap variables to implement backward replacement.
5771         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5772
5773 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5774
5775         PR target/43920
5776         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5777         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5778         and bb2.
5779         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5780         src1 or src2.  Redirect edges to the last basic block.  Update
5781         frequency and count on multiple basic blocks in case of fallthru.
5782
5783 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5784
5785         PR target/43920
5786         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5787         function.
5788         (old_insns_match_p): Change return type.  Replace return false/true
5789         with return dir_none/dir_both.  Use can_replace_by.
5790         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5791         direction from dir_p.  Register replacement direction in dir, last_dir
5792         and afterlast_dir.  Handle new return type of old_insns_match_p using
5793         merge_dir.  Return replacement direction in dir_p.
5794         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5795         return type of old_insns_match_p.
5796         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5797         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5798         flow_find_cross_jump.
5799         * basic-block.h (enum replace_direction): New type.
5800         (flow_find_cross_jump): Add parameter to declaration.
5801
5802 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5803
5804         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5805         (AVXMODEDCVTPS2DQ): Ditto.
5806         (VEC_FLOAT_MODE): Ditto.
5807         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5808         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5809         (<any_logic:code><mode>3): Use VF mode iterator.
5810         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5811         Use VF mode iterator.
5812         (copysign<mode>3): Use VF mode iterator.
5813         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5814         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5815         (*<any_logic:code><MODEF:mode>3): Merge with
5816         *avx_<any_logic:code><MODEF:mode>3.
5817         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5818         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5819         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5820         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5821         (sse2_cvtdq2ps): Use %v modifier.
5822         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5823         (avx_cvtps2dq<avxmodesuffix>): Remove.
5824         (sse2_cvtps2dq): Use %v modifier.
5825         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5826         (avx_cvttps2dq<avxmodesuffix>): Remove.
5827         (sse2_cvttps2dq): Use %v modifier.
5828         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5829         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5830         (sse2_cvtsd2siq): Fix insn template.
5831         (sse2_cvtsd2siq_2): Ditto.
5832         (sse2_cvttsd2siq): Ditto.
5833         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5834         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5835
5836 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * gcov-io.c: Use GCC Runtime Library Exception.
5839
5840 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5841
5842         PR debug/48466
5843         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5844         as base_reg whatever register reg has been eliminated to, instead
5845         of hardcoding STACK_POINTER_REGNUM.
5846
5847 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5848
5849         * doc/tm.texi.in: Document C target hooks as separate from general
5850         target hooks.
5851         * doc/tm.texi: Regenerate.
5852         * genhooks.c (struct hook_desc): Add docname field.
5853         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5854         docname field.
5855         (hook_array): Include c-target.def.
5856         (emit_documentation): Use docname field in output.
5857         (emit_init_macros): Take docname argument.  Only emit definitions
5858         for hooks matching docname.
5859         (main): Expect additional arguments in all cases.  Pass argument
5860         to emit_init_macros.
5861         * target.def: Move initial macro definitions and comments to
5862         target-hooks-macros.h.
5863         (gcc_targetcm): Move to c-family/c-target.def.
5864         * target.h (targetcm): Move declaration to c-family/c-target.h.
5865         * targhooks.c (default_handle_c_option): Move to
5866         c-family/c-opts.c.
5867         * targhooks.h (default_handle_c_option): Move declaration to
5868         c-family/c-common.h.
5869         * target-hooks-macros.h: New file.
5870         * config.gcc (target_has_targetcm): Define and use to add to
5871         c_target_objs and cxx_target_objs.
5872         * config/default-c.c: New file.
5873         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5874         of target.h and target-def.h.
5875         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5876         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5877         darwin_check_cfstring_format_arg): Make static.
5878         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5879         TARGET_STRING_OBJECT_REF_TYPE_P,
5880         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5881         * config/darwin-protos.h (darwin_objc_construct_string,
5882         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5883         declare.
5884         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5885         TARGET_STRING_OBJECT_REF_TYPE_P,
5886         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5887         * config/t-darwin (darwin-c.o): Update dependencies.
5888         * system.h (TARGET_HAS_TARGETCM): Poison.
5889         * Makefile.in (TARGET_H): Update.
5890         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5891         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5892         (default-c.o): New target.
5893         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5894         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5895         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5896         c-target.def.
5897         (build/genhooks.o): Update dependencies.
5898
5899 2011-04-06  Richard Guenther  <rguenther@suse.de>
5900
5901         * ipa-inline.c (enum inlining_mode): Remove.
5902         (cgraph_flatten): Use some other token.
5903         (cgraph_edge_early_inlinable_p): New function, split out from ...
5904         (cgraph_perform_always_inlining): New function, split out from ...
5905         (cgraph_decide_inlining_incrementally): ... here.
5906         (cgraph_mark_inline_edge): Adjust.
5907         (cgraph_early_inlining): Re-structure.
5908         (pass_early_inline): Require SSA form.
5909
5910 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5911             Julian Brown  <julian@codesourcery.com>
5912             Mark Shinwell  <shinwell@codesourcery.com>
5913
5914         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5915         LO_REGS only for Thumb-1.
5916         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5917         be used in short instructions when optimising for size on Thumb-2.
5918
5919 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5920
5921         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5922         associated with user returns to be preserved.
5923
5924 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5925
5926         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5927         symbol_queue_size, DBXOUT_DECR_NESTING,
5928         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5929         if XCOFF_DEBUGGING_INFO.
5930
5931 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5932
5933         * config/i386/i386.md (attribute isa): New.
5934         (attribute enabled): New.
5935         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5936         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5937         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5938         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5939         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5940         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5941         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5942         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5943
5944         * config/i386/sse.md (VF): New mode iterator.
5945         (VF1): Ditto.
5946         (VF2): Ditto.
5947         (VF_128): Ditto.
5948         (SSEMODEF4): Remove.
5949         (attribute sse): Handle V8SF and V4DF modes.
5950         (<absneg:code><mode>2): Use VF mode iterator.
5951         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5952         mode iterator.
5953         (<plusminus_insn><mode>3): Use VF mode iterator.
5954         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5955         Use VF mode iterator.
5956         (<sse>_vm<plusminus_insn><mode>3): Merge with
5957         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5958         (mul<mode>3): Use VF mode iterator.
5959         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5960         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5961         mode iterator.
5962         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5963         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5964         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5965         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5966         mode iterator.
5967         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5968         Use VF1 mode iterator.
5969         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5970         (sqrt<VF2:mode>2): New expander.
5971         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5972         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5973         and sqrtv2df2.  Use VF mode iterator.
5974         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5975         mode iterator.
5976         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5977         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5978         Use VF1 mode iterator.
5979         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5980         (<smaxmin:code><mode>3): Use VF mode iterator.
5981         (*<smaxmin:code><mode>3_finite): Merge with
5982         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5983         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5984         (<sse>_vm<smaxmin:code><mode>2): Merge with
5985         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5986         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5987         mode iterator.
5988         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5989         mode iterator.
5990         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5991         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5992         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5993         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5994         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5995         VF mode iterator.
5996         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5997         Use VF_128 mode iterator.
5998         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5999         mode iterator.
6000         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6001         VF_128 mode iterator.
6002         (vcond<mode>): Use VF mode iterator.
6003         * config/i386/predicates.md (sse_comparison_operator): Merge with
6004         avx_comparison_float_operator.  Do not declare as special_predicate.
6005         * config/i386/i386.c (struct builtin_description): Update for renamed
6006         compare patterns.
6007         (ix86_expand_args_builtin): Ditto.
6008         (ix86_expand_sse_compare_mask): Ditto.
6009
6010 2011-04-06  Richard Guenther  <rguenther@suse.de>
6011
6012         * tree-inline.c (estimate_num_insns): For calls simply account
6013         for all passed arguments and a used return value.
6014
6015 2011-04-06  Richard Guenther  <rguenther@suse.de>
6016
6017         PR tree-optimization/47663
6018         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6019         call_stmt_time fields.
6020         (cgraph_edge_inlinable_p): Declare.
6021         (cgraph_edge_recursive_p): New inline function.
6022         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6023         (cgraph_clone_edge): Copy it.
6024         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6025         Account for call stmt time.
6026         (cgraph_estimate_time_after_inlining): Take edge argument.
6027         (cgraph_estimate_edge_growth): Account call stmt size.
6028         (cgraph_estimate_size_after_inlining): Take edge argument.
6029         (cgraph_mark_inline_edge): Adjust.
6030         (cgraph_check_inline_limits): Likewise.
6031         (cgraph_recursive_inlining_p): Remove.
6032         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6033         (cgraph_decide_recursive_inlining): Take edge argument and
6034         adjust.
6035         (cgraph_decide_inlining_of_small_functions): Do not avoid
6036         diags for recursive inlining here.
6037         (cgraph_flatten): Adjust.
6038         (cgraph_decide_inlining_incrementally): Likewise.
6039         (estimate_function_body_sizes): Remove call cost handling.
6040         (compute_inline_parameters): Initialize caller edge call costs.
6041         (cgraph_estimate_edge_growth): New function.
6042         (cgraph_estimate_growth): Use it.
6043         (cgraph_edge_badness): Likewise.
6044         (cgraph_check_inline_limits): Take an edge argument.
6045         (cgraph_decide_inlining_of_small_functions): Adjust.
6046         (cgraph_decide_inlining): Likewise.
6047         * tree-inline.c (estimate_num_insns): Only account for call
6048         return value if it is used.
6049         (expand_call_inline): Avoid diagnostics on recursive inline
6050         functions here.
6051         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6052         (input_edge): Input edge call costs.
6053
6054 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6055
6056         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6057
6058 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6059
6060         * doc/invoke.texi (Spec Files): Fix typo.
6061
6062 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6063
6064         * profile.c (branch_prob): Move declaration of local variable.  Remove
6065         obsolete ??? comment.  Expand the location explicitly instead of using
6066         the LOCATION_FILE and LOCATION_LINE macros.
6067
6068 2011-04-06  Wei Guozhi  <carrot@google.com>
6069
6070         PR target/47855
6071         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6072         (arm_cond_branch): Likewise.
6073         (arm_cond_branch_reversed): Likewise.
6074         (arm_jump): Likewise.
6075         (push_multi): Likewise.
6076         * config/arm/constraints.md (Py): New constraint.
6077
6078 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6079
6080         PR bootstrap/48471
6081         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6082         Move these...
6083         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6084         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6085         #ifdef DBX_DEBUGGING_INFO.
6086
6087 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6088
6089         PR bootstrap/48403
6090         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6091         if old and new states differ.
6092
6093 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6094
6095         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6096         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6097         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6098         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6099         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6100         mcfv4e): Use Alias.
6101         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6102         ColdFire options to -mcpu= options.
6103
6104 2011-04-05  Jeff Law  <law@redhat.com>
6105
6106         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6107         check if BB is a successor of LOOP->header and return
6108         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6109
6110 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6111
6112         * cprop.c (struct reg_use): Remove.
6113         (reg_use_table): Make an array of RTX.
6114         (find_used_regs, constprop_register, local_cprop_pass,
6115         bypass_block): Simplify users of reg_use_table.
6116         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6117         on one of the uses found by find_used_regs.
6118
6119 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6120
6121         PR bootstrap/48469
6122         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6123         declaration.
6124
6125 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6126
6127         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6128         as an rtx.
6129         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6130
6131 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6132
6133         PR middle-end/48441
6134         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6135
6136 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6137
6138         * combine.c: Include obstack.h.
6139         (struct insn_link): Define.
6140         (uid_log_links): Adjust type.
6141         (FOR_EACH_LOG_LINK): New macro.
6142         (insn_link_obstack): Declare.
6143         (alloc_insn_link): Define.
6144         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6145         type of link variables.
6146         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6147         (try_combine, record_promoted_values, distribute_notes): Likewise.
6148         (distribute_links): Likewise.  Tweak prototype.
6149         (clear_log_links): Delete.
6150         (adjust_for_new_dest): Call alloc_insn_link.
6151         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6152
6153 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6154
6155         * gcse.c (modify_mem_list): Convert to an array of VECs.
6156         (canon_modify_mem_list, compute_transp): Tweak formatting.
6157         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6158         (load_killed_in_block_p): Likewise.
6159         (record_last_mem_set_info): Likewise.
6160         (clear_modify_mem_tables): Likewise.
6161
6162 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6163
6164         PR middle-end/48461
6165         * function.c (emit_use_return_register_into_block): Only define if
6166         HAVE_return.
6167
6168 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6169
6170         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6171
6172 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6173
6174         * config/rx/rx-opts.h: New.
6175         * config/rx/rx.c (rx_cpu_type): Remove.
6176         (rx_handle_option): Don't assert that global structures are in
6177         use.  Access variables via opts pointer.  Defer most handling of
6178         OPT_mint_register_.  Use error_at.
6179         (rx_option_override): Handle deferred OPT_mint_register_ here.
6180         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6181         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6182         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6183         (rx_cpu_types): New Enum and EnumValue entries.
6184         (mint-register=): Use Defer and use Var accordingly.
6185
6186 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6187
6188         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6189         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6190         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6191         Move these...
6192         (debug_free_queue, debug_nesting, symbol_queue_index):
6193         ...and these...
6194         * dbxout.c: ...to here.  Make static.
6195
6196 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6197
6198         * gcse.c (modify_pair): Define.  Define a VEC of it.
6199         (canon_modify_mem_list): Convert to an array of VECs.
6200         (free_insn_expr_list_list): Delete.
6201         (clear_modify_mem_tables): Call VEC_free instead.
6202         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6203         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6204         (canon_list_insert, compute_transp): Likewise.
6205
6206 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6207
6208         PR target/43920
6209         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6210         for size.
6211
6212 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6213
6214         PR target/43920
6215         * function.c (emit_use_return_register_into_block): New function.
6216         (thread_prologue_and_epilogue_insns): Use
6217         emit_use_return_register_into_block.
6218
6219 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6220
6221         PR target/43920
6222         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6223         insn.
6224
6225 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6226
6227         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6228
6229 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6230
6231         * config/arm/arm.md (define_constants for unspec): Replace with
6232         define_c_enum.
6233         (define_constants for unspecv): Replace with define_c_enum.
6234         * config/arm/neon.md (define_constants for unspec): Replace with
6235         define_c_enum.
6236
6237 2011-04-04  Richard Henderson  <rth@redhat.com>
6238
6239         PR bootstrap/48400
6240         * dwarf2out.c (output_line_info): Always emit line info from
6241         at least one section.
6242         (dwarf2out_init): Create text_section_line_info here ...
6243         (set_cur_line_info_table): ... not here.
6244
6245 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6246
6247         PR target/48380
6248         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6249         not called.
6250
6251         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6252
6253 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6254
6255         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6256         (expr_equiv_p): Remove.
6257         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6258         (hash_scan_set): Update call to insert_set_in_table.
6259         (dump_hash_table): Dump <dest, src> pair.
6260         (lookup_set): Simplify.  Lookup <dest, src> pair.
6261         (compute_transp): Remove, fold heavily simplified code into...
6262         (compute_local_properties): ...here.  Expect COMP and TRANSP
6263         unconditionally.
6264         (find_avail_set): Take set directly from struct expr.
6265         (find_bypass-set): Likewise.
6266         (bypass_block): Likewise.
6267         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6268
6269         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6270         checks on form of COND from find_implicit_sets to here.
6271         (find_implicit_sets): Cleanup control flow. Split critical edges
6272         if it exposes implicit sets.  Allocate/resize implicit_sets as
6273         necessary.
6274         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6275         changed something.  Run df_analyze after find_implicit_sets if any
6276         edges were split.  Do not allocate implicit_sets here.
6277
6278         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6279         (gcse_obstack): Renamed to cprop_obstack.
6280         (GNEW, GNEWVEC, GNEWVAR): Remove.
6281         (gmalloc): Remove.
6282         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6283         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6284         (gcse_alloc): Likewise, and rename to cprop_alloc.
6285         (alloc_gcse_men, free_gcse_mem): Remove.
6286         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6287         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6288         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6289
6290         * cprop.c (oprs_not_set_p): Remove.
6291         (mark_set, mark_clobber): Remove.
6292         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6293         (reg_not_set_p): New function.
6294         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6295         (cprop_insn): Likewise.
6296         (cprop_jump): Use FOR_EACH_EDGE.
6297
6298 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6299
6300         PR bootstrap/48403
6301         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6302         (rank_for_schedule): Use scheduled_insns vector instead of
6303         last_scheduled_insn.
6304         (ok_for_early_queue_removal): Likewise.
6305         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6306         we have a dbg_cnt.
6307         (choose_ready): Likewise.
6308         (commit_schedule): Use VEC_iterate.
6309         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6310         a dbg_cnt, use it and ensure the first insn is in the ready list.
6311         (haifa_sched_init): Allocate scheduled_insns.
6312         (sched_extend_ready_list): Don't allocate it; reserve space.
6313         (haifa_sched_finish): Free it.
6314
6315 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6316
6317         * optc-gen.awk: Always remove type from Variable entry before
6318         recording in var_seen.
6319
6320 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6321
6322         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6323         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6324         call to tidy_fallthru_edges.
6325
6326 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6327
6328         * doc/options.texi (ToLower): Document.
6329         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6330         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6331         * opts.h (cl_option): Add cl_tolower field.
6332         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6333         arguments with lowercase strings.
6334         * config/rx/rx.opt (mcpu=): Add ToLower.
6335         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6336         argument.
6337
6338 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6339
6340         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6341
6342 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6343
6344         * config/vax/vax.c: Include reload.h.
6345
6346 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6347
6348         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6349         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6350         (sparc_preferred_reload_class): New function.
6351
6352 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6353
6354         PR debug/48401
6355         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6356         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6357
6358 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6359
6360         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6361         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6362
6363 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6364
6365         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6366         (ASM_OUTPUT_ALIGNED_BSS): Define.
6367
6368 2011-04-03  Michael Matz  <matz@suse.de>
6369
6370         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6371         and next_slot members.
6372         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6373         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6374         (lto_streamer_cache_append): Declare.
6375         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6376         unsigned index, remove offset parameter, ensure that we append
6377         or update existing entries.
6378         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6379         parameter, update next_slot for append.
6380         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6381         parameter.
6382         (lto_streamer_cache_insert_at): Likewise.
6383         (lto_streamer_cache_append): New function.
6384         (lto_streamer_cache_lookup): Use unsigned index.
6385         (lto_streamer_cache_get): Likewise.
6386         (lto_record_common_node): Don't test tree_node_can_be_shared.
6387         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6388         (lto_streamer_cache_delete): Don't free offsets member.
6389         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6390         (lto_output_string_with_length): Use lto_output_data_stream.
6391         (lto_output_tree_header): Remove ix parameter, don't write it.
6392         (lto_output_builtin_tree): Likewise.
6393         (lto_write_tree): Adjust callers to above, don't track and write
6394         offset, write unsigned index.
6395         (output_unreferenced_globals): Don't emit all global vars.
6396         (write_global_references): Use unsigned indices.
6397         (lto_output_decl_state_refs): Likewise.
6398         (write_symbol): Likewise.
6399         * lto-streamer-in.c (lto_input_chain): Move earlier.
6400         (input_function): Use unsigned index.
6401         (input_alias_pairs): Don't read and then ignore all global vars.
6402         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6403         don't pass it back, use lto_streamer_cache_append.
6404         (lto_register_var_decl_in_symtab): Use unsigned index.
6405         (lto_register_function_decl_in_symtab): Likewise.
6406         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6407         index.
6408         (lto_get_builtin_tree): Don't read index, use
6409         lto_streamer_cache_append.
6410         (lto_read_tree): Adjust call to lto_materialize_tree.
6411
6412         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6413         don't use function calls in arguments to MIN.
6414
6415         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6416         twice.
6417
6418         * gimple.c (gimple_type_leader_entry): Mark deletable.
6419
6420 2011-04-03  Alan Modra  <amodra@gmail.com>
6421
6422         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6423
6424 2011-04-03  Michael Matz  <matz@suse.de>
6425
6426         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6427         an integer.
6428         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6429
6430 2011-04-03  Michael Matz  <matz@suse.de>
6431
6432         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6433         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6434         without function context.
6435         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6436         current_function_decl and cfun.
6437
6438 2011-04-03  Michael Matz  <matz@suse.de>
6439
6440         * tree.c (decl_init_priority_insert): Don't create entry for
6441         default priority.
6442         (decl_fini_priority_insert): Ditto.
6443         (fields_compatible_p, find_compatible_field): Remove.
6444         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6445         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6446
6447 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6448
6449         * combine.c (try_combine): Remove useless local variable.
6450
6451 2011-04-03  Richard Guenther  <rguenther@suse.de>
6452             Ira Rosen  <ira.rosen@linaro.org>
6453
6454         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6455         non-variable offsets and compare the remaining bases of the two
6456         accesses instead of looking for exact same data-ref.
6457
6458 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6459
6460         PR target/48416
6461         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6462
6463         * i386.c (ix86_is_msabi_thiscall): New helper function.
6464         (ix86_is_type_thiscall): New helper function.
6465         (ix86_comp_type_attributes): Handle thiscall for method-functions
6466         special.
6467         (init_cumulative_args): Likewise.
6468         (find_drap_reg): Likewise.
6469         (ix86_static_chain): Likewise.
6470         (x86_this_parameter): Likewise.
6471         (x86_output_mi_thunk): Likewise.
6472
6473 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6474             Nicolas Setton  <setton@adacore.com>
6475             Eric Botcazou  <ebotcazou@adacore.com>
6476
6477         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6478         (add_gnat_descriptive_type_attribute): New function.
6479         (gen_array_type_die): Call it.
6480         (gen_enumeration_type_die): Likewise.
6481         (gen_struct_or_union_type_die): Likewise.
6482         (modified_type_die): Likewise.
6483         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6484         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6485         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6486
6487 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6488
6489         PR bootstrap/48148
6490         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6491         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6492
6493         Revert:
6494         2011-03-17  Richard Guenther  <rguenther@suse.de>
6495
6496         PR bootstrap/48148
6497         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6498         origin for decls in other ltrans units.
6499         (input_varpool_node): Likewise.
6500
6501 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6502
6503         PR middle-end/48335
6504         * expr.c (expand_assignment): Handle all possibilities
6505         if TO_RTX is CONCAT.
6506         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6507         (store_split_bit_field): If SUBREG_REG (op0) or
6508         op0 itself has smaller mode than word, return it
6509         for offset 0 and const0_rtx for out-of-bounds stores.
6510         If word is const0_rtx, skip it.
6511
6512 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6513
6514         * config/h8300/h8300.c (print_operand_address): Rename to...
6515         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6516         Call h8300_print_operand and h8300_print_operand_address instead of
6517         print_operand and print_operand_address. Declare.
6518         (print_operand): Renake to...
6519         (h8300_print_operand): ...this. Make static. Adjust comments.
6520         Call h8300_print_operand instead of print_operand. Declare.
6521         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6522         (h8300_register_move_cost): Likewise.
6523         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6524         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6525         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6526         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6527         * config/h8300/h8300-protos.h (print_operand): Delete.
6528         (print_operand_address): Delete.
6529
6530 2011-04-01  Richard Henderson  <rth@redhat.com>
6531
6532         PR 48400
6533         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6534         in strict mode before dwarf4.  Re-order tests to early out
6535         before switching sections.
6536
6537 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6538
6539         * config/h8300/constraints.md: New file.
6540         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6541         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6542         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6543         * config/h8300/predicates.md (bit_operand): Likewise.
6544         (incdec_operand): Use satisfies_constraint_M and
6545         satisfies_constraint_O.  Don't use C code block.
6546         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6547         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6548         (compute_mov_length): Use satisfies_constraint_G.
6549         (fix_bit_operand): Use satisfies_constraint_U.
6550         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6551         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6552         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6553         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6554         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6555         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6556         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6557         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6558         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6559         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6560         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6561         (EXTRA_MEMORY_CONSTRAINT): Delete.
6562
6563 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6564             Michael Meissner  <meissner@linux.vnet.ibm.com>
6565
6566         PR target/48262
6567         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6568         operands, as per the specifications.
6569
6570         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6571         (vec_extract_evenv4sf): Ditto.
6572         (vec_extract_evenv8hi): Ditto.
6573         (vec_extract_evenv16qi): Ditto.
6574         (vec_extract_oddv4si): Ditto.
6575
6576 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6577
6578         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6579         high_pc attribute if the CU has no associated code. Only output
6580         DW_AT_entry_pc for CU if not generating strict dwarf and
6581         dwarf_version < 4.
6582
6583 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6584
6585         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6586         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6587         out of ...
6588         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6589         * final.c (final_start_function): Call the new function rather
6590         than using a NULL argument for dwarf2out_frame_debug.
6591
6592         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6593         that contains the prologue.
6594
6595         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6596         changed.  Print it in debugging output.
6597
6598         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6599
6600         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6601         Split most of the code into...
6602         (begin_move_insn): ... here.  New function.
6603         (ebb_sched_info): Add a pointer to it.
6604         * haifa-sched.c (scheduled_insns): New static variable.
6605         (sched_extend_ready_list): Allocate it.
6606         (schedule_block): Use it to record the order of scheduled insns.
6607         Perform RTL changes to move insns only after all scheduling
6608         decisions have been made.
6609         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6610         begin_move_insn field.
6611         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6612         * sched-int.h (struct haifa_sched_info): Remove second argument
6613         from begin_schedule_ready hook.  Add new member begin_move_insn.
6614         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6615         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6616
6617         * haifa-sched.c (prune_ready_list): New function, broken out of
6618         schedule_block.
6619         (schedule_block): Use it.
6620
6621 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6622
6623         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6624
6625 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6626
6627         * config.gcc (*-*-mingw*): Allow as option the
6628         posix threading model.
6629         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6630         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6631         definition.
6632         (CPP_SPEC): Add pthread/no-pthread handling.
6633         (LIB_SPEC): Likewise.
6634         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6635         (LIB_SPEC): Likewise.
6636         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6637         flag to pass -pthread option for shared libgcc build.
6638         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6639         for shared libgcc build.
6640         * config/i386/t-mingw-pthread: New file.
6641         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6642         New define to enable use of library pthread by default.
6643         * config/i386/mingw.opt (pthread): New driver option.
6644         (no-pthread): New driver option.
6645         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6646         * config/i386/mingw-w64.opt: Likewise.
6647
6648 2011-04-01  Gary Funck  <gary@intrepid.com>
6649
6650         * c-decl.c (grokdeclarator): Fix formatting.
6651
6652 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6653
6654         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6655         instead of n_operands.
6656         (set_storage_via_setmem): Likewise.
6657         * optabs.c (maybe_gen_insn): Likewise.
6658         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6659         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6660         (mips_expand_builtin_direct): Likewise.
6661         * config/spu/spu.c (expand_builtin_args): Likewise.
6662
6663 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6664
6665         * recog.h (insn_data_d): Add n_generator_args.
6666         * genoutput.c (data): Likewise.
6667         (output_insn_data): Print it.
6668         (max_opno, num_dups): Delete.
6669         (scan_operands): Just fill in "d->operand[...]".
6670         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6671
6672 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6673
6674         * gensupport.h (pattern_stats): New structure.
6675         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6676         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6677         (max_operand_1, max_operand_vec): Delete.
6678         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6679
6680 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6681
6682         * emit-rtl.c (emit_pattern_after_setloc): New function.
6683         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6684         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6685         (emit_pattern_after): New function.
6686         (emit_insn_after, emit_jump_insn_after): Call it.
6687         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6688         (emit_pattern_before_setloc): New function.
6689         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6690         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6691         Likewise.
6692         (emit_pattern_before): New function.
6693         (emit_insn_before, emit_jump_insn_before): Call it.
6694         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6695
6696 2011-03-31  Richard Henderson  <rth@redhat.com>
6697
6698         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6699         (dw_separate_line_info_entry): Remove.
6700         (enum dw_line_info_opcode): New.
6701         (dw_line_info_entry): Use it.
6702         (dw_line_info_table, dw_line_info_table_p): New.
6703         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6704         (line_info_table, line_info_label_num): Remove.
6705         (line_info_table_in_use): Remove.
6706         (separate_line_info_table): Remove.
6707         (separate_line_info_table_allocated): Remove.
6708         (separate_line_info_table_in_use): Remove.
6709         (LINE_INFO_TABLE_INCREMENT): Remove.
6710         (line_info_label_num): New.
6711         (cur_line_info_table): New.
6712         (text_section_line_info, cold_text_section_line_info): New.
6713         (separate_line_info): New.
6714         (SEPARATE_LINE_CODE_LABEL): Remove.
6715         (print_dwarf_line_table): Remove.
6716         (debug_dwarf): Don't dump it.
6717         (output_one_line_info_table): New.
6718         (output_line_info): Use it.
6719         (new_line_info_table): New.
6720         (set_cur_line_info_table): New.
6721         (dwarf2out_switch_text_section): Use it.
6722         (dwarf2out_begin_function): Likewise.
6723         (push_dw_line_info_entry): New.
6724         (dwarf2out_source_line): Rewrite for new line info tables.
6725         (dwarf2out_init): Remove dead initailizations.
6726
6727 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6728
6729         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6730         various flags.
6731         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6732         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6733         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6734         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6735         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6736         * opt-functions.awk (flag_init, switch_bit_fields): New.
6737         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6738         generate CL_MISSING_OK or CL_SAVE.
6739         * optc-gen.awk: Update to generate bit-field output as well as
6740         flags field.
6741         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6742         bit-field instead of CL_REJECT_DRIVER flag.
6743         * opts-common.c (generate_canonical_option,
6744         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6745         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6746         instead of CL_REJECT_NEGATIVE flag.
6747         * toplev.c (print_switch_values): Use cl_report bit-field instead
6748         of CL_REPORT flag.
6749
6750 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6751
6752         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6753         a zero minimum index only if it is redundant.
6754
6755 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6756
6757         PR rtl-optimization/48381
6758         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6759         instead of ira_class_hard_reg_index for calculating conflicting
6760         hard registers.
6761
6762 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6763
6764         * cprop.c: Clean up hash table building.
6765         (reg_avail_info): Remove.
6766         (oprs_available_p): Remove.
6767         (record_last_reg_set_info): Remove.
6768         (record_last_set_info): Remove.
6769         (reg_available_p): New function.
6770         (gcse_constant_p): Do not treat unfolded conditions as constants.
6771         (make_set_regs_unavailable): New function.
6772         (hash_scan_set): Simplify with new reg_available_p.
6773         (compute_hash_table_work): Traverse insns stream only once.
6774         Do not compute reg_avail_info. Traverse insns in reverse order.
6775         Record implicit sets after recording explicit sets from the block.
6776
6777 2011-03-31  Michael Matz  <matz@suse.de>
6778
6779         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6780
6781 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6782
6783         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6784         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6785         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6786         (h8300_mode_dependent_address_p): New function.
6787         (h8300_get_index): Make static.
6788
6789 2011-03-31  Jeff Law  <law@redhat.com>
6790
6791         * reload1.c (elimination_effects): Fix typo in recent change.
6792
6793         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6794         typo potentially leading to null pointer dereference.
6795
6796         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6797         (setup_save_areas): Corresponding changes to avoid useless
6798         assignments.
6799
6800         * jump.c (reversed_comparison_code_parts): Avoid successive return
6801         statements when REVERSE_CONDITION is defined.
6802
6803         * expr.c (expand_assignment): Avoid useless assignments.
6804         (expand_expr_real_1): Likewise.
6805         (expand_expr_real_2): Avoid useless statements.
6806
6807         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6808
6809         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6810
6811         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6812         statements.
6813
6814         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6815
6816 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6817
6818         PR target/47109
6819         * doc/tm.texi.in (TARGET_VERSION): Remove.
6820         * doc/tm.texi: Regenerate.
6821         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6822         * collect2.c (main): Don't use TARGET_VERSION.
6823         * mips-tdump.c (main): Don't use TARGET_VERSION.
6824         * mips-tfile.c (main): Don't use TARGET_VERSION.
6825         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6826         * config/rs6000/vxworksae.h: Remove.
6827         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6828         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6829         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6830         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6831         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6832         * config/arm/arm.h (TARGET_VERSION): Remove.
6833         * config/arm/coff.h (TARGET_VERSION): Remove.
6834         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6835         * config/arm/elf.h (TARGET_VERSION): Remove.
6836         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6837         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6838         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6839         * config/arm/pe.h (TARGET_VERSION): Remove.
6840         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6841         * config/arm/semi.h (TARGET_VERSION): Remove.
6842         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6843         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6844         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6845         * config/avr/avr.h (TARGET_VERSION): Remove.
6846         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6847         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6848         * config/frv/frv.h (TARGET_VERSION): Remove.
6849         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6850         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6851         * config/i386/darwin.h (TARGET_VERSION): Remove.
6852         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6853         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6854         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6855         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6856         * config/i386/gnu.h (TARGET_VERSION): Remove.
6857         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6858         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6859         * config/i386/linux.h (TARGET_VERSION): Remove.
6860         * config/i386/linux64.h (TARGET_VERSION): Remove.
6861         * config/i386/lynx.h (TARGET_VERSION): Remove.
6862         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6863         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6864         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6865         * config/i386/netware.h (TARGET_VERSION): Remove.
6866         * config/i386/nto.h (TARGET_VERSION): Remove.
6867         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6868         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6869         * config/ia64/elf.h (TARGET_VERSION): Remove.
6870         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6871         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6872         * config/ia64/linux.h (TARGET_VERSION): Remove.
6873         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6874         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6875         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6876         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6877         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6878         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6879         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6880         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6881         * config/m68k/linux.h (TARGET_VERSION): Remove.
6882         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6883         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6884         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6885         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6886         * config/mep/mep.h (TARGET_VERSION): Remove.
6887         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6888         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6889         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6890         * config/mips/linux.h (TARGET_VERSION): Remove.
6891         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6892         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6893         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6894         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6895         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6896         * config/pa/pa.h (TARGET_VERSION): Remove.
6897         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6898         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6899         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6900         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6901         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6902         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6903         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6904         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6905         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6906         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6907         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6908         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6909         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6910         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6911         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6912         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6913         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6914         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6915         * config/s390/linux.h (TARGET_VERSION): Remove.
6916         * config/s390/s390.h (TARGET_VERSION): Remove.
6917         * config/s390/tpf.h (TARGET_VERSION): Remove.
6918         * config/score/score.h (TARGET_VERSION): Remove.
6919         * config/sh/linux.h (TARGET_VERSION): Remove.
6920         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6921         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6922         * config/sh/sh.h (TARGET_VERSION): Remove.
6923         * config/sh/sh64.h (TARGET_VERSION): Remove.
6924         * config/sh/superh.h (TARGET_VERSION): Remove.
6925         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6926         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6927         * config/sparc/linux.h (TARGET_VERSION): Remove.
6928         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6929         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6930         TARGET_NAME32, TARGET_NAME): Remove.
6931         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6932         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6933         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6934         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6935         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6936         * config/spu/spu.h (TARGET_VERSION): Remove.
6937         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6938         * config/v850/v850.h (TARGET_VERSION): Remove.
6939         * config/vax/linux.h (TARGET_VERSION): Remove.
6940         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6941         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6942         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6943
6944 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6945
6946         PR target/48142
6947         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6948         frame-related from frame-unrelated adjustments to the stack pointer.
6949
6950 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6951
6952         * common.opt (fdebug-types-section): Move earlier.
6953         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6954
6955 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6956
6957         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6958         var.
6959
6960 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6961
6962         * tree.h (CASE_CHAIN): Define.
6963         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6964         (gimple_redirect_edge_and_branch): Likewise.
6965
6966 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6967
6968         PR middle-end/48367
6969         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6970         calculation.
6971
6972 2011-03-30  Jeff Law  <law@redhat.com>
6973
6974         * PR bootstrap/48371
6975         * reload1.c (reload): Fix botch in last change.
6976
6977         * reload.h (struct reload): Fix typo introduced in last change.
6978
6979 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6980
6981         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6982         Undocumented.  Remove help text.
6983         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6984         -mhard-float.
6985
6986 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6987
6988         * doc/options.texi (NegativeAlias): Document.
6989         (Alias): Mention NegativeAlias.
6990         * opt-functions.awk: Handle NegativeAlias.
6991         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6992         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6993         * opts.h (CL_NEGATIVE_ALIAS): Define.
6994         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6995         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6996         OPT_mspe_.
6997         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6998         Alias entries.
6999         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7000         mno-spe and mno-isel instead of mspe=no and -misel=no.
7001
7002 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7003
7004         * common.opt (fdebug-types-section): New flag.
7005         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7006         * dwarf2out.c (use_debug_types): New define.
7007         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7008         (print_die): Guard output of type unit signatures using
7009         use_debug_types.
7010         (build_abbrev_table): Replace assert of dwarf_version >= 4
7011         with assert on use_debug_types.
7012         (size_of_die): Likewise.
7013         (unmark_dies): Likewise.
7014         (value_format): Decide AT_ref_external form on use_debug_types.
7015         (output_die): Replace dwarf_version version check guard with
7016         use_debug_types where appropriate.
7017         (modified_type_die): Likewise.
7018         (gen_reference_type_die): Likewise.
7019         (dwarf2out_start_source_file): Likewise.
7020         (dwarf2out_end_source_file): Likewise.
7021         (prune_unused_types_walk_attribs): Likewise.
7022         (dwarf2out_finish): Likewise.
7023
7024 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7025
7026         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7027
7028 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7029
7030         PR rtl-optimization/48332
7031         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7032         mode of input operand N and modeN to its actual mode.
7033
7034 2011-03-30  Jeff Law  <law@redhat.com>
7035
7036         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7037         define accessor macro.
7038         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7039         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7040         (reg_equiv_init): Likewise.
7041         (reg_equivs_size): New variable.
7042         (reg_equiv_init_size): Remove.
7043         (allocate_initial_values): Move prototype to here from....
7044         * integrate.h (allocate_initial_values): Remove prototype.
7045         * integrate.c: Include reload.h.
7046         (allocate_initial_values): Corresponding changes.
7047         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7048         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7049         (update_equiv_regs): Corresponding changes.
7050         (ira): Corresponding changes.
7051         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7052         (push_secondary_reload): Corresponding changes.
7053         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7054         (make_memloc, find_reloads_address): Corresponding changes.
7055         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7056         (find_reloads_address_1): Corresponding changes.
7057         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7058         (refers_to_regno_for_reload_p): Corresponding changes.
7059         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7060         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7061         * reload1.c: Include ggc.h.
7062         (grow_reg_equivs): New function.
7063         (replace_pseudos_in, reload): Corresponding changes.
7064         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7065         (eliminate_regs_1, elimination_effects): Corresponding changes.
7066         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7067         (delete_output_reload): Likewise.
7068         * caller-save.c (mark_referenced_regs): Corresponding changes.
7069         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7070         * frv/predicates.md (frv_load_operand): Corresponding changes.
7071         * microblaze/microblaze.c (double_memory_operand): Corresponding
7072         changes.
7073         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7074         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7075         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7076         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7077         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7078         changes.
7079         * pa/pa.c (emit_move_sequence): Corresponding changes.
7080         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7081
7082 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7083
7084         PR target/47551
7085         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7086         structure modes.  Don't check neon_vector_mem_operand for
7087         vector or structure modes.
7088
7089 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7090             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7091
7092         PR target/43590
7093         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7094         operand 1 and reshuffle the operands to match.
7095         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7096
7097 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7098
7099         PR driver/48208
7100         * config/c.opt (F): Added 'Driver' to -F option.
7101
7102         PR driver/48260
7103         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7104           handler function.
7105         * config/darwin.opt: Added '-arch' option.
7106
7107 2011-03-30  Nick Clifton  <nickc@redhat.com>
7108
7109         * config/rx/rx.md: Add peepholes and patterns to combine
7110         extending loads and simple arithmetic instructions.
7111         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7112         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7113         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7114         modes to use pre-decrement and post-increment addressing.
7115         (rx_is_restricted_memory_address): Add range checking of REG+INT
7116         addresses.
7117         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7118         (rx_memory_move_cost): Adjust cost of stores.
7119         (rx_adjust_insn_length): New function.
7120
7121 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7122
7123         PR c/48305
7124         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7125         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7126         matching arg00/arg01 types.
7127
7128 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7129
7130         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7131         last_location to UNKNOWN_LOCATION.
7132
7133 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7134
7135         PR target/48349
7136         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7137         FLOAT_SSE_REGS.
7138
7139 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7140             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7141
7142         PR bootstrap/48337
7143         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7144         Init(PROCESSOR_V7).
7145         (sparc_cpu): Likewise.
7146         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7147         PROCESSOR_V7.
7148
7149 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7150
7151         PR target/48336
7152         PR middle-end/48342
7153         PR rtl-optimization/48345
7154         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7155         hard regs for given mode from profitable regs when doing secondary
7156         allocation.
7157
7158 2011-03-29  Jeff Law  <law@redhat.com>
7159
7160         PR bootstrap/48327
7161         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7162         do_not_duplicate field.
7163         (lookup_redirection_data): Corresponding changes.
7164         (create_duplicates): Always create a template block.
7165         (redirect_edges): Remove code which reused the original block
7166         when it was going to become unreachable code.
7167         (thread_block): Don't set do_not_duplicate field.
7168
7169 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7170
7171         * lto-opts.c (register_user_option_p, lto_register_user_option):
7172         Make type argument unsigned.
7173         * lto-streamer.h (lto_register_user_option): Make type argument
7174         unsigned.
7175         * opth-gen.awk: Make CL_* macros unsigned.
7176         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7177         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7178         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7179         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7180         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7181         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7182         (find_opt): Make lang_mask argument unsigned.
7183
7184 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7185
7186         PR rtl-optimization/48331
7187         PR rtl-optimization/48334
7188         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7189         for any used algorithm.
7190
7191 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7192
7193         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7194         to parent_max.
7195
7196 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7197
7198         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7199         (alpha_option_override): Don't set alpha_sr_alias_set.
7200         (emit_frame_store_1): Use gen_frame_mem rather than calling
7201         set_mem_alias_set.
7202         (alpha_expand_epilogue): Ditto.
7203
7204 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7205
7206         PR tree-optimization/48290
7207         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7208         vectorization, check that relevant phis in the basic block after
7209         the inner loop are really inner loop's exit phis.
7210
7211 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7212
7213         PR debug/48190
7214         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7215         (cached_dw_loc_list_def): New structure.
7216         (cached_dw_loc_list): New typedef.
7217         (cached_dw_loc_list_table): New variable.
7218         (cached_dw_loc_list_table_hash): New function.
7219         (cached_dw_loc_list_table_eq): Likewise.
7220         (add_location_or_const_value_attribute): Take a bool cache_p.
7221         Cache the list when the parameter is true.
7222         (gen_formal_parameter_die): Update caller.
7223         (gen_variable_die): Likewise.
7224         (dwarf2out_finish): Likewise.
7225         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7226         while generating debug info for the decl.
7227         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7228         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7229         (resolve_addr): Cache the result of resolving a chain of
7230         location lists.
7231
7232 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7233
7234         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7235         conflict object hard regset nodes have intersecting hard reg sets.
7236
7237         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7238         after regstat_init_n_sets_and_refs.
7239
7240         * ira.c: Add more comments at the top.
7241         (setup_stack_reg_pressure_class, setup_pressure_classes):
7242         Add comments how we compute the register pressure classes.
7243         (setup_allocno_and_important_classes): Add more comments.
7244         (setup_class_translate_array, reorder_important_classes)
7245         (setup_reg_class_relations): Add comments.
7246
7247         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7248         start of the file.
7249
7250         * ira-color.c: Add 2011 to the Copyright line.
7251         (assign_hard_reg):  Add more comments.
7252         (improve_allocation): Ditto.
7253
7254         * ira-costs.c: Add 2011 to the Copyright line.
7255         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7256         comments.
7257         (setup_regno_cost_classes_by_mode): Ditto.
7258
7259         Initial patches from ira-improv branch:
7260
7261         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7262
7263         * ira-build.c (ira_create_object): Remove initialization of
7264         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7265         (ira_create_allocno): Remove initialization of
7266         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7267         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7268         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7269         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7270         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7271         Initialize ALLOCNO_ADD_DATA.
7272         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7273         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7274         ALLOCNO_REG.
7275         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7276         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7277
7278         * ira.c (ira_reallocate): Remove.
7279         (setup_pressure_classes): Call
7280         ira_init_register_move_cost_if_necessary.  Use
7281         ira_register_move_cost instead of ira_get_register_move_cost.
7282         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7283         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7284
7285         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7286         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7287         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7288         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7289         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7290         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7291         Fix formatting.
7292         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7293         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7294         (struct allocno_color_data): New.
7295         (allocno_color_data_t): New typedef.
7296         (allocno_color_data): New definition.
7297         (ALLOCNO_COLOR_DATA): New macro.
7298         (struct object_color_data): New.
7299         (object_color_data_t): New typedef.
7300         (object_color_data): New definition.
7301         (OBJECT_COLOR_DATA): New macro.
7302         (update_copy_costs, calculate_allocno_spill_cost): Call
7303         ira_init_register_move_cost_if_necessary.  Use
7304         ira_register_move_cost instead of ira_get_register_move_cost.
7305         (move_spill_restore, update_curr_costs): Ditto.
7306         (allocno_spill_priority): Make it inline.
7307         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7308         (struct coalesce_data, coalesce_data_t): New.
7309         (allocno_coalesce_data): New definition.
7310         (ALLOCNO_COALESCE_DATA): New macro.
7311         (merge_allocnos, coalesced_allocno_conflict_p): Use
7312         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7313         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7314         (coalesce_allocnos): Ditto.
7315         (setup_coalesced_allocno_costs_and_nums): Ditto.
7316         (collect_spilled_coalesced_allocnos): Ditto.
7317         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7318         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7319         (coalesce_spill_slots): Ditto.
7320         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7321         free allocno_coalesce_data.
7322
7323         * ira-conflicts.c: Fix formatting.
7324         (process_regs_for_copy): Call
7325         ira_init_register_move_cost_if_necessary.  Use
7326         ira_register_move_cost instead of ira_get_register_move_cost.
7327         (build_object_conflicts): Optimize.
7328
7329         * ira-costs.c (record_reg_classes): Optimize.  Call
7330         ira_init_register_move_cost_if_necessary.  Use
7331         ira_register_move_cost, ira_may_move_in_cost, and
7332         ira_may_move_out_cost instead of ira_get_register_move_cost and
7333         ira_get_may_move_cost.
7334         (record_address_regs): Ditto.
7335         (scan_one_insn): Optimize.
7336         (find_costs_and_classes): Optimize.
7337         (process_bb_node_for_hard_reg_moves): Call
7338         ira_init_register_move_cost_if_necessary.  Use
7339         ira_register_move_cost instead of ira_get_register_move_cost.
7340
7341         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7342         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7343         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7344         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7345         definitions.
7346         (ira_initiate_emit_data, ira_finish_emit_data)
7347         (create_new_allocno): New functions.
7348         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7349         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7350         Use ira_register_move_cost instead of ira_get_register_move_cost.
7351
7352         * ira-int.h: Fix some comments.
7353         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7354         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7355         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7356         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7357         add_data.
7358         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7359         bitfield after mode.  Make hard_regno a short int.  Make
7360         hard_regno short.  Remove first_coalesced_allocno and
7361         next_coalesced_allocno.  Move mem_optimized_dest_p,
7362         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7363         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7364         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7365         temp, colorable_p.  Add new member add_data.
7366         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7367         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7368         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7369         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7370         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7371         (ALLOCNO_ADD_DATA): New macro.
7372         (ira_emit_data_t): New typedef.
7373         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7374         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7375         from struct ira_allocno.
7376         (ALLOCNO_EMIT_DATA): New macro.
7377         (ira_allocno_emit_data, allocno_emit_reg): New.
7378         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7379         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7380         (OBJECT_ADD_DATA): New macro.
7381         (ira_reallocate): Remove.
7382         (ira_initiate_emit_data, ira_finish_emit_data): New.
7383         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7384         (ira_init_register_move_cost_if_necessary): New.
7385         (ira_object_conflict_iter_next): Merge into
7386         ira_object_conflict_iter_cond.
7387         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7388
7389         * ira-live.c (process_single_reg_class_operands): Call
7390         ira_init_register_move_cost_if_necessary.  Use
7391         ira_register_move_cost instead of ira_get_register_move_cost.
7392
7393         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7394
7395         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7396
7397         * ira-costs.c: Fix formatting.
7398         (cost_classes, cost_classes_num): Remove.
7399         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7400         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7401         (cost_classes_del, cost_classes_htab): New.
7402         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7403         (initiate_regno_cost_classes, setup_cost_classes): New.
7404         (setup_regno_cost_classes_by_aclass): New.
7405         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7406         (record_reg_classes): Use regno_cost_classes instead of
7407         cost_classes.  Move checking opposite operand up.
7408         (record_address_regs): Use regno_cost_classes
7409         instead of cost_classes.
7410         (scan_one_insn): Ditto.  Use always general register.
7411         (print_allocno_costs): Use regno_cost_classes instead of
7412         cost_classes.
7413         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7414         (find_costs_and_classes): Set up cost classes for each registers.
7415         Use also their mode for this.  Use regno_cost_classes instead of
7416         cost_classes.
7417         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7418         cost_classes.
7419         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7420         (ira_costs, ira_set_pseudo_classes): Call
7421         initiate_regno_cost_classes and finish_regno_cost_classes.
7422
7423         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7424
7425         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7426
7427         * target.def (ira_cover_classes): Remove.
7428
7429         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7430
7431         * doc/tm.texi.in: Ditto.
7432
7433         * ira-conflicts.c: Remove mentioning cover classes from the file.
7434         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7435         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7436
7437         * targhooks.c (default_ira_cover_classes): Remove.
7438
7439         * targhooks.h (default_ira_cover_classes): Ditto.
7440
7441         * haifa-sched.c: Remove mentioning cover classes from the file.
7442         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7443         ira_pressure_classes and ira_pressure_classes_num instead of
7444         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7445         sched_regno_pressure_class instead of sched_regno_cover_class.
7446         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7447         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7448
7449         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7450         classes from the file.
7451         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7452         (struct object_hard_regs, struct object_hard_regs_node): New.
7453         (struct ira_object): New members profitable_hard_regs,
7454         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7455         (struct ira_allocno): Rename cover_class to aclass.  Rename
7456         cover_class_cost and updated_cover_class_cost to class_cost and
7457         updated_class_cost.  Remove splay_removed_p and
7458         left_conflict_size.  Add new members colorable_p.
7459         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7460         (ALLOCNO_COLORABLE_P): New macro.
7461         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7462         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7463         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7464         (OBJECT_...): Rename parameter C to O.
7465         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7466         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7467         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7468         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7469         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7470         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7471         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7472         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7473         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7474         x_ira_reg_class_subunion.
7475         (ira_max_memory_move_cost, ira_max_register_move_cost)
7476         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7477         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7478         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7479         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7480         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7481         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7482         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7483         (ira_tune_allocno_costs_and_cover_classes): Rename to
7484         ira_tune_allocno_costs.
7485         (ira_debug_hard_regs_forest): New.
7486         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7487         (ira_object_conflict_iter_next): Fix comments.
7488         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7489         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7490         cover_class to aclass.
7491         (ira_allocate_and_accumulate_costs): Ditto.
7492         (ira_allocate_and_set_or_copy_costs): Ditto.
7493
7494         * opts.c (decode_options): Remove ira_cover_class check.
7495
7496         * ira-color.c: Remove mentioning cover classes from the file.  Use
7497         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7498         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7499         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7500         (splay-tree.h): Remove include.
7501         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7502         before copy_freq_compare_func.
7503         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7504         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7505         New definitions.
7506         (hard_regs_roots, hard_regs_node_vec): Ditto.
7507         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7508         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7509         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7510         (create_new_object_hard_regs_node): Ditto.
7511         (add_new_object_hard_regs_node_to_forest): Ditto.
7512         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7513         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7514         Ditto.
7515         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7516         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7517         (remove_unused_object_hard_regs_nodes): Ditto.
7518         (enumerate_object_hard_regs_nodes): Ditto.
7519         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7520         (object_hard_regs_subnode_t): Ditto.
7521         (struct object_hard_regs_subnode): Ditto.
7522         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7523         (setup_object_hard_regs_subnode_index): Ditto.
7524         (get_object_hard_regs_subnodes_num): Ditto.
7525         (form_object_hard_regs_nodes_forest): Ditto.
7526         (finish_object_hard_regs_nodes_tree): Ditto.
7527         (finish_object_hard_regs_nodes_forest): Ditto.
7528         (allocnos_have_intersected_live_ranges_p): Rename to
7529         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7530         (pseudos_have_intersected_live_ranges_p): Rename to
7531         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7532         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7533         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7534         (update_copy_costs): Remove assert.  Skip cost update if the hard
7535         reg does not belong the class.
7536         (assign_hard_reg): Process only profitable hard regs.
7537         (uncolorable_allocnos_num): Make it scalar.
7538         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7539         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7540         and ira_reg_class_max_nregs.
7541         (bucket_allocno_compare_func): Check frequency first.
7542         (sort_bucket): Add compare function as a parameter.
7543         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7544         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7545         (push_allocno_to_stack): Rewrite for checking new allocno
7546         colorability.
7547         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7548         (push_only_colorable): Pass new parameter to sort_bucket.
7549         (push_allocno_to_spill): Remove.
7550         (allocno_spill_priority_compare): Make it inline and rewrite.
7551         (splay_tree_allocate, splay_tree_free): Remove.
7552         (allocno_spill_sort_compare): New function.
7553         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7554         build and use splay tree.  Choose first allocno in uncolorable
7555         allocno bucket to spill.  Remove setting spill cost.
7556         (all_conflicting_hard_regs): Remove.
7557         (setup_allocno_available_regs_num): Check only profitable hard
7558         regs.  Print info about hard regs nodes.
7559         (setup_allocno_left_conflicts_size): Remove.
7560         (put_allocno_into_bucket): Don't call
7561         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7562         (improve_allocation): New.
7563         (color_allocnos): Call setup_profitable_hard_regs,
7564         form_object_hard_regs_nodes_forest, improve_allocation,
7565         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7566         (print_loop_title): Use pressure classes.
7567         (color_allocnso): Ditto.
7568         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7569         and allocnos_for_spilling.
7570         (ira_sort_regnos_for_alter_reg): Don't setup members
7571         {first,next}_coalesced_allocno.
7572         (color): Remove allocating and freeing removed_splay_allocno_vec.
7573         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7574         prohibited_class_mode_regs.
7575
7576         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7577         formatting.
7578         (update_allocno_pressure_excess_length): Use pressure classes.
7579         (inc_register_pressure, dec_register_pressure): Check for pressure
7580         class.
7581         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7582         pressure class.  Use ira_reg_class_nregs instead of
7583         ira_reg_class_max_nregs.
7584         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7585         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7586         (single_reg_class): Use ira_reg_class_nregs instead of
7587         ira_reg_class_max_nregs.
7588         (process_bb_node_lives): Use pressure classes.
7589
7590         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7591         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7592         (change_loop): Use pressure classes.
7593         (modify_move_list): Call ira_set_allocno_class instead of
7594         ira_set_allocno_cover_class.
7595
7596         * ira-build.c: Remove mentioning cover classes from the file.  Use
7597         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7598         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7599         ALLOCNO_UPDATED_CLASS_COST instead of
7600         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7601         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7602         (ira_create_allocno): Remove initialization of
7603         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7604         ALLOCNO_COLORABLE_P.
7605         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7606         Update conflict regs for the objects.
7607         (create_cap_allocno): Remove assert.  Don't propagate
7608         ALLOCNO_AVAILABLE_REGS_NUM.
7609         (ira_free_allocno_costs): New function.
7610         (finish_allocno): Change a part of code into call of
7611         ira_free_allocno_costs.
7612         (low_pressure_loop_node_p): Use pressure classes.
7613         (object_range_compare_func): Don't compare classes.
7614         (setup_min_max_conflict_allocno_ids): Ditto.
7615
7616         * loop-invariant.c: Remove mentioning cover classes from the file.
7617         Use ira_pressure_classes and ira_pressure_classes_num instead of
7618         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7619         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7620         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7621         Use reg_allocno_class instead of reg_cover_class.
7622         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7623         STACK_REG_COVER_CLASS.
7624         (get_regno_cover_class): Rename to get_regno_pressure_class.
7625         (move_loop_invariants): Initialize and finalize regstat.
7626
7627         * ira.c: Remove mentioning cover classes from the file.  Add
7628         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7629         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7630         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7631         setup_class_subset_and_memory_move_costs.
7632         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7633         (setup_cover_and_important_classes): Rename to
7634         setup_allocno_and_important_classes.
7635         (setup_class_translate_array): New.
7636         (setup_class_translate): Call it for allocno and pressure classes.
7637         (cover_class_order): Rename to allocno_class_order.
7638         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7639         of ira_class_translate.
7640         (reorder_important_classes): Set up ira_important_class_nums.
7641         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7642         (print_class_cover): Rename to print_classes.  Add parameter.
7643         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7644         Print pressure classes too.
7645         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7646         setup_reg_subclasses.
7647         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7648         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7649         (setup_prohibited_class_mode_regs): Use
7650         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7651         (clarify_prohibited_class_mode_regs): New function.
7652         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7653         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7654         (ira_init_once): Initialize them.
7655         (free_register_move_costs): Process them.
7656         (ira_init): Move calls of find_reg_classes and
7657         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7658         Call clarify_prohibited_class_mode_regs.
7659         (ira_no_alloc_reg): Remove.
7660         (too_high_register_pressure_p): Use pressure classes.
7661
7662         * sched-deps.c: Remove mentioning cover classes from the file.
7663         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7664         ira_pressure_classes and ira_pressure_classes_num instead of
7665         ira_reg_class_cover_size and ira_reg_class_cover.
7666         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7667         sched_regno_pressure_class instead of sched_regno_cover_class.
7668         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7669         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7670
7671         * ira.h: Add 2010 to Copyright.
7672         (ira_no_alloc_reg): Remove external.
7673         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7674         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7675         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7676         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7677         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7678         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7679         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7680         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7681         x_ira_no_alloc_regs.
7682         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7683         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7684         ira_allocno_classes_num and ira_allocno_classes.
7685         (ira_class_translate): Rename to ira_allocno_class_translate.
7686         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7687         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7688         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7689         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7690         (ira_no_alloc_regs): New.
7691
7692         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7693         classes from the file.  Use ALLOCNO_CLASS instead of
7694         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7695         ALLOCNO_COVER_CLASS_COST.
7696         (regno_cover_class): Rename to regno_aclass.
7697         (record_reg_classes): Use ira_reg_class_subunion instead of
7698         ira_reg_class_union.
7699         (record_address_regs): Check overflow.
7700         (scan_one_insn): Ditto.
7701         (print_allocno_costs): Print total mem cost fore regional allocation.
7702         (print_pseudo_costs): Use REG_N_REFS.
7703         (find_costs_and_classes): Use classes intersected with them on the
7704         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7705         ira_reg_class_union.  Use ira_allocno_class_translate and
7706         regno_aclass instead of ira_class_translate and regno_cover_class.
7707         Modify code for finding regno_aclass.  Setup preferred classes for
7708         the next pass.
7709         (setup_allocno_cover_class_and_costs): Rename to
7710         setup_allocno_class_and_costs.  Use regno_aclass instead of
7711         regno_cover_class.  Use ira_set_allocno_class instead of
7712         ira_set_allocno_cover_class.
7713         (init_costs, finish_costs): Use regno_aclass instead of
7714         regno_cover_class.
7715         (ira_costs): Use setup_allocno_class_and_costs instead of
7716         setup_allocno_cover_class_and_costs.
7717         (ira_tune_allocno_costs_and_cover_classes): Rename to
7718         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7719         by processing objects.  Use ira_reg_class_max_nregs instead of
7720         ira_reg_class_nregs.
7721
7722         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7723
7724         * sched-int.h: Remove mentioning cover classes from the file.
7725         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7726
7727         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7728         classes from the file.
7729         (struct reg_pref): Rename coverclass into allocnoclass.
7730         (reg_cover_class): Rename to reg_allocno_class.
7731
7732         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7733
7734         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7735
7736         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7737
7738         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7739
7740         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7741
7742         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7743
7744         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7745
7746         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7747
7748         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7749
7750         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7751
7752         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7753         (i386_ira_cover_classes): Ditto.
7754
7755         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7756
7757         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7758
7759         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7760
7761         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7762
7763         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7764
7765         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7766
7767         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7768         (mips_ira_cover_classes): Ditto.
7769
7770         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7771
7772         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7773
7774         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7775
7776         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7777
7778         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7779
7780         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7781         (IRA_COVER_CLASSES_VSX): Ditto.
7782
7783         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7784         (rs6000_ira_cover_classes): Ditto.
7785
7786         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7787
7788         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7789
7790         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7791
7792         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7793
7794         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7795
7796         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7797
7798         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7799
7800         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7801
7802         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7803
7804         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7805
7806 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7807
7808         PR debug/48253
7809         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7810         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7811         dw_fde_unlikely_section_end_label, cold_in_std_section,
7812         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7813         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7814         fields.
7815         (output_fde): Use dw_fde_second_{begin,end} if second is
7816         true, otherwise dw_fde_{begin,end}.
7817         (output_call_frame_info): Test dw_fde_second_begin != NULL
7818         instead of dw_fde_switched_sections.
7819         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7820         fields, initialize new fields.  Initialize in_std_section
7821         unconditionally from the first partition.
7822         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7823         dw_fde_second_begin is non-NULL.
7824         (dwarf2out_switch_text_section): Stop initializing removed
7825         dw_fde_struct fields, initialize new fields, initialize
7826         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7827         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7828         (struct var_loc_list_def): Add last_before_switch field.
7829         (arange_table, arange_table_allocated, arange_table_in_use,
7830         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7831         (size_of_aranges): Count !in_std_section and !second_in_std_section
7832         hunks in fdes, instead of looking at arange_table_in_use.
7833         (output_aranges): Add aranges_length argument, don't call
7834         size_of_aranges here.  Instead of using aranges_table*
7835         emit ranges for fdes when !in_std_section resp.
7836         !second_in_std_section.
7837         (dw_loc_list): Break ranges crossing section switch.
7838         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7839         use dw_fde_second_end instead of dw_fde_end as end of last range.
7840         (gen_subprogram_die): Don't call add_arange.  Use
7841         dw_fde_{begin,end} for first partition and if switched
7842         section dw_fde_second_{begin,end} for the second.
7843         (var_location_switch_text_section_1,
7844         var_location_switch_text_section): New functions.
7845         (dwarf2out_begin_function): Initialize cold_text_section even
7846         when function_section () isn't text_section.
7847         (prune_unused_types): Don't walk arange_table.
7848         (dwarf2out_finish): Don't needlessly test
7849         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7850         If info_section_emitted, call size_of_aranges and if it indicates
7851         non-empty .debug_aranges, call output_aranges with the computed
7852         size.  Stop using removed dw_fde_struct fields, use
7853         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7854         for second.
7855
7856         PR debug/48203
7857         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7858         create ENTRY_VALUE if incoming or address of incoming's MEM
7859         is a hard REG.
7860         * dwarf2out.c (mem_loc_descriptor): Don't emit
7861         DW_OP_GNU_entry_value of DW_OP_fbreg.
7862         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7863         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7864         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7865         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7866         ENTRY_VALUE_EXPs.
7867         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7868         is a REG_P or MEM_P with REG_P address, compute hash directly
7869         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7870         (preserve_only_constants): Don't clear VALUES forwaring
7871         ENTRY_VALUE to some other VALUE.
7872
7873 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7874
7875         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7876         instead of GEN_INT.
7877
7878 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7879
7880         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7881         block before expanding the statement.
7882         (expand_gimple_stmt_1): Likewise.  Set them here...
7883         (expand_gimple_stmt): ...and not here.  Tidy.
7884         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7885         unknown.
7886
7887 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7888
7889         * Makefile.in: New rule for cprop.o.
7890         * gcse.c: Move constant/copy propagation to cprop.c.
7891         (compute_local_properties): Only handle expression tables.
7892         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7893         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7894         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7895         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7896         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7897         compute_cprop_data, find_used_regs, try_replace_reg,
7898         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7899         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7900         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7901         find_bypass_set, reg_killed_on_edge, bypass_block,
7902         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7903         execute_rtl_cprop, pass_rtl_cprop): Move to...
7904         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7905         moved from gcse.c to here with minor cleanups in duplicated code.
7906
7907 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7908
7909         * config/i386/i386.c (flag_opts): Fix a typo in
7910         -mavx256-split-unaligned-store.
7911
7912 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7913
7914         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7915         LIBCALL_VALUE): Remove macros.
7916         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7917         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7918         (h8300_function_value, h8300_libcall_value,
7919         h8300_function_value_regno_p): New functions.
7920
7921 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7922
7923         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7924
7925 2011-03-28  Jeff Law  <law@redhat.com>
7926
7927         * tree-ssa-threadupdate.c (redirect_edges): Call
7928         create_edge_and_update_destination_phis as needed.
7929         (create_edge_and_update_destination_phis): Accept new BB argument.
7930         All callers updated.
7931         (thread_block): Do not update the profile when threading around
7932         intermediate blocks.
7933         (thread_single_edge): Likewise.
7934         (determine_bb_domination_status): If BB is not a successor of the
7935         loop header, return NONDOMINATING.
7936         (register_jump_thread): Note when we register a jump thread around
7937         an intermediate block.
7938         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7939         (thread_across_edge): Use it.
7940
7941 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7942
7943         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7944         when for_return is 2.
7945
7946 2011-03-28  Jeff Law  <law@redhat.com>
7947
7948         * var-tracking.c (canonicalize_values_mark): Delete unused
7949         lhs assignment.
7950         (canonicalize_values_star, set_variable_part): Likewise.
7951         (clobber_variable_part, delete_variable_part): Likewise.
7952
7953 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7954
7955         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7956
7957 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7958
7959         * tree-inline.c (expand_call_inline): Do not check that destination
7960         node is analyzed.
7961         (optimize_inline_calls): Assert that destination node is analyzed.
7962         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7963         not call tree_lowering_passes.
7964         * cgraph.h (cgraph_analyze_function): Declare.
7965         * cgraphunit.c (cgraph_analyze_function): Make public.
7966
7967 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7968
7969         * config/sparc/sparc-opts.h: New.
7970         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7971         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7972         (sparc_option_override): Store processor_type enumeration rather
7973         than string in cpu_default.  Remove name and enumeration from
7974         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7975         without using sparc_select.  Use target_flags_explicit instead of
7976         fpu_option_set.
7977         * config/sparc/sparc.h (enum processor_type): Move to
7978         sparc-opts.h.
7979         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7980         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7981         HeaderInclude entry.
7982         (mcpu=, mtune=): Use Var and Enum.
7983         (sparc_processor_type): New Enum and EnumValue entries.
7984
7985 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7986             Iain Sandoe  <iains@gcc.gnu.org>
7987
7988         PR target/48245
7989         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7990
7991 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7992
7993         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7994         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7995         Insert new statements at it in lieu of STMT.
7996         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7997         * tree-vect-stmts.c (vectorizable_store): Likewise.
7998         (vectorizable_load): Likewise.
7999
8000 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8001
8002         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8003         (divtf3): Ditto.
8004         (multf3): Ditto.
8005         (subtf3): Ditto.
8006
8007 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8010         unaligned 256bit load/store.
8011         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8012         (*avx_movdqu<avxmodesuffix>): Likewise.
8013
8014 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8015
8016         PR target/48288
8017         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8018         * config/pa/pa.md (iordi3): Use new predicate in expander.
8019         (iorsi3): Likewise.
8020
8021 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8022
8023         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8024         FUNCTION_VALUE_REGNO_P): Remove macros.
8025         * config/mips/mips-protos.h (mips_function_value): Remove.
8026         * config/mips/mips.c (mips_function_value): Rename to...
8027         (mips_function_value_1): ... this. Make static.  Handle receiving
8028         the function type in 'fn_decl_or_type' argument.
8029         (mips_function_value, mips_libcall_value,
8030         mips_function_value_regno_p): New function.
8031         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8032         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8033
8034 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8035
8036         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8037         and -mavx256-split-unaligned-store.
8038         (ix86_option_override_internal): Split 32-byte AVX unaligned
8039         load/store by default.
8040         (ix86_avx256_split_vector_move_misalign): New.
8041         (ix86_expand_vector_move_misalign): Use it.
8042
8043         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8044         -mavx256-split-unaligned-store.
8045
8046         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8047         256bit load/store.  Generate unaligned store on misaligned memory
8048         operand.
8049         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8050         256bit load/store.
8051         (*avx_movdqu<avxmodesuffix>): Likewise.
8052
8053         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8054         -mavx256-split-unaligned-store.
8055
8056 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8057
8058         PR target/38598
8059         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8060         Update commentary.
8061
8062 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8063
8064         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8065         opno arguments with an expand_operand.  Use create_input_operand.
8066         (mips_prepare_builtin_target): Delete.
8067         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8068         functions.
8069         (mips_expand_builtin_direct): Use create_output_operand and
8070         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8071         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8072         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8073
8074 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8075
8076         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8077         function.
8078         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8079
8080 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8081
8082         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8083         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8084         basic blocks and call commit_edge_insertions directly.
8085         (fixup_abnormal_edges): Move from here to...
8086         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8087         on the edges and return whether some have actually been inserted.
8088         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8089         compensation code.
8090
8091 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8092
8093         PR rtl-optimization/48144
8094         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8095         (merge_expr_data): ... here.
8096         (av_set_intersect): Rename to av_set_code_motion_filter.
8097         Update all callers.  Call merge_history_vect when an expression
8098         is found in both sets.
8099         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8100
8101 2011-03-26  Alan Modra  <amodra@gmail.com>
8102
8103         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8104         cmodel medium addresses.
8105         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8106         64-bit gpr loads and stores.
8107         (rs6000_secondary_reload_ppc64): New function.
8108         * config/rs6000/rs6000-protos.h: Declare it.
8109         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8110
8111 2011-03-26  Alan Modra  <amodra@gmail.com>
8112
8113         PR target/47487
8114         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8115         GNU Go in traceback table.
8116
8117 2011-03-25  Richard Henderson  <rth@redhat.com>
8118
8119         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8120         if there are exactly 6 operands.
8121         (set_storage_via_setmem): Similarly.
8122
8123 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8124
8125         * collect2.c (write_c_file_stat): Handle backslash
8126         as right-hand directory separator.
8127         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8128         checking just for slash.
8129         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8130         instead of checking for trailing slash.
8131         * gcc.c (record_temp_file): Use filename_cmp instead
8132         of strcmp.
8133         (do_spec_1): Likewise.
8134         (replace_outfile_spec_function): Likewise.
8135         (is_directory): Use filename_ncmp instead of strncmp.
8136         (print_multilib_info): Likewise.
8137         * gcov.c (find_source): Use filename_cmp instead
8138         instead of strcmp.
8139         (make_gcov_file_name): Fix order of slash/backslash
8140         checks.
8141         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8142         (add_standard_paths): Likewise.
8143         * mips-tfile.c (saber_stop): Handle backslash.
8144         * prefix.c (update_path): Use filename_ncmp instead of
8145         strncmp.
8146         * profile.c (output_location): Use filename_cmp instead
8147         of strcmp.
8148         * read-md.c (handle_toplevel_file): Handle backslash.
8149         * tlink.c (frob_extension):  Likewise.
8150         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8151         strcmp.
8152         * tree-dump.c (dequeue_and_dump): Handle backslash.
8153         * tree.c (get_file_function_name): Likewise.
8154         * gengtype.c (read_input_list): Likewise.
8155         (get_file_realbasename): Likewise.
8156         (get_output_file_with_visibility): Use filename_cmp
8157         instead of strcmp.
8158
8159 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8160
8161         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8162         case to VFPv1.
8163
8164 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8165
8166         * fold-const.c (expr_location_or): New function.
8167         (fold_truth_not_expr): Call it.
8168
8169 2011-03-25  Jeff Law  <law@redhat.com>
8170
8171         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8172         va_end.
8173         * c-family/c-common.c (def_fn_type): Likewise.
8174         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8175         * emit-rtl.c (gen_rtvec): Likewise.
8176         * lto/lto-lang.c (def_fn_type): Likewise.
8177
8178 2011-03-25  Richard Guenther  <rguenther@suse.de>
8179
8180         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8181         also generate copies.
8182         (fini_copy_prop): Handle constant values properly.
8183
8184 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8185
8186         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8187         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8188         (hash_loc_operands, compare_loc_operands): Handle
8189         DW_OP_GNU_entry_value.
8190
8191 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8192
8193         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8194         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8195         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8196         comment and use macro TARGET_64BIT_MS_ABI instead.
8197         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8198         and change default behavior for 32-bit MS_ABI.
8199         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8200         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8201         32-bit, too.
8202         (ix86_cfun_abi): Likewise.
8203         (ix86_maybe_switch_abi): Adjust comment.
8204         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8205         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8206         instead of checking for SYSV_ABI.
8207         (ix86_nsaved_sseregs): Likewise.
8208         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8209         to 16 bytes.
8210         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8211         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8212         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8213         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8214         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8215
8216 2011-03-25  Richard Guenther  <rguenther@suse.de>
8217
8218         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8219         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8220         (verify_gimple): Remove.
8221         * tree-cfg.c (verify_gimple_call): Merge verification
8222         from verify_stmts.
8223         (verify_gimple_phi): Merge verification from verify_stmts.
8224         (verify_gimple_label): New function.
8225         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8226         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8227         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8228         (verify_stmts): Rename to verify_gimple_in_cfg.
8229         (verify_gimple_in_cfg): New function.
8230         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8231         * tree-ssa.c (verify_ssa): Likewise.
8232         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8233
8234 2011-03-25  Richard Guenther  <rguenther@suse.de>
8235
8236         * passes.c (init_optimization_passes): Add FRE pass after
8237         early SRA.
8238
8239 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8240             Andrew Stubbs  <ams@codesourcery.com>
8241
8242         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8243         for Cortex-A8.
8244         (arm_movdi_vfp_cortexa8): New pattern.
8245         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8246         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8247         instructions when tuning for Cortex-A8.  Set attribute "arch".
8248         * config/arm/arm.md: Move include arm-tune.md up a bit.
8249         (define_attr "arch"): Add "onlya8" and "nota8" values.
8250         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8251
8252 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8253
8254         PR bootstrap/48282
8255         Revert:
8256         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8257
8258         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8259         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8260         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8261         * passes.c (init_optimization_passes): Move
8262         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8263
8264 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8265
8266         * c-typeck.c (comptypes_internal): Replace target
8267         hook call of comp_type_attributes by version in tree.c file.
8268         * gimple.c (gimple_types_compatible_p_1): Likewise.
8269         * tree-ssa.c (useless_type_conversion_p): Likewise.
8270         * tree.c (build_type_attribute_qual_variant): Likewise.
8271         (attribute_value_equal): New static helper function.
8272         (comp_type_attributes): New function.
8273         (merge_attributes): Use attribute_value_equal for comparison.
8274         (attribute_list_contained): Likewise.
8275         * tree.h (comp_type_attributes): New prototype.
8276
8277 2011-03-25  Richard Guenther  <rguenther@suse.de>
8278
8279         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8280         of complex types at -O0.
8281         (verify_gimple_assign_binary): Likewise.
8282         (verify_gimple_assign_ternary): Likewise.
8283
8284 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8285
8286         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8287         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8288
8289 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8290
8291         PR debug/48041
8292         * dwarf2out.c (output_abbrev_section): Only write table when
8293         abbrev_die_table_in_use > 1.
8294
8295 2011-02-24  Richard Henderson  <rth@redhat.com>
8296
8297         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8298         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8299         (alpha_expand_unaligned_load_words): Use extql.
8300         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8301         (emit_insxl): Handle all modes for consistency.
8302
8303 2011-02-24  Richard Henderson  <rth@redhat.com>
8304
8305         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8306         (alpha_expand_unaligned_load): Likewise.
8307         (alpha_expand_unaligned_store): Likewise.
8308         (alpha_expand_unaligned_load_words): Likewise.
8309         (alpha_expand_unaligned_store_words): Likewise.
8310         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8311         (alpha_split_lock_test_and_set_12): Likewise.
8312         (print_operand, alpha_fold_builtin_extxx): Likewise.
8313         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8314         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8315         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8316         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8317         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8318         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8319         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8320         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8321         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8322         (extwl, extll, extql): Similarly.
8323         (inswh, inslh, insqh): Similarly.
8324         (mskbl, mskwl, mskll, mskql): Similarly.
8325         (mskwh, msklh, mskqh): Similarly.
8326
8327 2011-02-24  Richard Henderson  <rth@redhat.com>
8328
8329         * config/alpha/alpha.md (attribute isa): Add er, ner.
8330         (attribute enabled): Handle them.
8331         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8332
8333 2011-02-24  Richard Henderson  <rth@redhat.com>
8334
8335         * config/alpha/alpha.md (attribute isa): Add vms.
8336         (attribute enabled): Handle it.
8337         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8338         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8339         (*movtf): Rename from *movtf_internal for consistency.
8340         (*movsi): Merge with *movsi_nt_vms.
8341         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8342         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8343         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8344         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8345
8346 2011-02-24  Richard Henderson  <rth@redhat.com>
8347
8348         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8349         (extendqisi2, extendhisi2): Likewise.
8350         (extendqidi2): Simplify BWX/non-BWX expansions.
8351         (extendhidi2): Similarly.
8352
8353 2011-02-24  Richard Henderson  <rth@redhat.com>
8354
8355         * config/alpha/alpha.md (attribute isa): New.
8356         (attribute enabled): New.
8357         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8358         (zero_extendqisi2, zero_extendqidi2): Similarly.
8359         (zero_extendhisi2, zero_extendhidi2): Similarly.
8360         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8361
8362 2011-02-24  Richard Henderson  <rth@redhat.com>
8363
8364         * config/alpha/predicates.md (input_operand): Revert last change;
8365         update comment to mention 32-bit VMS rather than Windows.
8366
8367 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8368
8369         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8370         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8371         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8372         * passes.c (init_optimization_passes): Move
8373         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8374
8375 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8376
8377         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8378
8379 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8382         correctly.
8383
8384 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8385
8386         PR debug/48204
8387         * simplify-rtx.c (simplify_const_unary_operation): Call
8388         real_convert when changing mode class with FLOAT_EXTEND.
8389
8390 2011-03-24  Nick Clifton  <nickc@redhat.com>
8391
8392         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8393         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8394         * config/rx/rx.c (rx_option_override): Set align_jumps,
8395         align_loops and align_labels if not set by the user.
8396         (rx_align_for_label): New function.
8397         (rx_max_skip_for_label): New function.
8398         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8399         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8400         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8401         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8402         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8403
8404 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8405
8406         PR rtl-optimization/48263
8407         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8408         and original commutative_p handling.  Use maybe_gen_insn.
8409
8410 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8411
8412         * reload.c (find_reloads_subreg_address): Add address_reloaded
8413         parameter and return true there if the full address has been
8414         reloaded.
8415         (find_reloads_toplev): Pass address_reloaded flag.
8416         (find_reloads_address_1): Don't use address_reloaded parameter.
8417
8418 2011-03-24  Jeff Law  <law@redhat.com>
8419
8420         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8421         unused variable "ann".
8422         (remove_unused_locals): Likewise.
8423
8424         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8425         statement.
8426
8427         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8428         after it is freed.
8429
8430 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8431
8432         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8433         for invalid symbolic addresses.
8434         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8435         larl operands.
8436
8437 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8438
8439         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8440         the argument in calls to fold_truth_not_expr.
8441
8442 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8443
8444         * tree.c (record_node_allocation_statistics): New function.
8445         (make_node_stat, copy_node_stat, build_string): Call it.
8446         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8447         (build1_stat, build_omp_clause): Likewise.
8448
8449 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8450
8451         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8452         last commit.
8453
8454 2011-03-24  Richard Guenther  <rguenther@suse.de>
8455
8456         PR tree-optimization/48271
8457         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8458         blocks that still exist.
8459
8460 2011-03-24  Richard Guenther  <rguenther@suse.de>
8461
8462         PR tree-optimization/48270
8463         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8464         not free datarefs before ddrs.
8465
8466 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8467
8468         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8469         from the address built for a reference with variable offset.
8470
8471 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8472
8473         PR target/48237
8474         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8475         alternatives that can be handled with movq or movabsq insn.
8476         (*movdf_internal): Disable for !TARGET_64BIT.
8477         (*movdf_internal_nointeger): Ditto.
8478         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8479
8480 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8481
8482         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8483         (FUNCTION_ARG_ADVANCE): Likewise.
8484         * tm.texi.in: Change references to them to hook references.
8485         * tm.texi: Regenerate.
8486         * targhooks.c (default_function_arg): Eliminate check for target macro.
8487         (default_function_incoming_arg): Likewise.
8488         (default_function_arg_advance): Likewise.
8489         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8490         (function_arg_advance): Likewise.
8491         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8492
8493 2011-03-24  Richard Guenther  <rguenther@suse.de>
8494
8495         PR middle-end/48269
8496         * tree-object-size.c (addr_object_size): Do not double-account
8497         for MEM_REF offsets.
8498
8499 2011-03-24  Diego Novillo  <dnovillo@google.com>
8500
8501         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8502         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8503         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8504         Update all users.
8505         (lto_input_string): Rename from input_string.  Make extern.
8506         Update all users.
8507         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8508         output_string_with_length.
8509         Output 0 to indicate a non-NULL string.  Update all callers to
8510         not emit 0.
8511         (lto_output_string): Rename from output_string.  Make extern.
8512         Update all users.
8513         (lto_output_decl_state_streams): Make extern.
8514         (lto_output_decl_state_refs): Make extern.
8515         * lto-streamer.h (lto_input_string): Declare.
8516         (lto_input_data_block): Declare.
8517         (lto_output_string): Declare.
8518         (lto_output_string_with_length): Declare.
8519         (lto_output_decl_state_streams): Declare.
8520         (lto_output_decl_state_refs): Declare.
8521
8522 2011-03-24  Richard Guenther  <rguenther@suse.de>
8523
8524         PR tree-optimization/46562
8525         * tree.c (build_invariant_address): New function.
8526         * tree.h (build_invariant_address): Declare.
8527         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8528         a renamed function moved ...
8529         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8530         Take valueization callback parameter.
8531         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8532         * gimple-fold.h: New file.
8533         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8534         (ccp_fold, fold_const_aggregate_ref,
8535         fold_ctor_reference, fold_nonarray_ctor_reference,
8536         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8537         get_base_constructor): Move ...
8538         * gimple-fold.c: ... here.
8539         (gimple_fold_stmt_to_constant_1): New function
8540         split out from ccp_fold.  Take a valueization callback parameter.
8541         Valueize all operands.
8542         (gimple_fold_stmt_to_constant): New wrapper function.
8543         (fold_const_aggregate_ref_1): New function split out from
8544         fold_const_aggregate_ref.  Take a valueization callback parameter.
8545         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8546         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8547         invariant POINTER_PLUS_EXPRs to invariant form.
8548         (vn_valueize): New function.
8549         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8550         * tree-vrp.c (vrp_valueize): New function.
8551         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8552         to fold statements to constants.
8553         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8554         function declarations.
8555         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8556         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8557
8558 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8559
8560         * config/h8300/predicates.md (jump_address_operand): Fix register
8561         mode check.
8562
8563 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8564
8565         * doc/invoke.texi (max-stores-to-sink): Document.
8566         * params.h (MAX_STORES_TO_SINK): Define.
8567         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8568         if either vectorization or if-conversion is disabled.
8569         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8570         tree-vect-data-refs.c vect_equal_offsets.
8571         (dr_equal_offsets_p): New function.
8572         (find_data_references_in_bb): Remove static.
8573         * tree-data-ref.h (find_data_references_in_bb): Declare.
8574         (dr_equal_offsets_p): Likewise.
8575         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8576         (vect_drs_dependent_in_basic_block): Update calls to
8577         vect_equal_offsets.
8578         (vect_check_interleaving): Likewise.
8579         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8580         (cond_if_else_store_replacement): Rename to...
8581         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8582         documentation.
8583         (cond_if_else_store_replacement): New function.
8584         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8585         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8586
8587 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8588
8589         PR target/46934
8590         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8591         to subtract lower bound instead of GEN_INT().
8592
8593 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8594
8595         PR other/48179
8596         PR other/48221
8597         PR other/48234
8598         * doc/extend.texi (Alignment): Move section to match order in TOC.
8599         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8600         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8601
8602 2011-03-23  Jeff Law  <law@redhat.com>
8603
8604         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8605         before removing the edge.
8606
8607         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8608         it may have been freed by redirect_branch_edge or
8609         redirect_edge_succ_nodup.
8610
8611 2011-03-23  Richard Guenther  <rguenther@suse.de>
8612
8613         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8614         (check_va_list_escapes): Likewise.
8615         (check_all_va_list_escapes): Likewise.
8616
8617 2011-03-23  Richard Guenther  <rguenther@suse.de>
8618
8619         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8620         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8621         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8622         (alias.o): Likewise.
8623         (ipa-type-escape.o): Remove.
8624         (ipa-struct-reorg.o): Likewise.
8625         (GTFILES): Remove ipa-struct-reorg.c.
8626         * alias.c: Do not include ipa-type-escape.h.
8627         * tree-ssa-alias.c: Likewise.
8628         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8629         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8630         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8631         and ipa-type-escape passes.
8632         * tree-pass.h (pass_ipa_type_escape): Remove.
8633         (pass_ipa_struct_reorg): Likewise.
8634         * ipa-struct-reorg.h: Remove.
8635         * ipa-struct-reorg.c: Likewise.
8636         * ipa-type-escape.h: Likewise.
8637         * ipa-type-escape.c: Likewise.
8638         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8639         (--param struct-reorg-cold-struct-ratio): Likewise.
8640         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8641         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8642         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8643
8644 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8645
8646         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8647         cpu attribute value.
8648         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8649         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8650         * config/s390/s390.c (processor_flags_table): New constant array.
8651         (s390_handle_arch_option): Remove.
8652         (s390_handle_option): Remove s390_handle_arch_option invocations
8653         and OPT_mwarn_framesize_ handling.
8654         (s390_option_override): Remove s390_handle_arch_option invocation.
8655         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8656         warnings.
8657         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8658         * config/s390/s390.opt (s390_tune, s390_arch)
8659         (march=): Replace s390_arch_option enum and values with
8660         processor_type.  Set variable name to s390_arch.  Set
8661         initialization value.
8662         (mtune=): Replace s390_arch_option with processor_type.  Set
8663         variable name to s390_tune.  Set initialization value.
8664
8665 2011-03-23  Julian Brown  <julian@codesourcery.com>
8666
8667         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8668         accesses which are not naturally aligned.
8669
8670 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8671
8672         PR target/47553
8673         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8674
8675 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8676
8677         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8678         parameter from "int" to "enum insn_code".
8679         (expand_operand_type): New enum.
8680         (expand_operand): New structure.
8681         (create_expand_operand): New function.
8682         (create_fixed_operand, create_output_operand): Likewise
8683         (create_input_operand, create_convert_operand_to): Likewise.
8684         (create_convert_operand_from, create_address_operand): Likewise.
8685         (create_integer_operand): Likewise.
8686         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8687         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8688         (expand_insn, expand_jump_insn): Likewise.
8689         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8690         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8691         (expand_movstr, expand_builtin___clear_cache): Likewise.
8692         (expand_builtin_lock_release): Likewise.
8693         * explow.c (allocate_dynamic_stack_space): Likewise.
8694         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8695         and use the default handling in that case.
8696         * expmed.c (check_predicate_volatile_ok): Delete.
8697         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8698         (emit_cstore): Likewise.
8699         * expr.c (emit_block_move_via_movmem): Likewise.
8700         (set_storage_via_setmem, expand_assignment): Likewise.
8701         (emit_storent_insn, try_casesi): Likewise.
8702         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8703         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8704         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8705         (expand_twoval_unop, expand_twoval_binop): Likewise.
8706         (expand_unop_direct, emit_indirect_jump): Likewise.
8707         (emit_conditional_move, vector_compare_rtx): Likewise.
8708         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8709         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8710         (expand_sync_lock_test_and_set): Likewise.
8711         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8712         (emit_unop_insn): Likewise.
8713         (expand_copysign_absneg): Change icode to an insn_code.
8714         (create_convert_operand_from_type): New function.
8715         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8716         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8717         (expand_insn, expand_jump_insn): Likewise.
8718         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8719         than const_int_operand for operand 2.
8720
8721 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8722
8723         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8724         if possible.
8725
8726 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8727
8728         * emit-rtl.c (emit_pattern_before_noloc): New function.
8729         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8730         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8731         (emit_pattern_after_noloc): New function.
8732         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8733         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8734
8735 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8736
8737         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8738         (__ffsDI2): Likewise.
8739
8740 2011-03-22  Richard Henderson  <rth@redhat.com>
8741
8742         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8743         of !TARGET_ABI_OPEN_VMS.
8744         (alpha_trampoline_init, alpha_start_function): Likewise.
8745         (alpha_expand_epilogue, alpha_file_start): Likewise.
8746         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8747         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8748         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8749         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8750         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8751
8752 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8753
8754         * config/s390/s390-opts.h: New.
8755         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8756         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8757         s390_stack_guard): Remove.
8758         (s390_handle_arch_option): Return void.  Take enum
8759         s390_arch_option value instead of string and searching array.
8760         (s390_handle_option): Don't assert that global structures are in
8761         use.  Access variables via opts pointer.  Use error_at.  Don't use
8762         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8763         s390_handle_arch_option.
8764         (s390_option_override): Update call to s390_handle_arch_option.
8765         (s390_emit_prologue): Use %d format for s390_stack_size in
8766         diagnostic.  Use %wd for HOST_WIDE_INT.
8767         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8768         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8769         * config/s390/s390.opt (config/s390/s390-opts.h): New
8770         HeaderInclude entry.
8771         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8772         s390_arch_flags, s390_warn_framesize): New Variable entries.
8773         (s390_arch_option): New Enum and EnumValue entries.
8774         (march=): Use Enum instead of Var.
8775         (mstack-guard=, mstack-size=): Use UInteger and Var.
8776         (mtune=): Use Enum.
8777
8778 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8779
8780         * config/score/score.c (score_handle_option): Don't assert that
8781         global structures are in use.  Access target_flags via opts
8782         pointer.  Use value of -march= option to determine target_flags
8783         settings.
8784         * config/score/score.opt (march=): Use Enum.
8785         (score_arch): New Enum and EnumValue entries.
8786
8787 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8788
8789         * config/mep/mep.c (option_mtiny_specified): Remove.
8790         (mep_option_override): Move register handling for -mivc2 from
8791         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8792         instead of option_mtiny_specified.
8793         (mep_handle_option): Access target_flags via opts pointer.  Don't
8794         assert that global structures are in use.  Defer part of -mivc2
8795         handling and move it to mep_option_override.
8796         * config/mep/mep.opt (IVC2): New Mask entry.
8797         (mivc2): Use Var and Defer instead of Mask.
8798
8799 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8800
8801         * config/v850/v850-opts.h: New.
8802         * config/v850/v850.c (small_memory): Replace with
8803         small_memory_physical_max array.  Make that array static const.
8804         (v850_handle_memory_option): Take integer value of argument.  Take
8805         gcc_options pointer, option text and location.  Return void.
8806         Update for changes to small memory structures.
8807         (v850_handle_option): Access target_flags via opts pointer.  Don't
8808         assert that global structures are in use.  Update calls to
8809         v850_handle_memory_option.
8810         (v850_encode_data_area): Update references to small memory settings.
8811         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8812         (enum small_memory_type): Move to v850-opts.h.
8813         * config/v850/v850.opt (config/v850/v850-opts.h): New
8814         HeaderInclude entry.
8815         (small_memory_max): New Variable entry.
8816         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8817         (mtda, mzda): Likewise.
8818
8819 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8820
8821         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8822         pointer.  Don't assert that global structures are in use.
8823
8824 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8825
8826         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8827         via opts pointer.  Don't assert that global structures are in use.
8828
8829 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8830
8831         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8832         (munix=93): Use Var.
8833         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8834         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8835         * config/pa/pa-opts.h: New.
8836         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8837         (pa_handle_option): Don't assert that global structures are in
8838         use.  Access target_flags via opts pointer.  Don't handle
8839         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8840         OPT_munix_98 here.
8841         (pa_option_override): Handle deferred OPT_mfixed_range_.
8842
8843 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8844
8845         * config/mn10300/mn10300-opts.h: New.
8846         * config/mn10300/mn10300.c (mn10300_processor,
8847         mn10300_tune_string): Remove.
8848         (mn10300_handle_option): Don't assert that global structures are
8849         in use.  Access mn10300_processor via opts pointer.  Don't handle
8850         OPT_mtune_ here.
8851         * config/mn10300/mn10300.h (enum processor_type): Move to
8852         mn10300-opts.h.
8853         (mn10300_processor): Remove.
8854         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8855         HeaderInclude entry.
8856         (mn10300_processor): New Variable entry.
8857         (mtune=): Use Var.
8858
8859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8860
8861         * config/microblaze/microblaze.c: Don't include opts.h.
8862         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8863         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8864         (mno-clearbss): Use Var and Warn.
8865
8866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8867
8868         * config/m32r/m32r-opts.h: New.
8869         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8870         (m32r_handle_option): Don't assert that global structures are in
8871         use.  Access target_flags and m32r_cache_flush_func via opts
8872         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8873         OPT_mno_flush_trap here.
8874         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8875         include of m32r-opts.h.
8876         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8877         HeaderInclude entry.
8878         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8879         (mmodel=): Use Enum and Var.
8880         (m32r_model): New Enum and EnumValue entries.
8881         (mno-flush-trap): Use Var.
8882         (msdata=): Use Enum and Var.
8883         (m32r_sdata): New Enum and EnumValue entries.
8884
8885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8886
8887         * config/m32c/m32c.c: Don't include opts.h.
8888         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8889         m32c_handle_option): Remove.
8890         (m32c_option_override): Check global_options_set.x_target_memregs
8891         instead of target_memregs_set.
8892         * config/m32c/m32c.h (target_memregs): Remove.
8893         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8894         variable.
8895
8896 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8897
8898         * config/iq2000/iq2000-opts.h: New.
8899         * config/iq2000/iq2000.c: Don't include opts.h.
8900         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8901         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8902         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8903         HeaderInclude entry.
8904         (iq2000_tune): New Variable entry.
8905         (march=): Add comment.  Use Enum.
8906         (iq2000_arch): New Enum and EnumValue entries.
8907         (mcpu=): Use Enum and Var.
8908         (iq2000_tune): New Enum and EnumValue entries.
8909
8910 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8911
8912         * config/ia64/ia64-opts.h: New.
8913         * config/ia64/ia64.c (ia64_tune): Remove.
8914         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8915         here.  Use error_at.
8916         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8917         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8918         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8919         HeaderInclude entry.
8920         (ia64_tune): New Variable entry.
8921         (mfixed-range=): Use Defer and Var.
8922         (mtune=): Use Enum and Var.
8923         (ia64_tune): New Enum and EnumValue entries.
8924
8925 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8926
8927         * config/frv/frv-opts.h: New.
8928         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8929         frv-opts.h.
8930         (frv_cpu_type): Remove.
8931         * config/frv/frv.c: Don't include opts.h.
8932         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8933         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8934         (frv_cpu_type): New Variable entry.
8935         (frv_cpu): New Enum and EnumValue entries.
8936
8937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8938
8939         * config/cris/cris.c (cris_handle_option): Access target_flags via
8940         opts pointer.  Don't assert that global structures are in use.
8941         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8942         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8943
8944 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8945
8946         * config/bfin/bfin-opts.h: New.
8947         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8948         bfin_si_revision, bfin_workarounds): Remove.
8949         (bfin_cpus): Make static const.
8950         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8951         not bfin_lib_id_given.
8952         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8953         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8954         pointer. Use error_at.  Don't assert that global structures are in use.
8955         * config/bfin/bfin.h: Include bfin-opts.h.
8956         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8957         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8958         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8959         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8960         entries.
8961
8962 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8963
8964         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8965         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8966         or -msoft-float here.
8967         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8968         -msoft-float and -mhard-float.
8969         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8970         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8971         msoft-float.
8972         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8973         -msoft-float.
8974         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8975         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8976         not mhard-float.
8977         (LIBGCC_SPEC): Don't handle -msoft-float.
8978         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8979         -mhard-float.
8980         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8981         msoft-float.
8982         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8983         -mfloat-abi=*, not -msoft-float and -mhard-float.
8984         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8985         -msoft-float.
8986         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8987         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8988         mhard-float and msoft-float.
8989         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8990         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8991         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8992         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8993         mhard-float.
8994         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8995         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8996         msoft-float.
8997         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8998         not mhard-float.
8999         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9000         not msoft-float.
9001
9002 2011-03-22  Richard Henderson  <rth@redhat.com>
9003
9004         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9005         TARGET_ABI_WINDOWS_NT.
9006         (alpha_output_function_end_prologue): Likewise.
9007         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9008         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9009         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9010         (trap, *movsi_nt_vms): Likewise.
9011         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9012         (*tablejump_osf_nt_internal): Remove.
9013         * config/alpha/predicates.md (input_operand): Only test Pmode.
9014
9015 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9018         via opts pointer.  Use error_at.  Don't assert that global
9019         structures are in use.
9020
9021 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9022
9023         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9024         (ix86_handle_option): Access ix86_isa_flags and
9025         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9026         global structures are in use.
9027         (ix86_function_specific_save, ix86_function_specific_restore):
9028         Update ix86_isa_flags_explicit field name.
9029         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9030         (ix86_isa_flags_explicit): Rename TargetSave entry to
9031         x_ix86_isa_flags_explicit.
9032
9033 2011-03-22  Richard Henderson  <rth@redhat.com>
9034
9035         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9036         (alpha_option_override, direct_return): Likewise.
9037         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9038         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9039         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9040         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9041         (alpha_expand_epilogue, alpha_end_function): Likewise.
9042         (alpha_init_libfuncs): Likewise.
9043         (struct machine_function): Remove unicosmk members.
9044         (print_operand) ['t']: Remove.
9045         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9046         unicosmk_output_module_name, unicosmk_output_common,
9047         current_section_align, unicosmk_output_text_section_asm_op,
9048         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9049         unicosmk_section_type_flags, unicosmk_unique_section,
9050         unicosmk_asm_named_section, unicosmk_insert_attributes,
9051         unicosmk_output_align, unicosmk_defer_case_vector,
9052         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9053         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9054         unicosmk_output_ssib, unicosmk_add_call_info_word,
9055         unicosmk_extern_head, unicosmk_output_default_externs,
9056         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9057         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9058         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9059         * config/alpha/alpha-protos.h: Update.
9060         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9061         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9062         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9063         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9064         (*mulsi_se, mulvsi3): Likewise.
9065         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9066         (*divmodsi_internal, call, call_value, realign): Likewise.
9067         (moddi3, umoddi3): Likewise; remove duplicate expander.
9068         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9069         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9070         (*movdi_nofix): Remove r/U alternative.
9071         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9072         * config/alpha/constraints.md ("U"): Remove.
9073         * config/alpha/predicates.md (call_operand"): Don't test
9074         TARGET_ABI_UNICOSMK.
9075
9076 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9077
9078         * target.def (handle_option): Take gcc_options and
9079         cl_decoded_option pointers and location_t.
9080         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9081         * doc/tm.texi: Regenerate.
9082         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9083         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9084         * lto-opts.c (lto_reissue_options): Generate option structure for
9085         targetm.handle_option call.
9086         * opts.c (target_handle_option): Update call to
9087         targetm.handle_option.  Remove assertions about values now passed
9088         down to hook.
9089         * targhooks.c (default_target_handle_option): New.
9090         * targhooks.h (default_target_handle_option): Declare.
9091         * config/alpha/alpha.c: Include opts.h.
9092         (alpha_handle_option): Update to new hook interface.
9093         * config/arm/arm.c: Include opts.h.
9094         (arm_handle_option): Update to new hook interface.
9095         * config/arm/t-arm (arm.o): Update dependencies.
9096         * config/bfin/bfin.c: Include opts.h.
9097         (bfin_handle_option): Update to new hook interface.
9098         * config/cris/cris.c: Include opts.h.
9099         (cris_handle_option): Update to new hook interface.
9100         * config/frv/frv.c: Include opts.h.
9101         (frv_handle_option): Update to new hook interface.
9102         * config/i386/i386.c: Include opts.h.
9103         (ix86_handle_option): Update to new hook interface.
9104         (ix86_valid_target_attribute_inner_p): Generate option structure
9105         for call to ix86_handle_option.
9106         * config/i386/t-i386 (i386.o): Update dependencies.
9107         * config/ia64/ia64.c: Include opts.h.
9108         (ia64_handle_option): Update to new hook interface.
9109         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9110         * config/iq2000/iq2000.c: Include opts.h.
9111         (iq2000_handle_option): Update to new hook interface.
9112         * config/m32c/m32c.c: Include opts.h.
9113         (m32c_handle_option): Update to new hook interface.
9114         * config/m32r/m32r.c: Include opts.h.
9115         (m32r_handle_option): Update to new hook interface.
9116         * config/m68k/m68k.c: Include opts.h.
9117         (m68k_handle_option): Update to new hook interface.
9118         * config/mep/mep.c: Include opts.h.
9119         (mep_handle_option): Update to new hook interface.
9120         * config/microblaze/microblaze.c: Include opts.h.
9121         (microblaze_handle_option): Update to new hook interface.
9122         * config/mips/mips.c: Include opts.h.
9123         (mips_handle_option): Update to new hook interface.
9124         * config/mn10300/mn10300.c: Include opts.h.
9125         (mn10300_handle_option): Update to new hook interface.
9126         * config/pa/pa.c: Include opts.h.
9127         (pa_handle_option): Update to new hook interface.
9128         * config/pdp11/pdp11.c: Include opts.h.
9129         (pdp11_handle_option): Update to new hook interface.
9130         * config/rs6000/rs6000.c: Include opts.h.
9131         (rs6000_handle_option): Update to new hook interface.
9132         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9133         * config/rx/rx.c: Include opts.h.
9134         (rx_handle_option): Update to new hook interface.
9135         * config/s390/s390.c: Include opts.h.
9136         (s390_handle_option): Update to new hook interface.
9137         * config/score/score.c: Include opts.h.
9138         (score_handle_option): Update to new hook interface.
9139         * config/sh/sh.c: Include opts.h.
9140         (sh_handle_option): Update to new hook interface.
9141         * config/sparc/sparc.c: Include opts.h.
9142         (sparc_handle_option): Update to new hook interface.
9143         * config/v850/v850.c: Include opts.h.
9144         (v850_handle_option): Update to new hook interface.
9145
9146 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9147
9148         * gcc.c (driver_unknown_option_callback): Only permit and save
9149         unknown -Wno- options.
9150         (driver_wrong_lang_callback): Save options directly instead of via
9151         driver_unknown_option_callback.
9152
9153 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9154
9155         * combine.c (simplify_set): Try harder to find the best CC mode when
9156         simplifying a nested COMPARE on the RHS.
9157
9158 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9159
9160         * config/alpha/gnu.h: Remove.
9161         * config/arc: Remove directory.
9162         * config/arm/netbsd.h: Remove.
9163         * config/arm/t-pe: Remove.
9164         * config/crx: Remove directory.
9165         * config/i386/netbsd.h: Remove.
9166         * config/m68hc11: Remove directory.
9167         * config/m68k/uclinux-oldabi.h: Remove.
9168         * config/mcore/mcore-pe.h: Remove.
9169         * config/mcore/t-mcore-pe: Remove.
9170         * config/netbsd-aout.h: Remove.
9171         * config/rs6000/gnu.h: Remove.
9172         * config/sh/sh-symbian.h: Remove.
9173         * config/sh/symbian-base.c: Remove.
9174         * config/sh/symbian-c.c: Remove.
9175         * config/sh/symbian-cxx.c: Remove.
9176         * config/sh/symbian-post.h: Remove.
9177         * config/sh/symbian-pre.h: Remove.
9178         * config/sh/t-symbian: Remove.
9179         * config/svr3.h: Remove.
9180         * config/vax/netbsd.h: Remove.
9181         * config.build: Don't handle i[34567]86-*-pe.
9182         * config.gcc: Remove handling of deprecations for most deprecated
9183         targets.
9184         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9185         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9186         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9187         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9188         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9189         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9190         Remove cases.
9191         * config.host: Don't handle i[34567]86-*-pe.
9192         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9193         (ASM_SPEC32): Don't handle -mcall-gnu.
9194         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9195         -mcall-gnu.
9196         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9197         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9198         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9199         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9200         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9201         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9202         conditional on SYMBIAN.
9203         * configure.ac: Don't handle powerpc*-*-gnu*.
9204         * configure: Regenerate.
9205         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9206         * doc/install-old.texi (m6811, m6812): Don't mention.
9207         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9208         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9209         (m68k-uclinuxoldabi): Don't mention.
9210         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9211         Remove.
9212         (-mcall-gnu): Remove.
9213         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9214         families): Remove constraint documentation.
9215
9216 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9217
9218         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9219         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9220         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9221
9222 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9223
9224         PR target/48226
9225         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9226         vector when peeking at the next token for vector, don't expand the
9227         keywords.
9228
9229 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9230
9231         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9232         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9233         * config/avr/avr.c (init_cumulative_args)
9234         (avr_function_arg_advance): Use it.
9235         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9236         sibcall epilogues.
9237         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9238         (avr_function_ok_for_sibcall): ...this new function.
9239         (avr_lookup_function_attribute1): New static Function.
9240         (avr_naked_function_p, interrupt_function_p)
9241         (signal_function_p, avr_OS_task_function_p)
9242         (avr_OS_main_function_p): Use it.
9243         * config/avr/avr.md ("sibcall", "sibcall_value")
9244         ("sibcall_epilogue"): New expander.
9245         ("*call_insn", "*call_value_insn"): New insn.
9246         ("call_insn", "call_value_insn"): Remove
9247         ("call", "call_value", "epilogue"): Change expander to handle
9248         sibling calls.
9249
9250 2011-03-21  Nick Clifton  <nickc@redhat.com>
9251
9252         * doc/invoke.texi (Overall Options): Move closing brace to end of
9253         options list.
9254         (Optimization Options): Add missing @gol.
9255         (Directory Options): Likewise.
9256         (i386 and x86-64 Options): Likewise.
9257         (RS6000 and PowerPC Options): Likewise.
9258         (i386 and x86-64 Windows Options): Likewise.
9259         (V850 Options): Add text missing from descriptions.
9260
9261 2011-03-22  Richard Henderson  <rth@redhat.com>
9262
9263         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9264         (avr_incoming_return_addr_rtx): New.
9265         (emit_push_byte): New.
9266         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9267         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9268         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9269         (emit_pop_byte): New.
9270         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9271         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9272         (INCOMING_RETURN_ADDR_RTX): New.
9273         (INCOMING_FRAME_SP_OFFSET): New.
9274         (ARG_POINTER_CFA_OFFSET): New.
9275         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9276         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9277         (pophi): Remove.
9278
9279         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9280
9281 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9282
9283         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9284         (FUNCTION_ARG_ADVANCE): Likewise.
9285         * tm.texi.in: Change references to them to hook references.
9286         * tm.texi: Regenerate.
9287         * targhooks.c (default_function_arg): Eliminate check for target
9288         macro.
9289         (default_function_incoming_arg): Likewise.
9290         (default_function_arg_advance): Likewise.
9291         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9292         (function_arg_advance): Likewise.
9293         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9294
9295 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9296
9297         * tree.c (build_call_1): New function.
9298         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9299
9300 2011-03-22  Richard Guenther  <rguenther@suse.de>
9301
9302         PR tree-optimization/48228
9303         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9304         for single-arg PHIs.
9305
9306 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9307
9308         PR rtl-optimization/48143
9309         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9310         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9311         sse2_cvtps2pd): Likewise.
9312
9313 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9314
9315         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9316
9317 2011-03-22  Richard Guenther  <rguenther@suse.de>
9318
9319         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9320         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9321         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9322         and REALIGN_LOAD_EXPR.
9323         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9324         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9325         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9326         DOT_PROD_EXPR case ...
9327         (expand_expr_real_2): ... here.
9328         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9329         and REALIGN_LOAD_EXPR.
9330         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9331         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9332         (vect_create_epilog_for_reduction): Likewise.
9333         (vectorizable_reduction): Likewise.
9334         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9335         * tree-vect-stmts.c (vectorizable_load): Likewise.
9336
9337 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9338
9339         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9340
9341 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9342
9343         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9344         handling for PLTOFF/GOTOFF.
9345
9346 2011-03-22  Nick Clifton  <nickc@redhat.com>
9347
9348         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9349         trailing backslash from the end of the macro definition.
9350
9351 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9352
9353         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9354         and PLT unspecs.
9355
9356 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9357
9358         * expr.h (prepare_operand): Move to...
9359         * optabs.h (prepare_operand): ...here and change the insn code
9360         parameter from "int" to "enum insn_code".
9361         (insn_operand_matches): Declare.
9362         * expr.c (init_expr_target): Use insn_operand_matches.
9363         (compress_float_constant): Likewise.
9364         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9365         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9366         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9367         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9368         Likewise.
9369         (gen_cond_trap): Likewise.
9370         (prepare_operand): Likewise.  Change icode to an insn_code.
9371         (insn_operand_matches): New function.
9372         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9373         * reload1.c (gen_reload): Likewise.
9374         * targhooks.c (default_secondary_reload): Likewise.
9375
9376 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9377
9378         * config/alpha/alpha.md (unspec): New define_c_enum.
9379         (unspecv): Ditto.
9380
9381 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9382
9383         PR debug/48214
9384         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9385         between a call and its CALL_ARG_LOCATION note.
9386
9387 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9388
9389         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9390
9391 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9392
9393         PR c/42544
9394         PR c/48197
9395         * c-common.c (shorten_compare): If primopN is first sign-extended
9396         to opN and then zero-extended to result type, set primopN to opN.
9397
9398 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9399
9400         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9401         for barrier handlers.
9402
9403 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9404
9405         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9406         UNSPEC constants to be in the unspec enumeration, and redefine
9407         all UNSPECV constants to be in the unspecv enumeration, so that
9408         dumps print which unspec/unspec_volatile this is.
9409         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9410         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9411         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9412         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9413         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9414
9415         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9416         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9417         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9418         * config/rs6000/sync.md (isync, lwsync): Ditto.
9419
9420 2011-03-21  Richard Guenther  <rguenther@suse.de>
9421
9422         * params.def (lto-min-partition): Fix typo.
9423
9424 2011-03-21  Richard Guenther  <rguenther@suse.de>
9425
9426         PR c/47939
9427         * c-decl.c (grokdeclarator): Drop to the main variant only
9428         for array types.  Drop flag_gen_aux_info check.
9429
9430 2011-03-21  Richard Guenther  <rguenther@suse.de>
9431
9432         PR translation/47911
9433         * params.def (lto-partitions): Fix typo.
9434         (lto-min-partition): Fix wording.
9435
9436 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9437
9438         * config/rs6000/t-freebsd: Remove duplication from file.
9439
9440 2011-03-21  Richard Guenther  <rguenther@suse.de>
9441
9442         PR middle-end/47661
9443         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9444
9445 2011-03-21  Richard Guenther  <rguenther@suse.de>
9446
9447         PR lto/48210
9448         * params.def (lto-partitions): Require at least 1 partition.
9449
9450 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9451
9452         * gthr-solaris.h: Remove.
9453         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9454         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9455         (LIB_SPEC): Likewise.
9456         * config/sol2.opt (threads): Remove.
9457         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9458         (sparc*-*-solaris2*): Likewise.
9459         * configure.ac (enable_threads): Enable solaris support.
9460         * configure: Regenerate.
9461         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9462         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9463         solaris.
9464
9465 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9466
9467         * config.gcc: Obsolete *-*-solaris2.8*.
9468         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9469
9470 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9471
9472         PR bootstrap/48135
9473         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9474         reference.  Solaris 8 perl works.
9475
9476 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9477
9478         PR bootstrap/48135
9479         * doc/install.texi (Prerequisites): Move jar etc. up.
9480         Explain support library version requirements.
9481
9482 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9483
9484         PR bootstrap/48135
9485         * doc/install.texi (Prerequisites): Move Perl to build
9486         requirements.  Always necessary on Solaris 2 with Sun ld.
9487
9488 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9489
9490         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9491         binutils 2.21.
9492         (Specific, i?86-*-solaris2.[89]): Likewise.
9493         (Specific, i?86-*-solaris2.10): Likewise.
9494         (Specific, mips-sgi-irix6): Likewise.
9495         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9496         Update for binutils 2.21.
9497
9498 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9499
9500         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9501         Allow -fuse-linker-plugin for non-default plugin linker.
9502         * configure: Regenerate.
9503
9504 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9505
9506         PR bootstrap/48167
9507         * gengtype.c (files_rules): Added rule for cp/parser.h.
9508
9509 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9510
9511         PR target/48213
9512         * config/s390/s390.c (s390_delegitimize_address): Don't call
9513         lowpart_subreg if orig_x has BLKmode.
9514
9515 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9516
9517         PR target/12171
9518         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9519         * tree.h (attribute_spec): Add new member affects_type_identity.
9520         * attribs.c (empty_attribute_table): Adjust attribute_spec
9521         initializers.
9522         * config/alpha/alpha.c: Likewise.
9523         * config/arc/arc.c: Likewise.
9524         * config/arm/arm.c: Likewise.
9525         * config/avr/avr.c: Likewise.
9526         * config/bfin/bfin.c: Likewise.
9527         * config/crx/crx.c: Likewise.
9528         * config/darwin.h: Likewise.
9529         * config/h8300/h8300.c: Likewise.
9530         * config/i386/cygming.h: Likewise.
9531         * config/i386/i386.c: Likewise.
9532         * config/ia64/ia64.c: Likewise.
9533         * config/m32c/m32c.c: Likewise.
9534         * config/m32r/m32r.c: Likewise.
9535         * config/m68hc11/m68hc11.c: Likewise.
9536         * config/m68k/m68k.c: Likewise.
9537         * config/mcore/mcore.c: Likewise.
9538         * config/mep/mep.c: Likewise.
9539         * config/microblaze/microblaze.c: Likewise.
9540         * config/mips/mips.c: Likewise.
9541         * config/rs6000/rs6000.c: Likewise.
9542         * config/rx/rx.c: Likewise.
9543         * config/sh/sh.c: Likewise.
9544         * config/sol2.h: Likewise.
9545         * config/sparc/sparc.c: Likewise.
9546         * config/spu/spu.c: Likewise.
9547         * config/stormy16/stormy16.c: Likewise.
9548         * config/v850/v850.c: Likewise.
9549
9550 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9551
9552         * simplify-rtx.c (simplify_binary_operation_1): Handle
9553         (xor (and A B) C) case when B and C are both constants.
9554
9555 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9556
9557         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9558
9559 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9560
9561         PR bootstrap/48168
9562         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9563
9564 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9565
9566         PR rtl-optimization/48156
9567         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9568         assume df and df_lr are not NULL.
9569
9570 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9571
9572         PR debug/48023
9573         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9574         between a call and its CALL_ARG_LOCATION note.
9575
9576 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9577
9578         PR debug/48178
9579         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9580         between a call and its corresponding CALL_ARG_LOCATION note.
9581
9582 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9583
9584         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9585         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9586         * haifa-sched.c (setup_ref_regs): Ditto.
9587         * caller-save.c (add_used_regs_1): Ditto.
9588         * dse.c (look_for_hardregs): Ditto.
9589         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9590         * sched-rgn.c (check_live_1): Ditto.
9591
9592 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9593
9594         * c-decl.c (diagnose_mismatched_decls): Give an error for
9595         redefining a typedef with variably modified type.
9596
9597 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9598
9599         * c-decl.c (grokfield): Don't allow typedefs for structures or
9600         unions with no tag by default.
9601         * doc/extend.texi (Unnamed Fields): Update.
9602
9603 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9604
9605         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9606         Rewrite using indirect functions.
9607         (lwp_slwpcb): Ditto.
9608         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9609         (avx_vinsertf128<mode>): Ditto.
9610
9611 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9612
9613         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9614         unspecs.
9615
9616 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9617
9618         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9619         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9620
9621 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9622
9623         PR rtl-optimization/48170
9624         * gcse.c (hoist_code): Remove bogus asserts.
9625
9626 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9627
9628         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9629         computation for prologue/epilogue.
9630
9631 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9632
9633         * Makefile.in (check-consistency): Remove.
9634
9635 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9636
9637         PR debug/48176
9638         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9639         arange_table_in_use is 0, but either text_section_used or
9640         cold_text_section_used is true.  Don't call it if
9641         !info_section_emitted.
9642
9643 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9644
9645         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9646         FUNCTION_VALUE_REGNO_P): Remove.
9647         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9648         Remove.
9649         * config/avr/avr.c (avr_ret_register): Make static inline.
9650         (avr_function_value_regno_p): New function.
9651         (avr_libcall_value): Make static. Add 'func' argument.
9652         (avr_function_value): Make static. Rename 'func' argument to
9653         'fn_decl_or_type', forward it to avr_libcall_value. Call
9654         avr_ret_register function instead of RET_REGISTER macro.
9655         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9656
9657 2011-03-18  Jason Merrill  <jason@redhat.com>
9658
9659         PR c++/23372
9660         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9661
9662 2011-03-18  Richard Guenther  <rguenther@suse.de>
9663
9664         * doc/install.texi (--enable-gold): Remove.
9665         (--with-plugin-ld): Document.
9666         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9667
9668 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9669
9670         PR middle-end/47790
9671         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9672         again after expansion changes.
9673
9674 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9675
9676         * combine.c (try_combine): Do simplification only call of
9677         subst() on i2 even when i1 is present. Update comments.
9678
9679 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9680
9681         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9682         and UNSPEC_PCREL_SYMOFF.
9683
9684 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9685
9686         * config/s390/s390.md: Use define_c_enum for the unspec constant
9687         definitions.
9688
9689 2011-03-18  Richard Henderson  <rth@redhat.com>
9690             Jakub Jelinek  <jakub@redhat.com>
9691
9692         PR bootstrap/48161
9693         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9694         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9695
9696 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9697
9698         PR middle-end/47725
9699         * combine.c (cant_combine_insn_p): Don't check zero/sign
9700         extended hard registers.
9701
9702 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         PR middle-end/47725
9705         * combine.c (cant_combine_insn_p): Check zero/sign extended
9706         hard registers.
9707
9708 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9709
9710         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9711         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9712         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9713         Change return type to bool.
9714         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9715
9716 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9717
9718         PR debug/48163
9719         * var-tracking.c (prepare_call_arguments): If CALL target
9720         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9721         pc instead of looking it up using cselib_lookup and use
9722         Pmode for it if x has VOIDmode.
9723         * dwarf2out.c (gen_subprogram_die): If also both first and
9724         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9725
9726         PR debug/48163
9727         * function.c (assign_parms): For data.passed_pointer parms
9728         use MEM of data.entry_parm instead of data.entry_parm itself
9729         as DECL_INCOMING_RTL.
9730         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9731         also when passed and declared mode is the same, DECL_RTL
9732         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9733         a MEM too.
9734
9735 2011-03-16  Jeff Law  <law@redhat.com>
9736
9737         PR rtl-optimization/37273
9738         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9739         handle them like argument loads from stack slots.  Do not double
9740         count memory for memory constants and argument loads from stack slots.
9741
9742 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9743
9744         PR debug/48160
9745         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9746
9747 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9748
9749         PR target/48171
9750         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9751
9752 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9753
9754         PR bootstrap/48153
9755         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9756         if dwarf_strict.
9757         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9758         Clear call_arg_locations and call_arg_loc_last always.
9759
9760         PR middle-end/48152
9761         * var-tracking.c (prepare_call_arguments): If argument needs to be
9762         passed by reference, adjust argtype and mode.
9763
9764 2011-03-17  Richard Guenther  <rguenther@suse.de>
9765
9766         PR middle-end/48134
9767         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9768         a value make sure to fold the statement.
9769
9770 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9771
9772         PR target/43872
9773         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9774         return condition with !cfun->calls_alloca.
9775
9776 2011-03-17  Richard Guenther  <rguenther@suse.de>
9777
9778         PR bootstrap/48148
9779         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9780         origin for decls in other ltrans units.
9781         (input_varpool_node): Likewise.
9782
9783 2011-03-17  Richard Guenther  <rguenther@suse.de>
9784
9785         PR middle-end/48165
9786         * tree-object-size.c (compute_object_offset): Properly return
9787         the offset operand of MEM_REFs as sizetype.
9788
9789 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9790
9791         PR rtl-optimization/48141
9792         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9793         * dse.c: Include params.h.
9794         (active_local_stores_len): New variable.
9795         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9796         to NULL.
9797         (record_store, check_mem_read_rtx): Decrease it when removing
9798         from the chain.
9799         (scan_insn): Likewise.  Increase it when adding to chain, if it
9800         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9801         set active_local_stores to NULL before the addition.
9802         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9803
9804         PR rtl-optimization/48141
9805         * dse.c (record_store): If no positions are needed in an insn
9806         that cannot be deleted, at least unchain it from active_local_stores.
9807
9808 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9809
9810         PR debug/47510
9811         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9812         (lookup_type_die_strip_naming_typedef): ... here.
9813         (get_context_die): Use it.
9814         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9815         the anonymous struct named by the naming typedef.
9816
9817 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9818
9819         PR target/48154
9820         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9821         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9822
9823 2011-03-16  Jeff Law  <law@redhat.com>
9824
9825         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9826         check for operands of conditional.  Allow type to be a pointer.
9827
9828 2011-03-16  Richard Guenther  <rguenther@suse.de>
9829
9830         PR tree-optimization/48149
9831         * fold-const.c (fold_binary_loc): Fold
9832         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9833
9834 2011-03-16  Richard Guenther  <rguenther@suse.de>
9835
9836         PR tree-optimization/26134
9837         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9838         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9839         (non_rewritable_mem_ref_base): Handle complex type component
9840         accesses, constrain offsets for vector and complex extracts
9841         more properly.
9842
9843 2011-03-16  Richard Guenther  <rguenther@suse.de>
9844
9845         PR tree-optimization/48146
9846         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9847         operands avoiding the need for renaming.
9848
9849 2011-03-16  Richard Guenther  <rguenther@suse.de>
9850
9851         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9852         constant folding.  Move MEM_REF canonicalization first.
9853         Rely on fold_const_aggregate_ref for initializer folding.
9854         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9855
9856 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9857
9858         PR middle-end/48136
9859         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9860         arg0/arg1 or their arguments are always fold converted to matching
9861         types.
9862
9863         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9864         to nargs.
9865
9866 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9867
9868         PR lto/46944
9869         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9870         Handle in-tree gold.
9871         (ld_vers): Extract binutils version for gold.
9872         (gcc_cv_ld_hidden): Handle gold here.
9873         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9874         * configure: Regenerate.
9875         * config.in: Regenerate.
9876         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9877         -fuse-linker-plugin otherwise.
9878         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9879         (LINK_COMMAND_SPEC): Use it.
9880         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9881
9882 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9883
9884         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9885         * calls.c: Remove debug.h include.
9886         (emit_call_1): Don't call virtual_call_token debug hook.
9887         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9888         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9889         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9890         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9891         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9892         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9893         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9894         dwarf2out_virtual_call): Remove.
9895         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9896         copy_call_info and virtual_call hooks.
9897         (dwarf2out_init): Don't initialize vcall_insn_table,
9898         debug_dcall_section and debug_vcall_section.
9899         (prune_unused_types): Don't mark nodes from dcall_table.
9900         (dwarf2out_finish): Don't output dcall or vcall tables.
9901         * final.c (final_scan_insn): Don't call direct_call or
9902         virtual_call debug hooks.
9903         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9904         virtual_call_token, copy_call_info and virtual_call hooks.
9905         (debug_nothing_uid): Remove prototype.
9906         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9907         copy_call_info and virtual_call hooks.
9908         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9909         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9910         * debug.c (do_nothing_debug_hooks): Likewise.
9911         (debug_nothing_uid): Remove.
9912         * doc/invoke.texi (-fenable-icf-debug): Remove.
9913         * common.opt (-fenable-icf-debug): Likewise.
9914
9915         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9916         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9917         call's MEM.  Handle functions returning aggregate through a hidden
9918         first pointer.  For virtual calls add clobbered pc to call arguments
9919         chain.
9920         * dwarf2out.c (gen_subprogram_die): Emit
9921         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9922         can't be emitted.
9923
9924         PR debug/45882
9925         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9926         * rtl.h (ENTRY_VALUE_EXP): Define.
9927         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9928         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9929         * print-rtl.c (print_rtx): Likewise.
9930         * gengtype.c (adjust_field_rtx_def): Likewise.
9931         * var-tracking.c (vt_add_function_parameter): Adjust
9932         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9933         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9934         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9935         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9936         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9937
9938         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9939         Call var_location debug hook even on CALL_INSNs.
9940         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9941         * rtl.def (ENTRY_VALUE): New.
9942         * dwarf2out.c: Include cfglayout.h.
9943         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9944         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9945         (struct call_arg_loc_node): New type.
9946         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9947         tail_call_site_count): New variables.
9948         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9949         DW_TAG_GNU_call_site_parameter.
9950         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9951         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9952         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9953         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9954         and DW_AT_GNU_all_source_call_sites.
9955         (mem_loc_descriptor): Handle ENTRY_VALUE.
9956         (add_src_coords_attributes): Don't add enything if
9957         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9958         (dwarf2out_abstract_function): Save and clear call_arg_location,
9959         call_site_count and tail_call_site_count around dwarf2out_decl call.
9960         (gen_call_site_die): New function.
9961         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9962         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9963         (dwarf2out_function_decl): Clear call_arg_locations,
9964         call_arg_loc_last, set call_site_count and tail_call_site_count
9965         to -1 and free block_map.
9966         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9967         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9968         followed by any real instructions.
9969         (dwarf2out_begin_function): Set call_site_count and
9970         tail_call_site_count to 0.
9971         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9972         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9973         attempt to force a DIE for it and worst case remove the attribute.
9974         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9975         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9976         the decl itself.
9977         * var-tracking.c: Include tm_p.h.
9978         (vt_stack_adjustments): For calls call note_register_arguments.
9979         (argument_reg_set): New variable.
9980         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9981         ensure the VALUE is resolved.
9982         (call_arguments): New variable.
9983         (prepare_call_arguments): New function.
9984         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9985         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9986         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9987         always use the best expression.
9988         (vt_expand_loc): Add ignore_cur_loc argument.
9989         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9990         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9991         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9992         note for all calls.
9993         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9994         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9995         argument.  Don't call cselib_preserve_only_values and
9996         cselib_reset_table.
9997         (note_register_arguments): New function.
9998         (vt_initialize): Compute argument_reg_set.  Call
9999         vt_add_function_parameters before processing basic blocks instead of
10000         afterwards.  For calls call prepare_call_arguments before calling
10001         cselib_process_insn.
10002         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10003         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10004         (var-tracking.o): Depend on $(TM_P_H).
10005         * cfglayout.h (insn_scope): New prototype.
10006         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10007         * cfglayout.c (insn_scope): No longer static.
10008         * insn-notes.def (CALL_ARG_LOCATION): New.
10009         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10010         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10011         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10012         nothing for DECL_EXTERNAL BLOCK_VARS.
10013
10014 2011-03-16  Alan Modra  <amodra@gmail.com>
10015
10016         PR target/45844
10017         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10018         create invalid offset address for vsx splat insn.
10019         * config/rs6000/predicates.md (splat_input_operand): New.
10020         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10021
10022 2011-03-15  Xinliang David Li  <davidxl@google.com>
10023
10024         PR c/47837
10025         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10026         (normalize_preds): New function.
10027         (is_use_properly_guarded): Normalize def predicates.
10028
10029 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10030
10031         PR target/46788
10032         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10033         in the output template.
10034
10035 2011-03-15  Richard Guenther  <rguenther@suse.de>
10036
10037         PR middle-end/47650
10038         * tree-pretty-print.c (dump_function_declaration): Properly
10039         dump unprototyped and varargs function types.
10040
10041 2011-03-15  Richard Guenther  <rguenther@suse.de>
10042
10043         PR tree-optimization/13954
10044         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10045         and friends.
10046
10047 2011-03-15  Richard Guenther  <rguenther@suse.de>
10048
10049         PR tree-optimization/48037
10050         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10051         selects into BIT_FIELD_REFs.
10052         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10053         vector select.
10054
10055 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10056
10057         PR tree-optimization/48129
10058         * builtins.c (fold_builtin_snprintf): Convert to type of
10059         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10060         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10061
10062 2011-03-15  Richard Guenther  <rguenther@suse.de>
10063
10064         PR tree-optimization/41490
10065         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10066         value but with VUSE.
10067         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10068         return statements.
10069         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10070         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10071         * tree-tailcall.c (find_tail_calls): Ignore returns.
10072
10073 2011-03-15  Richard Guenther  <rguenther@suse.de>
10074
10075         PR middle-end/48031
10076         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10077         or variable-indexed array accesses when in gimple form.
10078
10079 2011-03-15  Richard Guenther  <rguenther@suse.de>
10080
10081         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10082
10083 2011-03-15  Alan Modra  <amodra@gmail.com>
10084
10085         PR target/48032
10086         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10087         presume symbol_refs without a symbol_ref_decl are suitably
10088         aligned, nor other trees we may see here.  Handle anchor symbols.
10089         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10090         Check cmodel=medium addresses.  Adjust all calls.
10091         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10092         creating cmodel=medium optimized access to locals.
10093         * config/rs6000/constraints.md (R): Pass QImode to
10094         legitimate_constant_pool_address_p.
10095         * config/rs6000/predicates.md (input_operand): Pass mode to
10096         legitimate_constant_pool_address_p.
10097         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10098         Update prototype.
10099
10100 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10101
10102         PR target/48053
10103         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10104         64-bit constants being loaded into registers other than GPRs such
10105         as loading 0 into a VSX register.
10106
10107 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10108
10109         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10110
10111 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10112
10113         PR middle-end/47917
10114         * builtins.c (fold_builtin_snprintf): New function.
10115         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10116         (fold_builtin_4): Likewise.
10117
10118         PR middle-end/38878
10119         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10120         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10121         and C - X == X also strip nops from +/-/p+ operand.
10122         When optimizing -X == C, fold C to arg0's type.
10123
10124         PR debug/47946
10125         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10126         emit it as add_AT_int instead of add_AT_unsigned.
10127
10128 2011-03-14  Tom Tromey  <tromey@redhat.com>
10129
10130         * unwind-dw2.c: Include sys/sdt.h if it exists.
10131         (_Unwind_DebugHook): Use STAP_PROBE2.
10132         * config.in, configure: Rebuild.
10133         * configure.ac: Check for sys/sdt.h.
10134
10135 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10136
10137         * config/i386/i386.md (ROUND_FLOOR): New constant.
10138         (ROUND_CEIL): Ditto.
10139         (ROUND_TRUNC): Ditto.
10140         (ROUND_MXCSR): Ditto.
10141         (ROUND_NO_EXC): Ditto.
10142         (rint<mode>2): Use new defines instead of numerical constants.
10143         (floor<mode>2): Ditto.
10144         (ceil<mode>2): Ditto.
10145         (btrunc<mode>2): Ditto.
10146         * config/i386/i386-builtin-types.def: Define ROUND function type
10147         aliases.
10148         * config/i386/i386.c (enum ix86_builtins): Add
10149         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10150         (struct builtin_description): Add
10151         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10152         (ix86_expand_sse_round): New static function.
10153         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10154         function types.
10155         (ix86_builtin_vectorized_function): Handle
10156         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10157
10158 2011-03-14  Tom Tromey  <tromey@redhat.com>
10159
10160         * c-parser.c (c_parser_asm_string_literal): Clear
10161         warn_overlength_strings.
10162
10163 2011-03-14  Tom Tromey  <tromey@redhat.com>
10164
10165         * c-parser.c (disable_extension_diagnostics): Save
10166         warn_overlength_strings.
10167         (restore_extension_diagnostics): Restore warn_overlength_strings.
10168
10169 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10170
10171         * BASE-VER: Change to 4.7.0.
10172
10173 2011-03-14  Richard Guenther  <rguenther@suse.de>
10174
10175         PR middle-end/48098
10176         * tree.c (build_vector_from_val): Adjust assert to requirements
10177         and reality.
10178
10179 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10180
10181         PR bootstrap/48102
10182         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10183
10184 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10185
10186         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10187         terms of target_flags_explicit. Adjust copyright year.
10188
10189         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10190         * config/rs6000/t-freebsd: New file. Add override for
10191         LIB2FUNCS_EXTRA.
10192
10193 2011-03-13  Chris Demetriou  <cgd@google.com>
10194
10195         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10196         (-fno-diagnostics-show-option): this, to reflect current default.
10197         (-Werror=): Update text about -fno-diagnostics-show-option.
10198
10199 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10200
10201         PR target/48053
10202         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10203         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10204         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10205         mode is not V2DImode or V2DFmode.
10206         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10207         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10208         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10209         registers to 0.
10210         (movdi_internal64): Likewise.
10211
10212 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10213
10214         PR tree-optimization/47127
10215         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10216         parameter.
10217         (set_cloog_options): Same.
10218         (scop_to_clast): Same.
10219         (print_clast_stmt): Do not call cloog_state_malloc and
10220         cloog_state_free.
10221         (print_generated_program): Same.
10222         (gloog): Same.
10223         * graphite-clast-to-gimple.h (cloog_state): Declared.
10224         (scop_to_clast): Adjust declaration.
10225         * graphite.c (cloog_state): Defined here.
10226         (graphite_initialize): Call cloog_state_malloc.
10227         (graphite_finalize): Call cloog_state_free.
10228
10229 2011-03-11  Jason Merrill  <jason@redhat.com>
10230
10231         * attribs.c (lookup_attribute_spec): Take const_tree.
10232         * tree.h: Adjust.
10233
10234 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10235
10236         * config/sparc/sparc.c (sparc_option_override): Use
10237         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10238
10239 2011-03-11  Richard Guenther  <rguenther@suse.de>
10240
10241         PR tree-optimization/48067
10242         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10243         multiplication result will be only used once on the target
10244         stmt.
10245
10246 2011-03-11  Richard Guenther  <rguenther@suse.de>
10247
10248         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10249
10250 2011-03-11  Richard Guenther  <rguenther@suse.de>
10251
10252         PR lto/48073
10253         * tree.c (find_decls_types_r): Do not walk types only reachable
10254         from IDENTIFIER_NODEs.
10255
10256 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10257
10258         PR middle-end/48044
10259         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10260         all vnode->force_output nodes as needed.
10261
10262 2011-03-11  Jason Merrill  <jason@redhat.com>
10263
10264         PR c++/48069
10265         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10266         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10267
10268 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10269
10270         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10271         cgraph_node.
10272
10273 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10274
10275         PR tree-optimization/48063
10276         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10277         inline functions called once if !tree_can_inline_p (node->callers).
10278
10279 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10280
10281         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10282         extra_objs.
10283         * config/score/score3.c: Delete.
10284         * config/score/score3.h: Delete.
10285         * config/score/mul-div.S: Delete.
10286         * config/score/sfp-machine.h: Add new file.
10287         * config/score/constraints.md: Add new file.
10288         * config/score/t-score-softfp: Add new file.
10289         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10290         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10291         (score7_extra_constraint): Delete.
10292         (score7_option_override): Remove unused code.
10293         * config/score/score.c: Remove score3 and score5 define and code.
10294         * config/score/score.h: Remove score3 and score5 define and code.
10295         * config/score/score.md: Remove score3 template and unusual insn.
10296         * config/score/score.opt: Remove score3 and score5 options.
10297
10298 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10299
10300         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10301         when _HPUX_SOURCE is defined.
10302         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10303
10304 2011-03-10  Jason Merrill  <jason@redhat.com>
10305
10306         PR c++/48029
10307         * stor-layout.c (layout_type): Don't set structural equality
10308         on arrays of incomplete type.
10309         * tree.c (type_hash_eq): Handle comparing them properly.
10310
10311 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10312
10313         PR debug/48043
10314         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10315         result mode matches original rtl mode.
10316
10317 2011-03-10  Nick Clifton  <nickc@redhat.com>
10318
10319         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10320         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10321
10322 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10323
10324         PR rtl-optimization/47866
10325         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10326         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10327         if target wasn't scalar.
10328         * function.c (assign_stack_temp_for_type): Assert that neither
10329         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10330         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10331         macro.
10332         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10333
10334 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10335
10336         * config/s390/s390-protos.h (s390_label_align): New prototype.
10337         * config/s390/s390.c (s390_label_align): New function.
10338         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10339
10340 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10341
10342         PR target/47755
10343         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10344         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10345         (output_vec_const_move): Ditto.
10346
10347 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10348
10349         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10350         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10351         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10352         Change 'rclass' argument and result type to reg_class_t.
10353         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10354
10355 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10356
10357         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10358         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10359         (TARGET_MEMORY_MOVE_COST): Define.
10360         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10361
10362 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10363
10364         PR debug/47881
10365         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10366         removed anything.
10367
10368         PR tree-optimization/48022
10369         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10370         for EQ/NE_EXPR.
10371
10372 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10373
10374         PR debug/47991
10375         * var-tracking.c (find_use_val): Return NULL for
10376         cui->sets && cui->store_p BLKmode MEMs.
10377
10378 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10379
10380         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10381         Remove.
10382         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10383         xstormy16_print_operand_address): Remove.
10384         * config/stormy16/stormy16.c (xstormy16_print_operand,
10385         xstormy16_print_operand_address): Make static.
10386         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10387
10388 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10389
10390         PR target/47862
10391         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10392         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10393         before definition.
10394
10395 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10396
10397         PR bootstrap/48000
10398         * cfgloopmanip.c (fix_bb_placements): Return immediately
10399         if FROM is BASE_LOOP's header.
10400
10401 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10402
10403         * gimplify.c (gimplify_function_tree): Fix building calls
10404         to __builtin_return_address.
10405
10406 2011-03-07  Alan Modra  <amodra@gmail.com>
10407
10408         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10409         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10410         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10411         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10412         return_mode args.
10413         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10414         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10415         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10416         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10417         * config/rs6000/rs6000.c
10418         (rs6000_elf_end_indicate_exec_stack): Rename to..
10419         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10420         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10421         (rs6000_file_start): ..here.
10422         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10423         file scope variables.
10424         (call_ABI_of_interest): New function.
10425         (init_cumulative_args): Set above vars when function return value
10426         is a float, vector, or small struct.
10427         (rs6000_function_arg_advance_1): Likewise for function args.
10428         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10429         references float args.
10430
10431 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10432
10433         * doc/cfg.texi: Remove "See" before @ref.
10434         * doc/invoke.texi: Likewise.
10435
10436 2011-03-05  Jason Merrill  <jason@redhat.com>
10437
10438         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10439
10440 2011-03-05  Anthony Green  <green@moxielogic.com>
10441
10442         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10443
10444 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10445
10446         PR rtl-optimization/47899
10447         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10448         to flow_loop_nested_p when moving the loop upward.
10449
10450 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10451
10452         PR target/47719
10453         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10454
10455 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10456
10457         PR tree-optimization/47967
10458         * ipa-cp.c (build_const_val): Return NULL instead of creating
10459         VIEW_CONVERT_EXPR for mismatching sizes.
10460         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10461         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10462         give up on versioning.
10463
10464 2011-03-05  Alan Modra  <amodra@gmail.com>
10465
10466         PR target/47986
10467         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10468         full cmodel medium/large lo_sum + high addresses.
10469
10470 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10471
10472         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10473         pool references in UNSPEC_LTREL_OFFSET.
10474
10475 2011-03-04  Jan Hubicka  <jh@suse.cz>
10476
10477         PR lto/47497
10478         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10479         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10480         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10481         Add node pointers.
10482         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10483         cgraph_add_thunk): Add node pointers.
10484         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10485         associated to right node.
10486         (input_node): Update use of cgraph_same_body_alias
10487         and cgraph_add_thunk.
10488
10489 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10490
10491         * config/i386/i386.opt (mprefer-avx128): New flag.
10492         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10493         modes when the flag -mprefer-avx128 is on.
10494
10495 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10496
10497         * dwarf2out.c (compare_loc_operands): Fix address handling.
10498
10499 2011-03-04  Alan Modra  <amodra@gmail.com>
10500
10501         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10502
10503 2011-03-04  Richard Guenther  <rguenther@suse.de>
10504
10505         PR middle-end/47968
10506         * expmed.c (extract_bit_field_1): Prefer vector modes that
10507         vec_extract patterns can handle.
10508
10509 2011-03-04  Richard Guenther  <rguenther@suse.de>
10510
10511         PR middle-end/47975
10512         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10513
10514 2011-03-04  Richard Henderson  <rth@redhat.com>
10515
10516         * explow.c (emit_stack_save): Remove 'after' parameter.
10517         (emit_stack_restore): Likewise.
10518         * expr.h: Update to match.
10519         * builtins.c, calls.c, stmt.c: Likewise.
10520         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10521         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10522         * function.c (expand_function_end): Insert the emit_stack_save
10523         sequence before parm_birth_insn instead of after.
10524
10525 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10526
10527         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10528         (ssse3_pmaddubsw128): Ditto.
10529         (ssse3_pmaddubsw): Ditto.
10530
10531 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10532
10533         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10534
10535 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10536
10537         PR c/47963
10538         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10539         on TYPE_SIZE_UNIT if it is a DECL.
10540
10541         PR debug/47283
10542         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10543         first operand is not is_gimple_mem_ref_addr, try to fold it.
10544         If the operand still isn't is_gimple_mem_ref_addr, clear
10545         MEM_EXPR on op0.
10546
10547 2011-03-03  Richard Guenther  <rguenther@suse.de>
10548
10549         PR middle-end/47283
10550         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10551         match comment.
10552         (refs_may_alias_p_1): For release branches return true if
10553         we are confused by our input.
10554
10555 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10556
10557         * config/s390/s390.c (s390_function_value): Rename to ...
10558         (s390_function_and_libcall_value): ... this.
10559         (s390_function_value): New function.
10560         (s390_libcall_value): New function.
10561         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10562         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10563         target macro definitions.
10564         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10565
10566 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10567
10568         * config/i386/freebsd64.h (CC1_SPEC): Define.
10569         * config/i386/linux64.h (CC1_SPEC): Define.
10570         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10571
10572 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10573
10574         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10575         Remove.
10576         * config/stormy16/stormy16.c: Include reload.h.
10577         (xstormy16_memory_move_cost): New function.
10578         (TARGET_MEMORY_MOVE_COST): Define.
10579
10580 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10581
10582         PR rtl-optimization/47925
10583         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10584         with side effects.  Remove the more-specific check for volatile asms.
10585
10586 2011-03-02  Alan Modra  <amodra@gmail.com>
10587
10588         PR target/47935
10589         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10590         toc relative addresses for valid offsets.
10591
10592 2011-03-01  Richard Guenther  <rguenther@suse.de>
10593
10594         PR tree-optimization/47890
10595         * tree-vect-loop.c (get_initial_def_for_induction): Set
10596         related stmt properly.
10597
10598 2011-03-01  Richard Guenther  <rguenther@suse.de>
10599
10600         PR lto/47924
10601         * lto-streamer.c (lto_record_common_node): Also register
10602         the canonical type.
10603
10604 2011-03-01  Richard Guenther  <rguenther@suse.de>
10605
10606         PR lto/46911
10607         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10608         Do not stream DECL_ABSTRACT_ORIGIN.
10609         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10610         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10611         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10612         Do not stream DECL_ABSTRACT_ORIGIN.
10613         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10614         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10615
10616 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10617
10618         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10619         FUNCTION_VALUE_REGNO_P): Remove.
10620         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10621         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10622         Add 'outgoing' argument.
10623         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10624         function.
10625         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10626         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10627
10628 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10629
10630         PR debug/28047
10631         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10632         (lookup_filename): Likewise.
10633         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10634
10635 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10636             Jakub Jelinek  <jakub@redhat.com>
10637
10638         PR middle-end/47893
10639         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10640         (assign_stack_local_1): Change last argument type to int.
10641         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10642         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10643         don't record padding space into frame_space_list nor use those areas.
10644         (assign_stack_local): Adjust caller.
10645         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10646         of assign_stack_local, pass 0 as last argument.
10647         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10648         callers.
10649
10650 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10651
10652         PR debug/47283
10653         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10654         Use target address_mode and pointer_mode hooks instead of hardcoded
10655         Pmode and ptr_mode.  Handle some simple cases of extending if
10656         POINTERS_EXTEND_UNSIGNED < 0.
10657         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10658         Call convert_debug_memory_address.
10659         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10660         convert_debug_memory_address.
10661
10662         PR middle-end/46790
10663         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10664         * configure: Regenerated.
10665         * config.in: Regenerated.
10666         * varasm.c (default_function_section): Return NULL
10667         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10668
10669 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10670
10671         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10672         the description to match the printed values.
10673
10674 2011-02-28  Richard Guenther  <rguenther@suse.de>
10675
10676         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10677         of the copied scope tree.
10678
10679 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10680
10681         * doc/extend.texi (Function Attributes): Avoid deeply (and
10682         wrongly) nested tables.
10683
10684 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10685
10686         PR middle-end/47903
10687         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10688         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10689         r isn't op0 nor op1.
10690
10691 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10692
10693         * config/avr/avr.md: Remove magic comment for emacs.
10694
10695 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10696
10697         PR target/45261
10698         * config/avr/avr.c (avr_option_override): Use error on bad options.
10699         (avr_help): New function.
10700         (TARGET_HELP): Define.
10701
10702 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10703
10704         PR target/42240
10705         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10706         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10707
10708 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10709
10710         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10711         (ARM Options): Ditto.
10712         (i386 and x86-64 Options): Ditto.
10713         (RX Options): Ditto.
10714         (SPARC Options): Ditto.
10715
10716 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10717
10718         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10719         FreeBSD 6 and later.  Generally use cpu generic.
10720
10721 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10722
10723         * doc/cpp.texi: Update copyright years.
10724
10725 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10726
10727         PR target/46898
10728         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10729
10730 2011-02-25  Jon Beniston  <jon@beniston.com>
10731
10732         PR target/46898
10733         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10734         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10735         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10736         (lm32_block_move_inline): Add type cast to remove warning.
10737         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10738         (gen_int_relational): Move declarations to start of function.
10739
10740 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10741
10742         PR tree-optimization/45470
10743         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10744         can throw internally only.
10745         * tree-vect-stmts.c (vectorizable_call): Likewise.
10746
10747 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10748
10749         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10750         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10751         * config/stormy16/stormy16-protos.h
10752         (xstormy16_preferred_reload_class): Remove.
10753         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10754         static. Change 'rclass' argument and return type to reg_class_t.
10755         (TARGET_PREFERRED_RELOAD_CLASS,
10756         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10757
10758 2011-02-24  Richard Guenther  <rguenther@suse.de>
10759
10760         * lto-streamer-in.c (input_bb): Do not find referenced vars
10761         in debug statements.
10762
10763 2011-02-23  Jason Merrill  <jason@redhat.com>
10764
10765         * common.opt (fabi-version): Document v5 and v6.
10766
10767 2011-02-23  Richard Guenther  <rguenther@suse.de>
10768
10769         PR tree-optimization/47849
10770         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10771
10772 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10773
10774         * opts-common.c (decode_cmdline_option): Print empty string
10775         argument as "" in decoded->orig_option_with_args_text.
10776         * gcc.c (execute): Print empty string argument as ""
10777         in the verbose output.
10778         (do_spec_1): Keep empty string argument.
10779
10780 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10781
10782         * config.gcc: Declare score-* and crx-* obsolete.
10783
10784 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10785
10786         PR rtl-optimization/47763
10787         * web.c (web_main): Ignore naked clobber when replacing register.
10788
10789 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10790
10791         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10792         Remove.
10793
10794 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10795
10796         PR doc/47848
10797         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10798
10799 2011-02-22  Mike Stump  <mikestump@comcast.net>
10800
10801         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10802         assembler.
10803         * configure: Regenerate.
10804
10805 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10806
10807         PR rtl-optimization/46002
10808         * ira-color.c (update_copy_costs): Change class intersection
10809         test to reg_class_contents[] test of 'hard_regno'.
10810
10811 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10812
10813         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10814         than Driver option.
10815         * config/hpux11.opt (mt): Likewise.
10816         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10817         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10818         * config/vax/elf.opt (mno-asm-pic): Likewise.
10819         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10820
10821 2011-02-21  Mike Stump  <mikestump@comcast.net>
10822
10823         PR target/47822
10824         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10825         tree so we can get save the type.
10826         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10827         for CFString instead of trying to use past the end of the builtins.
10828         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10829         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10830         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10831         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10832         Rename to darwin_builtin_cfstring.
10833         (darwin_init_cfstring_builtins): Return the built type.
10834
10835 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10836
10837         PR target/47840
10838         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10839         (_mm256_insert_epi64): Use _mm_insert_epi64.
10840
10841 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10842
10843         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10844         * config/stormy16/stormy16-protos.h
10845         (xstormy16_mode_dependent_address_p): Remove.
10846         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10847         Make static. Change return type to bool. Change argument type to
10848         const_rtx. Remove dead code.
10849         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10850
10851 2011-02-21  Richard Guenther  <rguenther@suse.de>
10852
10853         PR lto/47820
10854         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10855         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10856         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10857         TUs context.
10858         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10859         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10860
10861 2011-02-20  Richard Guenther  <rguenther@suse.de>
10862
10863         PR lto/47822
10864         * tree.c (free_lang_data_in_decl): Clean builtins from
10865         the TU decl BLOCK_VARS.
10866
10867 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10868
10869         PR debug/47620
10870         PR debug/47630
10871         * haifa-sched.c (fix_tick_ready): Skip tick computation
10872         for debug insns.
10873
10874 2011-02-19  Richard Guenther  <rguenther@suse.de>
10875
10876         PR lto/47647
10877         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10878         Remove lazy BLOCK_VARS streaming.
10879         (lto_input_ts_block_tree_pointers): Likewise.
10880         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10881
10882 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10885
10886 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10887
10888         * config/i386/biarch32.h, config/i386/mach.h,
10889         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10890
10891 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10892
10893         PR target/47800
10894         * config/i386/i386.md (peephole2 for shift and plus): Use
10895         operands[1] original mode in the first insn.
10896
10897 2011-02-18  Mike Stump  <mikestump@comcast.net>
10898
10899         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10900
10901 2011-02-18  Jan Hubicka  <jh@suse.cz>
10902
10903         PR middle-end/47788
10904         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10905         to zero when the function is not inlinable at all.
10906
10907 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10908
10909         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10910         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10911         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10912         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10913         * config/pa/t-pa64: Likewise.
10914         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10915
10916 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10917
10918         PR driver/47787
10919         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10920
10921 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10922
10923         PR target/47792
10924         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10925
10926 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10927
10928         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10929         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10930         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10931         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10932         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10933         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10934         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10935         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10936         m32r_legitimate_address_p): New functions.
10937         * config/m32r/constraints.md (constraint "S"): Don't use
10938         STORE_PREINC_PREDEC_P.
10939         (constraint "U"): Don't use LOAD_POSTINC_P.
10940
10941 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10942
10943         PR rtl-optimization/46178
10944         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10945         compute ira_hard_regno_cover_class[].
10946
10947 2011-02-18  Richard Guenther  <rguenther@suse.de>
10948
10949         PR lto/47798
10950         * lto-streamer.h (lto_global_var_decls): Declare.
10951         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10952         statics for global var processing.
10953
10954 2011-02-18  Richard Guenther  <rguenther@suse.de>
10955
10956         PR tree-optimization/47737
10957         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10958         edge dominance check.
10959
10960 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10961
10962         PR debug/47780
10963         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10964         avoid invalid rtx sharing.
10965
10966 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10967
10968         * doc/cpp.texi (Obsolete Features): Add background on the
10969         origin of assertions.
10970
10971 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10972
10973         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10974         objc_abi == 2.
10975         * config/darwin.c (output_objc_section_asm_op): Added support for
10976         ABI v1 and v2.
10977         (is_objc_metadata): New.
10978         (darwin_objc2_section): New.
10979         (darwin_objc1_section): New.
10980         (machopic_select_section): Added support for ABI v1 and v2.
10981         (darwin_emit_objc_zeroed): New.
10982         (darwin_output_aligned_bss): Detect objc metadata and treat it
10983         appropriately.
10984         (darwin_asm_output_aligned_decl_common): Same.
10985         (darwin_asm_output_aligned_decl_local): Same.
10986         * config/darwin-sections.def: Updated for ABI v1 and v2.
10987         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10988         compiling Objective-C code for the NeXT runtime, default to using
10989         ABI version 0 for 32-bit, and version 2 for 64-bit.
10990
10991 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10992
10993         * common.opt (optimize_fast): New Variable.
10994         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10995         instead of local variable ofast.
10996
10997 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10998
10999         * doc/invoke.texi (fobjc-abi-version): Documented.
11000         (fobjc-nilcheck): Documented.
11001         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11002         version.
11003
11004 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11005
11006         PR driver/47390
11007         * common.opt (export-dynamic): New Driver option.
11008         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11009
11010 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11011
11012         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11013
11014 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11015             Jan Hubicka  <jh@suse.cz>
11016
11017         PR debug/47106
11018         PR debug/47402
11019         * cfgexpand.c (account_used_vars_for_block): Remove.
11020         (estimated_stack_frame_size): Use referenced vars.
11021         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11022         that were referenced in the original function.  Test src_fn
11023         rather than cfun.  Drop redundant get_var_ann.
11024         (setup_one_parameter): Drop redundant get_var_ann.
11025         (declare_return_variable): Likewise.
11026         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11027         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11028         * ipa-inline.c (compute_inline_parameters): Do not compute
11029         disregard_inline_limits here.
11030         (compute_inlinable_for_current, pass_inlinable): New.
11031         (pass_inline_parameters): Require PROP_referenced_vars.
11032         * cgraphunit.c (cgraph_process_new_functions): Don't run
11033         compute_inline_parameters explicitly unless function is in SSA form.
11034         (cgraph_analyze_function): Set .disregard_inline_limits.
11035         * tree-sra.c (convert_callers): Compute inliner parameters
11036         only for functions already in SSA form.
11037
11038 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11039
11040         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11041         -mlittle-endian-data.
11042
11043 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11044
11045         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11046         -mno-fpu, not -fpu and -no-fpu.
11047         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11048         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11049
11050 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11051
11052         PR target/43653
11053         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11054         input reload with PLUS RTX.
11055
11056 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11057
11058         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11059         of InverseVar(MDMX).
11060
11061 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11062
11063         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11064         --m4-340.
11065
11066 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11067
11068         * config/mn10300/mn10300.opt (mno-crt0): New.
11069
11070 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11071
11072         * config/m68k/uclinux.opt (static-libc): New Driver option.
11073
11074 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11075
11076         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11077
11078 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11079
11080         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11081         %{muser-extend-enabled}.
11082
11083 2011-02-16  Richard Guenther  <rguenther@suse.de>
11084
11085         PR tree-optimization/47738
11086         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11087         the TODO from tree_predictive_commoning.
11088
11089 2011-02-15  Jeff Law  <law@redhat.com>
11090
11091         Revert
11092         2011-01-25  Jeff Law  <law@redhat.com>
11093
11094         PR rtl-optimization/37273
11095         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11096         handle them like argument loads from stack slots.  Do not double
11097         count memory for memory constants and argument loads from stack slots.
11098
11099 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11100
11101         PR middle-end/47725
11102         * combine.c (cant_combine_insn_p): Revert the last change.
11103
11104 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11105
11106         PR target/47755
11107         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11108         mode for vector constants.  Remove code that checks for TImode.
11109
11110 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11111
11112         PR debug/47106
11113         PR debug/47402
11114         * cgraph.h (compute_inline_parameters): Return void.
11115         * ipa-inline.c (compute_inline_parameters): Adjust.
11116
11117 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11118
11119         PR debug/47106
11120         PR debug/47402
11121         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11122         rather than decl.
11123         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11124         * ipa-inline.c (compute_inline_parameters): Adjust.
11125
11126 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11127
11128         PR debug/47106
11129         PR debug/47402
11130         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11131         Adjust all users.  Pass FN to...
11132         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11133         fn argument.
11134         * ipa-struct-reorg.c: Adjust.
11135         * tree-dfa.c: Adjust.
11136         * tree-into-ssa.c: Adjust.
11137         * tree-sra.c: Adjust.
11138         * tree-ssa-alias.c: Adjust.
11139         * tree-ssa-live.c: Adjust.
11140         * tree-ssa.c: Adjust.
11141         * tree-ssanames.c: Adjust.
11142         * tree-tailcall.c: Adjust.
11143
11144 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11145
11146         PR debug/47106
11147         PR debug/47402
11148         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11149         Adjust all callers.
11150         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11151         * tree-flow-inline.h: Adjust.
11152         * gimple-pretty-print.c: Adjust.
11153         * tree-into-ssa.c: Adjust.
11154         * tree-ssa.c: Adjust.
11155         * cfgexpand.c: Adjust.
11156
11157 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11158
11159         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11160         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11161         (EXTRA_CONSTRAINT): Delete.
11162         * config/iq2000/constraints.md: New file.
11163         * config/iq2000/iq2000.md: Include it.
11164         (define_insn ""): Delete.
11165         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11166         unsupported constraint letters from patterns.
11167         (call_value, call_value_internal1): Likewise.
11168         (call_value_multiple_internal1): Likewise.
11169
11170 2011-02-15  Nick Clifton  <nickc@redhat.com>
11171
11172         * config/mn10300/mn10300.c: Include tm-constrs.h.
11173         (struct liw_data): New data structure describing an LIW candidate
11174         instruction.
11175         (extract_bundle): Use struct liw_data.  Allow small integer
11176         operands for some instructions.
11177         (check_liw_constraints): Use struct liw_data.  Remove swapped
11178         parameter.  Add comments describing the checks.  Fix bug when
11179         assigning the source of liw1 to the source of liw2.
11180         (liw_candidate): Delete.  Code moved into extract_bundle.
11181         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11182         before swapping.
11183         * config/mn10300/predicates.md (liw_operand): New predicate.
11184         Allows registers and small integer constants.
11185         * config/mn10300/constraints.md (O): New constraint.  Accetps
11186         integers in the range -8 to +7 inclusive.
11187         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11188         for moving a small integer into a register.  Give this alternative
11189         LIW attributes.
11190         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11191         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11192         using the J,K,L and M constraints,
11193         (liw): Remove SI mode on second operands to allow for HI and QI
11194         mode values.
11195         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11196         instruction.
11197
11198 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11199
11200         PR middle-end/47725
11201         * combine.c (cant_combine_insn_p): Check zero/sign extended
11202         hard registers.
11203
11204 2011-02-15  Richard Guenther  <rguenther@suse.de>
11205
11206         PR tree-optimization/47743
11207         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11208         for a non-type-compatible VN lookup bail out.
11209
11210 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11211
11212         * config/fr30/constraints.md: New file.
11213         * config/fr30/fr30.md: Include it.
11214         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11215         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11216         (EXTRA_CONSTRAINT): Delete.
11217
11218 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11219
11220         * config/frv/constraints.md: New file.
11221         * config/frv/predicates.md: Include it.
11222         * config/frv/frv.c (reg_class_from_letter): Delete.
11223         (frv_option_override): Don't initialize it.
11224         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11225         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11226         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11227         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11228         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11229         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11230         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11231         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11232         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11233         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11234         (REG_CLASS_FROM_CONSTRAINT): Delete.
11235
11236 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11237
11238         PR middle-end/47581
11239         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11240         if frame size is 0 in a leaf function.
11241
11242 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11243
11244         PR pch/14940
11245         * config/alpha/host-osf.c: New file.
11246         * config/alpha/x-osf: New file.
11247         * config.host (alpha*-dec-osf*): Use it.
11248
11249 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11250
11251         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11252         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11253         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11254         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11255         type to const_rtx.
11256         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11257
11258 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11259
11260         * config/stormy16/constraints.md: New file.
11261         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11262         Use satisfies_constraint_Q and satisfies_constraint_R.
11263         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11264         Delete.
11265         (xstormy16_legitiamte_address_p): Declare.
11266         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11267         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11268         (EXTRA_CONSTRAINT): Delete.
11269         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11270         Un-staticize.
11271         (xstormy16_extra_constraint_p): Delete.
11272
11273 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11274
11275         PR tree-optimization/46494
11276         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11277         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11278         (pass_rtl_loop_done): Add TODO_verify_flow.
11279         * fwprop.c (pass_rtl_fwprop): Likewise.
11280         * modulo-sched.c (pass_sms): Likewise.
11281         * tree-ssa-dom.c (pass_dominator): Likewise.
11282         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11283         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11284         (pass_tree_loop_done): Likewise.
11285         * tree-ssa-pre.c (execute_pre): Likewise.
11286         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11287         * tree-ssa-sink.c (pass_sink_code): Likewise.
11288         * tree-vrp.c (pass_vrp): Likewise.
11289
11290 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11291
11292         * config/v850/constraints.md: New file.
11293         * config/v850/v850.md: Include it.
11294         * config/v850/predicates.md (reg_or_0_operand): Use
11295         satisfies_constraint_G.
11296         (special_symbolref_operand): Use satisfies_constraint_K.
11297         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11298         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11299         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11300         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11301         (EXTRA_CONSTRAINT): Delete.
11302         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11303         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11304         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11305
11306 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11307
11308         PR target/47696
11309         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11310         description.
11311
11312 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11313
11314         * config/mcore/constraints.md: New file.
11315         * config/mcore/mcore.md: Include it.
11316         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11317         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11318         (REG_CLASS_FROM_LETTER): Delete.
11319         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11320         insn_const_int_ok_for_constraint.
11321         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11322         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11323         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11324         (EXTRA_CONSTRAINT): Delete.
11325
11326 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11327
11328         PR ada/41929
11329         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11330         (IS_SIGHANDLER): Define.
11331         (sparc64_is_sighandler): New function, split off from
11332         sparc64_fallback_frame_state.
11333         (sparc_is_sighandler): New function, split off from
11334         sparc_fallback_frame_state.
11335         (sparc64_fallback_frame_state): Merge with ...
11336         (sparc_fallback_frame_state): ... this into ...
11337         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11338         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11339         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11340         stack instead of hardcoded offsets.
11341
11342 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11343
11344         PR target/45808
11345         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11346
11347 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11348
11349         * configure: Regenerate.
11350
11351 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11352
11353         PR driver/45731
11354         * gcc.c (asm_options): Correct spec matching --target-help.
11355
11356 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11357
11358         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11359         to gimple call error.
11360
11361 2011-02-12  Mike Stump  <mikestump@comcast.net>
11362
11363         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11364         comments in backslash regions.
11365
11366 2011-02-12  Mike Stump  <mikestump@comcast.net>
11367             Jakub Jelinek  <jakub@redhat.com>
11368             Iain Sandoe  <iains@gcc.gnu.org>
11369
11370         PR target/47324
11371         * dwarf2out.c (output_cfa_loc): When required, apply the
11372         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11373         (output_loc_sequence): Likewise.
11374         (output_loc_operands_raw): Likewise.
11375         (output_loc_sequence_raw): Likewise.
11376         (output_cfa_loc): Likewise.
11377         (output_loc_list): Suppress register number adjustment when
11378         calling output_loc_sequence()
11379         (output_die): Likewise.
11380
11381 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11382
11383         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11384         Remove macros.
11385         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11386         xtensa_memory_move_cost): New functions.
11387         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11388
11389 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11390
11391         PR lto/47225
11392         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11393         in the current directory.
11394         * configure: Rebuilt.
11395
11396 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11397
11398         * config/darwin.c (darwin_override_options): Add a hunk missed
11399         from the commit of r168571.  Trim comment line lengths and
11400         correct indents of the preceding block.
11401
11402 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11403
11404         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11405         the switch.
11406
11407 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11408
11409         * common.opt (nostartfiles): New Driver option.
11410
11411 2011-02-11  Xinliang David Li  <davidxl@google.com>
11412
11413         PR tree-optimization/47707
11414         * tree-chrec.c (convert_affine_scev): Keep type precision.
11415
11416 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11417
11418         PR tree-optimization/47420
11419         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11420
11421 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11422
11423         PR rtl-optimization/47614
11424         * rtl.h (check_for_inc_dec): Declare.
11425         * dse.c (check_for_inc_dec): Externalize...
11426         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11427         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11428
11429 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11430
11431         PR driver/47678
11432         * gcc.c (main): Do not compile inputs if there were errors in
11433         option handling.
11434         * opts-common.c (read_cmdline_option): Check for wrong language
11435         after other error checks.
11436
11437 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11438
11439         * cgraph.c: Fix comment typos.
11440         * cgraph.h: Likewise.
11441         * cgraphunit.c: Likewise.
11442         * ipa-cp.c: Likewise.
11443         * ipa-inline.c: Likewise.
11444         * ipa-prop.c: Likewise.
11445         * ipa-pure-const.c: Likewise.
11446         * ipa-ref.c: Likewise.
11447         * ipa-reference.c: Likewise.
11448
11449 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11450
11451         PR debug/47684
11452         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11453
11454 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11455
11456         PR testsuite/47400
11457         * doc/sourcebuild.texi (Require Support): Document
11458         dg-require-ascii-locale.
11459
11460 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11461
11462         * doc/lto.texi (Write summary): Fix missing parentheses.
11463
11464 2011-02-10  DJ Delorie  <dj@redhat.com>
11465
11466         * config/m32c/m32c.c (m32c_option_override): Disable
11467         -fcombine-stack-adjustments until flag value tracking and compare
11468         optimization can be rewritten.
11469
11470 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11471
11472         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11473         PROCESSOR_POWER7.
11474         (PROCESSOR_DEFAULT64): Likewise.
11475
11476 2011-02-10  Richard Henderson  <rth@redhat.com>
11477
11478         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11479         change from 2011-02-03.
11480         * config/rx/rx.c (flags_from_code): Likewise.
11481         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11482         is valid, n/pz otherwise.
11483         (rx_select_cc_mode): Return CCmode if Y is not zero.
11484
11485 2011-02-10  Richard Guenther  <rguenther@suse.de>
11486
11487         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11488
11489 2011-02-10  Richard Guenther  <rguenther@suse.de>
11490
11491         PR tree-optimization/47677
11492         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11493
11494 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11495
11496         PR target/47665
11497         * combine.c (make_compound_operation): Only change shifts into
11498         multiplication for SCALAR_INT_MODE_P.
11499
11500 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11501
11502         PR testsuite/47622
11503         Revert
11504         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11505         PR debug/42631
11506         * web.c (entry_register): Don't clobber the number of the
11507         first uninitialized reference in used[].
11508
11509 2011-02-09  Richard Guenther  <rguenther@suse.de>
11510
11511         PR tree-optimization/47664
11512         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11513         all edges again.
11514
11515 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11516
11517         PR target/46481
11518         PR target/47032
11519         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11520         PROCESSOR_POWER7.
11521         (PROCESSOR_DEFAULT64): Same.
11522         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11523
11524 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11525
11526         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11527
11528 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11529
11530         PR middle-end/45505
11531         * tree-sra.c (struct access): New flags grp_scalar_read and
11532         grp_scalar_write.  Changed description of assignment read and write
11533         flags.
11534         (dump_access): Dump new flags, reorder all of them.
11535         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11536         to detect multiple scalar reads.
11537         (analyze_access_subtree): Use the new scalar read write flags instead
11538         of the old flags.  Adjusted comments.
11539
11540 2011-02-08  DJ Delorie  <dj@redhat.com>
11541
11542         PR target/47548
11543         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11544         patterns.
11545
11546 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11547
11548         * config/m68k/uclinux.opt: New.
11549         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11550
11551 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11552
11553         * config/cris/elf.opt (sim): New Driver option.
11554
11555 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11556
11557         * config/xtensa/elf.opt: New.
11558         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11559
11560 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11561
11562         * config/vax/elf.opt: New.
11563         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11564
11565 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11566
11567         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11568
11569 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11570
11571         * config/gnu-user.opt: New.
11572         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11573         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11574         *-*-uclinux*): Use gnu-user.opt.
11575
11576 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11577
11578         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11579         * config/i386/gnu.h (CPP_SPEC): Likewise.
11580
11581 2011-02-08  Ian Lance Taylor  <iant@google.com>
11582
11583         * common.opt (fcx-limited-range): Add SetByCombined flag.
11584         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11585         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11586         (fassociative-math, freciprocal-math): Likewise.
11587         (funsafe-math-optimizations): Likewise.
11588         * opth-gen.awk: Handle SetByCombined.
11589         * optc-gen.awk: Likewise.
11590         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11591         (set_unsafe_math_optimizations_flags): Likewise.
11592         * doc/options.texi (Option properties): Document SetByCombined.
11593
11594 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11595
11596         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11597         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11598         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11599         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11600         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11601
11602 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11603
11604         PR tree-optimization/46834
11605         PR tree-optimization/46994
11606         PR tree-optimization/46995
11607         * graphite-sese-to-poly.c (used_outside_reduction): New.
11608         (detect_commutative_reduction): Call used_outside_reduction.
11609         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11610         translate_scalar_reduction_to_array only when at least one
11611         loop-phi/close-phi tuple has been detected.
11612
11613 2011-02-08  Richard Guenther  <rguenther@suse.de>
11614
11615         PR middle-end/47639
11616         * tree-vect-generic.c (expand_vector_operations_1): Update
11617         stmts here ...
11618         (expand_vector_operations): ... not here.  Cleanup EH info
11619         and the CFG if required.
11620
11621 2011-02-08  Richard Guenther  <rguenther@suse.de>
11622
11623         PR tree-optimization/47641
11624         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11625         require type compatibility.
11626
11627 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11628
11629         * gimple-low.c (lower_function_body): Don't remove the location of
11630         the return statement here.
11631         (lower_gimple_return): Do it here instead but only if the return
11632         statement is actually used twice.
11633
11634 2011-02-08  Richard Guenther  <rguenther@suse.de>
11635
11636         PR tree-optimization/47632
11637         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11638         unused up_to_stmt parameter, return whether cfg-cleanup is
11639         necessary, remove EH info properly.
11640         (forward_propagate_into_gimple_cond): Adjust caller.
11641         (forward_propagate_into_cond): Likewise.
11642         (forward_propagate_comparison): Likewise.
11643         (tree_ssa_forward_propagate_single_use_vars): Make
11644         forward_propagate_comparison case similar to the two others.
11645
11646 2011-02-08  Nick Clifton  <nickc@redhat.com>
11647
11648         * config/mn10300/mn10300.opt (mliw): New command line option.
11649         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11650         (liw_bundling): New automaton.
11651         (liw): New attribute.
11652         (liw_op): New attribute.
11653         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11654         (movsi_internal): Add LIW attributes.
11655         (andsi3): Likewise.
11656         (iorsi3): Likewise.
11657         (xorsi3): Likewise.
11658         (addsi3): Separate register and immediate alternatives.
11659         Add LIW attributes.
11660         (subsi3): Likewise.
11661         (cmpsi): Likewise.
11662         (aslsi3): Likewise.
11663         (lshrsi3): Likewise.
11664         (ashrsi3): Likewise.
11665         (liw): New pattern.
11666         * config/mn10300/mn10300.c (liw_op_names): New
11667         (mn10300_print_operand): Handle 'W' operand descriptor.
11668         (extract_bundle): New function.
11669         (check_liw_constraints): New function.
11670         (liw_candidate): New function.
11671         (mn10300_bundle_liw): New function.
11672         (mn10300_reorg): New function.
11673         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11674         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11675         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11676         __LIW__ or __NO_LIW__.
11677         * doc/invoke.texi: Describe the -mliw command line option.
11678
11679 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11680
11681         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11682         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11683         pthread_mutex_unlock): Remove.
11684         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11685         * config/pa/t-pa64: Likewise.
11686         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11687         shared libc if not linking against libpthread.
11688         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11689
11690 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11691
11692         PR target/47558
11693         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11694         on 10.6 and later to ensure that we always use the unwinder from
11695         the system.  Only add -no_compact_unwind when tarteting darwin
11696         10.6 or later.
11697
11698 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11699
11700         PR target/46997
11701         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11702         (vec_interleave_lowv2sf): Ditto.
11703         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11704         (vec_extract_oddv2sf): Ditto.
11705
11706 2011-02-07  Mike Stump  <mikestump@comcast.net>
11707
11708         PR target/42333
11709         Add __ieee_divdc3 entry point.
11710         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11711         entry point.
11712         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11713         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11714         * config/darwin.c (darwin_rename_builtins): Add.
11715         * config/darwin-protos.h (darwin_rename_builtins): Add.
11716
11717 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11718
11719         PR target/47636
11720         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11721         for the condition.
11722
11723 2011-02-07  Mike Stump  <mikestump@comcast.net>
11724
11725         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11726
11727 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11728
11729         PR target/47534
11730         * config/avr/libgcc.S (exit): Move .endfunc
11731
11732 2011-02-07  Richard Guenther  <rguenther@suse.de>
11733
11734         PR tree-optimization/47615
11735         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11736         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11737         (run_scc_vn): Initialize it.
11738         (visit_reference_op_load): Use it.
11739         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11740
11741 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11742
11743         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11744         DImode trapping arithmetic libfuncs.
11745
11746 2011-02-07  Richard Guenther  <rguenther@suse.de>
11747
11748         PR tree-optimization/47621
11749         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11750         two duplicates ...
11751         (execute_update_addresses_taken): ... here.  Make it more
11752         conservative in what we accept.
11753
11754 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11755
11756         * config/sparc/freebsd.h (ASM_SPEC): Define.
11757         * config/sparc/vxworks.h (ASM_SPEC): Define.
11758
11759 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11760
11761         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11762
11763 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11764
11765         * doc/invoke.texi: Remove reference to compiler internals from
11766         user documentation.
11767
11768         * reg-notes.def: Remove REG_VALUE_PROFILE.
11769         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11770
11771 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11772
11773         PR middle-end/47610
11774         * varasm.c (default_section_type_flags): If decl is NULL,
11775         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11776
11777 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11778
11779         PR debug/42631
11780         * web.c (entry_register): Don't clobber the number of the
11781         first uninitialized reference in used[].
11782
11783 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11784
11785         PR tree-optimization/46194
11786         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11787         (build_classic_dist_vector_1): Do not represent classic distance
11788         vectors when the access functions are variating in different loops.
11789
11790 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11791
11792         * config/mips/iris6.opt: New.
11793         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11794
11795 2011-02-04  Richard Henderson  <rth@redhat.com>
11796             Steve Ellcey  <sje@cup.hp.com>
11797
11798         PR target/46997
11799         * config/ia64/predicates.md (mux1_brcst_element): New.
11800         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11801         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11802         (ia64_unpack_sign): New.
11803         (ia64_expand_unpack): Rewrite using new routines.
11804         (ia64_expand_widen_sum): Ditto.
11805         (ia64_expand_dot_prod_v8qi): Ditto.
11806         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11807         routines, add endian check.
11808         (pmpy2_even): Rename from pmpy2_r, add endian check.
11809         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11810         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11811         (vec_widen_smult_hi_v4hi): Ditto.
11812         (vec_widen_umult_lo_v4hi): Ditto.
11813         (vec_widen_umult_hi_v4hi): Ditto.
11814         (mulv2si3): Change endian checks.
11815         (sdot_prodv4hi): Rewrite with new calls.
11816         (udot_prodv4hi): New.
11817         (vec_pack_ssat_v4hi): Add endian check.
11818         (vec_pack_usat_v4hi): Ditto.
11819         (vec_pack_ssat_v2si): Ditto.
11820         (max1_even): Rename from max1_r, add endian check.
11821         (max1_odd): Rename from max1_l, add endian check.
11822         (*mux1_rev): Format change.
11823         (*mux1_mix): Ditto.
11824         (*mux1_shuf): Ditto.
11825         (*mux1_alt): Ditto.
11826         (*mux1_brcst_v8qi): Use new predicate.
11827         (vec_extract_evenv8qi): Remove endian check.
11828         (vec_extract_oddv8qi): Ditto.
11829         (vec_interleave_lowv4hi): Format change.
11830         (vec_interleave_highv4hi): Ditto.
11831         (mix2_even): Rename from mix2_r, add endian check.
11832         (mix2_odd): Rename from mux2_l, add endian check.
11833         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11834         (vec_extract_evenodd_helper): Format change.
11835         (vec_extract_evenv4hi): Remove endian check.
11836         (vec_extract_oddv4hi): Remove endian check.
11837         (vec_interleave_lowv2si): Format change.
11838         (vec_interleave_highv2si): Format change.
11839         (vec_initv2si): Remove endian check.
11840         (vecinit_v2si): Add endian check.
11841         (reduc_splus_v2sf): Add endian check.
11842         (reduc_smax_v2sf): Ditto.
11843         (reduc_smin_v2sf): Ditto.
11844         (vec_initv2sf): Remove endian check.
11845         (fpack): Add endian check.
11846         (fswap): Add endian check.
11847         (vec_interleave_highv2sf): Add endian check.
11848         (vec_interleave_lowv2sf): Add endian check.
11849         (fmix_lr): Add endian check.
11850         (vec_setv2sf): Format change.
11851         (*vec_extractv2sf_0_be): Use shift to extract operand.
11852         (*vec_extractv2sf_1_be): New.
11853         (vec_pack_trunc_v4hi): Add endian check.
11854         (vec_pack_trunc_v2si): Format change.
11855
11856 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11857
11858         PR inline-asm/23200
11859         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11860         do bb, locus and block comparison and disallow loads if it is not set.
11861         (stmt_is_replaceable_p): New function.
11862         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11863         callers.
11864         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11865         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11866         SSA_NAME_DEF_STMT.
11867         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11868
11869 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11870
11871         * config/rs6000/xilinx.opt: New.
11872         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11873
11874 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11875
11876         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11877
11878 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11879
11880         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11881         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11882         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11883         secondary_reload_info, xtensa_secondary_reload): Remove.
11884         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11885         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11886         (xtensa_preferred_reload_class): Make static. Change return and
11887         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11888         Use CONST_DOUBLE_P predicate.
11889         (xtensa_preferred_output_reload_class): New function.
11890         (xtensa_secondary_reload): Make static.
11891
11892 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11893
11894         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11895         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11896         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11897
11898 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11899
11900         PR middle-end/31490
11901         * output.h (SECTION_RELRO): Define.
11902         (SECTION_MACH_DEP): Adjust.
11903         (get_variable_section): New prototype.
11904         * varpool.c (varpool_finalize_named_section_flags): New function.
11905         (varpool_assemble_pending_decls): Call it.
11906         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11907         * cgraphunit.c (cgraph_output_in_order): Call
11908         varpool_finalize_named_section_flags.
11909         * varasm.c (get_section): Allow section flags conflicts between
11910         relro and read-only sections if the section hasn't been declared yet.
11911         Set SECTION_OVERRIDE after diagnosing section type conflict.
11912         (get_variable_section): No longer static.
11913         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11914         readonly sections that need relocations.
11915         (decl_readonly_section_1): New function.
11916         (decl_readonly_section): Use it.
11917
11918         Revert:
11919         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11920                     Steve Ellcey  <sje@cup.hp.com>
11921
11922         PR middle-end/31490
11923         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11924         if section attribute used.
11925
11926 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11927
11928         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11929         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11930         (darwin_init_sections): Remove assertion.
11931
11932 2011-02-03  Nick Clifton  <nickc@redhat.com>
11933
11934         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11935         lt and ge.
11936         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11937         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11938         instead of "n" and "pz".
11939         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11940         CC_FLAG_S.
11941
11942 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11943
11944         PR target/47312
11945         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11946         fma, expand FMA_EXPR as fma{,f,l} call.
11947
11948         PR lto/47274
11949         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11950         copy them into a unsigned char variable and pass address of it to
11951         lto_output_data_stream.
11952
11953         PR target/47564
11954         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11955         around backend_init_target and lang_dependent_init_target calls.
11956         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11957         (verify_cgraph_node): Don't call set_cfun here.  Use
11958         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11959         Set error_found for incorrectly represented calls to thunks.
11960
11961 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11962
11963         PR debug/43092
11964         PR rtl-optimization/43494
11965         * rtl.h (for_each_inc_dec_fn): New type.
11966         (for_each_inc_dec): Declare.
11967         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11968         (for_each_inc_dec_find_inc_dec): New fn.
11969         (for_each_inc_dec_find_mem): New fn.
11970         (for_each_inc_dec): New fn.
11971         * dse.c (struct insn_size): Remove.
11972         (replace_inc_dec, replace_inc_dec_mem): Remove.
11973         (emit_inc_dec_insn_before): New fn.
11974         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11975         (canon_address): Pass mem modes to cselib_lookup.
11976         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11977         (cselib_lookup_from_insn): Likewise.
11978         (cselib_subst_to_values): Likewise.
11979         * cselib.c (find_slot_memmode): New var.
11980         (cselib_find_slot): New fn.  Use it instead of
11981         htab_find_slot_with_hash everywhere.
11982         (entry_and_rtx_equal_p): Use find_slot_memmode.
11983         (autoinc_split): New fn.
11984         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11985         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11986         Deal with autoinc.  Special-case recursion into MEMs.
11987         (cselib_hash_rtx): Likewise.
11988         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11989         address and MEM modes.
11990         (cselib_subst_to_values): Add memmode, pass it on.
11991         Deal with autoinc.
11992         (cselib_lookup): Add memmode argument, pass it on.
11993         (cselib_lookup_from_insn): Add memmode.
11994         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11995         (struct cselib_record_autoinc_data): New.
11996         (cselib_record_autoinc_cb): New fn.
11997         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11998         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11999         (cselib_process_insn): ... here.
12000         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12001         to cselib_lookup.
12002         (add_uses): Likewise, also to cselib_subst_to_values.
12003         (add_stores): Likewise.
12004         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12005         cselib_subst_to_values.
12006         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12007         * gcse.c (do_local_cprop): Adjusted.
12008         * postreload.c (reload_cse_simplify_set): Adjusted.
12009         (reload_cse_simplify_operands): Adjusted.
12010         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12011
12012 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12013
12014         PR tree-optimization/45122
12015         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12016         unsafe assumptions when there's more than one loop exit.
12017
12018 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12019
12020         PR target/47272
12021         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12022         Document using vector double with the load/store builtins, and
12023         that the load/store builtins always use Altivec instructions.
12024
12025         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12026         to use altivec memory instructions, even on VSX.
12027         (vector_altivec_store_<mode>): Ditto.
12028
12029         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12030         function.
12031
12032         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12033         V2DF, V2DI support to load/store overloaded builtins.
12034
12035         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12036         altivec load/store builtins for V2DF/V2DI types.
12037
12038         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12039         set avoid indexed addresses on power6 if -maltivec.
12040         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12041         vector_altivec_load/vector_altivec_store builtins.
12042         (altivec_expand_st_builtin): Ditto.
12043         (altivec_expand_builtin): Add VSX memory builtins.
12044         (rs6000_init_builtins): Add V2DI types to internal types.
12045         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12046         load/store builtins.
12047         (rs6000_address_for_altivec): Insure memory address is appropriate
12048         for Altivec.
12049
12050         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12051         vec_vsx_ld and vec_vsx_st.
12052         (vsx_store_<mode>): Ditto.
12053
12054         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12055         variables to hold long long types for VSX vector memory builtins.
12056         (RS6000_BTI_unsigned_long_long): Ditto.
12057         (long_long_integer_type_internal_node): Ditti.
12058         (long_long_unsigned_type_internal_node): Ditti.
12059
12060         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12061         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12062         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12063
12064         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12065         short cuts.
12066         (vec_vsx_st): Ditto.
12067
12068 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12069
12070         * config/pa/pa-hpux10.opt: New.
12071         * config/hpux11.opt (pthread): New Driver option.
12072         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12073         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12074
12075 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12076
12077         * config/ia64/vms.opt: New.
12078         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12079
12080 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12081
12082         PR target/47580
12083         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12084         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12085         generator functions.
12086         (vsx_floatuns<VSi><mode>2): Ditto.
12087         (vsx_fix_trunc<mode><VSi>2): Ditto.
12088         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12089
12090 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * config/i386/djgpp.opt (posix): New Driver option.
12093
12094 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12095
12096         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12097         Move to the unsupported targets list.
12098
12099 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12100
12101         PR rtl-optimization/47525
12102         * df-scan.c: Update copyright years.
12103         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12104         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12105
12106 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12107
12108         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12109         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12110         (ASM_OUTPUT_ASCII): Remove.
12111         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12112
12113 2011-02-02  Jeff Law  <law@redhat.com>
12114
12115         PR middle-end/47543
12116         * reload.c (find_reloads_address): Handle reg+d address where both
12117         components are invalid by reloading the entire address.
12118
12119 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12120             Richard Guenther  <rguenther@suse.de>
12121
12122         PR tree-optimization/40979
12123         PR bootstrap/47044
12124         * passes.c (init_optimization_passes): After LIM call copy_prop
12125         and DCE to clean up.
12126         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12127
12128 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12129
12130         PR tree-optimization/47576
12131         PR tree-optimization/47555
12132         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12133         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12134         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12135         * tree-scalar-evolution.c (follow_ssa_edge): Use
12136         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12137
12138 2011-02-02  Richard Guenther  <rguenther@suse.de>
12139
12140         PR tree-optimization/47566
12141         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12142
12143 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12144
12145         PR debug/47106
12146         PR debug/47402
12147         * tree-inline.c (declare_return_variable): Remove unused caller
12148         variable.
12149
12150         PR debug/47106
12151         PR debug/47402
12152         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12153         * cfgexpand.c (account_used_vars_for_block): Use them.
12154         * tree-nrv.c (tree_nrv): Likewise.
12155         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12156         (dump_scope_block): Likewise.
12157         (remove_unused_locals): Likewise.
12158
12159         PR debug/47106
12160         PR debug/47402
12161         * tree-inline.c (declare_return_variable): Add result decl to
12162         local decls only once.
12163         * gimple-low.c (record_vars_into): Mark newly-created variables
12164         as referenced.
12165
12166 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12167
12168         PR debug/47498
12169         PR debug/47501
12170         PR debug/45136
12171         PR debug/45130
12172         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12173         debug insns.
12174         (no_real_insns_p, schedule_block, set_priorities): Drop special
12175         treatment of boundary debug insns.
12176         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12177         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12178         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12179         (BOUNDARY_DEBUG_INSN_P): Likewise.
12180         (SCHEDULE_DEBUG_INSN_P): Likewise.
12181         * sched-rgn.c (init_ready_list): Drop special treatment of
12182         boundary debug insns.
12183         * final.c (rest_of_clean_state): Clear notes' BB.
12184
12185 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12186
12187         * config/openbsd.opt (assert=): New Driver option.
12188
12189 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12190
12191         * config/i386/nto.opt: New.
12192         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12193
12194 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12195
12196         * config/i386/netware.opt: New.
12197         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12198
12199 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * config/interix.opt (posix): New Driver option.
12202
12203 2011-02-01  DJ Delorie  <dj@redhat.com>
12204
12205         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12206
12207         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12208         class for A0/A1.
12209
12210 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12211
12212         PR tree-optimization/47561
12213         * toplev.c (process_options): Print the Graphite flags.  Add
12214         flag_loop_flatten to the list of options requiring Graphite.
12215
12216 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12217
12218         * config/i386/cygming.opt (posix): New Driver option.
12219
12220 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12221
12222         * config/arm/vxworks.opt: New.
12223         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12224
12225 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12226
12227         * config/alpha/elf.opt: New.
12228         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12229         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12230
12231 2011-02-01  Richard Guenther  <rguenther@suse.de>
12232
12233         PR tree-optimization/47559
12234         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12235         store-motion on references that can throw.
12236
12237 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12238
12239         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12240         * tree-pass.h (TDF_CSELIB): New macro.
12241         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12242         cselib_lookup): Check for it rather than for TDF_DETAILS.
12243
12244 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12245
12246         PR driver/47547
12247         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12248         is HOST_BIT_BUCKET.
12249
12250         * opts.c (finish_options): Don't add x_aux_base_name if it is
12251         HOST_BIT_BUCKET.
12252
12253 2011-02-01  Richard Guenther  <rguenther@suse.de>
12254
12255         PR tree-optimization/47555
12256         Revert
12257         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12258
12259         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12260
12261 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12262
12263         PR gcc/46692
12264         * config/lm32/t-lm32: Add multilib for all CPU options.
12265
12266 2011-02-01  Richard Guenther  <rguenther@suse.de>
12267
12268         PR tree-optimization/47541
12269         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12270         sure to have a field at offset zero.
12271
12272 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12273
12274         * config/arc/arc.opt (EB, EL): New Driver options.
12275
12276 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12277
12278         * config/alpha/osf5.opt: New.
12279         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12280
12281 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12282
12283         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12284
12285 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12286
12287         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12288         -floop-interchange.
12289         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12290         is an alias of -floop-interchange and that it requires the
12291         Graphite infrastructure.
12292         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12293         flag_loop_interchange based on the value of flag_tree_loop_linear.
12294
12295 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12296             Richard Guenther  <rguenther@suse.de>
12297
12298         PR tree-optimization/47538
12299         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12300         type instead of r1type, except for comparisons.  For right
12301         shifts and comparisons punt if there are mismatches in
12302         sizetype vs. non-sizetype types.
12303
12304 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12305
12306         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12307         avx_runtime.
12308
12309 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12310
12311         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12312         version number.
12313         * configure: Regenerate.
12314
12315 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12316
12317         * configure.ac (gcc_cv_ld_static_option): Define.
12318         (gcc_cv_ld_dynamic_option): Define.
12319         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12320         instead.
12321         (HAVE_LD_STATIC_DYNAMIC): Update message.
12322         (LD_STATIC_OPTION): Define.
12323         (LD_DYNAMIC_OPTION): Define.
12324         * configure: Regenerate.
12325         * config.in: Regenerate.
12326         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12327         HAVE_LD_STATIC_DYNAMIC]: Use them.
12328
12329 2011-01-31  Nick Clifton  <nickc@redhat.com>
12330
12331         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12332         registers inside interrupt handlers if the handler is not a leaf
12333         function.
12334
12335 2011-01-31  Nick Clifton  <nickc@redhat.com>
12336
12337         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12338         reg_renumber returning an INVALID_REGNUM.
12339
12340 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12341
12342         PR libgcj/44341
12343         * doc/install.texi: Document host options discarded when cross
12344         configuring target libraries.
12345
12346 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12347
12348         Reverted:
12349         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12350         PR debug/45136
12351         PR debug/45130
12352         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12353         debug insns.
12354         (no_real_insns_p, schedule_block, set_priorities): Drop special
12355         treatment of boundary debug insns.
12356         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12357         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12358         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12359         (BOUNDARY_DEBUG_INSN_P): Likewise.
12360         (SCHEDULE_DEBUG_INSN_P): Likewise.
12361         * sched-rgn.c (init_ready_list): Drop special treatment of
12362         boundary debug insns.
12363         * final.c (rest_of_clean-state): Clear notes' BB.
12364
12365 2011-01-31  Alan Modra  <amodra@gmail.com>
12366
12367         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12368         toc relative expressions as we do in print_operand_address.
12369
12370 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12371
12372         * doc/extend.texi: Follow spelling conventions.
12373         * doc/invoke.texi: Fix a typo.
12374
12375 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12376
12377         * config/hpux11.opt: New.
12378         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12379         ia64*-*-hpux*): Use hpux11.opt.
12380
12381 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12382
12383         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12384         to tmake_file.
12385
12386 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12387
12388         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12389         support sites.
12390
12391 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12392
12393         * doc/install.texi (Binaries): Remove outdated reference for
12394         Motorola 68HC11/68HC12 downloads.
12395
12396 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12397
12398         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12399         Drepper's paper.
12400
12401 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12402
12403         PR bootstrap/47147
12404         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12405         used by NetBSD.
12406
12407 2011-01-28  Ahmad Sharif  <asharif@google.com>
12408
12409         * value-prof.c (check_counter): Corrected error message.
12410
12411 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12412
12413         * config/arm/arm.c (arm_legitimize_reload_address): New.
12414         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12415         arm_legitimize_reload_address.
12416         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12417
12418 2011-01-28  Ian Lance Taylor  <iant@google.com>
12419
12420         * godump.c (go_define): Ignore macros whose definitions include
12421         two adjacent operands.
12422
12423 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12424
12425         PR target/42894
12426         * varasm.c (force_const_mem): Store copy of x in desc->constant
12427         instead of x itself.
12428         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12429         itself into REG_EQUAL note.
12430
12431 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12432
12433         * config/freebsd.opt (posix, rdynamic): New Driver options.
12434
12435 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12436
12437         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12438         -Bstatic/-Bdynamic.
12439         * configure: Regenerate.
12440
12441 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12442
12443         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12444         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12445
12446 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12447
12448         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12449         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12450         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12451         (s390_preferred_reload_class): Make static. Change return and
12452         'rclass' argument type to reg_class_t.
12453
12454 2011-01-27  Jan Hubicka  <jh@suse.cz>
12455
12456         PR middle-end/46949
12457         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12458         (process_function_and_variable_attributes): Check defined weakrefs.
12459
12460 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12461
12462         PR tree-optimization/47228
12463         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12464         build_ref_for_offset.
12465
12466 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12467
12468         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12469
12470 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12471
12472         PR rtl-optimization/46856
12473         * postreload.c (reload_combine_recognize_const_pattern): Do not
12474         separate cc0 setter and user on cc0 targets.
12475
12476 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12477
12478         PR c/43082
12479         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12480         passed a VOID_TYPE expression, immediately emit an error and
12481         return error_mark_node.
12482
12483 2011-01-26  Jeff Law  <law@redhat.com>
12484
12485         PR rtl-optimization/47464
12486         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12487         rather than may_trap_p as needed.
12488
12489 2011-01-26  DJ Delorie  <dj@redhat.com>
12490
12491         PR rtl-optimization/46878
12492         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12493         setter/user dependency as well.
12494
12495 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12496
12497         PR rtl-optimization/44469
12498         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12499         after removing trivially dead basic blocks.
12500
12501 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12502
12503         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12504         * config/frv/frv.h (LINK_SPEC): Likewise.
12505         * config/i386/netware.h (LINK_SPEC): Likewise.
12506         * config/m68k/linux.h (ASM_SPEC): Likewise.
12507         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12508         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12509         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12510         * config/sparc/linux.h (ASM_SPEC): Likewise.
12511         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12512         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12513
12514 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12515
12516         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12517         * config/frv/frv.h (ASM_SPEC): Likewise.
12518         * config/m68k/linux.h (ASM_SPEC): Likewise.
12519         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12520         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12521         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12522         * config/sparc/linux.h (ASM_SPEC): Likewise.
12523         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12524         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12525
12526 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12527
12528         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12529         * config/frv/frv.h (LINK_SPEC): Likewise.
12530         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12531
12532 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12533
12534         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12535         * config/frv/frv.h (ASM_SPEC): Likewise.
12536         * config/i386/sol2-10.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_SPEC32): Likewise.
12540         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12541         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12542         * config/sparc/linux.h (ASM_SPEC): Likewise.
12543         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12544         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12545         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12546
12547 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12548
12549         PR target/46997
12550         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12551         (*mux2): Ditto.
12552         (vec_extract_evenodd_help): Ditto.
12553         (vec_extract_evenv4hi): Ditto.
12554         (vec_extract_oddv4hi): Ditto.
12555         (vec_interleave_lowv2si): Ditto.
12556         (vec_interleave_highv2si): Ditto.
12557         (vec_extract_evenv2si): Ditto.
12558         (vec_extract_oddv2si: Ditto.
12559         (vec_pack_trunc_v2si): Ditto.
12560
12561 2011-01-22  Jan Hubicka  <jh@suse.cz>
12562
12563         PR target/47237
12564         * cgraph.h (cgraph_local_info): New field can_change_signature.
12565         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12566         signature can change.
12567         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12568         can change.
12569         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12570         (cgraph_function_versioning): We can not change signature of functions
12571         that don't allow that.
12572         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12573         (lto_input_node): Likewise.
12574         * ipa-inline.c (compute_inline_parameters): Compute
12575         local.can_change_signature.
12576         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12577         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12578         functions that can not change signature.
12579         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12580         init_cumulative_args): Do not use local calling conventions
12581         for functions that can not change signature.
12582
12583 2011-01-22  Jan Hubicka  <jh@suse.cz>
12584
12585         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12586
12587 2011-01-26  Richard Guenther  <rguenther@suse.de>
12588
12589         PR tree-optimization/47190
12590         * cgraphunit.c (process_common_attributes): New function.
12591         (process_function_and_variable_attributes): Use it.
12592
12593 2011-01-26  Richard Guenther  <rguenther@suse.de>
12594
12595         PR lto/47423
12596         * cgraphbuild.c (record_eh_tables): Record reference to personality
12597         function.
12598
12599 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12600
12601         PR debug/45454
12602         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12603         non-debug insns from moving up.
12604
12605 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12606
12607         PR target/40125
12608         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12609         t-dlldir{,-x} fragment for build and add it to tmake_file.
12610         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12611         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12612         * config/i386/t-dlldir: New file.
12613         (SHLIB_DLLDIR): Define.
12614         * config/i386/t-dlldir-x: New file.
12615         (SHLIB_DLLDIR): Define.
12616         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12617         (SHLIB_INSTALL): Use it.
12618
12619 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12620
12621         PR target/47246
12622         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12623         lower bound of the allowed Thumb-2 coprocessor load/store
12624         index range to -256. Add explaining comment.
12625
12626 2011-01-25  Ian Lance Taylor  <iant@google.com>
12627
12628         * godump.c (go_define): Improve lexing of macro expansion to only
12629         accept expressions which match Go spec.
12630
12631 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12632
12633         PR c++/43601
12634         * tree.c (handle_dll_attribute): Handle it.
12635         * doc/extend.texi (@item dllexport): Mention it.
12636         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12637
12638 2011-01-25  Ian Lance Taylor  <iant@google.com>
12639
12640         PR tree-optimization/26854
12641         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12642         (decl_jump_unsafe): Move higher in file, with no other change.
12643         (bind): Set has_jump_unsafe_decl if appropriate.
12644         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12645         (check_earlier_gotos): Likewise.
12646         (c_check_switch_jump_warnings): Likewise.
12647
12648 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12649
12650         * doc/invoke.texi (Warning Options): Add missing hyphen.
12651         (-fprofile-dir): Minor grammatical fixes.
12652         (-fbranch-probabilities): Likewise.
12653
12654 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12655
12656         PR debug/45136
12657         PR debug/45130
12658         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12659         debug insns.
12660         (no_real_insns_p, schedule_block, set_priorities): Drop special
12661         treatment of boundary debug insns.
12662         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12663         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12664         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12665         (BOUNDARY_DEBUG_INSN_P): Likewise.
12666         (SCHEDULE_DEBUG_INSN_P): Likewise.
12667         * sched-rgn.c (init_ready_list): Drop special treatment of
12668         boundary debug insns.
12669         * final.c (rest_of_clean-state): Clear notes' BB.
12670
12671 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12672
12673         * Makefile.in (LAMBDA_H): Removed.
12674         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12675         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12676         lambda-trans.o, and tree-loop-linear.o.
12677         (lto-symtab.o): Remove dependence on LAMBDA_H.
12678         (tree-loop-linear.o): Remove rule.
12679         (lambda-mat.o): Same.
12680         (lambda-trans.o): Same.
12681         (lambda-code.o): Same.
12682         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12683         (tree-vect-slp.o): Same.
12684         * hwint.h (gcd): Moved here.
12685         (least_common_multiple): Same.
12686         * lambda-code.c: Removed.
12687         * lambda-mat.c: Removed.
12688         * lambda-trans.c: Removed.
12689         * lambda.h: Removed.
12690         * tree-loop-linear.c: Removed.
12691         * lto-symtab.c: Do not include lambda.h.
12692         * omega.c (gcd): Removed.
12693         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12694         * tree-data-ref.c (print_lambda_vector): Moved here.
12695         (lambda_vector_copy): Same.
12696         (lambda_matrix_copy): Same.
12697         (lambda_matrix_id): Same.
12698         (lambda_vector_first_nz): Same.
12699         (lambda_matrix_row_add): Same.
12700         (lambda_matrix_row_exchange): Same.
12701         (lambda_vector_mult_const): Same.
12702         (lambda_vector_negate): Same.
12703         (lambda_matrix_row_negate): Same.
12704         (lambda_vector_equal): Same.
12705         (lambda_matrix_right_hermite): Same.
12706         * tree-data-ref.h: Do not include lambda.h.
12707         (lambda_vector): Moved here.
12708         (lambda_matrix): Same.
12709         (dependence_level): Same.
12710         (lambda_transform_legal_p): Removed declaration.
12711         (lambda_collect_parameters): Same.
12712         (lambda_compute_access_matrices): Same.
12713         (lambda_vector_gcd): Same.
12714         (lambda_vector_new): Same.
12715         (lambda_vector_clear): Same.
12716         (lambda_vector_lexico_pos): Same.
12717         (lambda_vector_zerop): Same.
12718         (lambda_matrix_new): Same.
12719         * tree-flow.h (least_common_multiple): Removed declaration.
12720         * tree-parloops.c (lambda_trans_matrix): Moved here.
12721         (LTM_MATRIX): Same.
12722         (LTM_ROWSIZE): Same.
12723         (LTM_COLSIZE): Same.
12724         (LTM_DENOMINATOR): Same.
12725         (lambda_trans_matrix_new): Same.
12726         (lambda_matrix_vector_mult): Same.
12727         (lambda_transform_legal_p): Same.
12728         * tree-pass.h (pass_linear_transform): Removed declaration.
12729         * tree-ssa-loop.c (tree_linear_transform): Removed.
12730         (gate_tree_linear_transform): Removed.
12731         (pass_linear_transform): Removed.
12732         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12733         flag_loop_interchange.
12734
12735 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12736
12737         PR tree-optimization/47265
12738         PR tree-optimization/47443
12739         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12740         if name still has some uses.
12741
12742 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12743
12744         PR tree-optimization/47382
12745         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12746         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12747
12748 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12749
12750         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12751         sjlj_except_unwind_info.
12752
12753 2011-01-25  Richard Guenther  <rguenther@suse.de>
12754
12755         PR tree-optimization/47426
12756         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12757         visible functions results escape.
12758
12759 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12760
12761         PR target/45701
12762         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12763         (arm_get_frame_offsets): Use it.
12764
12765 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12766             Jakub Jelinek  <jakub@redhat.com>
12767
12768         PR tree-optimization/47271
12769         * tree-if-conv.c (bb_postdominates_preds): New.
12770         (if_convertible_bb_p): Call bb_postdominates_preds.
12771         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12772         (predicate_scalar_phi): Call bb_postdominates_preds.
12773
12774 2011-01-25  Nick Clifton  <nickc@redhat.com>
12775
12776         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12777         * config/rx/rx.c (rx_function_value): Likewise.
12778         (rx_promote_function_mode): Likewise.
12779         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12780         in order to make it legitimate.
12781         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12782         make sure that the first operand is the same as the result register.
12783         (addsi3_unspec): Delete.
12784         (subdi3): Do not accept immediate operands.
12785         (subdi3_internal): Likewise.
12786
12787 2011-01-25  Jeff Law  <law@redhat.com>
12788
12789         PR rtl-optimization/37273
12790         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12791         handle them like argument loads from stack slots.  Do not double
12792         count memory for memory constants and argument loads from stack slots.
12793
12794 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12795
12796         PR tree-optimization/47427
12797         PR tree-optimization/47428
12798         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12799         coalesce if the new root var would be TREE_READONLY.
12800
12801 2011-01-25  Richard Guenther  <rguenther@suse.de>
12802
12803         PR middle-end/47414
12804         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12805         correct type for TBAA.
12806
12807 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12808
12809         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12810         (close_phi_written_to_memory): Call for_each_index with
12811         dr_indices_valid_in_loop.
12812
12813 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12814
12815         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12816         when it is initialized.
12817
12818 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12819
12820         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12821         call to graphite_find_data_references_in_stmt.
12822         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12823         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12824         call to graphite_find_data_references_in_stmt.
12825         (analyze_drs_in_stmts): Same.
12826         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12827         in which the scalar analysis of indices is performed.
12828         (create_data_ref): Same.  Update call to dr_analyze_indices.
12829         (find_data_references_in_stmt): Update call to create_data_ref.
12830         (graphite_find_data_references_in_stmt): Same.
12831         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12832         declaration.
12833         (create_data_ref): Same.
12834         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12835         call to create_data_ref.
12836
12837 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12838
12839         * graphite-sese-to-poly.c (build_poly_scop): Move
12840         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12841
12842 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12843
12844         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12845         VAR_DECL, PARM_DECL, and RESULT_DECL.
12846
12847 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12848
12849         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12850         in a reduction PBB.
12851         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12852         that have already been marked as PBB_IS_REDUCTION.
12853
12854 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12855
12856         * graphite-scop-detection.c (same_close_phi_node): New.
12857         (remove_duplicate_close_phi): New.
12858         (make_close_phi_nodes_unique): New.
12859         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12860
12861 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12862
12863         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12864         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12865         of both data references to be the same.
12866
12867 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12868
12869         * graphite-dependences.c (build_lexicographical_constraint): Remove
12870         the gdim parameter.
12871         (build_lexicographical_constraint): Adjust call to
12872         ppl_powerset_is_empty.
12873         (dependence_polyhedron): Same.
12874         (graphite_legal_transform_dr): Same.
12875         (graphite_carried_dependence_level_k): Same.
12876         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12877         parameter.
12878         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12879
12880 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12881
12882         * graphite-sese-to-poly.c
12883         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12884         (close_phi_written_to_memory): New.
12885         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12886         and unshare_expr.
12887
12888 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12889
12890         * doc/install.texi: Update the expected version number of PPL to 0.11.
12891         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12892         #if PPL_VERSION_MINOR < 11.
12893
12894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12895
12896         * graphite-dependences.c: Include graphite-cloog-util.h.
12897         (new_poly_ddr): Inlined into dependence_polyhedron.
12898         (free_poly_ddr): Moved close by new_poly_ddr.
12899         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12900         Early return NULL when ppl_powerset_is_empty returns true.
12901         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12902         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12903         (graphite_legal_transform_dr): Call new_poly_ddr.
12904         (graphite_carried_dependence_level_k): Same.
12905         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12906         (dot_transformed_deps_stmt_1): Removed.
12907         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12908         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12909         (dot_deps_1): Call dot_deps_2.
12910         * Makefile.in (graphite-dependences.o): Add missing dependence on
12911         graphite-cloog-util.h.
12912
12913 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12914
12915         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12916         (build_lexicographical_constraint): Same.
12917         (dependence_polyhedron_1): Same.
12918         (graphite_legal_transform_dr): Same.
12919         (graphite_carried_dependence_level_k): Same.
12920         * graphite-ppl.c (ppl_powerset_is_empty): New.
12921         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12922         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12923
12924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12925
12926         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12927         the "a followed by b" relation and document it.
12928
12929 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12930
12931         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12932         iteration when the bag of constraints is empty.
12933
12934 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12935
12936         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12937
12938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12939
12940         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12941         nest and two loop depths as parameters.
12942         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12943         lst_perfect_nestify.
12944
12945 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12946
12947         * graphite-dependences.c (print_pddr): Call
12948         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12949
12950 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12951
12952         * graphite-ppl.c (debug_gmp_value): New.
12953         * graphite-ppl.h (debug_gmp_value): Declared.
12954
12955 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12956
12957         * doc/install.texi: Document availability of cloog-0.16.
12958
12959 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12960
12961         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12962         invalid postdominance info.
12963
12964 2011-01-24  Jan Hubicka  <jh@suse.cz>
12965
12966         PR c/21659
12967         * doc/extend.texi (weak pragma): Drop claim that it must
12968         appear before definition.
12969         * varasm.c (merge_weak, declare_weak): Only sanity check
12970         that DECL is not output at a time it is declared weak.
12971
12972 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12973
12974         * machmode.def: Fixed comments.
12975
12976 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12977
12978         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12979
12980 2011-01-24  Paul Koning  <ni1d@arrl.net>
12981
12982         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12983         WORDS_BIG_ENDIAN.
12984
12985 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12986
12987         PR target/46519
12988         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12989         (block_info): Add scanned and prev.
12990         (move_or_delete_vzeroupper_2): Return if the basic block
12991         has been scanned and the upper 128bit state is unchanged
12992         from the last scan.
12993         (move_or_delete_vzeroupper_1): Return true if the exit
12994         state is changed.
12995         (move_or_delete_vzeroupper): Visit basic blocks using the
12996         work-list based algorithm based on vt_find_locations in
12997         var-tracking.c.
12998
12999         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13000
13001 2011-01-24  Nick Clifton  <nickc@redhat.com>
13002
13003         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13004         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13005         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13006         then define __v850e1__.
13007         * doc/invoke.texi: Document -mv850es.
13008
13009 2011-01-24  Richard Henderson  <rth@redhat.com>
13010
13011         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13012         compound unordered comparisons.
13013         * config/rx/rx.c (rx_split_fp_compare): Remove.
13014         * config/rx/rx-protos.h: Update.
13015         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13016         (cbranchsf4): Don't call rx_split_fp_compare.
13017         (*cbranchsf4): Use rx_split_cbranch.
13018         (*cmpsf): Don't accept "i" constraint.
13019         (*conditional_branch): Only valid after reload.
13020         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13021
13022 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13023
13024         PR target/47385
13025         * config/rs6000/altivec.md (vector constant splitters): Add
13026         support for creating vector single precision constants if -mvsx is
13027         used and we would create the constant using Altivec primitives.
13028
13029 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13030             Richard Sandiford  <rdsandiford@googlemail.com>
13031
13032         PR rtl-optimization/47166
13033         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13034         mechanism for PRE_MODIFY and POST_MODIFY.
13035         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13036         reloadreg.
13037
13038 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13039
13040         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13041
13042 2011-01-22  Jan Hubicka  <jh@suse.cz>
13043
13044         PR lto/47333
13045         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13046
13047 2011-01-22  Jan Hubicka  <jh@suse.cz>
13048
13049         PR tree-optimization/43884
13050         PR lto/44334
13051         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13052         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13053
13054 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13055
13056         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13057         * config/s390/s390.c (s390_register_move_cost,
13058         s390_memory_move_cost): New.
13059         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13060
13061 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13062
13063         PR middle-end/47401
13064         * except.c (sjlj_assign_call_site_values): Move setting the
13065         crtl->uses_eh_lsda flag to ...
13066         (sjlj_mark_call_sites): ... here.
13067         (sjlj_emit_function_enter): Support NULL dispatch label.
13068         (sjlj_build_landing_pads): In a function with no landing pads
13069         that still has must-not-throw regions, generate code to register
13070         a personality function with empty LSDA.
13071
13072 2011-01-21  Richard Henderson  <rth@redhat.com>
13073
13074         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13075
13076         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13077
13078         * compare-elim.c: New file.
13079         * Makefile.in (OBJS-common): Add it.
13080         (compare-elim.o): New.
13081         * common.opt (fcompare-elim): New.
13082         * opts.c (default_options_table): Add OPT_fcompare_elim.
13083         * tree-pass.h (pass_compare_elim_after_reload): New.
13084         * passes.c (init_optimization_passes): Add it.
13085         * recog.h: Protect against re-inclusion.
13086         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13087         * doc/invoke.texi (-fcompare-elim): Document it.
13088         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13089         * doc/tm.texi: Rebuild.
13090
13091 2011-01-22  Nick Clifton  <nickc@redhat.com>
13092
13093         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13094         rx_split_fp_compare.
13095
13096 2011-01-22  Nick Clifton  <nickc@redhat.com>
13097
13098         * config/rx/rx.md (UNSPEC_CONST): New.
13099         (deallocate_and_return): Wrap the amount popped off the stack in
13100         an UNSPEC_CONST in order to stop it being rejected by
13101         -mmax-constant-size.
13102         (pop_and_return): Add a "(return)" rtx.
13103         (call): Drop the immediate operand.
13104         (call_internal): Likewise.
13105         (call_value): Likewise.
13106         (call_value_internal): Likewise.
13107         (sibcall_internal): Likewise.
13108         (sibcall_value_internal): Likewise.
13109         (sibcall): Likewise.  Generate an explicit call using
13110         sibcall_internal.
13111         (sibcall_value): Likewise.
13112         (mov<>): FAIL if a constant operand is not legitimate.
13113         (addsi3_unpsec): New pattern.
13114
13115         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13116         (ok_for_max_constant): New function.
13117         (gen_safe_add): New function.
13118         (rx_expand_prologue): Use gen_safe_add.
13119         (rx_expand_epilogue): Likewise.
13120         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13121         UNSPEC CONSTs.
13122
13123 2011-01-21  Jeff Law  <law@redhat.com>
13124
13125         PR tree-optimization/47053
13126         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13127         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13128         statements are deleted.
13129         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13130         is nonempty, then purge dead edges and cleanup the CFG.
13131
13132 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13133
13134         PR debug/47402
13135         Temporarily revert:
13136         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13137         PR debug/47106
13138         * tree-dfa.c (create_var_ann): Mark variable as used.
13139
13140 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13141
13142         PR middle-end/45566
13143         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13144         notes from other section in hot/cold partitioning even if
13145         last_action is -3.  Increment call_site_base.
13146
13147         PR rtl-optimization/47366
13148         * fwprop.c (forward_propagate_into): Return bool.  If
13149         any changes are made, -fnon-call-exceptions is used and
13150         REG_EH_REGION note is present, call purge_dead_edges
13151         and return true if it purged anything.
13152         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13153         any EH edges were purged.
13154
13155 2011-01-21  Jeff Law  <law@redhat.com>
13156
13157         PR rtl-optimization/41619
13158         * caller-save.c (setup_save_areas): Break out code to determine
13159         which hard regs are live across calls by examining the reload chains
13160         so that it is always used.
13161         Eliminate code which checked REG_N_CALLS_CROSSED.
13162
13163 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13164
13165         PR tree-optimization/47355
13166         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13167         NOP has non-debug uses beyond PHIs in new_bb.
13168
13169 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13170
13171         PR debug/47106
13172         * cfgexpand.c (account_used_vars_for_block): Only account vars
13173         that are annotated as used.
13174         (estimated_stack_frame_size): Don't set TREE_USED.
13175         * tree-dfa.c (create_var_ann): Mark variable as used.
13176
13177 2011-01-21  Richard Guenther  <rguenther@suse.de>
13178
13179         PR middle-end/47395
13180         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13181
13182 2011-01-21  Richard Guenther  <rguenther@suse.de>
13183
13184         PR tree-optimization/47365
13185         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13186         (vn_reference_lookup_pieces): Adjust.
13187         (vn_reference_lookup): Likewise.
13188         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13189         (vn_reference_lookup_3): Only look through kills if in
13190         VN_WALKREWRITE mode.
13191         (vn_reference_lookup_pieces): Adjust.
13192         (vn_reference_lookup): Likewise.
13193         (visit_reference_op_load): Likewise.
13194         (visit_reference_op_store): Likewise.
13195         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13196         (compute_avail): Likewise.
13197         (eliminate): Likewise.
13198
13199 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13200
13201         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13202         DECL_IGNORED_P non-reg vars if they are used.
13203
13204         PR tree-optimization/47391
13205         * varpool.c (const_value_known_p): Return false if
13206         decl is volatile.
13207
13208 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13209
13210         PR bootstrap/47215
13211         * config/i386/i386.c (ix86_local_alignment): Handle
13212         case for va_list_type_node is nil.
13213         (ix86_canonical_va_list_type): Likewise.
13214
13215 2011-01-21  Alan Modra  <amodra@gmail.com>
13216
13217         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13218         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13219
13220 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13221
13222         * config/arm/arm.md (define_attr type): Rename f_load
13223         and f_store to f_fpa_load and f_fpa_store. Update.
13224         (write_conflict): Deal with rename fallout.
13225         (*push_fp_multi): Likewise.
13226         * config/arm/fpa.md (f_load): Use f_fpa_load.
13227         (f_store): Use f_fpa_store.
13228         (*movsf_fpa): Likewise.
13229         (*movdf_fpa): Likewise.
13230         (*movxf_fpa): Likewise.
13231         (*thumb2_movsf_fpa): Likewise.
13232         (*thumb2_movdf_fpa): Likewise.
13233         (*thumb2_movxf_fpa): Likewise.
13234         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13235         f_loadd and f_stored.
13236         (*thumb2_movdi_vfp): Likewise.
13237         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13238         (*thumb2_movsi_vfp): Likewise.
13239         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13240         Use f_loads instead of f_load.
13241         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13242
13243 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13244
13245         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13246         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13247         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13248         (xtensa_mode_dependent_address_p): New function.
13249         (constantpool_address_p): Make static. Change return type to bool.
13250         Change argument type to const_rtx. Use CONST_INT_P predicate.
13251
13252 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13253
13254         PR debug/46583
13255         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13256
13257 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13258
13259         PR debug/47283
13260         * cfgexpand.c (expand_debug_expr): Instead of generating
13261         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13262         etc. handling.
13263
13264 2011-01-20  Richard Guenther  <rguenther@suse.de>
13265
13266         PR middle-end/47370
13267         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13268         the pointer operand of MEM_REFs.
13269
13270 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13271
13272         PR tree-optimization/46130
13273         * ipa-split.c (consider_split): If return_bb contains non-virtual
13274         PHIs other than for retval or if split_function would not adjust it,
13275         refuse to split.
13276
13277 2011-01-20  Richard Guenther  <rguenther@suse.de>
13278
13279         PR tree-optimization/47167
13280         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13281         Revert previous change, only avoid enumeral type changes.
13282
13283 2011-01-19  Mike Stump  <mikestump@comcast.net>
13284
13285         * doc/tm.texi.in (BRANCH_COST): Englishify.
13286         * doc/tm.texi (BRANCH_COST): Likewise.
13287
13288 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13289
13290         PR c++/47291
13291         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13292         (gen_scheduled_generic_parms_dies): New functions.
13293         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13294         generation for the end of CU compilation.
13295         (dwarf2out_finish): Generate template parameters DIEs here.
13296
13297 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13298
13299         PR debug/46240
13300         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13301         debug bind stmt on merge edges.
13302
13303 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13304
13305         PR debug/47079
13306         PR debug/46724
13307         * function.c (instantiate_expr): Instantiate incoming rtl of
13308         implicit arguments, and recurse on VALUE_EXPRs.
13309         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13310         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13311
13312 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13313
13314         * c-parser.c (c_parser_for_statement): Initialize
13315         collection_expression.
13316
13317 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13320
13321 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13322
13323         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13324         (LINK_SHLIB_SPEC): Don't use %(link_path).
13325         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13326
13327 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13330         (NO_SHARED_LIB_SUPPORT): Remove.
13331         (LINK_SHLIB_SPEC): Remove one conditional definition.
13332
13333 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13334
13335         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13336         %{call_shared}.
13337         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13338         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13339         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13340         %{call_shared} and conditionals on these options not being passed.
13341         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13342         %{call_shared}.
13343
13344 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13345
13346         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13347         simplify.
13348
13349         * ipa-split.c: Spelling fixes.
13350
13351 2011-01-19  Richard Henderson  <rth@redhat.com>
13352
13353         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13354         (*mulsi3): Likewise.
13355
13356         * longlong.h [__mn10300__] (count_leading_zeros): New.
13357         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13358         [__mn10300__] (add_ssaaaa, subddmmss): New.
13359         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13360         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13361
13362 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13363
13364         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13365
13366 2011-01-19  Richard Henderson  <rth@redhat.com>
13367
13368         * config/mn10300/mn10300.md (addsi3_flags): New.
13369         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13370         (subsi3_flags, subc_internal, subdi3): New.
13371         (subdi3_internal, *subdi3_degenerate): New.
13372         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13373
13374         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13375         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13376         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13377         * config/mn10300/mn10300-protos.h: Update.
13378         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13379         (return_ret): Likewise.  Rename from return_internal_regs.
13380         (return_internal): Remove.
13381
13382         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13383         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13384         (mn10300_legitimate_constant_p): Likewise.
13385         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13386         (mn10300_frame_size): New.
13387         (mn10300_expand_prologue): Use it.
13388         (mn10300_expand_epilogue): Likewise.
13389         (mn10300_initial_offset): Likewise.
13390         * config/mn10300/mn10300-protos.h: Update.
13391         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13392         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13393         (prologue, epilogue, return_internal): Tidy output code.
13394         (mn10300_store_multiple_operation, return): Likewise.
13395         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13396         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13397         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13398         (load_pic, am33_load_pic): New.
13399         (mn10300_load_pic0, mn10300_load_pic1): New.
13400
13401         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13402         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13403         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13404         (cc_flags_for_mode, cc_flags_for_code): New.
13405         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13406         overflow flag is not valid.  Validate that the flags we need
13407         for the comparison are valid.
13408         (mn10300_output_cmp): Remove.
13409         (mn10300_output_add): New.
13410         (mn10300_select_cc_mode): Use cc_flags_for_code.
13411         (mn10300_split_cbranch): New.
13412         (mn10300_match_ccmode): New.
13413         (mn10300_split_and_operand_count): New.
13414         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13415         to the function.
13416         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13417         (addsi3): ... here.  Use mn10300_output_add.
13418         (*addsi3_flags): New.
13419         (*am33_subsi3, *mn10300_subsi3): Merge...
13420         (subsi3): ... here.  Use attribute isa.
13421         (*subsi3_flags): New.
13422         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13423         when possible.
13424         (*am33_andsi3, *mn10300_andsi3): Merge...
13425         (andsi3): ... here.
13426         (*andsi3_flags): New.
13427         (andsi3 splitters): New.
13428         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13429         (iorsi3): ... here.
13430         (*iorsi3_flags): New.
13431         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13432         (xorsi3): ... here.
13433         (*xorsi3_flags): New.
13434         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13435         (one_cmplsi2): ... here.
13436         (*one_cmplsi2_flags): New.
13437         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13438         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13439         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13440         use matching constraints to eliminate a self-comparison.
13441         (*integer_conditional_branch): Rename from integer_conditional_branch.
13442         Use int_mode_flags to match CC_REG.
13443         (*cbranchsi4_btst, *btstsi): New.
13444         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13445         mn10300_split_cbranch.
13446         (*am33_cmpsf): Rename from am33_cmpsf.
13447         (*float_conditional_branch): Rename from float_conditional_branch.
13448         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13449         (zero_extendqisi2): ... here.
13450         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13451         (zero_extendhisi2): ... here.
13452         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13453         (extendqisi2): ... here.
13454         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13455         (extendhisi2): ... here.
13456         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13457         (ashlsi3): ... here.
13458         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13459         (lshrsi3): ... here.
13460         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13461         (ashrsi3): ... here.
13462         (consecutive add peephole): Remove.
13463         * config/mn10300/predicates.md (label_ref_operand): New.
13464         (int_mode_flags): New.
13465         (CCZN_comparison_operator): New.
13466
13467         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13468         (throughput_42_latency_43): New reservation.
13469         (mulsidi3, umulsidi3): New expanders.
13470         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13471         the MDR register to allocation; separately allocate the low and
13472         high parts of the DImode result.
13473         (umulsidi3_internal): Similarly.
13474         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13475         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13476         (udivsi3, umodsi3): Remove.
13477         (udivmodsi4, divmodsi4): New expanders.
13478         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13479         (*divmodsi4): Simiarly.
13480         (ext_internal): New.
13481
13482         * config/mn10300/constraints.md ("z"): New constraint.
13483         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13484         (FIXED_REGISTERS): Don't fix MDR.
13485         (CALL_USED_REGSITERS): Reformat nicely.
13486         (REG_ALLOC_ORDER): Add MDR.
13487         (enum regclass): Add MDR_REGS.
13488         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13489         (IRA_COVER_CLASSES): Add MDR_REGS.
13490         (REGNO_REG_CLASS): Handle MDR_REG.
13491         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13492         (mn10300_register_move_cost): Likewise.
13493         * config/mn10300/mn10300.md (MDR_REG): New.
13494         (*movsi_internal): Handle moves to/from MDR_REGS.
13495
13496         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13497         POST_MODIFY.
13498         (mn10300_secondary_reload): Tidy combination reload classes.
13499         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13500         addresses for AM33.  Allow symbolic offsets for reg+imm.
13501         (mn10300_regno_in_class_p): New.
13502         (mn10300_legitimize_reload_address): New.
13503         * config/mn10300/mn10300.h (enum reg_class): Remove
13504         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13505         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13506         SP_OR_GENERAL_REGS.
13507         (REG_CLASS_NAMES): Update to match.
13508         (REG_CLASS_CONTENTS): Likewise.
13509         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13510         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13511         (REGNO_IN_RANGE_P): Remove.
13512         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13513         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13514         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13515         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13516         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13517         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13518         (REGNO_GENERAL_P): New.
13519         (HAVE_POST_MODIFY_DISP): New.
13520         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13521         (LEGITIMIZE_RELOAD_ADDRESS): New.
13522         * config/mn10300/mn10300-protos.h: Update.
13523
13524         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13525         DATA_REGS for AM33 stack-pointer destination.
13526         (mn10300_preferred_output_reload_class): Likewise.
13527         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13528         into a form appropriate for ...
13529         (TARGET_SECONDARY_RELOAD): New.
13530         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13531         * config/mn10300/mn10300-protos.h: Update.
13532         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13533         reload_insi; use the "A" constraint for the scratch; handle AM33
13534         moves of sp to non-address registers.
13535
13536         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13537         (*movqi_internal): ... here.
13538         (*am33_movhi, *mn10300_movhi): Merge into...
13539         (*movhi_internal): ... here.
13540         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13541         as the source/destination of moves from/to SP.
13542         (movsf): Only allow for AM33-2.
13543         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13544         any integer constant constraint.  Only allow for AM33-2.  Tidy
13545         all of the alternative outputs.
13546         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13547         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13548         for MN103.
13549         (udivsi3, umodsi3): New patterns for MN103 only.
13550
13551 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13552
13553         * doc/tm.texi.in: Spell out that a lack of register class unions
13554         can lead to ICEs.
13555         * doc/tm.texi: Regenerate.
13556
13557 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13558
13559         PR rtl-optimization/47337
13560         * dce.c (check_argument_store): New function.
13561         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13562
13563         PR tree-optimization/47290
13564         * tree-eh.c (infinite_empty_loop_p): New function.
13565         (cleanup_empty_eh): Use it.
13566
13567 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13568
13569         PR target/46997
13570         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13571         (a64_expand_widen_sum): Ditto.
13572         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13573         (vec_extract_evenodd_help): Ditto.
13574         (vec_extract_evenv4hi): Ditto.
13575         (vec_extract_oddv4hi): Ditto.
13576         (vec_extract_evenv2si): Ditto.
13577         (vec_extract_oddv2si): Ditto.
13578         (vec_extract_evenv2sf): Ditto.
13579         (vec_extract_oddv2sf): Ditto.
13580         (vec_pack_trunc_v4hi: Ditto.
13581         (vec_pack_trunc_v2si): Ditto.
13582         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13583         (vec_interleave_highv8qi): Ditto.
13584         (mix1_r): Ditto.
13585         (vec_extract_oddv8qi): Ditto.
13586         (vec_interleave_lowv4hi): Ditto.
13587         (vec_interleave_highv4hi): Ditto.
13588         (vec_interleave_lowv2si): Ditto.
13589         (vec_interleave_highv2si): Ditto.
13590
13591 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13592
13593         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13594         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13595         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13596         (pa_c_mode_for_suffix): New.
13597         (TARGET_EXPAND_BUILTIN): Define.
13598         (TARGET_C_MODE_FOR_SUFFIX): Define.
13599         (pa_builtins): Define.
13600         (pa_init_builtins): Register __float128 type and init new support
13601         builtins.
13602         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13603         * config/pa/quadlib.c (_U_Qfcopysign): New.
13604
13605 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13606
13607         PR middle-end/46894
13608         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13609         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13610         are defined.
13611
13612 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13613
13614         PR tree-optimization/47179
13615         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13616         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13617
13618 2011-01-18  Richard Guenther  <rguenther@suse.de>
13619
13620         PR rtl-optimization/47216
13621         * emit-rtl.c: Include tree-flow.h.
13622         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13623         of replicating it with different semantics.
13624         * Makefile.in (emit-rtl.o): Adjust.
13625
13626 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13627
13628         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13629         (cortex_a9_dp): Handle neon types correctly.
13630
13631 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13632
13633         PR rtl-optimization/47299
13634         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13635         subtarget.  Use normal multiplication if both operands are constants.
13636         * expmed.c (expand_widening_mult): Don't try to optimize constant
13637         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13638         before using it.
13639
13640 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13641
13642         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13643         spacing after 'e.g.', typos, comma, hyphenation.
13644
13645 2011-01-17  Richard Henderson  <rth@redhat.com>
13646
13647         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13648         (rx_restricted_mem_operand): New.
13649         (rx_shift_operand): Use register_operand.
13650         (rx_source_operand, rx_compare_operand): Likewise.
13651         * config/rx/rx.md (addsi3_flags): New expander.
13652         (adddi3): Rewrite as expander.
13653         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13654         (subsi3_flags): New expander.
13655         (subdi3): Rewrite as expander.
13656         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13657
13658         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13659         (rx_init_builtins): Remove sat builtin.
13660         (rx_expand_builtin): Likewise.
13661         * config/rx/rx.md (ssaddsi3): New.
13662         (*sat): Rename from sat.  Represent the CC_REG input.
13663
13664         * config/rx/predicates.md (rshift_operator): New.
13665         * config/rx/rx.c (rx_expand_insv): Remove.
13666         * config/rx/rx-protos.h: Update.
13667         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13668         operand to the canonical position.
13669         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13670         (*bitclr, *bitclr_in_memory): Similarly.
13671         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13672         (insv): Retain the zero_extract in the expansion.
13673
13674         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13675         (bswaphi2, bitinvert, revw): Likewise.
13676
13677         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13678         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13679         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13680         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13681         (bitset, bitset_in_memory): Likewise.
13682         (bitinvert, bitinvert_in_memory): Likewise.
13683         (bitclr, bitclr_in_memory): Likewise.
13684         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13685         (rx_strend, rx_cmpstrn): Likewise.
13686         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13687         (bitop peep2 patterns): Remove.
13688
13689         * config/rx/rx.c (rx_match_ccmode): New.
13690         * config/rx/rx-protos.h: Update.
13691         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13692         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13693         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13694         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13695         (fix_truncsfsi2, floatsisf2): Likewise.
13696         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13697         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13698         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13699         (*subsi3_flags, *xorsi3_flags): New.
13700
13701         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13702
13703         * config/rx/rx.c (rx_print_operand): Remove workaround for
13704         unsplit comparison operations.
13705
13706         * config/rx/rx.md (movsicc): Split after reload.
13707         (*movsicc): Merge *movsieq and *movsine via match_operator.
13708         (*stcc): New pattern.
13709
13710         * config/rx/rx.c (rx_float_compare_mode): Remove.
13711         * config/rx/rx.h (rx_float_compare_mode): Remove.
13712         * config/rx/rx.md (cstoresi4): Split after reload.
13713         (*sccc): New pattern.
13714
13715         * config/rx/predicates.md (label_ref_operand): New.
13716         (rx_z_comparison_operator): New.
13717         (rx_zs_comparison_operator): New.
13718         (rx_fp_comparison_operator): New.
13719         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13720         Validate that the flags are set properly for the comparison.
13721         (rx_gen_cond_branch_template): Remove.
13722         (rx_cc_modes_compatible): Remove.
13723         (mode_from_flags): New.
13724         (flags_from_code): Rename from flags_needed_for_conditional.
13725         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13726         (rx_select_cc_mode): Likewise.
13727         (rx_split_fp_compare): New.
13728         (rx_split_cbranch): New.
13729         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13730         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13731         (*cbranchsf4): Similarly.
13732         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13733         match_operator and rx_split_cbranch.
13734         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13735         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13736         (*cmpsi): Rename from cmpsi.
13737         (*tstsi): Rename from tstsi.
13738         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13739         (*conditional_branch): Rename from conditional_branch.
13740         (*reveresed_conditional_branch): Remove.
13741         (b<code>): Remove expander.
13742         * config/rx/rx-protos.h: Update.
13743
13744         * config/rx/rx.c (rx_compare_redundant): Remove.
13745         * config/rx/rx.md (cmpsi): Don't use it.
13746         * config/rx/rx-protos.h: Update.
13747
13748         * config/rx/rx-modes.def (CC_F): New mode.
13749         * config/rx/rx.c (rx_select_cc_mode): New.
13750         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13751         * config/rx/rx-protos.h: Update.
13752
13753 2011-01-17  Richard Henderson  <rth@redhat.com>
13754
13755         * except.c (dump_eh_tree): Fix stray ; after for statement.
13756
13757 2011-01-17  Richard Guenther  <rguenther@suse.de>
13758
13759         PR tree-optimization/47313
13760         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13761         handling before copying the body.  Properly deal with
13762         by-reference result in SSA form.
13763
13764 2011-01-17  Ian Lance Taylor  <iant@google.com>
13765
13766         PR target/47219
13767         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13768         (struct_value_alias_set): Don't define.
13769         (sparc_option_override): Don't set sparc_sr_alias_set and
13770         struct_value_alias_set.
13771         (save_or_restore_regs): Use gen_frame_mem rather than calling
13772         set_mem_alias_set.
13773         (sparc_struct_value_rtx): Likewise.
13774
13775 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13776
13777         PR target/47318
13778         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13779         (_mm_maskstore_pd): Likewise.
13780         (_mm_maskload_ps): Likewise.
13781         (_mm_maskstore_ps): Likewise.
13782         (_mm256_maskload_pd): Change mask to __m256i.
13783         (_mm256_maskstore_pd): Likewise.
13784         (_mm256_maskload_ps): Likewise.
13785         (_mm256_maskstore_ps): Likewise.
13786
13787         * config/i386/i386-builtin-types.def: Updated.
13788         (ix86_expand_special_args_builtin): Likewise.
13789
13790         * config/i386/i386.c (bdesc_special_args): Update
13791         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13792         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13793         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13794         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13795
13796         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13797         Use <avxpermvecmode> on mask register.
13798         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13799
13800 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13801             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13802             Eric Botcazou  <ebotcazou@adacore.com>
13803
13804         PR target/46655
13805         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13806         if <= USHRT_MAX in 32-bit mode.
13807
13808 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13809
13810         * doc/install.texi (Configuration, Specific): Wrap long
13811         lines in examples.  Allow line wrapping in long options
13812         and URLs where beneficial for PDF output.
13813
13814 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13815
13816         * config/mips/mips.c (mips_classify_symbol): Don't return
13817         SYMBOL_PC_RELATIVE for nonlocal labels.
13818
13819 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13820
13821         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13822
13823 2011-01-15  Jan Hubicka  <jh@suse.cz>
13824
13825         PR tree-optimization/47276
13826         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13827         declarations as needed.
13828
13829 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13830
13831         * common.opt (fdevirtualize): New flag.
13832         * doc/invoke.texi (Option Summary): Document it.
13833         * opts.c (default_options_table): Add devirtualize flag.
13834         * ipa-prop.c (detect_type_change): Return immediately if
13835         devirtualize flag is not set.
13836         (detect_type_change_ssa): Likewise.
13837         (compute_known_type_jump_func): Likewise.
13838         (ipa_analyze_virtual_call_uses): Likewise.
13839
13840 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13841
13842         PR tree-optimization/45934
13843         PR tree-optimization/46302
13844         * ipa-prop.c (type_change_info): New type.
13845         (stmt_may_be_vtbl_ptr_store): New function.
13846         (check_stmt_for_type_change): Likewise.
13847         (detect_type_change): Likewise.
13848         (detect_type_change_ssa): Likewise.
13849         (compute_complex_assign_jump_func): Check for dynamic type change.
13850         (compute_complex_ancestor_jump_func): Likewise.
13851         (compute_known_type_jump_func): Likewise.
13852         (compute_scalar_jump_functions): Likewise.
13853         (ipa_analyze_virtual_call_uses): Likewise.
13854         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13855
13856 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13857
13858         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13859         * config/i386/i386.opt (msse5): New Alias.
13860
13861 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13862
13863         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13864         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13865         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13866         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13867
13868 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13869
13870         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13871         -mcpu options.
13872         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13873         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13874         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13875         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13876         Likewise.
13877         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13878
13879 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13880
13881         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13882
13883 2011-01-14  Mike Stump  <mikestump@comcast.net>
13884
13885         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13886         * config/fr30/fr30.md: Likweise
13887         (movsi_push): Likewise.
13888         (movsi_pop): Likewise.
13889         (enter_func): Likewise.
13890         * config/moxie/moxie.md (movsi_push): Likewise.
13891         (movsi_pop): Likewise.
13892
13893 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13894
13895         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13896         %{no_archive} %{exact_version}.
13897         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13898         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13899         %{no_archive} %{exact_version}.
13900         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13901         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13902         * config/mips/vxworks.h: Likewise.
13903
13904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13907
13908 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13909
13910         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13911         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13912
13913 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13914
13915         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13916         -nodefaultlib.
13917
13918 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13919
13920         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13921         for mcpu not cpu.
13922         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13923         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13924         not cpu.
13925         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13926         Don't handle -shlib.
13927
13928 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13929
13930         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13931         (CC1_SPEC): Don't handle -profile.
13932
13933 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13934
13935         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13936         * config/mips/mips.h (CC1_SPEC): Likewise.
13937
13938 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13939
13940         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13941         * config/mips/mips.h (CC1_SPEC): Likewise.
13942
13943 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13946         * config/m32r/linux.h (LINK_SPEC): Likewise.
13947         * config/mips/linux.h (LINK_SPEC): Likewise.
13948         * config/mips/linux64.h (LINK_SPEC): Likewise.
13949         * config/sparc/linux.h (LINK_SPEC): Likewise.
13950         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13951         LINK_SPEC): Likewise.
13952         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13953
13954 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13955
13956         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13957         %{version:-v}.
13958         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13959
13960 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13961
13962         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13963         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13964
13965 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13966
13967         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13968
13969 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13970
13971         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13972         supports -Bstatic/-Bdynamic.
13973         * configure: Regenerate.
13974
13975 2011-01-14  Jan Hubicka  <jh@suse.cz>
13976             Jack Howarth  <howarth@bromo.med.uc.edu>
13977
13978         PR target/46037
13979         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13980         when checking debug_info_level. Test write_symbols instead of
13981         debug_hooks->var_location when setting flag_var_tracking_uninit.
13982
13983 2011-01-14  Richard Guenther  <rguenther@suse.de>
13984
13985         PR tree-optimization/47179
13986         * target.def (ref_may_alias_errno): New target hook.
13987         * targhooks.h (default_ref_may_alias_errno): Declare.
13988         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13989         (default_ref_may_alias_errno): New function.
13990         * target.h (struct ao_ref_s): Declare.
13991         * tree-ssa-alias.c: Include target.h.
13992         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13993         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13994         (targhooks.o): Likewise.
13995         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13996         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13997
13998 2011-01-14  Richard Guenther  <rguenther@suse.de>
13999
14000         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14001
14002 2011-01-14  Richard Guenther  <rguenther@suse.de>
14003
14004         PR tree-optimization/47280
14005         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14006         return CFG changes.
14007         (tree_ssa_forward_propagate_single_use_vars): Deal with
14008         CFG changes from associate_plusminus.
14009
14010 2011-01-14  Richard Guenther  <rguenther@suse.de>
14011
14012         PR middle-end/47281
14013         Revert
14014         2011-01-11  Richard Guenther  <rguenther@suse.de>
14015
14016         PR tree-optimization/46076
14017         * tree-ssa.c (useless_type_conversion_p): Conversions from
14018         unprototyped to empty argument list function types are useless.
14019
14020 2011-01-14  Richard Guenther  <rguenther@suse.de>
14021
14022         PR tree-optimization/47286
14023         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14024
14025 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14026
14027         PR middle-end/46823
14028         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14029
14030 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14031
14032         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14033         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14034         * config/xtensa/xtensa.c (xtensa_libcall_value,
14035         xtensa_function_value_regno_p): New functions.
14036         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14037
14038 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14039
14040         PR c++/47213
14041         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14042         PE specific hook.
14043         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14044         New function prototype.
14045         * config/i386/winnt.c (i386_pe_assemble_visibility):
14046         Warn only if attribute was specified by user.
14047
14048 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14049
14050         PR target/47251
14051         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14052         floating point.
14053         (floatunsdidf2_fcfidu): Ditto.
14054
14055 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14056
14057         * config/s390/s390.c (print_operand_address): Replace 'error' with
14058         'output_operand_lossage'.
14059         (print_operand): Likewise.
14060
14061 2011-01-13  Jeff Law  <law@redhat.com>
14062
14063         PR rtl-optimization/39077
14064         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14065         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14066         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14067         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14068         * gcse.c (prune_insertions_deletions): New function.
14069         (compute_pre_data): Use it.
14070
14071 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14072
14073         PR debug/PR46973
14074         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14075         static function.
14076         (prune_unused_types_mark): Use it.
14077
14078 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14079
14080         PR rtl-optimization/45352
14081         * sel-sched.c: Update copyright years.
14082         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14083         in the advancing loop when we have issued issue_rate insns.
14084
14085 2011-01-12  Richard Henderson  <rth@redhat.com>
14086
14087         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14088         (TARGET_MD_ASM_CLOBBERS): New.
14089
14090         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14091         (TARGET_DELEGITIMIZE_ADDRESS): New.
14092
14093         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14094         (clzsi2, *bsch): New patterns.
14095
14096         * config/mn10300/mn10300.md (INT): New mode iterator.
14097         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14098
14099         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14100         flag_split_wide_types.
14101
14102         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14103         (mn10300_trampoline_init): Rewrite without a template, an immediate
14104         load and a direct branch.
14105         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14106
14107 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14108
14109         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14110         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14111         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14112         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14113
14114 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14115
14116         PR debug/47209
14117         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14118         of type.
14119
14120 2011-01-12  Jan Hubicka  <jh@suse.cz>
14121
14122         PR driver/47244
14123         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14124         (PLUGIN_COND_CLOSE): New macro.
14125         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14126
14127 2011-01-12  Richard Guenther  <rguenther@suse.de>
14128
14129         PR lto/47259
14130         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14131         register variables in a MEM_REF.
14132
14133 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14134
14135         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14136         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14137         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14138         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14139         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14140         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14141         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14142         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14143         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14144         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14145         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14146         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14147         * config/gnu-user.h: New.  Copied from linux.h.
14148         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14149         GNU_USER_TARGET_STARTFILE_SPEC.
14150         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14151         GNU_USER_TARGET_ENDFILE_SPEC.
14152         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14153         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14154         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14155         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14156         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14157         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14158         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14159         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14160         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14161         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14162         * config/arm/linux-eabi.h (CC1_SPEC): Use
14163         GNU_USER_TARGET_CC1_SPEC.
14164         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14165         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14166         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14167         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14168         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14169         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14170         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14171         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14172
14173 2011-01-12  Richard Guenther  <rguenther@suse.de>
14174
14175         PR other/46946
14176         * doc/invoke.texi (ffast-math): Document it is turned on
14177         with -Ofast.
14178
14179 2011-01-12  Jan Hubicka  <jh@suse.cz>
14180
14181         PR tree-optimization/47233
14182         * opts.c (common_handle_option): Disable ipa-reference with profile
14183         feedback.
14184
14185 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14186
14187         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14188         error message.
14189
14190 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14191
14192         * c-parser.c (c_lex_one_token): Updated and reindented some
14193         comments.  No changes in code.
14194
14195 2011-01-11  Ian Lance Taylor  <iant@google.com>
14196
14197         * godump.c (go_output_var): Don't output the variable if there is
14198         already a type with the same name.
14199
14200 2011-01-11  Ian Lance Taylor  <iant@google.com>
14201
14202         * godump.c (go_format_type): Don't generate float80.
14203
14204 2011-01-11  Richard Henderson  <rth@redhat.com>
14205
14206         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14207         declaration.  Rewrite for both speed and size.
14208         (mn10300_address_cost_1): Remove.
14209         (mn10300_register_move_cost): New.
14210         (mn10300_memory_move_cost): New.
14211         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14212         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14213         extensions, shifts, BSWAP, CLZ.
14214         (mn10300_wide_const_load_uses_clr): Remove.
14215         (TARGET_REGISTER_MOVE_COST): New.
14216         (TARGET_MEMORY_MOVE_COST): New.
14217         * config/mn10300/mn10300-protos.h: Update.
14218         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14219
14220         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14221         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14222         * config/mn10300/mn10300-protos.h: Update.
14223         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14224         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14225         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14226         (*test_int_bitfield, *test_byte_bitfield): Remove.
14227         (*bit_test, *subreg_bit_test): Remove.
14228         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14229
14230         * config/mn10300/constraints.md ("c"): Rename from "A".
14231         ("A", "D"): New constraint letters.
14232         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14233         (fmssf4, fnmasf4, fnmssf4): Likewise.
14234
14235         * config/mn10300/mn10300.md (isa): New attribute.
14236         (enabled): New attribute.
14237
14238         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14239         (abssf2, negsf2): Define only for hardware fp.
14240         (sqrtsf2): Reformat.
14241         (addsf3, subsf3, mulsf3): Merge expander and insn.
14242
14243         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14244         (DEBUGGER_AUTO_OFFSET): Remove.
14245         (DEBUGGER_ARG_OFFSET): Remove.
14246
14247         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14248         Emit register stores with the same offsets as the hardware.
14249         (mn10300_store_multiple_operation): Don't check that the register
14250         save offsets are monotonic.
14251         * config/mn10300/mn10300-protos.h: Update.
14252
14253         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14254
14255         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14256         in terms of the value on the stack, not the MDR register.
14257
14258 2011-01-11  Jan Hubicka  <jh@suse.cz>
14259
14260         PR lto/45721
14261         PR lto/45375
14262         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14263         (symbol_alias_set_destroy, symbol_alias_set_contains,
14264         propagate_aliases_backward): Declare.
14265         * lto-streamer-out.c (struct sets): New sturcture.
14266         (trivally_defined_alias): New function.
14267         (output_alias_pair_p): Rewrite.
14268         (output_unreferenced_globals): Fix output of alias pairs.
14269         (produce_symtab): Likewise.
14270         * ipa.c (function_and_variable_visibility): Set weak alias destination
14271         as needed in lto.
14272         * varasm.c (symbol_alias_set_t): Remove.
14273         (symbol_alias_set_destroy): Export.
14274         (propagate_aliases_forward, propagate_aliases_backward): New functions
14275         based on ...
14276         (compute_visible_aliases): ... this one; remove.
14277         (trivially_visible_alias): New
14278         (trivially_defined_alias): New.
14279         (remove_unreachable_alias_pairs): Rewrite.
14280         (finish_aliases_1): Reorganize code checking if alias is defined.
14281         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14282         in LTO mode.
14283
14284 2011-01-11  Richard Guenther  <rguenther@suse.de>
14285
14286         PR tree-optimization/46076
14287         * tree-ssa.c (useless_type_conversion_p): Conversions from
14288         unprototyped to empty argument list function types are useless.
14289
14290 2011-01-11  Richard Guenther  <rguenther@suse.de>
14291
14292         PR middle-end/45235
14293         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14294         volatile MEMs as MEM_READONLY_P.
14295
14296 2011-01-11  Richard Guenther  <rguenther@suse.de>
14297
14298         PR tree-optimization/47239
14299         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14300
14301 2011-01-11  Jeff Law  <law@redhat.com>
14302
14303         PR tree-optimization/47086
14304         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14305         IVs from statements that might throw.
14306
14307 2011-01-10  Jan Hubicka  <jh@suse.cz>
14308
14309         PR lto/45375
14310         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14311
14312 2011-01-10  Jan Hubicka  <jh@suse.cz>
14313
14314         PR lto/45375
14315         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14316         when correcting profile.
14317
14318 2011-01-10  Jan Hubicka  <jh@suse.cz>
14319
14320         PR lto/46083
14321         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14322         DECL_FINI_PRIORITY.
14323         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14324         Restore DECL_FINI_PRIORITY.
14325
14326 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14327
14328         * doc/gimple.texi: Fix quoting of multi-word return values in
14329         @deftypefn statements.  Ensure presence of return value.  Wrap
14330         overlong @deftypefn lines.
14331         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14332         descriptions of removed functions.
14333         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14334         of multi-word return value in @deftypefn statement.
14335
14336 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14337
14338         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14339         (Conditional Expressions, Logical Operators)
14340         (Statement and operand traversals): Do not indent smallexample
14341         code.  Fix duplicate function argument in example.
14342
14343 2011-01-10  Jeff Law  <law@redhat.com>
14344
14345         PR tree-optimization/47141
14346         * ipa-split.c (split_function): Handle case where we are
14347         returning a value and the return block has a virtual operand phi.
14348
14349 2011-01-10  Jan Hubicka  <jh@suse.cz>
14350
14351         PR tree-optimization/47234
14352         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14353         (pass_feedback_split_functions): Declare.
14354         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14355         tree-profile.
14356         * ipa-split.c (gate_split_functions): Update comments; disable
14357         split-functions for profile_arc_flag and branch_probabilities.
14358         (gate_feedback_split_functions): New function.
14359         (execute_feedback_split_functions): New function.
14360         (pass_feedback_split_functions): New global var.
14361
14362 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14363
14364         PR lto/46760
14365         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14366         calling gimple_call_set_cannot_inline.
14367
14368 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14369
14370         * config/darwin-sections.def: Remove unused section.
14371
14372 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14373
14374         PR c++/47218
14375         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14376
14377 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14378
14379         PR objc/47232
14380         * c-parser.c (c_parser_declaration_or_fndef): Improved
14381         error message.
14382
14383 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14384
14385         * config/i386/winnt.c (i386_pe_start_function): Make sure
14386         to switch back to function's section.
14387
14388 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14389
14390         PR gcc/46902
14391         PR testsuite/46912
14392         * plugin.c: Move include of dlfcn.h from here...
14393         * system.h: ... to here.
14394
14395 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14396
14397         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14398         file name.
14399         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14400         two extra empty pages in PDF output.
14401
14402 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14403
14404         PR objc/47078
14405         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14406         for error recovery purposes behave as if it was not specified so
14407         that the default type is usd.
14408
14409 2011-01-07  Jan Hubicka  <jh@suse.cz>
14410
14411         PR tree-optmization/46469
14412         * ipa.c (function_and_variable_visibility): Clear needed flags on
14413         nodes with external decls; handle weakrefs merging correctly.
14414
14415 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14416
14417         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14418         not false.
14419
14420 2011-01-07  Jan Hubicka  <jh@suse.cz>
14421
14422         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14423         and no longer claim that gold is required for linker plugin.
14424         * configure: Regenerate.
14425         * gcc.c (PLUGIN_COND): New macro.
14426         (LINK_COMMAND_SPEC): Use it.
14427         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14428         * config.in (HAVE_LTO_PLUGIN): New.
14429         * configure.ac (--with-lto-plugin): New parameter; autodetect
14430         HAVE_LTO_PLUGIN.
14431
14432 2011-01-07  Jan Hubicka  <jh@suse.cz>
14433
14434         PR tree-optimization/46367
14435         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14436         when we can update original.
14437         (cgraph_mark_inline_edge): Sanity check.
14438         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14439
14440 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14441
14442         * config/spu/spu.h (ASM_COMMENT_START): Define.
14443
14444 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14445
14446         PR driver/42445
14447         * gcc.c (%>S): New.
14448         (SWITCH_KEEP_FOR_GCC): Likewise.
14449         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14450         (do_spec_1): Handle "%>".
14451
14452         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14453
14454 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14455
14456         PR target/47201
14457         * config/i386/i386.c (ix86_delegitimize_address): If
14458         simplify_gen_subreg fails, return orig_x.
14459
14460         PR bootstrap/47187
14461         * value-prof.c (gimple_stringop_fixed_value): Handle
14462         lhs of the call properly.
14463
14464 2011-01-07  Jan Hubicka  <jh@suse.cz>
14465
14466         PR lto/45375
14467         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14468
14469 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14470
14471         * target.def (function_switched_text_sections): New hook.
14472         * doc/tm.texi: Regenerated.
14473         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14474         * final.c (default_function_switched_text_sections): New.
14475         (final_scan_insn): Call function_switched_text_sections when a
14476         mid-function section change occurs.
14477         * output.h (default_function_switched_text_sections): Declare.
14478         * config/darwin-protos.h (darwin_function_switched_text_sections):
14479         Likewise.
14480         * config/darwin.c (darwin_function_switched_text_sections): New.
14481         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14482
14483 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14484
14485         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14486         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14487         the secondary code fragment when outputting for DWARF == 2.
14488
14489 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14490
14491         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14492         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14493         Remove.
14494         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14495         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14496
14497 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14498
14499         PR debug/46704
14500         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14501         when it is not empty.
14502
14503 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14504
14505         Bobcat Enablement
14506         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14507         (case ${target}): Add btver1.
14508         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14509         -march=native recognize btver1 processors.
14510         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14511         btver1 def_and_undef
14512         * config/i386/i386.c (struct processor_costs btver1_cost): New
14513         btver1 cost table.
14514         (m_BTVER1): New definition.
14515         (m_AMD_MULTIPLE): Includes m_BTVER1.
14516         (initial_ix86_tune_features): Add btver1 tune.
14517         (processor_target_table): Add btver1 entry.
14518         (static const char *const cpu_names): Add btver1 entry.
14519         (software_prefetching_beneficial_p): Add btver1.
14520         (ix86_option_override_internal): Add btver1 instruction sets.
14521         (ix86_issue_rate): Add btver1.
14522         (ix86_adjust_cost): Add btver1.
14523         * config/i386/i386.h (TARGET_BTVER1): New definition.
14524         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14525         (enum processor_type): Add PROCESSOR_BTVER1.
14526         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14527
14528 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14529
14530         PR target/43309
14531         * config/i386/i386.c (legitimize_tls_address)
14532         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14533         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14534         (tls_initial_exec_64_sun): New pattern.
14535
14536 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14537
14538         * doc/invoke.texi (Overall Options): Improve wording and markup
14539         of the description of -wrapper.
14540
14541 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14542
14543         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14544         rdynamic, threads): New Driver options.
14545
14546 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14547
14548         PR target/38118
14549         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14550         if coming from .tdata.
14551         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14552
14553 2011-01-06  Jan Hubicka  <jh@suse.cz>
14554
14555         PR lto/47188
14556         * collect2.c (main): Do not enable LTOmode when plugin is active.
14557
14558 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14559
14560         PR other/45915
14561         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14562         --version output if supported.
14563         * configure: Regenerate.
14564
14565 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14566
14567         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14568         Driver options.
14569
14570 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14571
14572         PR c/47150
14573         * c-convert.c (convert): When converting a complex expression
14574         other than COMPLEX_EXPR to a different complex type, ensure
14575         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14576         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14577         when converting COMPLEX_TYPE.
14578
14579 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14580
14581         PR tree-optimization/47139
14582         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14583         only the last reduction value is used outside the loop.  Update
14584         documentation.
14585
14586 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14587
14588         * config/rtems.opt: New.
14589         * config.gcc (*-*-rtems*): Use rtems.opt.
14590
14591 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14592
14593         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14594         processors do not support 3DNow instructions.
14595
14596 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14597
14598         * config/spu/spu.c (spu_option_override): Set parameter
14599         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14600
14601 2011-01-05  Jan Hubicka  <jh@suse.cz>
14602
14603         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14604         at the command line.
14605
14606 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14607
14608         PR lto/47162
14609         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14610         deltas on streamed outgoing edges.
14611         (output_node_opt_summary): Output info for outgoing edges only when
14612         the node is in new parameter set.
14613         (output_cgraph_opt_summary): New parameter set, passed to the two
14614         aforementioned functions.  Update its forward declaration and its
14615         callee too.
14616
14617 2011-01-05  Tom Tromey  <tromey@redhat.com>
14618
14619         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14620         operator to c_finish_omp_atomic.
14621         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14622         (build_unary_op): Update.
14623         (build_modify_expr): Update.
14624         (build_asm_expr): Update.
14625
14626 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14627
14628         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14629         newly inserted insns.
14630         (pad_bb): Likewise.
14631         (spu_emit_branch_hint): Likewise.
14632         (insert_hbrp_for_ilb_runout): Likewise.
14633         (spu_machine_dependent_reorg): Call df_finish_pass after
14634         schedule_insns returns.
14635
14636 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14637
14638         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14639
14640 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14641
14642         PR tree-optimization/47005
14643         * tree-sra.c (struct access): Add 'non_addressable' bit.
14644         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14645         (decide_one_param_reduction): Return 0 if the parameter is passed by
14646         reference and one of the accesses in the group is non_addressable.
14647
14648 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14649
14650         PR tree-optimization/47056
14651         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14652         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14653         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14654
14655 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14656
14657         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14658         initializer.  Skip view conversions from aggregate types.
14659
14660 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14661
14662         PR bootstrap/47055
14663         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14664
14665 2011-01-04  Philipp Thomas  <pth@suse.de>
14666
14667         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14668         obvious typo.
14669
14670 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14671
14672         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14673         on empty epilogue sequences.
14674
14675 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14676
14677         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14678         non-static): New Driver options.
14679
14680 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14681
14682         PR driver/47137
14683         * gcc.c (default_compilers[]): Set combinable field to 0
14684         for all assembly languages.
14685
14686 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14687
14688         * config/mips/loongson3a.md: New file.
14689         * config/mips/mips.md: Include loongson3a.md.
14690         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14691         TUNE_LOONGSON_3A.
14692
14693 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14694
14695         PR middle-end/47017
14696         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14697         instead of convert_memory_address_addr_space on the base expression.
14698
14699 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14700
14701         * config/spu/spu.c (spu_option_override): Update error text
14702         for bad -march= / -mtune= values.
14703
14704 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14705
14706         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14707         if branch-hint optimization will be performed.
14708
14709 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14710
14711         PR tree-optimization/47148
14712         * ipa-split.c (split_function): Convert arguments to
14713         DECL_ARG_TYPE if possible.
14714
14715         PR tree-optimization/47155
14716         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14717         when computing uns.
14718
14719         PR rtl-optimization/47157
14720         * combine.c (try_combine): If undobuf.other_insn becomes
14721         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14722         and set *new_direct_jump_p too.
14723
14724 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14725
14726         PR tree-optimization/47021
14727         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14728
14729 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14730
14731         * gcc.c (process_command): Update copyright notice dates.
14732         * gcov.c (print_version): Likewise.
14733         * gcov-dump.c (print_version): Likewise.
14734         * mips-tfile.c (main): Likewise.
14735         * mips-tdump.c (main): Likewise.
14736
14737 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14738
14739         PR tree-optimization/46801
14740         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14741         aggregate fields start at byte boundary instead of the bit-field flag.
14742
14743 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14744
14745         PR driver/47137
14746         * gcc.c (main): Revert revision 168407.
14747
14748 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14749
14750         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14751
14752 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14753
14754         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14755         vector optab to expand vector/scalar shift, update gimple to vector.
14756
14757 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14758
14759         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14760         a thunk.
14761
14762 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14763
14764         PR tree-optimization/46984
14765         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14766         HOST_WIDE_INT.
14767         (cgraph_create_indirect_edge): Fixed line length.
14768         (cgraph_indirect_call_info): Declare.
14769         (cgraph_make_edge_direct) Update declaration.
14770         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14771         (cgraph_create_indirect_edge): Use it.
14772         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14773         callees.
14774         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14775         the new thunk_delta representation.
14776         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14777         HOST_WIDE_INT.
14778         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14779         (ipa_read_indirect_edge_info): Likewise.
14780         * lto-cgraph.c (output_edge_opt_summary): New function.
14781         (output_node_opt_summary): Call it on all outgoing edges.
14782         (input_edge_opt_summary): New function.
14783         (input_node_opt_summary): Call it on all outgoing edges.
14784
14785 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14786
14787         PR driver/47137
14788         * gcc.c (main): Don't check have_o when settting combine_inputs.
14789
14790 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14791
14792         * regrename.c: Add general comment describing the pass.
14793         (struct du_head): Remove 'length' field.
14794         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14795         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14796         Force renaming to the preferred class (if any) in the first pass and do
14797         not consider registers that belong to it in the second pass.
14798         (create_new_chain): Do not set 'length' field.
14799         (scan_rtx_reg): Likewise.
14800
14801 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14802
14803         PR tree-optimization/47140
14804         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14805         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14806         to bit_value_binop.
14807
14808         PR rtl-optimization/47028
14809         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14810         parm_birth_insn instead of at the beginning of first bb.
14811
14812 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14813
14814         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14815         Remove the word "see" before "@pxref".
14816         * doc/rtl.texi: Remove the word "see" before "@pxref".
14817
14818 2011-01-01  Jan Hubicka  <jh@suse.cz>
14819
14820         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14821         memory.
14822
14823 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14824
14825         PR target/38662
14826         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14827
14828 \f
14829 Copyright (C) 2011 Free Software Foundation, Inc.
14830
14831 Copying and distribution of this file, with or without modification,
14832 are permitted in any medium without royalty provided the copyright
14833 notice and this notice are preserved.