OSDN Git Service

* bb-reorder.c (insert_section_boundary_note): Don't check
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * regrename.c (struct du_head): Make nregs signed.
4         (closed_chains): Remove.
5         (create_new_chain): Return the new chain.
6         (chain_from_id): New static function.
7         (dump_def_use_chain): Change argument to be an int, indicating
8         the first ID to print.  All callers changed.
9         (merge_overlapping_regs): Use chain_from_id.  Assert that
10         chains don't conflict with themselves.
11         (rename_chains): Take no argument.  Iterate over id_to_chain
12         rather to find chains to rename.  Clear tick before the main
13         loop.
14         (struct incoming_reg_info): New struct.
15         (struct bb_rename_info): New struct.
16         (init_rename_info, set_incoming_from_chain, merge_chains): New
17         static functions.
18         (regrename_analyze): New static function, broken out of
19         regrename_optimize.  Record and make use of open chain information
20         at basic block boundaries, and merge chains where possible.
21         (scan_rtx_reg): Make this_nregs signed.  Don't update
22         closed_chains.
23         (build_def_use): Return a bool to indicate success.  All callers
24         changed.  Don't initialize global data here.
25         (regrename_optimize): Move most code out of here into
26         regrename_analyze.
27         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
28         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
29         static inline functions.
30         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
31
32         * bb-reorder.c (insert_section_boundary_note): Don't check
33         optimize_function_for_speed_p.
34         (gate_handle_partition_blocks): Do it here instead.
35         (gate_handle_reorder_blocks): Move preliminary checks here ...
36         (rest_of_handle_reorder_blocks): ... from here.
37
38 2011-09-07  Martin Jambor  <mjambor@suse.cz>
39
40         PR middle-end/50301
41         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
42         function index bounds.
43         (perhaps_add_new_callers): Likewise.
44
45 2011-09-07  Martin Jambor  <mjambor@suse.cz>
46
47         PR tree-optimization/49911
48         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
49         enumerations to the corresponding plain integer type.
50
51 2011-09-07  Richard Guenther  <rguenther@suse.de>
52
53         PR tree-optimization/50319
54         * tree-if-conv.c (set_bb_predicate): Assert we only set
55         canonical predicates.
56         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
57         around canonical predicates.
58         (predicate_bbs): Do not re-gimplify already canonical
59         predicates.  Properly unshare them though.
60         (find_phi_replacement_condition): Simplify.
61
62 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
63
64         PR target/49030
65         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
66         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
67         reusing the old code from get_arm_condition_code.  Return ARM_NV
68         for invalid comparison codes.
69         (get_arm_condition_code): Redefine in terms of
70         maybe_get_arm_condition_code.
71         * config/arm/predicates.md (arm_comparison_operator): Use
72         maybe_get_arm_condition_code.
73
74 2011-09-07  Richard Guenther  <rguenther@suse.de>
75
76         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
77         Canonicalize negated predicates by swapping edges.
78         (forward_propagate_into_cond): Likewise.
79
80 2011-09-07  Richard Guenther  <rguenther@suse.de>
81
82         PR tree-optimization/50213
83         * tree-flow.h (simple_iv_increment_p): Declare.
84         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
85         POINTER_PLUS_EXPR.
86         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
87         not propagate simple IV counter increments.
88
89 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
90             Iain Sandoe  <iains@gcc.gnu.org>
91
92         * config/rs6000/rs6000.c (compute_save_world_info): Test
93         cfun->has_nonlocal_label to determine if the out-of-line save
94         world call may be used.
95
96 2011-09-07  Nick Clifton  <nickc@redhat.com>
97
98         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
99         label on the parallel part of the insn.
100
101 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
102
103         PR debug/50191
104         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
105         avoid_constant_pool_reference first instead of last.
106
107 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
108
109         * doc/configfiles.texi (Configuration Files): Update documentation
110         about tm_p.h and remove FIXME comment.
111
112 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
113
114         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
115         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
116
117 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
118
119         * config/darwin10.h Remove duplicate LIB_SPEC.
120
121 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
122
123         PR middle-end/44382
124         * target.def (reassociation_width): New hook.
125
126         * doc/tm.texi.in (reassociation_width): Likewise.
127
128         * doc/tm.texi (reassociation_width): Likewise.
129
130         * doc/invoke.texi (tree-reassoc-width): New param documented.
131
132         * hooks.h (hook_int_uint_mode_1): New default hook.
133
134         * hooks.c (hook_int_uint_mode_1): Likewise.
135
136         * config/i386/i386.h (ix86_tune_indices): Add
137         X86_TUNE_REASSOC_INT_TO_PARALLEL and
138         X86_TUNE_REASSOC_FP_TO_PARALLEL.
139
140         (TARGET_REASSOC_INT_TO_PARALLEL): New.
141         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
142
143         * config/i386/i386.c (initial_ix86_tune_features): Add
144         X86_TUNE_REASSOC_INT_TO_PARALLEL and
145         X86_TUNE_REASSOC_FP_TO_PARALLEL.
146
147         (ix86_reassociation_width) implementation of
148         new hook for i386 target.
149
150         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
151
152         * tree-ssa-reassoc.c (get_required_cycles): New function.
153         (get_reassociation_width): Likewise.
154         (swap_ops_for_binary_stmt): Likewise.
155         (rewrite_expr_tree_parallel): Likewise.
156
157         (rewrite_expr_tree): Refactored. Part of code moved into
158         swap_ops_for_binary_stmt.
159
160         (reassociate_bb): Now checks reassociation width to be used
161         and call rewrite_expr_tree_parallel instead of rewrite_expr_tree
162         if needed.
163
164 2011-09-06  Richard Guenther  <rguenther@suse.de>
165
166         PR tree-optimization/47025
167         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
168         uses nothing.
169         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
170         BUILT_IN_FREE.
171         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
172         definitely points to.
173         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
174         BUILT_IN_VA_START doesn't let its va_list argument escape.
175         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
176         not make any previous stores necessary.
177
178 2011-09-06  Martin Jambor  <mjambor@suse.cz>
179
180         * ipa-inline.h (struct inline_summary): Move versionable flag...
181         * cgraph.h (struct cgraph_local_info): ...here
182         * ipa-cp.c (determine_versionability): Use the new versionable flag.
183         (determine_versionability): Likewise.
184         (ipcp_versionable_function_p): Likewise.
185         (ipcp_generate_summary): Likewise.
186         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
187         versionable flag.
188         (compute_inline_parameters): Do not clear the versionable flag.
189         (inline_read_section): Do not stream the versionable flag.
190         (inline_write_summary): Likewise.
191         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
192         (input_overwrite_node): Likewise.
193
194 2011-09-06  Richard Guenther  <rguenther@suse.de>
195
196         PR tree-optimization/48149
197         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
198         (vn_valueize): Move earlier.
199         (valueize_expr): Use vn_valueize.
200         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
201         operands.
202         (simplify_unary_expression): Simplify.
203
204 2011-09-06  Richard Guenther  <rguenther@suse.de>
205
206         PR tree-optimization/48317
207         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
208         trailing array.
209         (sizeof_vn_nary_op): New inline function.
210         (vn_nary_op_lookup_pieces): Adjust.
211         (vn_nary_op_insert_pieces): Likewise.
212         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
213         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
214         any number of operands.
215         (vn_nary_length_from_stmt): New function.
216         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
217         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
218         sized temporary.
219         (vn_nary_op_lookup): Likewise.
220         (vn_nary_op_lookup_stmt): Likewise.
221         (vn_nary_op_insert_into): Likewise.
222         (vn_nary_op_insert_stmt): Likewise.
223         (visit_use): Handle CONSTRUCTOR as nary.
224         * tree-ssa-pre.c (phi_translate_1): Adjust.
225         (create_expression_by_pieces): Likewise.
226         (compute_avail): Likewise.
227
228 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
229
230          * config/arm/arm.c (arm_preferred_simd_mode): Check
231         TARGET_NEON_VECTORIZE_DOUBLE instead of
232         TARGET_NEON_VECTORIZE_QUAD.
233         (arm_autovectorize_vector_sizes): Likewise.
234         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
235         mask of mvectorize-with-neon-double.  Add RejectNegative.
236         (mvectorize-with-neon-double): New.
237
238 2011-09-06  Richard Guenther  <rguenther@suse.de>
239
240         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify
241         matching.
242
243 2011-09-06  Tom de Vries  <tom@codesourcery.com>
244
245         * recog.c (asm_labels_ok): New function.
246         (check_asm_operands): Use asm_labels_ok.
247
248 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
249
250         PR target/49606
251         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
252         (PMODE_INSN): New macro.
253         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
254         (mips_got_load, mips_expand_synci_loop): Likewise.
255         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
256         cprestore patterns.
257         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
258         copygp_mips16 patterns.
259         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
260         and use_cprestore patterns.
261         (mips_override_options): Check for incompatible -mabi and -mlong
262         combinations.
263         * config/mips/mips.md (unspec_got<mode>): Rename to...
264         (unspec_got_<mode>): ...this.
265         (copygp_mips16): Use the Pmode iterator.
266         (potential_cprestore, cprestore, use_cprestore): Likewise.
267         (clear_cache, indirect_jump): Use PMODE_INSN.
268         (indirect_jump<mode>): Rename to...
269         (indirect_jump_<mode>): ...this.
270         (tablejump): Use PMODE_INSN.
271         (tablejump<mode>): Rename to...
272         (tablejump_<mode>): ...this.
273         (exception_receiver): Handle restore_gp_si and restore_gp_di.
274         (restore_gp): Use the Pmode iterator.
275         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
276         PMODE_INSN.
277
278 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
279
280         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
281         Fix the type of the BIT_AND_EXPR.
282
283 2011-09-05  David S. Miller  <davem@davemloft.net>
284
285         * config.host: Add driver-sparc.o and sparc/x-sparc on
286         native sparc*-*-linux* builds.
287         * config/sparc/driver-sparc.c: Correct Linux strings.
288         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
289         * config/sparc/linux64.h: Likewise.
290         * doc/invoke.texi: Document that Linux also supports
291         -mcpu=native and -mtune=native on sparc.
292
293         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
294         PROCESSOR_NIAGARA4): New.
295         * config/sparc/sparc.opt: Handle new processor types.
296         * config/sparc/sparc.md: Add to "cpu" attribute.
297         * config/sparc/sparc.h (TARGET_CPU_niagara3,
298         TARGET_CPU_niagara4): New, treat as niagara2.
299         * config/sparc/linux64.h: Handle niagara3 and niagara4
300         like niagara2.
301         * config/sparc/sol2.h: Likewise.
302         * config/sparc/niagara2.md: Schedule niagara3 like
303         niagara2.
304         * config/sparc/sparc.c (sparc_option_override): Add
305         niagara3 and niagara4 handling.
306         (sparc32_initialize_trampoline): Likewise.
307         (sparc64_initialize_trampoline): Likewise.
308         (sparc_use_sched_lookahead): Likewise.
309         (sparc_issue_rate): Likewise.
310         (sparc_register_move_cost): Likewise.
311         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
312         and niagara4 as appropriate.
313         * doc/invoke.texi: Document new processor types.
314         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
315         and --with-tune options.
316
317         * config/sparc/sol2-64.h: Move ...
318         * config/sparc/default-64.h: ... to here.  Update comment.
319         * config.gcc: Update Solaris sparc to use default-64.h, also
320         prefix this header into the list on sparc64-*-linux.
321         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
322         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
323         to MASK_HARD_QUAD.
324
325 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
326
327         PR target/50289
328         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
329         that contain global register variable.
330
331 2011-09-05  Richard Guenther  <rguenther@suse.de>
332
333         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
334
335 2011-09-05  Richard Guenther  <rguenther@suse.de>
336
337         * stor-layout.c (layout_type): Use size_binop for array size
338         calculations.
339
340 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
341
342         * config/avr/avr.h (progmem_section): Remove Declaration.
343         * config/avr/avr.c (progmem_section): Make static and rename to
344         progmem_swtable_section.
345         (avr_output_addr_vec_elt): No need to switch sections.
346         (avr_asm_init_sections): Use output_section_asm_op as section
347         callback for progmem_swtable_section.
348         (avr_output_progmem_section_asm_op): Remove Function.
349         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
350         (avr_asm_function_rodata_section): New static Function.
351         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
352         alignment 2**1 for jump tables.
353
354 2011-09-04  Jan Hubicka  <jh@suse.cz>
355
356         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
357         parameter is SSA name.
358
359 2011-09-04  Richard Guenther  <rguenther@suse.de>
360
361         Revert
362         2011-08-31  Richard Guenther  <rguenther@suse.de>
363
364         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
365         special-casing.
366
367 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
368
369         PR debug/49901
370         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
371
372 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
373             Ira Rosen  <ira.rosen@linaro.org>
374
375         PR tree-optimization/50208
376         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
377         argument.  Check that def_stmt is inside the loop.
378         (vect_recog_widen_mult_pattern): Update calls to
379         vect_handle_widen_mult_by_cons.
380         (vect_operation_fits_smaller_type): Check that def_stmt is
381         inside the loop.
382
383 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
384
385         * tree-vectorizer.c (vect_print_dump_info): Print line
386         number when dumping to a file.
387         (vectorize_loops): Add new messages to dump file.
388
389 2011-09-03  Martin Jambor  <mjambor@suse.cz>
390
391         * ipa-prop.h (ipa_jump_func_t): New typedef.
392         (struct ipa_edge_args): Removed field argument_count, field
393         jump_functions turned into a vector.
394         (ipa_set_cs_argument_count): Removed.
395         (ipa_get_cs_argument_count): Updated to work on vectors.
396         (ipa_get_ith_jump_func): Likewise.
397         * ipa-prop.c (ipa_count_arguments): Removed.
398         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
399         jump functions.  Update caller.
400         (compute_pass_through_member_ptrs): Likewise.
401         (compute_cst_member_ptr_arguments): Likewise.
402         (ipa_compute_jump_functions_for_edge): Get number of arguments from
403         the statement, allocate vector.
404         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
405         (duplicate_ipa_jump_func_array): Removed.
406         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
407         (ipa_read_node_info): Allocate vector.
408
409 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
410
411         PR middle-end/50232
412         * config/pa/pa.md (return): Define "return" insn pattern.
413         (epilogue): Use it when no epilogue is needed.
414         * config/pa/pa.c (pa_can_use_return_insn): New function.
415         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
416
417 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
418
419         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
420         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
421         Force at least BITS_PER_UNIT alignment on the new variable.
422
423 2011-09-02  Gary Funck <gary@intrepid.com>
424
425         * opts.c (print_specific_help): Fix off-by-one compare in
426         assertion check.
427         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
428         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
429         Increase by +5 to allow for more languages.
430         * optc-gen.awk: Generate #if that ensures that the number of
431         languages is within the implementation-defined limit.
432
433 2011-09-02  Michael Matz  <matz@suse.de>
434
435         PR middle-end/50260
436         * ipa-split.c (split_function): Call add_referenced_var.
437
438         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
439         (cond_if_else_store_replacement_1): Ditto.
440         * tree-ssa-pre.c (get_representative_for): Ditto.
441         (create_expression_by_pieces): Ditto.
442         (insert_into_preds_of_block): Ditto.
443         * tree-sra.c (create_access_replacement): Ditto.
444         (get_replaced_param_substitute): Ditto.
445
446 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
447
448         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
449         automata_options.
450         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
451         (l1w, s1w, l2w, s2w): Define in the main automaton.
452         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
453         units.
454         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
455         (c6x_unit_names): Add the new units.
456         (c6x_unit_codes): New static array.
457         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
458         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
459         UNIT_QID_SIDE_OFFSET): New macros.
460         (RESERVATION_S2): Adjust value.
461         (c6x_option_override): Compute c6x_unit_codes.
462         (assign_reservations): Take the unit_mask of the last instruction
463         into account.  Detect floating point reservations by looking for
464         the new units.  Don't assign reservations if the field is already
465         nonzero.
466         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
467         (init_sched_state): Initialize it.
468         (c6x_clear_sched_context): Free it.
469         (insn_set_clock): Clear reservation.
470         (prev_cycle_state): New static variable.
471         (c6x_init_sched_context): Save it.
472         (c6x_sched_init): Allocate space for it and clear it.
473         (c6x_sched_dfa_pre_cycle_insn): New static function.
474         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
475         (c6x_variable_issue): Only record units in the unit_mask that
476         were not set at the start of the cycle.
477         (c6x_variable_issue): Compute and store the unit_mask from the
478         current state.
479         (reorg_split_calls): Ensure the new information remains correct.
480         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
481         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
482         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
483         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
484         Add special reservations.
485         * config/c6x/c6x-sched.md: Regenerate.
486
487 2011-09-02  Martin Jambor  <mjambor@suse.cz>
488
489         * ipa-prop.h (ipa_node_params): Removed fields
490         called_with_var_arguments and node_versionable.
491         (ipa_set_called_with_variable_arg): Removed.
492         (ipa_is_called_with_var_arguments): Likewise.
493         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
494         (determine_versionability): Do not check for type attributes and va
495         builtins.  Record versionability into inline summary.
496         (initialize_node_lattices): Do not check
497         ipa_is_called_with_var_arguments.
498         (propagate_constants_accross_call): Likewise, ignore arguments we do
499         not have PARM_DECLs for, set variable flag for parameters that were
500         not passed a value.
501         (create_specialized_node): Dump info that we cannot change signature.
502         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
503         number of arguments.
504         (ipa_make_edge_direct_to_target): Likewise.
505         (ipa_update_after_lto_read): Likewise.
506         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
507         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
508         they were remapped.
509
510 2011-09-02  Richard Guenther  <rguenther@suse.de>
511
512         PR tree-optimization/27460
513         PR middle-end/29269
514         * doc/md.texi (vcond): Document.
515         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
516         optab with two modes.
517         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
518         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
519         (vcond_optab): Adjust.
520         (vcondu_optab): Likewise.
521         (expand_vec_cond_expr_p): Adjust prototype.
522         * optabs.c (get_vcond_icode): Adjust.
523         (expand_vec_cond_expr_p): Likewise.
524         (expand_vec_cond_expr): Likewise.
525         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
526         vector type.
527         (vectorizable_condition): Allow differing types for comparison
528         and result.
529         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
530         for the comparison.
531         * config/i386/sse.md (vcond<mode>): Split to
532         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
533         vcond<V_128:mode><VI124_128:mode> and
534         vcondu<V_128:mode><VI124_128:mode>.
535         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
536         (vconduv2di): Likewise.
537         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
538         (vcondu<mode>): Likewise.
539         * config/ia64/vect.md (vcond<mode>): Likewise.
540         (vcondu<mode>): Likewise.
541         (vcondv2sf): Likewise.
542         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
543         * config/rs6000/paired.md (vcondv2sf): Likewise.
544         * config/rs6000/vector.md (vcond<mode>): Likewise.
545         (vcondu<mode>): Likewise.
546         * config/spu/spu.md (vcond<mode>): Likewise.
547         (vcondu<mode>): Likewise.
548
549 2011-09-02  Richard Guenther  <rguenther@suse.de>
550
551         * pretty-print.h (pp_unsigned_wide_integer): New.
552         * tree-pretty-print.c (dump_generic_node): Print unsigned
553         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
554
555 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
556
557         PR target/49987
558         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
559         valid CONST_VECTOR operands.
560         (rs6000_expand_vector_init): Likewise.
561
562 2011-09-02  Martin Jambor  <mjambor@suse.cz>
563
564         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
565         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
566         BINFO_VTABLE.  Parameter delta removed, all callers updated.
567         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
568         BINFO_VTABLE.
569         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
570         all calls.
571         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
572         handling of thunk_delta.
573         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
574         (devirtualization_time_bonus): Do not handle thunk deltas.
575         (ipcp_discover_new_direct_edges): Likewise.
576         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
577         (try_make_edge_direct_simple_call): Likewise.
578         (try_make_edge_direct_virtual_call): Likewise.
579         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
580         parameter set as unused.
581         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
582         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
583         parameter set as unused.
584         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
585         (input_edge_opt_summary): Likewise.
586         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
587         BINFO_VIRTUALS at all.
588         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
589
590 2011-09-02  Richard Guenther  <rguenther@suse.de>
591
592         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
593         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
594
595 2011-08-31  Richard Guenther  <rguenther@suse.de>
596
597         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
598         handling here, from ...
599         (expand_expr_real_1): ... here.
600         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
601         and VEC_COND_EXPR.
602         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
603         a GIMPLE_TERNARY_RHS.
604         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
605         and VEC_COND_EXPR here ...
606         (verify_gimple_assign_single): ... not here.
607         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
608         * tree-object-size.c (cond_expr_object_size): Adjust.
609         (collect_object_sizes_for): Likewise.
610         * tree-scalar-evolution.c (interpret_expr): Don't handle
611         ternary RHSs.
612         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
613         (ssa_forward_propagate_and_combine): Adjust.
614         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
615         as ternary.
616         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
617         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
618         * tree-vect-stmt.c (vectorizable_condition): Likewise.
619         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
620         (extract_range_from_assignment): Likewise.
621
622 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
623
624         * config/i386/i386.md: Use (match_test ...) for attribute tests.
625         * config/i386/mmx.md: Likewise.
626         * config/i386/sse.md: Likewise.
627         * config/i386/predicates.md (call_insn_operand): Use
628         (not (match_test "...")) instead of (match_test "!...")
629         * config/i386/constraints.md (w): Likewise.
630
631 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
632
633         * doc/md.texi: Describe the use of match_tests in attribute tests.
634         * rtl.def (MATCH_TEST): Update commentary.
635         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
636         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
637
638 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
639
640         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
641         (attr_string): Use copy_md_ptr_loc.
642
643 2011-08-31  Martin Jambor  <mjambor@suse.cz>
644
645         PR middle-end/49886
646         * ipa-inline-analysis.c (compute_inline_parameters): Set
647         can_change_signature of noes with typde attributes.
648         * ipa-split.c (split_function): Do not skip any arguments if
649         can_change_signature is set.
650
651 2011-08-31  Martin Jambor  <mjambor@suse.cz>
652
653         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
654         check removed.
655
656 2011-08-31  Richard Guenther  <rguenther@suse.de>
657
658         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
659         special-casing.
660
661 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
662
663         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
664
665 2011-08-31  Tom de Vries  <tom@codesourcery.com>
666
667         PR middle-end/43513
668         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
669         * tree-ssa-ccp.c (params.h): Include.
670         (fold_builtin_alloca_for_var): New function.
671         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
672
673 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
674
675         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
676         Handle FMA option.
677
678 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
679
680         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
681         b3 and b4 unsigned.
682
683 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
684
685         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
686         when code is SET.
687
688 2011-08-30  Richard Guenther  <rguenther@suse.de>
689
690         PR middle-end/48571
691         * gimple.h (maybe_fold_offset_to_address): Remove.
692         (maybe_fold_offset_to_reference): Likewise.
693         (maybe_fold_stmt_addition): Likewise.
694         (may_propagate_address_into_dereference): Likewise.
695         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
696         array references.
697         * gimple-fold.c (canonicalize_constructor_val): Likewise.
698         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
699         addresses instead.
700         (may_propagate_address_into_dereference): Remove.
701         (maybe_fold_offset_to_array_ref): Likewise.
702         (maybe_fold_offset_to_reference): Likewise.
703         (maybe_fold_offset_to_address): Likewise.
704         (maybe_fold_stmt_addition): Likewise.
705         (fold_gimple_assign): Do not reconstruct array references but
706         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
707         MEM_REF addresses.
708         (gimple_fold_stmt_to_constant_1): Likewise.
709         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
710         * gimplify.c (gimplify_conversion): Likewise.
711         (gimplify_expr): Likewise.
712
713 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
714
715         * config/i386/fmaintrin.h: New.
716         * config.gcc: Add fmaintrin.h.
717         * config/i386/i386.c
718         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
719         <IX86_BUILTIN_VFMADDSD3>: Likewise.
720         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
721         (*fmai_fmadd_<mode>): Likewise.
722         (*fmai_fmsub_<mode>): Likewise.
723         (*fmai_fnmadd_<mode>): Likewise.
724         (*fmai_fnmsub_<mode>): Likewise.
725         * config/i386/immintrin.h: Add fmaintrin.h.
726
727 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
728
729         * genautomata.c (NO_COMB_OPTION): New macro.
730         (no_comb_flag): New static variable.
731         (gen_automata_option): Handle NO_COMB_OPTION.
732         (comb_vect_p): False if no_comb_flag.
733         (add_vect): Move computation of min/max values.  Return early if
734         no_comb_flag.
735         * doc/md.texi (automata_option): Document no-comb-vect.
736
737         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
738         "__x86.get_pc_thunk".
739
740         * bb-reorder.c (insert_section_boundary_note): Only do it if
741         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
742
743 2011-08-30  Christian Bruel  <christian.bruel@st.com>
744
745         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
746         flag_profile_use.
747
748 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
749
750         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
751         to off.  Document switch.
752         * doc/invoke.texi (-msave-toc-indirect): Ditto.
753
754 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
755
756         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
757         conditionals and comments inside macro arguments.
758
759 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
760             Richard Guenther  <rguenther@suse.de>
761
762         * tree.h (constant_boolean_node): Adjust prototype.
763         * fold-const.c (fold_convert_loc): Move aggregate conversion
764         leeway down.
765         (constant_boolean_node): Make value parameter boolean, add
766         vector type handling.
767         (fold_unary_loc): Use constant_boolean_node.
768         (fold_binary_loc): Preserve types properly when folding
769         COMPLEX_EXPR <__real x, __imag x>.
770         * gimplify.c (gimplify_expr): Handle vector comparison.
771         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
772         comparison.
773         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
774         comparisons.
775
776 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
777
778         PR middle-end/48722
779         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
780         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
781         (verify_rtl_sharing): Likewise and verify_rtx_sharing
782         in there too.
783         (unshare_all_rtl_in_chain): For CALL_INSNs
784         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
785
786 2011-08-29  Richard Guenther  <rguenther@suse.de>
787
788         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
789         on the built ADDR_EXPR.
790
791 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
792
793         PR debug/50215
794         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
795         before adding ENTRY_VALUE to val->locs.
796
797 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
798
799         PR bootstrap/50218
800         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
801         comp.
802
803 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
804
805         * doc/rtl.texi (simple_return): Document.
806         (parallel, PATTERN): Here too.
807         * doc/md.texi (return): Mention it's allowed to expand to simple_return
808         in some cases.
809         (simple_return): Document standard pattern.
810         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
811         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
812         * reorg.c (function_return_label, function_simple_return_label):
813         New static variables, replacing...
814         (end_of_function_label): ... this.
815         (simplejump_or_return_p): New static function.
816         (optimize_skip, steal_delay_list_from_fallthrough,
817         fill_slots_from_thread): Use it.
818         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
819         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
820         (find_end_label): Take a new arg which is one of the two return
821         rtxs.  Depending on which, set either function_return_label or
822         function_simple_return_label.  All callers changed.
823         (make_return_insns): Make both kinds.
824         (dbr_schedule): Adjust for two kinds of end labels.
825         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
826         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
827         (gen_expand, gen_split): Use ANY_RETURN_P.
828         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
829         * rtl.def (SIMPLE_RETURN): New code.
830         * ifcvt.c (find_if_case_1): Be more careful about
831         redirecting jumps to the EXIT_BLOCK.
832         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
833         returnjump_p_1): Handle SIMPLE_RETURNs.
834         * print-rtl.c (print_rtx): Likewise.
835         * rtl.c (copy_rtx): Likewise.
836         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
837         * combine.c (simplify_set): Likewise.
838         * resource.c (find_dead_or_set_registers, mark_set_resources):
839         Likewise.
840         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
841         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
842         (init_emit_regs): Initialize simple_return_rtx.
843         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
844         force_nonfallthru_and_redirect.
845         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
846         (GR_SIMPLE_RETURN): New enum value.
847         (simple_return_rtx): New macro.
848         * basic-block.h (force_nonfallthru_and_redirect): Adjust
849         declaration.
850         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
851         argument.  All callers changed.  Be careful about what kinds of
852         returnjumps to generate.
853         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
854         ix86_pad_short_function): Likewise.
855         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
856         of return.
857         * config/mips/mips.md (any_return): New code_iterator.
858         (optab): Add cases for return and simple_return.
859         (return): Expand to a simple_return.
860         (simple_return): New pattern.
861         (*<optab>, *<optab>_internal for any_return): New patterns.
862         (return_internal): Remove.
863         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
864         a simple_return_internal.
865
866 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
867
868         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
869         (vec_extract_lo_<mode>): Prevent both operands in memory.
870         (vec_extract_lo_v16hi): Ditto.
871         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
872
873 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
874
875         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
876         (*sse2_mulv4si3): Ditto.
877         (mulv2di3): Ditto.
878         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
879         notes to REG_EQUAL.
880
881 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
882
883         PR target/50202
884         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
885         when all outputs are unused.
886         (sse4_2_pcmpistr): Ditto.
887
888 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
889
890         * config/i386/i386.md (round<mode>2): New expander.
891         * config/i386/i386.c (enum ix86_builtins): Add
892         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
893         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
894         descriptions.
895         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
896         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
897
898 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
899
900         PR middle-end/50083
901         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
902         only when TARGET_C99_FUNCTIONS.
903         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
904         <BUILT_IN_RINT{,F,L}>: Ditto.
905
906 2011-08-26  Michael Matz  <matz@suse.de>
907             Jakub Jelinek  <jakub@redhat.com>
908
909         PR lto/50165
910         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
911         don't call strlen twice, use memcpy.
912
913 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
914
915         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
916         * config/i386/bmiintrin.h: Likewise.
917         * config/i386/lzcntintrin.h: Likewise.
918
919         * config/i386/immintrin.h: Include <lzcntintrin.h>,
920         <bmiintrin.h> and <bmi2intrin.h>.
921
922 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
923
924         PR target/50166
925         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
926         * configure: Regenerate.
927
928 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
929
930         PR c/50179
931         * c-typeck.c (c_process_expr_stmt): Skip over nops and
932         call mark_exp_read even if exprv is ADDR_EXPR.
933
934 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
935
936         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
937         to df_set_dead_notes_for_mw.
938
939 2011-08-26  Richard Guenther  <rguenther@suse.de>
940
941         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
942
943 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
944             Tom de Vries  <tom@codesourcery.com>
945
946         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
947         (struct ivopts_data): Add loop_single_exit_p field.
948         (niter_for_exit): Change parameter desc_p into return value.  Return
949         desc if desc->may_be_zero.  Free desc if unused.
950         (niter_for_single_dom_exit): Change return type.
951         (find_induction_variables): Handle changed return type of
952         niter_for_single_dom_exit.  Dump may_be_zero.
953         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
954         (set_use_iv_cost): Add and handle comp parameter.
955         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
956         comp argument to set_use_iv_cost.
957         (strip_wrap_conserving_type_conversions, expr_equal_p)
958         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
959         (may_eliminate_iv): Add comp parameter.  Handle new return type of
960         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
961         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
962         and may_eliminate_iv.
963         (rewrite_use_compare): Move call to iv_elimination_compare to ...
964         (may_eliminate_iv): Here.
965         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
966
967 2011-08-26  Tom de Vries  <tom@codesourcery.com>
968
969         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
970         accessing TREE_TYPE.
971
972 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
973
974         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
975         (*ior_scc_scc_cmp): Likewise
976         (*and_scc_scc): Likewise.
977         (*and_scc_scc_cmp): Likewise.
978         (*and_scc_scc_nodom): Likewise.
979         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
980
981 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
982
983         * rtlanal.c (nonzero_bits1): Handle CLRSB.
984
985 2011-08-26  Richard Guenther  <rguenther@suse.de>
986
987         * expr.c (string_constant): Handle &MEM_REF.
988
989 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
990
991         * config/arm/arm.c (struct four_ints): New type.
992         (count_insns_for_constant): Delete function.
993         (find_best_start): Delete function.
994         (optimal_immediate_sequence): New function.
995         (optimal_immediate_sequence_1): New function.
996         (arm_gen_constant): Move constant splitting code to
997         optimal_immediate_sequence.
998         Rewrite constant negation/invertion code.
999
1000 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1001
1002         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1003         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1004         Remove prototype. Remove static function type.
1005         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1006         Add arch attribute.
1007         * config/arm/constraints.md (Pj, PJ): New constraints.
1008
1009 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1010
1011         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1012         ("cortex_a9_multiply_long"): New and use above.  Handle all
1013         long multiply cases.
1014         ("cortex_a9_multiply"): Handle smmul and smmulr.
1015         ("cortex_a9_mac"): Handle smmla.
1016
1017 2011-08-25  Richard Henderson  <rth@redhat.com>
1018
1019         PR 50132
1020         PR 49864
1021         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1022         non-constant stack adjutment.
1023         * expr.c (find_args_size_adjust): Break out from ...
1024         (fixup_args_size_notes): ... here.
1025         * rtl.h (find_args_size_adjust): Declare.
1026
1027 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
1028
1029         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1030         sse4 and sse4_noavx.
1031         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1032         (*pushdf_rex64): Change Y2 register constraint to x.
1033         (*movdf_internal_rex64): Ditto.
1034         (*zero_extendsidi2_rex64): Ditto.
1035         (*movdi_internal): Change Y2 register constraint to x
1036         and update "isa" attribute.
1037         (*pushdf): Ditto.
1038         (*movdf internal): Ditto.
1039         (zero_extendsidi2_1): Ditto.
1040         (*truncdfdf_mixed): Ditto.
1041         (*truncxfdf2_mixed): Ditto.
1042         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1043         register constraint to x.
1044         (*movv2sf_internal_rex64): Ditto.
1045         (*mov<mode>_internal): Change Y2 register constraint to x
1046         and add "isa" attribute.
1047         (*movv2sf_internal): Ditto.
1048         (*vec_extractv2si_1): Ditto.
1049         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1050         constraints to x and update "isa" attribute.
1051         (*vec_interleave_highv2df): Change Y3 registerconstraint
1052         to x and update "isa" attribute.
1053         (*vec_interleave_lowv2df): Ditto.
1054         (*vec_concatv2df): Change Y2 register constraint to x and
1055         update "isa" attribute.
1056         (sse2_loadld): Ditto.
1057         (*vec_extractv2di_1): Ditto.
1058         (*vec_dupv4si): Ditto.
1059         (*vec_dupv2di): Ditto.
1060         (*vec_concatv4si): Ditto.
1061         (vec_concatv2di): Ditto.
1062         * config/i386/constraints.md (Y2): Remove.
1063         (Y3): Ditto.
1064         (Y4): Ditto.
1065
1066 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1067
1068         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1069         dump_def_use_chain): Don't declare.
1070         (mark_conflict, create_new_chain): Move before users.
1071         (regrename_optimize): Move to near end of file.
1072
1073 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1074
1075         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1076         (secondary_input_reload_class): Remove Prototype.
1077         * config/avr/avr.c (byte_immediate_operand): Remove Function.
1078         * config/avr/avr.md (setmemhi): Use u8_operand.
1079         (strlenhi): Use const0_rtx for comparison.
1080         * config/avr/avr.h (avr_reg_order): Remove Declaration.
1081
1082 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1083
1084         * config/avr/avr.c (reg_class_tab): Make local to
1085         avr_regno_reg_class.  Return smallest register class available.
1086
1087 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1088
1089         * config/avr/avr.c (STR_PREFIX_P): New Define.
1090         (avr_asm_declare_function_name): Use it.
1091         (avr_asm_named_section): Use it.
1092         (avr_section_type_flags): Use it.
1093
1094 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1095
1096         * doc/md.texi (automata_option): Document collapse-ndfa.
1097         * genautomata.c (COLLAPSE_OPTION): New macro.
1098         (collapse_flag): New static variable.
1099         (struct description): New member normal_decls_num.
1100         (struct automaton): New members advance_ainsn and collapse_ainsn.
1101         (gen_automata_option): Check for COLLAPSE_OPTION.
1102         (collapse_ndfa_insn_decl): New static variable.
1103         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1104         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1105         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1106         necessary.  Use normal_decls_num rather than decls_num, remove
1107         test for special decls.
1108         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1109         (make_automaton); Likewise.  Use the new advance_cycle_insn member
1110         of struct automaton.
1111         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1112         is set.
1113         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1114         transition.  Create the necessary transitions for it.
1115         (create_ainsns): Return void.  Take an automaton_t argument, and
1116         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
1117         callers changed.
1118         (COLLAPSE_NDFA_VALUE_NAME): New macro.
1119         (output_tables): Output code to define it.
1120         (output_internal_insn_code_evaluation): Output code to accept
1121         const0_rtx as collapse-ndfa transition.
1122         (output_default_latencies, output_print_reservation_func,
1123         output_print_description): Reorganize loops to use normal_decls_num
1124         as loop bound; remove special case for advance_cycle_insn_decl.
1125         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1126         (check_automata_insn_issues): Check for collapse_ainsn.
1127         (expand_automate): Allocate sufficient space.  Initialize
1128         normal_decls_num.
1129
1130 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1131
1132         * config/avr/avr.md: Fix indentation from r177991.
1133
1134 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1135
1136         * regrename.c (struct du_head): Remove member terminated.
1137         (create_new_chain): Don't initialize it.
1138         (scan_rtx_reg): Don't set or test it, test the open_chains_set
1139         bitmap instead.
1140         (tick, this_tick): New global variables, moved out of
1141         regrename_optimize.
1142         (current_id, open_chains, closed_chains, open_chains_set,
1143         live_in_chains, live_hard_regs): Reorder declarations.
1144         (dump_def_use_chain): Move function earlier in the file.
1145         (rename_chains): New static function, broken out of
1146         regrename_optimize.
1147         (regrename_optimize): Use it.  Remove #if 0'ed code.
1148
1149 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1150
1151         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1152
1153 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1154
1155         PR target/50172
1156         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1157
1158 2011-08-24  Richard Guenther  <rguenther@suse.de>
1159
1160         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1161         ref in the basic-block case.  Move stripping array-refs
1162         to the place we create an access-function for it.  Remove
1163         bogus stripping down a MEM_REF to its base.
1164
1165 2011-08-24  Richard Guenther  <rguenther@suse.de>
1166
1167         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1168         with -fno-strict-overflow.
1169
1170 2011-08-24  Richard Guenther  <rguenther@suse.de>
1171
1172         * tree-vectorizer.c (vect_print_dump_info): Avoid the
1173         file and location clutter when dumping to dump files.
1174
1175 2011-08-24  Simon Baldwin  <simonb@google.com>
1176
1177         * gengtype-state.c (write_state): Remove timestamped header line.
1178
1179 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1180
1181         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1182         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1183         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1184         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1185         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1186         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1187         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1188         rules.
1189         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1190
1191 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1194
1195 2011-08-24  Richard Guenther  <rguenther@suse.de>
1196
1197         PR tree-optimization/50067
1198         * tree-data-ref.c (dr_analyze_indices): Do not add an access
1199         function for a MEM_REF base that has no evolution in the loop
1200         nest or that is not analyzable.
1201
1202 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
1203
1204         * ira.c (ira_init_register_move_cost): Check small subclasses
1205         through ira_reg_class_max_nregs and ira_available_class_regs.
1206
1207 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1208
1209         * config/i386/constraints.md (Yp): New register constraint.
1210         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1211         Yp register constraint.
1212         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1213         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1214         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1215
1216 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1217
1218         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1219
1220 2011-08-23  Mark Heffernan  <meheff@google.com>
1221
1222         PR middle-end/38509
1223         * common.opt (Wfree-nonheap-object): New option.
1224         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1225         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1226         to warning.
1227         (expand_builtin): Make warning conditional.
1228
1229 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1230
1231         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1232         (length_immediate): Handle imulx, ishiftx and rotatex.
1233         (imm_disp): Ditto.
1234         (isa): Add bmi2.
1235         (enabled): Handle bmi2.
1236         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1237         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
1238         (*bmi2_umulditi3_1): New insn pattern.
1239         (*bmi2_umulsidi3_1): Ditto.
1240         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1241         (*bmi2_ashl<mode>3_1): New insn pattern.
1242         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1243         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1244         (*bmi2_ashlsi3_1_zext): New insn pattern.
1245         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1246         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1247         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1248         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1249         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1250         flags dependency.
1251         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1252         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1253         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1254         flags dependency.
1255         (*bmi2_rorx<mode>3_1): New insn pattern.
1256         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1257         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1258         (*rotatert<mode>3_1 splitter): Ditto.
1259         (*bmi2_rorxsi3_1_zext): New insn pattern.
1260         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1261         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1262         (*rotatertsi3_1_zext splitter): Ditto.
1263
1264 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1265
1266         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1267         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1268         (ix86_handle_option): Handle OPT_mbmi2 case.
1269         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1270         (x86_64-*-*): Likewise.
1271         * config/i386/bmi2intrin.h: New file.
1272         * config/i386/cpuid.h (bit_BMI2): New.
1273         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1274         BMI2 feature.
1275         * config/i386/i386-c.c (ix86_target_macros_internal):
1276         Conditionally define __BMI2__.
1277         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1278         Handle BMI2 option.
1279         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1280         (print_reg): New code.
1281         (ix86_print_operand): Likewise.
1282         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1283         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1284         IX86_BUILTIN_PEXT64.
1285         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1286         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1287         IX86_BUILTIN_PEXT64.
1288         * config/i386/i386.h (TARGET_BMI2): New.
1289         * config/i386/i386.md (UNSPEC_PDEP): New.
1290         (UNSPEC_PEXT): Likewise.
1291         (*bmi2_bzhi_<mode>3): Likewise.
1292         (*bmi2_pdep_<mode>3): Likewise.
1293         (*bmi2_pext_<mode>3): Likewise.
1294         * config/i386/i386.opt (mbmi2): New.
1295         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1296         is defined.
1297         * doc/extend.texi: Document BMI2 built-in functions.
1298         * doc/invoke.texi: Document -mbmi2.
1299
1300 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
1301
1302         PR middle-end/50161
1303         * simplify-rtx.c (simplify_const_unary_operation): If
1304         op is CONST_INT, don't look at op_mode, but use instead mode.
1305         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1306         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1307         operation and TRUNCATE/ZERO_EXTEND if needed.
1308         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1309         Document that operand mode must be same as operation mode,
1310         or VOIDmode.
1311         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1312         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1313         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1314         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1315         use the mode of operand for the operation and add truncate
1316         or zero_extend around if needed.
1317         * config/c6x/c6x.md (ctzdi2): Likewise.
1318         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1319
1320 2011-08-12  Michael Matz  <matz@suse.de>
1321
1322         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1323         (gimple_expand_cfg): Merge alignment info for coalesced pointer
1324         SSA names.
1325
1326 2011-08-23  Richard Guenther  <rguenther@suse.de>
1327
1328         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1329         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1330         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1331         from ...
1332         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1333         (mem_refs_may_alias_p): Adjust.
1334         * tree-data-ref.h (dr_may_alias_p): Adjust.
1335         * tree-data-ref.c: Include tree-affine.h.
1336         (dr_analyze_indices): Do nothing for the non-loop case.
1337         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1338         more cases in the non-loop case.
1339         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1340         calls to dr_may_alias_p.
1341         (write_alias_graph_to_ascii_ecc): Likewise.
1342         (write_alias_graph_to_ascii_dot): Likewise.
1343         (build_alias_set_optimal_p): Likewise.
1344
1345 2011-08-23  Richard Guenther  <rguenther@suse.de>
1346
1347         PR tree-optimization/50162
1348         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1349
1350 2011-08-23  Richard Guenther  <rguenther@suse.de>
1351
1352         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1353         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1354         (create_data_ref): Also dump access functions for the created data-ref.
1355
1356 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1357             Kirill Yukhin  <kirill.yukhin@intel.com>
1358
1359         PR target/50155
1360         * config/i386/sse.md (VI_AVX2): New.
1361         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1362         (*<plusminus_insn><mode>3): Ditto.
1363         (<sse2_avx2>_andnot<mode>3): Ditto.
1364         (*andnot<mode>3): Fix order of cond operands.
1365         Add asserts for correct TARGET_xxx.
1366         (*<any_logic:code><mode>3): Ditto.
1367
1368 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1369
1370         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1371         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1372         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1373         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1374         and return types to unsigned char. Use reg_class_contents instead
1375         of class_contents.
1376         (TARGET_CLASS_MAX_NREGS): Define.
1377
1378 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1379
1380         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1381         to make computed_jump_p return true.
1382
1383 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1384
1385         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1386         (PICFLAG_FOR_TARGET): Substitute.
1387         * aclocal.m4: Regenerate.
1388         * configure: Regenerate.
1389
1390 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1391
1392         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1393         after reading in the pch.
1394
1395 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1396
1397         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1398         * configure: Regenerated.
1399
1400 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1401
1402         PR tree-optimization/50133
1403         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1404         from stmt instead of some statement around gsi.
1405
1406         PR middle-end/50141
1407         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1408         innerdecl is a VAR_DECL.
1409
1410 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1411
1412         * config/i386/avx2intrin.h: New file.
1413         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1414         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1415         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1416         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1417         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1418         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1419         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1420         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1421         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1422         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1423         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1424         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1425         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1426         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1427         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1428         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1429         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1430         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1431         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1432         VOID_FTYPE_PV8SI_V8SI_V8SI,
1433         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1434         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1435         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1436         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1437         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1438         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1439         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1440         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1441         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1442         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1443         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1444         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1445         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1446         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1447         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1448         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1449         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1450         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1451         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1452         V4DI_FTYPE_V4DI_INT_CONVERT,
1453         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1454         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1455         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1456         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1457         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1458         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1459         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1460         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1461         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1462         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1463         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1464         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1465         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1466         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1467         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1468         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1469         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1470         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1471         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1472         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1473         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1474         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1475         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1476         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1477         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1478         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1479         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1480         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1481         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1482         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1483         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1484         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1485         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1486         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1487         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1488         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1489         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1490         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1491         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1492         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1493         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1494         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1495         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1496         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1497         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1498         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1499         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1500         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1501         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1502         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1503         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1504         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1505         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1506         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1507         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1508         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1509         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1510         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1511         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1512         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1513         IX86_BUILTIN_VBROADCASTSS_PS256,
1514         IX86_BUILTIN_VBROADCASTSD_PD256,
1515         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1516         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1517         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1518         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1519         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1520         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1521         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1522         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1523         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1524         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1525         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1526         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1527         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1528         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1529         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1530         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1531         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1532         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1533         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1534         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1535         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1536         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1537         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1538         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1539         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1540         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1541         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1542         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1543         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1544         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1545         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1546         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1547         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1548         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1549         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1550         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1551         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1552         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1553         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1554         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1555         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1556         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1557         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1558         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1559         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1560         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1561         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1562         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1563         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1564         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1565         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1566         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1567         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1568         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1569         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1570         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1571         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1572         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1573         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1574         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1575         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1576         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1577         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1578         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1579         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1580         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1581         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1582         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1583         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1584         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1585         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1586         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1587         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1588         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1589         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1590         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1591         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1592         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1593         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1594         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1595         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1596         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1597         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1598         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1599         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1600         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1601         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1602         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1603         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1604         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1605         IX86_BUILTIN_VBROADCASTSD_PD256,
1606         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1607         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1608         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1609         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1610         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1611         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1612         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1613         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1614         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1615         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1616         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1617         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1618         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1619         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1620         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1621         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1622         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1623         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1624         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1625         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1626         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1627         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1628         IX86_BUILTIN_GATHERDIV8SI.
1629         (ix86_preferred_simd_mode): Support AVX2 modes.
1630         (ix86_expand_args_builtin): Support AVX2 builtins.
1631         (ix86_expand_special_args_builtin): Likewise.
1632         (ix86_expand_builtin): Likewise.
1633         * config/i386/i386.md (UNSPEC_VPERMSI): New.
1634         (UNSPEC_VPERMDF): Likewise.
1635         (UNSPEC_VPERMSF): Likewise.
1636         (UNSPEC_VPERMDI): Likewise.
1637         (UNSPEC_VPERMTI): Likewise.
1638         (UNSPEC_GATHER): Likewise.
1639         (ssemodesuffix): Extend.
1640         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1641         is defined.
1642         * config/i386/predicates.md (const1248_operand): New.
1643         * config/i386/sse.md (VI1_AVX2): New mode iterator.
1644         (VI2_AVX2): Likewise.
1645         (VI4_AVX2): Likewise.
1646         (VI8_AVX2): Likewise.
1647         (VIMAX_AVX2): Likewise.
1648         (SSESCALARMODE): Likewise.
1649         (VI12_AVX2): Likewise.
1650         (VI24_AVX2): Likewise.
1651         (VI124_AVX2): Likewise.
1652         (VI248_AVX2): Likewise.
1653         (VI48_AVX2): Likewise.
1654         (VI4SD_AVX2): Likewise.
1655         (V48_AVX2): Likewise.
1656         (AVX256MODE2P): Likewise.
1657         (AVXMODE48P_DI): Likewise.
1658         (sse2_avx2): New mode attribute.
1659         (ssse3_avx2): Likewise.
1660         (sse4_1_avx2): Likewise.
1661         (avx_avx2): Likewise.
1662         (ssebytemode): Likewise.
1663         (AVXTOSSEMODE): Likewise.
1664         (AVXMODE48P_DI): Likewise.
1665         (gthrfirstp): Likewise.
1666         (gthrlastp): Likewise.
1667         (lshift): New code_iterator
1668         (lshift): New code attribute.
1669         (lshift): Likewise.
1670         (ssescalarmodesuffix): Update.
1671         (sseunpackmode): Likewise.
1672         (ssepackmode): Likewise.
1673         (avx2_vec_dupv4sf): New insn pattern.
1674         (avx2_vec_dupv8sf): Likewise.
1675         (avx2_interleave_highv4di): Likewise.
1676         (avx2_interleave_lowv4di): Likewise.
1677         (avx2_umulv4siv4di3): Likewise
1678         (*avx2_umulv4siv4di3): Likewise
1679         (avx2_pmaddwd): Likewise.
1680         (*avx2_pmaddwd): Likewise.
1681         (avx2_lshrqv4di3): Likewise.
1682         (avx2_lshlqv4di3): Likewise.
1683         (avx2_lshl<mode>3): Likewise.
1684         (avx2_<umaxmin:code><mode>3): Likewise.
1685         (*avx2_<umaxmin:code><mode>3): Likewise.
1686         (avx2_<smaxmin:code><mode>3): Likewise.
1687         (*avx2_<smaxmin:code><mode>3): Likewise.
1688         (avx2_eq<mode>3): Likewise.
1689         (*avx2_eq<mode>3): Likewise.
1690         (avx2_gt<mode>3): Likewise.
1691         (avx2_interleave_highv32qi): New.
1692         (avx2_interleave_lowv32qi): Likewise.
1693         (avx2_interleave_highv16hi): Likewise.
1694         (avx2_interleave_lowv16hi): Likewise.
1695         (avx2_interleave_highv8si): Likewise.
1696         (avx2_interleave_lowv8si): Likewise.
1697         (avx2_pshufd): Likewise.
1698         (avx2_pshufd_1): Likewise.
1699         (avx2_pshuflwv3): Likewise.
1700         (avx2_pshuflw_1): Likewise.
1701         (avx2_pshufhwv3): Likewise.
1702         (avx2_pshufhw_1): Likewise.
1703         (avx2_uavgv32qi3): Likewise.
1704         (*avx2_uavgv32qi3): Likewise.
1705         (avx2_uavgv16hi3): Likewise.
1706         (*avx2_uavgv16hi3): Likewise.
1707         (avx2_pmovmskb): Likewise.
1708         (avx2_phaddwv16hi3): Likewise.
1709         (avx2_phadddv8si3): Likewise.
1710         (avx2_phaddswv16hi3): Likewise.
1711         (avx2_phsubwv16hi3): Likewise.
1712         (avx2_phsubdv8si3): Likewise.
1713         (avx2_phsubswv16hi3): Likewise.
1714         (avx2_pmaddubsw256): Likewise.
1715         (avx2_umulhrswv16hi3): Likewise.
1716         (*avx2_umulhrswv16hi3): Likewise.
1717         (avx2_packusdw): Likewise.
1718         (avx2_pblendd<mode>): Likewise.
1719         (avx2_<code>v16qiv16hi2): Likewise.
1720         (avx2_<code>v8qiv8si2): Likewise.
1721         (avx2_<code>v8hiv8si2): Likewise.
1722         (avx2_<code>v4qiv4di2): Likewise.
1723         (avx2_<code>v4hiv4di2): Likewise.
1724         (avx2_<code>v4siv4di2): Likewise.
1725         (avx2_pbroadcast<mode>): Likewise.
1726         (avx2_permvarv8si): Likewise.
1727         (avx2_permv4df): Likewise.
1728         (avx2_permvarv8sf): Likewise.
1729         (avx2_permv4di): Likewise.
1730         (avx2_permv2ti): Likewise.
1731         (avx2_vec_dupv4df): Likewise.
1732         (avx2_vbroadcasti128_<mode>): Likewise.
1733         (avx2_vec_set_lo_v4di): Likewise.
1734         (avx2_vec_set_hi_v4di): Likewise.
1735         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1736         (avx2_extracti128): Likewise.
1737         (avx2_inserti128): Likewise.
1738         (avx2_ashrvv8si): Likewise.
1739         (avx2_ashrvv4si): Likewise.
1740         (avx2_<lshift>vv8si): Likewise.
1741         (avx2_<lshift>v<mode>): Likewise.
1742         (avx2_<lshift>vv2di): Likewise.
1743         (avx2_gathersi<mode>): Likewise.
1744         (*avx2_gathersi<mode>): Likewise.
1745         (avx2_gatherdi<mode>): Likewise.
1746         (*avx2_gatherdi<mode>): Likewise.
1747         (avx2_gatherdi<mode>256): Likewise.
1748         (*avx2_gatherdi<mode>256): Likewise.
1749         (<plusminus_insn><mode>3): Use VI mode iterator.
1750         (*<plusminus_insn><mode>3): Use VI mode iterator.
1751         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1752         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1753         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1754         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1755         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
1756         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
1757         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1758         Use VI2_AVX2 mode iterator.
1759         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1760         Use VI2_AVX2 mode iterator.
1761         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
1762         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
1763         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1764         Use VI4_AVX2 mode iterator.
1765         (ashr<mode>3): Use VI24_AVX2 mode iterator.
1766         (lshr<mode>3): Use VI248_AVX2 mode iterator.
1767         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1768         Use VIMAX_AVX2 mode iterator.
1769         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1770         Use VI mode iterator.
1771         (*andnot<mode>3): Update for AVX2.
1772         (*<any_logic:code><mode>3): Likewise.
1773         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1774         Use VI1_AVX mode iterator.
1775         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
1776         Use VI2_AVX mode iterator.
1777         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1778         Use VI1_AVX mode iterator.
1779         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1780         Use VI8_AVX2 mode iterator.
1781         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1782         Use VI1_AVX2 mode iterator.
1783         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1784         Use VI124_AVX2 mode iterator.
1785         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1786         Use SSESCALARMODE mode iterator.
1787         (abs<mode>2): Use VI124_AVX2 mode iterator.
1788         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1789         Use VI8_AVX2 mode iterator.
1790         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1791         Use VI1_AVX2 mode iterator.
1792         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1793         Use VI1_AVX2 mode iterator.
1794         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1795         Use VI2_AVX2 mode iterator.
1796         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1797         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1798         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1799         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1800         Use V48_AVX2 mode iterator.
1801         * doc/extend.texi: Document AVX2 built-in functions.
1802         * doc/invoke.texi: Document -mavx2.
1803
1804 2011-08-22  Matthias Klose <doko@debian.org>
1805
1806         Revert:
1807         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1808                     Matthias Klose <doko@debian.org>
1809         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1810         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1811         convention.
1812         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1813
1814 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1815
1816         PR bootstrap/50146
1817         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1818         to #ifndef HONOR_REG_ALLOC_ORDER block.
1819
1820 2011-08-21  Richard Henderson  <rth@redhat.com>
1821
1822         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1823         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1824         * resource.c (next_insn_no_annul): Likewise.
1825         (mark_set_resources): Likewise.
1826         * reorg.c (delete_from_delay_slot): Likewise.
1827         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1828         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1829
1830 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1831
1832         * config/i386/i386.md (any_div): Remove.
1833         (sgnprefix): Update for removal.
1834         (u): Ditto.
1835
1836 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1837
1838         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1839         for ira_reg_class_max_nregs.  Increase pressure by 1.
1840         (mark_pseudo_regno_subword_dead): Use allocno class
1841         for ira_reg_class_max_nregs.
1842
1843 2011-08-20  Richard Henderson  <rth@redhat.com>
1844
1845         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1846         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1847         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1848         config/c6x/ltf.c: Adjust include path for soft-fp.
1849
1850 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1851
1852         PR other/46770
1853         * config.gcc (tm_file): Add initfini-array.h if
1854         .init_arrary/.fini_array are supported.
1855
1856         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1857         USE_INITFINI_ARRAY is defined.
1858
1859         * output.h (default_elf_init_array_asm_out_constructor): New.
1860         (default_elf_fini_array_asm_out_destructor): Likewise.
1861         * varasm.c (elf_init_array_section): Likewise.
1862         (elf_fini_array_section): Likewise.
1863         (get_elf_initfini_array_priority_section): Likewise.
1864         (default_elf_init_array_asm_out_constructor): Likewise.
1865         (default_elf_fini_array_asm_out_destructor): Likewise.
1866
1867         * config/initfini-array.h: New.
1868
1869 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1870
1871         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1872         OK for ST_REGS and FP_REGS before taking those classes into account.
1873
1874 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1875
1876         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1877         before checking for annulled branches.
1878
1879 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1880
1881         * config/i386/i386.c (ix86_binary_operator_ok): Use
1882         satisfies_constraint_L.
1883
1884 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1885             Michael Matz  <matz@suse.de>
1886
1887         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1888         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1889
1890 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1891
1892         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1893         * doc/tm.texi: Regenerate.
1894         * targhooks.c (default_preferred_output_reload_class): Don't use
1895         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1896         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1897
1898 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1899
1900         PR tree-optimization/48739
1901         * tree-ssa.c: Include cfgloop.h.
1902         (execute_update_addresses_taken): When updating ssa, if in loop closed
1903         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1904         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1905
1906 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1907
1908         PR rtl-optimization/49936
1909         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1910         for calculation of max register move costs.
1911
1912 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1913
1914         * c-parser.c (c_parser_postfix_expression): Convert operands of
1915         __builtin_complex to their semantic types.
1916
1917 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         PR middle-end/49721
1920         * explow.c (convert_memory_address_addr_space): Also permute the
1921         conversion and addition of constant for zero-extend.
1922
1923 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1924
1925         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1926         * doc/extend.texi (__builtin_complex): Document.
1927
1928 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1929
1930         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1931         beyond conversions.
1932         (convert_mult_to_widen): Convert constant inputs to the right type.
1933         (convert_plusminus_to_widen): Don't automatically reject inputs that
1934         are not an SSA_NAME.
1935         Convert constant inputs to the right type.
1936
1937 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1938
1939         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1940         to the correct type.
1941
1942 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1943
1944         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1945         unsigned inputs of different modes.
1946         (convert_plusminus_to_widen): Likewise.
1947
1948 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1949
1950         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1951         'type'.
1952         Use 'type' from caller, not inferred from 'rhs'.
1953         Don't reject non-conversion statements. Do return lhs in this case.
1954         (is_widening_mult_p): Add new argument 'type'.
1955         Use 'type' from caller, not inferred from 'stmt'.
1956         Pass type to is_widening_mult_rhs_p.
1957         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1958         (convert_plusminus_to_widen): Likewise.
1959
1960 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1961
1962         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1963         Ensure the the larger type is the first operand.
1964
1965 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1966
1967         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1968         unsupported unsigned multiplies to signed.
1969         (convert_plusminus_to_widen): Likewise.
1970
1971 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1972
1973         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1974         conversion statement separating multiply-and-accumulate.
1975
1976 2011-08-19  Richard Guenther  <rguenther@suse.de>
1977
1978         PR tree-optimization/50067
1979         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1980         offset only if we accounted for it.
1981
1982 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1983
1984         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1985         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1986         * optabs.c (find_widening_optab_handler_and_mode): New function.
1987         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1988         (expand_binop_directly): Likewise.
1989         (expand_binop): Likewise.
1990         * optabs.h (find_widening_optab_handler): New macro define.
1991         (find_widening_optab_handler_and_mode): New prototype.
1992         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1993         type precision rules.
1994         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1995         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1996         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1997         Explicitly disallow mis-matched input types.
1998         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1999         input types to fit the new handler.
2000         (convert_plusminus_to_widen): Likewise.
2001
2002 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2003
2004         * expr.c (expand_expr_real_2): Use widening_optab_handler.
2005         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2006         (gen_insn): $N now means $a must be wider than $b, not consecutive.
2007         * optabs.c (widened_mode): New function.
2008         (expand_widen_pattern_expr): Use widening_optab_handler.
2009         (expand_binop_directly): Likewise.
2010         (expand_binop): Likewise.
2011         * optabs.h (widening_optab_handlers): New struct.
2012         (optab_d): New member, 'widening'.
2013         (widening_optab_handler): New function.
2014         (set_widening_optab_handler): New function.
2015         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2016         widening_optab_handler.
2017         (convert_plusminus_to_widen): Likewise.
2018
2019 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2020
2021         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2022         pedantic.
2023         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2024         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2025
2026 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2027
2028         * opth-gen.awk: Do not declare target save/restore structures and
2029         functions if IN_RTS defined.
2030
2031 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2032
2033         PR target/49437
2034         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2035         when stack was realigned in interrupt handler prologue.
2036
2037 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2038
2039         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2040         (quals_from_declspecs): Assert _Noreturn not present.
2041         (grokdeclarator): Handle _Noreturn.
2042         (build_null_declspecs): Initialize noreturn_p.
2043         (declspecs_add_scspec): Handle RID_NORETURN.
2044         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2045         (c_parser_attributes): Handle RID_NORETURN.
2046         * c-tree.h (struct c_declspecs): Add noreturn_p.
2047         * ginclude/stdnoreturn.h: New.
2048         * Makefile.in (USER_H): Add stdnoreturn.h.
2049
2050 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2051
2052         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2053         (OPTION_MASK_ISA_AVX_UNSET): Update.
2054         (OPTION_MASK_ISA_AVX2_UNSET): New.
2055         (ix86_handle_option): Handle OPT_mavx2 case.
2056         * config/i386/cpuid.h (bit_AVX2): New.
2057         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2058         AVX2 feature.
2059         * config/i386/i386-c.c (ix86_target_macros_internal):
2060         Conditionally define __AVX2__.
2061         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2062         Define "core-avx2" processor alias.  Handle avx2 option.
2063         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2064         * config/i386/i386.h (TARGET_AVX2): New.
2065         * config/i386/i386.opt (mavx2): New.
2066         * doc/invoke.texi: Document -mavx2.
2067
2068 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
2069
2070         PR rtl-optimization/49890
2071         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2072         subclasses of class which is superset of a pressure class.
2073
2074 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2075             Igor Zamyatin <igor.zamyatin@intel.com>
2076
2077         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2078         with HOST_WIDE_INT for isa_flag.
2079         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2080         isa variables.
2081
2082         * config/i386/i386.c (ix86_target_string): Replace int with
2083         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
2084         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2085         (pta_flags): Removed.
2086         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2087         (pta): Use HOST_WIDE_INT on flags.
2088         (builtin_isa): Use HOST_WIDE_INT on isa.
2089         (ix86_add_new_builtins): Likewise.
2090         (def_builtin): Use HOST_WIDE_INT on mask.
2091         (def_builtin_const): Likewise.
2092         (builtin_description): Likewise.
2093
2094         * config/i386/i386.opt (ix86_isa_flags): Replace int with
2095         HOST_WIDE_INT.
2096         (ix86_isa_flags_explicit): Likewise.
2097         (x_ix86_isa_flags_explicit): Likewise.
2098
2099 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
2100
2101         PR rtl-optimization/50107
2102         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2103         (ira_hard_reg_in_set_p): New.
2104
2105         * ira-color.c (calculate_saved_nregs): New.
2106         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
2107         hard regs.
2108         (allocno_reload_assign, fast_allocation): Use
2109         ira_hard_reg_set_intersection_p instead of
2110         ira_hard_reg_not_in_set_p.
2111
2112         * ira.c (setup_reg_renumber): Use
2113         ira_hard_reg_set_intersection_p instead of
2114         ira_hard_reg_not_in_set_p.
2115         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2116         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2117
2118         * ira-costs.c (ira_tune_allocno_costs): Use
2119         ira_hard_reg_set_intersection_p instead of
2120         ira_hard_reg_not_in_set_p.
2121
2122 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2123             Igor Zamyatin <igor.zamyatin@intel.com>
2124
2125         * hwint.h (HOST_WIDE_INT_1): New.
2126
2127         * opt-functions.awk (switch_bit_fields): Initialize the
2128         host_wide_int field.
2129         (host_wide_int_var_name): New.
2130         (var_type_struct): Check and return HOST_WIDE_INT.
2131
2132         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2133
2134         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2135
2136         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
2137         check masks for HOST_WIDE_INT.
2138
2139         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2140         (option_enabled): Likewise.
2141         (get_option_state): Likewise.
2142
2143         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
2144         to HOST_WIDE_INT.
2145
2146 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2147             Marc Glisse  <marc.glisse@normalesup.org>
2148
2149         PR libstdc++-v3/1773
2150         * target.def (decl_mangling_context): New C++ hook.
2151         * doc/tm.texi: Regenerate.
2152         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2153         * config/sol2-protos.h: Group by source file.
2154         (solaris_cxx_decl_mangling_context): Declare.
2155         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2156         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2157         Use $<.
2158         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2159         Add sol2-stubs.o to extra_objs.
2160
2161 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
2162
2163         PR target/50009
2164         * stor-layout.c (update_alignment_for_field): Don't ICE on
2165         packed flexible array members if ms_bitfield_layout_p.
2166
2167         PR target/50092
2168         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2169         on the result before returning it.
2170
2171         PR debug/50017
2172         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2173         is a debug stmt, use location of the first non-debug stmt after it.
2174
2175 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2176
2177         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2178         (arm_size_rtx_costs): Likewise.
2179
2180 2011-08-18  Richard Guenther  <rguenther@suse.de>
2181
2182         * tree.h (tree_int_cst_msb): Remove.
2183         * tree.c (tree_int_cst_msb): Likewise.
2184         (tree_int_cst_sign_bit): Move from ...
2185         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2186
2187 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2188
2189         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2190         * doc/tm.texi: Regenerate.
2191         * target.def (rtx_costs): Add an opno parameter.
2192         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2193         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2194         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2195         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2196         * cse.c (COST_IN): Add an opno parameter.
2197         (notreg_cost): Likewise.  Update call to rtx_cost.
2198         (COST, fold_rtx): Update accordingly.
2199         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2200         * expmed.c (emit_store_flag): Likewise.
2201         * optabs.c (avoid_expensive_constant): Add an opno parameter.
2202         Update call to rtx_cost.
2203         (expand_binop_directly, expand_binop): Likewise.
2204         (expand_twoval_binop, prepare_cmp_insn): Likewise.
2205         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2206         (set_src_cost, get_full_set_src_cost): Update accordingly.
2207         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
2208         to target hook.
2209         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
2210         (default_adress_cost): Update calls to rtx_cost.
2211
2212         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2213         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2214         (arm_rtx_costs): Add an opno parameter.
2215         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2216         adjust any recursive rtx-cost calls.
2217         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2218         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2219         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2220         * config/cris/cris.c (cris_rtx_costs): Likewise.
2221         * config/frv/frv.c (frv_rtx_costs): Likewise.
2222         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2223         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2224         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2225         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2226         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2227         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2228         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2229         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2230         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2231         * config/mep/mep.c (mep_rtx_cost): Likewise.
2232         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2233         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2234         (mips_zero_extend_cost): Add an opno parameter.
2235         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2236         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2237         to rtx_cost.
2238         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2239         rtx-cost calls.
2240         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2241         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2242         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2243         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2244         (rs6000_debug_rtx_costs): Likewise.
2245         * config/s390/s390.c (s390_rtx_costs): Likewise.
2246         * config/score/score-protos.h (score_rtx_costs): Likewise.
2247         * config/score/score.c (score_rtx_costs): Likewise.
2248         * config/sh/sh.c (andcosts): Update call to rtx_cost.
2249         (sh_rtx_costs): Add an opno parameter.
2250         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2251         * config/spu/spu.c (spu_rtx_costs): Likewise.
2252         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2253         * config/v850/v850.c (v850_rtx_costs): Likewise.
2254         * config/vax/vax.c (vax_rtx_costs): Likewise.
2255         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2256
2257 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2258
2259         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2260         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2261         rtx_cost.
2262         * calls.c (precompute_register_parameters): Likewise.
2263         * combine.c (expand_compound_operation, make_extraction): Likewise.
2264         (force_to_mode, distribute_and_simplify_rtx): Likewise.
2265         * dse.c (find_shift_sequence): Likewise.
2266         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2267         * expr.c (compress_float_constant): Likewise.
2268         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2269         * gcse.c (want_to_gcse_p): Likewise.
2270         * ifcvt.c (noce_try_sign_mask): Likewise.
2271         * loop-doloop.c (doloop_optimize): Likewise.
2272         * loop-invariant.c (create_new_invariant): Likewise.
2273         * optabs.c (avoid_expensive_constant): Likewise.
2274         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2275         (try_replace_in_use, reload_cse_move2add): Likewise.
2276         * reload1.c (calculate_elim_costs_all_insns): Likewise.
2277         (note_reg_elim_costly): Likewise.
2278         * rtlanal.c (insn_rtx_cost): Likewise.
2279         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2280         * stmt.c (lshift_cheap_p): Likewise.
2281         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2282         * config/avr/avr.c (final_prescan_insn): Likewise.
2283         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2284         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2285
2286 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2287
2288         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2289         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2290         * cfgloopanal.c (seq_cost): Likewise.
2291         * loop-invariant.c (create_new_invariant): Likewise.
2292         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2293         (reload_cse_move2add): Use get_full_set_rtx_cost.
2294
2295 2011-08-18  Richard Guenther  <rguenther@suse.de>
2296
2297         * expr.c (get_inner_reference): Fix typo in last change.
2298
2299 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2300             Joseph Myers  <joseph@codesourcery.com>
2301
2302         PR tree-optimization/49963
2303         * hwint.c (absu_hwi): Define.
2304         * hwint.h (absu_hwi): Declare.
2305         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2306         of abs_hwi.
2307         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2308         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2309
2310 2011-08-18  Richard Guenther  <rguenther@suse.de>
2311
2312         * expr.c (get_inner_reference): Sign-extend the constant
2313         twos-complement offset before doing arbitrary precision
2314         arithmetic on it.
2315         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2316         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2317         to get_constraint_for_ptr_offset.
2318
2319 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2320
2321         PR target/50068
2322         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2323
2324 2011-08-17  Richard Guenther  <rguenther@suse.de>
2325
2326         * tree.h (convert_to_ptrofftype_loc): New function.
2327         (convert_to_ptrofftype): Define.
2328         * builtins.c (expand_builtin_bzero): Use size_type_node.
2329         (fold_builtin_bzero): Likewise.
2330         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2331         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2332         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2333         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2334         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2335         * fold-const.c (build_range_check): Negate using the original type.
2336         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2337         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2338         convert_to_ptrofftype.
2339         * gimplify.c (gimplify_self_mod_expr): Likewise.
2340         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2341         (graphite_create_new_loop_guard): Likewise.
2342         * graphite-sese-to-poly.c (my_long_long): Remove.
2343         (scop_ivs_can_be_represented): Adjust.
2344         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2345         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2346         * tree-loop-distribution.c (build_size_arg_loc): Use
2347         size_type_node.
2348         (generate_memset_zero): Simplify.
2349         * tree-mudflap.c: Use fold_convert, not convert.
2350         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2351         its own type.
2352         (determine_offset): Likewise for DR_STEP.
2353         (valid_initializer_p): Likewise.
2354         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2355         to an integer type of same size.
2356         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2357         to sizetype without need.
2358         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2359         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2360         * tree-ssa-loop-manip.c (create_iv): Likewise.
2361         (determine_exit_conditions): Adjust comment.
2362         * tree-ssa-pre.c (create_expression_by_pieces): Use
2363         convert_to_ptrofftype.
2364         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2365         * varasm.c (array_size_for_constructor): Compute using double_ints.
2366
2367 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2368
2369         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2370         when generating an integer result where possible.  Short-cut
2371         comparison against 0 also for QImode.
2372
2373 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2374
2375         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2376         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2377         prototype.
2378         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2379         (spu_legitimate_address_p): Do not check displacement if the base
2380         is an eliminable stack register.
2381
2382 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2383
2384         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2385         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2386         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2387         m32c_preferred_output_reload_class): Remove.
2388         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2389         Change rclass argument and return types to reg_class_t. Use
2390         reg_class_subset_p instead of class_sizes.
2391         (m32c_preferred_output_reload_class): Make static. Change rclass
2392         argument and return types to reg_class_t.
2393         (TARGET_PREFERRED_RELOAD_CLASS,
2394         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2395
2396 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2397
2398         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2399
2400 2011-08-16  Richard GUenther  <rguenther@suse.de>
2401
2402         PR tree-optimization/50082
2403         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2404         warnings here, instead of ...
2405         (ssa_forward_propagate_and_combine): ... here.
2406         (forward_propagate_into_comparison_1): Adjust.
2407         (forward_propagate_into_comparison): Likewise.
2408         (forward_propagate_into_gimple_cond): Likewise.
2409         (forward_propagate_into_cond): Likewise.
2410
2411 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2412
2413         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2414         instead of ggc_alloc_zone_vec_rtvec_def.
2415
2416 2011-08-16  Richard Guenther  <rguenther@suse.de>
2417
2418         * tree.h (ptrofftype_p): New helper function.
2419         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2420         offset verification.
2421         (verify_gimple_assign_binary): Likewise.
2422         * tree.c (build2_stat): Likewise.
2423         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2424         (reset_evolution_in_loop): Likewise.
2425         * tree-chrec.h (build_polynomial_chrec): Likewise.
2426
2427 2011-08-16  Liang Wang  <lwang1@marvell.com>
2428
2429         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2430         ggc_alloc_zone_vec_rtvec_def.
2431
2432 2011-08-16  Richard Guenther  <rguenther@suse.de>
2433
2434         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2435         helper factored out from ...
2436         (extract_range_from_binary_expr_1): ... here.  Re-structure
2437         to not glob handling too different tree codes.
2438
2439 2011-08-15  Richard Henderson  <rth@redhat.com>
2440
2441         PR middle-end/50006
2442         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2443         setting out to include allocate_stack named pattern as well.
2444         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2445         * stmt.c (expand_stack_restore): Likewise.
2446
2447 2011-08-15  Richard Guenther  <rguenther@suse.de>
2448
2449         PR middle-end/50082
2450         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2451         convert the modified operand to the other operand type.
2452         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2453         useless conversions stripped from comparison operands.
2454
2455 2011-08-15  Richard Guenther  <rguenther@suse.de>
2456
2457         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2458         (extract_range_from_unary_expr_1): Restructure.
2459
2460 2011-08-15  Richard Guenther  <rguenther@suse.de>
2461
2462         PR tree-optimization/50058
2463         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2464         copy matching.
2465
2466 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2467
2468         PR target/50022
2469         * config/arm/arm.c (output_move_double): Add 2 parameters
2470         to count the number of insns emitted and whether to emit or not.
2471         Use the flag to decide when to emit and count number of instructions
2472         that will be emitted.
2473         Handle case where output_move_double might be called for calculating
2474         lengths with an invalid constant.
2475         (arm_count_output_move_double_insns): Define.
2476         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2477         (output_move_double): Adjust prototype.
2478         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2479         output_move_double.
2480         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2481         for ce_count.
2482         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2483         ("*movdf_soft_insn"): Likewise.
2484         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2485         ("*cirrus_thumb2_movdi"): Likewise.
2486         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2487         ("*cirrus_movdf_hard_insn"): Likewise.
2488         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2489         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2490         ("mov<mode>_internal VMMX"): Likewise.
2491         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2492
2493 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2494
2495         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2496         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2497         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2498         for TARGET_ROUND.
2499
2500         (rint<mode>2): Simplify TARGET_ROUND check.
2501         (floor<mode>2): Ditto.
2502         (ceil<mode>2): Ditto.
2503         (btrunc<mode>2): Ditto.
2504
2505 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2506
2507         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2508         as mmix_preferred_output_reload_class.
2509
2510 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2511
2512         * PR target/49903
2513         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2514         (branch_unspec): New insn.
2515         (branch): Beauty farm.
2516         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2517         to be IF_THEN_ELSE.
2518         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2519         New static functions.
2520         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2521         Use CONST_INT_P.  Beauty.
2522
2523 2011-08-12  Richard Henderson  <rth@redhat.com>
2524
2525         PR rtl-opt/49994
2526         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2527         * sched-deps.c (init_deps): Clear it.
2528         (deps_analyze_insn): Consume it.
2529         (sched_analyze_insn): Fill it.
2530
2531 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2532
2533         PR target/48328
2534         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2535         for tbh instructions.
2536
2537 2011-08-12  Diego Novillo  <dnovillo@google.com>
2538
2539         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2540         (streamer_write_uhwi): Rename from lto_output_uleb128.
2541         (streamer_write_hwi): Rename from output_sleb128.
2542         (streamer_write_string): Rename from lto_output_string.
2543         (streamer_string_index): Rename from lto_string_index.
2544         (streamer_write_string_with_length): Rename from
2545         lto_output_string_with_length.
2546         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2547         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2548         (streamer_read_string): Rename from lto_input_string.
2549         (streamer_read_indexed_string): Rename from input_string_internal.
2550         (streamer_read_uhwi): Rename from lto_input_uleb128.
2551         (streamer_read_hwi): Rename from lto_input_sleb128.
2552         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2553         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2554         (streamer_write_enum): Rename from lto_output_enum.
2555         (streamer_read_enum): Rename from lto_input_enum.
2556         (streamer_write_record_start): Rename from output_record_start.
2557         (streamer_read_record_start): Rename from input_record_start.
2558         (streamer_write_bitpack): Rename from lto_output_bitpack.
2559         (streamer_read_bitpack): Rename from lto_input_bitpack.
2560         (streamer_write_char_stream): Rename from lto_output_1_stream.
2561         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2562         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2563         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2564         (streamer_read_string_cst): Rename from input_string_cst.
2565         (streamer_read_chain): Rename from lto_input_chain.
2566         (streamer_alloc_tree): Rename from lto_materialize_tree.
2567         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2568         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2569         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2570         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2571         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2572         (streamer_write_chain): Rename from lto_output_chain.
2573         (streamer_write_tree_header): Rename from lto_output_tree_header.
2574         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2575         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2576         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2577         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2578         (streamer_check_handled_ts_structures): Rename from
2579         check_handled_ts_structures.
2580         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2581         (streamer_tree_cache_insert_at): Rename from
2582         lto_streamer_cache_insert_at.
2583         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2584         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2585         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2586         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2587         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2588         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2589         (write_identifier): Rename from output_identifier.
2590         (write_ts_common_tree_pointers): Rename from
2591         lto_output_ts_common_tree_pointers.
2592         (write_ts_vector_tree_pointers): Rename from
2593         lto_output_ts_vector_tree_pointers.
2594         (write_ts_complex_tree_pointers): Rename from
2595         lto_output_ts_complex_tree_pointers.
2596         (write_ts_decl_minimal_tree_pointers): Rename from
2597         lto_output_ts_decl_minimal_tree_pointers.
2598         (write_ts_decl_common_tree_pointers): Rename from
2599         lto_output_ts_decl_common_tree_pointers.
2600         (write_ts_decl_non_common_tree_pointers): Rename from
2601         lto_output_ts_decl_non_common_tree_pointers.
2602         (write_ts_decl_with_vis_tree_pointers): Rename from
2603         lto_output_ts_decl_with_vis_tree_pointers.
2604         (write_ts_field_decl_tree_pointers): Rename from
2605         lto_output_ts_field_decl_tree_pointers.
2606         (write_ts_function_decl_tree_pointers): Rename from
2607         lto_output_ts_function_decl_tree_pointers.
2608         (write_ts_type_common_tree_pointers): Rename from
2609         lto_output_ts_type_common_tree_pointers.
2610         (write_ts_type_non_common_tree_pointers): Rename from
2611         lto_output_ts_type_non_common_tree_pointers.
2612         (write_ts_list_tree_pointers): Rename from
2613         lto_output_ts_list_tree_pointers.
2614         (write_ts_vec_tree_pointers): Rename from
2615         lto_output_ts_vec_tree_pointers.
2616         (write_ts_exp_tree_pointers): Rename from
2617         lto_output_ts_exp_tree_pointers.
2618         (write_ts_block_tree_pointers): Rename from
2619         lto_output_ts_block_tree_pointers.
2620         (write_ts_binfo_tree_pointers): Rename from
2621         lto_output_ts_binfo_tree_pointers.
2622         (write_ts_constructor_tree_pointers): Rename from
2623         lto_output_ts_constructor_tree_pointers.
2624         (write_ts_target_option): Rename from lto_output_ts_target_option.
2625         (write_ts_translation_unit_decl_tree_pointers): Rename from
2626         lto_output_ts_translation_unit_decl_tree_pointers.
2627         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2628         Rename from lto_streamer_cache_add_to_node_array.
2629         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2630         (record_common_node): Rename from lto_record_common_node.
2631
2632         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2633         declarations.
2634         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2635         function.
2636         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2637         unused function.
2638         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2639         (ipa-reference.o): Likewise.
2640         * lto-section-out.c: Include data-streamer.h.
2641         * ipa-reference.c: Include data-streamer.h.
2642
2643 2011-08-12  Nick Clifton  <nickc@redhat.com>
2644
2645         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2646         * doc/md.texi (cmpstrn): Note that the comparison stops if both
2647         fetched bytes are zero.
2648         (cmpstr): Likewise.
2649         (cmpmem): Note that the comparison does not stop if both of the
2650         fetched bytes are zero.
2651
2652 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
2653
2654         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2655         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2656         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2657         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2658         to integer_type_node.
2659         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2660         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2661         * builtins.c (expand_builtin_in): Ditto.
2662         (mathfn_built_in_1): Ditto.
2663         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2664         BUILT_IN_IFLOOR.
2665         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2666         BUILT_IN_IROUND.
2667         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2668         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2669         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2670
2671 2011-08-12  Richard Guenther  <rguenther@suse.de>
2672
2673         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2674
2675 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
2676
2677         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2678
2679 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2680
2681         * config/arm/arm.c (get_label_padding): New function.
2682         (create_fix_barrier, arm_reorg): Use it.
2683
2684 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2685
2686         PR target/49781
2687         * config/i386/i386.md (*lea_5_zext): New.
2688         (*lea_6_zext): Ditto.
2689         * config/i386/predicates.md (const_32bit_mask): New predicate.
2690         (lea_address_operand): Reject AND.
2691         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2692         const_32bit_mask immediate.
2693         (ix86_print_operand_address): Handle AND.
2694         (memory_address_length): Ditto.
2695
2696 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
2697             Brian Hackett  <bhackett1024@gmail.com>
2698
2699         * plugin.def: Add event for finish_decl.
2700         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2701         * c-decl.c (finish_decl): Invoke callbacks on above event.
2702         * doc/plugins.texi: Document above event.
2703
2704 2011-08-11  Richard Guenther  <rguenther@suse.de>
2705
2706         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2707         lookups, make looking through aggregate copies stronger.
2708
2709 2011-08-11  Richard Henderson  <rth@redhat.com>
2710
2711         PR bootstrap/50018
2712         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2713
2714 2011-08-11  Richard Guenther  <rguenther@suse.de>
2715
2716         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2717         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2718         (vrp_visit_stmt): Likewise.
2719
2720 2011-08-11  Richard Guenther  <rguenther@suse.de>
2721
2722         PR middle-end/50040
2723         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2724         load of the other piece with TREE_NO_WARNING.
2725         * tree-flow.h (warn_uninit): Adjust prototype.
2726         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2727         the base variable and the expression that is used separately.
2728         Properly query all TREE_NO_WARNING flags.
2729         (struct walk_data): Remove.
2730         (warn_uninitialized_var): Likewise.
2731         (warn_uninitialized_vars): Do not walk gimple pieces but simply
2732         look at all SSA uses of the statement.  Handle unused memory
2733         separately.
2734         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2735
2736 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2737
2738         * config/rx/rx.md (movsicc): Allow register to register transfers.
2739         (*movsicc): Likewise.
2740         (*stcc): Restrict this pattern to EQ and NE compares.
2741         (*stcc_reg): New pattern.  Works for any comparison but only for
2742         register transfers.
2743
2744 2011-08-11   Diego Novillo  <dnovillo@google.com>
2745
2746         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2747         Call stream_write_tree instead of output_record_start.
2748         (lto_output_ts_binfo_tree_pointers): Likewise.
2749
2750         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2751         Convert it to a macro.
2752         (stream_read_tree): Likewise.
2753
2754         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2755         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2756
2757         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2758         and tree_read_bitfields.
2759         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2760         (lto_write_tree): Call it.
2761         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2762         * streamer-hooks.h (struct streamer_hooks): Remove fields
2763         name, is_streamable and alloc_tree. Update all users.
2764         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2765         (lto_materialize_tree): ... here.
2766         Handle CALL_EXPR codes.
2767         Remove call to lto_streamer_cache_append.
2768         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2769         * tree-streamer.h (tree_read_bitfields): Declare.
2770
2771         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2772         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2773         * tree-streamer.h (stream_read_tree): New.  Replace all calls
2774         to lto_input_tree with it.
2775         (stream_write_tree): New.  Replace all calls to lto_output_tree,
2776         lto_output_tree_ref and lto_output_tree_or_ref with it.
2777         * lto-streamer-in.c (lto_read_tree): Inline code from
2778         lto_streamer_read_tree.
2779         (lto_input_tree): Move from tree-streamer-in.c.
2780         * lto-streamer-out.c (lto_output_tree_ref): Make static.
2781         Remove handling of NULL values for EXPR.
2782         Do not handle EXPRs that are not indexable.
2783         (lto_write_tree): Move from tree-streamer-out.c.
2784         Inline lto_streamer_write_tree.
2785         (lto_output_tree): Move from tree-streamer-out.c.
2786         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2787         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2788         (lto_preload_common_nodes): Likewise.
2789         Remove assertions and adjustments for nodes
2790         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2791         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2792         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2793         * lto-streamer.h (lto_input_tree): Declare.
2794         (lto_output_tree_ref): Remove.
2795         * streamer-hooks.h (struct streamer_hooks): Remove fields
2796         preload_common_nodes, indexable_with_decls_p,
2797         pack_value_fields, unpack_value_fields and output_tree_header.
2798         Update all users.
2799         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2800         (lto_input_tree_pointers): Likewise.
2801         (lto_read_tree): Move to lto-streamer-in.c.
2802         (lto_input_integer_cst): Make extern.
2803         (lto_get_pickled_tree): Likewise.
2804         (lto_get_builtin_tree): Likewise.
2805         (lto_input_tree): Move to lto-streamer-in.c.
2806         * tree-streamer-out.c (pack_value_fields): Make extern.
2807         (lto_output_tree_or_ref): Remove.  Replace all callers with
2808         calls to stream_write_tree.
2809         (lto_output_builtin_tree): Make extern.
2810         (lto_streamer_write_tree): Inline into lto_write_tree.
2811         (lto_output_tree_pointers): Make extern.
2812         (lto_output_tree_header): Likewise.
2813         (lto_output_integer_cst): Likewise.
2814         (lto_write_tree): Move to lto-streamer-out.c.
2815         (lto_output_tree): Likewise.
2816         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2817         (preload_common_nodes): Likewise.
2818         (lto_streamer_cache_create): Call it.
2819         * tree-streamer.h: Include streamer-hooks.h.
2820         (stream_write_tree): New.
2821         (stream_read_tree): New.
2822         (lto_input_tree): Remove.
2823         (lto_materialize_tree): Declare.
2824         (lto_input_tree_pointers): Declare.
2825         (lto_get_pickled_tree): Declare.
2826         (lto_get_builtin_tree): Declare.
2827         (lto_input_integer_cst): Declare.
2828         (lto_output_tree_header): Declare.
2829         (pack_value_fields): Declare.
2830         (lto_output_tree_pointers): Declare.
2831         (lto_output_integer_cst): Declare.
2832         (lto_output_builtin_tree): Declare.
2833
2834 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2835
2836         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2837         only if producer writes to the register given by regno.
2838
2839 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2840             Alexander Monakov  <amonakov@ispras.ru>
2841
2842         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2843         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2844         condition caching logic into ...
2845         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2846         attempt to use cache for instructions with zero luid.
2847         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2848         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2849
2850 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2851
2852         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2853         get_seqno_for_a_jump.  Update the caller.
2854         (get_seqno_by_succs): New.  Use it ...
2855         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2856         predecessors was not sufficient.
2857         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2858
2859 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2860
2861         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2862
2863 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2864
2865         * sel-sched-ir.h (register_unavailable_p): Declare.
2866         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2867         (set_unavailable_target_for_expr): ... here to properly test
2868         availability of a register.
2869         (speculate_expr): Ditto.
2870         * sel-sched.c (substitute_reg_in_expr): Ditto.
2871         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2872
2873 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2874
2875         * sel-sched.c (verify_target_availability): Fix usage of
2876         hard_regno_nregs.
2877
2878 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2879
2880         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2881         recognized by cannot_copy_insn_p hook and volatile instructions.
2882
2883 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2884
2885         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2886
2887 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2888
2889         * doc/md.texi (define_bypass): Say that the instruction names can
2890         be filename-style globs.
2891         * Makefile.in (FNMATCH_H): Define.
2892         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2893         * genattrtab.c: Include fnmatch.h.
2894         (bypass_list): Change field name from "insn" to "pattern".
2895         (gen_bypass_1): Update accordingly.
2896         (process_bypasses): Use fnmatch to check for matches between
2897         insn reservations and define_bypasses.
2898         * genautomata.c: Include fnmatch.h.
2899         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2900         and out_pattern respectively.
2901         (gen_bypass, insert_bypass): Update accordingly.
2902         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2903         (process_bypass): New functions.
2904         (process_decls): Use process_bypass.  Update after field name changes.
2905
2906 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2907
2908         PR target/49687
2909         * config/avr/avr.md (smulqi3_highpart): New insn.
2910         (umulqi3_highpart): New insn.
2911         (*subqi3.ashiftrt7): New insn.
2912         (smulhi3_highpart): New expander.
2913         (umulhi3_highpart): Nex expander.
2914         (*smulhi3_highpart_call): New insn.
2915         (*umulhi3_highpart_call): New insn.
2916         (extend_u): New code attribute.
2917         (extend_prefix): Rename code attribute to extend_su.
2918         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2919         widening QI/HI multiply.
2920
2921 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2922
2923         PR tree-optimization/50039
2924         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2925         that DEF_STMT has a stmt_vec_info.
2926
2927 2011-08-10  Richard Guenther  <rguenther@suse.de>
2928
2929         * tree.h (can_trust_pointer_alignment): Remove.
2930         * builtins.c (can_trust_pointer_alignment): Remove.
2931
2932 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2933
2934         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2935         vector conversion.
2936         (stv_conv): New enum for scalar_to_vector return type.
2937         (build_binary_op): Adjust.
2938         * doc/extend.texi: Description of scalar to vector expansion.
2939
2940 2011-08-10  Richard Guenther  <rguenther@suse.de>
2941
2942         * tree.h (get_pointer_alignment): Remove max-align argument.
2943         (get_object_alignment): Likewise.
2944         * builtins.c (get_object_alignment_1): Adjust.
2945         (get_object_alignment): Remove max-align argument.
2946         (get_pointer_alignment): Likewise.
2947         (expand_builtin_strlen): Adjust.
2948         (expand_builtin_memcpy): Likewise.
2949         (expand_builtin_mempcpy_args): Likewise.
2950         (expand_builtin_strncpy): Likewise.
2951         (expand_builtin_memset_args): Likewise.
2952         (expand_builtin_memcmp): Likewise.
2953         (expand_builtin_strcmp): Likewise.
2954         (expand_builtin_strncmp): Likewise.
2955         (get_builtin_sync_mem): Likewise.
2956         (fold_builtin_memset): Likewise.
2957         (fold_builtin_memory_op): Likewise.
2958         (expand_builtin_memory_chk): Likewise.
2959         * emit-rtl.c (get_mem_align_offset): Likewise.
2960         (set_mem_attributes_minus_bitpos): Likewise.
2961         * expr.c (expand_assignment): Likewise.
2962         (expand_expr_real_1): Likewise.
2963         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2964         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2965         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2966         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2967         * value-prof.c (gimple_stringops_transform): Likewise.
2968
2969 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2970
2971         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2972         * doc/tm.texi: Regenerate.
2973
2974 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2975
2976         PR target/29560
2977         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2978         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2979         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2980         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2981         shift target is unused.
2982
2983 2011-08-10  Richard Guenther  <rguenther@suse.de>
2984
2985         PR tree-optimization/49937
2986         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2987         using get_object_alignment_1.
2988
2989 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2990
2991         * config/i386/i386.c (ix86_emit_i387_round): New function.
2992         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2993         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2994         Use ix86_emit_i387_round to expand round function for i387 math.
2995         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2996         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2997
2998 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2999
3000         * config/sync.c: Move to ../libgcc.
3001         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3002         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3003         Remove.
3004
3005 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3006
3007         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3008         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3009         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3010         Change 'from' and 'to' arguments type to reg_class_t.
3011         (TARGET_REGISTER_MOVE_COST): Define.
3012
3013 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
3014
3015         PR target/50026
3016         Revert:
3017         PR rtl-optimization/49990
3018         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3019         ignore classes which can not change mode.
3020         (find_costs_and_classes): Ditto.
3021
3022 2011-08-09  Richard Guenther  <rguenther@suse.de>
3023
3024         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3025         information for ranges with only negative values.
3026         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3027         BIT_AND_EXPR handling to handle ranges with negative values.
3028
3029 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
3030
3031         * config/i386/i386.c: Remove traling spaces.
3032         * config/i386/sse.md: Likewise.
3033         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3034         (*fma_fmsub_<mode>): Likewise.
3035         (*fma_fnmadd_<mode>): Likewise.
3036         (*fma_fnmsub_<mode>): Likewise.
3037
3038 2011-08-09  Nick Clifton  <nickc@redhat.com>
3039
3040         * config/rx/rx.md: Disable extender peepholes at -O3.
3041
3042 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3043
3044         PR target/49781
3045         * config/i386/i386.md (reload_noff_load): New.
3046         (reload_noff_store): Ditto.
3047         * config/i386/i386.c (ix86_secondary_reload): Use
3048         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3049         double-word moves from/to non-offsetable addresses instead of
3050         generating XMM temporary.
3051
3052 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3053
3054         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3055
3056 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
3057
3058         PR tree-optimization/50014
3059         * tree-vect-loop.c (vectorizable_reduction): Get def type before
3060         calling vect_get_vec_def_for_stmt_copy ().
3061
3062 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
3063
3064         PR rtl-optimization/49990
3065         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3066         ignore classes which can not change mode.
3067         (find_costs_and_classes): Ditto.
3068
3069 2011-08-08  Richard Henderson  <rth@redhat.com>
3070
3071         PR middle-end/49990
3072         * config/i386/i386.c (ix86_expand_prologue): Call
3073         for SEH target gen_prologue_use instead of gen_blockage
3074         at prologue's end.
3075
3076 2011-08-08  Martin Jambor  <mjambor@suse.cz>
3077
3078         PR middle-end/49923
3079         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3080         memory alignment.
3081
3082 2011-08-08   Diego Novillo  <dnovillo@google.com>
3083
3084         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3085         (DATA_STREAMER_H): New.
3086         (GIMPLE_STREAMER_H): New.
3087         (TREE_STREAMER_H): New.
3088         (STREAMER_HOOKS_H): New.
3089         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3090         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3091         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3092         (data-streamer.o): New.
3093         (data-streamer-in.o): New.
3094         (data-streamer-out.o): New.
3095         (gimple-streamer-in.o): New.
3096         (gimple-streamer-out.o): New.
3097         (streamer-hooks.o): New.
3098         (tree-streamer.o): New.
3099         (tree-streamer-in.o): New.
3100         (tree-streamer-out.o): New.
3101         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3102         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3103         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3104         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3105         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3106         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3107         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3108         (ipa-inline-analysis.o): Likewise.
3109         (ipa-pure-const.o): Likewise.
3110         * data-streamer-in.c: New.
3111         * data-streamer-out.c: New.
3112         * data-streamer.c: New.
3113         * data-streamer.h: New.
3114         * gimple-streamer-in.c: New.
3115         * gimple-streamer-out.c: New.
3116         * gimple-streamer.h: New.
3117         * ipa-inline-analysis.c: Include data-streamer.h.
3118         * ipa-prop.c: Include data-streamer.h.
3119         * ipa-pure-const.c: Include data-streamer.h.
3120         * lto-cgraph.c: Include data-streamer.h.
3121         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3122         (lto_input_widest_uint_uleb128): Likewise.
3123         (lto_input_sleb128): Likewise.
3124         (bp_unpack_var_len_unsigned): Likewise.
3125         (bp_unpack_var_len_int): Likewise.
3126         * lto-section-out.c (lto_output_uleb128_stream): Move to
3127         data-streamer-out.c.
3128         (lto_output_widest_uint_uleb128_stream): Likewise.
3129         (lto_output_sleb128_stream): Likewise.
3130         (bp_pack_var_len_unsigned): Likewise.
3131         (bp_pack_var_len_int): Likewise.
3132         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3133         (struct string_slot): Remove.  Update all users.
3134         (lto_tag_check_set): Make extern.
3135         (lto_tag_check_range): Move to lto-streamer.h.
3136         (lto_tag_check): Likewise.
3137         (hash_string_slot_node): Remove.  Update all users.
3138         (eq_string_slot_node): Remove.  Update all users.
3139         (string_for_index): Move to data-streamer-in.c
3140         (input_string_internal): Likewise.
3141         (input_string_cst): Move to tree-streamer-in.c.
3142         (input_identifier): Likewise.
3143         (lto_input_string): Move to data-streamer-in.c
3144         (input_record_start): Move to data-streamer.h
3145         (canon_file_name): Use new definition of struct string_slot
3146         from data-streamer.h.  Set S_SLOT.LEN.
3147         (lto_input_location): Make extern.
3148         (lto_input_chain): Move to tree-streamer-in.c.
3149         (lto_init_eh): Make extern.
3150         (input_phi): Move to gimple-streamer-in.c.
3151         (input_gimple_stmt): Likewise.
3152         (input_bb): Likewise.
3153         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3154         (unpack_ts_real_cst_value_fields): Likewise.
3155         (unpack_ts_fixed_cst_value_fields): Likewise.
3156         (unpack_ts_decl_common_value_fields): Likewise.
3157         (unpack_ts_decl_wrtl_value_fields): Likewise.
3158         (unpack_ts_decl_with_vis_value_fields): Likewise.
3159         (unpack_ts_function_decl_value_fields): Likewise.
3160         (unpack_ts_type_common_value_fields): Likewise.
3161         (unpack_ts_block_value_fields): Likewise.
3162         (unpack_ts_translation_unit_decl_value_fields): Likewise.
3163         (unpack_value_fields): Likewise.
3164         (lto_materialize_tree): Likewise.
3165         (lto_input_ts_common_tree_pointers): Likewise.
3166         (lto_input_ts_vector_tree_pointers): Likewise.
3167         (lto_input_ts_complex_tree_pointers): Likewise.
3168         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3169         (lto_input_ts_decl_common_tree_pointers): Likewise.
3170         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3171         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3172         (lto_input_ts_field_decl_tree_pointers): Likewise.
3173         (lto_input_ts_function_decl_tree_pointers): Likewise.
3174         (lto_input_ts_type_common_tree_pointers): Likewise.
3175         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3176         (lto_input_ts_list_tree_pointers): Likewise.
3177         (lto_input_ts_vec_tree_pointers): Likewise.
3178         (lto_input_ts_exp_tree_pointers): Likewise.
3179         (lto_input_ts_block_tree_pointers): Likewise.
3180         (lto_input_ts_binfo_tree_pointers): Likewise.
3181         (lto_input_ts_constructor_tree_pointers): Likewise.
3182         (lto_input_ts_target_option): Likewise.
3183         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3184         (lto_input_tree_pointers): Likewise.
3185         (lto_get_pickled_tree): Likewise.
3186         (lto_get_builtin_tree): Likewise.
3187         (lto_read_tree): Likewise.
3188         (lto_input_integer_cst): Likewise.
3189         (lto_input_tree): Likewise.
3190         * lto-streamer-out.c: Include data-streamer.h,
3191         gimple-streamer.h and streamer-hooks.h.
3192         (struct string_slot): Move to data-streamer.h.
3193         (hash_string_slot_node): Likewise.
3194         (eq_string_slot_node): Likewise.
3195         (lto_string_index): Move to data-streamer-out.c.
3196         (lto_output_string_with_length): Likewise.
3197         (lto_output_string): Likewise.
3198         (output_string_cst): Move to tree-streamer-out.c.
3199         (output_identifier): Likewise.
3200         (output_zero): Move to data-streamer-out.c
3201         (output_uleb128): Likewise.
3202         (output_sleb128): Likewise.
3203         (output_record_start): Move to data-streamer.h
3204         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3205         (pack_ts_real_cst_value_fields): Likewise.
3206         (pack_ts_fixed_cst_value_fields): Likewise.
3207         (pack_ts_decl_common_value_fields): Likewise.
3208         (pack_ts_decl_wrtl_value_fields): Likewise.
3209         (pack_ts_decl_with_vis_value_fields): Likewise.
3210         (pack_ts_function_decl_value_fields): Likewise.
3211         (pack_ts_type_common_value_fields): Likewise.
3212         (pack_ts_block_value_fields): Likewise.
3213         (pack_ts_translation_unit_decl_value_fields): Likewise.
3214         (pack_value_fields): Likewise.
3215         (lto_output_chain): Likewise.
3216         (lto_output_ts_common_tree_pointers): Likewise.
3217         (lto_output_ts_vector_tree_pointers): Likewise.
3218         (lto_output_ts_complex_tree_pointers): Likewise.
3219         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3220         (lto_output_ts_decl_common_tree_pointers): Likewise.
3221         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3222         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3223         (lto_output_ts_field_decl_tree_pointers): Likewise.
3224         (lto_output_ts_function_decl_tree_pointers): Likewise.
3225         (lto_output_ts_type_common_tree_pointers): Likewise.
3226         (lto_output_ts_type_non_common_tree_pointers): Likewise.
3227         (lto_output_ts_list_tree_pointers): Likewise.
3228         (lto_output_ts_vec_tree_pointers): Likewise.
3229         (lto_output_ts_exp_tree_pointers): Likewise.
3230         (lto_output_ts_block_tree_pointers): Likewise.
3231         (lto_output_ts_binfo_tree_pointers): Likewise.
3232         (lto_output_ts_constructor_tree_pointers): Likewise.
3233         (lto_output_ts_target_option): Likewise.
3234         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3235         (lto_output_tree_pointers): Likewise.
3236         (lto_output_tree_header): Likewise.
3237         (lto_output_builtin_tree): Likewise.
3238         (lto_write_tree): Likewise.
3239         (lto_output_integer_cst): Likewise.
3240         (lto_output_tree): Likewise.
3241         (output_phi): Move to gimple-streamer-out.c.
3242         (output_gimple_stmt): Likewise.
3243         (output_bb): Likewise.
3244         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3245         (streamer_hooks): Move to streamer-hooks.c.
3246         (check_handled_ts_structures): Move to tree-streamer.c
3247         (lto_streamer_cache_add_to_node_array): Likewise.
3248         (lto_streamer_cache_insert_1): Likewise.
3249         (lto_streamer_cache_insert): Likewise.
3250         (lto_streamer_cache_insert_at): Likewise.
3251         (lto_streamer_cache_append): Likewise.
3252         (lto_streamer_cache_lookup): Likewise.
3253         (lto_streamer_cache_get): Likewise.
3254         (lto_record_common_node): Likewise.
3255         (lto_preload_common_nodes): Likewise.
3256         (lto_streamer_cache_create): Likewise.
3257         (lto_streamer_cache_delete): Likewise.
3258         (streamer_hooks_init): Move to streamer-hooks.c.
3259         * lto-streamer.h: Include diagnostic.h
3260         (struct output_block, struct lto_input_block,
3261         struct data_in, struct bitpack_d): Remove forward declarations.
3262         (struct bitpack_d): Move to data-streamer.h.
3263         (struct lto_streamer_cache_d): Move to tree-streamer.h.
3264         (struct streamer_hooks): Move to streamer-hooks.h.
3265         (bp_pack_var_len_unsigned): Move to data-streamer.h.
3266         (bp_pack_var_len_int): Likewise.
3267         (bp_unpack_var_len_unsigned): Likewise.
3268         (bp_unpack_var_len_int): Likewise.
3269         (lto_input_location): Declare.
3270         (lto_tag_check_set): Declare.
3271         (lto_init_eh): Declare.
3272         (lto_output_tree_ref): Declare.
3273         (lto_output_location): Declare.
3274         (bitpack_create): Move to data-streamer.h.
3275         (bp_pack_value): Likewise.
3276         (lto_output_bitpack): Likewise.
3277         (lto_input_bitpack): Likewise.
3278         (bp_unpack_value): Likewise.
3279         (lto_output_1_stream): Likewise.
3280         (lto_input_1_unsigned): Likewise.
3281         (lto_output_int_in_range): Likewise.
3282         (lto_input_int_in_range): Likewise.
3283         (bp_pack_int_in_range): Likewise.
3284         (bp_unpack_int_in_range): Likewise.
3285         (lto_output_enum): Likewise.
3286         (lto_input_enum): Likewise.
3287         (bp_pack_enum): Likewise.
3288         (bp_unpack_enum): Likewise.
3289         * streamer-hooks.c: New.
3290         * streamer-hooks.h: New.
3291         * tree-streamer-in.c: New.
3292         * tree-streamer-out.c: New.
3293         * tree-streamer.c: New.
3294         * tree-streamer.h: New.
3295
3296 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3297
3298         * gthr-posix95.h: Remove.
3299         * gthr.h [_PTHREADS95]: Remove.
3300         * configure.ac (enable_threads): Remove posix95.
3301         * configure: Regenerate.
3302         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3303
3304 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
3305
3306         PR target/49781
3307         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3308         SImode addresses.
3309         (ix86_print_operand_address): Handle zero-extended addresses.
3310         (memory_address_length): Add length of addr32 prefix for
3311         zero-extended addresses.
3312         (ix86_secondary_reload): Handle moves to/from double-word general
3313         registers from/to zero-extended addresses.
3314         * config/i386/predicates.md (lea_address_operand): Reject
3315         zero-extended operands.
3316
3317 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3318
3319         PR other/48007
3320         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3321
3322         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3323         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3324
3325         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3326         (_Unwind_Context_Reg_Val): Likewise.
3327         (_Unwind_Get_Unwind_Word): Likewise.
3328         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3329         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3330         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3331         for EXTENDED_CONTEXT_BIT.
3332         (__frame_state_for): Likewise.
3333         (uw_init_context_1): Likewise.
3334         (_Unwind_GetGR): Updated.
3335         (_Unwind_SetGR): Likewise.
3336         (_Unwind_GetGRPtr): Likewise.
3337         (_Unwind_SetGRPtr): Likewise.
3338         (_Unwind_SetGRValue): Likewise.
3339         (_Unwind_GRByValue): Likewise.
3340         (uw_install_context_1): Likewise.
3341
3342         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3343         ASSUME_EXTENDED_UNWIND_CONTEXT.
3344         * doc/tm.texi: Regenerated.
3345
3346 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3347
3348         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3349
3350 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3351
3352         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3353         Linux/GNU-specific.
3354         (DEC Alpha Options, -mtune): Likewise.
3355         (MIPS Options, -march): native is supported on IRIX.
3356
3357 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3358
3359         * config/sparc/driver-sparc.c: New file.
3360         * config/sparc/x-sparc: New file.
3361         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3362         * config/sparc/sparc.opt (native): New value for enum processor_type.
3363         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3364         * config/sparc/sparc.c (sparc_option_override): Abort if
3365         PROCESSOR_NATIVE gets here.
3366         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3367         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3368         DRIVER_SELF_SPECS): Define.
3369         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3370         (SPARC Options, -mtune): Likewise.
3371         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3372         Substitute result.
3373         * configure: Regenerate.
3374         * Makefile.in (EXTRA_GCC_LIBS): Set.
3375         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3376         (cpp$(exeext)): Likewise.
3377
3378 2011-08-08  Richard Guenther  <rguenther@suse.de>
3379
3380         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3381         split out from ...
3382         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3383         by composition.
3384
3385 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3386
3387         PR tree-optimization/50005
3388         * ipa-inline-analysis (remap_predicate): Add cast to
3389         silence signed/unsigned comparison warning.
3390
3391 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3392
3393         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3394         Print the current ii.
3395         (sms_schedule_by_order): Reduce whitespace in dump line.
3396
3397 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3398
3399         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3400         and one loop for successors.  Fix upper bound of memory range.
3401
3402 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         PR target/50001
3405         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3406         (TARGET_INSTANTIATE_DECLS): New define.
3407
3408 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3409             Mikael Morin   <mikael.morin@sfr.fr>
3410
3411         * Makefile.in (INCLUDES_FOR_TARGET): New.
3412         (LIBGCC2_CFLAGS): Use it.
3413         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3414
3415 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3416
3417         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3418         frame->save_regs_using_mov calculation.
3419
3420 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3421
3422         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3423         * config/i386/sse.md (castmode): New mode attribute.
3424         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3425         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3426
3427 2011-08-05  Jan Hubicka  <jh@suse.cz>
3428
3429         PR middle-end/49494
3430         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3431
3432 2011-08-05  Jan Hubicka  <jh@suse.cz>
3433
3434         PR middle-end/49500
3435         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3436         handle aliases.
3437         (create_emultls_var):New function.
3438         (ipa_lower_emutls): Handle aliases correctly.
3439
3440 2011-08-05  Jan Hubicka  <jh@suse.cz>
3441
3442         PR middle-end/49735
3443         * ipa-inline.c (recursive_inlining): Look through aliases.
3444
3445 2011-08-05  Jason Merrill  <jason@redhat.com>
3446
3447         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3448         declarations to beginning of function.
3449
3450 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3451
3452         PR rtl-optimization/49900
3453         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3454         ensure basic blocks stay in the same order.
3455
3456 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3457
3458         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3459         store_bit_field.
3460         (s390_expand_atomic): Same.
3461
3462 2011-08-05  Richard Henderson  <rth@redhat.com>
3463
3464         PR rtl-opt/49977
3465         * dwarf2cfi.c (scan_insn_after): Split out of ...
3466         (scan_trace): ... here.  Correctly place notes wrt sequences.
3467
3468 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3469             Richard Henderson  <rth@redhat.com>
3470
3471         PR rtl-opt/49982
3472         * expr.c (fixup_args_size_notes): Look through no-op moves.
3473
3474 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3475
3476         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3477         of "m" for operand 0.  Add type and mode attribute.
3478         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3479         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3480         constraint instead of "o" for opreand 1.
3481         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3482         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3483         operand 0, alternative 4.
3484         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3485
3486 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3487
3488         * config/i386/predicates.md (lea_address_operand): Rename from
3489         no_seg_address_operand.
3490         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3491         (*lea_1_zext): Ditto.
3492         (*lea_2): Ditto.
3493         (*lea_2_zext): Ditto.
3494
3495 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3496
3497         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3498         parts.base and parts.index.
3499         * config/i386/predicates.md (aligned_operand): Ditto.
3500         (cmpxchg8b_pic_memory_operand): Ditto.
3501
3502 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3503
3504         * config/soft-fp: Move to ../libgcc.
3505         * Makefile.in (SFP_MACHINE): Remove.
3506         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3507         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3508         * config/arm/t-arm-softfp: Move to
3509         ../libgcc/config/arm/t-softfp.
3510         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3511         * config/c6x/t-c6x-softfp: Remove.
3512         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3513         * config/i386/t-fprules-softfp: Move to
3514         ../libgcc/config/t-softfp-tf.
3515         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3516         * config/ia64/t-fprules-softfp: Remove.
3517         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3518         * config/lm32/t-fprules-softfp: Remove.
3519         * config/moxie/sfp-machine.h: Remove.
3520         * config/moxie/t-moxie-softfp: Remove.
3521         * config/rs6000/darwin-ldouble-format: Move to
3522         ../libgcc/config/rs6000/ibm-ldouble-format.
3523         * config/rs6000/darwin-ldouble.c: Move to
3524         ../libgcc/config/rs6000/ibm-ldouble.c
3525         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3526         * config/rs6000/libgcc-ppc64.ver: Likewise.
3527         * config/rs6000/sfp-machine.h: Likewise.
3528         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3529         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3530         (LIB2FUNCS_EXTRA): Remove.
3531         (TARGET_LIBGCC2_CFLAGS): Remove.
3532         * config/rs6000/t-aix52: Likewise
3533         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3534         $(srcdir)/config/rs6000/darwin-ldouble.c.
3535         (SHLIB_MAPFILES): Remove.
3536         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3537         $(srcdir)/config/rs6000/darwin-ldouble.c.
3538         * config/rs6000/t-fprules-softfp: Move to
3539         ../libgcc/config/t-softfp-sfdf.
3540         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3541         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3542         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3543         $(srcdir)/config/rs6000/darwin-ldouble.c.
3544         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3545         * config/score/t-score-softfp: Remove.
3546         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3547         soft-fp/t-softfp from tmake_file.
3548         (arm*-*-uclinux*): Likewise.
3549         (arm*-*-ecos-elf): Likewise.
3550         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3551         (arm*-*-rtems*): Likewise.
3552         (arm*-*-elf): Likewise.
3553         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3554         tmake_file.
3555         (moxie-*-uclinux*): Likewise.
3556         (moxie-*-rtems*): Likewise.
3557         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3558         tmake_file.
3559         (lm32-*-rtems*): Likewise.
3560         (lm32-*-uclinux*): Likewise.
3561         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3562         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3563         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3564         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3565         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3566         tmake_file.
3567         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3568         tmake_file.
3569         (tic6x-*-uclinux): Likewise.
3570         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3571         soft-fp/t-softfp from tmake_file.
3572         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3573         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3574         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3575         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3576         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3577
3578 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3579
3580         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3581         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3582         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3583         TPBIT, TPBIT_FUNCS.
3584         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3585         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3586         Remove.
3587         * config/arm/t-vxworks: Likewise.
3588         * config/arm/t-wince-pe: Likewise.
3589         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3590         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3591         * config/bfin/t-bfin-elf: Likewise.
3592         * config/bfin/t-bfin-linux: Likewise.
3593         * config/bfin/t-bfin-uclinux: Likewise.
3594         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3595         Remove.
3596         * config/fr30/t-fr30: Likewise.
3597         * config/frv/t-frv: Likewise.
3598         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3599         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3600         * config/m32c/t-m32c: Likewise.
3601         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3602         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3603         * config/mcore/t-mcore: Likewise.
3604         * config/mep/t-mep: Likewise.
3605         * config/microblaze/t-microblaze: Likewise.
3606         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3607         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3608         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3609         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3610         * config/mn10300/t-linux: Remove.
3611         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3612         * config/pdp11/t-pdp11: Likewise.
3613         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3614         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3615         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3616         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3617         * config/rs6000/t-aix52: Likewise.
3618         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3619         $(srcdir)/config/rs6000/ppc64-fp.c.
3620         * config/rs6000/t-fprules-fpbit: Remove.
3621         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3622         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3623         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3624         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3625         * config/sparc/t-elf: Likewise.
3626         * config/sparc/t-leon: Likewise.
3627         * config/sparc/t-leon3: Likewise.
3628         * config/spu/t-spu-elf: Likewise.
3629         (DPBIT_FUNCS): Remove.
3630         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3631         * config/v850/t-v850: Likewise.
3632         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3633         (avr-*-*): Likewise.
3634         (h8300-*-rtems*): Set libgcc_tm_file.
3635         (h8300-*-elf*): Likewise.
3636         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3637         tmake_file.
3638         (powerpc-*-eabisim*): Likewise.
3639         (powerpc-*-elf*): Likewise.
3640         (powerpc-*-eabialtivec*): Likewise.
3641         (powerpc-xilinx-eabi*): Likewise.
3642         (powerpc-*-eabi*): Likewise.
3643         (powerpc-*-rtems*): Likewise.
3644         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3645         (powerpcle-*-elf*): Likewise.
3646         (powerpcle-*-eabisim*): Likewise.
3647         (powerpcle-*-eabi*): Likewise.
3648         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3649         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3650         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3651         Remove.
3652
3653 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3654
3655         * Makefile.in (UNWIND_H): Remove.
3656         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3657         ../libgcc/Makefile.in.
3658         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3659         (LIBUNWINDDEP): Remove.
3660         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3661         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3662         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3663         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3664         Don't copy $(UNWIND_H).
3665         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3666         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3667         * aclocal.m4: Regenerate.
3668         * configure: Regenerate.
3669         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3670         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3671         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3672         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3673         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3674         * config/arm/libunwind.S, config/arm/pr-support.c,
3675         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3676         ../libgcc/config/arm.
3677         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3678         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3679         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3680         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3681         ($(T)frvend$(objext)): Likewise.
3682         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3683         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3684         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3685         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3686         ../libgcc/config/ia64.
3687         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3688         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3689         * config/ia64/t-vms (LIB2ADDEH): Remove.
3690         * config/ia64/vms.h (UNW_IVMS_MODE,
3691         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3692         * config/picochip/t-picochip (LIB2ADDEH): Remove.
3693         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3694         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3695         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3696         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3697         $(srcdir)/../libgcc to refer to unwinder sources.
3698         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3699         * config/t-darwin (LIB2ADDEH): Remove.
3700         * config/t-freebsd (LIB2ADDEH): Remove.
3701         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3702         * config/t-libunwind-elf: Move to ../libgcc/config.
3703         * config/t-linux (LIB2ADDEH): Remove.
3704         * config/t-sol2 (LIB2ADDEH): Remove.
3705         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3706         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3707
3708 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
3709
3710         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3711
3712         * doc/invoke.texi: Document core-avx-i.
3713
3714 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3715
3716         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3717
3718 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
3719
3720         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3721         result of multiple results reduction when extracting the final
3722         value using scalar code.
3723
3724 2011-08-05  Richard Guenther  <rguenther@suse.de>
3725
3726         PR tree-optimization/49984
3727         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3728
3729 2011-08-05  Richard Guenther  <rguenther@suse.de>
3730
3731         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3732         return true for constant integer ranges.
3733         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3734         BIT_IOR_EXPR handling.
3735
3736 2011-08-04  Kai Tietz  <ktietz@redhat.com>
3737
3738         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3739         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3740
3741 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
3742
3743         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3744         pattern def statement, and its access macro.
3745         (NUM_PATTERNS): Set to 5.
3746         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3747         pattern def statement.
3748         (vect_transform_loop): Likewise.
3749         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3750         function vect_recog_over_widening_pattern ().
3751         (vect_operation_fits_smaller_type): New function.
3752         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3753         Likewise.
3754         (vect_pattern_recog_1): Move the code that marks pattern
3755         statements to vect_mark_pattern_stmts (), and call it.  Update
3756         documentation.
3757         * tree-vect-stmts.c (vect_supportable_shift): New function.
3758         (vect_analyze_stmt): Handle pattern def statement.
3759         (new_stmt_vec_info): Initialize pattern def statement.
3760
3761 2011-08-04  Richard Henderson  <rth@redhat.com>
3762
3763         PR target/49964
3764         * config/i386/i386.c (ix86_expand_call): Don't create nested
3765         PARALLELs for TARGET_VZEROUPPER.
3766         (ix86_split_call_vzeroupper): Fix extraction of the original call.
3767         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3768         recognize nested PARALLELs.
3769         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3770         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3771         *sibcall_value_pop_vzeroupper): Likewise.
3772
3773 2011-08-04  Richard Henderson  <rth@redhat.com>
3774
3775         PR middle-end/49968
3776         * calls.c (expand_call): Use fixup_args_size_notes for
3777         emit_stack_restore.
3778         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3779         in non-standard modes.
3780
3781 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3782
3783         * gcc.c (self_spec): New variable.
3784         (static_specs): Add self_spec.
3785         (main): Call do_self_spec on "self_spec" specs after reading
3786         user specs files.  Move compare_debug handling right after that.
3787
3788 2011-08-04  Richard Guenther  <rguenther@suse.de>
3789
3790         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3791         (value_range_nonnegative_p): New function.
3792         (ssa_name_nonnegative_p): Use it.
3793         (value_range_constant_singleton): New function.
3794         (op_with_constant_singleton_value_range): Use it.
3795         (extract_range_from_binary_expr_1): New function, split out from ...
3796         (extract_range_from_binary_expr): ... this.  Remove fallback
3797         constant folding done here.
3798
3799 2011-08-04  Richard Guenther  <rguenther@suse.de>
3800
3801         PR tree-optimization/49806
3802         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3803         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3804         a new statement for a final conversion to bool.
3805
3806 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3807
3808         * gengtype-state.c: Include "bconfig.h" if
3809         GENERATOR_FILE is defined, "config.h" otherwise.
3810         * gengtype.c: Likewise.
3811         * gengtype-lex.l: Likewise.
3812         * gengtype-parse.c: Likewise.
3813         * Makefile.in (gengtype-lex.o-warn): New variable.
3814         (plugin_resourcesdir): Likewise.
3815         (plugin_bindir): Likewise.
3816         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3817         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3818         (native): Depend on gengtype$(exeext) is $enable_plugin
3819         is set to "yes".
3820         (gtype.state): Depend on s-gtype. Use temporary file.
3821         (gengtype-lex.o): New rule.
3822         (gengtype-parse.o): Likewise.
3823         (gengtype-state.o): Likewise.
3824         (gengtype$(exeext)): Likewise.
3825         (install-gengtype): Likewise.
3826         (gengtype.o): Likewise.
3827         (build/gengtype.o): Depend on version.h.
3828         (build/gengtype-state): Depend on double-int.h, version.h,
3829         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3830         (install-plugin): Depend on install-gengtype.
3831
3832 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3833
3834         PR middle-end/49905
3835         * tree.h (init_attributes): New prototype.
3836         * attribs.c (init_attributes): No longer static.
3837
3838 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3839
3840         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3841         maybe_suffix.
3842
3843 2011-08-03   David Li  <davidxl@google.com>
3844
3845         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3846         outgoing edge counts after inlining.
3847
3848 2011-08-03   David Li  <davidxl@google.com>
3849
3850         * profile.c (compute_branch_probabilities): Compute
3851         function frequency after profile annotation.
3852
3853 2011-08-04  Alan Modra  <amodra@gmail.com>
3854
3855         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3856         use_backchain_to_restore_sp initialisation.
3857         (rs6000_legitimate_offset_address_p): Simplify offset test.
3858
3859 2011-08-03  Richard Henderson  <rth@redhat.com>
3860
3861         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3862         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3863         (UNSPECV_NOP): New.
3864
3865 2011-08-03  Richard Henderson  <rth@redhat.com>
3866
3867         PR target/34888
3868         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3869
3870 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3871
3872         PR tree-optimization/49948
3873         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3874
3875 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3876
3877         * config/m32c/m32c.c (class_sizes): Remove.
3878         (reduce_class): Change arguments and return type to reg_class_t.
3879         Change type cc var to HARD_REG_SET. Change type best var to
3880         reg_class_t. Change type best_size var to unsigned int. Remove
3881         initialization class_sizes var. Use reg_class_size array instead
3882         of class_sizes. Use reg_class_contents array instead
3883         of class_contents.
3884
3885 2011-08-03  Richard Guenther  <rguenther@suse.de>
3886
3887         PR middle-end/49958
3888         * fold-const.c (fold_binary_loc): Only associate
3889         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3890         overflow wraps.
3891
3892 2011-08-03  Alan Modra  <amodra@gmail.com>
3893
3894         PR rtl-optimization/49941
3895         * jump.c (mark_jump_label): Comment.
3896         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3897         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3898         (mark_used_flags): Don't mark RETURN.
3899
3900 2011-08-03  Richard Guenther  <rguenther@suse.de>
3901
3902         PR tree-optimization/49938
3903         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3904         deal with a POLYNOMIAL_CHREC.
3905
3906 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3907
3908         * modulo-sched.c (calculate_stage_count,
3909         calculate_must_precede_follow, get_sched_window,
3910         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3911         declaration.
3912         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3913         New functions.
3914         (reset_sched_times): Call update_node_sched_params.
3915         (sms_schedule): Call optimize_sc.
3916         (get_sched_window): Change function arguments.
3917         (sms_schedule_by_order): Update call to get_sched_window.
3918         Call set_must_precede_follow.
3919         (calculate_stage_count): Add function argument.
3920
3921 2011-08-02  Richard Henderson  <rth@redhat.com>
3922
3923         PR target/49864
3924         PR target/49879
3925         * reg-notes.def (REG_ARGS_SIZE): New.
3926         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3927         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3928         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3929         different stack levels.
3930         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3931         (maybe_move_args_size_note): New.
3932         (combine_stack_adjustments_for_block): Use it.
3933         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3934         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3935         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3936         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3937         (cur_cfa): New.
3938         (queued_args_size): Remove.
3939         (add_cfi_args_size): Assert size is non-negative.
3940         (stack_adjust_offset, dwarf2out_args_size): Remove.
3941         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3942         (notice_args_size, notice_eh_throw): New.
3943         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3944         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3945         (dwarf2out_frame_debug_cfa_offset): Likewise.
3946         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3947         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3948         (change_cfi_row): Don't emit args_size.
3949         (maybe_record_trace_start_abnormal): Split out from ...
3950         (maybe_record_trace_start): Here.  Set args_size_undefined.
3951         (create_trace_edges): Update to match.
3952         (scan_trace): Handle REG_ARGS_SIZE.
3953         (connect_traces): Connect args_size between EH insns.
3954         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3955         * explow.c (suppress_reg_args_size): New.
3956         (adjust_stack_1): Split out from ...
3957         (adjust_stack): ... here.
3958         (anti_adjust_stack): Use it.
3959         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3960         * expr.c (mem_autoinc_base): New.
3961         (fixup_args_size_notes): New.
3962         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3963         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3964         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3965         * reload1.c (reload_as_needed): Likewise.
3966         * rtl.h (fixup_args_size_notes): Declare.
3967
3968 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3969
3970         PR bootstrap/49914
3971         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3972         of abs.
3973         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3974         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3975
3976 2011-08-02  Richard Henderson  <rth@redhat.com>
3977
3978         * config/h8300/h8300.c (push, pop): Return the insn.
3979         (h8300_swap_into_er6): Generate correct unwind info.
3980         (h8300_swap_out_of_er6): Likewise.
3981         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3982         complex cfa expression.
3983         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3984
3985 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3988
3989 2011-08-02  Richard Henderson  <rth@redhat.com>
3990
3991         PR target/49878
3992         * config/h8300/h8300.c (h8300_move_ok): New.
3993         * config/h8300/h8300-protos.h: Declare it.
3994         * config/h8300/h8300.md (P): New mode iterator.
3995         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3996         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3997         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3998         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3999         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4000         and pushqi1_h8300hs_normal; use PRE_MODIFY and
4001         register_no_sp_elim_operand.
4002         (*pushhi1_h8300hs_<P>): Similarly.
4003         (pushqi1, pushhi1, pushhi1_h8300): Remove.
4004         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4005
4006 2011-08-02  Richard Henderson  <rth@redhat.com>
4007
4008         PR target/49881
4009         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4010
4011 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
4012
4013         * c-parser.c (enum c_parser_prec): New enum, moved from within
4014         c_parser_binary_expression.
4015         (c_parser_binary_expression): Add PREC argument.  Stop parsing
4016         if operator has lower or equal precedence than PREC.
4017         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4018         callers.
4019         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4020         Adjust c_finish_omp_atomic caller.
4021         (c_parser_omp_taskyield): New function.
4022         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4023         (c_parser_omp_clause_name): Handle final and mergeable clauses.
4024         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4025         functions.
4026         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4027         and PRAGMA_OMP_CLAUSE_MERGEABLE.
4028         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4029         (c_parser_omp_clause_reduction): Handle min and max.
4030         * c-typeck.c (c_finish_omp_clauses): Don't complain about
4031         const qualified predetermined vars in firstprivate clause.
4032         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4033         Handle MIN_EXPR and MAX_EXPR.
4034         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4035         and OMP_CLAUSE_MERGEABLE.
4036         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4037         and OMP_ATOMIC_CAPTURE_NEW.
4038         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4039         OMP_CLAUSE_MERGEABLE.
4040         (omp_clause_code_name): Likewise.
4041         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4042         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4043         and OMP_CLAUSE_MERGEABLE.
4044         (OMP_CLAUSE_FINAL_EXPR): Define.
4045         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4046         OMP_CLAUSE_MERGEABLE.
4047         (expand_task_call): Likewise.
4048         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4049         (expand_omp_atomic_fetch_op): Handle cases where old or new
4050         value is needed afterwards.
4051         (expand_omp_atomic): Call expand_omp_atomic_load resp.
4052         expand_omp_atomic_store.
4053         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4054         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4055         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4056         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4057         * tree-nested.c (convert_nonlocal_omp_clauses,
4058         convert_local_omp_clauses): Likewise.
4059         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4060         OMP_ATOMIC_CAPTURE_NEW): New.
4061         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4062         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4063         New inlines.
4064         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4065         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4066         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4067
4068 2011-08-02  Kai Tietz  <ktietz@redhat.com>
4069
4070         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4071         boolean-type.
4072         (ssa_forward_propagate_and_combine): Interprete result of
4073         forward_propagate_comparison.
4074         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4075         boolean-typed operands for comparisons.
4076
4077 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
4078
4079         * config/avr/libgcc.S: Gather related function in the
4080         same input section.
4081         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4082         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4083         references.
4084         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4085         __udivmodsi4, __divmodsi4, __prologue_saves__,
4086         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4087         __do_copy_data, __do_clear_bss, __do_global_ctors,
4088         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4089
4090 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
4091
4092         PR target/47766
4093         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4094         (stack_protect_test): The pattern compares ptr_mode value.
4095
4096 2011-08-02  Alan Modra  <amodra@gmail.com>
4097
4098         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4099         note for save_LR_around_toc_setup sequence.
4100
4101 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4102
4103         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4104
4105 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4106             Joseph Myers  <joseph@codesourcery.com>
4107
4108         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4109         * hwint.c: Include diagnostic-core.h.
4110         (abs_hwi): New.
4111         (gcd): Moved here...
4112         (pos_mul_hwi): New.
4113         (mul_hwi): New.
4114         (least_common_multiple): Moved here...
4115         * hwint.h (gcd): ... from here.
4116         (least_common_multiple): ... from here.
4117         (HOST_WIDE_INT_MIN): New.
4118         (HOST_WIDE_INT_MAX): New.
4119         (abs_hwi): Declared.
4120         (gcd): Declared.
4121         (pos_mul_hwi): Declared.
4122         (mul_hwi): Declared.
4123         (least_common_multiple): Declared.
4124         * omega.c (check_pos_mul): Removed.
4125         (check_mul): Removed.
4126         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4127         mul_hwi instead of check_mul.
4128
4129 2011-08-01  Richard Henderson  <rth@redhat.com>
4130
4131         PR target/49881
4132         * config/avr/avr.h (PUSH_ROUNDING): New.
4133         * config/avr/avr.md (pushqi1): Rename from *pushqi.
4134         (*pushhi, *pushsi, *pushsf): Remove.
4135         (MPUSH): New mode iterator.
4136         (push<MPUSH>1): New expander.
4137
4138 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
4139
4140         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4141         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4142         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4143         mmix_preferred_output_reload_class): Remove.
4144         * config/mmix/mmix.c (mmix_preferred_reload_class,
4145         mmix_preferred_output_reload_class): Make static. Change rclass
4146         argument and return type to reg_class_t.
4147         (TARGET_PREFERRED_RELOAD_CLASS,
4148         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4149
4150 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4151
4152         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4153         handling.
4154
4155 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4156
4157         PR target/47766
4158         * config/i386/i386.md (PTR): New.
4159         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4160         (stack_protect_test): Likewise.
4161         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4162         (stack_tls_protect_set_<mode>): Likewise.
4163         (stack_tls_protect_test_<mode>): Likewise.
4164
4165 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
4166
4167         PR target/49927
4168         * config/i386/i386.c (ix86_address_subreg_operand): New.
4169         (ix86_decompose_address): Use ix86_address_subreg_operand.
4170         (ix86_legitimate_address_p): Do not assert that subregs satisfy
4171         register_no_elim_operand in DImode.
4172
4173 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
4174
4175         PR tree-optimization/49926
4176         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4177         in a chain doesn't have uses both inside and outside the loop.
4178
4179 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4180
4181         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4182         * config/avr/avr-devices.c (avr_mcu_types): Use it.
4183         * config/avr/avr-mcus.def (AVR_MCU): Use it.
4184         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4185         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4186         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4187         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4188         to detect if XJMP must not be skipped.
4189
4190 2011-08-02  Alan Modra  <amodra@gmail.com>
4191
4192         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4193         Delete.
4194         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4195         (rs6000_emit_prologue): Don't prematurely return when
4196         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
4197         save_toc_in_prologue case.
4198         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4199         calls_alloca.
4200
4201 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4202
4203         * config/avr/avr-devices.c: Delete SVN property svn:executable.
4204         * config/avr/predicates.md: Ditto.
4205         * config/avr/driver-avr.c: Ditto.
4206         * config/avr/genopt.sh: Set SVN property svn:executable to *.
4207
4208 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4209
4210         * calls.c (emit_library_call_value_1): Declare size only if
4211         BLOCK_REG_PADDING is defined.
4212
4213 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
4214
4215         PR target/49547
4216         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4217         (x86_64-*-*): Likewise.
4218         * config/i386/i386.opt (mlzcnt): New.
4219         * config/i386/abmintrin.h: File removed.
4220         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4221         * config/i386/lzcntintrin.h: ... here.  New file.
4222         (__lzcnt): Rename to ...
4223         (__lzcnt32): ... this.
4224         * config/i386/bmiintrin.h (head): Update copyright year.
4225         (__lzcnt_u16): Removed.
4226         (__lzcnt_u32): Likewise.
4227         (__lzcnt_u64): Likewise.
4228         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4229         is defined, remove abmintrin.h.
4230         * config/i386/cpuid.h (bit_LZCNT): New.
4231         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4232         LZCNT feature.
4233         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4234         __LZCNT__ if needed.
4235         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4236         (ix86_option_override_internal): Handle LZCNT option.
4237         (ix86_valid_target_attribute_inner_p): Likewise.
4238         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4239         * config/i386/i386.h (TARGET_LZCNT): New.
4240         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4241         * config/i386/i386.md (clz<mode>2): Update insn constraint.
4242         (clz<mode>2_lzcnt): Likewise.
4243         * doc/invoke.texi: Mention -mlzcnt option.
4244         * doc/extend.texi: Likewise.
4245
4246 2011-08-01  Julian Brown  <julian@codesourcery.com>
4247
4248         * configure.ac (fixed-point): Add ARM support.
4249         * configure: Regenerate.
4250         * config/arm/arm.c (arm_fixed_mode_set): New struct.
4251         (arm_set_fixed_optab_libfunc): New.
4252         (arm_set_fixed_conv_libfunc): New.
4253         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4254         ARM-specific names.
4255         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4256         return values in SImode.
4257         (arm_return_in_msb): Return fixed-point types in the msb.
4258         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4259         upwards.
4260         (arm_scalar_mode_supported_p): Support fixed-point modes.
4261         (arm_vector_mode_supported_p): Support vector fixed-point modes.
4262         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4263         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4264         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4265         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4266         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4267         New mode iterators.
4268         (qaddsub_suf): New mode attribute.
4269         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4270         vector modes.
4271         * config/arm/predicates.md (sat_shift_operator): New predicate.
4272         * config/arm/arm-fixed.md: New.
4273         * config/arm/arm.md: Include arm-fixed.md.
4274         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4275
4276 2011-08-01  Julian Brown  <julian@codesourcery.com>
4277
4278         * calls.c (emit_library_call_value_1): Support padding for libcall
4279         arguments and return values.
4280         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4281         downwards in big-endian mode.
4282
4283 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4284
4285         PR debug/49887
4286         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4287         * config/sol2-protos.h: Likewise.
4288         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4289         solaris_code_end.
4290         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4291         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4292         solaris_file_end.
4293         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4294
4295 2011-08-01  Julian Brown  <julian@codesourcery.com>
4296
4297         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4298
4299 2011-08-01  Julian Brown  <julian@codesourcery.com>
4300
4301         * final.c (output_addr_const): Print fixed-point constants as
4302         decimal not hex.
4303
4304 2011-08-01  Richard Guenther  <rguenther@suse.de>
4305
4306         * stor-layout.c (initialize_sizetypes): Properly sign-extend
4307         bitsiztype TYPE_MAX_VALUE.
4308
4309 2011-08-01  Julian Brown  <julian@codesourcery.com>
4310
4311         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4312         comparison helpers.
4313
4314 2011-07-31  Richard Henderson  <rth@redhat.com>
4315
4316         * config/h8300/crti.asm: Add flags to .section directive.
4317         * config/h8300/crtn.asm: Likewise.
4318
4319 2011-07-31  Richard Henderson  <rth@redhat.com>
4320
4321         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4322         * tree.c (build_common_tree_nodes): Likewise.
4323
4324 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4325
4326         PR target/49880
4327         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4328         (divsi3_i1): Likewise.
4329
4330 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4331
4332         PR tree-optimization/49749
4333         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4334         (PHI_LOOP_BIAS): New macro.
4335         (phi_rank): New function.
4336         (loop_carried_phi): Likewise.
4337         (propagate_rank): Likewise.
4338         (get_rank): Add calls to phi_rank and propagate_rank.
4339
4340 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4341
4342         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4343         of TARGET_64BIT.
4344         (PTRDIFF_TYPE): Likewise.
4345
4346 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4347
4348         PR target/49920
4349         * config/i386/i386.md (strset): Do not expand strset_singleop
4350         when %eax or $edi are fixed.
4351         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4352         (*strsetsi_1): Ditto.
4353         (*strsethi_1): Ditto.
4354         (*strsetqi_1): Ditto.
4355         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4356         (*rep_stossi): Ditto.
4357         (*rep_stosqi): Ditto.
4358         (*strlenqi_1): Ditto.
4359         (cmpstrnsi): Also fail when %ecx is fixed.
4360         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4361         (*cmpstrnqi_1): Ditto.
4362         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4363         (*strmovsi_1): Ditto.
4364         (*strmovhi_1): Ditto.
4365         (*strmovqi_1): Ditto.
4366         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4367         (*rep_movsi): Ditto.
4368         (*rep_movqi): Ditto.
4369
4370 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4371
4372         PR target/47908
4373         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4374         Disable instruction scheduling for non-ColdFire targets.
4375         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4376
4377 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4378
4379         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4380         of anti-dep edge from a branch.
4381         (add_cross_iteration_register_deps): Create anti-dep edge from
4382         a branch.
4383
4384 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4385
4386         * modulo-sched.c: Change comment.
4387         (reset_sched_times): Fix print message.
4388         (print_partial_schedule): Add print info.
4389
4390 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4391
4392         PR middle-end/43513
4393         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4394         get_object_alignment and TYPE_ALIGN.
4395
4396 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4397
4398         PR middle-end/43513
4399         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4400         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4401
4402 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4403
4404         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4405         <sys/sbd.h>.
4406         (cpu_types): New array.
4407         (cputype): New function.
4408         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4409         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4410         * config.host: Also use driver-native.o, mips/x-native on
4411         mips-sgi-irix*.
4412         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4413         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4414         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4415
4416 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4417
4418         PR middle-end/49897
4419         PR middle-end/49898
4420         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4421         in nested parallel and outer is a gimple_reg, mark it as addressable
4422         and set its bit in task_shared_vars bitmap too.
4423
4424 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4425
4426         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4427
4428 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4429
4430         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4431         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4432         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4433         AMASK_LOCKPFTCHOK): Define.
4434         (host_detect_local_cpu): Remove buf, f, cpu_names.
4435         Define cpu_types, implver, amask.
4436         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4437         native CPU.
4438         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4439         alpha*-dec-osf*.
4440         * config/alpha/osf5.h [__alpha__ || __alpha]
4441         (host_detect_local_cpu): Declare.
4442         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4443         (DRIVER_SELF_SPECS): Define.
4444
4445 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4446
4447         PR target/47715
4448         * config/i386/i386.md (*load_tp_x32): New.
4449         (*load_tp_x32_zext): Ditto.
4450         (*add_tp_x32): Ditto.
4451         (*add_tp_x32_zext): Ditto.
4452         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4453         (*add_tp_<mode>): Ditto.
4454         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4455         ptr_mode and convert to Pmode if needed.
4456
4457 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4458
4459         PR target/49687
4460         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4461         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4462         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4463         Add X to register footprint: Clobber r26/r27.
4464
4465 2011-07-29  Richard Guenther  <rguenther@suse.de>
4466
4467         * builtins.c (fold_builtin_signbit): Build the comparison
4468         with a proper type.
4469
4470 2011-07-29  Richard Guenther  <rguenther@suse.de>
4471
4472         PR tree-optimization/49893
4473         * tree-predcom.c (suitable_reference_p): Volatile references
4474         are not suitable.
4475
4476 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4477
4478         PR target/49313
4479         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4480         (__ctzsi2): Result for 0 may be undefined.
4481         (__ctzhi2): Result for 0 may be undefined.
4482         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4483         (__popcountsi2): Ditto. And don't clobber r26.
4484         (__popcountdi2): Ditto. And don't clobber r27.
4485         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4486         (parityhi2): New expand.
4487         (paritysi2): New expand.
4488         (popcounthi2): New expand.
4489         (popcountsi2): New expand.
4490         (clzhi2): New expand.
4491         (clzsi2): New expand.
4492         (ctzhi2): New expand.
4493         (ctzsi2): New expand.
4494         (ffshi2): New expand.
4495         (ffssi2): New expand.
4496         (copysignsf3): New insn.
4497         (bswapsi2): New expand.
4498         (*parityhi2.libgcc): New insn.
4499         (*parityqihi2.libgcc): New insn.
4500         (*paritysihi2.libgcc): New insn.
4501         (*popcounthi2.libgcc): New insn.
4502         (*popcountsi2.libgcc): New insn.
4503         (*popcountqi2.libgcc): New insn.
4504         (*popcountqihi2.libgcc): New insn-and-split.
4505         (*clzhi2.libgcc): New insn.
4506         (*clzsihi2.libgcc): New insn.
4507         (*ctzhi2.libgcc): New insn.
4508         (*ctzsihi2.libgcc): New insn.
4509         (*ffshi2.libgcc): New insn.
4510         (*ffssihi2.libgcc): New insn.
4511         (*bswapsi2.libgcc): New insn.
4512
4513 2011-07-29  Richard Guenther  <rguenther@suse.de>
4514
4515         * tree-vrp.c (get_value_range): Only set parameter default
4516         definitions to varying, leave others at undefined.
4517         (extract_range_from_binary_expr): Fix undefined handling.
4518         (vrp_visit_phi_node): Handle merged undefined state.
4519
4520 2011-07-29  Wei Guozhi  <carrot@google.com>
4521
4522         PR rtl-optimization/49799
4523         * combine.c (make_compound_operation): Check if the bit field is valid
4524         before change it to bit field extraction.
4525
4526 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4527
4528         PR rtl-optimization/49891
4529         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4530         newly created returnjumps.
4531
4532 2011-07-28  DJ Delorie  <dj@redhat.com>
4533
4534         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4535         local frame in a naked function, and produce a suitable error for
4536         that specific case.
4537
4538         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4539         registers to be reloaded in HI classes when the target is HI.
4540
4541 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4542
4543         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4544         bound_one, bound_two.
4545
4546 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4547
4548         PR middle-end/48648
4549         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4550         CLAST assignments.
4551         (translate_clast): Same.
4552         (translate_clast_assignment): New.
4553
4554 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4555
4556         PR tree-optimization/49876
4557         * sese.c (rename_uses): Do not return false on gloog_error: set
4558         the new_expr to integer_zero_node and continue code generation.
4559         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4560
4561 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4562
4563         PR debug/49846
4564         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4565         arguments also check if they aren't initialized with a MODE_INT
4566         mode of the same size.
4567
4568 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4569
4570         * expr.c (get_bit_range): Handle *MEM_REF's.
4571
4572 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4573
4574         * rtlanal.c (tablejump_p): False for returns.
4575         * reorg.c (first_active_target_insn): New static function.
4576         (find_end_label): Set JUMP_LABEL for a new returnjump.
4577         (optimize_skip, get_jump_flags, rare_destination,
4578         mostly_true_jump, get_branch_condition,
4579         steal_delay_list_from_target, own_thread_p,
4580         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4581         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4582         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4583         * jump.c (delete_related_insns): Likewise.
4584         (jump_to_label_p): New function.
4585         (redirect_target): New static function.
4586         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4587         (redirect_jump_1): Assert that the new label is nonnull.
4588         (redirect_jump): Likewise.
4589         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4590         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4591         exit block.
4592         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4593         changed.  Ensure that the right label is passed to redirect_jump.
4594         * function.c (emit_return_into_block,
4595         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4596         ret_rtx in their JUMP_LABEL.
4597         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4598         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4599         pass ret_rtx as label.
4600         * cfglayout.c (fixup_reorder_chain): Use
4601         force_nonfallthru_and_redirect rather than force_nonfallthru.
4602         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4603         * rtl.h (ANY_RETURN_P): New macro.
4604         (jump_to_label_p): Declare.
4605         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4606         JUMP_LABELs.
4607         (mark_target_live_regs): Likewise.
4608         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4609         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4610         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4611         alpha_tablejump_best_label): Remove functions.
4612         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4613         alpha_tablejump_best_label): Remove declarations.
4614         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4615         ret_rtx in JUMP_LABELs.
4616         * config/arm/arm.c (is_jump_table): Likewise.
4617
4618 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4619
4620         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4621         special predicate.  Remove explicit mode checks.
4622
4623 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4624
4625         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4626         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4627
4628         PR debug/49871
4629         * dwarf2out.c (size_of_die, value_format, output_die): Use
4630         DW_FORM_udata instead of DW_FORM_data[48] for
4631         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4632
4633 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4634
4635         * config/i386/i386.md (*tls_global_dynamic_64): Update
4636         length attribute.
4637
4638 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4639
4640         PR target/47715
4641         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4642         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
4643         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4644         (tls_dynamic_gnu2_64): Ditto.
4645         (*tls_dynamic_gnu2_lea_64): Ditto.
4646         (*tls_dynamic_gnu2_call_64): Ditto.
4647         (*tls_dynamic_gnu2_combine_64): Ditto.
4648
4649 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4650
4651         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4652
4653 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4654
4655         PR target/47364
4656         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4657
4658 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4659
4660         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4661         before the core constraints. Adjust attributes.
4662         ("*thumb2_movdf_vfp"): Likewise.
4663
4664 2011-07-28  Kai Tietz  <ktietz@redhat.com>
4665
4666         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4667         (simplify_truth_ops_using_ranges): Likewise.
4668         (build_assert_expr_for): Likewise.
4669         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4670         and handle BIT_NOT_EXPR for truth-operation.
4671
4672 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4673
4674         PR target/49313
4675         Undo r176835 from trunk
4676         2011-07-27  Georg-Johann Lay
4677
4678 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4679
4680         PR target/49687
4681         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4682         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4683         * config/avr/libgcc.S (__mulsi3): Rewrite.
4684         (__mulhisi3): Rewrite.
4685         (__umulhisi3): Rewrite.
4686         (__usmulhisi3): New.
4687         (__muluhisi3): New.
4688         (__mulshisi3): New.
4689         (__mulohisi3): New.
4690         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4691         declare.
4692         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4693         (pseudo_register_or_const_int_operand): New.
4694         (combine_pseudo_register_operand): New.
4695         (u16_operand): New.
4696         (s16_operand): New.
4697         (o16_operand): New.
4698         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4699         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4700         (any_extend, any_extend2): New code iterators.
4701         (extend_prefix): New code attribute.
4702         (mulsi3): Rewrite. Turn insn to expander.
4703         (mulhisi3): Ditto.
4704         (umulhisi3): Ditto.
4705         (usmulhisi3): New expander.
4706         (*mulsi3): New insn-and-split.
4707         (mulu<mode>si3): New insn-and-split.
4708         (muls<mode>si3): New insn-and-split.
4709         (mulohisi3): New insn-and-split.
4710         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4711         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4712         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4713         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4714         insn-and-split.
4715         (*mulsi3_call): Rewrite.
4716         (*mulhisi3_call): Rewrite.
4717         (*umulhisi3_call): Rewrite.
4718         (*usmulhisi3_call): New insn.
4719         (*muluhisi3_call): New insn.
4720         (*mulshisi3_call): New insn.
4721         (*mulohisi3_call): New insn.
4722         (extendqihi2): Use combine_pseudo_register_operand as predicate
4723         for operand 1.
4724         (extendqisi2): Ditto.
4725         (zero_extendqihi2): Ditto.
4726         (zero_extendqisi2): Ditto.
4727         (zero_extendhisi2): Ditto.
4728         (extendhisi2): Ditto. Don't early-clobber operand 0.
4729
4730 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4731
4732         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4733
4734 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4735
4736         PR tree-optimization/49471
4737         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4738         iv only when the largest type is unsigned.  Do not call
4739         lang_hooks.types.type_for_size.
4740
4741 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4742
4743         PR middle-end/45450
4744         * graphite-poly.c (apply_poly_transforms): Disable legality check
4745         after an openscop read.
4746
4747 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4748
4749         PR middle-end/47691
4750         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4751         copy_bb_and_scalar_dependences.
4752         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
4753         (graphite_copy_stmts_from_block): Update call to rename_uses.
4754         (copy_bb_and_scalar_dependences): Update call to
4755         graphite_copy_stmts_from_block.
4756         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4757
4758 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
4759
4760         PR target/49313
4761         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4762         (__ctzsi2): Result for 0 may be undefined.
4763         (__ctzhi2): Result for 0 may be undefined.
4764         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4765         (__popcountsi2): Ditto. And don't clobber r26.
4766         (__popcountdi2): Ditto. And don't clobber r27.
4767         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4768         (parityhi2): New expand.
4769         (paritysi2): New expand.
4770         (popcounthi2): New expand.
4771         (popcountsi2): New expand.
4772         (clzhi2): New expand.
4773         (clzsi2): New expand.
4774         (ctzhi2): New expand.
4775         (ctzsi2): New expand.
4776         (ffshi2): New expand.
4777         (ffssi2): New expand.
4778         (copysignsf3): New insn.
4779         (bswapsi2): New expand.
4780         (*parityhi2.libgcc): New insn.
4781         (*parityqihi2.libgcc): New insn.
4782         (*paritysihi2.libgcc): New insn.
4783         (*popcounthi2.libgcc): New insn.
4784         (*popcountsi2.libgcc): New insn.
4785         (*popcountqi2.libgcc): New insn.
4786         (*popcountqihi2.libgcc): New insn-and-split.
4787         (*clzhi2.libgcc): New insn.
4788         (*clzsihi2.libgcc): New insn.
4789         (*ctzhi2.libgcc): New insn.
4790         (*ctzsihi2.libgcc): New insn.
4791         (*ffshi2.libgcc): New insn.
4792         (*ffssihi2.libgcc): New insn.
4793         (*bswapsi2.libgcc): New insn.
4794
4795 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4796
4797         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4798         the mode of symbolic_opreand RTXes.
4799
4800 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4801
4802         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4803         for pic_32bit_operand RTXes.
4804         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4805         in DImode.
4806
4807 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4808
4809         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4810         for 32-bit, too.
4811         (ix86_handle_abi_attribute): Allow function attributes
4812         ms_abi/sysv_abi in 32-bit mode, too.
4813         * doc/extend.texi: Adjust attribute documentation.
4814
4815         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4816         expression handling.
4817         (and_var_with_comparison_1): Likewise.
4818
4819 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4820
4821         * params.h (ALLOW_STORE_DATA_RACES): New.
4822         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4823         * Makefile.in (expr.o): Depend on PARAMS_H.
4824         * machmode.h (get_best_mode): Add argument.
4825         * fold-const.c (optimize_bit_field_compare): Add argument to
4826         get_best_mode.
4827         (fold_truthop): Same.
4828         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4829         * expr.c (emit_group_store): Same.
4830         (copy_blkmode_from_reg): Same.
4831         (write_complex_part): Same.
4832         (optimize_bitfield_assignment_op): Add argument.
4833         Add argument to get_best_mode.
4834         (get_bit_range): New.
4835         (expand_assignment): Calculate maxbits and pass it down accordingly.
4836         (store_field): New argument.
4837         (expand_expr_real_2): New argument to store_field.  Include params.h.
4838         * expr.h (store_bit_field): New argument.
4839         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4840         into account maxbits.
4841         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4842         to store_bit_field.
4843         * expmed.c (store_bit_field_1): New argument.  Use it.
4844         (store_bit_field): Same.
4845         (store_fixed_bit_field): Same.
4846         (store_split_bit_field): Same.
4847         (extract_bit_field_1): Pass new argument to get_best_mode.
4848         (extract_bit_field): Same.
4849         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4850         * doc/invoke.texi: Document parameter allow-store-data-races.
4851
4852 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4853
4854         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4855
4856 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4857
4858         * tree-vrp.c (extract_range_from_binary_expr): Remove
4859         TRUTH-binary cases and add new bitwise-cases.
4860         (extract_range_from_assignment): Likewise.
4861         (register_edge_assert_for_1): Likeiwise.
4862         (register_edge_assert_for): Likewise.
4863         (simplify_truth_ops_using_ranges): Likewise.
4864         (simplify_stmt_using_ranges): Likewise.
4865
4866 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4867
4868         PR target/47372
4869         * config/i386/i386.c (ix86_delegitimize_address): Call
4870         simplify_gen_subreg for PIC with mode of x only if modes of
4871         x and orig_x are different.
4872
4873 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4874
4875         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4876         to GC allocated copy of the string.
4877         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4878         before .debug_line, not after it.
4879
4880 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4881
4882         PR middle-end/47046
4883         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4884         evolution_function_is_affine_p on CHREC_RIGHT.
4885
4886 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4887
4888         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4889         lang_hooks.types.type_for_size.
4890
4891 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4892
4893         PR middle-end/47653
4894         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4895         loops using wrapping semantics.
4896
4897 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4898
4899         PR middle-end/48805
4900         * tree-scalar-evolution.c (instantiate_scev_r): Return
4901         chrec_dont_know for ADDR_EXPR.
4902
4903 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4904             H.J. Lu  <hongjiu.lu@intel.com>
4905
4906         PR target/47369
4907         PR target/49853
4908         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4909         if legitimize_tls_address returned operand in wrong mode. Allow
4910         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4911         if legitimize_pic_address returned operand in wrong mode.
4912
4913 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4914
4915         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4916         return false for invariants.
4917
4918 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4919
4920         * config/i386/i386.md (add->lea splitter): Implement using SWI
4921         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4922         (add->lea zext splitter): Change operand 2 predicate to
4923         x86_64_nonmemory_operand.
4924
4925 2011-07-26  Richard Guenther  <rguenther@suse.de>
4926
4927         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4928         frequency makes everything hot.
4929
4930 2011-07-26  Richard Guenther  <rguenther@suse.de>
4931
4932         PR tree-optimization/49840
4933         * tree-vrp.c (range_fits_type_p): Properly handle full
4934         double-int precision.
4935
4936 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4937
4938         PR bootstrap/49786
4939         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4940         counts.
4941         (update_specialized_profile): Likewise.
4942
4943 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4944             H.J. Lu  <hongjiu.lu@intel.com>
4945
4946         PR target/47381
4947         PR target/49832
4948         PR target/49833
4949         * config/i386/i386.md (i): Change SImode attribute to "e".
4950         (g): Change SImode attribute to "rme".
4951         (di): Change SImode attribute to "nF".
4952         (general_operand): Change SImode attribute to x86_64_general_operand.
4953         (general_szext_operand): Change SImode attribute to
4954         x86_64_szext_general_operand.
4955         (immediate_operand): Change SImode attribute to
4956         x86_64_immediate_operand.
4957         (nonmemory_operand): Change SImode attribute to
4958         x86_64_nonmemory_operand.
4959         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4960         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4961         (*lea_1): Use SWI48 mode iterator.
4962         (*lea_1_zext): New insn pattern.
4963         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4964         (*bt<mode>): Ditto.
4965         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4966         Update operand constraints.
4967         (addsi_1_zext): Ditto.
4968         (*add<mode>2): Ditto.
4969         (*addsi_3_zext): Ditto.
4970         (*subsi_1_zext): Ditto.
4971         (*subsi_2_zext): Ditto.
4972         (*subsi_3_zext): Ditto.
4973         (*addsi3_carry_zext): Ditto.
4974         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4975         (*mulsi3_1_zext): Ditto.
4976         (*andsi_1): Ditto.
4977         (*andsi_1_zext): Ditto.
4978         (*andsi_2_zext): Ditto.
4979         (*<any_or:code>si_1_zext): Ditto.
4980         (*<any_or:code>si_2_zext): Ditto.
4981         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4982         (*and<mode>_2): Ditto.
4983         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4984         (add->lea splitter): Check operand modes in insn constraint.  Extend
4985         operands less than SImode wide to SImode.
4986         (add->lea zext splitter): Do not extend input operands to DImode.
4987         (*lea_general_1): Handle only QImode and HImode operands.
4988         (*lea_general_2): Ditto.
4989         (*lea_general_3): Ditto.
4990         (*lea_general_1_zext): Remove.
4991         (*lea_general_2_zext): Ditto.
4992         (*lea_general_3_zext): Ditto.
4993         (*lea_general_4): Check operand modes in insn constraint.  Extend
4994         operands less than SImode wide to SImode.
4995         (ashift->lea splitter): Ditto.
4996         * config/i386/i386.c (ix86_print_operand_address): Print address
4997         registers with 'q' modifier on 64bit targets.
4998         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4999         predicate.  Reject non-SI and non-DI modes.
5000
5001 2011-07-25  Andrew Pinski  <apinski@cavium.com>
5002
5003         PR tree-opt/49671
5004         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5005         TREE_THIS_NOTRAP into the inner most MEM_REF.
5006         Always copy TREE_THIS_VOLATILE.
5007         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5008         arguments are not volatile references.
5009
5010 2011-07-25  Richard Henderson  <rth@redhat.com>
5011
5012         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5013         * final.c (final_scan_insn): Don't test for it.
5014         (rest_of_clean_state): Likewise.
5015
5016 2011-07-25  Richard Henderson  <rth@redhat.com>
5017
5018         PR debug/49841
5019         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5020         (emit_frame_save): Likewise.
5021         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5022         insn onto a dummy blockage insn after the join label.
5023
5024 2011-07-25  Richard Henderson  <rth@redhat.com>
5025
5026         * dwarf2cfi.c (dw_trace_info): Add ID member.
5027         (get_trace_index): Remove.  Change users to use ID member.
5028         (before_next_cfi_note): New.
5029         (connect_traces): Remove unreachable traces before the main loop.
5030         Look across one trace and generate remember/restore_state if needed.
5031
5032 2011-07-25  Richard Henderson  <rth@redhat.com>
5033
5034         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5035
5036 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
5037
5038         * genattr.c (write_upcase, gen_attr <enum definition writing>):
5039         Move to ...
5040         * genattr-common.c ... here.
5041         (main): Call gen_attr.
5042         * optc-gen.awk: Make generated program include insn-attr-common.h .
5043         * Makefile.in (oprions.o): Depend on insn-attr-common.h
5044
5045 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5046
5047         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5048         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5049         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5050         m32c_print_operand, m32c_print_operand_address): Remove.
5051         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5052         Change return type to bool. Change argument type to bool.
5053         (m32c_print_operand, m32c_print_operand_address): Make static.
5054         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5055         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5056
5057 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5058
5059         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5060         attributes): Document mmap.
5061
5062 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5063
5064         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5065         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5066         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5067         mmix_print_operand, mmix_print_operand_address): Remove.
5068         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5069         Change return type to bool. Change argument type to bool.
5070         (mmix_print_operand, mmix_print_operand_address): Make static.
5071         (mmix_intval, mmix_output_condition): Change 'x' argument type
5072         to const_rtx.
5073         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5074         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5075
5076 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
5077
5078         PR target/39386
5079         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5080         shift counter for x << x and x >> x shifts.
5081
5082 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5083
5084         PR target/47124
5085         * config.gcc: Reject *-*-solaris2 configuration.
5086
5087 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
5088
5089         PR tree-optimization/49809
5090         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5091         gimple_get_lhs instead of gimple_assign_lhs.
5092
5093 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5094
5095         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5096
5097 2011-07-25  Richard Guenther  <rguenther@suse.de>
5098
5099         PR tree-optimization/49822
5100         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5101         more.  Make sure to preserve stmts with side-effects.  Properly
5102         handle virtual defs, follow a longer def chain.
5103
5104 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
5105
5106         PR plugins/45348
5107         PR plugins/48425
5108         PR plugins/46577
5109         * Makefile.in: Do not flatten c-family directory when installing
5110         plugin headers.
5111
5112 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5113
5114         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5115         original nodes if we are dealing with virtual clones.
5116
5117 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
5118
5119         * common/config/c6x/c6x-common.c: New file.
5120
5121 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
5122
5123         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5124
5125 2011-07-25  Richard Guenther  <rguenther@suse.de>
5126
5127         PR tree-optimization/49715
5128         * tree-vrp.c: Include expr.h and optabs.h.
5129         (range_fits_type_): New function.
5130         (simplify_float_conversion_using_ranges): Likewise.
5131         (simplify_stmt_using_ranges): Call it.
5132         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5133         * optabs.c (can_float_p): Export.
5134         * optabs.h (can_float_p): Declare.
5135
5136 2011-07-25  Richard Guenther  <rguenther@suse.de>
5137
5138         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5139         (get_value_range): For out-of-range SSA names or names created
5140         after propagation return a read-only varying range.
5141         (dump_all_value_ranges): Adjust.
5142         (vrp_initialize): Likewise.
5143         (vrp_finalize): Likewise.
5144
5145 2011-07-24  Richard Henderson  <rth@redhat.com>
5146
5147         PR debug/49831
5148         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
5149         them entirely.
5150
5151 2011-07-24  Richard Henderson  <rth@redhat.com>
5152
5153         PR debug/49825
5154         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5155         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5156
5157 2011-07-24  Richard Henderson  <rth@redhat.com>
5158
5159         PR debug/49827
5160         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5161
5162 2011-07-24  Richard Henderson  <rth@redhat.com>
5163
5164         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5165         Zero args_size for abnormal edges.  Adjust all callers.
5166
5167 2011-07-24  Richard Henderson  <rth@redhat.com>
5168
5169         PR debug/49825
5170         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5171
5172 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
5173
5174         PR bootstrap/49835
5175         * collect2.c (demangle_flag): Removed.
5176
5177 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
5178
5179         * configure.ac (demangler_in_ld): Default to yes.
5180         * configure: Regenerated.
5181         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5182         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5183         --no-demangle options straight through to ld.  When
5184         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5185         way that has the intended effect on Windows.
5186
5187 2011-07-23  Richard Henderson  <rth@redhat.com>
5188
5189         * dwarf2cfi.c: Include basic-block.h.
5190         (dw_label_info): Remove.
5191         (trace_work_list, trace_index): New.
5192         (remember_row, emit_cfa_remember): Remove.
5193         (dw_trace_info_hash, dw_trace_info_eq): New.
5194         (get_trace_index, get_trace_info): New.
5195         (save_point_p): New.
5196         (free_cfi_row): Remove.
5197         (add_cfi): Do not emit DW_CFA_remember_state.
5198         (cfa_row_equal_p): New.
5199         (barrier_args_size): Remove.
5200         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5201         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5202         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5203         (dwarf2out_cfi_begin_epilogue): Remove.
5204         (dwarf2out_frame_debug_restore_state): Remove.
5205         (connect_traces, create_pseudo_cfg): New.
5206         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5207         * Makefile.in (dwarf2cfi.o): Update.
5208
5209 2011-07-23  Richard Henderson  <rth@redhat.com>
5210
5211         * dwarf2cfi.c (dw_trace_info): New.
5212         (dw_label_info): New.
5213         (cie_return_save): New.
5214         (cur_trace): New.
5215         (queued_args_size): Rename from args_size.  Update all users.
5216         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5217         (def_cfa_1): Use cur_trace instead of cfa_*.
5218         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5219         (clobbers_queued_reg_save, reg_saved_in): Likewise.
5220         (dwarf2out_frame_debug_expr): Likewise.
5221         (create_cie_data): Split out from ...
5222         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
5223
5224 2011-07-23  Richard Henderson  <rth@redhat.com>
5225
5226         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5227         Update all users to match.
5228         (execute_dwarf2_frame): Free reg_saved_in_data.
5229
5230 2011-07-23  Richard Henderson  <rth@redhat.com>
5231
5232         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
5233         (queued_reg_saves): Don't GTY.  Change to a VEC.
5234         (queue_reg_save): Update to match.
5235         (dwarf2out_flush_queued_reg_saves): Likewise.
5236         (clobbers_queued_reg_save): Likewise.
5237         (reg_saved_in): Likewise.
5238         (execute_dwarf2_frame): Free queued_reg_saves.
5239
5240 2011-07-23  Richard Henderson  <rth@redhat.com>
5241
5242         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
5243
5244 2011-07-23  Richard Henderson  <rth@redhat.com>
5245
5246         * dwarf2cfi.c (add_cfi_args_size): Split out from...
5247         (dwarf2out_args_size): ... here.
5248         (add_cfi_restore): Split out from ...
5249         (dwarf2out_frame_debug_cfa_restore): ... here.
5250         (def_cfa_0): Split out from ...
5251         (def_cfa_1): ... here.
5252         (cfi_oprnd_equal_p, cfi_equal_p): New.
5253         (change_cfi_row): New.
5254         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5255         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5256         (output_cfis): Remove.
5257         * dwarf2out.c (output_fde): Simplify output_cfi loop.
5258         (dwarf2out_switch_text_section): Don't call output_cfis.
5259         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5260         * dwarf2out.h: Update decls.
5261         (enum dw_val_class): Add dw_val_class_none.
5262
5263 2011-07-23  Richard Henderson  <rth@redhat.com>
5264
5265         * dwarf2cfi.c (update_row_reg_save): New.
5266         (dwarf2out_frame_debug_cfa_expression): Use it.
5267         (dwarf2out_frame_debug_cfa_restore): Likewise.
5268         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
5269
5270 2011-07-23  Richard Henderson  <rth@redhat.com>
5271
5272         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
5273
5274 2011-07-23  Richard Henderson  <rth@redhat.com>
5275
5276         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5277         (cie_cfi_row): New.
5278         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5279         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5280         (cur_row, remember_row): New.
5281         (def_cfa_1): Use cur_row instead of the old_* variables.
5282         (dwarf2out_frame_debug_restore_state): Similarly.
5283         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5284         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5285         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5286         (dwarf2out_frame_debug_cfa_offset): Likewise.
5287         (dwarf2out_frame_debug_expr): Likewise.
5288         (execute_dwarf2_frame): Set up cur_row.
5289         * dwarf2out.h (struct cfa_loc): Mark for GTY.
5290
5291 2011-07-23  Richard Henderson  <rth@redhat.com>
5292
5293         * basic-block.h (EDGE_PRESERVE): New.
5294         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5295         * bb-reorder.c: Include except.h.
5296         (fix_up_crossing_landing_pad): New.
5297         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5298         landing pads in the right partition.  Duplicate as necessary.
5299         (partition_hot_cold_basic_blocks): Fix up DF info after
5300         duplicating landing pads.
5301         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5302         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5303         is set properly.  Validate that EH edges are not CROSSING.
5304         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5305         (dw2_build_landing_pads): ... here.
5306         (convert_to_eh_region_ranges): Remove code to fixup crossing
5307         landing pads.
5308         * except.h (expand_dw2_landing_pad_for_region): Declare.
5309         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5310
5311 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
5312
5313         PR target/49816
5314         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5315
5316 2011-07-22  Jason Merrill  <jason@redhat.com>
5317
5318         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5319
5320 2011-07-22  Richard Henderson  <rth@redhat.com>
5321
5322         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5323
5324 2011-07-22  Richard Henderson  <rth@redhat.com>
5325
5326         * jump.c (maybe_propagate_label_ref): Split out of...
5327         (mark_all_labels): ... here.  Do not attempt label_ref
5328         propagation while in cfglayout mode.
5329
5330 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5331
5332         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5333         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5334         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5335         (dwarf2out_define): If the vector is empty and
5336         lineno is 0, emit a dummy entry first.
5337         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5338         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5339         optimize_macinfo_range): New functions.
5340         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5341         mergeable, optimize longer strings using
5342         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5343         optimize longer sequences of define/undef ops from headers
5344         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5345         emit a section headers.
5346         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5347         and macinfo_section_label to DEBUG_MACRO_SECTION
5348         resp. DEBUG_MACRO_SECTION_LABEL.
5349         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5350         instead of DW_AT_macro_info.
5351
5352         PR other/32998
5353         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5354         options.
5355         * dwarf2out.c: Include opts.h.
5356         (dchar_p): New typedef.  Define heap VEC for it.
5357         (producer_string): New variable.
5358         (gen_producer_string): New function.
5359         (gen_compile_unit_die): Use it.
5360         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5361         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5362         * doc/invoke.texi: Document -grecord-gcc-switches and
5363         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5364         to -frecord-gcc-switches description.
5365
5366 2011-07-22  Jason Merrill  <jason@redhat.com>
5367
5368         PR c++/30112
5369         * c-decl.c (c_linkage_bindings): Define.
5370
5371 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5372
5373         PR debug/49815
5374         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5375
5376 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5377
5378         * config/i386/i386.c (ix86_option_override_internal): Disallow
5379         MS ABI in x32 mode.
5380         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5381         only for TARGET_LP64.
5382         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5383
5384 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5385
5386         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5387         avoid warnings when GCC is built with a C++ compiler.
5388
5389 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5390
5391         PR lto/49796
5392         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5393         if decl node is in another partition, call cgraph_get_node only once.
5394
5395 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5396
5397         * config.gcc (x86_64-*-linux*): Set
5398         default_gnu_indirect_function to yes.
5399
5400 2011-07-22  Richard Guenther  <rguenther@suse.de>
5401
5402         PR tree-optimization/45819
5403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5404         preserve volatile and notrap flags.
5405
5406 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5407             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5408
5409         PR bootstrap/49794
5410         * configure.ac: Test AM_ICONV with CXX.
5411         * configure: Regenerate.
5412         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5413
5414 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5415
5416         PR bootstrap/49797
5417         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5418         (set_cloog_options): Use it.
5419
5420 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5421
5422         PR c++/49756
5423         * gcc.c (main): Call stack_limit_increase (64MB).
5424         * toplev.c (toplev_main): Likewise.
5425
5426 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5427
5428         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5429         instead of force_reg.
5430
5431 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5432
5433         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5434         needed and use force_reg after convert.
5435         (ix86_expand_call): Likewise.
5436         (ix86_expand_special_args_builtin): Likewise.
5437         (ix86_expand_builtin): Likewise.
5438
5439 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5440
5441         PR middle-end/47654
5442         PR middle-end/49649
5443         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5444         in parameter.  Initialize v1 and v2 based on the values returned
5445         by clast_name_to_lb_ub.
5446         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5447         values.
5448         (type_for_clast_bin): Same.
5449         (type_for_clast_expr): Same.
5450         (type_for_clast_eq): Update calls to type_for_clast_expr.
5451         (type_for_clast_for): Same.
5452         (build_iv_mapping): Same.
5453         * graphite-ppl.h (value_min): New.
5454
5455 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5456
5457         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5458         types whenever possible.
5459
5460 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5461
5462         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5463         and ub fields.
5464         (new_clast_name_index): Add lb and ub parameters.
5465         (free_clast_name_index): New.
5466         (clast_name_to_lb_ub): New.
5467         (save_clast_name_index): Add lb and ub parameters.
5468         (compute_bounds_for_param): New.
5469         (type_for_level): Removed.
5470         (type_for_clast_for): Removed level parameter.  Do not call
5471         type_for_level.
5472         (graphite_create_new_loop): Store the lb and ub for the clast_name
5473         of the iterator of the loop that has been generated.
5474         (graphite_create_new_loop_guard): Remove parameter level.
5475         (create_params_index): Store the lb and ub of each parameter.
5476         (gloog): Use free_clast_name_index.  Pass to create_params_index
5477         the current scop.
5478
5479 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5480
5481         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5482         (max_precision_type): Inline max_signed_precision_type.
5483         (type_for_clast_red): Use max_precision_type.
5484         (type_for_clast_bin): Same.
5485         (type_for_clast_for): Same.
5486
5487 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5488
5489         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5490         type_for_interval.
5491         (gcc_type_for_value): Renamed type_for_value.
5492         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5493         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5494         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5495         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5496         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5497         (graphite_translate_clast_equation): Update calls.
5498         (compute_type_for_level): Renamed type_for_level.
5499         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5500         (build_iv_mapping): Update calls.
5501         (graphite_create_new_loop_guard): Same.
5502
5503 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5504
5505         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5506         comment.
5507
5508 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5509
5510         * graphite-clast-to-gimple.c (struct ivs_params): New.
5511         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5512         (clast_to_gcc_expression): Same.
5513         (clast_to_gcc_expression_red): Same.
5514         (gcc_type_for_clast_term): Same.
5515         (gcc_type_for_clast_expr): Same.
5516         (gcc_type_for_clast_red): Same.
5517         (gcc_type_for_clast_bin): Same.
5518         (gcc_type_for_clast_eq): Same.
5519         (graphite_translate_clast_equation): Same.
5520         (graphite_create_guard_cond_expr): Same.
5521         (graphite_create_new_guard): Same.
5522         (graphite_create_new_loop): Same.
5523         (build_iv_mapping): Same.
5524         (translate_clast_user): Same.
5525         (graphite_create_new_loop_guard): Same.
5526         (translate_clast): Same.
5527         (translate_clast_for_loop): Same.
5528         (translate_clast_for): Same.
5529         (translate_clast_guard): Same.
5530         (initialize_cloog_names): Fix typo.
5531         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5532
5533 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5534
5535         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5536         (new_clast_name_index): Add level parameter.
5537         (clast_name_to_level): New.
5538         (save_clast_name_index): Add level parameter.
5539         (newivs_to_depth_to_newiv): Removed.
5540         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5541         (graphite_create_new_loop): Add level parameter.  Pass level to
5542         save_clast_name_index.
5543         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5544         (create_params_index): Pass level to save_clast_name_index.
5545
5546 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5547
5548         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5549         recompute type, lb, and ub.  Get them from...
5550         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5551         pointers to type, lb, and ub.
5552         (translate_clast_for_loop): Update function calls.
5553         (translate_clast_for): Same.
5554
5555 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5556
5557         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5558         psct_dynamic_dim.
5559         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5560         (gcc_type_for_iv_of_clast_loop): Update use of level.
5561         (gloog): Start counting nesting level from 0.
5562         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5563         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5564         psct_dynamic_dim on level.
5565
5566 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5567
5568         * config/i386/i386.c (ix86_legitimize_address): Convert to
5569         Pmode if needed.
5570
5571 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5572
5573         * config/i386/i386.c (function_value_64): Always return pointers
5574         in Pmode.
5575         (ix86_promote_function_mode): New.
5576         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5577
5578 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5579
5580         PR tree-optimization/49749
5581         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5582         remove no-longer-used maxrank variable.
5583
5584 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5585
5586         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5587
5588 2011-07-21  Jason Merrill  <jason@redhat.com>
5589
5590         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5591         * recog.h (struct insn_data_d): Check it instead of
5592         HAVE_DESIGNATED_INITIALIZERS.
5593         * genoutput.c (output_insn_data): Likewise.
5594
5595 2011-07-21  Richard Guenther  <rguenther@suse.de>
5596
5597         PR tree-optimization/49770
5598         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5599         valueized any operand.  Renamed from ...
5600         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5601         (valueize_shared_reference_ops_from_ref): Return whether we
5602         valueized any operand.
5603         (vn_reference_lookup): Only when we valueized any operand
5604         use the valueized reference for alias analysis.  Do not preserve
5605         the original reference tree in this case.
5606
5607 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5608
5609         * config/i386/i386.c (ix86_decompose_address): Reject all but
5610         register operands and subregs of DImode hard registers in index.
5611
5612 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5613
5614         * fold-const.c (fold_unary_loc): Preserve indirect
5615         comparison cast to none-boolean type.
5616         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5617         from/to boolean-type.
5618         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5619         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5620         * tree-cfg.c (verify_gimple_comparison): Check result
5621         type of comparison expression.
5622         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5623         of condition result and disallow type-cast sinking into comparison.
5624
5625 2011-07-21  Richard Guenther  <rguenther@suse.de>
5626
5627         * tree-ssa-forwprop.c (combine_conversions): Return whether
5628         we have to run cfg-cleanup.  Properly remove dead stmts.
5629         (ssa_forward_propagate_and_combine): Adjust.
5630
5631 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
5632
5633         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5634
5635 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5636
5637         * tree-ssa-propagate.c (substitute_and_fold): Use
5638         do_dce flag to deside, if BB's statements are scanned
5639         in last to first, or first to last order.
5640
5641 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5642
5643         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5644
5645 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
5646             Uros Bizjak  <ubizjak@gmail.com>
5647             Richard Henderson  <rth@redhat.com>
5648
5649         * config/i386/constraints.md (w): New.
5650
5651         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5652         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5653
5654         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5655         instead of TARGET_64BIT.
5656
5657         * config/i386/i386.md (indirect_jump): Replace
5658         nonimmediate_operand with indirect_branch_operand.
5659         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
5660         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5661         Convert operand 0 to Pmode for x32 if not PIC.
5662         (*tablejump_1): Replace nonimmediate_operand with
5663         indirect_branch_operand.  Replace constraint "m" with "w".
5664         (*call_vzeroupper): Replace constraint "m" with "w".
5665         (*call): Likewise.
5666         (*call_rex64_ms_sysv_vzeroupper): Likewise.
5667         (*call_rex64_ms_sysv): Likewise.
5668         (*call_value_vzeroupper): Likewise.
5669         (*call_value): Likewise.
5670         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5671         (*call_value_rex64_ms_sysv): Likewise.
5672         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5673
5674         * config/i386/predicates.md (indirect_branch_operand): New.
5675         (call_insn_operand): Support x32.
5676
5677 2011-07-20  Michael Eager  <eager@eagercon.com>
5678
5679         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5680
5681 2011-07-20  Richard Henderson  <rth@redhat.com>
5682
5683         * cfg.c (dump_bb_info): Dump basic_block->flags.
5684         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5685
5686 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5687
5688         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5689         of DImode hard registers in index.
5690         (ix86_legitimate_address_p): Allow subregs of base and index to span
5691         more than a word.  Assert that subregs of base and index satisfy
5692         register_no_elim_operand predicates.  Reject addresses where
5693         base and index have different modes.
5694
5695 2011-07-20  Robert Millan  <rmh@gnu.org>
5696
5697         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5698
5699 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5700
5701         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5702         removing now-unnecessary assignment.
5703
5704 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5705
5706         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5707         memory address space to the type's address space.
5708
5709 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5710
5711         PR target/36467
5712         PR target/49687
5713         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5714         and expand appropriately if there is a CONST_INT in operand2.
5715         (usmulqihi3): New insn.
5716         (*sumulqihi3): New insn.
5717         (*osmulqihi3): New insn.
5718         (*oumulqihi3): New insn.
5719         (*muluqihi3.uconst): New insn_and_split.
5720         (*muluqihi3.sconst): New insn_and_split.
5721         (*mulsqihi3.sconst): New insn_and_split.
5722         (*mulsqihi3.uconst): New insn_and_split.
5723         (*mulsqihi3.oconst): New insn_and_split.
5724         (*ashifthi3.signx.const): New insn_and_split.
5725         (*ashifthi3.signx.const7): New insn_and_split.
5726         (*ashifthi3.zerox.const): New insn_and_split.
5727         (mulsqihi3): New insn.
5728         (muluqihi3): New insn.
5729         (muloqihi3): New insn.
5730         * config/avr/predicates.md (const_2_to_7_operand): New.
5731         (const_2_to_6_operand): New.
5732         (u8_operand): New.
5733         (s8_operand): New.
5734         (o8_operand): New.
5735         (s9_operand): New.
5736         (register_or_s9_operand): New.
5737
5738 2011-07-20  Kai Tietz  <ktietz@redhat.com>
5739
5740         * builtins.c (fold_builtin_expect): See through the cast
5741         from truthvalue_type_node to long.
5742
5743 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5744
5745         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5746         where we can use them from the standard and altivec instruction
5747         sets, instead of always using the 3 operand VSX forms that require
5748         the destination to overlap one of the inputs.
5749         (vsx_fms*): Ditto.
5750         (vsx_fnma*): Ditto.
5751         (vsx_fnms*): Ditto.
5752
5753         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5754         for DF types.
5755         (fmsdf4_fpr): Ditto.
5756         (nfmadf4_fpr): Ditto.
5757         (nfmsdf4_fpr): Ditto.
5758
5759 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
5760
5761         * genrecog.c (make_insn_sequence): Correct position numbering
5762         when filtering out match_scratch and match_dup.
5763
5764 2011-07-20  Richard Guenther  <rguenther@suse.de>
5765
5766         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5767         against already removed statements.
5768         (forward_propagate_into_comparison): Remove dead defining stmts.
5769         (forward_propagate_into_gimple_cond): Likewise.
5770         (forward_propagate_into_cond): Simplify.
5771         (ssa_forward_propagate_and_combine): Handle changed cfg from
5772         forward_propagate_into_comparison.
5773         * tree-ssa-phiopt.c (conditional_replacement): Use proper
5774         locations for newly built statements.
5775
5776 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5777
5778         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5779
5780 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5781
5782         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5783         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5784
5785 2011-07-20  Richard Guenther  <rguenther@suse.de>
5786
5787         PR middle-end/18908
5788         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5789         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5790         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
5791
5792 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
5793
5794         * config/frv/frv.c (frv_register_move_cost): Define explicitly
5795         costs for subclasses of GR_REGS.
5796
5797 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5798
5799         PR target/49780
5800         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5801         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5802         of DImode hard registers in base.
5803         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5804         registers.
5805
5806 2011-07-20  Richard Guenther  <rguenther@suse.de>
5807
5808         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5809         (unify_nodes): Deal with that.
5810         (solve_graph): Likewise.
5811
5812 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5813
5814         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5815         canonicalize left operand from ZERO_EXTEND to AND.
5816
5817 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5818
5819         * target.def (class_max_nregs): New hook.
5820         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5821         * doc/tm.texi: Regenerate.
5822         * targhooks.c (default_class_max_nregs): New function.
5823         * targhooks.h (default_class_max_nregs): Declare.
5824         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5825         x_ira_reg_class_min_nregs arrays to unsigned char.
5826         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5827         hook instead of CLASS_MAX_NREGS macro.
5828         * reginfo.c (restore_register_info): Ditto.
5829         * ira-conflicts.c (process_regs_for_copy): Use
5830         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5831         Change type rclass and aclass vars to reg_class_t.
5832         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5833         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5834         reg_class_t.
5835         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5836         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5837
5838         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5839         * config/i386/i386.c (ix86_class_max_nregs): New function.
5840         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5841         instead of CLASS_MAX_NREGS macro.
5842         (TARGET_CLASS_MAX_NREGS): Define.
5843         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5844         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5845         * config/avr/avr.c (class_max_nregs): Remove function.
5846         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5847         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5848         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5849         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5850         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5851         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5852         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5853         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5854         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5855         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5856         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5857         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5858         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5859         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5860         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5861
5862 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5863
5864         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5865         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5866         (EH_PERSONALITY): Fix typo.
5867         (NON_CALL_EXCEPTIONS): Fix message.
5868         (OPTIMIZATION_MISMATCH): Adjust message.
5869         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5870
5871 2011-07-19  Ian Lance Taylor  <iant@google.com>
5872
5873         * doc/install.texi (Configuration): Document
5874         --enable-build-poststage1-with-cxx.
5875
5876 2011-07-19  Robert Millan  <rmh@gnu.org>
5877
5878         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5879         (GLIBC_DYNAMIC_LINKER): Remove.
5880
5881         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5882         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5883         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5884         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5885         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5886         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5887
5888         * config/mips/linux.h: Remove everything except for ...
5889         (GLIBC_DYNAMIC_LINKER): ... this macro.
5890
5891         * config/mips/linux64.h: Remove everything except for ...
5892         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5893         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5894         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5895         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5896         (GNU_USER_LINK_EMULATIONN32): New macros.
5897
5898         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5899         Use the new headers.
5900
5901 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5902
5903         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5904         Add offset_known_p and size_known_p fields.
5905         (MEM_OFFSET_KNOWN_P): Update accordingly.
5906         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5907         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5908         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5909         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5910         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5911         (init_emit_regs): Likewise.
5912
5913 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5914
5915         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5916         (MEM_OFFSET): Change from returning an rtx to returning a
5917         HOST_WIDE_INT.
5918         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5919         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5920         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5921         (clear_mem_offset): Declare.
5922         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5923         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5924         MEM_OFFSET to get a HOST_WIDE_INT offset.
5925         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5926         (adjust_offset_for_component_ref): Take a bool "known_p"
5927         parameter and a HOST_WIDE_INT "offset" parameter.
5928         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5929         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5930         than an rtx.  Use clear_mem_offset to clear the offset.
5931         * cfgcleanup.c (merge_memattrs): Likewise.
5932         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5933         * function.c (assign_parm_find_stack_rtl): Likewise.
5934         (assign_parm_setup_stack): Likewise.
5935         * print-rtl.c (print_rtx): Likewise.
5936         * reload.c (find_reloads_subreg_address): Likewise.
5937         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5938         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5939         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5940         (get_mem_align_offset): Likewise.
5941         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5942         (clear_mem_offset): New function.
5943         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5944         offset rather than an rtx.  Assume both the expressio and offset
5945         are available.
5946         (r10k_needs_protection_p_1): Update accordingly, checking the
5947         expression and offset availability here instead.
5948
5949 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5950
5951         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5952         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5953         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5954         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5955         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5956         (clear_mem_size): Declare.
5957         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5958         (clear_mem_size): New function.
5959         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5960         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5961         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5962         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5963         to clear the size.
5964         (nonoverlapping_memrefs_p): Likewise.
5965         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5966         (expand_builtin_init_trampoline): Likewise.
5967         * calls.c (compute_argument_addresses): Likewise.
5968         * cfgcleanup.c (merge_memattrs): Likewise.
5969         * dce.c (find_call_stack_args): Likewise.
5970         * dse.c (record_store, scan_insn): Likewise.
5971         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5972         * expr.c (emit_block_move_hints): Likewise.
5973         * function.c (assign_parm_find_stack_rtl): Likewise.
5974         * print-rtl.c (print_rtx): Likewise.
5975         * reload.c (find_reloads_subreg_address): Likewise.
5976         * rtlanal.c (may_trap_p_1): Likewise.
5977         * var-tracking.c (track_expr_p): Likewise.
5978         * varasm.c (assemble_trampoline_template): Likewise.
5979         * config/arm/arm.c (arm_print_operand): Likewise.
5980         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5981         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5982         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5983         (expand_constant_setmem_prologue): Likewise.
5984         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5985         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5986         (adjacent_mem_locations): Likewise.
5987         * config/s390/s390.c (s390_expand_setmem): Likewise.
5988         (s390_expand_insv): Likewise.
5989         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5990         (*extendqi<mode>2_short_displ): Likewise.
5991         * config/sh/sh.c (expand_block_move): Likewise.
5992         * config/sh/sh.md (extv, extzv): Likewise.
5993
5994 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5995
5996         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5997         (mem_attrs_htab_eq): ...here.
5998         (find_mem_attrs): Replace with...
5999         (set_mem_attrs): ...this function.  Take a mem_attrs structure
6000         rather than individual fields.
6001         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6002         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6003         (set_mem_size, change_address, adjust_address_1, offset_address)
6004         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6005         Update accordingly.
6006
6007 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6008
6009         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6010         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6011         Provide a dummy definition of MEM_ADDR_SPACE for generators.
6012         (target_rtl): Add x_mode_mem_attrs.
6013         (mode_mem_attrs): New macro.
6014         (get_mem_attrs): New function.
6015         * emit-rtl.c (get_mem_attrs): Rename to...
6016         (find_mem_attrs): ...this.
6017         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6018         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6019         (set_mem_size, change_address, adjust_address_1, offset_address)
6020         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6021         Update accordingly.
6022         (init_emit_regs): Initialize mode_mem_attrs.
6023
6024 2011-07-19  Richard Guenther  <rguenther@suse.de>
6025
6026         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6027         TRUTH_*_EXPR handling.
6028         * tree-ssa-operands.c (get_expr_operands): Likewise.
6029         * tree-ssa-pre.c (fully_constant_expression): Likewise.
6030         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6031         Likewise.
6032         (is_and_or_or): Likewise.
6033         (is_norm_cond_subset_of): Likewise.
6034
6035 2011-07-19  Richard Guenther  <rguenther@suse.de>
6036
6037         * tree.h (fold_build_pointer_plus_loc): New helper function.
6038         (fold_build_pointer_plus_hwi_loc): Likewise.
6039         (fold_build_pointer_plus): Define.
6040         (fold_build_pointer_plus_hwi): Likewise.
6041         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6042         (fold_builtin_memory_op): Likewise.
6043         (fold_builtin_stpcpy): Likewise.
6044         (fold_builtin_memchr): Likewise.
6045         (fold_builtin_strstr): Likewise.
6046         (fold_builtin_strchr): Likewise.
6047         (fold_builtin_strrchr): Likewise.
6048         (fold_builtin_strpbrk): Likewise.
6049         (fold_builtin_strcat): Likewise.
6050         (expand_builtin_memory_chk): Likewise.
6051         (fold_builtin_memory_chk): Likewise.
6052         * c-typeck.c (build_unary_op): Likewise.
6053         * cgraphunit.c (thunk_adjust): Likewise.
6054         * fold-const.c (build_range_check): Likewise.
6055         (fold_binary_loc): Likewise.
6056         * omp-low.c (extract_omp_for_data): Likewise.
6057         (expand_omp_for_generic): Likewise.
6058         (expand_omp_for_static_nochunk): Likewise.
6059         (expand_omp_for_static_chunk): Likewise.
6060         * tree-affine.c (add_elt_to_tree): Likewise.
6061         * tree-data-ref.c (split_constant_offset_1): Likewise.
6062         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6063         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6064         * tree-predcom.c (ref_at_iteration): Likewise.
6065         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6066         (add_to_parts): Likewise.
6067         (create_mem_ref): Likewise.
6068         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6069         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6070         (number_of_iterations_le): Likewise.
6071         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6072         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6073         (vect_create_addr_base_for_vector_ref): Likewise.
6074         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6075         (vect_create_cond_for_alias_checks): Likewise.
6076         * tree-vrp.c (extract_range_from_assert): Likewise.
6077         * config/alpha/alpha.c (alpha_va_start): Likewise.
6078         (alpha_gimplify_va_arg_1): Likewise.
6079         * config/i386/i386.c (ix86_va_start): Likewise.
6080         (ix86_gimplify_va_arg): Likewise.
6081         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6082         * config/mep/mep.c (mep_expand_va_start): Likewise.
6083         (mep_gimplify_va_arg_expr): Likewise.
6084         * config/mips/mips.c (mips_va_start): Likewise.
6085         (mips_gimplify_va_arg_expr): Likewise.
6086         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6087         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6088         (rs6000_gimplify_va_arg): Likewise.
6089         * config/s390/s390.c (s390_va_start): Likewise.
6090         (s390_gimplify_va_arg): Likewise.
6091         * config/sh/sh.c (sh_va_start): Likewise.
6092         (sh_gimplify_va_arg_expr): Likewise.
6093         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6094         * config/spu/spu.c (spu_va_start): Likewise.
6095         (spu_gimplify_va_arg_expr): Likewise.
6096         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6097         Likewise.
6098         (xstormy16_gimplify_va_arg_expr): Likewise.
6099         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6100         (xtensa_gimplify_va_arg_expr): Likewise.
6101
6102 2011-07-19  Richard Guenther  <rguenther@suse.de>
6103
6104         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6105         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6106         handling.
6107
6108         PR middle-end/18908
6109         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6110         result of BIT_*_EXPR to bitfield precision.
6111
6112 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
6113
6114         PR tree-optimization/49742
6115         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6116         as a potential write.
6117
6118 2011-07-19  Richard Guenther  <rguenther@suse.de>
6119
6120         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6121         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6122         (forward_propagate_comparison): Simplify, remove obsolete code.
6123
6124 2011-07-19  Richard Guenther  <rguenther@suse.de>
6125
6126         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6127         BIT_XOR_EXPR, same as the RTL expander does.
6128         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6129         (verify_gimple_assign_unary): Likewise.
6130         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6131         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6132         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6133
6134 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
6135
6136         PR tree-optimization/49768
6137         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6138         if offset is smaller than bitoffset, but offset+size is bigger
6139         than bitoffset.
6140
6141 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
6142
6143         PR tree-optimization/49771
6144         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6145         zero step, set segment length to the size of the data-ref's type.
6146
6147 2011-07-18  Martin Jambor  <mjambor@suse.cz>
6148
6149         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6150         comments.
6151         (ipcp_values_pool): Declare.
6152         (ipcp_sources_pool): Likewise.
6153         (ipcp_lattice): Changed to forward declaration.
6154         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6155         cannot_devirtualize.
6156         (ipa_node_params): New fields descriptors, lattices, known_vals,
6157         clone_for_all_contexts and node dead, removed fields params and
6158         count_scale.
6159         (ipa_set_param_count): Removed.
6160         (ipa_get_param_count): Made to work with descriptors vector.
6161         (ipa_get_param): Updated.
6162         (ipa_param_cannot_devirtualize_p): Removed.
6163         (ipa_param_types_vec_empty): Likewise.
6164         (ipa_set_param_used): New function.
6165         (ipa_get_param_used): Updated to use descriptors vector.
6166         (ipa_func_list): Removed.
6167         (ipa_init_func_list): Removed declaration.
6168         (ipa_push_func_to_list_1): Likewise.
6169         (ipa_pop_func_from_list): Likewise.
6170         (ipa_push_func_to_list): Removed.
6171         (ipa_lattice_from_jfunc): Remove declaration.
6172         (ipa_get_jf_pass_through_result): Declare.
6173         (ipa_get_jf_ancestor_result): Likewise.
6174         (ipa_value_from_jfunc): Likewise.
6175         (ipa_get_lattice): Update.
6176         (ipa_lat_is_single_const): New function.
6177         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6178         (ipa_init_func_list): Likewise.
6179         (ipa_pop_func_from_list): Likewise.
6180         (ipa_get_param_decl_index): Fix coding style.
6181         (count_formal_params): Removed.
6182         (count_formal_params_1): Renamed to count_formal_params.
6183         (ipa_populate_param_decls): Update to use descriptors vector.
6184         (ipa_initialize_node_params): Likewise.
6185         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6186         (ipa_analyze_params_uses): Likewise.
6187         (ipa_free_node_params_substructures): Likewise and free also lattices
6188         and known values.
6189         (duplicate_array): Removed.
6190         (ipa_edge_duplication_hook): Add the new edge to the list of edge
6191         clones.
6192         (ipa_node_duplication_hook): Update to use new lattices.
6193         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6194         (ipa_free_all_structures_after_iinln): Likewise.
6195         (ipa_write_node_info): Update to use new lattices.
6196         (ipa_read_node_info): Likewise.
6197         (ipa_get_jf_pass_through_result): New function.
6198         (ipa_get_jf_ancestor_result): Likewise.
6199         (ipa_value_from_jfunc): Likewise.
6200         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6201         * ipa-cp.c: Reimplemented.
6202         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6203         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6204         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6205         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6206         * doc/invoke.texi (devirt-type-list-size): Removed description.
6207         (ipa-cp-value-list-size): Added description.
6208
6209 2011-07-18  Richard Henderson  <rth@redhat.com>
6210
6211         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6212         before calling create_basic_block.
6213
6214 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
6215
6216         PR middle-end/49675
6217         * tree.c (build_common_builtin_nodes): Register
6218         __builtin_return_address, __cyg_profile_func_enter
6219         and __cyg_profile_func_exit.
6220
6221 2011-07-18  Richard Henderson  <rth@redhat.com>
6222
6223         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6224         (add_labels_and_missing_jumps): ... here.
6225         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6226
6227 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
6228
6229         PR target/47744
6230         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6231         of DImode hard registers in PLUS address chains.
6232
6233 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6234
6235         PR bootstrap/49769
6236         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6237         (alpha*-*-freebsd*): Likewise.
6238         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6239         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6240         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6241         crtprec80.o, crtfastmath.o to extra_parts for all targets.
6242         (ia64*-*-elf*): Remove extra_parts.
6243         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6244         (sparc64-*-linux*): Likewise.
6245         (sparc64-*-freebsd*): Likewise.
6246
6247         Revert:
6248         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6249         (ia64*-*-linux*): Likewise.
6250         (mips64*-*-linux*): Likewise.
6251         (mips*-*-linux*): Likewise.
6252
6253 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
6254
6255         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6256
6257 2011-07-18  Richard Guenther  <rguenther@suse.de>
6258
6259         * gimplify.c (gimplify_expr): Use input_location, not saved_location
6260         when building new trees.
6261
6262 2011-07-18  Richard Guenther  <rguenther@suse.de>
6263
6264         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6265         expansion result to bitfield precision if required.
6266
6267 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6268
6269         * config.gcc (i[3456x]86-*-netware*): Remove.
6270
6271         * gthr-nks.h: Remove.
6272         * configure.ac (enable_threads): Remove nks.
6273         * configure: Regenerate.
6274
6275         * config/i386/i386.c (ix86_encode_section_info): Remove netware
6276         reference.
6277         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6278         <netware.h> reference.
6279
6280         * config/i386/netware-libgcc.c,
6281         gcc/config/i386/netware-libgcc.def,
6282         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6283         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6284         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6285         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6286
6287         * doc/extend.texi (Function Attributes,
6288         callee_pop_aggregate_return): Remove i?86-netware reference.
6289         * doc/install.texi (Configuration, --enable-threads): Remove nks.
6290
6291 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6292
6293         PR target/49746
6294         Revert:
6295         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6296
6297         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6298         patterns.
6299
6300 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
6301
6302         PR middle-end/49732
6303         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6304
6305 2011-07-16  Matthias Klose  <doko@ubuntu.com>
6306
6307         * doc/install.texi: Document --enable-static-libjava.
6308
6309 2011-07-15  Richard Henderson  <rth@redhat.com>
6310
6311         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6312         Replace all three arguments by returning a VEC of edges.
6313         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6314         pointers and counts.
6315         (fix_edges_for_rarely_executed_code): Merge ...
6316         (rest_of_handle_partition_blocks): ... into...
6317         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
6318         any work was performed.
6319         (pass_partition_blocks): Clear todo_flags_finish.
6320
6321 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
6322             Jakub Jelinek  <jakub@redhat.com>
6323             Jonathan Wakely  <jwakely.gcc@gmail.com>
6324
6325         PR libstdc++/49745
6326         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6327         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6328
6329 2011-07-15  Jason Merrill  <jason@redhat.com>
6330
6331         PR testsuite/49741
6332         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6333         rather than --tool_opts.
6334
6335 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6336
6337         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6338         corresponding gtype.state.
6339
6340 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6341
6342         PR target/49723
6343         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6344
6345 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6346
6347         PR target/48220
6348         * doc/md.texi (Standard Names): Document window_save.
6349         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6350         expand_debug_expr and expand_debug_source_expr.  If the target has
6351         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6352         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6353         SSA_NAME_VAR is a parameter.
6354         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6355         * var-tracking.c (parm_reg_t): New type and associated vector type.
6356         (windowed_parm_regs): New variable.
6357         (adjust_insn): If the target has a window_save instruction and this
6358         is the instruction, make its effect on parameter registers explicit.
6359         (next_non_note_insn_var_location): New function.
6360         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6361         (vt_add_function_parameter): If the target has a window_save insn,
6362         adjust the incoming RTL and record that in windowed_parm_regs.
6363         (vt_finalize): Free windowed_parm_regs.
6364
6365 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6366
6367         * doc/invoke.texi (C6X Options): New section.
6368         * doc/md.texi (TI C6X family): New section.
6369         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6370         tic6x-*-uclinux.
6371         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6372         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6373         Provide C6X definitions.
6374         * config/c6x/c6x.md: New file.
6375         * config/c6x/constraints.md: New file.
6376         * config/c6x/predicates.md: New file.
6377         * config/c6x/c6x-sched.md.in: New file.
6378         * config/c6x/c6x-sched.md: New file.
6379         * config/c6x/gensched.sh: New file.
6380         * config/c6x/c6x-mult.md.in: New file.
6381         * config/c6x/genmult.sh: New file.
6382         * config/c6x/c6x-mult.md: New file.
6383         * config/c6x/sync.md: New file.
6384         * config/c6x/c6x-protos.h: New file.
6385         * config/c6x/sfp-machine.h: New file.
6386         * config/c6x/c6x.c: New file.
6387         * config/c6x/c6x.h: New file.
6388         * config/c6x/crti.s: New file.
6389         * config/c6x/crtn.s: New file.
6390         * config/c6x/lib1funcs.asm: New file.
6391         * config/c6x/c6x-modes.def: New file.
6392         * config/c6x/genopt.sh: New file.
6393         * config/c6x/c6x.opt: New file.
6394         * config/c6x/c6x-tables.opt: New file.
6395         * config/c6x/c6x-opts.h: New file.
6396         * config/c6x/c6x-isas.def: New file.
6397         * config/c6x/elf.h: New file.
6398         * config/c6x/elf-common.h: New file.
6399         * config/c6x/uclinux-elf.h: New file.
6400         * config/c6x/t-c6x: New file.
6401         * config/c6x/t-c6x-elf: New file.
6402         * config/c6x/t-c6x-uclinux: New file.
6403         * config/c6x/t-c6x-softfp: New file.
6404         * config/c6x/gtd.c: New file.
6405         * config/c6x/gtf.c: New file.
6406         * config/c6x/ltd.c: New file.
6407         * config/c6x/ltf.c: New file.
6408         * config/c6x/ged.c: New file.
6409         * config/c6x/gef.c: New file.
6410         * config/c6x/led.c: New file.
6411         * config/c6x/lef.c: New file.
6412         * config/c6x/eqd.c: New file.
6413         * config/c6x/eqf.c: New file.
6414         * config/c6x/libgcc-c6xeabi.ver: New file.
6415
6416         Revert
6417         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6418         PR rtl-optimization/11320
6419         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6420         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6421         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6422         current_sched_info->compute_jump_reg_dependencies. Record which
6423         registers are used and which registers are set by the jump.
6424         Clear deps->reg_conditional_sets after a barrier.
6425         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6426         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6427         (init_deps): Initialize reg_conditional_sets.
6428         (free_deps): Clear reg_conditional_sets.
6429         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6430         Mark registers live on entry of the fallthrough block and conditionally
6431         set as set by the jump. Mark registers live on entry of non-fallthrough
6432         blocks as used by the jump.
6433         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6434         Mark new parameters as unused.
6435
6436 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6437
6438         PR tree-opt/49309
6439         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6440         Use fold_build2_loc instead of build2.
6441         Use the correct type for the new tree.
6442
6443 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6444
6445         PR rtl-optimization/11320
6446         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6447         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6448
6449 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6450
6451         PR target/49487
6452         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6453         of REG.
6454         (*rotw<mode>): Use const_int_operand for operand2.
6455         Use match_scatch for operand3.
6456         (*rotb<mode>): Ditto
6457         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6458
6459 2011-07-14  Richard Guenther  <rguenther@suse.de>
6460
6461         PR tree-optimization/49651
6462         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6463         handle dereferences with subvariables.
6464
6465 2011-07-14  Richard Guenther  <rguenther@suse.de>
6466
6467         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6468         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6469
6470 2011-07-14  Richard Guenther  <rguenther@suse.de>
6471
6472         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6473         not bool_var when folding bool_var != 1 or bool_var == 0.
6474
6475 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6476
6477         * haifa-sched.c (schedule_insns): Remove outdated comment.
6478         (schedule_block): When computing a known value for TODO_SPEC,
6479         just set it rather than using logical operations.
6480         (try_ready): Likewise.  Use a local variable rather than a
6481         pointer to TODO_SPEC.  Reorder an if statement to move the
6482         easy case to the then block.
6483         * sched-deps.c (dep_spec_p): New static function.
6484         (update_dep): Use it to decide whether to call
6485         change_spec_dep_to_hard.
6486         (get_back_and_forw_lists): Use it.
6487         (sd_resolve_dep): Likewise.
6488         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6489         (haifa_note_mem_dep): Likewise.
6490         (check_dep): Likewise.
6491         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6492         (sched_free_deps): Free in two passes.
6493
6494 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6495
6496         PR middle-end/49736
6497         * expr.c (all_zeros_p): Undo bogus part of last change.
6498
6499 2011-07-14  Matthias Klose <doko@ubuntu.com>
6500
6501         * doc/extend.texi (optimize attribute): Fix typo.
6502
6503 2011-07-14  Richard Guenther  <rguenther@suse.de>
6504
6505         * gimplify.c (gimplify_expr): Only do required conversions.
6506
6507 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6508
6509         PR target/43746
6510         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6511         i.e. use default_elf_select_section.
6512         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6513         (READONLY_DATA_SECTION_ASM_OP): Remove.
6514         (TARGET_ASM_NAMED_SECTION): Move from here...
6515         * config/avr/avr.c: ...to here.
6516         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6517         (avr_asm_named_section): Make static.
6518
6519 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6520
6521         PR bootstrap/49739
6522         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6523         and crtfastmath.o for Linux/x86.
6524
6525 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6526
6527         * haifa-sched.c: Include "hashtab.h"
6528         (sched_no_dce): New global variable.
6529         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6530         SHADOW_P): New macros.
6531         (last_clock_var, cycle_issued_insns): Move declarations.
6532         (must_backtrack): New static variable.
6533         (struct delay_pair): New structure.
6534         (delay_htab, delay_htab_i2): New static variables.
6535         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6536         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6537         functions.
6538         (dep_cost_1): If delay pairs exist, try to look up the insns and
6539         use the correct pair delay if we find them.
6540         (rank-for_schedule): Tweak priority for insns that must be scheduled
6541         soon to avoid backtracking.
6542         (queue_insn): Detect conditions which force backtracking.
6543         (ready_add): Likewise.
6544         (struct sched_block_state): Add member shadows_only_p.
6545         (struct haifa_save_data): New structure.
6546         (backtrack_queue): New static variable.
6547         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6548         unschedule_insns_until, restore_last_backtrack_point,
6549         free_topmost_backtrack_point, free_backtrack_queue,
6550         estimate_insn_tick, estimate_shadow_tick): New functions.
6551         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6552         If true, remove everything that isn't SHADOW_P.  Look up delay
6553         pairs and estimate ticks to avoid scheduling the first insn too early.
6554         (verify_shadows): New function.
6555         (schedule_block): Add machinery to enable backtracking.
6556         (sched_init): Take sched_no_dce into account when setting
6557         DF_LR_RUN_DCE.
6558         (free_delay_pairs): New function.
6559         (init_h_i_d): Initialize INSN_EXACT_TICK.
6560         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6561         * sched-deps.c (sd_unresolve_dep): New function.
6562         * sched-int. (struct haifa_sched_info): New fields save_state
6563         and restore_state.
6564         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6565         feeds_backtrack_insn and shadow_p.
6566         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6567         (sched_no_dce): Declare variable.
6568         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6569         sd_unresolve_dep): Declare functions.
6570         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6571         * sched-rgn.c (rgn_const_sched_info): Likewise.
6572         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6573         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6574         (ebb_sched_info): Add them for the two new fields.
6575         (add_deps_for_risky_insns): Call add_delay_dependencies.
6576
6577 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6578
6579         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6580         Rename -mr11.
6581         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6582         (rs6000_call_indirect_aix): Ditto.
6583         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6584         (call_indirect_aix<ptrsize>_internal): Ditto.
6585         (call_indirect_aix<ptrsize>_nor11): Ditto.
6586         (call_indirect_aix<ptrsize>_internal2): Ditto.
6587         (call_value_indirect_aix<ptrsize>): Ditto.
6588         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6589         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6590         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6591         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6592
6593 2011-07-13  Jason Merrill  <jason@redhat.com>
6594
6595         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6596
6597 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6598
6599         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6600         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6601
6602 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6603
6604         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6605         * configure: Regenerate.
6606
6607 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6608
6609         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6610         (asm_file_start): Remove.
6611         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6612         free_bb_for_insn around code that modifies insns before
6613         restarting df analysis.
6614
6615 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6616
6617         PR target/49541
6618         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6619         (LINK_SPEC): ... here.
6620
6621 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6622
6623         * haifa-sched.c (struct sched_block_state): New.
6624         (schedule_block): Move some local variables into such a structure.
6625
6626 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6627
6628         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6629         * config/i386/t-crtpc: Remove.
6630         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6631         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6632         tmake_file.
6633         (x86_64-*-darwin*): Likewise.
6634         (i[34567]86-*-linux*): Likewise.
6635         (x86_64-*-linux*): Likewise.
6636
6637         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6638         Handle -mpc32, -mpc64, -mpc80.
6639
6640 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6641
6642         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6643         * config/alpha/t-crtfm: Remove.
6644         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6645         * config/i386/t-crtfm: Remove.
6646         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6647         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6648         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6649         * config/sparc/t-crtfm: Remove.
6650
6651         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6652         (alpha*-*-freebsd*): Likewise.
6653         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6654         (x86_64-*-darwin*): Likewise.
6655         (i[34567]86-*-linux*): Likewise.
6656         (x86_64-*-linux*): Likewise.
6657         (x86_64-*-mingw*): Likewise.
6658         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6659         (ia64*-*-freebsd*): Likewise.
6660         (ia64*-*-linux*): Likewise.
6661         (mips64*-*-linux*): Likewise.
6662         (mips*-*-linux*): Likewise.
6663         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6664         (sparc64-*-linux*): Likewise.
6665         (sparc64-*-freebsd*): Likewise.
6666
6667 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6668
6669         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6670         * config/darwin-crt3.c: Move to ../libgcc/config.
6671         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6672         ($(T)crt3$(objext)): Remove.
6673         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6674         ($(T)crt2$(objext)): Remove.
6675         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6676         (powerpc64-*-darwin*): Likewise.
6677
6678 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6679
6680         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6681
6682         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6683         (addsi_1_zext): This.
6684
6685 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6686
6687         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6688         * doc/tm.texi: Regenerate.
6689         * target.def (mergeable_rodata_prefix): New defhookpod.
6690         * varasm.c (mergeable_string_section, mergeable_constant_section):
6691         Use it. Allocate name with alloca.
6692
6693 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6694
6695         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6696
6697 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6698
6699         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6700         overlap check.
6701
6702 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6703
6704         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
6705         (count_type_elements): Delete.
6706         (complete_ctor_at_level_p): Declare.
6707         * expr.c (flexible_array_member_p): New function, split out from...
6708         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
6709         parameter with for_ctor_p.  When for_ctor_p is true, return the
6710         number of elements that should appear in the top-level constructor,
6711         otherwise return an estimate of the number of scalars.
6712         (categorize_ctor_elements): Replace p_must_clear with p_complete.
6713         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
6714         (complete_ctor_at_level_p): New function, borrowing union logic
6715         from old categorize_ctor_elements_1.
6716         (mostly_zeros_p): Return true if the constructor is not complete.
6717         (all_zeros_p): Update call to categorize_ctor_elements.
6718         * gimplify.c (gimplify_init_constructor): Update call to
6719         categorize_ctor_elements.  Don't call count_type_elements.
6720         Unconditionally prevent clearing for variable-sized types,
6721         otherwise rely on categorize_ctor_elements to detect
6722         incomplete initializers.
6723
6724 2011-07-13  Richard Guenther  <rguenther@suse.de>
6725
6726         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6727         the final type is integral.
6728
6729 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6730
6731         * sched-int.h (struct _dep): Add member cost.
6732         (DEP_COST, UNKNOWN_DEP_COST): New macros.
6733         * sched-deps.c (init_dep_1): Initialize DEP_COST.
6734         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6735         (sched_change_pattern): Reset it for dependent insns.
6736
6737 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6738
6739         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6740         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6741         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6742         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6743         (CRT0_S, MCRT0_S): Remove.
6744         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6745         Remove.
6746         (s-crt0): Remove.
6747         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6748
6749 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
6750
6751         * cse.c (insert_with_costs): Put semi-colon after empty loop body
6752         on the next line.
6753         * emit-rtl.c (push_to_sequence): Likewise.
6754         * haifa-sched.c (max_issue): Likewise.
6755         * matrix-reorg.c (add_allocation_site): Likewise.
6756         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6757         * reload.c (alternative_allows_const_pool_ref): Likewise.
6758         * sched-rgn.c (rgn_add_block): Likewise.
6759         (rgn_fix_recovery_cfg): Likewise.
6760         * tree.c (attribute_list_contained): Likewise.
6761
6762 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
6763
6764         * config/i386/i386.c: Tidy processor feature bitmasks.
6765         (m_P4_NOCONA): New.
6766
6767 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
6768
6769         PR rtl-opt/49474
6770         * cprop.c (find_implicit_sets): Correct the condition.
6771
6772 2011-07-12  Richard Henderson  <rth@redhat.com>
6773
6774         PR target/49713
6775         * dwarf2out.h (dwarf_frame_regnum): Remove.
6776         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
6777         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
6778         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6779         (execute_dwarf2_frame): Initialize them.
6780         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6781         users of the macros with the variables.
6782         (expand_builtin_dwarf_sp_column): Revert last change.
6783         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
6784         result of DWARF_FRAME_REGNUM into a local variable.
6785
6786 2011-07-12  Richard Henderson  <rth@redhat.com>
6787
6788         PR target/49714
6789         * config/i386/i386.c (x86_output_mi_thunk): Use
6790         machopic_indirect_call_target instead of machopic_indirection_name
6791         directly.
6792
6793 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
6794             Eric Botcazou  <ebotcazou@adacore.com>
6795
6796         * prefix.h: Wrap up in extern "C" block.
6797
6798 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6799
6800         AMD bdver2 Enablement
6801         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6802         (case ${target}): Add bdver2.
6803         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6804         -march=native recognize bdver2 processors.
6805         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6806         bdver2 def_and_undef
6807         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6808         bdver2 cost table.
6809         (m_BDVER2): New definition.
6810         (m_AMD_MULTIPLE): Includes m_BDVER2.
6811         (initial_ix86_tune_features): Add bdver2 tuning.
6812         (processor_target_table): Add bdver2 entry.
6813         (static const char *const cpu_names): Add bdver2 entry.
6814         (ix86_option_override_internal): Add bdver2 instruction sets.
6815         (ix86_issue_rate): Add bdver2.
6816         (ix86_adjust_cost): Add bdver2.
6817         (has_dispatch): Add bdver2.
6818         * config/i386/i386.h (TARGET_BDVER2): New definition.
6819         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6820         (enum processor_type): Add PROCESSOR_BDVER2.
6821         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6822         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6823         description.
6824
6825 2011-07-12  Richard Henderson  <rth@redhat.com>
6826
6827         PR target/49714
6828         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6829         destination address in memory on some paths.
6830
6831 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6832
6833         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6834         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6835         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6836         * function.c (locate_and_pad_parm): Take it into account.
6837         * target.def (function_arg_round_boundary): New hook.
6838         * targhooks.c (default_function_arg_round_boundary): New function.
6839         * targhooks.h (default_function_arg_round_boundary): Declare.
6840         * doc/tm.texi: Regenerate.
6841
6842 2011-07-12  Richard Guenther  <rguenther@suse.de>
6843
6844         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6845         Do not perform no-op changes.
6846
6847 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6848
6849         * config/arm/predicates.md (neon_struct_operand): Make a normal
6850         predicate.
6851         (neon_struct_or_register_operand): New predicate.
6852         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6853         with neon_struct_or_register_operand.
6854         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6855         neon_struct_operand instead of memory_operand.
6856
6857 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6858
6859         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6860         * cgraph.c (cgraph_get_node_or_alias): Removed.
6861         (change_decl_assembler_name): Changed all calls to
6862         cgraph_get_node_or_alias to a call to cgraph_get_node.
6863         (cgraph_make_decl_local): Likewise.
6864         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6865         * varasm.c (default_binds_local_p_1): Likewise.
6866         (decl_binds_to_current_def_p): Likewise.
6867
6868 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6869
6870         PR tree-optimization/49712
6871         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6872
6873 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6874
6875         * genautomata.c (add_arc): Return void.  All callers changed.
6876         (make_automaton): Remove dead code.
6877
6878 2011-07-11  Richard Henderson  <rth@redhat.com>
6879
6880         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6881         (DW_FRAME_POINTER_REGNUM): New.
6882         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6883         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6884         (dwf_regno): New.
6885         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6886         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6887         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6888         Use it.
6889         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6890         * dwarf2out.h (dwarf_frame_regnum): New.
6891         (struct cfa_loc): Document the domain of the reg member.
6892
6893 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6894
6895         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6896         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6897
6898 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6899
6900         PR debug/49676
6901         * dwarf2out.c (int_shift_loc_descriptor): New function.
6902         (int_loc_descriptor): If shorter, emit i as
6903         (i >> shift), shift, DW_OP_shl for suitable shift value.
6904         Similarly, try to optimize large negative values using
6905         DW_OP_neg of a positive value if shorter.
6906         (size_of_int_shift_loc_descriptor): New function.
6907         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6908         changes.
6909         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6910         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6911         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6912         is shorter.
6913         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6914         addend as added DW_OP_plus if it is shorter.
6915
6916 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6917
6918         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6919         (DTORS_SECTION_ASM_OP): Define.
6920
6921 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6922
6923         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6924         * config/t-dfprules: Move to ../libgcc/config.
6925         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6926         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6927         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6928         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6929         Likewise.
6930         (i[34567]86-*-cygwin*): Likewise.
6931         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6932         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6933         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6934         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6935         D64PBIT_FUNCS, D128PBIT_FUNCS.
6936
6937 2011-07-11  Richard Guenther  <rguenther@suse.de>
6938
6939         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6940         translate the source value-range through the conversion chain.
6941
6942 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6943
6944         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6945
6946 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6947
6948         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6949         a bi-arch compiler defaulting to 31-bit. In this case:
6950         (tmake_file): Add s390/t-linux64.
6951         * doc/install.texi: Add s390-linux to the list of targets supporting
6952         --enable-targets=all.
6953
6954 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6955             Matthias Klose <doko@debian.org>
6956
6957         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6958         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6959         (tm_file): Add mips/linux64.h.
6960         (tmake_file): Add mips/t-linux64.
6961         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6962         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6963         instead of hardcoded mabi=n32.
6964         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6965         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6966         convention.
6967
6968 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6969
6970         * passes.c (init_optimization_passes): Add invariant motion pass
6971         after induction variable optimization.
6972
6973 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6974
6975         PR target/39633
6976         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6977         offsets 1..5 set cc0 in a usable way.
6978
6979 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6980
6981         * tree.h (call_expr_arg): Remove.
6982         (call_expr_argp): Likewise.
6983
6984 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6985
6986         * config/sparc/sparc.md (save_register_window_1): Rename to...
6987         (window_save): ...this.
6988         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6989         (emit_window_save): ...this.
6990         (sparc_expand_prologue): Adjust to above renaming.
6991
6992 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6993
6994         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6995         of movabs for x32.
6996
6997 2011-07-10  Richard Henderson  <rth@redhat.com>
6998
6999         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7000         run final, instead of emitting text directly.
7001
7002 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7003
7004         * config/i386/i386.c (ix86_option_override_internal): Turn on
7005         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
7006         small PIC models for TARGET_X32.
7007
7008 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
7009
7010         PR target/49684
7011         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7012         $(LIBGCC2_CFLAGS).
7013
7014         PR bootstrap/49680
7015         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7016         stray notes and debug insns by using prev_nonnote_nondebug_insn
7017         instead of PREV_INSN.
7018
7019 2011-07-09  Richard Henderson  <rth@redhat.com>
7020
7021         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7022         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7023         * dwarf2out.c: ... here.
7024         (output_all_cfis): Remove.
7025         (dwarf2out_switch_text_section): Use output_cfis directly.
7026         (size_of_locs): Export.
7027         (output_loc_sequence, output_loc_sequence_raw): Export.
7028         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7029         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7030         output_cfa_loc_raw): Move to ...
7031         * dwarfcfi.c: ... here.
7032         * dwarf2out.h: Update decls.
7033
7034 2011-07-09  Richard Henderson  <rth@redhat.com>
7035
7036         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7037         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7038         * dwarf2cfi.c: ... here.
7039         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7040         (DWARF_ROUND, DWARF_CIE_ID): Remove.
7041         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7042         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7043         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7044
7045 2011-07-09  Richard Henderson  <rth@redhat.com>
7046
7047         * dwarf2cfi.c (cie_return_save): New.
7048         (queue_reg_save): Use compare_reg_or_pc.
7049         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7050         (dwarf2out_frame_debug_expr): Likewise.
7051         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7052         (initial_return_save): Likewise.
7053         (execute_dwarf2_frame): Save and restore initial return save from
7054         the cie to the fde.
7055         * config/mips/mips.c (mips_frame_set): Remove special case for
7056         DWARF_FRAME_RETURN_COLUMN.
7057
7058 2011-07-09  Richard Henderson  <rth@redhat.com>
7059
7060         * dwarf2cfi.c (lookup_cfa): Remove.
7061         (execute_dwarf2_frame): Assert queues are empty on entry.
7062         Setup initial cfa directly, not via lookup_cfa.
7063         Don't clear args_size state here.
7064
7065 2011-07-09  Richard Henderson  <rth@redhat.com>
7066
7067         * dwarf2cfi.c (add_cfi_vec): New.
7068         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
7069         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
7070         (execute_dwarf2_frame): Set add_cfi_vec.
7071
7072 2011-07-09  Richard Henderson  <rth@redhat.com>
7073
7074         * defaults.h (ASM_COMMENT_START): Move here...
7075         * dwarf2asm.c: ... from here.
7076         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7077         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7078         * varasm.c: Likewise.
7079
7080 2011-07-09  Richard Henderson  <rth@redhat.com>
7081
7082         PR debug/49686
7083         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7084         (create_cfi_notes): ... do it here instead.
7085
7086 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
7087
7088         PR debug/49676
7089         * dwarf2out.c (size_of_int_loc_descriptor): New function.
7090         (address_of_int_loc_descriptor): Use it.
7091         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7092
7093 2011-07-09  Richard Henderson  <rth@redhat.com>
7094
7095         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7096         (prologue, epilogue): New.
7097         (return, *rts): New.
7098         (blockage, setd, seti): New.
7099         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7100         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7101         (pdp11_saved_regno): New.
7102         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7103         generate rtl instead of text.
7104         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7105         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
7106         * config/pdp11/pdp11-protos.h: Update.
7107
7108 2011-07-09  Richard Henderson  <rth@redhat.com>
7109
7110         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7111         try to insert an rtl prologue here.
7112         (rs6000_output_function_epilogue): Similarly.
7113         * config/rs6000/rs6000.md (prologue): Emit a barrier to
7114         satisfy !TARGET_SCHED_PROLOG.
7115         (epilogue, sibcall_epilogue): Likewise.
7116
7117 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
7118
7119         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7120         (FP_REG_P): Delete.
7121         (IN_OR_GLOBAL_P): Likewise.
7122
7123 2011-07-08  Jason Merrill  <jason@redhat.com>
7124
7125         PR c++/45437
7126         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7127         compound assignment.
7128
7129         * cgraph.c (cgraph_add_to_same_comdat_group): New.
7130         * cgraph.h: Declare it.
7131         * ipa.c (function_and_variable_visibility): Make sure thunks
7132         have the right visibility.
7133
7134 2011-07-08  Richard Henderson  <rth@redhat.com>
7135
7136         PR bootstrap/49680
7137         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7138         any tablejump vector.
7139
7140         PR bootstrap/49680
7141         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7142         end of the prologue.
7143
7144 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
7145
7146         PR target/49621
7147         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7148         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7149         * config/rs6000/vector.md (vector_select_<mode>,
7150         vector_select_<mode>_uns): Change second operand of NE to
7151         CONST0_RTX (<MODE>mode) instead of const0_rtx.
7152         * config/rs6000/altivec.md (*altivec_vsel<mode>,
7153         *altivec_vsel<mode>_uns): Expect second operand of NE to be
7154         zero_constant of the corresponding vector mode.
7155         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7156         Likewise.
7157
7158 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7159
7160         * graphite-dependences.c (build_alias_set_powerset): Remove
7161         continue from loop, add one more assert.
7162
7163 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7164
7165         PR target/46779
7166         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7167         In particular, allow 8-bit values in r28 and r29.
7168         (avr_hard_regno_scratch_ok): Disallow any register that might be
7169         part of the frame pointer.
7170         (avr_hard_regno_rename_ok): Same.
7171         (avr_legitimate_address_p): Don't allow SUBREGs.
7172
7173 2011-07-08  Julian Brown  <julian@codesourcery.com>
7174
7175         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7176         big-endian mode.
7177         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7178         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7179         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7180         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7181         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7182         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7183         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7184         registers in big-endian mode.
7185
7186 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7187
7188         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7189         in terms of another.
7190         (write_attr_value): Write a cast if necessary.
7191
7192         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7193         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7194         (REG_WORDS_BIG_ENDIAN): Document.
7195         * doc/tm.texi: Regenerate.
7196         * reload.c (operands_match_p): Take it into account.
7197         (reload_adjust_reg_for_mode): Likewise.
7198         * rtlanal.c (subreg_get_info): Likewise.
7199
7200 2011-07-08  Richard Guenther  <rguenther@suse.de>
7201
7202         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7203         folding.
7204
7205 2011-07-08  Kai Tietz  <ktietz@redhat.com>
7206
7207         * fold-const.c (fold_truth_andor): Factored out truth_andor
7208         label from fold_binary as function.
7209         (fold_binary_loc): Replace truth_andor lable
7210         by function fold_truth_andor.
7211
7212 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
7213
7214         PR middle-end/49519
7215         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7216         check if address is stored in register. If so - give up.
7217         (check_sibcall_argument_overlap_1): Do not perform check of
7218         overlapping when it is call to address.
7219
7220 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7221
7222         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7223         of magic '31'.
7224
7225 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7226
7227         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7228         GET_MODE_BITSIZE where appropriate.
7229         (widen_leading, expand_parity, expand_ctz, expand_ffs,
7230         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7231         expand_float, expand_fix): Likewise.
7232         * expr.c (convert_move, convert_modes, expand_expr_real_2,
7233         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7234         * stor-layout.c (get_mode_bounds): Likewise.
7235         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7236         Likewise.
7237         * convert.c (convert_to_integer): Likewise.
7238         * expmed.c (expand_shift_1): Likewise.
7239
7240         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7241         a bitsize.
7242
7243         * optabs.c (expand_binop): Tighten conditions for doubleword
7244         expansions.
7245         (widen_bswap): Assert that mode bitsize and precision are the same.
7246         * stor-layout.c (get_best_mode): Skip modes that have lower
7247         precision than bitsize.
7248         * recog.c (simplify_while_replacing): Assert that bitsize and
7249         precision are the same.
7250
7251 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7252
7253         * Makefile.in (LIBGCOV): Remove.
7254         (libgcc.mvars): Remove LIBGCOV.
7255         * libgov.c: Move to ../libgcc.
7256
7257 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7258
7259         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7260
7261 2011-07-08  Martin Jambor  <mjambor@suse.cz>
7262
7263         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7264         is too big for total scalarization.
7265
7266 2011-07-07  Richard Henderson  <rth@redhat.com>
7267
7268         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7269         (DBX_DEBUGGING_INFO): Undef.
7270
7271 2011-07-07  Richard Henderson  <rth@redhat.com>
7272
7273         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
7274         Handle some opcodes specially for debugging.
7275         * print-rtl.c: Include dwarf2out.h
7276         (print_rtx): Handle NOTE_INSN_CFI.
7277         * Makefile.in (print-rtl.o): Update.
7278
7279 2011-07-07  Richard Henderson  <rth@redhat.com>
7280
7281         * tree-pass.h (pass_dwarf2_frame): Declare.
7282         * passes.c (init_optimization_passes): Add it.
7283         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7284         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7285         make static, do not call add_cfis_to_fde.
7286         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7287         dwarf2out_frame_init): Merge into...
7288         (execute_dwarf2_frame): ... here.  New function.
7289         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
7290         saved_do_cfi_asm to a tri-state variable.
7291         (gate_dwarf2_frame, pass_dwarf2_frame): New.
7292         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7293         if it has yet to be done.  Don't call dwarf2cfi_function_init.
7294         * dwarf2out.h, debug.h: Update decls.
7295         * final.c (final_start_function): Don't call
7296         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7297         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7298         * toplev.c (lang_dependent_init): Likewise.
7299
7300 2011-07-07  Richard Henderson  <rth@redhat.com>
7301
7302         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7303         FDE_TABLE_INCREMENT): Replace with...
7304         (fde_vec): ... this, a new vector.
7305         (current_fde): Remove.  Replace all users with cfun->fde.
7306         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7307         (size_of_aranges, dwarf2out_finish): Likewise.
7308         (dwarf2out_alloc_current_fde): Break out from ...
7309         (dwarf2out_begin_prologue): ... here.
7310         (dwarf2out_frame_init): Remove.
7311         * dwarf2cfi.c: Update all users of current_fde.
7312         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7313         * dwarf2out.h: Update decls.
7314         (dw_fde_node): Add fde_index member.
7315         * function.h (struct function): Add fde member.
7316
7317 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7318             Richard Henderson  <rth@redhat.com>
7319
7320         * dwarf2cfi.c (add_cfi): Remove.
7321         (dwarf2out_cfi_label): Remove force argument.  Only generate the
7322         label name.
7323         (add_fde_cfi): Simplify the different code paths.
7324         (add_cie_cfi): New.
7325         (old_cfa, old_cfa_remember): New.
7326         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7327         (last_reg_save_label): Remove.
7328         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7329         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7330         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7331         dwarf2out_frame_debug_cfa_expression,
7332         dwarf2out_frame_debug_cfa_restore,
7333         dwarf2out_frame_debug_cfa_window_save,
7334         dwarf2out_frame_debug_expr): Remove label parameter.
7335         (cfi_label_required_p, add_cfis_to_fde): New.
7336         (dwarf2out_frame_debug_after_prologue): New.
7337         (dwarf2cfi_frame_init): Initialize old_cfa.
7338         (dwarf2out_frame_debug_restore_state): Likewise.
7339         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7340         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7341         * final.c (final_start_function): Call
7342         dwarf2out_frame_debug_after_prologue.
7343
7344 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7345             Richard Henderson  <rth@redhat.com>
7346
7347         * dwarf2cfi.c (cfi_insn): New.
7348         (dwarf2out_cfi_label): Don't emit cfi label here.
7349         (add_fde_cfi): Create a NOTE_INSN_CFI.
7350         (dwarf2out_frame_debug): Setup cfi_insn.
7351         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7352         (dwarf2out_cfi_begin_epilogue): Make static.
7353         (dwarf2out_frame_debug_restore_state): Make static.
7354         * dwarf2out.c (output_cfi_directive): Make static.
7355         (dwarf2out_emit_cfi): New.
7356         * dwarf2out.h: Update.
7357         * final.c (final): Remove CFI notes.
7358         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7359         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7360         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7361         * insn-notes.def (NOTE_INSN_CFI): New.
7362         (NOTE_INSN_CFI_LABEL): New.
7363         * rtl.h (union rtunion_def): Add rt_cfi member.
7364         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7365
7366 2011-07-07  Richard Henderson  <rth@redhat.com>
7367
7368         * dwarf2cfi.c: New file.
7369         * Makefile.in (OBJS): Add it.
7370         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7371         * gengtype.c (open_base_files): Include dwarf2out.h.
7372         * coretypes.h (enum var_init_status): Move from ...
7373         * rtl.h: ... here.
7374         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7375         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7376         expand_builtin_dwarf_sp_column, init_return_column_size,
7377         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7378         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7379         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7380         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7381         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7382         compute_barrier_args_size, dwarf2out_args_size,
7383         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7384         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7385         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7386         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7387         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7388         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7389         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7390         dwarf2out_frame_debug_cfa_expression,
7391         dwarf2out_frame_debug_cfa_restore,
7392         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7393         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7394         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7395         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7396         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7397         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7398         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7399         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7400         dw_loc_descr_node): Move to dwarf2out.h.
7401         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7402         mem_loc_descriptor): Export.
7403         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7404         (dwarf2out_frame_init): Extract CIE generation code to
7405         dwarf2cfi_frame_init.
7406
7407 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7408
7409         PR target/49660
7410         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7411         MASK_V8PLUS, remove commented out flag and reorder.
7412
7413 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7414
7415         PR c/49644
7416         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7417         one non-complex and one complex argument, call c_save_expr on both
7418         operands.
7419
7420 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7421
7422         PR middle-end/49495
7423         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7424         (verify_cgraph_node): Some functinality moved to
7425         verify_edge_corresponds_to_fndecl, call it.
7426
7427 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7428
7429         * config.gcc (*local*): Remove.
7430         * doc/install-old.texi: Don't mention local configurations.
7431
7432 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR debug/49522
7435         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7436         referencing debug insns that have been reset.
7437         (dead_debug_insert_before): Don't assert reg is non-NULL,
7438         instead return immediately if it is NULL.
7439
7440 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7441
7442         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7443
7444 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7445
7446         * hw-doloop.c: New file.
7447         * hw-doloop.h: New file.
7448         * Makefile.in (OBJS): Add hw-doloop.o.
7449         (hw-doloop.o): New rule.
7450         ($(obj_out_file)): Add hw-doloop.h dependency.
7451         * config/bfin/bfin.c: Include "hw-doloop.h".
7452         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7453         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7454         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7455         type changed to hwloop_info.  Return bool, true if the loop was
7456         successfully optimized.  Remove code that was moved to
7457         hw-doloop.c, and adjust other parts.
7458         (hwloop_fail): New static function, containing parts that used
7459         to be in bfin_optimize_loop.
7460         (bfin_discover_loop, bfin_discover_loops, free_loops,
7461         bfin_reorder_loops): Remove.
7462         (hwloop_pattern_reg): New static function.
7463         (bfin_doloop_hooks): New variable.
7464         (bfin_reorg_loops): Remove most code, call reorg_loops.
7465         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7466         loop counter is a memory_operand.
7467
7468 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7469
7470         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7471
7472         * configure.ac: Mention x86-64 for --with-multilib-list.
7473         * configure: Regenerated.
7474
7475         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7476         (SPEC_32): Likewise.
7477         (ASM_SPEC): Likewise.
7478         (LINK_SPEC): Likewise.
7479         (TARGET_THREAD_SSP_OFFSET): Likewise.
7480         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7481         (SPEC_X32): New.
7482
7483         * config/i386/i386.h (TARGET_X32): New.
7484         (TARGET_LP64): New.
7485         (LONG_TYPE_SIZE): Likewise.
7486         (POINTER_SIZE): Likewise.
7487         (POINTERS_EXTEND_UNSIGNED): Likewise.
7488         (OPT_ARCH64): Support x32.
7489         (OPT_ARCH32): Likewise.
7490
7491         * config/i386/i386.opt (mx32): New.
7492
7493         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7494         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7495         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7496         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7497
7498         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7499         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7500         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7501
7502         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7503
7504         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7505
7506         * doc/invoke.texi: Document -mx32.
7507
7508 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7509
7510         * doc/invoke.texi (mwords-little-endian): Deprecate.
7511         * config/arm/arm.opt (mwords-little-endian): Likewise.
7512         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7513         of -mwords-little-endian.
7514
7515 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7516
7517         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7518         an old reload register completely defines the required value.
7519
7520 2011-07-07  Richard Guenther  <rguenther@suse.de>
7521
7522         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7523         for NEGATE_EXPR.
7524
7525 2011-07-07  Richard Guenther  <rguenther@suse.de>
7526
7527         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7528         (simplify_stmt_using_ranges): Call it.
7529
7530 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7531
7532         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7533         (lookup_logical_inverted_value): Likewise.
7534         (simplify_bitwise_binary_1): Likewise.
7535         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7536
7537 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7538
7539         * gcc.c (%[Spec]): Don't document.
7540         (struct spec_list): Update comment.
7541         (do_spec_1): Don't handle %[Spec].
7542         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7543
7544 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7545
7546         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7547         default based on TARGET_ASM_NAMED_SECTION.
7548         * common/common-target.def (have_named_sections): Default to true.
7549         * common/config/default-common.c: Don't include tm.h.
7550         * common/config/picochip/picochip-common.c
7551         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7552         * common/config/m32c/m32c-common.c: Remove.
7553         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7554         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7555         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7556         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7557         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7558         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7559         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7560
7561 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7562
7563         PR middle-end/49640
7564         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7565         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7566
7567 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7568
7569         PR libmudflap/49550
7570         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7571
7572 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7573
7574         PR target/39150
7575         * configure.ac (gcc_cv_as_hidden): Also accept
7576         x86_64-*-solaris2.1[0-9]*.
7577         (gcc_cv_as_cfi_directive): Likewise.
7578         (gcc_cv_as_comdat_group_group): Likewise.
7579         (set_have_as_tls): Likewise.
7580         * configure: Regenerate.
7581         * config.gcc (i[34567]86-*-solaris2*): Also handle
7582         x86_64-*-solaris2.1[0-9]*.
7583         * config.host (i[34567]86-*-solaris2*): Likewise.
7584         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7585         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7586         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7587         (TARGET_LD_EMULATION): Use it.
7588         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7589         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7590         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7591         (ASM_CPU64_DEFAULT_SPEC): Define.
7592         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7593         (ASM_SPEC): Redefine.
7594         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7595         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7596         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7597         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7598         configuration.
7599         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7600
7601 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7602
7603         * config/sol2.h (ASM_SPEC): Split into ...
7604         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7605         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7606         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7607         (ASM_SPEC): Use ASM_SPEC_BASE.
7608         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7609
7610 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7611
7612         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7613         const_int_operand.  Ditto for peep2 producing this insn.
7614         Add argument to output_reload_insisf call.
7615         (*movsi,*movsf): Add argument to output_movsisf call.
7616         (*reload_insf): New insn and new peep2 to produce it.
7617         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7618         (output_reload_insisf): Change prototype.
7619         * config/avr/avr.c (avr_asm_len): New function.
7620         (output_reload_insisf): Rewrite.
7621         (output_movsisf): Change prototype.  output_reload_insisf for
7622         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7623         (adjust_insn_length): Add argument to output_movsisf and
7624         output_reload_insisf call.
7625
7626 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7627
7628         * emit-rtl.c (paradoxical_subreg_p): New function.
7629         * rtl.h (paradoxical_subreg_p): Declare.
7630         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7631         apply_distributive_law, simplify_comparison, simplify_set): Use it.
7632         * cse.c (record_jump_cond, cse_insn): Likewise.
7633         * expr.c (force_operand): Likewise.
7634         * rtlanal.c (num_sign_bit_copies1): Likewise.
7635         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7636         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7637         (push_reload): Use precision to check for paradoxical subregs.
7638         * expmed.c (extract_bit_field_1): Likewise.
7639
7640         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7641         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7642         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7643         simplify_set, simplify_logical, expand_compound_operation,
7644         make_extraction, force_to_mode, if_then_else_cond, extended_count,
7645         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7646         record_value_for_reg): Likewise.
7647         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7648         * simplify-rtx. c (simplify_unary_operation_1,
7649         simplify_binary_operation_1, simplify_const_relational_operation):
7650         Likewise.
7651
7652         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7653         instead of GET_MODE_BITSIZE where appropriate.
7654         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7655         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7656         init_num_sign_bit_copies_in_rep): Likewise.
7657         * cse.c (fold_rtx, cse_insn): Likewise.
7658         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7659         * simplify-rtx.c (simplify_unary_operation_1,
7660         simplify_const_unary_operation, simplify_binary_operation_1,
7661         simplify_const_binary_operation, simplify_ternary_operation,
7662         simplify_const_relational_operation, simplify_subreg): Likewise.
7663         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7664         simplify_if_then_else, simplify_set, expand_compound_operation,
7665         expand_field_assignment, make_extraction, if_then_else_cond,
7666         make_compound_operation, force_to_mode, make_field_assignment,
7667         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7668         extended_count, try_widen_shift_mode, simplify_shift_const_1,
7669         simplify_comparison, record_promoted_value, simplify_compare_const,
7670         record_dead_and_set_regs_1): Likewise.
7671
7672         Revert:
7673         * simplify-rtx.c (simplify_const_binary_operation): Use the
7674         shift_truncation_mask hook instead of performing modulo by width.
7675         Compare against mode precision, not bitsize.
7676         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7677         Use shift_truncation_mask instead of constructing the value manually.
7678
7679 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7680
7681         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7682         declaration.
7683         (rs6000_save_toc_in_prologue_p): Ditto.
7684
7685         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7686         up the static chain (r11) during indirect function calls.
7687         (-msave-toc-indirect): New undocumented debug switch.
7688
7689         * config/rs6000/rs6000.c (struct machine_function): Add
7690         save_toc_in_prologue field to note whether the prologue needs to
7691         save the TOC value in the reserved stack location.
7692         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
7693         to save the TOC in the prologue, do so.
7694         (rs6000_trampoline_init): Don't allow creating AIX style
7695         trampolines if -mno-r11 is in effect.
7696         (rs6000_call_indirect_aix): New function to create AIX style
7697         indirect calls, adding support for -mno-r11 to suppress loading
7698         the static chain, and saving the TOC in the prologue instead of
7699         the call body.
7700         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7701         TOC in the prologue.
7702
7703         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7704         register numbers.
7705         (TOC_REGNUM): Ditto.
7706         (STATIC_CHAIN_REGNUM): Ditto.
7707         (ARG_POINTER_REGNUM): Ditto.
7708         (SFP_REGNO): Delete, unused.
7709         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7710         function descriptor offsets.
7711         (TOC_SAVE_OFFSET_64BIT): Ditto.
7712         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7713         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7714         (AIX_FUNC_DESC_SC_32BIT): Ditto.
7715         (AIX_FUNC_DESC_SC_64BIT): Ditto.
7716         (ptrload): New mode attribute for the appropriate load of a pointer.
7717         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7718         (call_indirect_aix64): Ditto.
7719         (call_value_indirect_aix32): Ditto.
7720         (call_value_indirect_aix64): Ditto.
7721         (call_indirect_nonlocal_aix32_internal): Ditto.
7722         (call_indirect_nonlocal_aix32): Ditto.
7723         (call_indirect_nonlocal_aix64_internal): Ditto.
7724         (call_indirect_nonlocal_aix64): Ditto.
7725         (call): Rewrite AIX indirect function calls.  Add support for
7726         eliminating the static chain, and for moving the save of the TOC
7727         to the function prologue.
7728         (call_value): Ditto.
7729         (call_indirect_aix<ptrsize>): Ditto.
7730         (call_indirect_aix<ptrsize>_internal): Ditto.
7731         (call_indirect_aix<ptrsize>_internal2): Ditto.
7732         (call_indirect_aix<ptrsize>_nor11): Ditto.
7733         (call_value_indirect_aix<ptrsize>): Ditto.
7734         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7735         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7736         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7737         (call_nonlocal_aix32): Relocate in the rs6000.md file.
7738         (call_nonlocal_aix64): Ditto.
7739
7740         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7741         -mno-r11 documentation.
7742
7743 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7744
7745         PR other/49658
7746         * doc/extend.texi (Compound Literals): Fix typo.
7747
7748 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
7749
7750         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7751
7752 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
7753
7754         * configure.ac (plugin-version.h): Generate
7755         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7756         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7757         macros.
7758
7759         * configure: Regenerate.
7760
7761         * doc/plugins.texi (Building GCC plugins): Mention
7762         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7763
7764 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7765
7766         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7767         * combine.c (make_extraction, gen_lowpart_or_truncate,
7768         apply_distributive_law, simplify_comparison,
7769         reg_truncated_to_mode, record_truncated_value): Use it.
7770         * cse.c (notreg_cost): Likewise.
7771         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7772         * expr.c (convert_move, convert_modes): Likewise.
7773         * optabs.c (expand_binop, expand_unop): Likewise.
7774         * postreload.c (move2add_last_label): Likewise.
7775         * regmove.c (optimize_reg_copy_3): Likewise.
7776         * rtlhooks.c (gen_lowpart_general): Likewise.
7777         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7778
7779 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
7780
7781         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7782
7783 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7784
7785         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7786         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7787         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7788         (simplify_const_unary_operation, simplify_binary_operation_1,
7789         simplify_const_binary_operation, simplify_const_relational_operation):
7790         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
7791         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7792         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7793         simplify_shift_const_1, simplify_comparison): Likewise.
7794         * expr.c (convert_modes): Likewise.
7795         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7796         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7797         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7798
7799         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7800
7801 2011-07-06  Richard Guenther  <rguenther@suse.de>
7802
7803         PR tree-optimization/49645
7804         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7805         register variables.
7806         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7807         in type qualification here ...
7808         (copy_reference_ops_from_ref): ... not here.
7809         (vn_reference_lookup_3): ... or here.
7810         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7811         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7812
7813 2011-07-06  Ian Lance Taylor  <iant@google.com>
7814
7815         * doc/install.texi (Configuration): It's
7816         --enable-gnu-indirect-function, not --enable-indirect-function.
7817
7818 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7819
7820         * simplify-rtx.c (simplify_const_binary_operation): Use the
7821         shift_truncation_mask hook instead of performing modulo by width.
7822         Compare against mode precision, not bitsize.
7823         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7824         Use shift_truncation_mask instead of constructing the value manually.
7825
7826 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7827
7828         PR middle-end/47383
7829         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7830         address computation and convert to address_mode if needed.
7831
7832 2011-07-06  Richard Guenther  <rguenther@suse.de>
7833
7834         * tree.c (build_common_tree_nodes_2): Merge with
7835         build_common_tree_nodes.
7836         * tree.h (build_common_tree_nodes): Adjust prototype.
7837         (build_common_tree_nodes_2): Remove.
7838         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7839         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7840
7841 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7842
7843         PR tree-optimization/49618
7844         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7845         t recurse on the decl.
7846         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7847         return true if expr isn't known to be defined in current
7848         TU or some other LTO partition.
7849
7850 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7851
7852         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7853         override CASE_VALUES_THRESHOLD.
7854
7855         * stmt.c (toplevel): Include params.h.
7856         (case_values_threshold): Use the --param case-values-threshold
7857         value if non-zero, otherwise use machine dependent value.
7858         (expand_case): Use case_values_threshold.
7859
7860         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7861
7862         * doc/invoke.texi (--param case-values-threshold): Document.
7863
7864 2011-07-05  Richard Henderson  <rth@redhat.com>
7865
7866         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7867         (dwarf2out_flush_queued_reg_saves): Make static.
7868         (dwarf2out_reg_save): Remove.
7869         (dwarf2out_return_save): Remove.
7870         (dwarf2out_return_reg): Remove.
7871         (dwarf2out_reg_save_reg): Remove.
7872         (dwarf2out_def_cfa): Merge into ...
7873         (dwarf2out_frame_init): ... here.
7874         * dwarf2out.h, tree.h: Remove declarations as necessary.
7875
7876 2011-07-05  Richard Henderson  <rth@redhat.com>
7877
7878         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7879         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7880         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7881         the alloc insn.
7882
7883         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7884         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7885         (process_epilogue): Don't call dwarf2out_def_cfa.
7886
7887         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7888         indicate the return address save.
7889         (process_cfa_register): Likewise.
7890
7891         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7892         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7893
7894         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7895         for ar.pfs save at alloc insn.
7896
7897 2011-07-05  Richard Henderson  <rth@redhat.com>
7898
7899         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7900         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7901         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7902         stack pointer save.
7903         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7904         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7905         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7906         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7907
7908 2011-07-05  Richard Henderson  <rth@redhat.com>
7909
7910         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7911         VUNSPEC_* constants here instead of via define_constants.
7912         (VUNSPEC_PEM): New constant.
7913         (procedure_entry_mask): New insn.
7914         (prologue): New expander.
7915         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7916         (vax_expand_prologue): Rename from vax_output_function_prologue;
7917         emit rtl instead of text.
7918         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7919         (print_operand): Add 'x' prefix.
7920
7921 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7922
7923         PR middle-end/47715
7924         * calls.c (precompute_register_parameters): Promote the function
7925         argument before checking non-legitimate constant.
7926
7927 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7928
7929         PR tree-optimization/47654
7930         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7931         (lst_do_strip_mine_loop): Return an int.
7932         (lst_do_strip_mine): Same.
7933         (scop_do_strip_mine): Same.
7934         (scop_do_block): Loop blocking should strip-mine at least two loops.
7935         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7936         (scop_do_interchange): Same.
7937         * graphite-poly.h (scop_do_interchange): Update declaration.
7938         (scop_do_strip_mine): Same.
7939
7940 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7941
7942         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7943         (precision_for_interval): Removed.
7944         (gcc_type_for_interval): Use mpz_sizeinbase.
7945
7946 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7947
7948         * graphite-ppl.h (value_max): Correct computation of max.
7949
7950 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7951
7952         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7953
7954 2011-07-05  Richard Guenther  <rguenther@suse.de>
7955
7956         * c-decl.c (c_init_decl_processing): Defer building common
7957         tree nodes to c_common_nodes_and_builtins.
7958
7959 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7960
7961         PR tree-optimization/49580
7962         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7963         the loop's number of iterations.
7964         * tree-parloops.c (transform_to_exit_first_loop): Add the
7965         handling of the loop's number of iterations before the call
7966         to gimple_duplicate_sese_tail.
7967         Insert the stmt caclculating the new rhs of the loop's
7968         condition stmt to the preheader instead of iters_bb.
7969
7970 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7971
7972         PR rtl-optimization/47449
7973         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7974         register nor zero/sign extended hard register.
7975
7976 2011-07-05  Richard Guenther  <rguenther@suse.de>
7977
7978         PR tree-optimization/49518
7979         PR tree-optimization/49628
7980         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7981         irrelevant and invariant data-references.
7982         (vect_analyze_data_ref_access): For invariant loads clear the
7983         group association.
7984
7985 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7986
7987         PR rtl-optimization/49619
7988         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7989         pass VOIDmode as op0_mode to recursive call, and return temp even
7990         when different from tor, just if it is not IOR of the original
7991         PLUS arguments.
7992
7993         PR rtl-optimization/49472
7994         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7995         negating MULT, negate the second operand instead of first.
7996         (simplify_binary_operation_1) <case MULT>: If one operand is
7997         a NEG and the other is MULT, don't attempt to optimize by negation
7998         of the MULT operand if it only moves the NEG operation around.
7999
8000         PR debug/49602
8001         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8002         get_current_def return value if it can't be trusted to be
8003         the current value of the variable in the current bb.
8004
8005 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
8006
8007         PR target/49600
8008         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8009         general register to memory for !TARGET_INTER_UNIT_MOVES.
8010
8011 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8012
8013         PR target/44643
8014         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8015         instead of TREE_READONLY.
8016
8017 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8018
8019         * doc/extend.texi (AVR Built-in Functions): Update documentation
8020         of __builtin_avr_fmul*.
8021         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8022         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8023         * config/avr/avr.md (fmul): Rename to fmul_insn.
8024         (fmuls): Rename to fmuls_insn.
8025         (fmulsu): Rename to fmulsu_insn.
8026         (fmul,fmuls,fmulsu): New expander.
8027         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8028         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8029         * config/avr/libgcc.S (__fmul): New function.
8030         (__fmuls): New function.
8031         (__fmulsu,__fmulsu_exit): New function.
8032
8033 2011-07-04  Richard Guenther  <rguenther@suse.de>
8034
8035         PR tree-optimization/49615
8036         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8037         basic-block index check.
8038
8039 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8040
8041         * longlong.h (count_leading_zeros, count_trailing_zeros,
8042         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8043         resp. 64.
8044
8045 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
8046
8047         PR tree-optimization/49610
8048         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8049         a basic block.
8050
8051 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8052             Olivier Hainque  <hainque@adacore.com>
8053             Nicolas Setton  <setton@adacore.com>
8054
8055         * tree.h (TYPE_ARTIFICIAL): New flag.
8056         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8057         the DIE of the type if it is artificial.
8058         (gen_array_type_die): Likewise.
8059         (gen_enumeration_type_die): Likewise.
8060         (gen_struct_or_union_type_die): Likewise.
8061         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8062         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8063
8064 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8065
8066         * tree-object-size.c (pass_through_call): Handle
8067         BUILT_IN_ASSUME_ALIGNED.
8068
8069 2011-07-01  Martin Jambor  <mjambor@suse.cz>
8070
8071         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8072
8073 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
8074
8075         PR middle-end/48016
8076         * explow.c (update_nonlocal_goto_save_area): Use proper mode
8077         for stack save area.
8078         * function.c (expand_function_start): Likewise.
8079
8080 2011-07-01  Richard Guenther  <rguenther@suse.de>
8081
8082         PR middle-end/49596
8083         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8084         may have unknown refs.
8085
8086 2011-07-01  Kai Tietz  <ktietz@redhat.com>
8087
8088         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8089
8090 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8091
8092         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8093         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8094         (Specific, mips-sgi-irix6): Likewise.
8095
8096 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8097
8098         PR libmudflap/49549
8099         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8100
8101 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8102
8103         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8104         [idx]= and [idx1 ... idx2]= before initializers if needed for
8105         array initializers.
8106
8107 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
8108
8109         * config.gcc (score-*-elf): Remove score7.o.
8110         * config/score/t-score-elf: Likewise.
8111         * config/score/score.c: Merge score7 to score.c and
8112         remove forwarding functions.
8113         * config/score/score7.c: Deleted.
8114         * config/score/score7.h: Deleted.
8115
8116 2011-07-01  Richard Guenther  <rguenther@suse.de>
8117
8118         PR tree-optimization/49603
8119         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8120
8121 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8122
8123         * tree-sra.c (struct access): Rename total_scalarization to
8124         grp_total_scalarization
8125         (completely_scalarize_var): New function.
8126         (sort_and_splice_var_accesses): Set total_scalarization in the
8127         representative access.
8128         (analyze_access_subtree): Propagate total scalarization accross the
8129         tree, no holes in totally scalarized trees, simplify coverage
8130         computation.
8131         (analyze_all_variable_accesses): Call completely_scalarize_var instead
8132         of completely_scalarize_record.
8133
8134 2011-06-30  Richard Henderson  <rth@redhat.com>
8135
8136         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8137         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8138         * config/i386/i386.c: Don't include dwarf2out.h.
8139         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8140         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8141         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
8142         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8143         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8144
8145 2011-06-30  Richard Henderson  <rth@redhat.com>
8146
8147         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8148         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8149         * final.c (final_scan_insn): Look for it, and invoke
8150         dwarf2out_frame_debug before the insn if found.
8151
8152 2011-06-30  Richard Henderson  <rth@redhat.com>
8153
8154         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8155         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8156
8157 2011-06-30  Richard Henderson  <rth@redhat.com>
8158
8159         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8160         Define a vector of this type.
8161         (regs_saved_in_regs): Use a VEC.
8162         (num_regs_saved_in_regs): Remove.
8163         (compare_reg_or_pc): New.
8164         (record_reg_saved_in_reg): Split out from...
8165         (dwarf2out_flush_queued_reg_saves): ... here.
8166         (clobbers_queued_reg_save): Update for VEC.
8167         (reg_saved_in): Likewise.
8168         (dwarf2out_frame_debug_init): Likewise.
8169         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8170         (dwarf2out_frame_debug_cfa_register): Likewise.
8171
8172 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8173
8174         PR tree-optimization/49572
8175         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8176         type of the RHS instead of that of the LHS for the expression type.
8177
8178 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8179
8180         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8181         unconditionally.
8182
8183 2011-06-30  Richard Guenther  <rguenther@suse.de>
8184
8185         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8186         * tree-ssa-structalias.c (create_variable_info_for): Do not
8187         add initial constraints for non-var-decls.  Properly handle
8188         globals in other ltrans partitions.
8189         (intra_create_variable_infos): Manually create constraints for
8190         the fake no-alias parameter.
8191         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8192         and assert there are no clones.
8193
8194 2011-06-30  Richard Guenther  <rguenther@suse.de>
8195
8196         PR tree-optimization/46787
8197         * tree-data-ref.c (dr_address_invariant_p): Remove.
8198         (find_data_references_in_stmt): Invariant accesses are ok now.
8199         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8200         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8201         invariant loads.
8202
8203 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8204
8205         PR tree-optimization/49094
8206         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8207         (build_accesses_from_assign): Use it.
8208
8209 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8210
8211         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8212         handling of BUILT_IN_ASSUME_ALIGNED.
8213
8214         PR debug/49364
8215         * dwarf2out.c (output_abbrev_section): Don't return early
8216         if abbrev_die_table_in_use is 1.
8217         (dwarf2out_finish): Instead don't call output_abbrev_section
8218         nor emit abbrev_section_label in that case.
8219
8220 2011-06-30  Nick Clifton  <nickc@redhat.com>
8221
8222         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8223         for the V850E.
8224
8225 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8226
8227         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8228         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8229
8230 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
8231
8232         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8233         both pattern and original statements if necessary.
8234         (vect_transform_loop): Likewise.
8235         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8236         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8237         Mark the pattern statement only if the original statement doesn't
8238         have its own uses.
8239         (process_use): Call vect_mark_relevant with additional parameter.
8240         (vect_mark_stmts_to_be_vectorized): Likewise.
8241         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8242         (vect_analyze_stmt): Handle both pattern and original statements
8243         if necessary.
8244         (vect_transform_stmt): Don't store vectorized pattern statement
8245         in the original statement.
8246         (vect_is_simple_use_1): Use related pattern statement only if the
8247         original statement is irrelevant.
8248         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8249
8250 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
8251
8252         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8253         option.
8254         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8255         entry.
8256         (TARGET_AVX128_OPTIMAL): New definition.
8257         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8258         X86_TUNE_AVX128_OPTIMAL entry.
8259         (ix86_option_override_internal): Enable the generation
8260         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8261         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8262         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8263
8264 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8265
8266         PR tree-optimization/49539
8267         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8268         names by means of stmt_references_abnormal_ssa_name.
8269         (associate_plusminus): Call can_propagate_from before propagating
8270         from definition statements.
8271         (ssa_forward_propagate_and_combine): Remove superfluous newline.
8272
8273 2011-06-29  Richard Guenther  <rguenther@suse.de>
8274
8275         * doc/invoke.texi: Document -scev dump modifier.
8276         * tree-pass.h (TDF_SCEV): New dump flag.
8277         * tree-dump.c (dump_option_value_in): Add scev.
8278         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8279         * tree-scalar-evolution.c: Likewise.
8280
8281 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8282
8283         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8284         (cxa_type_match): Correct declaration.
8285         (__gnu_unwind_pr_common): Reconstruct additional indirection
8286         when __cxa_type_match returns succeeded_with_ptr_to_base.
8287
8288 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8289
8290         PR rtl-optimization/49114
8291         * reload.c (struct replacement): Remove SUBREG_LOC member.
8292         (push_reload): Do not set it.
8293         (push_replacement): Likewise.
8294         (subst_reload): Remove dead code.
8295         (copy_replacements): Remove assertion.
8296         (copy_replacements_1): Do not handle SUBREG_LOC.
8297         (move_replacements): Likewise.
8298         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
8299         Detect subregs via recursive descent instead of via SUBREG_LOC.
8300
8301 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8302
8303         * config/avr/avr.c (avr_encode_section_info): Dispatch to
8304         default_encode_section_info.
8305
8306 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
8307
8308         PR tree-optimization/49545
8309         * builtins.c (get_object_alignment_1): Update function comment.
8310         Do not use DECL_ALIGN for functions, but test
8311         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8312         * fold-const.c (get_pointer_modulus_and_residue): Don't check
8313         for functions here.
8314         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8315
8316 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
8317
8318         PR debug/49567
8319         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8320         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8321
8322 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8323
8324         PR target/34734
8325         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8326         about uninitialized data attributed 'progmem' from here...
8327         (avr_encode_section_info): ...to this new function.
8328         (TARGET_ENCODE_SECTION_INFO): New define.
8329         (avr_section_type_flags): For data in ".progmem.data", remove
8330         section flag SECTION_WRITE.
8331
8332 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8333
8334         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8335         _xmulhisi3_exit.
8336         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8337         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8338         (__umulhisi3): Ditto.
8339         * config/avr/avr.md (mulhisi3): New insn expender.
8340         (umulhisi3): New insn expender.
8341         (*mulhisi3_call): New insn.
8342         (*umulhisi3_call): New insn.
8343
8344 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8345
8346         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8347
8348 2011-06-28  Richard Henderson  <rth@redhat.com>
8349
8350         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8351         all code and arguments that handled pushes.  Update all callers.
8352
8353 2011-06-28  Richard Henderson  <rth@redhat.com>
8354
8355         * config/arm/arm.c (arm_output_function_prologue): Don't call
8356         thumb1_output_function_prologue.
8357         (arm_expand_prologue): Avoid dead store.
8358         (number_of_first_bit_set): Use ctz_hwi.
8359         (thumb1_emit_multi_reg_push): New.
8360         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8361         to emit the entire prologue as rtl.
8362         (thumb1_output_interwork): Split out from
8363         thumb1_output_function_prologue.
8364         (thumb1_output_function_prologue): Remove.
8365         (arm_attr_length_push_multi): Handle thumb1.
8366         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8367         (prologue_thumb1_interwork): New.
8368         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8369         * config/arm/predicates.md (push_mult_memory_operand): New.
8370
8371 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8372
8373         * config/sparc/sync.md (*stbar): Delete.
8374         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8375
8376 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8377
8378         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8379
8380 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8381
8382         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8383         (TARGET_64BIT_DEFAULT): Define.
8384         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8385         of tm_file.
8386         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8387
8388 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8389
8390         * common.opt (in_lto_p): New Variable entry.
8391         * flags.h (in_lto_p): Move to common.opt.
8392         * gcc.c: Include params.h.
8393         (set_option_handlers): Also use common_handle_option and
8394         target_handle_option.
8395         (main): Call global_init_params, finish_params and init_options_struct.
8396         * opts.c (debug_type_names): Move from toplev.c.
8397         (print_filtered_help): Access quiet_flag through opts pointer.
8398         (common_handle_option): Return early in the driver for some options.
8399         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8400         opts pointer.
8401         * toplev.c (in_lto_p): Move to common.opt.
8402         (debug_type_names): Move to opts.c.
8403         * Makefile.in (OBJS): Remove opts.o.
8404         (OBJS-libcommon-target): Add opts.o.
8405         (gcc.o): Update dependencies.
8406
8407 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8408
8409         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8410
8411 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8412
8413         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8414         with '=' constraint modifier.
8415         (*divdf3_vfp): Likewise.
8416         ("*mulsf3_vfp"): Likewise.
8417         ("*muldf3_vfp"): Likewise.
8418         ("*mulsf3negsf_vfp"): Likewise.
8419         ("*muldf3negdf_vfp"): Likewise.
8420
8421 2011-06-28  Nick Clifton  <nickc@redhat.com>
8422
8423         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8424         relaxation when performing an incremental link.
8425
8426 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8427
8428         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8429         within BB from last to first.
8430
8431 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8432
8433         * genattr-common.c: New.  Based on genattr.c.
8434         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8435         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8436         (opts.o): Update dependencies.
8437         (.PRECIOUS): Add insn-attr-common.h.
8438         (simple_rtl_generated_h): Add insn-attr-common.h.
8439         (build/genattr-common.o): New.
8440         (genprogrtl): Add attr-common.
8441         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8442         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8443         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8444
8445 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8446
8447         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8448         avr-*-* and avr-*-rtems* targets.
8449
8450         * config/avr/elf.h: New file.
8451         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8452         (TARGET_ASM_SELECT_SECTION): Define.
8453         (INIT_SECTION_ASM_OP): Undefine.
8454         (FINI_SECTION_ASM_OP): Undefine.
8455         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8456         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8457         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8458         * config/avr/avr.h:
8459         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8460         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8461         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8462         (STRING_LIMIT): Move to elf.h.
8463         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8464         (ASM_DECLARE_OBJECT_NAME): Remove.
8465         (ESCAPES): Remove.
8466         (ASM_OUTPUT_SKIP): Remove.
8467         (DWARF2_DEBUGGING_INFO): Remove.
8468         (OBJECT_FORMAT_ELF): Remove.
8469         (USER_LABEL_PREFIX): Remove.
8470         (ASM_OUTPUT_EXTERNAL): Remove.
8471         (ASM_OUTPUT_ASCII): Remove.
8472         (TYPE_ASM_OP): Remove.
8473         (SIZE_ASM_OP): Remove.
8474         (WEAK_ASM_OP): Remove.
8475         (STRING_ASM_OP): Remove.
8476         (SET_ASM_OP): Remove.
8477         (ASM_WEAKEN_LABEL): Remove.
8478         (TYPE_OPERAND_FMT): Remove.
8479         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8480         (ASM_FINISH_DECLARE_OBJECT): Remove.
8481         (NO_DOLLAR_IN_LABEL): Remove.
8482         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8483         (ASM_OUTPUT_CASE_LABEL): Remove.
8484         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8485         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8486         (gas_output_ascii): Remove.
8487         (gas_output_limited_string): Remove.
8488         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8489         * config/avr/avr-protos.h
8490         (gas_output_ascii): Remove prototye.
8491         (gas_output_limited_string): Remove prototype.
8492
8493 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8494
8495         PR target/48637
8496         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8497         asm operands.
8498
8499 2011-06-27  Jan Hubicka  <jh@suse.cz>
8500
8501         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8502         node instead of references in node.
8503
8504 2011-06-27  Richard Henderson  <rth@redhat.com>
8505
8506         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8507         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8508         inside ifdef.
8509
8510 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8511
8512         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8513
8514         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8515         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8516         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8517         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8518         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8519         (evaluate_stmt, execute_fold_all_builtins): Handle
8520         BUILT_IN_ASSUME_ALIGNED.
8521         * tree-ssa-dce.c (propagate_necessity): Likewise.
8522         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8523         call_may_clobber_ref_p_1): Likewise.
8524         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8525         (expand_builtin_assume_aligned): New function.
8526         * doc/extend.texi (__builtin_assume_aligned): Document.
8527
8528         PR debug/49544
8529         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8530         and l has two DEBUG_INSN owned locs instead of just one, adjust
8531         the second location's setting_insn too.
8532
8533 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8534
8535         PR libmudflap/38738
8536         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8537
8538 2011-06-27  Nick Clifton  <nickc@redhat.com>
8539
8540         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8541         bit position of highest bit set into a count of the high zero bits.
8542
8543 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8544
8545         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8546
8547 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8548
8549         PR lto/48492
8550         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8551         to a NULL parent.
8552
8553 2011-06-27  Richard Guenther  <rguenther@suse.de>
8554
8555         PR tree-optimization/49394
8556         * passes.c (execute_one_pass): Restore current_pass after
8557         applying IPA transforms.
8558
8559 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8560
8561         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8562         out of type precision after operation.
8563         (find_bswap): Take for limit value the integer auto-promotion
8564         into account.
8565
8566 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8567
8568         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8569         forward scan as well.
8570
8571 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8572
8573         PR target/44241
8574         * config/vms/vms-protos.h: New file.
8575         * config/vms/vms-crtlmap.map: New file.
8576         * config/vms/vms.c: New file.
8577         * config/vms/make-crtlmap.awk: New file.
8578         * config/vms/vms-crtl.h: File removed.
8579         * config/vms/vms-crtl-64.h: File removed.
8580         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8581         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8582         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8583         clear some builtins on VMS.  Calls vms_patch_builtins.
8584         (avms_asm_output_external): Remove.
8585         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8586         (struct crtl_name_spec): Remove
8587         (DO_CTRL_NAMES): Remove.
8588         * config/ia64/vms.h (struct crtl_name_spec): Remove
8589         (DO_CTRL_NAMES): Remove.
8590         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8591         clear some builtins on VMS.  Calls vms_patch_builtins.
8592         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8593         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8594         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8595
8596 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8597
8598         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8599         directive on VMS.
8600
8601 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8602
8603         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8604         the function receives nonlocal gotos.
8605
8606 2011-06-27  Richard Guenther  <rguenther@suse.de>
8607
8608         PR tree-optimization/49536
8609         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8610         For non-scalar inner types use a scalar type according to
8611         the scalar inner mode.
8612
8613 2011-06-27  Richard Guenther  <rguenther@suse.de>
8614
8615         PR tree-optimization/49365
8616         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8617
8618 2011-06-27  Richard Guenther  <rguenther@suse.de>
8619
8620         PR tree-optimization/49169
8621         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8622         the alignment of function decls.
8623
8624 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8625
8626         PR target/47997
8627         * config/darwin.c (darwin_mergeable_string_section): Place string
8628         constants in '.cstring' rather than '.const' when CF/NSStrings are
8629         active.
8630
8631 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8632
8633         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8634         (emit_save_register_window): Likewise.
8635         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8636         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
8637         Swap back %o7/%i7 in register naming.
8638
8639 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
8640
8641         PR driver/49371
8642         * config/darwin.c (darwin_override_options): Improve warning when
8643         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8644         is given with fpie/fPIE.
8645         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8646         * config/darwin9.h (PIE_SPEC): New.
8647
8648 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
8649
8650         * timevar.c (timevar_print): Increase width for display of timevar
8651         name.
8652
8653 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
8654
8655         PR c++/46400
8656         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8657         instead of TYPE_CHAIN for chain_next for types.
8658
8659 2011-06-24  Richard Henderson  <rth@redhat.com>
8660
8661         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8662         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8663         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8664         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8665         (sparc_flat_expand_prologue): Emit individual instructions
8666         instead of one of the above.
8667
8668 2011-06-24  Easwaran Raman  <eraman@google.com>
8669
8670         PR rtl-optimization/49429
8671         PR target/49454
8672         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
8673         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8674         used to copy y into x.
8675         * calls.c (initialize_argument_information): Mark
8676         an argument addressable if it is passed by invisible reference.
8677         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8678         if it is passed by reference.
8679
8680 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8681
8682         PR rtl-optimization/49504
8683         * rtlanal.c (nonzero_bits1): Properly handle addition or
8684         subtraction of a pointer in Pmode if pointers extend unsigned.
8685         (num_sign_bit_copies1): Likewise.
8686
8687 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8688
8689         PR tree-optimizations/49516
8690         * tree-sra.c (sra_modify_assign): Choose the safe path for
8691         aggregate copies if we also did scalar replacements.
8692
8693 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8694
8695         PR target/49335
8696         * config/arm/predicates.md (add_operator): New.
8697         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8698
8699 2011-06-24  Andi Kleen  <ak@linux.intel.com>
8700
8701         * tree-sra.c (type_internals_preclude_sra_p): Add msg
8702         parameter. Split up ifs and report reason in *msg.
8703         (reject): Add.
8704         (find_var_candiate): Add msg variable.
8705         Split up ifs and report reason to reject.
8706         (find_param_candidates): Add msg variable.
8707         Pass msg to type_internals_preclude_sra_p.
8708
8709 2011-06-23  Jeff Law  <law@redhat.com>
8710
8711         PR middle-end/48770
8712         * reload.h (reload): Change to return a bool.
8713         * ira.c (ira): If requested by reload, run a fast DCE pass after
8714         reload has completed.  Fix comment typo.
8715         * reload1.c (need_dce): New file scoped static.
8716         (reload): Set reload_completed here.  Return whether or not a DCE
8717         pass after reload is needed.
8718         (delete_dead_insn): Set need_dce as needed.
8719
8720         PR middle-end/49465
8721         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8722         to detect threading through joiner block.  If there was already
8723         an edge to the new target, then do not change the PHI nodes.
8724
8725 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
8726
8727         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8728         get_pointer_alignment to see if base isn't sufficiently aligned.
8729
8730 2011-06-23  Jan Hubicka  <jh@suse.cz>
8731
8732         PR tree-optimize/49373
8733         * tree-pass.h (all_late_ipa_passes): Declare.
8734         * cgraphunit.c (init_lowered_empty_function): Fix properties.
8735         (cgraph_optimize): Execute late passes; remove unreachable funcions
8736         after materialization.
8737         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8738         LTOing.
8739         * passes.c (all_late_ipa_passes): Declare.
8740         (dump_passes, register_pass): Handle late ipa passes.
8741         (init_optimization_passes): Move ipa_pta to late passes; schedule
8742         fixup_cfg at beggining of all_passes.
8743         (apply_ipa_transforms): New function.
8744         (execute_one_pass): When doing simple ipa pass, apply all transforms.
8745
8746 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
8747
8748         * params.c: Include common/common-target.h.  Don't include tm.h.
8749         (lang_independent_params): Move from toplev.c.
8750         (global_init_params): New.
8751         * params.h (global_init_params): Declare.
8752         * target.def (default_params): Move to common-target.def.
8753         * toplev.c (lang_independent_options): Remove.
8754         (lang_independent_params): Move to params.c.
8755         (general_init): Use global_init_params.
8756         * common/common-target.def (option_default_params): Move from
8757         target.def.
8758         * common/config/ia64/ia64-common.c: Include params.h.
8759         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8760         from ia64.c.
8761         * common/config/rs6000/rs6000-common.c: Include params.h.
8762         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8763         from rs6000.c.
8764         * common/config/sh/sh-common.c: Include params.h.
8765         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8766         from sh.c.
8767         * common/config/spu/spu-common.c: Include params.h.
8768         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8769         from spu.c.
8770         * config/ia64/ia64.c (ia64_option_default_params,
8771         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8772         * config/rs6000/rs6000.c (rs6000_option_default_params,
8773         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8774         * config/sh/sh.c (sh_option_default_params,
8775         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8776         * config/spu/spu.c (spu_option_default_params,
8777         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8778         * Makefile.in (OBJS): Remove params.o.
8779         (OBJS-libcommon-target): Add params.o.
8780         (params.o, $(common_out_object_file)): Update dependencies.
8781         * doc/tm.texi: Regenerate.
8782
8783 2011-06-23  Alan Modra  <amodra@gmail.com>
8784
8785         PR bootstrap/49383
8786         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8787         invocation for 2011-06-09 changes.
8788
8789 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8790
8791         PR libgomp/49490
8792         * omp-low.c (expand_omp_for_static_nochunk): Only
8793         use n ceil/ nthreads size for the first n % nthreads threads in the
8794         team instead of all threads except for the last few ones which
8795         get less work or none at all.
8796
8797         PR debug/49496
8798         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8799         uses.
8800
8801 2011-06-22  Richard Guenther  <rguenther@suse.de>
8802
8803         PR tree-optimization/49493
8804         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8805         Refer to the alias target of variables.
8806         (associate_varinfo_to_alias_1): Remove.
8807         (ipa_pta_execute): Do not associate aliases with anything.
8808         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8809         (cgraph_function_node): Likewise.
8810         (cgraph_function_or_thunk_node): Likewise.
8811         (varpool_variable_node): Likewise.
8812
8813 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8814
8815         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8816         * config.gcc (arm*-*-linux*): Default to gnu tls.
8817         (arm*-*-*): Add --with-tls option.
8818         (all_defaults): Add 'tls'.
8819
8820 2011-06-22  Richard Henderson  <rth@redhat.com>
8821
8822         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8823         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8824         (dwarf2out_frame_debug_cfa_window_save): Rename from
8825         dwarf2out_window_save; make static.
8826         * tree.h (dwarf2out_window_save): Don't declare.
8827
8828         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8829         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8830         (emit_save_register_window): Rename from gen_save_register_window;
8831         emit the insn and add REG_CFA_* notes.
8832         (sparc_expand_prologue): Update to match.
8833         * config/sparc/sparc.md (save_register_window_1): Simplify from
8834         save_register_window<P:mode>.
8835
8836 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8837
8838         PR target/49497
8839         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8840         (*lea_general_2_zext): Likewise.
8841         (imul to lea peepholes): Use const359_operand and check
8842         TARGET_PARTIAL_REG_STALL.
8843
8844         * config/i386/predicates.md (const359_operand): New.
8845
8846 2011-06-22  Michael Matz  <matz@suse.de>
8847
8848         * cgraphunit.c (assemble_thunk): Use correct return type.
8849
8850 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8851             Dmitry Melnik  <dm@ispras.ru>
8852
8853         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8854         (neon_output_shift_immediate): Ditto.
8855         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8856         prototype.
8857         (neon_output_shift_immediate): Ditto.
8858         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8859         (vashr<mode>3_imm): New insn pattern.
8860         (vlshr<mode>3_imm): Ditto.
8861         (vashr<mode>3): Modified constraint.
8862         (vlshr<mode>3): Ditto.
8863         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8864         predicate.
8865         (imm_for_neon_rshift_operand): Ditto.
8866         (imm_lshift_or_reg_neon): Ditto.
8867         (imm_rshift_or_reg_neon): Ditto.
8868
8869         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8870
8871 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8872
8873         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8874         builtin calls even if likelyvalue is not CONSTANT.
8875         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8876         Return get_value_for_expr of first operand
8877         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8878         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8879         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8880         their non-checking counterparts.
8881         (call_may_clobber_ref_p_1): Likewise.
8882         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8883         like their non-checking counterparts.
8884         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8885         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8886         like their non-checking counterparts.
8887         (find_func_clobbers): Likewise.
8888         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8889         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8890
8891         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8892         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8893         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8894         of base type reference as argument.
8895         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8896         (convert_descriptor_to_signed): Renamed to...
8897         (convert_descriptor_to_mode): ... this.  For wider types convert to
8898         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8899         (typed_binop): New function.
8900         (scompare_loc_descriptor, ucompare_loc_descriptor,
8901         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8902         default to unsigned type instead of signed.
8903
8904         PR debug/47858
8905         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8906         (gimple_build_debug_source_bind_stat): New prototype.
8907         (gimple_build_debug_source_bind): Define.
8908         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8909         gimple_debug_source_bind_get_value,
8910         gimple_debug_source_bind_get_value_ptr,
8911         gimple_debug_source_bind_set_var,
8912         gimple_debug_source_bind_set_value): New inlines.
8913         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8914         * gimple-pretty-print.c (dump_gimple_debug): Handle
8915         GIMPLE_DEBUG_SOURCE_BIND.
8916         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8917         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8918         * tree-parloops.c (eliminate_local_variables,
8919         separate_decls_in_region): Likewise.
8920         (separate_decls_in_region_debug): Renamed from
8921         separate_decls_in_region_debug_bind.  Handle
8922         gimple_debug_source_bind_p.
8923         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8924         prototypes.
8925         (DECL_HAS_DEBUG_ARGS_P): Define.
8926         (struct tree_function_decl): Add has_debug_args_flag field.
8927         * tree.c (debug_args_for_decl): New variable.
8928         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8929         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8930         (rewrite_debug_stmt_uses): New function.
8931         (rewrite_stmt): Use it to rewrite debug stmt uses.
8932         * rtl.def (DEBUG_PARAMETER_REF): New.
8933         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8934         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8935         DEBUG_PARAMETER_REF.
8936         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8937         * print-rtl.c (print_rtx): Likewise.
8938         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8939         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8940         debug stmts in the first bb.
8941         * tree-inline.c (remap_ssa_name): If remapping default def
8942         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8943         a source bind debug stmt.
8944         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8945         (maybe_move_debug_stmts_to_successors): Likewise.
8946         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8947         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8948         debug args vector from old_decl to new_decl.
8949         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8950         or modified parameters, add debug bind stmts before call
8951         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8952         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8953         on DECL_DEBUG_EXPRs from debug args vector.
8954         (expand_debug_source_expr): New function.
8955         (expand_debug_locations): Use it for source bind insns.
8956         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8957         * var-tracking.c (prepare_call_arguments): Add debug args
8958         to call_arguments if any.
8959         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8960         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8961         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8962         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8963         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8964         (gen_subprogram_die): Handle parameters identified by
8965         DEBUG_PARAMETER_REF.
8966
8967 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8968
8969         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8970         * doc/install.texi (Configuration): Document --with-tls.
8971         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8972         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8973         (arm_tls_descseq_addr): New.
8974         (legitimize_tls_address): Add tlsdesc support.
8975         (arm_cannot_copy_insn_p): Check for tlscall.
8976         (arm_emit_tls_decoration): Likewise.
8977         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8978         (OPTION_DEFAULT_SPECS): Add with-tls support.
8979         * config/arm/arm.md (R1_REGNUM): Define.
8980         (tlscall): New.
8981         * config/arm/arm.opt (tls_type): New enumeration type and values.
8982         (mtls-dialect): New switch.
8983         * config/arm/arm-opts.h (enum tls_type): New.
8984
8985 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8986
8987         * attribs.c (register_attribute): Added assert to check that all
8988         attribute specs are registered with a name that is not empty and
8989         does not start with '_'.
8990         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8991         if the function has no attributes.
8992         * tree.c (is_attribute_with_length_p): Removed.
8993         (is_attribute_p): Removed.
8994         (private_is_attribute_p): New.
8995         (private_lookup_attribute): New.
8996         (lookup_attribute): Removed.
8997         (lookup_ident_attribute): New.
8998         (remove_attribute): Require the first argument to be in the form
8999         'text', not '__text__'.  Updated asserts.
9000         (merge_attributes): Use lookup_ident_attributes instead of
9001         lookup_attribute.
9002         (merge_dllimport_decl_attributes): Use remove_attribute.
9003         (attribute_list_contained): Likewise.
9004         (attribute_list_equal): Immediately return 1 if the arguments are
9005         identical pointers.
9006         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
9007         'int'.  Require the first argument to be in the form 'text', not
9008         '__text__'.  Require the second argument to be an identifier.
9009         (lookup_attribute): Made inline.  Require the first argument to be
9010         in the form 'text', not '__text__'.
9011         (private_is_attribute_p, private_lookup_attribute): New.
9012         Updated comments.
9013
9014 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
9015
9016         * builtins.c: Add sync_ or SYNC__ to builtin names.
9017         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9018         * omp-low.c: Add sync_ or SYNC__ to builtin names.
9019
9020 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9021
9022         PR target/33049
9023         * config/avr/avr.md (extzv): New expander.
9024         (*extzv): New insn.
9025         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9026         * config/avr/constraints.md (C04): New constraint.
9027         * doc/md.texi (Machine Constraints): Document it.
9028
9029 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9030
9031         PR middle-end/49489
9032         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9033         unsignedp argument instead of 1 for clrsb_optab.
9034         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9035         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
9036         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9037         * optabs.c (widen_leading): Call widen_operand and expand_unop
9038         with 0 as unsignedp argument instead of 1 for clrsb_optab.
9039         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9040
9041 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9042
9043         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9044
9045 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
9046
9047         * gensupport.c (add_define_attr): New static function.
9048         (is_predicable): Allow multi-alternative lists for the "predicable"
9049         attribute.
9050         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9051         (process_one_cond_exec): Call alter_attrs_for_insn.
9052         * doc/md.texi (Defining Attributes): Mention some standard names.
9053         (Conditional Execution): Update documentation for "predicable".
9054
9055         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9056         __builtin_clrsbll): Document.
9057         * doc/rtl.texi (clrsb): New entry.
9058         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
9059         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
9060         (expand_unop): Handle clrsb_optab.
9061         (init_optabs): Initialize it.
9062         * optabs.h (enum optab_index): New entry OTI_clrsb.
9063         (clrsb_optab): Define.
9064         * genopinit.c (optabs): Add an entry for it.
9065         * builtins.c (expand_builtin): Handle clrsb builtin functions.
9066         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9067         BUILT_IN_CLRSBLL): New.
9068         * rtl.def (CLRSB): New code.
9069         * dwarf2out.c (mem_loc_descriptor): Handle it.
9070         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9071         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9072         and popcount.
9073         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9074         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9075         (__ctzDI2): Move declaration.
9076         * config/bfin/bfin.md (clrsbsi2): New expander.
9077         (signbitssi2): Use the CLRSB rtx.
9078         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
9079         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9080
9081 2011-06-21  Richard Guenther  <rguenther@suse.de>
9082
9083         * ipa-inline-transform.c (inline_transform): Fix previous change.
9084
9085 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
9086
9087         PR tree-optimization/49478
9088         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9089         with constant operand.
9090
9091 2011-06-21  Richard Guenther  <rguenther@suse.de>
9092
9093         * ipa-inline-transform.c (inline_transform): Fix typo.
9094
9095 2011-06-21  Richard Guenther  <rguenther@suse.de>
9096
9097         PR tree-optimization/49483
9098         * tree-vect-stmts.c (vectorizable_assignment): Also handle
9099         VIEW_CONVERT_EXPR conversions.
9100
9101 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
9102
9103         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9104         * config/avr/avr-tables.opt: New file (generated).
9105         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9106         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9107         avr-mcus.def.
9108         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9109         (avr_option_override): Don't process -mmcu= argument here.  Set
9110         avr_current_device using avr_mcu_index.
9111         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9112         * config/avr/avr.opt (mmcu=): Use Enum.
9113         * config/avr/t-avr (avr-devices.o): Update dependencies.
9114         ($(srcdir)/config/avr/avr-tables.opt): New.
9115         * target.def (help): Remove.
9116         * doc/tm.texi.in (TARGET_HELP): Remove.
9117         * doc/tm.texi: Regenerate.
9118         * opts.c: Don't include target.h.
9119         (common_handle_option): Don't call targetm.help.
9120         * system.h (TARGET_HELP): Poison.
9121         * Makefile.in (opts.o): Update dependencies.
9122
9123 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9124
9125         * config/usegld.h: New file.
9126         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9127         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9128         (LIB_SPEC): Likewise.  Search /lib.
9129         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9130         (RDYNAMIC_SPEC): Handle GNU ld.
9131         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9132         Define.
9133         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9134         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9135         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9136         (STACK_CHECK_STATIC_BUILTIN): Define.
9137         * config/sol2.opt (compat-bsd): Remove.
9138         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9139         * config/sol2-bi.h: New file.
9140         * config/sol2-gld.h: Remove.
9141         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9142         (NO_DBX_BNSYM_ENSYM): Remove.
9143         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9144         (STACK_CHECK_STATIC_BUILTIN): Remove.
9145         Test USE_GLD instead of TARGET_GNU_LD.
9146         * config/i386/sol2-10.h: Rename to ...
9147         * config/i386/sol2-bi.h .. this.
9148         (SUBTARGET_EXTRA_SPECS): Redefine.
9149         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9150         (MULTILIB_DEFAULTS): Remove.
9151         (DEFAULT_ARCH32_P): Define.
9152         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9153         (ARCH64_SUBDIR): Define.
9154         Test USE_GLD instead of TARGET_GNU_LD.
9155         (I386_EMULATION): Rename to ...
9156         (ARCH32_EMULATION): ... this.
9157         (X86_64_EMULATION): Rename to ...
9158         (ARCH64_EMULATION): ... this.
9159         (TARGET_LD_EMULATION): Remove.
9160         (LINK_ARCH_SPEC): Remove.
9161         * config/i386/sol2-gas.h: Remove.
9162         * config/i386/t-sol2-10: Rename to ...
9163         * config/i386/t-sol2-64: ... this.
9164         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9165         (AS_SPARC64_FLAG): Define.
9166         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9167         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9168         depending on TARGET_CPU_DEFAULT.
9169         (CPP_CPU_SPEC): Redefine.
9170         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9171         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9172         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9173         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9174         ASM_ARCH_DEFAULT_SPEC): Redefine.
9175         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9176         LINK_ARCH_DEFAULT_SPEC.
9177         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9178         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9179         (ARCH64_SUBDIR): Define.
9180         (LINK_ARCH64_SPEC): Redefine.
9181         (CC1_SPEC): Redefine.
9182         (OPTION_DEFAULT_SPECS): Redefine.
9183         (MULTILIB_DEFAULTS): Define.
9184         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9185         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9186         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9187         (NO_DBX_BNSYM_ENSYM): Remove.
9188         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9189         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9190         (TARGET_ASM_NAMED_SECTION): Likewise.
9191         (STACK_CHECK_STATIC_BUILTIN): Remove.
9192         * config/sparc/sol2-bi.h: Remove.
9193         * config/sparc/sol2-gas-bi.h: Remove.
9194         * config/sparc/sol2-gas.h: Remove.
9195         * config/sparc/sol2-gld-bi.h: Remove.
9196         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9197         common parts ...
9198         (*-*-solaris2*): ... here.
9199
9200 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9201
9202         PR other/43564
9203         * ipa-inline.c (can_inline_edge_p): Check
9204         !DECL_DISREGARD_INLINE_LIMITS.
9205
9206 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9207
9208         PR middle-end/49139
9209         * cgraphunit.c (process_function_and_variable_attributes): warn when
9210         always_inline functions that are not inline.
9211         * ipa-inline-transform.c (inline_transform): Always call
9212         optimize_inline.
9213         * tree-inline.c (tree_inlinable_function_p): Use error instead
9214         of sorry.
9215         (expand_call_inline): Likewise.
9216
9217 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9218
9219         * Makefile.in (dg_target_exps): Set.
9220         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9221         instead of 7, try to divide it more evenly.
9222
9223 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
9224
9225         PR target/49089
9226         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9227         (avx256_split_unaligned_store): New definition.
9228         (ix86_option_override_internal): Enable avx256 unaligned load/store
9229         splitting only when avx256_split_unaligned_load/store is set.
9230
9231 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9232
9233         * regrename.c (scan_rtx_reg): Handle the case where we write to an
9234         open chain in a smaller mode without failing the entire block.
9235
9236 2011-06-21  Alan Modra  <amodra@gmail.com>
9237
9238         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9239         CONST high part large-toc address.
9240         (rs6000_tls_referenced_p): Make static.
9241         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9242
9243 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9244
9245         PR target/49385
9246         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9247         one of the operands is a register.
9248
9249 2011-06-20  Kai Tietz  <ktietz@redhat.com>
9250
9251         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9252         operations in combination with binary and.
9253
9254 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9255
9256         * regrename.c (do_replace): Don't update notes.
9257
9258 2011-06-20  Alan Modra  <amodra@gmail.com>
9259
9260         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9261         of toc-relative address in CONST.
9262         (rs6000_delegitimize_address): Recognize changed address.
9263         (rs6000_legitimize_reload_address): Likewise.
9264         (rs6000_emit_move): Don't force these constants to memory.
9265         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9266         toc-relative address in CONST.
9267         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9268         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9269
9270 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9271
9272         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9273         (count_trailing_zeros): Likewise.
9274
9275 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9276
9277         PR other/49325
9278         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9279         .init_array can be used with .ctors on targets.
9280         * configure: Regenerated.
9281
9282 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9283
9284         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9285         if the element type is volatile.
9286
9287 2011-06-18  Jan Hubicka  <jh@suse.cz>
9288
9289         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9290         extra name aliases.
9291         (lto_symtab_resolve_can_prevail_p): Likewise.
9292         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9293         * cgraphbuild.c (record_reference): Remove extra body alias code.
9294         (mark_load): Likewise.
9295         (mark_store): Likewise.
9296         * cgraph.h (varpool_node): Remove extra_name filed;
9297         add alias_of and extraname_alias.
9298         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9299         (varpool_alias_aliased_node): New inline function.
9300         (varpool_variable_node): New function.
9301         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9302         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9303         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9304         (input_varpool_node): Likewise.
9305         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9306         (varpool_externally_visible_p): Remove extra body alias code.
9307         (function_and_variable_visibility): Likewise.
9308         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9309         (ipa_pta_execute): Use it.
9310         * varpool.c (varpool_remove_node): Remove extra name alias code.
9311         (varpool_mark_needed_node): Likewise.
9312         (varpool_analyze_pending_decls): Analyze aliases.
9313         (assemble_aliases): New functoin.
9314         (varpool_assemble_decl): Use it.
9315         (varpool_create_variable_alias): New function.
9316         (varpool_extra_name_alias): Rewrite.
9317         (varpool_for_node_and_aliases): New function.
9318
9319 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
9320
9321         PR target/49411
9322         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9323         last_arg_constant and last argument doesn't match its predicate,
9324         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9325         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9326         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9327         spelling of error message.
9328         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9329         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9330         const_0_to_255_operand instead of const_int_operand.
9331
9332         Revert:
9333         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9334
9335         * config/i386/sse.md (blendbits): Remove mode attribute.
9336         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9337         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9338         Check integer value of operand 3 in insn constraint.
9339
9340 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9341
9342         PR rtl-optimization/48542
9343         * reload.c (find_equiv_reg): Stop looking when finding a
9344         setjmp-type call.
9345         * reload1.c (reload_as_needed): Invalidate all reload
9346         registers when crossing a setjmp-type call.
9347
9348 2011-06-16  Jeff Law  <law@redhat.com>
9349
9350         * tree-ssa-threadupdate.c (struct redirection_data): New field
9351         intermediate_edge.
9352         (THREAD_TARGET2): Define.
9353         (redirection_data_eq): Also check that the intermediate edge is equal.
9354         (lookup_redirection_data): Drop useless argument.  Extract the
9355         outgoing_edge and intermediate edge from E.  Callers updated.
9356         (copy_phi_args, update_destination_phis): New functions.
9357         (fix_duplicate_block_edges): Likewise.
9358         (create_edge_and_update_destination_phis): Duplicate all the edges
9359         hung off e->aux.  Use copy_phi_args.
9360         (create_duplicates): Use fix_duplicate_block_edges.
9361         (fixup_template_block): Likewise.
9362         (redirect_edges): If necessary, redirect the joiner block's incoming
9363         edge to the duplicate of the joiner block.
9364         (thread_block): Don't muck up loops when threading through a joiner
9365         block.
9366         (thread_through_loop_header): Handle threading through a joiner block.
9367         (mark_threaded_blocks, register_jump_thread): Likewise.
9368         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9369         updated.
9370         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9371         (thread_across_edge): Handle threading through a joiner block.
9372
9373 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9374
9375         PR tree-optimization/49343
9376         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9377         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9378
9379 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9380
9381         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9382         inside RTX_CODE ifdef.
9383
9384 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9385
9386         PR target/45098
9387         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9388         Disallow NULL pointer for pointer arithmetic.
9389
9390 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9391
9392         PR target/49398
9393         Revert.
9394         2011-06-10  Wei Guozhi  <carrot@google.com>
9395
9396         PR target/45335
9397         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9398         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9399         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9400         related peephole2.
9401         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9402         related peephole2.
9403         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9404         (arm_legitimate_ldrd_p): New prototype.
9405         (arm_output_ldrd): New prototype.
9406         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9407         (arm_legitimate_ldrd_p): New function.
9408         (arm_output_ldrd): New function.
9409
9410 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9411
9412         PR middle-end/46500
9413         * doc/tm.texi.in: Update Copyright date.
9414         * doc/tm.texi: Regenerate.
9415         * targhooks.c (default_setup_incoming_varargs): Replace
9416         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9417         (default_pretend_outgoing_varargs_named): Likewise.
9418         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9419         (hook_callee_copies_named): Likewise.
9420         (default_function_arg_advance): Likewise.
9421         (default_function_arg): Likewise.
9422         (default_function_incoming_arg): Likewise.
9423         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9424         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9425         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9426         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9427         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9428         * targhooks.h (default_setup_incoming_varargs): Likewise.
9429         (default_pretend_outgoing_varargs_named): Likewise.
9430         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9431         (hook_callee_copies_named): Likewise.
9432         (default_function_arg_advance): Likewise.
9433         (default_function_arg): Likewise.
9434         (default_function_incoming_arg): Likewise.
9435         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9436         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9437         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9438         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9439         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9440         * target.def (pass_by_reference): Likewise.
9441         (setup_incoming_varargs, strict_argument_naming): Likewise.
9442         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9443         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9444         (function_incoming_arg): Likewise.
9445         * target.h: Don't include "tm.h" .
9446         (cumulative_args_t): New typedef.
9447         [GCC_TM_H] (get_cumulative_args): New static inline function.
9448         [GCC_TM_H] (pack_cumulative_args): Likewise.
9449         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9450         argument type with cumulative_args_t.
9451         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9452         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9453         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9454         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9455         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9456         (frv_function_arg_1): Likewise.
9457         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9458         (s390_function_arg_advance, s390_function_arg): Likewise.
9459         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9460         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9461         (m32c_strict_argument_naming): Likewise.
9462         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9463         (spu_function_arg_advance): Likewise.
9464         (spu_setup_incoming_varargs): Likewise.  Make static.
9465         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9466         Remove prototype.
9467         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9468         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9469         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9470         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9471         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9472         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9473         (mep_pass_by_reference, mep_function_arg): Likewise.
9474         (mep_function_arg_advance): Likewise.
9475         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9476         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9477         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9478         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9479         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9480         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9481         (ix86_setup_incoming_varargs): Likewise.
9482         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9483         (sh_strict_argument_naming): Likewise.
9484         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9485         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9486         (sh_function_arg_advance, sh_function_arg): Likewise.
9487         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9488         (pdp11_function_arg_advance): Likewise.
9489         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9490         Likewise.
9491         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9492         * config/avr/avr.c (avr_function_arg): Likewise.
9493         (avr_function_arg_advance): Likewise.
9494         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9495         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9496         (xtensa_function_arg_1): Likewise.
9497         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9498         Likewise.
9499         (xstormy16_function_arg): Likewise.
9500         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9501         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9502         (fr30_function_arg_advance): Likewise.
9503         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9504         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9505         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9506         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9507         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9508         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9509         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9510         (cris_function_arg, cris_function_incoming_arg): Likewise.
9511         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9512         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9513         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9514         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9515         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9516         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9517         (mn10300_arg_partial_bytes): Likewise.
9518         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9519         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9520         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9521         (ia64_function_arg_1): Likewise.
9522         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9523         (m68k_function_arg): Likewise.
9524         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9525         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9526         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9527         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9528         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9529         (picochip_arg_advance): Likewise.
9530         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9531         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9532         (mcore_function_arg_advance): Likewise.
9533         * config/score/score.c (score_pass_by_reference): Likewise.
9534         (score_function_arg_advance): Likewise.
9535         (score_arg_partial_bytes): Likewise.  Make static.
9536         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9537         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9538         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9539         (arm_function_arg, arm_function_arg_advance): Likewise.
9540         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9541         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9542         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9543         (pa_function_arg): Likewise.
9544         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9545         (mips_function_arg, mips_function_arg_advance): Likewise.
9546         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9547         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9548         * config/vax/vax.c (vax_function_arg): Likewise.
9549         (vax_function_arg_advance): Likewise.
9550         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9551         (h8300_function_arg_advance): Likewise.
9552         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9553         (v850_strict_argument_naming, v850_function_arg): Likewise.
9554         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9555         (v850_setup_incoming_varargs): Likewise.
9556         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9557         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9558         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9559         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9560         with const void *.
9561         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9562         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9563         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9564         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9565         * calls.c (emit_call_1): Change type of args_so_far to
9566         cumulative_args_t.  Changed all callers.
9567         (initialize_argument_information): Likewise.
9568         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9569         * dse.c (get_call_args): Likewise.
9570         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9571         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9572         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9573         New member args_so_far_v.  Changed all users.
9574         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9575         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9576         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9577         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9578         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9579         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9580         Likewise.
9581         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9582         m32r_pass_by_reference.
9583
9584 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9585
9586         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9587         argument to be a VEC of statements.
9588         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9589         assert that pattern statements have to have their vector type set.
9590         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9591         Change the first argument to be a VEC of statements.  Update
9592         documentation.
9593         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9594         (vect_handle_widen_mult_by_const): New function.
9595         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9596         VEC of statements.  Update documentation.  Check that the constant is
9597         INTEGER_CST.  Support multiplication by a constant that fits an
9598         intermediate type - call vect_handle_widen_mult_by_const.
9599         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9600         call.  Handle additional pattern statements if necessary.
9601
9602 2011-06-16  Nick Clifton  <nickc@redhat.com>
9603
9604         PR target/49427
9605         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9606         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9607         md_file, extra_modes, out_file and extra_options are these are all
9608         deduced from cpu_type.
9609
9610 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9611
9612         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9613         truncation mask to 63.
9614
9615 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9616
9617         PR target/49313
9618         PR target/29524
9619         * longlong.h: Add AVR support:
9620         (count_leading_zeros): New macro.
9621         (count_trailing_zeros): New macro.
9622         (COUNT_LEADING_ZEROS_0): New macro.
9623         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9624         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9625         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9626         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9627         (LIB2FUNCS_EXCLUDE): Add _clz.
9628         * config/avr/libgcc.S (XCALL): Move up in file.
9629         (XJMP): New C Macro.
9630         (DEFUN): New asm macro.
9631         (ENDF): New asm macro.
9632         (__ffssi2): New function.
9633         (__ffshi2): New function.
9634         (__loop_ffsqi2): New function.
9635         (__ctzsi2): New function.
9636         (__ctzhi2): New function.
9637         (__clzdi2): New function.
9638         (__clzsi2): New function.
9639         (__clzhi2): New function.
9640         (__paritydi2): New function.
9641         (__paritysi2): New function.
9642         (__parityhi2): New function.
9643         (__parityqi2): New function.
9644         (__popcounthi2): New function.
9645         (__popcountsi2): New function.
9646         (__popcountdi2): New function.
9647         (__popcountqi2): New function.
9648         (__bswapsi2): New function.
9649         (__bswapdi2): New function.
9650         (__ashldi3): New function.
9651         (__ashrdi3): New function.
9652         (__lshrdi3): New function.
9653         Fix suspicous lines.
9654
9655 2011-06-16  Richard Guenther  <rguenther@suse.de>
9656
9657         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9658         the same as x != 0.
9659         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9660         to (bool) X & 1.
9661         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9662         equality compares against zero for the lower bit.
9663
9664 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
9665
9666         PR tree-optimization/49419
9667         * tree-vrp.c (execute_vrp): Call init_range_assertions
9668         before estimate_numbers_of_iterations, call
9669         free_number_of_iterations_estimates before calling
9670         remove_range_assertions.
9671
9672 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9673
9674         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9675         (struct partial_schedule): Add rows_length field.
9676         (verify_partial_schedule): Check rows_length.
9677         (ps_insert_empty_row): Handle rows_length.
9678         (create_partial_schedule): Likewise.
9679         (free_partial_schedule): Likewise.
9680         (reset_partial_schedule): Likewise.
9681         (create_ps_insn): Remove rest_count argument.
9682         (remove_node_from_ps): Update rows_length.
9683         (add_node_to_ps): Update rows_length and call create_ps_insn
9684         without passing row_rest_count.
9685         (rotate_partial_schedule): Update rows_length.
9686
9687 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9688
9689         * ddg.c (add_intra_loop_mem_dep): New function.
9690         (build_intra_loop_deps): Call it.
9691
9692 2011-06-13  Jeff Law  <law@redhat.com>
9693
9694         * df-problems.c (df_lr_local_compute): Manually CSE
9695         PIC_OFFSET_TABLE_REGNUM.
9696         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9697         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9698
9699 2011-06-13  Jan Hubicka  <jh@suse.cz>
9700
9701         * cgraphunit.c (handle_alias_pairs): New function.
9702         (cgraph_finalize_compilation_unit): Use it.
9703         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9704         as externally visible.
9705
9706 2011-06-15  Richard Guenther  <rguenther@suse.de>
9707
9708         * expr.c (expand_expr_real_2): Reduce all integral types to
9709         bitfield precision.
9710         (expand_expr_real_1): Likewise.
9711
9712 2011-06-15  Martin Jambor  <mjambor@suse.cz>
9713
9714         PR tree-optimization/48613
9715         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9716         ipa_node_params_vector is NULL.
9717
9718 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
9719
9720         PR debug/49382
9721         * dwarf2out.c (dw_loc_list_node): Add force field.
9722         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9723         location in the list, even if it is modified before first real insn.
9724         (output_loc_list): Emit empty ranges with force flag set.
9725         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9726
9727 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
9728
9729         PR target/49349
9730         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9731         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
9732         above a fence.  Update comments.
9733         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9734         placed just above it.  Do not allow NULL place_to_insert.
9735
9736 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
9737
9738         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9739         (slpeel_tree_peel_loop_to_edge): Don't call
9740         remove_dead_stmts_from_loop.
9741         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9742         remove irrelevant pattern statements.  For irrelevant statements
9743         check if it is the last statement of a detected pattern, use
9744         corresponding pattern statement instead.
9745         (destroy_loop_vec_info): No need to remove pattern statements,
9746         only free stmt_vec_info.
9747         (vect_transform_loop): For irrelevant statements check if it is
9748         the last statement of a detected pattern, use corresponding
9749         pattern statement instead.
9750         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9751         pattern statements.  Set basic block for the new statement.
9752         (vect_pattern_recog): Update documentation.
9753         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9754         operands of pattern statements.
9755         (vectorizable_call): Fix printing.  In case of a pattern statement
9756         use the lhs of the original statement when creating a dummy
9757         statement to replace the original call.
9758         (vect_analyze_stmt): For irrelevant statements check if it is
9759         the last statement of a detected pattern, use corresponding
9760         pattern statement instead.
9761         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9762         statements use gsi of the original statement.
9763
9764 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9765
9766         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9767         common/common-target-def.h.
9768         * target.def (default_target_flags, handle_option,
9769         supports_split_stack, optimization_table, init_struct,
9770         except_unwind_info, unwind_tables_default, have_named_sections):
9771         Move to common/common-target.def.
9772         * target.h (enum opt_levels, struct default_options): Move to
9773         common/common-target.h.
9774         * targhooks.c (default_except_unwind_info,
9775         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9776         default_target_handle_option, empty_optimization_table): Move to
9777         common/common-targhooks.c.
9778         * targhooks.h (default_except_unwind_info,
9779         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9780         default_target_handle_option, empty_optimization_table): Move to
9781         common/common-targhooks.h.
9782         * common/common-target-def.h: Include common/common-targhooks.h.
9783         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9784         defined.
9785         * common/common-target.def (handle_option, option_init_struct,
9786         option_optimization_table, default_target_flags,
9787         except_unwind_info, supports_split_stack, unwind_tables_default,
9788         have_named_sections): Move from target.def.
9789         (HOOK_PREFIX): Undefine at end of file.
9790         * common/common-target.h: Include input.h.
9791         (enum opt_levels, struct default_options): Move from target.h.
9792         * common/common-targhooks.c, common/common-targhooks.h: New.
9793         * config.gcc (target_has_targetm_common): Default to yes.
9794         (moxie*): Set target_has_targetm_common=no.
9795         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9796         * doc/tm.texi: Regenerate.
9797         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9798         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9799         (GCC_OBJS): Remove vec.o.
9800         (OBJS): Remove hooks.o and vec.o.
9801         (OBJS-libcommon-target): Add vec.o, hooks.o and
9802         common/common-targhooks.o.
9803         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9804         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9805         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9806         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9807         Update dependencies.
9808         (common/common-targhooks.o): New.
9809         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9810         * common/config/pa/pa-common.c: Include more headers.  Take
9811         copyright dates from pa.c.
9812         (pa_option_optimization_table, pa_handle_option,
9813         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9814         TARGET_HANDLE_OPTION): Move from pa.c.
9815         * common/config/alpha/alpha-common.c,
9816         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9817         common/config/bfin/bfin-common.c,
9818         common/config/cris/cris-common.c,
9819         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9820         common/config/h8300/h8300-common.c,
9821         common/config/i386/i386-common.c,
9822         common/config/ia64/ia64-common.c,
9823         common/config/iq2000/iq2000-common.c,
9824         common/config/lm32/lm32-common.c,
9825         common/config/m32c/m32c-common.c,
9826         common/config/m32r/m32r-common.c,
9827         common/config/m68k/m68k-common.c,
9828         common/config/mcore/mcore-common.c,
9829         common/config/mep/mep-common.c,
9830         common/config/microblaze/microblaze-common.c,
9831         common/config/mips/mips-common.c,
9832         common/config/mmix/mmix-common.c,
9833         common/config/mn10300/mn10300-common.c,
9834         common/config/pdp11/pdp11-common.c,
9835         common/config/picochip/picochip-common.c,
9836         common/config/rs6000/rs6000-common.c,
9837         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9838         common/config/score/score-common.c, common/config/sh/sh-common.c,
9839         common/config/sparc/sparc-common.c,
9840         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9841         common/config/vax/vax-common.c,
9842         common/config/xstormy16/xstormy16-common.c,
9843         common/config/xtensa/xtensa-common.c: New.
9844         * config/alpha/alpha.c: Include common/common-target.h.
9845         (alpha_option_optimization_table, alpha_handle_option,
9846         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9847         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9848         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9849         * config/arm/arm.c (arm_option_optimization_table,
9850         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9851         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9852         arm-common.c.
9853         * config/avr/avr.c (avr_option_optimization_table,
9854         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9855         to avr-common.c.
9856         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9857         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9858         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9859         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9860         * config/cris/cris.c (cris_option_optimization_table,
9861         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9862         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9863         cris-common.c.
9864         * config/fr30/fr30.c (fr30_option_optimization_table,
9865         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9866         to fr30-common.c.
9867         * config/frv/frv.c (frv_option_optimization_table,
9868         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9869         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9870         * config/h8300/h8300.c (h8300_option_optimization_table,
9871         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9872         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9873         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9874         * config/i386/i386.c: Include common/common-target.h.
9875         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9876         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9877         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9878         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9879         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9880         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9881         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9882         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9883         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9884         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9885         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9886         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9887         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9888         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9889         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9890         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9891         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9892         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9893         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9894         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9895         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9896         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9897         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9898         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9899         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9900         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9901         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9902         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9903         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9904         ix86_option_optimization_table, ix86_option_init_struct,
9905         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9906         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9907         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9908         i386-common.c.
9909         * config/i386/t-i386 (i386.o): Update dependencies.
9910         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9911         * config/ia64/ia64.c (ia64_option_optimization_table,
9912         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9913         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9914         ia64_handle_option): Move to ia64-common.c.
9915         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9916         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9917         * config/lm32/lm32.c (lm32_option_optimization_table,
9918         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9919         to lm32-common.c.
9920         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9921         m32c-common.c.
9922         * config/m32r/m32r.c (m32r_option_optimization_table,
9923         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9924         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9925         m32r_handle_option): Move to m32r-common.c.
9926         (m32r_memory_move_cost): Remove comment referring to
9927         TARGET_HANDLE_OPTION.
9928         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9929         Move to m68k-common.c.
9930         * config/mcore/mcore.c (mcore_option_optimization_table,
9931         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9932         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9933         * config/mep/mep.c (mep_option_optimization_table,
9934         mep_handle_option, TARGET_HANDLE_OPTION,
9935         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9936         Move to mep-common.c.
9937         * config/microblaze/microblaze.c
9938         (microblaze_option_optimization_table,
9939         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9940         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9941         * config/mips/mips.c (mips_handle_option,
9942         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9943         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9944         mips-common.c.
9945         * config/mmix/mmix.c (mmix_option_optimization_table,
9946         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9947         Move to mmix-common.c.
9948         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9949         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9950         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9951         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9952         * config/pa/pa.c: Include common/common-target.h.
9953         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9954         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9955         pa_handle_option): Move to pa-common.c.
9956         (pa_option_override): Use targetm_common.except_unwind_info.
9957         (pa_asm_output_mi_thunk, pa_function_section): Use
9958         targetm_common.have_named_sections.
9959         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9960         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9961         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9962         pdp11_handle_option, pdp11_option_init_struct): Move to
9963         pdp11-common.c.
9964         * config/picochip/picochip.c (picochip_option_optimization_table,
9965         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9966         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9967         * config/rs6000/rs6000.c: Include common/common-target.h.
9968         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9969         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9970         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9971         rs6000_handle_option): Move to rs6000-common.c.
9972         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9973         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9974         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9975         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9976         * config/s390/s390.c (processor_flags_table,
9977         s390_option_optimization_table, s390_option_init_struct,
9978         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9979         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9980         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9981         * config/s390/s390.h (processor_flags_table): Declare.
9982         * config/score/score.c (score_option_optimization_table,
9983         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9984         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9985         score_handle_option): Move to score-common.c.
9986         * config/sh/sh.c (sh_option_optimization_table,
9987         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9988         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9989         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9990         * config/sparc/sparc.c: Include common/common-target.h.
9991         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9992         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9993         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9994         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9995         spu_option_init_struct): Move to spu-common.c.
9996         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9997         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9998         * config/v850/v850.c (small_memory_physical_max,
9999         v850_handle_memory_optionn v850_handle_option,
10000         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10001         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10002         v850-common.c.
10003         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10004         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10005         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10006         Move to xtensa-common.c.
10007         * cfglayout.c: Include common/common-target.h.
10008         (fixup_reorder_chain): Use targetm_common.have_named_sections.
10009         * cfgrtl.c: Include common/common-target.h.
10010         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10011         targetm_common.have_named_sections.
10012         * dbxout.c: Include common/common-target.h.
10013         (dbxout_function_end): Use targetm_common.have_named_sections.
10014         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10015         targetm_common.except_unwind_info.
10016         * dwarf2out.c: Include common/common-target.h.
10017         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10018         dwarf2out_begin_prologue, dwarf2out_frame_init,
10019         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10020         targetm_common.except_unwind_info.
10021         * except.c: Include common/common-target.h.
10022         (init_eh, finish_eh_generation,
10023         output_one_function_exception_table): Use
10024         targetm_common.except_unwind_info.
10025         (switch_to_exception_section): Use targetm_common.have_named_sections.
10026         * explow.c: Include common/common-target.h.
10027         * expr.c: Include common/common-target.h.
10028         (build_personality_function): Use targetm_common.except_unwind_info.
10029         * function.c: Include common/common-target.h.
10030         (expand_function_end): Use targetm_common.except_unwind_info.
10031         * haifa-sched.c: Include common/common-target.h.
10032         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10033         * lto-opts.c: Include common/common-target.h instead of target.h.
10034         (lto_reissue_options): Use targetm_common.handle_option.
10035         * opts.c: Include common/common-target.h.
10036         (target_handle_option): Use targetm_common.handle_option.
10037         (init_options_struct): Update comment referring to
10038         targetm.target_option.optimization.  Use
10039         targetm_common.default_target_flags,
10040         targetm_common.unwind_tables_default and
10041         targetm_common.option_init_struct.
10042         (default_options_optimization): Use
10043         targetm_common.option_optimization_table.
10044         (finish_options): Use targetm_common.except_unwind_info,
10045         targetm_common.unwind_tables_default,
10046         targetm_common.have_named_sections and
10047         targetm_common.supports_split_stack.
10048         * toplev.c: Include common/common-target.h.
10049         (process_options): Use targetm_common.have_named_sections.
10050         * tree-tailcall.c: Include common/common-target.h.
10051         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10052         * tree.c: Include common/common-target.h.
10053         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10054         * varasm.c: Include common/common-target.h.
10055         (resolve_unique_section, hot_function_section,
10056         default_function_section): Use targetm_common.have_named_sections.
10057
10058 2011-06-14  Easwaran Raman  <eraman@google.com>
10059
10060         PR rtl-optimization/44194
10061         * dse.c: Include tree-flow.h
10062         (insn_info): Add new field non_frame_wild_read.
10063         (group_info): Add new fields escaped_n and escaped_p.
10064         (kill_on_calls): New variable.
10065         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10066         (dse_step0): Initialize kill_on_calls.
10067         (can_escape): New function.
10068         (set_usage_bits): Add additional parameter; record information
10069         about escaped locations.
10070         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10071         (dse_step2_nospill): Set kill_on_calls based on
10072         group->escaped_n and group->escaped_n.
10073         (add_wild_read): Refactor into...
10074         (reset_active_stores): ... New function, and
10075         (free_read_records): ... New function.
10076         (add_non_frame_wild_read): New function.
10077         (scan_insn): Call add_non_frame_wild_read on non-const calls.
10078         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10079         (dse_step5_nospill): Call scan_reads_nospill for instructions
10080         marked as non_frame_wild_read.
10081         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10082
10083 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10084
10085         * common/common-target-def.h, common/common-target.def,
10086         common/common-target.h, common/config/default-common.c,
10087         common/config/pa/pa-common.c: New files.
10088         * Makefile.in (common_out_file, common_out_object_file,
10089         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10090         (OBJS-libcommon-target): Include $(common_out_object_file).
10091         (prefix.o): Update dependencies.
10092         ($(common_out_object_file), common/common-target-hooks-def.h,
10093         s-common-target-hooks-def-h): New.
10094         (s-tm-texi): Also check timestamp on common-target.def.
10095         (build/genhooks.o): Update dependencies.
10096         * config.gcc (common_out_file, target_has_targetm_common): Define.
10097         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10098         TARGET_ALWAYS_STRIP_DOTDOT.
10099         * configure.ac (common_out_object_file): Define.
10100         (common_out_file, common_out_object_file): Substitute.
10101         (common): Create directory.
10102         * configure: Regenerate.
10103         * doc/tm.texi.in (targetm_common): Document.
10104         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10105         * doc/tm.texi: Regenerate.
10106         * genhooks.c (hook_array): Also include common/common-target.def.
10107         * prefix.c (tm.h): Don't include.
10108         (common/common-target.h): Include.
10109         (ALWAYS_STRIP_DOTDOT): Don't define.
10110         (update_path): Use targetm_common.always_strip_dotdot instead of
10111         ALWAYS_STRIP_DOTDOT.
10112         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10113
10114 2011-06-14  David Li  <davidxl@google.com>
10115
10116         * passes.c (execute_function_todo): Remove TODO_dump_func.
10117         (execute_one_pass): Remove TODO_dump_func.
10118         (execute_function_dump): New function.
10119         * tree-vrp.c: Remove TODO_dump_func.
10120         * regrename.c: Remove TODO_dump_func.
10121         * fwprop.c: Remove TODO_dump_func.
10122         * tree-into-ssa.c: Remove TODO_dump_func.
10123         * tree-complex.c: Remove TODO_dump_func.
10124         * tracer.c: Remove TODO_dump_func.
10125         * tree-loop-distribution.c: Remove TODO_dump_func.
10126         * postreload-gcse.c: Remove TODO_dump_func.
10127         * postreload.c: Remove TODO_dump_func.
10128         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10129         * tree-tailcall.c: Remove TODO_dump_func.
10130         * ipa-cp.c: Remove TODO_dump_func.
10131         * final.c: Remove TODO_dump_func.
10132         * tree-emutls.c: Remove TODO_dump_func.
10133         * omp-low.c: Remove TODO_dump_func.
10134         * tree-ssa-dse.c: Remove TODO_dump_func.
10135         * tree-ssa-uncprop.c: Remove TODO_dump_func.
10136         * auto-inc-dec.c: Remove TODO_dump_func.
10137         * reorg.c: Remove TODO_dump_func.
10138         * tree-ssa-copyrename.c: Remove TODO_dump_func.
10139         * tree-ssa-ccp.c: Remove TODO_dump_func.
10140         * compare-elim.c: Remove TODO_dump_func.
10141         * mode-switching.c: Remove TODO_dump_func.
10142         * modulo-sched.c: Remove TODO_dump_func.
10143         * tree-call-cdce.c: Remove TODO_dump_func.
10144         * cse.c: Remove TODO_dump_func.
10145         * web.c: Remove TODO_dump_func.
10146         * tree-stdarg.c: Remove TODO_dump_func.
10147         * lto-streamer-out.c: Remove TODO_dump_func.
10148         * tree-ssa-math-opts.c: Remove TODO_dump_func.
10149         * tree-ssa-dom.c: Remove TODO_dump_func.
10150         * tree-nrv.c: Remove TODO_dump_func.
10151         * loop-init.c: Remove TODO_dump_func.
10152         * gimple-low.c: Remove TODO_dump_func.
10153         * ipa-inline.c: Remove TODO_dump_func.
10154         * tree-ssa-sink.c: Remove TODO_dump_func.
10155         * jump.c: Remove TODO_dump_func.
10156         * ifcvt.c: Remove TODO_dump_func.
10157         * tree-ssa-loop.c: Remove TODO_dump_func.
10158         * recog.c: Remove TODO_dump_func.
10159         * dse.c: Remove TODO_dump_func.
10160         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10161         * matrix-reorg.c: Remove TODO_dump_func.
10162         * tree-eh.c: Remove TODO_dump_func.
10163         * regmove.c: Remove TODO_dump_func.
10164         * function.c: Remove TODO_dump_func.
10165         * tree-vectorizer.c: Remove TODO_dump_func.
10166         * ipa-split.c: Remove TODO_dump_func.
10167         * gcse.c: Remove TODO_dump_func.
10168         * tree-if-conv.c: Remove TODO_dump_func.
10169         * init-regs.c: Remove TODO_dump_func.
10170         * tree-ssa-phiopt.c: Remove TODO_dump_func.
10171         * implicit-zee.c: Remove TODO_dump_func.
10172         * lower-subreg.c: Remove TODO_dump_func.
10173         * bt-load.c: Remove TODO_dump_func.
10174         * tree-dfa.c: Remove TODO_dump_func.
10175         * except.c: Remove TODO_dump_func.
10176         * emit-rtl.c: Remove TODO_dump_func.
10177         * store-motion.c: Remove TODO_dump_func.
10178         * cfgexpand.c: Remove TODO_dump_func.
10179         * tree-cfgcleanup.c: Remove TODO_dump_func.
10180         * cfgcleanup.c: Remove TODO_dump_func.
10181         * tree-ssa-pre.c: Remove TODO_dump_func.
10182         * tree-sra.c: Remove TODO_dump_func.
10183         * tree-mudflap.c: Remove TODO_dump_func.
10184         * tree-ssa-copy.c: Remove TODO_dump_func.
10185         * cfglayout.c: Remove TODO_dump_func.
10186         * tree-ssa-forwprop.c: Remove TODO_dump_func.
10187         * tree-ssa-dce.c: Remove TODO_dump_func.
10188         * ira.c: Remove TODO_dump_func.
10189         * tree-ssa.c: Remove TODO_dump_func.
10190         * integrate.c: Remove TODO_dump_func.
10191         * tree-optimize.c: Remove TODO_dump_func.
10192         * tree-ssa-phiprop.c: Remove TODO_dump_func.
10193         * tree-object-size.c: Remove TODO_dump_func.
10194         * combine.c: Remove TODO_dump_func.
10195         * bb-reorder.c: Remove TODO_dump_func.
10196         * cprop.c: Remove TODO_dump_func.
10197         * var-tracking.c: Remove TODO_dump_func.
10198         * tree-profile.c: Remove TODO_dump_func.
10199         * tree-vect-generic.c: Remove TODO_dump_func.
10200         * reg-stack.c: Remove TODO_dump_func.
10201         * sched-rgn.c: Remove TODO_dump_func.
10202         * tree-ssa-structalias.c: Remove TODO_dump_func.
10203         * tree-switch-conversion.c: Remove TODO_dump_func.
10204         * tree-cfg.c: Remove TODO_dump_func.
10205         * tree-ssa-reassoc.c: Remove TODO_dump_func.
10206         * combine-stack-adj.c: Remove TODO_dump_func.
10207         * dce.c: Remove TODO_dump_func.
10208         * tree-ssanames.c: Remove TODO_dump_func.
10209         * regcprop.c: Remove TODO_dump_func.
10210
10211 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10212
10213         PR middle-end/47364
10214         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10215         and properly handle result not in Pmode.
10216
10217 2011-06-14  Robert Millan  <rmh@gnu.org>
10218
10219         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10220         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10221         `config/linux.h'.
10222
10223         * config/i386/kfreebsd-gnu64.h: New file.
10224         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10225         with `i386/kfreebsd-gnu64.h'.
10226
10227         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10228         (GNU_USER_LINK_EMULATION64): New macros.
10229         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10230         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10231         of hardcoding `elf_i386' and `elf_x86_64'.
10232
10233 2011-06-14  Nick Clifton  <nickc@redhat.com>
10234
10235         PR target/49403
10236         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10237
10238         PR target/49402
10239         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10240
10241 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
10242
10243         PR fortran/49103
10244         * tree.h (DECL_NONSHAREABLE): Define.
10245         (struct tree_decl_common): Change decl_common_unused to
10246         decl_nonshareable_flag.
10247         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10248         Ignore vars with DECL_NONSHAREABLE bit set.
10249         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10250         on stores to automatic aggregate vars.
10251
10252         PR rtl-optimization/49390
10253         Revert:
10254         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10255
10256         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10257         MEM_ALIAS_SET.
10258
10259 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
10260             Tom de Vries  <tom@codesourcery.com>
10261
10262         PR target/45098
10263         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10264         Document changed semantics.
10265         (max_stmt_executions, max_stmt_executions_int): Declare.
10266         * tree-data-ref.c (estimated_loop_iterations)
10267         (estimated_loop_iterations_int): Move functions...
10268         * tree-ssa-loop-niter.c (estimated_loop_iterations)
10269         (estimated_loop_iterations_int): here.
10270         (record_estimate): Change nb_iterations_upper_bound and
10271         nb_iterations_estimate semantics.
10272         (max_stmt_executions, max_stmt_executions_int): New function.
10273         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10274         (max_stmt_executions_tree): this.
10275         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10276         estimated_loop_iterations_tree.
10277         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10278         max_stmt_executions_int instead of estimated_loop_iterations_int.
10279         * predict.c (predict_loops): Idem.
10280         * tree-parloops.c (parallelize_loops): Idem.
10281         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10282         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10283         (init_omega_for_ddr_1): Idem.
10284         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10285         (loop_prefetch_arrays): Idem
10286         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10287         max_stmt_executions instead of estimated_loop_iterations.
10288         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10289         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10290         instead of nb_iterations_upper_bound.
10291
10292 2011-06-13  Jan Hubicka  <jh@suse.cz>
10293
10294         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10295
10296 2011-06-14  Richard Henderson  <rth@redhat.com>
10297
10298         PR debug/48459
10299         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10300         (based_loc_descr): Assert it's true.
10301         (compute_frame_pointer_to_fb_displacement): Set it, rather than
10302         aborting immediately.
10303
10304 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
10305             Mingfeng Wu  <mingfeng@faraday-tech.com>
10306
10307         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10308
10309 2011-06-13  Jan Hubicka  <jh@suse.cz>
10310
10311         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10312
10313 2011-06-13  Jan Hubicka  <jh@suse.cz>
10314
10315         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10316         similarly to DECL_COMDAT.
10317         * cgraphunit.c (cgraph_analyze_function): Likewise.
10318         * ipa.c (function_and_variable_visibility): Likewise.
10319
10320 2011-06-13  Jan Hubicka  <jh@suse.cz>
10321
10322         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10323         BINFO_VIRTUALS when streaming for ltrans unit.
10324
10325 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
10326
10327         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10328         (movdi_internal64): Same.
10329
10330 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10331
10332         PR target/44618
10333         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10334         a set of similar patterns, where the MATCH_OPERAND for the function
10335         argument is replaced with individual references to hardware registers.
10336         (save_fpregs_<mode>): Ditto
10337         (restore_gpregs_<mode>): Ditto
10338         (return_and_restore_gpregs_<mode>): Ditto
10339         (return_and_restore_fpregs_<mode>): Ditto
10340         (return_and_restore_fpregs_aix_<mode>): Ditto
10341
10342 2011-06-13  Jan Hubicka  <jh@suse.cz>
10343
10344         * ipa-utils.c (postorder_stack): New structure.
10345         (ipa_reverse_postorder): Handle aliases.
10346
10347 2011-06-13  Jan Hubicka  <jh@suse.cz>
10348
10349         * ipa-inline.c (reset_edge_caches): Walk aliases.
10350         (update_caller_keys): Do not test inlinability of aliases.
10351         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10352         (do_estimate_growth): Fix typo.
10353
10354 2011-06-13  Jan Hubicka  <jh@suse.cz>
10355
10356         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10357         (can_remove_node_now_p): ... here; handle same comdat groups.
10358         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10359         (inline_call): Update use of can_remove_node_now_p.
10360
10361 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10362
10363         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10364         condition to disallow non-identical memory locations.
10365         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10366         preference to bit manipulation instructions.
10367
10368 2011-06-13  Jan Hubicka  <jh@suse.cz>
10369
10370         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10371         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10372         (nonremovable_p): New function.
10373         (cgraph_can_remove_if_no_direct_calls_p): New function.
10374         (used_from_object_file_p): New functoin.
10375         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10376         references from aliases.
10377         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10378         * ipa-inline.c (check_caller_edge): New function.
10379         (want_inline_function_called_once_p): Use it; accept aliases called
10380         once, too.
10381         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10382
10383 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10384
10385         PR target/48454
10386         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10387         correctly for the case with Quad vectors.
10388
10389 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10390            Ira Rosen  <ira.rosen@linaro.org>
10391
10392         PR tree-optimization/49352
10393         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10394         all, make sure loop_use_stmt after the loop is a def stmt of a used
10395         SSA_NAME that is the only one defined inside of the loop.  Don't
10396         check for COND_EXPR and GIMPLE_BINARY_RHS.
10397         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10398         check_reduction is true.
10399
10400 2011-06-11  Jan Hubicka  <jh@suse.cz>
10401
10402         PR middle-end/49373
10403         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10404
10405 2011-06-11  Jan Hubicka  <jh@suse.cz>
10406
10407         PR middle-end/48836
10408         * ipa-inline-transform.c: Include tree-pass.h
10409         (inline_transform): Set TODO_update_ssa_only_virtuals.
10410         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10411
10412 2011-06-11  Jan Hubicka  <jh@suse.cz>
10413
10414         PR middle-end/49378
10415         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10416         aliases and thunks.
10417
10418 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10419
10420         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10421         Take number of iterations to peel into account for equally frequent
10422         misalignment values.
10423
10424 2011-06-11  Jan Hubicka  <jh@suse.cz>
10425
10426         * lto-streamer-out.c (produce_symtab): Stream out the newly
10427         represented aliases.
10428
10429 2011-06-11  Jan Hubicka  <jh@suse.cz>
10430
10431         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10432         varying args.
10433         (ipa_update_after_lto_read): Likewise.
10434         (ipa_write_node_info): Do not sream call_with_var_arguments.
10435         (ipa_read_node_info): Likewise.
10436
10437 2011-06-11  Jan Hubicka  <jh@suse.cz>
10438
10439         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10440
10441 2011-06-11  Jan Hubicka  <jh@suse.cz>
10442
10443         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10444         (lto_symtab_resolve_can_prevail_p): Likewise.
10445         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10446         * cgraph.c (same_body_aliases_done): New global var.
10447         (cgraph_same_body_alias_1): Rename to ...
10448         (cgraph_create_function_alias): ... this one; reorg to new
10449         representation.
10450         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10451         record references when asked to.
10452         (cgraph_add_thunk): Fix formating.
10453         (cgraph_get_node): Kill same body alias code.
10454         (cgraph_node_for_asm): Likewise.
10455         (cgraph_remove_same_body_alias): Remove.
10456         (cgraph_remove_node): Kill same body alias code.
10457         (cgraph_mark_address_taken_node): Mark also the aliased function
10458         as having address taken.
10459         (dump_cgraph_node): Dump same body aliases.
10460         (cgraph_for_node_thunks_and_aliases): Update for new alias
10461         representation.
10462         (cgraph_for_node_and_aliases): Likewise.
10463         * cgraph.h (same_body): Kll pointer.
10464         (same_body_alias): Update comment.
10465         (same_body_aliases_done): Declare.
10466         (cgraph_remove_same_body_alias): Remove declaration.
10467         (cgraph_create_function_alias): Declare.
10468         (cgraph_process_same_body_aliases): Declare.
10469         (cgraph_function_with_gimple_body_p): Check for alias.
10470         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10471         (cgraph_alias_aliased_node): New function.
10472         (cgraph_function_node): Update for new aliases.
10473         (cgraph_function_or_thunk_node): Likewise.
10474         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10475         (inline_call): Remove dead aliases.
10476         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10477         name hack for same body aliases.
10478         (clone_of_p): Look through aliases.
10479         (verify_cgraph_node): Verify aliases.
10480         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10481         (cgraph_process_same_body_aliases): New function.
10482         (process_function_and_variable_attributes): Disable weakref warning on
10483         alias.
10484         (cgraph_analyze_functions): Handle aliases.
10485         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10486         (assemble_thunks): Rename to ...
10487         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10488         (cgraph_expand_function): Remove alias output code.
10489         (cgraph_output_in_order): Skip aliases.
10490         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10491         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10492         (ipa_record_reference): Do not assert on alias references.
10493         (ipa_ref_has_aliases_p): New function.
10494         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10495         (ipa_ref_has_aliases_p): Declare.
10496         * lto-cgraph.c (lto_output_node): Handle aliases.
10497         (input_node): Likewise.
10498         * lto-streamer-out.c (lto_output): Skip aliases.
10499         (produce_symtab): Kill same_body_alias code.
10500         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10501         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10502         * ipa-inline.c (update_caller_keys): Walk aliases.
10503         (inline_small_functions): Fix thinko in previous patch.
10504         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10505         (function_and_variable_visibility): Do not walk same body aliases.
10506         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10507         (ipa_pta_execute): Use it.
10508
10509 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10510
10511         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10512         (*vec_dupv2df): Rename from vec_dupv2df.
10513         (vec_dupv2df): New expander.
10514
10515 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10516
10517         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10518
10519 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10520
10521         * config/i386/i386.md: Use default value in "isa" attribute.
10522         * config/i386/sse.md: Ditto.
10523         * config/i386/mmx.md: Ditto.
10524
10525 2011-06-10  Wei Guozhi  <carrot@google.com>
10526
10527         PR target/45335
10528         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10529         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10530         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10531         related peephole2.
10532         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10533         related peephole2.
10534         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10535         (arm_legitimate_ldrd_p): New prototype.
10536         (arm_output_ldrd): New prototype.
10537         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10538         (arm_legitimate_ldrd_p): New function.
10539         (arm_output_ldrd): New function.
10540
10541 2011-06-10  David Li  <davidxl@google.com>
10542
10543         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10544         * passes.c (passr_eq): New function.
10545         (create_pass_tab): New function.
10546         (pass_traverse): New function.
10547         (dump_one_pass): New function.
10548         (dump_pass_list): New function.
10549         (dump_passes): New function.
10550
10551 2011-06-10  Jan Hubicka  <jh@suse.cz>
10552
10553         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10554         setting the nothrow flag.
10555         * ipa-reference.c (propagate): Skip aliases.
10556         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10557         (propagate_nothrow): Skip aliases; do not update cgraph.
10558         (local_pure_const): Do not update cgraph.
10559         * tree-profile.c (tree_profiling): Do fixup_cfg.
10560
10561 2011-06-10  Jan Hubicka  <jh@suse.cz>
10562
10563         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10564         (cgraph_local_node_p): ... here; handle aliases.
10565         (has_addr_references_p): Break out from ...;
10566         (cgraph_remove_unreachable_nodes) ... here.
10567
10568 2011-06-10  Jan Hubicka  <jh@suse.cz>
10569
10570         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10571         * common.opt (flag_inline_functions_called_once): Do not
10572         initialize to 1.
10573
10574 2011-06-10  Jan Hubicka  <jh@suse.cz>
10575
10576         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10577         (ipcp_initialize_node_lattices): Do not deal with aliases;
10578         Do not try to propagate through thunks.
10579         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10580
10581 2011-06-10  Jan Hubicka  <jh@suse.cz>
10582
10583         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10584         for indirect calls.
10585         (ipa_read_node_info): Likewise.
10586
10587 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10588
10589         PR lto/49302
10590         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10591         (build_and_insert_call): Likewise.
10592         (build_and_insert_ref): New.
10593         (gimple_expand_builtin_pow): Minor cleanup.
10594         (gimple_expand_builtin_cabs): New.
10595         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10596
10597 2011-06-10  Jan Hubicka  <jh@suse.cz>
10598
10599         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10600         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10601         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10602         (ipcp_propagate_stage): Skip aliases when propagating.
10603         (ipcp_need_redirect_p): Skip aliases.
10604         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10605         collect_callers_of_node.
10606         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10607         for aliases.
10608         (ipa_compute_jump_functions): Look through aliases.
10609
10610 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10611
10612         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10613
10614 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10615
10616         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10617         Adjust comments.
10618         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10619
10620 2011-06-10  Jan Hubicka  <jh@suse.cz>
10621
10622         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10623         Update call of gimple_get_virt_method_for_binfo.
10624         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10625         refuse_thunks parameter.
10626         (gimple_fold_call): Update.
10627         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10628
10629 2011-06-10  Jan Hubicka  <jh@suse.cz>
10630
10631         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10632         (not_all_callers_have_enough_arguments_p): ... this one; turn into
10633         worker for cgraph_for_node_and_aliases.
10634         (convert_callers_for_node): Break out from ...
10635         (convert_callers): ... here.
10636         (modify_function): Use collect_callers_of_node.
10637         (ipa_early_sra): Use cgraph_for_node_and_aliases.
10638
10639 2011-06-10  Richard Guenther  <rguenther@suse.de>
10640
10641         PR tree-optimization/49361
10642         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10643         when not already in gimple form.
10644
10645 2011-06-10  Richard Guenther  <rguenther@suse.de>
10646
10647         PR bootstrap/49344
10648         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10649         FOR_EACH_PHI_OR_STMT_USE.
10650
10651 2011-06-10  Jan Hubicka  <jh@suse.cz>
10652
10653         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10654         (clone_inlined_nodes): ... here.
10655         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10656         to real destination prior inlining.
10657         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10658         can_early_inline_edge_p, want_early_inline_function_p,
10659         want_early_inline_function_p, want_inline_small_function_p,
10660         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10661         edge_badness, update_all_callee_keys, lookup_recursive_calls,
10662         add_new_edges_to_heap, inline_small_functions, flatten_function,
10663         inline_always_inline_functions, early_inline_small_functions): Use
10664         cgraph_function_or_thunk_node.
10665         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10666         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10667         (do_estimate_edge_growth_1): Break out from ...
10668         (do_estimate_growth) ... here; walk aliases.
10669         (inline_generate_summary): Skip aliases.
10670
10671 2011-06-10  Richard Guenther  <rguenther@suse.de>
10672
10673         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10674         forward when combining, visit inserted stmts when a stmt was changed.
10675
10676 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10677
10678         * tree.h (error_operand_p): Add.
10679         * dbxout.c (dbxout_type_fields): Use the latter.
10680         * c-decl.c (add_stmt): Likewise.
10681         * gimplify.c (omp_add_variable, omp_notice_variable,
10682         gimplify_scan_omp_clauses): Likewise.
10683
10684 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10685
10686         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10687         when a value is actually passed in regs.
10688
10689 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
10690             Laurent Rougé  <laurent.rouge@menta.fr>
10691
10692         * doc/invoke.texi (SPARC options): Add -mflat.
10693         * config/sparc/sparc.opt: Likewise.
10694         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10695         (sparc_flat_expand_prologue): Declare.
10696         (sparc_flat_expand_epilogue): Likewise.
10697         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10698         (CPP_ENDIAN_SPEC): Replace with...
10699         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
10700         (CPP_SPEC): Adjust to above change.
10701         (EXTRA_SPECS): Likewise.
10702         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10703         (INCOMING_REGNO): Likewise.
10704         (OUTGOING_REGNO): Likewise.
10705         (LOCAL_REGNO): Likewise.
10706         (SETUP_FRAME_ADDRESSES): Likewise.
10707         (FIXED_REGISTERS): Set 0 for %fp.
10708         (CALL_USED_REGISTERS): Likewise.
10709         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10710         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10711         (RETURN_ADDR_REGNUM): Define.
10712         (RETURN_ADDR_RTX): Use it.
10713         (INCOMING_RETURN_ADDR_REGNUM): Define.
10714         (INCOMING_RETURN_ADDR_RTX): Use it.
10715         (DWARF_FRAME_RETURN_COLUMN): Likewise.
10716         (EH_RETURN_REGNUM): Define.
10717         (EH_RETURN_STACKADJ_RTX): Use it.
10718         (EH_RETURN_HANDLER_RTX): Delete.
10719         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10720         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10721         Delete.
10722         (struct machine_function): Add frame_size, apparent_frame_size,
10723         frame_base_reg, frame_base_offset, n_global_fp_regs and
10724         save_local_in_regs_p fields.
10725         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10726         sparc_frame_base_offset, sparc_n_global_fp_regs,
10727         sparc_save_local_in_regs_p): New macros.
10728         (sparc_option_override): Error out if -fcall-saved-REG is specified
10729         for Out registers.
10730         (eligible_for_restore_insn): Fix formatting.
10731         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
10732         (eligible_for_sibcall_delay): Likewise.
10733         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10734         (sparc_legitimate_address_p): Adjust to above change.
10735         (save_global_or_fp_reg_p): New predicate.
10736         (return_addr_reg_needed_p): Likewise.
10737         (save_local_or_in_reg_p): Likewise.
10738         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
10739         (SORR_SAVE, SORR_RESTORE): Delete.
10740         (sorr_pred_t): New typedef.
10741         (sorr_act_t): New enum.
10742         (save_or_restore_regs): Rename to...
10743         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
10744         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10745         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
10746         mechanism.  Add CFI information for double-word saves in 32-bit mode.
10747         (emit_adjust_base_to_offset): New function extracted from...
10748         (emit_save_or_restore_regs): ...this.  Rename the rest to...
10749         (emit_save_or_restore_regs_global_fp_regs): ...this.
10750         (emit_save_or_restore_regs_local_in_regs): New function.
10751         (gen_create_flat_frame_[123]): New functions.
10752         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
10753         (sparc_flat_expand_prologue): New function.
10754         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10755         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
10756         (sparc_flat_expand_epilogue): New function.
10757         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10758         (output_return): Likewise.
10759         (output_sibcall): Likewise.
10760         (sparc_output_mi_thunk): Likewise.
10761         (sparc_frame_pointer_required): Likewise.
10762         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10763         function optimization.
10764         * config/sparc/sparc.md (flat): New attribute.
10765         (prologue): Add TARGET_FLAT handling.
10766         (save_register_window): Disable if TARGET_FLAT.
10767         (create_flat_frame_[123]): New patterns.
10768         (epilogue): Add TARGET_FLAT handling.
10769         (sibcall_epilogue): Likewise.
10770         (eh_return): New expander.
10771         (eh_return_internal): New insn and splitter.
10772         (return_internal): Add TARGET_FLAT handling.
10773         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10774         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10775         (nonlocal_goto): Add TARGET_FLAT handling.
10776         * config/sparc/t-elf: Add -mflat multilib.
10777         * config/sparc/t-leon: Likewise.
10778
10779 2011-06-10  Jan Hubicka  <jh@suse.cz>
10780
10781         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10782         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10783         (self_recursive_p): Use cgraph_function_node.
10784         (propagate_pure_const): Likewise.
10785         (propagate_nothrow): Likewise.
10786         * ipa-reference.c (ipa_reference_get_not_read_global): Use
10787         cgraph_function_node.
10788         (propagate_bits): Likewise.
10789         (propagate): Likewise.
10790
10791 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10792             Richard Earnshaw  <rearnsha@arm.com>
10793
10794         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10795         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10796         (*thumb2_movdi_vfp): Delete.
10797         (*arm_movdi_vfp_cortexa8): Delete.
10798         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10799         (*movdi_vfp_cortexa8): Likewise.
10800
10801 2011-06-10  Richard Guenther  <rguenther@suse.de>
10802
10803         * stor-layout.c (initialize_sizetypes): Give names to all
10804         sizetype kinds.
10805
10806 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10807
10808         PR tree-optimization/49318
10809         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10810         irrelevant pattern statements.
10811
10812 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10813
10814         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10815
10816         PR bootstrap/49354
10817         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10818         to last assignment.
10819
10820 2011-06-09  Jan Hubicka  <jh@suse.cz>
10821
10822         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10823         do not recompute reachable flag.
10824         (cgraph_finalize_function, cgraph_analyze_functions): Set
10825         redefined_extern_inline here.
10826
10827 2011-06-09  Jan Hubicka  <jh@suse.cz>
10828
10829         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10830         (cgraph_only_called_directly_p): ... this one; bring offline.
10831         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10832         varpool_used_from_object_file_p): Drop names from the declaratoin.
10833         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10834         collect_callers_of_node): New.
10835         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10836         (cgraph_edge_recursive_p): Use cgraph_function_node.
10837         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10838         (cgraph_node_cannot_be_local_p_1): Break out from ...
10839         (cgraph_node_can_be_local_p): ... here; walk aliases.
10840         (cgraph_for_node_thunks_and_aliases): New function.
10841         (cgraph_for_node_and_aliases): New function.
10842         (cgraph_make_node_local_1): Break out from ...
10843         (cgraph_make_node_local) ... here; use
10844         cgraph_for_node_thunks_and_aliases.
10845         (cgraph_set_nothrow_flag_1): Break out from ...
10846         (cgraph_set_nothrow_flag) ... here;
10847         use cgraph_for_node_thunks_and_aliases.
10848         (cgraph_set_const_flag_1): Break out from ...
10849         (cgraph_set_const_flag) ... here;
10850         use cgraph_for_node_thunks_and_aliases.
10851         (cgraph_set_pure_flag_1): Break out from ...
10852         (cgraph_set_pure_flag) ... here;
10853         use cgraph_for_node_thunks_and_aliases.
10854         (cgraph_propagate_frequency_1): Break out from ...
10855         (cgraph_propagate_frequency) ... here; use
10856         cgraph_for_node_thunks_and_aliases.
10857         (cgraph_used_from_object_file_p): Do not care about aliases.
10858         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10859         New functions.
10860         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10861
10862 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10863
10864         PR rtl-optimization/49154
10865         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10866         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10867         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10868         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10869         * config/cris/cris.h (cris_register_move_cost): Remove
10870         !TARGET_V32 code.  Tweak comments.
10871
10872 2011-06-09  Jan Hubicka  <jh@suse.cz>
10873
10874         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10875         address taken.
10876
10877 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10878
10879         PR rtl-optimization/49154
10880         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10881         is a matching slot in the hashtable, assign it to classes_ptr.
10882
10883         PR rtl-optimization/49154
10884         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10885         register classes.
10886         * doc/tm.texi: Regenerate.
10887
10888 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10889
10890         PR target/49307
10891         * config/sh/sh.md (UNSPEC_CHKADD): New.
10892         (chk_guard_add): New define_insn_and_split.
10893         (symGOT_load): Use chk_guard_add instead of blockage.
10894
10895 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10896
10897         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10898
10899 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10900
10901         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10902
10903 2011-06-09  Wei Guozhi  <carrot@google.com>
10904
10905         PR target/46975
10906         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10907         (peephole2 for conditional move): Generate 16 bit instructions.
10908
10909 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10910
10911         * config/i386/i386.md (*movdi_internal_rex64): Merge
10912         alternatives 6 and 8.
10913
10914 2011-06-09  David Li  <davidxl@google.com>
10915
10916         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10917         * passes.c (passr_eq): New function.
10918         (create_pass_tab): New function.
10919         (pass_traverse): New function.
10920         (dump_one_pass): New function.
10921         (dump_pass_list): New function.
10922         (dump_passes): New function.
10923
10924 2011-06-09  David Li  <davidxl@google.com>
10925
10926         * tree-complex.c (tree_lower_complex): Gate cleanup.
10927         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10928         (execute_optimize_stdarg): Ditto.
10929         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10930         (execute_cleanup_eh_1): Ditto.
10931         (execute_cleanup_eh): Ditto.
10932         * gcse.c (gate_rtl_pre): Ditto.
10933         (execute_rtl_pre): Ditto.
10934         * except.c (finish_eh_generation): Ditto.
10935         (convert_to_eh_region_ranges): Ditto.
10936         * cprop.c (one_cprop_pass): Ditto.
10937
10938 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10939
10940         PR target/48673
10941         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10942         in all basic blocks.
10943
10944 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10945
10946         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10947         (HAVE_ENABLE_EXECUTE_STACK): Define.
10948         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10949         (HAVE_ENABLE_EXECUTE_STACK): Define.
10950         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10951         (HAVE_ENABLE_EXECUTE_STACK): Define.
10952         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10953         (ENABLE_EXECUTE_STACK): Remove.
10954         (HAVE_ENABLE_EXECUTE_STACK): Define.
10955         [IN_LIBGCC2]: Don't include <windows.h>.
10956         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10957         (HAVE_ENABLE_EXECUTE_STACK): Define.
10958         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10959         (HAVE_ENABLE_EXECUTE_STACK): Define.
10960         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10961         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10962         (HAVE_ENABLE_EXECUTE_STACK): Define.
10963         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10964         (HAVE_ENABLE_EXECUTE_STACK): Define.
10965         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10966         (HAVE_ENABLE_EXECUTE_STACK): Define.
10967         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10968         (HAVE_ENABLE_EXECUTE_STACK): Define.
10969         * config/alpha/alpha.c (alpha_trampoline_init): Test
10970         HAVE_ENABLE_EXECUTE_STACK.
10971         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10972         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10973         (sparc64_initialize_trampoline): Likewise.
10974         * libgcc2.c [L_enable_execute_stack]: Remove.
10975         * system.h (ENABLE_EXECUTE_STACK): Poison.
10976         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10977         * doc/tm.texi: Regenerate.
10978         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10979
10980 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10981
10982         PR middle-end/49308
10983         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10984         variable.  After resetting and rescanning insn continue with previous
10985         statement.
10986
10987 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10988
10989         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10990         (gcc_cv_ld_hidden): Likewise.
10991         * configure: Regenerate.
10992         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10993         (ix86_stack_protect_fail): Mark unused.
10994         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10995         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10996         [TARGET_MACHO]: Don't define.
10997         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10998         (TARGET_STACK_PROTECT_FAIL): Likewise.
10999         (rs6000_stack_protect_fail): Mark unused.
11000         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11001         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
11002
11003 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11004
11005         * varasm.c (get_section): Print location of other conflict
11006         for section conflicts.
11007
11008 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11009
11010         * config/i386/driver-i386.c (host_detect_local_cpu):
11011         Add model 0x2d Intel CPU.
11012
11013 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11014
11015         * reginfo.c (global_regs_decl): Add.
11016         (globalize_reg): Add decl parameter. Compute location.  Pass location
11017         to warnings and add inform. Store decl in global_regs_decl.
11018         * rtl.h (globalize_reg): Update prototype.
11019         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11020
11021 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
11022
11023         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11024
11025 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11026
11027         PR target/49305
11028         * config/sh/predicates.md (general_movsrc_operand): Check
11029         mode for memory with indexed address for QI and HImode.
11030         (general_movdst_operand): Likewise.
11031
11032 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11033
11034         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11035
11036 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
11037
11038         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11039         (num_ssa_operands): Likewise.
11040         (op_iter_init_phiuse): Forward-declare.
11041         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11042
11043 2011-06-08  Nick Clifton  <nickc@redhat.com>
11044
11045         * doc/invoke.texi (ARM Options): Update description of
11046         -mthumb-interwork.
11047
11048 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11049
11050         * config/i386/driver-i386.c (host_detect_local_cpu): Support
11051         unknown Intel family 0x6 CPUs.
11052
11053 2011-06-08  Martin Jambor  <mjambor@suse.cz>
11054
11055         * tree-sra.c (mark_rw_status): Removed.
11056         (analyze_access_subtree): New parameter parent instead of
11057         mark_read and mark_write, propagate from that.
11058
11059 2011-06-08  Julian Brown  <julian@codesourcery.com>
11060
11061         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11062         for double-precision helper functions in hard-float mode if only
11063         single-precision arithmetic is supported in hardware.
11064
11065 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
11066
11067         PR rtl-optimization/49303
11068         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
11069         code_motion_path_driver returned 0 or 1.
11070         (sel_region_finish): Clear h_d_i_d.
11071
11072 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11073
11074         * config/sh/sh.c (prepare_move_operands): Set pic register
11075         appropriately for global and local dynamic tls models even
11076         if flag_pic is unset.
11077
11078 2011-06-07  Jason Merrill  <jason@redhat.com>
11079
11080         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11081
11082 2011-06-07  Xinliang David Li  <davidxl@google.com>
11083         * passes.c (enable_disable_pass): Handle assembler name.
11084         (is_pass_explicitly_enabled_or_disabled): Ditto.
11085
11086 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11087
11088         PR tree-optimization/48497
11089         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11090
11091 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11092
11093         PR tree-optimization/46728
11094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11095         to use gimple_val_nonnegative_real_p.
11096         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11097         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11098
11099 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
11100
11101         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11102
11103 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
11104
11105         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11106         constant vectors.
11107
11108 2011-06-07  Richard Guenther  <rguenther@suse.de>
11109
11110         * stor-layout.c (initialize_sizetypes): Initialize all
11111         sizetypes based on target definitions.
11112         (set_sizetype): Remove.
11113         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11114         * tree.h (set_sizetype): Remove.
11115
11116 2011-06-07  Nick Clifton  <nickc@redhat.com>
11117
11118         * config.gcc: Unify V850 architecture options and add support for
11119         newer V850 architectures.
11120         * config/v850/t-v850e: Delete.
11121
11122 2011-06-07  Richard Guenther  <rguenther@suse.de>
11123
11124         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11125         Call set_sizetype from here.
11126
11127 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
11128
11129         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11130         (*maddhisi4tb, *maddhisi4tt): New define_insns.
11131
11132 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
11133             Andrew Stubbs  <ams@codesourcery.com>
11134
11135         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11136         multiplies.
11137         * doc/md.texi (Canonicalization of Instructions): Document widening
11138         multiply canonicalization.
11139
11140 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
11141
11142         PR gcov-profile/49299
11143         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11144
11145 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
11146
11147         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11148         a pointer.
11149         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11150         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11151         vect_recog_pow_pattern): Likewise.
11152         (vect_pattern_recog_1): Remove declaration.
11153         (widened_name_p): Remove declaration.  Add new argument to specify
11154         whether to check that both types are either signed or unsigned.
11155         (vect_recog_widen_mult_pattern): Update documentation.  Handle
11156         unsigned patterns and multiplication by constants.
11157         (vect_pattern_recog_1): Update vect_recog_func references.  Use
11158         statement information from the statement returned from pattern
11159         detection functions.
11160         (vect_pattern_recog): Update vect_recog_func reference.
11161         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11162         multiplication by a constant use the type of the other operand.
11163
11164 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
11165
11166         PR rtl-optimization/49145
11167         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11168
11169 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
11170
11171         PR debug/49262
11172         * dwarf2out.c (native_encode_initializer): Decrement count in each
11173         iteration.
11174
11175         PR debug/49294
11176         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11177         non-MODE_INT modes.
11178
11179         PR c++/49264
11180         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11181         if stmt folded into nothing.
11182         * tree-inline.c (fold_marked_statements): If a builtin at the end of
11183         a bb folded into nothing, just update cgraph edges and move to next bb.
11184         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11185         to be NULL.  Don't compute count and frequency if new_call is NULL.
11186
11187 2011-06-04  Diego Novillo  <dnovillo@google.com>
11188
11189         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11190         (cgraph.o): Likewise.
11191         (cgraphunit.o): Likewise.
11192         * cgraphunit.c: Include lto-streamer.h
11193         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11194         if LTO is enabled.
11195         * lto-streamer-in.c (unpack_value_fields): Call
11196         streamer_hooks.unpack_value_fields if set.
11197         (lto_materialize_tree): For unhandled nodes, first try to
11198         call lto_streamer_hooks.alloc_tree, if it exists.
11199         (lto_input_ts_decl_common_tree_pointers): Move reading of
11200         DECL_INITIAL to lto_streamer_read_tree.
11201         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11202         (lto_streamer_read_tree): New.
11203         (lto_reader_init): Rename from lto_init_reader.
11204         Move initialization code to lto/lto.c.
11205         * lto-streamer-out.c (pack_value_fields): Call
11206         streamer_hooks.pack_value_fields if set.
11207         (lto_output_tree_ref): For tree nodes that are not normally indexable,
11208         call streamer_hooks.indexable_with_decls_p before giving up.
11209         (lto_output_ts_decl_common_tree_pointers): Move handling
11210         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11211         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11212         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
11213         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11214         (lto_streamer_write_tree): New.
11215         (lto_output): Call lto_streamer_init directly.
11216         (lto_writer_init): Remove.
11217         * lto-streamer.c (streamer_hooks): New.
11218         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11219         instead of lto_preload_common_nodes.
11220         (lto_is_streamable): Move from lto-streamer.h
11221         (lto_streamer_hooks_init): New.
11222         (streamer_hooks): New.
11223         (streamer_hooks_init): New.
11224         * lto-streamer.h (struct output_block): Forward declare.
11225         (struct lto_input_block): Likewise.
11226         (struct data_in): Likewise.
11227         (struct bitpack_d): Likewise.
11228         (struct streamer_hooks): Declare.
11229         (streamer_hooks): Declare.
11230         (lto_streamer_hooks_init): Declare.
11231         (lto_streamer_write_tree): Declare.
11232         (lto_streamer_read_tree): Declare.
11233         (streamer_hooks_init): Declare.
11234         (lto_is_streamable): Move to lto-streamer.c
11235
11236 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11237
11238         * longlong.h (smul_ppmm): The resulting register pair contains the
11239         higher order word first.
11240
11241 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11242
11243         PR tree-optimization/46728
11244         * builtins.c (powi_table): Remove.
11245         (powi_lookup_cost): Remove.
11246         (powi_cost): Remove.
11247         (expand_powi_1): Remove.
11248         (expand_powi): Remove.
11249         (expand_builtin_pow_root): Remove.
11250         (expand_builtin_pow): Remove.
11251         (expand_builtin_powi): Eliminate handling of constant exponent.
11252         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11253
11254 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11255
11256         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11257
11258 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11259
11260         * dce.c (reset_unmarked_insns_debug_uses): New.
11261         (delete_unmarked_insns): Skip debug insns.
11262         (prescan_insns_for_dce): Likewise.
11263         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11264         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11265         active reg can be found.
11266         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
11267         (convert_regs_1): Use it.
11268
11269 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11270
11271         * tree-pretty-print.c (dump_function_header): Add flags.
11272         Don't dump decl_uid with nouid.
11273         * tree-pretty-print.h (dump_function_header): Adjust.
11274         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11275         * passes.c (pass_init_dump_file): Pass dump_flags on.
11276         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11277
11278 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11279
11280         PR bootstrap/49270
11281         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11282
11283 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
11284
11285         PR tree-optimization/49243
11286         * calls.c (setjmp_call_p): Also check if fndecl has the
11287         returns_twice attribute.
11288
11289 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11290
11291         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11292         -ffast-math etc.
11293
11294 2011-06-06  Richard Henderson  <rth@redhat.com>
11295             Georg-Johann Lay  <avr@gjlay.de>
11296
11297         PR target/42210
11298         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11299         New predicates.
11300         * config/avr/avr.md ("insv"): New insn expander.
11301         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11302         "*insv.not.io", "*insv.reg"): New insns.
11303
11304 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
11305
11306         PR target/49285
11307         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11308         to nonimmediate_operand from memory_operand for the operand that is to
11309         be forced to memory by the expander.  Lose the constraints.
11310
11311 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11312
11313         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11314         EH return when delayed branches are disabled.
11315
11316 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
11317
11318         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11319         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
11320         calculation.
11321         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11322         Simplify MODE_V1DF and MODE_V2SF handling.
11323         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11324         Simplify MODE_SF handling.
11325
11326 2011-06-04  Jan Hubicka  <jh@suse.cz>
11327
11328         PR tree-optimization/48893
11329         PR tree-optimization/49091
11330         PR tree-optimization/49179
11331         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11332         Bounds check.
11333
11334 2011-06-04  Jan Hubicka  <jh@suse.cz>
11335
11336         PR lto/48954
11337         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11338         bitmaps.
11339
11340 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11341
11342         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11343
11344 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11345
11346         PR target/49281
11347         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11348         to be strictly smaller than 1 << shiftcount.
11349
11350 2011-06-04  Jan Hubicka  <jh@suse.cz>
11351
11352         PR tree-optimize/48929
11353         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11354         of empty predicate.
11355
11356 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11357
11358         PR debug/48333
11359         * calls.c (emit_call_1): Prefer the __builtin declaration of
11360         builtin functions.
11361
11362 2011-06-03   Diego Novillo  <dnovillo@google.com>
11363
11364         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11365         (lto_input_tree_pointers): Likewise.
11366         * lto-streamer-out.c (pack_value_fields): Likewise.
11367         (lto_output_tree_pointers): Likewise.
11368         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11369         and OPTIMIZATION_NODE.
11370
11371 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11372
11373         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11374         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11375         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11376         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11377         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11378         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11379         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11380         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11381         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11382         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11383         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11384         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11385         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11386         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11387         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11388         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11389         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11390         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11391         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11392         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11393         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11394         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11395         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11396         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11397         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11398         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11399         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11400         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11401         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11402         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11403         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11404         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11405         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11406         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11407         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11408         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11409         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11410         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11411         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11412         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11413         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11414         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11415         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11416         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11417         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11418         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11419         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11420         * system.h (MD_UNWIND_SUPPORT): Poison.
11421         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11422         * doc/tm.texi: Regenerate.
11423         * unwind-dw2.c: Include md-unwind-support.h instead of
11424         MD_UNWIND_SUPPORT.
11425         * config/ia64/unwind-ia64.c: Likewise.
11426         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11427
11428 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11429
11430         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11431
11432 2011-06-03  Richard Henderson  <rth@redhat.com>
11433             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11434
11435         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11436         (sigill_hdlr): Correct insn, insn size.
11437         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11438
11439 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11440
11441         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11442         t-slibgcc-dummy.
11443         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11444         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11445         * config/mips/t-iris: Remove.
11446         * config/mips/t-irix6: New file.
11447         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11448
11449 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11450
11451         * Makefile.in (LIB2ADDEHDEP): Remove.
11452         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11453         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11454         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11455         * config/t-darwin (LIB2ADDEHDEP): Remove.
11456         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11457         * config/t-linux (LIB2ADDEHDEP): Remove.
11458
11459 2011-06-03  Diego Novillo  <dnovillo@google.com>
11460
11461         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11462         (lto_register_var_decl_in_symtab): Likewise.
11463         (lto_register_function_decl_in_symtab): Likewise.
11464         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11465         logic to uniquify_nodes.
11466
11467 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11468
11469         * config/alpha/t-osf5: Remove.
11470         * config/alpha/t-osf-pthread: Remove.
11471         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11472         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11473
11474 2011-06-03  Julian Brown  <julian@codesourcery.com>
11475
11476         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11477         (strongarm1110): Use strongarm tuning.
11478         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11479         * config/arm/arm.c (arm_strongarm_tune): New.
11480         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11481         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11482         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11483         setting, using previous defaults or 1 for Cortex-A5.
11484         (arm_option_override): Set max_insns_skipped from current tuning.
11485
11486 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11487
11488         * doc/install.texi (Options specification): Document --with-specs.
11489
11490 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11491
11492         * config/arm/neon.md (orndi3_neon): Actually split it.
11493
11494 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11495
11496         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11497         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11498
11499 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11500
11501         PR debug/47590
11502         * target.def (delay_sched2, delay_vartrack): New.
11503         * doc/tm.texi.in: Update.
11504         * doc/tm.texi: Rebuild.
11505         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11506         * var-tracking.c (gate_handle_var_tracking): Likewise.
11507         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11508         (bfin_flag_var_tracking): Drop.
11509         (output_file_start): Don't save and override flag_var_tracking.
11510         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11511         (bfin_reorg): Test original variables.
11512         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11513         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11514         (ia64_flag_var_tracking): Drop.
11515         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11516         (ia64_file_start): Don't save and override flag_var_tracking.
11517         (ia64_override_options_after_change): Ditto
11518         flag_schedule_insns_after_reload.
11519         (ia64_reorg): Test original variables.
11520         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11521         (picochip_flag_var_tracking): Drop.
11522         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11523         (picochip_option_override): Don't save and override
11524         flag_schedule_insns_after_reload.
11525         (picochip_asm_file_start): Ditto flag_var_tracking.
11526         (picochip_reorg): Test original variables.
11527         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11528         (TARGET_DELAY_VARTRACK): Define.
11529         (spu_var_tracking): New.
11530         (spu_machine_dependent_reorg): Call it.
11531         (asm_file_start): Don't save and override flag_var_tracking.
11532
11533 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11534
11535         PR target/49163
11536         * config/sh/predicates.md (general_movsrc_operand): Return 0
11537         for memory and memory subreg of which address is an invalid
11538         indexed address for QI and HImode.
11539         (general_movdst_operand): Likewise.
11540
11541 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11542
11543         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11544         edges only, when there is a non-local label in the function.
11545         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11546
11547 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11548
11549         * config/i386/constraints.md (Y3): New register constraint.
11550         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11551         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11552         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11553         *sse2_interleave_lowv2df.
11554
11555 2011-06-02  Julian Brown  <julian@codesourcery.com>
11556
11557         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11558         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11559         (arm_cortex_a5_tune): New.
11560
11561 2011-06-02  Julian Brown  <julian@codesourcery.com>
11562
11563         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11564         * config/arm/arm.c (arm_default_branch_cost): New.
11565         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11566         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11567         (arm_fa726_tune): Set branch_cost field using
11568         arm_default_branch_cost.
11569         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11570         current_tune structure.
11571         * dojump.c (tm_p.h): Include file.
11572
11573 2011-06-02  Julian Brown  <julian@codesourcery.com>
11574
11575         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11576         tuning.
11577         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11578         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11579         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11580         field.
11581         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11582         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11583         (arm_fa726te_tune): Add prefer_constant_pool setting.
11584         (arm_v6t2_tune, arm_cortex_tune): New.
11585         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11586         prefer_constant_pool setting.
11587
11588 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11589
11590         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11591         switch statement.
11592         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11593         (*movdf_internal) <case 6,7,8>: Ditto.
11594
11595         * config/i386/constraints.md (Y4): New register constraint.
11596         * config/i386/sse.md (vec_set<mode>_0): Merge with
11597         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11598         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11599         *vec_extractv2di_1_sse.
11600         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11601         and *vec_concatv2di_rex64_sse.
11602
11603 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11604
11605         PR target/48807
11606         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11607         of cgraph_local_info for null before attempting to use it.
11608
11609 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11610
11611         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11612         (current_function_dynamic_alloc_count): Delete.
11613         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11614         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11615         (expand_builtin_update_setjmp_buf): Remove dead code.
11616         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11617         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11618         support.
11619         * function.c (instantiate_virtual_regs): Likewise.
11620         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11621         for a block with a single abnormal incoming edge.
11622         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11623         (SETJMP_VIA_SAVE_AREA): Delete.
11624         * config/sparc/sparc-protos.h (load_got_register): Declare.
11625         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11626         (load_got_register): Make global.
11627         (sparc_frame_pointer_required): Add 'static'.
11628         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11629         (sparc_builtin_setjmp_frame_value): New function.
11630         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11631         (save_stack_nonlocal): New expander.
11632         (restore_stack_nonlocal): Likewise.
11633         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11634         (nonlocal_goto_internal): New insn.
11635         (goto_handler_and_restore): Delete.
11636         (builtin_setjmp_setup): Likewise.
11637         (do_builtin_setjmp_setup): Likewise.
11638         (setjmp): Likewise.
11639         (builtin_setjmp_receiver): New expander.
11640
11641 2011-06-01  David Li  <davidxl@google.com>
11642
11643         PR middle-end/49261
11644         * tree-pretty-print.c (dump_function_header): Format cleanup.
11645
11646 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11647
11648         PR target/49238
11649         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11650         needed when original operands are used for msw_skip comparison.
11651
11652 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11653
11654         PR debug/49250
11655         * var-tracking.c (add_uses, add_stores): Don't call
11656         cselib_subst_to_values on ENTRY_VALUE.
11657
11658 2011-06-01  Diego Novillo  <dnovillo@google.com>
11659
11660         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11661         output_record_start with LTO_null instead of output_zero.
11662         (lto_output_ts_binfo_tree_pointers): Likewise.
11663         (lto_output_tree): Likewise.
11664         (output_eh_try_list): Likewise.
11665         (output_eh_region): Likewise.
11666         (output_eh_lp): Likewise.
11667         (output_eh_regions): Likewise.
11668         (output_bb): Likewise.
11669         (output_function): Likewise.
11670         (output_unreferenced_globals): Likewise.
11671         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11672         instead of NUM_TREE_CODES.
11673         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11674         (lto_output_int_in_range): Change << to >> when shifting VAL.
11675
11676 2011-06-01  Diego Novillo  <dnovillo@google.com>
11677
11678         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11679         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11680
11681 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11682
11683         PR target/45074
11684         * optabs.h (valid_multiword_target_p): Declare.
11685         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11686         doing multi-word operations.
11687         * optabs.c (expand_binop): Likewise.
11688         (expand_doubleword_bswap): Likewise.
11689         (expand_absneg_bit): Likewise.
11690         (expand_unop): Likewise.
11691         (expand_copysign_bit): Likewise.
11692         (multiword_target_p): New function.
11693
11694 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11695
11696         PR rtl-optimization/48830
11697         PR rtl-optimization/48808
11698         PR rtl-optimization/48792
11699         * reload.c (push_reload): Check contains_reg_of_mode.
11700         * reload1.c (strip_paradoxical_subreg): New function.
11701         (gen_reload_chain_without_interm_reg_p): Use it to handle
11702         paradoxical subregs.
11703         (emit_output_reload_insns, gen_reload): Likewise.
11704
11705 2011-06-01  David Li  <davidxl@google.com>
11706
11707         * predict.c : Change pass name
11708         * ipa.c: Ditto.
11709         * dce.c: Ditto.
11710         * tree-profile.c: Ditto.
11711         * except.c: Ditto.
11712
11713 2011-06-01  David Li  <davidxl@google.com>
11714
11715         * tree-pretty-print.c (dump_function_header): New function.
11716         * final.c (rest_of_clean_state): Use header dumper.
11717         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11718         * passes.c (pass_init_dump_file): Use header dumper.
11719
11720 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11721
11722         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11723         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11724         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11725         New functions.
11726         (mem_loc_descriptor): Use them.
11727
11728         * var-tracking.c (create_entry_value): New function.
11729         (vt_add_function_parameter): Use it.
11730
11731 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11732
11733         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11734         Include <signal.h>, <ucontext.h>.
11735         (sigill_caught): Define.
11736         (sigill_hdlr): New function.
11737         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11738         insns can be executed.
11739         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11740         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11741
11742 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11743
11744         * config/t-slibgcc-darwin: Move to ...
11745         * config/t-slibgcc-dummy: ... this.  Clarify comments.
11746         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11747         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11748         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11749         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
11750         Remove i386/t-crtstuff from tmake_file.
11751         (i[34567]86-*-solaris2*): Remove t-svr4,
11752         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11753         t-slibgcc-dummy.
11754         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11755         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11756         sparc/t-crtfm from tmake_file.
11757         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11758         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11759         Remove extra_parts.
11760         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11761         * config/i386/t-nwld (SHLIB_LINK): Remove.
11762         * config/i386/t-rtems-i386: Rename to ...
11763         * config/i386/t-rtems: ... this.
11764         ($(T)crti.o, $(T)crtn.o): Remove.
11765         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11766         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11767         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11768         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11769         EXTRA_MULTILIB_PARTS): Remove.
11770         * config/sparc/t-sol2-64: Likewise.
11771         * config/sparc/t-sol2: Remove.
11772         * config/sparc/t-crtin: Remove.
11773         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11774         * config/i386/gmon-sol2.c: Remove.
11775         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11776         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11777         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11778         * config/i386/sol2-gc1.asm: Remove.
11779         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11780         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11781         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11782         * config/t-slibgcc-sld: Remove.
11783
11784 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11785
11786         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11787         base_type_for_mode with op_mode instead of mode.
11788
11789 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
11790
11791         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
11792         Cortex-A15.
11793         * config/arm/arm-tune.md: Regenerate.
11794         * config/arm/arm-tables.opt: Regenerate.
11795         * config/arm/arm.c (FL_DIV): Rename...
11796         (FL_THUMB_DIV): ... to this.
11797         (FL_ARM_DIV): Define.
11798         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11799         (arm_arch_hwdiv): Remove.
11800         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11801         (arm_issue_rate): Add cortexr5.
11802         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11803         __ARM_ARCH_EXT_IDIV__.
11804         (TARGET_IDIV): Define.
11805         (arm_arch_hwdiv): Remove.
11806         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11807         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11808         (divsi3, udivsi3): New patterns.
11809         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11810         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11811
11812 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11813
11814         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11815         * ipa-utils.c (searchc): Set scc_no.
11816
11817 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11818
11819         * ipa-utils.c (searchc_env): New field allow_overwritable.
11820         (searchc): do not ignore edges to overwritable nodes if indicated
11821         by env->allow_overwritable.
11822         (ipa_reduced_postorder): Set env.allow_overwritable.
11823
11824 2011-06-01  Richard Guenther  <rguenther@suse.de>
11825
11826         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11827         char_type_node.
11828         * lto-streamer.c (lto_record_common_node): Take node pointer,
11829         do not register types.
11830         (lto_preload_common_nodes): Explicitly skip preloading nodes
11831         that differ between frontends.
11832
11833 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11834
11835         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11836         NON_FLOAT_REGS.
11837
11838 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11839
11840         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11841         parameter value for dump. Dump cost on outermost call only.
11842         (rs6000_memory_move_cost): Dump cost on outermost call only.
11843
11844 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11845
11846         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11847         DW_OP_GNU_convert ops.
11848
11849         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11850         cselib_preserve_constants.
11851         (cselib_lookup_1): If cselib_preserve_constants,
11852         a new VALUE is being created for REG and there is a VALUE for the
11853         same register in wider mode, add another loc with lowpart SUBREG of
11854         the wider VALUE.
11855         (cselib_subst_to_values): Handle ENTRY_VALUE.
11856         * var-tracking.c  (replace_expr_with_values): Return NULL for
11857         ENTRY_VALUE too.
11858         * dwarf2out.c (convert_descriptor_to_signed): New function.
11859         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11860         instead of two shifts.
11861         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11862         the right mode if needed.
11863         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11864         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11865         convert_descriptor_to_signed.
11866         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11867         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11868
11869         PR target/48688
11870         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11871
11872 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11873
11874         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11875         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11876         (SWI248x): New mode iterator, rename from X87MODEI.
11877         (X87MODEI): Remove mode iterator.
11878         (X87MODEI12): Ditto.
11879         (SSEMODEI24): Ditto.
11880
11881 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11882
11883         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11884         * doc/invoke.texi: Document max-vartrack-expr-depth.
11885         * var-tracking.c (EXPR_DEPTH): New.
11886         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11887
11888 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11889
11890         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11891         * config/i386/sse.md: Add n to negated FMA pattern names.
11892
11893 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11894
11895         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11896
11897 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11898
11899         * gengtype-state.c (read_state_params_structs): Initialize previous.
11900
11901 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11902
11903         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11904         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11905
11906 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11907
11908         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11909         registers.  Penalize F*r->o alternative to prevent partial memory
11910         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11911         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11912         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11913         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11914         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11915         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11916         alternatives.
11917         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11918
11919         (fp_register_operand splitters): Use fp_register_operand
11920         constraint.  Do not use FP_REG_P in insn condition.
11921         (any_fp_register_operand splitters): Use any_fp_register_operand
11922         constraint.  Do not use ANY_FP_REG_P in insn condition.
11923
11924 2011-05-31  Jan Hubicka  <jh@suse.cz>
11925
11926         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11927         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11928         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11929         (lto_output_edge): Use output_enum and var_len_unsigned.
11930         (lto_output_varpool_node): Likewise.
11931         (input_overwrite_node): Do not take resolution parameter;
11932         extract it from a bitpack.
11933         (input_node): Do not read resolution; use input_enum and
11934         var_len_unsigned.
11935         (input_varpool_node): Likewise.
11936         (input_edge): Likewise.
11937         (input_cgraph_1): Likewise.
11938
11939 2011-05-31  Richard Guenther  <rguenther@suse.de>
11940
11941         * gimple.c (gimple_register_canonical_type): Do not register
11942         any types via gimple_register_type.
11943
11944 2011-05-31  Jan Hubicka  <jh@suse.cz>
11945
11946         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11947         of thunks.
11948
11949 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11950
11951         PR rtl-optimization/49235
11952         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11953         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11954
11955 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11956
11957         PR tree-optimization/49093
11958         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11959         data references.
11960
11961 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11962
11963         PR debug/49047
11964         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11965         for concrete functions containing the code of cloned functions.
11966
11967 2011-05-31  Richard Guenther  <rguenther@suse.de>
11968
11969         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11970         to ...
11971         (forward_propagate_into_comparison_1): ... this.
11972         (forward_propagate_comparison): Rename to ...
11973         (forward_propagate_into_comparison): ... this.  Split out
11974         real forward propagation code to ...
11975         (forward_propagate_comparison): ... this.
11976         (forward_propagate_into_gimple_cond): Remove looping.
11977         (forward_propagate_into_cond): Likewise.
11978         (simplify_not_neg_expr): Return whether we have done something.
11979         (simplify_gimple_switch): Likewise.
11980         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11981         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11982         to do a forward forward-propagation walk on BBs and a backward
11983         stmt combining walk on BBs.  Consistently re-scan changed statements.
11984         (pass_forwprop): Adjust.
11985
11986 2011-05-30  Ian Lance Taylor  <iant@google.com>
11987
11988         * godump.c (go_format_type): Correct length of name added to
11989         obstack for anonymous field.
11990
11991 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11992
11993         PR target/49186
11994         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11995         part of the second operand is 0.
11996
11997 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11998
11999         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12000         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
12001         to memory for !TARGET_MEMORY_MISMATCH_STALL.
12002         (*movdf_internal_rex64): Do not penalize F->r alternative.
12003         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12004         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
12005         when optimizing function for size.  Do not move CONST_DOUBLEs
12006         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12007         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
12008         SUBREGs.  Do not check for MEM_P operands in the insn condition,
12009         check for ANY_FP_REGNO_P instead.
12010         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12011         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12012         function for speed.
12013         * config/i386/i386.c (ix86_option_override_internal): Do not
12014         set TARGET_INTEGER_DFMODE_MOVES here.
12015
12016 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12017
12018         PR target/49168
12019         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12020
12021 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12022
12023         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12024         DW_TAG_rvalue_reference_type even for
12025         -gdwarf-4 -fno-debug-types-section.
12026
12027 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12028
12029         PR tree-optimization/46728
12030         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12031         (build_and_insert_binop): New.
12032         (gimple_expand_builtin_pow): Reorder args for
12033         build_and_insert_call; use build_and_insert_binop; add more
12034         optimizations for fractional exponents.
12035
12036 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
12037
12038         PR bootstrap/49190
12039
12040         Revert:
12041         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12042
12043         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12044         tree_common.
12045         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12046         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12047         TS_BASE instead of TS_COMMON.
12048         * varasm.c (assemble_name): Remove assert.
12049
12050 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
12051
12052         * config.gcc: Keep obselete list sorted.
12053
12054 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12055             Eric Botcazou  <ebotcazou@adacore.com>
12056
12057         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12058         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12059         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12060         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12061         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12062
12063 2011-05-30  Richard Guenther  <rguenther@suse.de>
12064
12065         * gimple.c (gimple_types_compatible_p_1): Compare record
12066         and union type members properly.
12067
12068 2011-05-30  Richard Guenther  <rguenther@suse.de>
12069
12070         PR tree-optimization/49210
12071         * ipa-split.c (split_function): Care for the case where the call
12072         result is not trivially convertible to the result holding variable.
12073
12074 2011-05-30  Richard Guenther  <rguenther@suse.de>
12075
12076         PR tree-optimization/49218
12077         * tree-vrp.c (adjust_range_with_scev): Properly check whether
12078         overflow occured.
12079
12080 2011-05-30  Richard Guenther  <rguenther@suse.de>
12081
12082         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12083         New function split out from ...
12084         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12085         (forward_propagate_into_cond): Likewise.
12086         (forward_propagate_comparison): Also propagate into
12087         comparisons on assignment RHS.  Change return value to
12088         behave similar to forward_propagate_into_cond.
12089         (tree_ssa_forward_propagate_single_use_vars): Handle
12090         strict-overflow warnings properly for forward_propagate_comparison.
12091
12092 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12093
12094         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12095         from plugin linker.
12096         * configure: Regenerate.
12097
12098 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
12099
12100         PR tree-optimization/49199
12101         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12102         non-reduction operands are either defined in the loop or by induction.
12103
12104 2011-05-29  Xinliang David Li  <davidxl@google.com>
12105
12106         * opts-global.c (handle_common_deferred_options): Handle new options.
12107         * passes.c (register_one_dump_file): Call register_pass_name.
12108         (execute_one_pass): Check explicit enable/disable flag.
12109         (passr_hash): New function.
12110         (passr_eq): Ditto.
12111         (register_pass_name): Ditto.
12112         (get_pass_by_name): Ditto.
12113         (pass_hash): Ditto.
12114         (pass_eq): Ditto.
12115         (enable_pass): Ditto.
12116         (disable_pass): Ditto.
12117         (is_pass_explicitly_enabled_or_disabled): Ditto.
12118
12119 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         * config/i386/i386.md (*movoi_internal_avx): Use
12122         standard_sse_constant_opcode for alternative 0.
12123         (*movti_internal_sse): Ditto.
12124         (*movti_internal_rex64): Use standard_sse_constant_opcode for
12125         alternative 2.
12126         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12127         sselog1 type moves.
12128         (*movsi_internal): Ditto.
12129         (*movdi_internal): Ditto.  Add ssecvt type moves.
12130
12131 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12132
12133         PR target/48830
12134         * rtlanal.c (simplify_subreg_regno): Adjust comment.
12135
12136 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
12137
12138         PR rtl-optimization/49095
12139         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12140         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12141
12142 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12143
12144         PR target/43995
12145         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12146         recurse_p argument.  Only follow register copies if it is set,
12147         and prevent mips_find_pic_call_symbol from recursing.
12148         (mips_find_pic_call_symbol): Add a recurse_p argument.
12149         Pass it to mips_pic_call_symbol_from_set.
12150         (mips_annotate_pic_calls): Update accordingly.
12151
12152 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12153
12154         * emit-rtl.c (try_split): Use a loop to search for
12155         NOTE_INSN_CALL_ARG_LOCATIONs.
12156
12157 2011-05-29  Richard Guenther  <rguenther@suse.de>
12158
12159         PR tree-optimization/49217
12160         * ipa-pure-const.c (propagate_pure_const): Fix typos.
12161
12162 2011-05-28  Jan Hubicka  <jh@suse.cz>
12163
12164         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12165         length.
12166         (string_slot_free): Remove
12167         (create_output_block): Initialize obstack.
12168         (destroy_output_block): Free obstack.
12169         (lto_string_index): Add PERSISTENT parameter; do not duplicate
12170         the string unless it needs to be added into the hash.
12171         (lto_output_string_with_length): Add persistent attribute;
12172         handle NULL strings.
12173         (lto_output_string): Add PERSISTENT parameter.
12174         (output_string_cst, output_identifier): Simplify.
12175         (lto_output_location_bitpack): Update.
12176         (lto_output_builtin_tree): Update.
12177         * lto-streamer.h (struct output_block): Add obstack.
12178         (lto_output_string, lto_output_string_with_length): Remove
12179         declarations; functions are static now.
12180
12181 2011-05-28  Jan Hubicka  <jh@suse.cz>
12182
12183         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12184         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12185         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12186         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12187         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12188         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12189         unpack_ts_decl_with_vis_value_fields,
12190         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12191         lto_get_builtin_tree): Use enum and variable length i/o.
12192         * basic-block.h (profile_status_d): Add PROFILE_LAST.
12193         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12194         New functions.
12195         (bp_pack_enum, bp_unpack_enum): New macros.
12196
12197 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12198
12199         * genrecog.c: Remove redundant forward declarations.
12200
12201 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12202
12203         * config.gcc: Deprecate mips*-*-openbsd*.
12204
12205 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12206
12207         PR bootstrap/49195
12208         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12209         for match_op_dup.
12210
12211 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
12212
12213         PR middle-end/48981
12214         * gengtype.c (vec_prefix_type): New function.
12215         (note_def_vec): Use vec_prefix_type and change the length
12216         attribute to be based on the prefix.
12217         * vec.c: Include coretypes.h before vec.h.
12218         (struct vec_prefix): Remove.
12219         (vec_gc_p_reserve): Change the offsetof to sizeof.
12220         (vec_gc_p_reserve_exact): Likewise.
12221         (vec_heap_p_reserve): Likewise.
12222         (vec_heap_p_reserve_exact): Likewise.
12223         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12224         (vec_stack_p_reserve): Change the offsetof to sizeof.
12225         (vec_stack_p_reserve_exact): Likewise.
12226         * vec.h (struct vec_prefix): New struct definition.
12227         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12228         (VEC_T_GTY(T,B)): Likewise.
12229         (DEF_VEC_FUNC_P(T)): Use prefix field.
12230         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12231         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12232
12233 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12234
12235         PR tree-optimization/46728
12236         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12237         (powi_as_mults): Add gimple_set_location.
12238         (build_and_insert_call): New.
12239         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12240         0.5, 0.25, 0.75, 1./3., or 1./6.
12241
12242 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12243
12244         * doc/contrib.texi: Update copyright years.
12245         (Contributors): Add Zdenek Sojka.
12246
12247 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
12248
12249         * c-decl.c (c_push_function_context): Copy the current statement
12250         list stack.
12251         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12252         (finish_struct): Call building_stmt_list_p instead of checking
12253         cur_stmt_list.
12254         * c-parser.c (c_parser_postfix_expression): Likewise.
12255         * c-typeck.c (c_end_compound_stmt): Likewise.
12256         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12257         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12258         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12259         (free_stmt_list): Likewise.
12260         * tree.h (struct tree_statement_list): Include typed_tree instead
12261         of tree_common.
12262         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12263         as TS_TYPED instead of TS_COMMON.
12264
12265 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12266             Uros Bizjak  <ubizjak@gmail.com>
12267
12268         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12269         (HAVE_AS_IX86_TLSGDPTL): Define.
12270         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12271         (HAVE_AS_IX86_TLSLDMPLT): Define.
12272         * configure: Regenerate.
12273         * config.in: Regenerate.
12274         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12275         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12276         TARGET_SUN_TLS, use @tlsgdplt or @plt.
12277         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12278         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12279         @tlsldmplt or @plt.
12280         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12281
12282 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12283
12284         * sched-int.h (struct _haifa_deps_insn_data): New members cond
12285         and reverse_cond.
12286         (INSN_COND, INSN_REVERSE_COND): New macros.
12287         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12288         once.
12289         (sched_get_condition_with_rev): Cache the results, and look them up
12290         if possible.
12291         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12292         are clobbered by the current insn.
12293         * target.def (exposed_pipline): New sched data hook.
12294         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12295         * doc/tm.texi: Regenerate.
12296
12297 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12298
12299         PR tree-optimization/49170
12300         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
12301         sincos or cexp.
12302
12303 2011-05-27  Richard Guenther  <rguenther@suse.de>
12304
12305         PR middle-end/49189
12306         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12307         of comparisons.
12308
12309 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12310
12311         * haifa-sched.c (sched_scan_info): Remove.
12312         (schedule_block): Call sched_extend_luids rather than sched_init_luids
12313         with NULL args.
12314         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12315         Remove functions.
12316         (sched_scan): Remove.
12317         (sched_extend_luids): Renamed from luids_extend_insn and no longer
12318         static.  All callers changed.
12319         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12320         static.  All callers changed.
12321         (sched_init_luids): Remove all arguments except the first.  All
12322         callers changed.  Don't use sched_scan.
12323         (haifa_init_h_i_d): Likewise.
12324         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12325         manually rather than using sched_init_luids.  Likewise with
12326         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12327         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12328         rather than sched_init_luids with NULL args.
12329         * sel-sched-ir.c (new_insns): Remove variable.
12330         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12331         all arguments but the first two; all callers changed.
12332         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12333         rather than sched_init_luids.
12334         (sel_init_bbs): Remove second argument.  All callers changed.
12335         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12336         with NULL arguments.
12337         (create_insn_rtx_from_pattern): Likewise.
12338         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12339         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12340         (sched_init_insn_luid, sched_extend_luids): Declare.
12341         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12342         declarations.
12343
12344 2011-05-27  Richard Guenther  <rguenther@suse.de>
12345
12346         PR middle-end/49177
12347         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12348         A CMP B ? (T) true : (T) false for non-integral types T again.
12349
12350 2011-05-27  Jan Hubicka  <jh@suse.cz>
12351
12352         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12353         so 0 means NULL string.
12354         (lto_output_string_with_length): ... here.
12355         (lto_output_string, output_string_cst, output_identifier): Update
12356         handling of NULL strings.
12357         (lto_output_location_bitpack): New function.
12358         (lto_output_location): Use it.
12359         (lto_output_tree_ref): Use output_record_start.
12360         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12361         len values.
12362         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12363         values by 1.
12364         (input_string_internal): ... here;
12365         (input_string_cst, input_identifier, lto_input_string): Update handling
12366         of NULL strings.
12367         (lto_input_location_bitpack): New function
12368         (lto_input_location): Use it.
12369         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12370         values.
12371         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12372         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12373         (bp_pack_value): Sanity check the value range.
12374         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12375         New functions.
12376         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12377         New functions.
12378
12379 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12380
12381         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12382         call_arg_location instructions down the floor.
12383
12384 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12385
12386         PR rtl-optimization/49154
12387         * ira.c (setup_pressure_classes): Process class without sublcasses
12388         as a candidate for pressure classes.
12389
12390 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12391
12392         PR rtl-optimization/48575
12393         * genrecog.c (position_type): New enum.
12394         (position): New structure.
12395         (decision): Use position structure instead of a string.
12396         (root_pos, peep2_insn_pos_list): New variables.
12397         (next_position, compare_positions): New functions.
12398         (new_decision): Use position structures instead of strings.
12399         (maybe_both_true): Likewise.
12400         (change_state): Likewise.
12401         (write_tree): Likewise.
12402         (make_insn_sequence): Likewise.
12403
12404 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12405
12406         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12407         TS_BASE instead of TS_COMMON.
12408         (find_decls_types_r): Check for TS_TYPED structure before looking at
12409         TREE_TYPE.
12410         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12411         Add chain field.
12412         (BLOCK_CHAIN): Use new chain field.
12413
12414 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12415
12416         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12417         moves expensive on Power7 also.
12418
12419 2011-05-26  Richard Guenther  <rguenther@suse.de>
12420
12421         * fold-const.c (fold_unary_loc): Remove bogus code.
12422
12423 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12424
12425         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12426         tree_common.
12427         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12428         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12429         TS_BASE instead of TS_COMMON.
12430         * varasm.c (assemble_name): Remove assert.
12431
12432 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12433
12434         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12435         substituted first.
12436         * libgcc-std.ver: Delete file.
12437
12438 2011-05-26  Richard Guenther  <rguenther@suse.de>
12439
12440         PR tree-optimization/48702
12441         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12442         only when we know the base address is within bounds.
12443         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12444         assume the base address of TARGET_MEM_REFs is in bounds.
12445
12446 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12447
12448         PR target/49099
12449         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12450         declaration in TARGET_SOLARIS.
12451
12452 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12453
12454         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12455         The instruction is then expanded explicitly.
12456         (supported_compare): Callable instruction.
12457         (compare): Likewise.
12458
12459 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12460
12461         PR c++/49165
12462         * gimplify.c (shortcut_cond_r): Don't special case
12463         COND_EXPRs if they have void type on one of their arms.
12464
12465 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12466
12467         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12468         to reduce duplication, and to achieve a slightly more logical order
12469         of operations.
12470
12471 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12472
12473         PR tree-optimization/49161
12474         * tree-vrp.c (struct case_info): New type.
12475         (compare_case_labels): Sort case_info structs instead of
12476         trees, and not primarily by CASE_LABEL uids but by
12477         label_for_block indexes.
12478         (find_switch_asserts): Put case labels into struct case_info
12479         array instead of TREE_VEC, adjust sorting, compare label_for_block
12480         values instead of CASE_LABELs.
12481
12482 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12483
12484         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12485         ("orndi3_neon"): Likewise.
12486         ("bic<mode>3_neon"): Likewise.
12487
12488 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12489
12490         PR tree-optimization/49038
12491         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12492         Ensure at least one epilogue iteration if required by data
12493         accesses with gaps.
12494         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12495         to mark loops that require peeling for gaps.
12496         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12497         (vect_get_known_peeling_cost): Take peeling for gaps into
12498         account.
12499         (vect_transform_loop): Generate epilogue if required by data
12500         access with gaps.
12501         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12502         loop as requiring an epilogue if there are gaps in the end of
12503         the strided group.
12504
12505 2011-05-25  Ian Lance Taylor  <iant@google.com>
12506
12507         * godump.c (go_format_type): Output the first field with a usable
12508         Go type, if any.
12509
12510 2011-05-25  Ian Lance Taylor  <iant@google.com>
12511
12512         * godump.c (go_format_type): Check for invalid type names, pointer
12513         target types, and struct field types.
12514
12515 2011-05-25  Jason Merrill  <jason@redhat.com>
12516
12517         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12518
12519 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12520
12521         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12522
12523 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12524
12525         * config/i386/i386.md (*movqi_extv_1)): Put back
12526         "register_operand" check in "type" calculation.
12527         (*movqi_extzv_2): Likewise.
12528
12529 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12532
12533 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12534
12535         PR bootstrap/49160
12536         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12537         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12538         __divxc3, __divtc3): Wrap definitions in #ifndef.
12539
12540 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12541
12542         PR target/49142
12543         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12544         "register_operand" check and replace q_regs_operand with
12545         QIreg_operand in "type" calculation.
12546         (*movqi_extv_1): Likewise.
12547         (*movqi_extzv_2_rex64): Likewise.
12548         (*movqi_extzv_2): Likewise.
12549
12550         * config/i386/predicates.md (QIreg_operand): New.
12551
12552 2011-05-25  Richard Guenther  <rguenther@suse.de>
12553
12554         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12555         type-based offset disambiguation, streamline MEM_REF and
12556         TARGET_MEM_REF handling.
12557
12558 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12559
12560         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12561         (bdesc_special_args): Add pause intrinsic.
12562
12563         * config/i386/i386.md (UNSPEC_PAUSE): New.
12564         (pause): Likewise.
12565         (*pause): Likewise.
12566         * config/i386/ia32intrin.h (__pause): Likewise.
12567
12568         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12569         pause intrinsic.
12570
12571 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12572
12573         PR tree-optimization/46728
12574         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12575         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12576
12577 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12578
12579         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12580         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12581         instead of TS_COMMON.
12582
12583 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12584
12585         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12586         LIBGCC2_GNU_PREFIX is defined.
12587         (__N): New macro.
12588         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12589         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12590         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12591         __clz_tab): Define using __N.
12592         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12593         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12594         * target.def (libfunc_gnu_prefix): New hook.
12595         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12596         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12597         * doc/tm.texi: Regenerate.
12598         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12599         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12600         account.
12601         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12602         (init_optabs): Likewise for the bswap libfuncs.
12603         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12604         and divide.
12605         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12606         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12607         * libgcc-std.ver: Remove.
12608         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12609         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12610         libgcc-std.ver.
12611         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12612         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12613         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12614         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12615         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12616         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12617         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12618         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12619         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12620         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12621
12622 2011-05-25  Jan Hubicka  <jh@suse.cz>
12623
12624         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12625         (lto_output_tree): Use output_record_start.
12626         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12627         (lto_get_pickled_tree): Use input_record_start.
12628         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12629         (lto_value_range_error): New function.
12630         * lto-streamer.h (lto_value_range_error): Declare.
12631         (lto_output_int_in_range, lto_input_int_in_range): New functions.
12632         (lto_output_enum, lto_input_enum): New macros.
12633
12634 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12635
12636         * common.opt (flag_stack_usage_info): New variable.
12637         (-Wstack-usage): New option.
12638         * doc/invoke.texi (Warning options): Document -Wstack-usage.
12639         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12640         <OPT_fstack_usage>: Likewise.
12641         * toplev.c (output_stack_usage): Handle -Wstack-usage.
12642         * calls.c (expand_call): Test flag_stack_usage_info variable instead
12643         of flag_stack_usage.
12644         (emit_library_call_value_1): Likewise.
12645         * explow.c (allocate_dynamic_stack_space): Likewise.
12646         * function.c (instantiate_virtual_regs ): Likewise.
12647         (prepare_function_start): Likewise.
12648         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12649         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12650         * config/arm/arm.c (arm_expand_prologue): Likewise.
12651         (thumb1_expand_prologue): Likewise.
12652         * config/avr/avr.c (expand_prologue): Likewise.
12653         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12654         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12655         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12656         * config/mips/mips.c (mips_expand_prologue): Likewise.
12657         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12658         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12659         * config/s390/s390.c (s390_emit_prologue): Likewise.
12660         * config/sh/sh.c (sh_expand_prologue): Likewise.
12661         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12662         * config/spu/spu.c (spu_expand_prologue): Likewise.
12663
12664 2011-05-25  Richard Guenther  <rguenther@suse.de>
12665
12666         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12667         (gimple_canonical_types_compatible_p): Likewise.
12668
12669 2011-05-25  Jan Hubicka  <jh@suse.cz>
12670
12671         PR middle-end/49062
12672         * ipa.c (function_and_variable_visibility): Only add to same
12673         comdat group list if DECL_ONE_ONLY.
12674
12675 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
12676
12677         PR rtl-optimization/49014
12678         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12679
12680 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12681
12682         PR target/49128
12683         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12684
12685 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12686
12687         PR rtl-optimization/48757
12688         * ira-build.c (loop_with_eh_edge_p): Rename to
12689         loop_with_complex_edge_p, check edges on complexity, make function
12690         conditional.
12691         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12692         conditional.
12693
12694 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12695
12696         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12697         force flag_ira_share_save_slots to 0.
12698
12699 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12700
12701         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12702         (vt_initialize): Set PROLOGUE_BB unconditionally.
12703         Add block comment about CFA_BASE_RTX machinery.
12704         Reset FP_CFA_OFFSET to -1 on all invalid paths.
12705         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12706
12707 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12708
12709         PR objc/48187
12710         * c-parser.c (c_parser_objc_class_instance_variables): More robust
12711         parsing of syntax error in ObjC instance variable lists.  In
12712         particular, avoid an infinite loop if there is a stray ']'.
12713         Updated error message.
12714
12715 2011-05-24  Ian Lance Taylor  <iant@google.com>
12716
12717         * godump.c (go_define): Don't accept a string immediately after
12718         another operand.
12719
12720 2011-05-24  Ian Lance Taylor  <iant@google.com>
12721
12722         * godump.c (struct godump_container): Add invalid_hash field.
12723         (go_format_type): Return false if type is found in invalid_hash.
12724         (go_output_typedef): Add invalid type to invalid_hash.
12725         (go_finish): Create and delete invalid_hash.
12726
12727 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12728
12729         PR tree-optimization/46728
12730         * tree-ssa-math-opts.c (powi_table): New.
12731         (powi_lookup_cost): New.
12732         (powi_cost): New.
12733         (powi_as_mults_1): New.
12734         (powi_as_mults): New.
12735         (gimple_expand_builtin_powi): New.
12736         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12737         (gate_cse_sincos): Remove sincos/cexp restriction.
12738
12739 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12740
12741         PR target/3746
12742         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12743         mips-tdump native.
12744         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12745         * mips-tdump.c: Likewise.
12746
12747 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12748
12749         PR target/49128
12750         * config/i386/driver-i386.c (host_detect_local_cpu): Always
12751         add -mno-XXX.  Handle FMA.
12752
12753 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12754
12755         PR rtl-optimization/48633
12756         * ira-build.c (loop_with_eh_edge_p): New function.
12757         (mark_loops_for_removal): Use it.
12758
12759 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12760
12761         PR rtl-optimization/48971
12762         * ira.c (setup_pressure_classes): Don't check register move cost
12763         for classes with one registers.  Don't add pressure class if there
12764         is a pressure class with the same available hard registers.
12765         Check contains_reg_of_mode.  Fix a typo in collecting
12766         temp_hard_regset.  Ignore hard registers not belonging to a class.
12767
12768 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12769
12770         PR target/49133
12771         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12772
12773 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12774             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12775
12776         PR gcov-profile/48845
12777         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12778
12779 2011-05-24  Richard Guenther  <rguenther@suse.de>
12780
12781         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12782         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12783         (gimple_types_compatible_p_1): Adjust.
12784         (iterative_hash_canonical_type): Do not bother about complete vs.
12785         incomplete types.
12786         (gimple_canonical_types_compatible_p): Likewise.
12787
12788 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12789
12790         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12791
12792 2011-05-24  Richard Guenther  <rguenther@suse.de>
12793
12794         PR bootstrap/49078
12795         * gimple.c (gimple_register_canonical_type): Revert
12796         previous change.
12797         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12798         does not for a tree for the case where it matters.  Cache
12799         pointer-type alias-sets.
12800
12801 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12802
12803         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12804         (OBJS): Remove options.o, opts-common.o and prefix.o.
12805         (OBJS-libcommon-target): New.
12806         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12807         (BACKEND): Include libcommon-target.a.
12808         (MOSTLYCLEANFILES): Include libcommon-target.a.
12809         (libcommon-target.a): New.
12810         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12811         prefix.o.
12812
12813 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12814
12815         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12816         parts of output shared with the driver.
12817         * optc-gen.awk: Don't generate parts of output not shared with the
12818         driver.
12819         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12820         * doc/options.texi (SourcerInclude): Mention options-save.c.
12821         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12822         (OBJS): Add options-save.o.
12823         (options-save.c, options-save.o): New.
12824         (options.o): Update dependencies.
12825         (gcc-options.o): Remove.
12826         (mostlyclean): Remove options-save.c.
12827
12828 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12829
12830         PR debug/49032
12831         * dbxout.c: Include cgraph.h.
12832         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12833         and without value expr, return NULL if no varpool node exists for
12834         it or if it is not needed.
12835         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12836
12837         PR c/49120
12838         * c-decl.c (start_decl): Convert expr to void_type_node.
12839
12840 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12841
12842         PR rtl-optimization/48826
12843         * emit-rtl.c (try_split): When splitting a call that is followed
12844         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12845
12846 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12847
12848         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12849         parameters passed in memory prefer using DECL_INCOMING_RTL over
12850         the pseudos it will be copied into.
12851
12852 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         PR target/47315
12855         * config/i386/i386.c (ix86_option_override_internal): Save the
12856         initial options after checking vzeroupper.
12857
12858 2011-05-23  David Li  <davidxl@google.com>
12859
12860         PR tree-optimization/48988
12861         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12862         Initialize has_valid_pred for each pred chain.
12863
12864 2011-05-23  Richard Guenther  <rguenther@suse.de>
12865
12866         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12867         (iterative_hash_gimple_type): Always hash type names.
12868
12869 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12870
12871         * c-typeck.c (build_function_call_vec): Tweak call to
12872         check_function_arguments.
12873
12874 2011-05-23  Richard Guenther  <rguenther@suse.de>
12875
12876         PR tree-optimization/49115
12877         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12878         is not necessarily carried out, do not claim it kills the ref.
12879         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12880
12881 2011-05-23  Richard Guenther  <rguenther@suse.de>
12882
12883         PR middle-end/15419
12884         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12885         what pointer types we accept for folding.
12886
12887 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12888
12889         * gthr-gnat.c: Remove.
12890         * gthr-gnat.h: Remove.
12891         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12892         * config/t-freebsd (LIB2ADDEH): Likewise.
12893         * config/t-linux (LIB2ADDEH): Likewise.
12894         * config/t-sol2 (LIB2ADDEH): Likewise.
12895         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12896         * configure.ac (target_thread_file): Remove gnat handling.
12897         * configure: Regenerate.
12898         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12899
12900 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12901             Eric Botcazou  <ebotcazou@adacore.com>
12902
12903         * gcov.c (create_file_names): If no object directory is specified,
12904         keep the directory of the file.
12905
12906 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12907
12908         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12909         * configure: Regenerate.
12910
12911 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12912
12913         PR middle-end/48973
12914         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12915         failed and the comparison has a single bit signed type, use
12916         constm1_rtx instead of const1_rtx for true value.
12917         (do_store_flag): If ops->type is single bit signed type, disable
12918         signel bit test optimization and pass -1 instead of 1 as last
12919         parameter to emit_store_flag_force.
12920
12921 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12922
12923         PR target/45098
12924         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12925         function.
12926         (infer_loop_bounds_from_undefined): Use new function.
12927
12928 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12929
12930         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12931         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12932         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12933         and -O0 otherwise.
12934         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12935
12936 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12937
12938         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12939         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12940         returns true.
12941
12942 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12943
12944         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12945
12946 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12947
12948         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12949         UNSPEC_MOVE_PIC pattern.
12950
12951 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12952
12953         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12954         (sparc-*-rtems*): Likewise.
12955         (sparc64-*-elf*): Likewise.
12956         (sparc64-*-rtems*): Likewise.
12957         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12958         * config/sparc/t-crtin: New file.
12959         * config/sparc/t-sol2 (crti.o): Delete rule.
12960         (crtn.o): Likewise.
12961         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12962         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12963         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12964         (ENDFILE_SPEC): Add crtn.o.
12965
12966 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12967
12968         PR middle-end/48689
12969         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12970         CODE_CONTAINS_STRUCT (TS_COMMON).
12971
12972 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12973
12974         PR middle-end/49029
12975         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12976         only after deciding which mode to use.
12977
12978 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12979
12980         PR target/45098
12981         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12982         for call to get_shiftadd_cost.
12983
12984 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12985
12986         PR target/49104
12987         * config/i386/cpuid.h (bit_MMXEXT): New define.
12988
12989 2011-05-22  Nick Clifton  <nickc@redhat.com>
12990
12991         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12992         initialisation of non-existant args[2] element.  Use args[] array
12993         not arg[] array to pass arguments to build_function_type_list.
12994
12995 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12996
12997         PR tree-optimization/49087
12998         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12999
13000 2011-05-21  Jason Merrill  <jason@redhat.com>
13001
13002         PR c++/49092
13003         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13004         static storage duration.
13005
13006 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13007
13008         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13009         frame pointer.
13010
13011 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13012
13013         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13014         false if there are call-saved registers here...
13015         (sparc_can_use_return_insn_p): ...but here instead.
13016         (save_or_restore_regs): Fix thinko.
13017         (sparc_expand_prologue): Use current_function_is_leaf.
13018         (sparc_frame_pointer_required): Likewise.
13019
13020 2011-05-21  Nick Clifton  <nickc@redhat.com>
13021
13022         PR target/49098
13023         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13024
13025 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13026
13027         * gengtype.c (walk_type): Implemented "atomic" GTY option.
13028         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13029
13030 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
13031
13032         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
13033         * optc-gen.awk: Move common code to opt-read.awk.
13034         * opth-gen.awk: Likewise.
13035         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13036
13037 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
13038
13039         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13040
13041 2011-05-20  Tom de Vries  <tom@codesourcery.com>
13042
13043         PR target/45098
13044         * tree-ssa-loop-ivopts.c: Include expmed.h.
13045         (get_shiftadd_cost): New function.
13046         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
13047
13048 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13049
13050         PR bootstrap/49086
13051         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13052         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13053
13054 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13055
13056         * Makefile.in: Update comment referring to $(OBJS-common).
13057
13058 2011-05-20  Ian Lance Taylor  <iant@google.com>
13059
13060         * godump.c (go_output_typedef): Put enum constants in the macro
13061         hash table to avoid duplicate Go const definitions.
13062
13063 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13064
13065         * Makefile.in (LIBDEPS): Add libcommon.a.
13066         (LIBS): Likewise.
13067         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13068         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13069         pretty-print.o and version.o.
13070         (OBJS-libcommon): New.
13071         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13072         (BACKEND): Add libcommon.a.
13073         (MOSTLYCLEANFILES): Likewise.
13074         (libcommon.a): New.
13075         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13076         (cpp$(exeext)): Likewise.
13077         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13078         pretty-print.o and input.o.
13079         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13080         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13081         (errors.o): Remove.
13082         (mips-tfile): Don't explicitly use version.o.
13083         (mips-tdump): Likewise.
13084         (gcov.o): Depend on $(DIAGNOSTIC_H).
13085         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13086         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13087         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13088         * gcov-dump.c: Include intl.h and diagnostic.h.
13089         (main): Initialize diagnostics.
13090         * gcov.c: Include diagnostic.h.
13091         (fnotice): Remove.
13092         (main): Initialize diagnostics.
13093         * lto-wrapper.c: Include diagnostic.h.
13094         (main): Initialize diagnostics.
13095
13096 2011-05-20  Michael Matz  <matz@suse.de>
13097
13098         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13099
13100 2011-05-20  Michael Matz  <matz@suse.de>
13101             Richard Guenther  <rguenther@suse.de>
13102
13103         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13104         use lto_streamer_cache_append directly instead of returning a VEC.
13105         (preload_common_node): Remove.
13106         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13107         track seen nodes.
13108         (lto_streamer_cache_create): Call lto_preload_common_nodes.
13109
13110 2011-05-20  Richard Guenther  <rguenther@suse.de>
13111
13112         PR tree-optimization/49079
13113         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13114         MEM_REFs correctly for the trailing array access detection.
13115         Special case constants the same way as decls for overall size
13116         constraining.
13117
13118 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
13119
13120         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13121         argument expansion.
13122
13123 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13124
13125         PR tree-optimization/49073
13126         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13127         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13128         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13129
13130 2011-05-20  Richard Guenther  <rguenther@suse.de>
13131
13132         PR middle-end/48849
13133         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13134         of pointer types the same way the middle-end does.
13135
13136 2011-05-20  Richard Guenther  <rguenther@suse.de>
13137
13138         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13139         or pointer-to chains.  Delay all fixup to uniquify_nodes.
13140
13141 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
13142
13143         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13144         (fma4_fmaddsub): Likewise
13145
13146 2011-05-19  Jan Hubicka  <jh@suse.cz>
13147
13148         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13149         (GIMPLE_TYPE_PAIR_SIZE): New macro.
13150         (type_pair_cache): New static var.
13151         (lookup_type_pair): Use fixed sized custom hash; make inline.
13152         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13153         calls of lookup_type_pair.
13154         (print_gimple_types_stats): Remove cache stats.
13155         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13156         and gtc_ob.
13157
13158 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
13159
13160         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13161         when TARGET_RDRND is active.
13162         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13163         Generate dummy SImode target register when target is NULL.
13164
13165 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13166
13167         * config/arm/arm-fpus.def: New.
13168         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13169         arm-fpus.def.
13170         * config/arm/arm-tables.opt: Regenerate.
13171         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13172         (arm_option_override): Don't decode FPU name to string here.
13173         * config/arm/arm.opt (mfpu=): Use Enum.
13174         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13175         Update dependencies.
13176
13177 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13178
13179         * collect2.c: Include diagnostic.h.
13180         (fatal_perror, fatal, error, fancy_abort): Remove.
13181         (main): Set progname.  Call xmalloc_set_program_name and
13182         diagnostic_initialize.
13183         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13184         scan_libraries, resolve_lib_name): Call fatal_error instead of
13185         fatal and fatal_perror.
13186         * collect2.h (error, fatal, fatal_perror): Don't declare.
13187         * tlink.c: Include diagnostic-core.h.
13188         (recompile_files): Call fatal_error instead of fatal_perror.
13189         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13190         pretty-print.o and input.o.
13191         (collect2.o, tlink.o): Update dependencies.
13192
13193 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13194
13195         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13196
13197 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13198
13199         PR target/40483
13200         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13201         COMDAT group syntax, both SPARC and x86 variants.
13202         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13203         * configure: Regenerate.
13204         * config/sol2.h (TARGET_SOLARIS): Define.
13205         (PUSHSECTION_FORMAT): Remove.
13206         (SECTION_NAME_FORMAT): Define.
13207         * config/sol2.c: Include hashtab.h.
13208         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13209         expansion, using SECTION_NAME_FORMAT.
13210         (solaris_comdat_htab): New variable.
13211         (struct comdat_entry): Define.
13212         (comdat_hash): New function.
13213         (comdat_eq): New function.
13214         (solaris_elf_asm_comdat_section): New function.
13215         (solaris_define_comdat_signature): New function.
13216         (solaris_code_end): New function.
13217         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13218         (solaris_code_end): Declare.
13219         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13220         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13221         solaris_code_end.
13222         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13223         Remove ATTRIBUTE_UNUSED.
13224         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13225         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13226         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13227         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13228         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13229         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13230         (PUSHSECTION_FORMAT): Remove.
13231         (SECTION_NAME_FORMAT): Redefine.
13232
13233 2011-05-19  Kai Tietz  <ktietz@redhat.com>
13234
13235         * tree-cfg.c (verify_gimple_assign_binary): Barf on
13236         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13237         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13238
13239 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
13240             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13241
13242         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13243
13244 2011-05-19  Richard Guenther  <rguenther@suse.de>
13245
13246         PR middle-end/48985
13247         * tree-object-size.c (addr_object_size): If the pointed-to
13248         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13249
13250 2011-05-19  Richard Guenther  <rguenther@suse.de>
13251
13252         * gimple.c (gimple_types_compatible_p_1): Compare names of
13253         the types themselves.
13254         (iterative_hash_gimple_type): And hash them that way.
13255         (gimple_register_type_1): If we register a main variant properly
13256         initialize the leader to ourselves.
13257
13258 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13259
13260         PR target/45098
13261         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13262         get_loop_invariant_expr_id.
13263         (get_loop_invariant_expr_id): Use get_expr_id.
13264         (parm_decl_cost): New function.
13265         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13266         Improve bound cost estimation.  Use different inv_expr_id for elim and
13267         express cases.
13268
13269 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13270
13271         PR target/45098
13272         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13273         cost_base.cost == 0.
13274
13275 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13276
13277         PR target/49002
13278         * config/i386/sse.md
13279         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13280         load cast.
13281
13282 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13283
13284         PR tree-optimization/49039
13285         * tree-vrp.c (extract_range_from_binary_expr): For
13286         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13287         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13288
13289 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13290
13291         PR target/45098
13292         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13293
13294 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
13295
13296         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13297         (*tls_global_dynamic_64): Ditto.
13298         (*tls_local_dynamic_base_32_gnu): Ditto.
13299         (*tls_local_dynamic_base_64): Ditto.
13300         (tls_initial_exec_64_sun): Ditto.
13301
13302 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
13303
13304         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13305         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13306         bf592-none.
13307         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13308         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13309         * config/bfin/bfin.c (bfin_cpus): Add bf592.
13310         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13311         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13312         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13313         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13314
13315 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
13316
13317         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13318         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13319         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13320         target_thread_pointer, arm_structure_size_boundary, struct
13321         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13322         struct abi_name, arm_all_abis): Remove.
13323         (arm_option_override) Don't process most enumerated option values here.
13324         Don't process target_fpe_name here.  Work with integer not string for
13325         structure size boundary; use separate diagnostics for each case.
13326         * config/arm/arm.h (enum float_abi_type, enum
13327         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13328         to arm-opts.h.
13329         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13330         arm_structure_size_boundary): Remove.
13331         * config/arm/arm.opt (mabi=): Use Enum and Init.
13332         (arm_abi_type): New Enum and EnumValue entries.
13333         (mfloat-abi=): Use Enum and Init.
13334         (float_abi_type): New Enum and EnumValue entries.
13335         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13336         (mfp16-format=): Use Enum and Init.
13337         (arm_fp16_format_type): New Enum and EnumValue entries.
13338         (mstructure-size-boundary=): Use UInteger and Init.
13339         (mtp=): Use Enum and Init.
13340         (arm_tp_type): New Enum and EnumValue entries.
13341
13342 2011-05-18  Richard Guenther  <rguenther@suse.de>
13343
13344         PR tree-optimization/49018
13345         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13346         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13347         gimple_has_side_effects.
13348
13349 2011-05-18  Richard Guenther  <rguenther@suse.de>
13350
13351         * gimple.c (gimple_register_type_1): New function, split out from ...
13352         (gimple_register_type): ... here.  Avoid infinite recursion.
13353
13354 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13355
13356         PR tree-optimization/41881
13357         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13358         reduction_chains along with a macro for its access.
13359         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13360         (destroy_loop_vec_info): Free reduction chains.
13361         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13362         (vect_is_slp_reduction): New function.
13363         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13364         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13365         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13366         definition types for reduction chains.
13367         (vect_supported_load_permutation_p): Don't allow permutations for
13368         reduction chains.
13369         (vect_analyze_slp_instance): Support reduction chains.
13370         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13371         (vect_get_constant_vectors):  Handle reduction chains.
13372         (vect_schedule_slp_instance): Mark the first statement of the
13373         reduction chain as reduction.
13374
13375 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13376
13377         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13378         names for group elements access.
13379         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13380         reduction chains as well.  Remove data reference and interleaving
13381         related words from the fields names.
13382         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13383         elements access.
13384         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13385         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13386         vect_update_interleaving_chain, vect_same_range_drs,
13387         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13388         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13389         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13390         vect_analyze_group_access, vect_analyze_data_ref_access,
13391         vect_create_data_ref_ptr, vect_transform_strided_load,
13392         vect_record_strided_load_vectors): Likewise.
13393         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13394         vect_model_load_cost, vectorizable_store, vectorizable_load,
13395         vect_remove_stores, new_stmt_vec_info): Likewise.
13396         * tree-vect-slp.c (vect_build_slp_tree,
13397         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13398
13399 2011-05-18  Richard Guenther  <rguenther@suse.de>
13400
13401         PR middle-end/48989
13402         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13403         operand verification.
13404         (verify_gimple_assign_binary): Likewise.
13405         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13406         to non-1-precision BOOLEAN_TYPEs.
13407
13408 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13409
13410         PR target/45098
13411         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13412
13413 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13414
13415         PR tree-optimization/49000
13416         * tree-ssa.c (execute_update_addresses_taken): Call
13417         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13418         be rewritten and decl has been marked for renaming, reset
13419         the debug stmt.
13420
13421 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13424         enum_opts_set when testing if attributes have set -mfpmath=.
13425
13426 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13427
13428         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13429
13430 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13431
13432         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13433         info->entry with 0
13434         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13435         id.transform_lang_insert_block with NULL.
13436
13437 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13438
13439         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13440         (output_fp_compare): Change args 3 and 4 to bool.
13441         (ix86_expand_call): Change arg 6 to bool.
13442         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13443         (ix86_attr_length_vex_default): Change arg 3 to bool.
13444         * config/i386/i386.md: Update all uses.
13445         * config/i386/i386.c: Ditto.
13446         (ix86_flags_dependent): Change return type to bool.
13447
13448 2011-05-17  Richard Guenther  <rguenther@suse.de>
13449
13450         * gimple.c (type_hash_pair_compare): Fix comparison.
13451
13452 2011-05-17  Richard Guenther  <rguenther@suse.de>
13453
13454         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13455         case some more, fix final hash value of the non-singleton case.
13456
13457 2011-05-17  Richard Guenther  <rguenther@suse.de>
13458
13459         PR bootstrap/49013
13460         Revert
13461         2011-05-16  Richard Guenther  <rguenther@suse.de>
13462
13463         * gimple.c (gimple_types_compatible_p_1): Use names of the
13464         type itself, not its main variant.
13465         (iterative_hash_gimple_type): Likewise.
13466
13467 2011-05-17  Richard Guenther  <rguenther@suse.de>
13468
13469         * gimple.c (gimple_register_canonical_type): Use the main-variant
13470         leader for computing the canonical type.
13471
13472 2011-05-17  Nick Clifton  <nickc@redhat.com>
13473
13474         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13475         moves.
13476
13477         * config/rx/rx.md: Add peephole to remove redundant extensions
13478         after loads.
13479         (bitset_in_memory): Use rx_restricted_mem_operand.
13480         (bitinvert_in_memory): Likewise.
13481         (bitclr_in_memory): Likewise.
13482
13483 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13484             Nick Clifton  <nickc@redhat.com>
13485
13486         * config/rx/rx.md: Add peepholes to match a register move followed
13487         by a comparison of the moved register.  Replace these with an
13488         addition of zero that does both actions in one instruction.
13489
13490 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13491
13492         PR target/48986
13493         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13494         predicate to allow CONST_INT.
13495         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13496
13497 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13498
13499         * opts-common.c (opt_enum_arg_to_value): New.
13500         * opts.h (opt_enum_arg_to_value): Declare.
13501         * config/i386/i386.opt (fpmath): Remove.
13502         (mfpmath=): Use Enum, Init and Save.
13503         (fpmath_unit): New Enum and EnumValue entries.
13504         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13505         name for function fpmath state.
13506         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13507         * config/i386/i386.c: Include diagnostic.h.
13508         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13509         (ix86_target_string): Take enum fpmath_unit value instead of string.
13510         (ix86_debug_options): Update call to ix86_target_string.
13511         (ix86_option_override_internal): Don't process fpmath strings here.
13512         (x86_function_specific_save, ix86_function_specific_restore):
13513         Don't handle fpmath state specially.
13514         (ix86_function_specific_print): Pass fpmath state to
13515         ix86_target_string instead of printing in this function.
13516         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13517         Handle enum attributes.
13518         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13519         (ix86_valid_target_attribute_tree): Update option_strings
13520         handling.  Handle fpmath as enum option.
13521         (ix86_can_inline_p): Update field names for function fpmath state.
13522         (ix86_expand_builtin): Update call to ix86_target_string.
13523         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13524         (ix86_fpmath): Remove.
13525         * config/i386/t-i386 (i386.o): Update dependencies.
13526
13527 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13528
13529         PR preprocessor/48677
13530         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13531         from decoded_options[0], not from itself.
13532
13533 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13534
13535         * config/i386/constraints.md (z): New constraint.
13536         * config/i386/i386.c (c): New mode attribute.
13537         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13538         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13539         constraint for operand 0.
13540         (*call_vzeroupper): Ditto.
13541         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13542         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13543         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13544         Use "lzm" constraint for operand 0.
13545         (*call_pop_vzeroupper): Ditto.
13546         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13547         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13548         constraint for operand 0.
13549         (*sibcall_vzeroupper): Ditto.
13550         (*sibcall_rex64_ms_sysv): Ditto.
13551         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13552         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13553         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13554         (*sibcall_pop_vzeroupper): Ditto.
13555         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13556         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13557         mode iterator.  Use "<c>zm" constraint for operand 1.
13558         (*call_value_vzeroupper): Ditto.
13559         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13560         for operand 1.
13561         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13562         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13563         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13564         (*call_value_pop_vzeroupper): Ditto.
13565         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13566         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13567         mode iterator.  Use "Uz" constraint for operand 1.
13568         (*sibcall_value_vzeroupper): Ditto.
13569         (*sibcall_value_rex64_ms_sysv): Ditto.
13570         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13571         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13572         constraint for operand 1.
13573         (*sibcall_value_pop_vzeroupper): Ditto.
13574         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13575         and "z" constraint for operand 2.
13576         (*tls_global_dynamic_32_gnu): Ditto.
13577         (*tls_local_dynamic_base_32_gnu): Ditto.
13578         (*tls_local_dynamic_base_64): Ditto.
13579         (*tls_local_dynamic_32_once): Ditto.
13580         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13581         Update all callers.
13582         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13583
13584 2011-05-16  Richard Guenther  <rguenther@suse.de>
13585
13586         * gimple.c (gimple_types_compatible_p_1): Use names of the
13587         type itself, not its main variant.
13588         (iterative_hash_gimple_type): Likewise.
13589
13590 2011-05-16  Richard Guenther  <rguenther@suse.de>
13591
13592         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13593         always visit pointer target and function result and argument types.
13594
13595 2011-05-16  Jason Merrill  <jason@redhat.com>
13596
13597         PR c++/48999
13598         * tree-inline.c (copy_statement_list): Put back recursion.
13599
13600 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13601
13602         PR target/27663
13603         PR target/41076
13604         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13605         * config/avr/avr.md ("*ior<mode>qi.byte0",
13606         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13607
13608 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13609
13610         PR target/45099
13611         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13612         register is needed for a function argument.
13613
13614 2011-05-16  Richard Guenther  <rguenther@suse.de>
13615
13616         * gimple.c (struct type_hash_pair): New type.
13617         (type_hash_pair_compare): New function.
13618         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13619
13620 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13621
13622         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13623
13624 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13625
13626         * config/i386/i386.md (floating point move splitters): Fix
13627         usage of standard_80387_constant_p.
13628         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13629
13630 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13631
13632         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13633
13634 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13635
13636         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13637         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13638         (tree_ssa_lim_finalize): Likewise.
13639
13640 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
13641
13642         * config/i386/constraint.md (Yd, Yx): New register constraints.
13643         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
13644         Yd conditional register constraint.
13645         (*movtf_internal): Use standard_sse_constant_opcode.
13646         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
13647         Yx conditional register constraint.
13648         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
13649         Yd conditional register constraint.  Use standard_sse_constant_p to
13650         check for valid SSE constants and call standard_sse_constant_opcode to
13651         output SSE insn.
13652         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13653         constants and call standard_sse_constant_opcode to output SSE insn.
13654         * config/i386/i386.c (ix86_option_ovverride_internal): Set
13655         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
13656         optimize_size is set.
13657         (standard_sse_constant_opcode): Output conditional AVX insn templates.
13658
13659 2011-05-14  Tobias Burnus  <burnus@net-b.de>
13660
13661         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13662
13663 2011-05-13  Martin Jambor  <mjambor@suse.cz>
13664
13665         * ipa-prop.c (ipa_cst_from_jfunc): New function.
13666         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13667         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13668         (evaluate_conditions_for_ipcp_clone): Removed.
13669         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13670         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13671         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13672
13673 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13674
13675         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13676         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13677         lieu of MAY_HAVE_DEBUG_STMTS.
13678         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13679         debug statements if !MAY_HAVE_DEBUG_STMTS.
13680
13681 2011-05-13  Martin Thuresson  <martint@google.com>
13682
13683         PR gcov-profile/47793
13684         * libgcov.c (gcov_exit): Support relative profile paths.
13685         * doc/invoke.texi (-fprofile-dir): Update for above change.
13686
13687 2011-05-13  Richard Guenther  <rguenther@suse.de>
13688
13689         * gimple.c (gimple_canonical_types_compatible_p): Do not use
13690         type-pair caching, do not compare hashes.
13691
13692 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
13693
13694         PR middle-end/48965
13695         * tree-cfg.c (edge_to_cases_cleanup): Return true.
13696         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13697
13698 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13699
13700         * gimplify.c (gimplify_expr): Make sure operand is boolified.
13701         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13702         compatible type for TRUTH_NOT_EXPR.
13703
13704 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13705
13706         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13707         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
13708         can_create_pseudo_p ().
13709
13710 2011-05-13  Richard Guenther  <rguenther@suse.de>
13711
13712         PR lto/48978
13713         * gimple.c (iterative_hash_gimple_type): Revert change in
13714         pointer target and function result and argument hashing.
13715
13716 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
13717
13718         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13719         (*movxf_internal_nointeger): Ditto.
13720         (*movdf_internal_rex64): Ditto.
13721         (*movdf_internal): Ditto.
13722         (*movdf_internal_nointeger): Ditto.
13723         (*movsf_internal): Ditto.
13724         (sincos splitters): Use can_create_pseudo ().
13725
13726 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * config/i386/i386-opts.h: New.
13729         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13730         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13731         ix86_section_threshold): Remove.
13732         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
13733         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13734         OPT_mbranch_cost_.
13735         (ix86_option_override_internal): Don't decode strings for options
13736         other than -march=, -mtune= and -mfpmath=.  Don't allow for
13737         __attribute__ uses in remaining diagnostics for options with
13738         string arguments.  Don't check for integer arguments being negative.
13739         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13740         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13741         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13742         ix86_branch_cost, ix86_section_threshold): Remove.
13743         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13744         HeaderInclude.
13745         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13746         but not Var.
13747         (masm=): Use Enum and Init.
13748         (asm_dialect): New Enum and EnumValue entries.
13749         (mbranch-cost=): Use UInteger.
13750         (mlarge-data-threshold=): Use UInteger and Init.
13751         (mcmodel=): Use Enum and Init.
13752         (cmodel): New Enum and EnumValue entries.
13753         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13754         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13755         mregparm=): Use UInteger.
13756         (mstringop-strategy=): Use Enum and Init.
13757         (stringop_alg): New Enum and EnumValue entries.
13758         (mtls-dialect=): Use Enum and Init.
13759         (tls_dialect): New Enum and EnumValue entries.
13760         (mabi=): Use Enum and Init.
13761         (calling_abi): New Enum and EnumValue entries.
13762         (mveclibabi=): Use Enum and Init.
13763         (ix86_veclibabi): New Enum and EnumValue entries.
13764
13765 2011-05-13  Nick Clifton  <nickc@redhat.com>
13766
13767         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13768         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13769
13770 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13771
13772         PR middle-end/48984
13773         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13774         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13775         (gimple_boolify): Check for cast for boolean_type_node instead for
13776         BOOLEAN_TYPE.
13777
13778 2011-05-13  Richard Guenther  <rguenther@suse.de>
13779
13780         PR tree-optimization/48172
13781         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13782         multiplying by number of iterations for equal step.
13783         (vect_create_cond_for_alias_checks): Likewise.
13784
13785 2011-05-13  Andreas Schwab  <schwab@redhat.com>
13786
13787         * configure.ac: Use AS_HELP_STRING throughout.
13788         * configure: Regenerate.
13789
13790 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13791
13792         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13793         (ix86_emit_restore_regs_using_mov): Likewise.
13794         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13795
13796 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13797
13798         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13799         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13800         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13801         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13802         RTX_OK_FOR_OLO10_P): ...here.
13803         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13804         SYMBOLIC_CONST.
13805
13806 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13807
13808         * gimplify.c (gimple_boolify): Re-boolify expression
13809         arguments even if expression type is of kind BOOLEAN_TYPE.
13810         (gimplify_boolean_expr): Removed.
13811         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13812         and XOR. Additional take care that we keep expression's type.
13813         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13814         of TRUTH_AND|OR|XOR_EXPR.
13815
13816 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13817
13818         PR tree-optimization/48975
13819         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13820         on all bbs here and free and clear ifc_bbs at the end.
13821
13822 2011-05-12  Richard Guenther  <rguenther@suse.de>
13823
13824         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13825         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13826         until after simple checks.
13827         (gimple_types_compatible_p): Likewise.
13828         (iterative_hash_gimple_type): Always hash pointer targets
13829         and function return and argument types.
13830         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13831         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13832         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13833         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13834         completely in the simple compare section.
13835         (gimple_register_canonical_type): Query the cache again after
13836         registering.
13837
13838 2011-05-12  Richard Guenther  <rguenther@suse.de>
13839
13840         PR tree-optimization/48172
13841         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13842         the number of iterations from the segment size calculation.
13843         (vect_create_cond_for_alias_checks): Adjust.
13844
13845 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13846
13847         PR debug/48967
13848         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13849         if validate_subreg fails.
13850
13851 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13852
13853         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13854         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13855         early.
13856
13857 2011-05-12  DJ Delorie  <dj@redhat.com>
13858
13859         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13860         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13861         created builtin into rx_builtins array.
13862         (rx_builtin_decl): New function.
13863         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13864
13865 2011-05-12  DJ Delorie  <dj@redhat.com>
13866             Nick Clifton  <nickc@redhat.com>
13867
13868         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13869         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13870         (rx_is_legitimate_address): Add pre-decrement and post-increment
13871         addressing in HImode and QImode.  Fix test for out of range
13872         REG+INT addressing.
13873         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13874         (rx_align_for_label): Test label before extracting its usage count.
13875         (rx_adjust_insn_lengths): Fix selection of insn codes.
13876         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13877
13878 2011-05-11  Jason Merrill  <jason@redhat.com>
13879
13880         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13881
13882 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13883
13884         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13885         reindent the subsequent block.
13886
13887 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13888             Paul Pluzhnikov  <ppluzhnikov@google.com>
13889
13890         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13891         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13892         * config.in: Add LINKER_HASH_STYLE.
13893         * configure.ac: Add --with-linker-hash-style.
13894         * configure: Regenerate.
13895
13896 2011-05-11  Richard Guenther  <rguenther@suse.de>
13897
13898         PR middle-end/48964
13899         * gimple.c (iterative_hash_canonical_type): Fix typo.
13900
13901 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13902
13903         * config/i386/i386.c (legitimize_tls_address)
13904         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13905         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13906         __tls_get_addr symbol reference here.  Update call to
13907         gen_tls_global_dynamic_{32,64} for added arguments.
13908         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13909         expanders directly for TARGET_GNU2_TLS.  Determine
13910         __tls_get_addr symbol reference here.  Update call to
13911         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13912         unique UNSPEC REG_EQUIV to libcall block.
13913         (ix86_tls_get_addr): Declare static.
13914         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13915         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13916         Do not determine pic and __tls_get_addr symbol reference here. Do not
13917         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13918         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13919         (tls_global_dynamic_64): Add operand 2.  Do not determine
13920         __tls_get_addr symbol reference here.  Do not call
13921         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13922         (tls_local_dynamic_base64): Ditto for operand 1.
13923
13924 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13925
13926         * function.c (expand_function_start): Initialize stack_check_probe_note
13927         only if the generic stack checking mechanism is used.
13928
13929 2011-05-11  Richard Guenther  <rguenther@suse.de>
13930
13931         PR tree-optimization/15256
13932         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13933         (A & B) | C, combine (A op CST1) op CST2.
13934         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13935         visit assigns that have uses.
13936
13937 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13938
13939         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13940         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13941         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13942         (unpack_value_fields): Adjust for renaming.
13943         (lto_input_ts_type_tree_pointers): Split into...
13944         (lto_input_ts_type_common_tree_pointer): ...this and...
13945         (lto_input_ts_type_non_common_tree_pointers): ...this.
13946         (lto_input_tree_pointers): Adjust for above split.
13947         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13948         (pack_ts_type_common_value_fields): ...this.  Update comment.
13949         (lto_output_ts_type_tree_pointers): Split into...
13950         (lto_output_ts_type_common_tree_pointers): ...this and...
13951         (lto_output_ts_type_non_common_tree_pointers): ...this.
13952         (lto_output_tree_pointers): Adjust for above split.
13953         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13954         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13955         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13956         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13957         Define.
13958         (struct tree_type): Split into...
13959         (struct tree_type_common: ...this and...
13960         (struct tree_type_with_lang_specific): ...this and...
13961         (struct tree_type_non_common): ...this.  Adjust accessor macros
13962         accordingly.
13963         (TYPE_VALUES_RAW): Define.
13964         (union tree_node): Update for above changes.
13965         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13966         TS_TYPE_NON_COMMON.
13967         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13968         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13969         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13970         * treestructu.def (TS_TYPE): Remove.
13971         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13972         Define.
13973
13974 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13975
13976         PR debug/48159
13977         * tree-ssa.c (reset_debug_uses): New function.
13978         * tree-flow.h (reset_debug_uses): New prototype.
13979         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13980         * tree-loop-distribution.c (generate_loops_for_partition): Call
13981         reset_debug_uses on the stmts that will be removed.  Keep around
13982         all debug stmts, don't count them as bits in partition bitmap.
13983         (generate_builtin): Don't count debug stmts or labels as bits in
13984         partition bitmap.
13985
13986 2011-05-11  Richard Guenther  <rguenther@suse.de>
13987
13988         * gimple.c (gimple_type_hash_1): Merge with ...
13989         (gimple_type_hash): ... this.
13990         (gtc_visit): Remove mode parameter and simplify accordingly.
13991         (gimple_types_compatible_p_1): Likewise.
13992         (gimple_types_compatible_p): Likewise.
13993         (iterative_hash_gimple_type): Likewise.
13994         (visit): Likewise.
13995         (gimple_type_eq): Adjust.
13996
13997 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13998
13999         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14000         enters the branch create an anti edge in the opposite direction
14001         to prevent the creation of reg-moves.
14002         * modulo-sched.c: Adjust comment to reflect the fact we are
14003         scheduling closing branch.
14004         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14005         (stage_count): New field in struct partial_schedule.
14006         (calculate_stage_count): New function.
14007         (normalize_sched_times): Rename to reset_sched_times and handle
14008         incrementing the sched time of the nodes by a constant value
14009         passed as parameter.
14010         (duplicate_insns_of_cycles): Skip closing branch.
14011         (sms_schedule_by_order): Schedule closing branch.
14012         (ps_insn_find_column): Handle closing branch.
14013         (sms_schedule): Call reset_sched_times and adjust the code to
14014         support scheduling of the closing branch.
14015         (ps_insert_empty_row): Update calls to normalize_sched_times
14016         and rotate_partial_schedule functions.
14017
14018 2011-05-11  Richard Guenther  <rguenther@suse.de>
14019
14020         PR middle-end/48953
14021         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14022
14023 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
14024
14025         * opts.c (finish_options): Move warning settings from process_options.
14026         * toplev.c (process_options): Move warning settings to finish_options.
14027
14028 2011-05-11  Richard Guenther  <rguenther@suse.de>
14029
14030         PR tree-optimization/18041
14031         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14032         (simplify_bitwise_binary): ... this.  Handle operand conversions
14033         by applying them to the result instead.
14034         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
14035
14036 2011-05-11  Richard Guenther  <rguenther@suse.de>
14037
14038         * gimple.c (gimple_canonical_types_compatible_p): Split out
14039         from gimple_types_compatible_p and friends.  Do not recurse
14040         to pointed-to types.
14041         (gimple_canonical_type_eq): Use it.
14042         (iterative_hash_canonical_type): Split out from
14043         iterative_hash_gimple_type and friends.  Do not recurse
14044         to pointed-to types.
14045         (gimple_canonical_type_hash): Use it, allocate the hash here.
14046
14047 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14048
14049         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14050         recognizing doloop.
14051
14052 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14053
14054         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14055         instead of PREV_INSN.
14056
14057 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14058
14059         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14060         * loop-doloop.c (doloop_condition_get): Likewise.
14061         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14062         (doloop_end): New.
14063         * config/arm/arm.md (*addsi3_compare0): Remove "*".
14064
14065 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
14066
14067         * tree.def (CASE_LABEL_EXPR): Add an operand.
14068         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14069
14070 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14071
14072         * c-decl.c (c_override_global_bindings_to_false): Remove.
14073         (global_bindings_p): Don't check
14074         c_override_global_bindings_to_false.
14075         * c-tree.h (c_override_global_bindings_to_false): Remove.
14076         * c-typeck.c (composite_type): Don't set
14077         c_override_global_bindings_to_false.
14078
14079 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14080
14081         PR target/48857, 48495
14082         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14083         (VSX_MODE): Ditto.
14084         (VSX_MOVE_MODE): Ditto.
14085         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14086         VSX vector types.  Add V2DImode.
14087         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14088         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14089         (MODES_TIEABLE_P): Ditto.
14090
14091         * config/rs6000/rs6000.c (rs6000_emit_move): Use
14092         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14093         VSX_VECTOR_MODE.
14094         (init_cumulative_args): Ditto.
14095         (rs6000_function_arg_boundary): Ditto.
14096         (rs6000_function_arg_advance_1): Ditto.
14097         (rs6000_function_arg): Ditto.
14098         (rs6000_function_ok_for_sibcall): Ditto.
14099         (emit_frame_save): Ditto.
14100         (rs6000_function_value): Ditto.
14101         (rs6000_libcall_value): Ditto.
14102
14103 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14104
14105         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14106         i386/darwin-lib.h to $libgcc_tm_file.
14107         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14108
14109 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14110
14111         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14112
14113 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14114
14115         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14116         * config/rs6000/rs6000-tables.opt: New file (generated).
14117         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14118         rs6000/rs6000-tables.opt to extra_options.
14119         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14120         * config/rs6000/rs6000.c (rs6000_select): Remove.
14121         (processor_target_table): Move contents to rs6000-cpus.def.
14122         (darwin_rs6000_override_options): Check
14123         global_options_set.x_rs6000_cpu_index instead of
14124         rs6000_select[1].string.
14125         (rs6000_option_override_internal): Likewise.
14126         (rs6000_handle_option): Don't assert that global structures are in
14127         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
14128         (rs6000_default_cpu): New variable.
14129         (rs6000_file_start): Set it instead of local default_cpu.  Check
14130         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14131         global_options_set.x_rs6000_tune_index instead of rs6000_select.
14132         (rs6000_darwin_file_start): Check rs6000_default_cpu and
14133         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14134         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14135         rs6000_select): Remove.
14136         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14137         Remove.
14138         (mcpu=, mtune=): Use Var, Init, Enum and Save.
14139         * config/rs6000/t-rs6000
14140         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14141         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14142         global_options_set.x_rs6000_cpu_index instead of
14143         rs6000_select[1].string.
14144         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14145         global_options_set.x_rs6000_cpu_index instead of
14146         rs6000_select[1].string.
14147
14148 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14149
14150         * config.gcc (libgcc_tm_file): Define instead of including files
14151         from ../../libgcc/config/ in tm_file.
14152         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14153         * configure: Regenerate.
14154         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14155         libgcc_tm.h, cs-libgcc_tm.h): New.
14156         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14157         (clean): Remove libgcc_tm.h.
14158         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14159         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14160         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14161
14162 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
14163
14164         PR target/48896
14165         * config/avr/avr.c (avr_ret_register): Return unsigned int
14166         instead of int.
14167         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14168         it to avr_libcall_value.
14169         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14170         expand_expr.
14171         (avr_expand_binop_builtin): Ditto.
14172         (avr_expand_unop_builtin): Ditto.
14173
14174 2011-05-10  DJ Delorie  <dj@redhat.com>
14175
14176         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14177         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14178         * config/rx/rx.c (rx_align_for_label): Add label and
14179         uses_threshold parameters.  Do not align when the label is not
14180         used enough.
14181         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14182
14183 2011-05-10  Richard Guenther  <rguenther@suse.de>
14184
14185         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14186         a series of conversions and apply foldings similar to what
14187         fold-const does.
14188         (tree_ssa_forward_propagate_single_use_vars): Call it.
14189
14190 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
14191
14192         PR tree-optimization/48611
14193         PR tree-optimization/48794
14194         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14195         referenced from RESX or EH_DISPATCH arguments.
14196
14197         PR debug/48928
14198         * dfp.c (decimal_to_decnumber): Handle conversion from
14199         dconst{1,2,m1,half}.
14200
14201 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14202
14203         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14204         for !flag_prefer_avx128.
14205         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14206
14207 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14208
14209         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14210         (fold_ternary_loc): Use expr_location_or.
14211
14212 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14213
14214         PR debug/48853
14215         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14216         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14217         Pmode and mem_mode is not VOIDmode.
14218
14219 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
14220
14221         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14222         TYPE_QUAL_RESTRICT): Convert to enum.
14223
14224 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14225
14226         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14227         (const_pow2_1_to_8_operand): Ditto.
14228         (const_pow2_1_to_128_operand): Ditto.
14229         (const_pow2_1_to_32768_operand): Ditto.
14230         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14231         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
14232         in insn constraint to check integer value of operand 3.
14233         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14234
14235         (PINSR_MODE): New mode iterator.
14236         (sse2p4_1): New mode attribute.
14237         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14238         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14239         iterator.  Use const_int_operand instead of
14240         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
14241         exact_log2 in insn constraint to check integer value of operand 3.
14242
14243 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14244
14245         * config/i386/sse.md (blendbits): Remove mode attribute.
14246         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14247         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14248         Check integer value of operand 3 in insn constraint.
14249
14250 2011-05-09  Richard Guenther  <rguenther@suse.de>
14251
14252         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14253         for diagnostics.
14254         (lto_symtab_merge): Likewise.  Do not register types here.
14255         (lto_symtab_merge_decls_2): Likewise.
14256         (lto_symtab_merge_decls_1): Likewise.
14257         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14258         * gimple.c (enum gtc_mode): Declare.
14259         (gimple_types_compatible_p): Make static.
14260
14261 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14262
14263         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14264         temporary register to match Pmode.
14265
14266 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14267
14268         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14269         and *vec_concatv4si_1_avx.
14270
14271 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14272
14273         PR rtl-optimization/48927
14274         * ira-conflicts.c (commutative_constraint_p): Use
14275         recog_data.alternative_enabled_p to disable alternatives where
14276         "enabled" attribute is false.
14277         (get_dup_num): Ditto.
14278         * ira-lives.c (single_reg_class): Ditto.
14279         (ira_implicitly_set_insn_hard_regs): Ditto.
14280
14281 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14282
14283         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14284         (dataflow_set_preserve_mem_locs): Likewise.
14285
14286 2011-05-09  Philipp Thomas  <pth@suse.de>
14287
14288         * config/mep/mep.c (mep_validate_vliw): Syntax description
14289         should not be translated.
14290
14291 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14294         * config/mips/mips-tables.opt: New file (generated).
14295         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14296         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14297         MIPS_ARCH_OPTION_NATIVE): Define.
14298         * config/mips/mips.c (mips_cpu_info_table): Move contents to
14299         mips-cpus.def.
14300         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14301         mips_parse_cpu): Remove.
14302         (mips_cpu_info_from_opt, mips_default_arch): New.
14303         (mips_handle_option): Don't assert that global structures are in
14304         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14305         (mips_option_override): Use new variables and functions to set
14306         state of these options.  Use strcmp to check for individual CPU names.
14307         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14308         definition.
14309         * config/mips/mips.opt (march=): Use ToLower and Enum.
14310         (mips): Use ToLower, Enum and Var.
14311         (mtune=): Use ToLower and Enum.
14312         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14313
14314 2011-05-08  Jan Hubicka  <jh@suse.cz>
14315
14316         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14317         Arrange type pairs to be UID ordered.
14318         (gimple_lookup_type_leader): Make inline.
14319
14320 2011-05-09  Nick Clifton  <nickc@redhat.com>
14321
14322         PR target/48899
14323         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14324         PROCESSOR_DEFAULT.
14325
14326         PR target/48897
14327         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14328         variable 's'.
14329
14330 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14331
14332         * combine.c (simplify_comparison): Abstract out parts into...
14333         (simplify_compare_const): ... new function.
14334         (try_combine): Generalize parallel arithmetic/compare combining
14335         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14336
14337 2011-05-08  Jan Hubicka  <jh@suse.cz>
14338
14339         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14340         (cgraph_create_virtual_clone): Call hooks once virtual clone
14341         is finished.
14342         * cgraph.h (cgraph_clone_node): Update prototype.
14343         * ipa-cp.c (ipcp_estimate_growth): Use
14344         estimate_ipcp_clone_size_and_time.
14345         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14346         * lto-cgraph.c (input_node): Update.
14347         * ipa-inline.c (recursive_inlining): Update.
14348         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14349         (evaluate_conditions_for_known_args): Break out from ...
14350         (evaluate_conditions_for_edge): ... here.
14351         (evaluate_conditions_for_ipcp_clone): New function.
14352         (inline_node_duplication_hook): Update clone summary based
14353         on parameter map.
14354         (estimate_callee_size_and_time): Rename to ...
14355         (estimate_node_size_and_time): take NODE instead of EDGE;
14356         take POSSIBLE_TRUTHS as argument.
14357         (estimate_callee_size_and_time): Update.
14358         (estimate_ipcp_clone_size_and_time): New function.
14359         (do_estimate_edge_time): Update.
14360
14361 2011-05-08  Richard Guenther  <rguenther@suse.de>
14362
14363         PR middle-end/48908
14364         PR middle-end/48905
14365         * expmed.c (expand_shift_1): Compute adjusted constant shift
14366         amount manually.
14367
14368 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14369
14370         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14371
14372 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14373
14374         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14375
14376 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14377
14378         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14379
14380 2011-05-07  Jan Hubicka  <jh@suse.cz>
14381
14382         * ipa-inline-transform.c (inline_call): Account when program size
14383         decreases.
14384         * ipa-inline.c (relative_time_benefit): New function.
14385         (edge_badness): Reorganize to be power 2 based; fix thinko when
14386         computing badness for negative growth; update comments to match
14387         reality; better dumps.
14388
14389 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14390
14391         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14392         type to bool and adjust comment.
14393         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14394         (fold_mathfn_compare): Remove calls to global_bindings_p.
14395         (fold_inf_compare): Likewise.
14396         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14397         * c-tree.h (global_bindings_p): Adjust prototype.
14398         * c-decl.c (global_bindings_p): Return bool and simplify.
14399
14400 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14401
14402         PR tree-optimization/48837
14403         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14404         when accumulator transformation is performed.
14405
14406 2011-05-06  Jan Hubicka  <jh@suse.cz>
14407
14408         * i386.h (ix86_tune_indices): Add
14409         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14410         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14411         * i386.c (initial_ix86_tune_features): Add
14412         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14413         (software_prefetching_beneficial_p): Remove predicate.
14414         (ix86_option_override_internal): Use new macro.
14415
14416 2011-05-06  Jan Hubicka  <jh@suse.cz>
14417
14418         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14419
14420 2011-05-06  Jan Hubicka  <jh@suse.cz>
14421
14422         * cgraph.c (cgraph_add_thunk): Create real function node instead
14423         of alias node; finalize it and mark needed/reachale; arrange visibility
14424         to be right and add it into the corresponding same comdat group list.
14425         (dump_cgraph_node): Dump thunks.
14426         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14427         cgraph_function_with_gimple_body_p,
14428         cgraph_first_function_with_gimple_body,
14429         cgraph_next_function_with_gimple_body): New functions.
14430         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14431         New macros.
14432         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14433         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14434         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14435         devirtualization when optimizing.
14436         (verify_cgraph_node): Verify thunks.
14437         (cgraph_analyze_function): Analyze thunks.
14438         (cgraph_mark_functions_to_output): Output thunks only in combination
14439         with function they are assigned to.
14440         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14441         alias into normal node.
14442         (assemble_thunks): New functoin.
14443         (cgraph_expand_function): Use it.
14444         * lto-cgraph.c (lto_output_node): Stream thunks.
14445         (input_overwrite_node): Stream in thunks.
14446         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14447         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14448         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14449         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14450         (inline_analyze_function): Do not care about thunk jump functions.
14451         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14452         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14453         cgraph_function_with_gimple_body_p.
14454         * passes.c (do_per_function_toporder): Use
14455         cgraph_function_with_gimple_body_p.
14456         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14457         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14458         (function_called_by_processed_nodes_p): Likewise.
14459
14460 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14461
14462         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14463         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14464         entries.
14465         (mabi=): Replace with separate entries for mabi=altivec,
14466         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14467         mabi=ieeelongdouble and mabi=ibmlongdouble.
14468         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14469         check for -mabi=spe without SPE ABI support here.
14470         (rs6000_handle_option): Replace OPT_mabi_ handling with
14471         OPT_mabi_altivec and OPT_mabi_spe handling.
14472
14473 2011-05-06  Cary Coutant  <ccoutant@google.com>
14474
14475         * dwarf2out.c (contains_subprogram_definition): New function.
14476         (should_move_die_to_comdat): Call it.
14477
14478 2011-05-06  Jeff Law  <law@redhat.com>
14479
14480         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14481         remove_ctrl_stmt_and_useless_edges.
14482         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14483         (fixup_template_block, thread_single_edge): Likewise.
14484         (mark_threaded_blocks): Use THREAD_TARGET.
14485
14486 2011-05-06  Alan Modra  <amodra@gmail.com>
14487
14488         PR target/48900
14489         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14490         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14491
14492 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14493
14494         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14495         constraint modifier to "r".
14496
14497 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14498
14499         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14500         fall through for OPT_mcmodel_.
14501
14502 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14503
14504         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14505         instruction sizes.
14506         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14507
14508 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14509
14510         PR target/47930
14511         * config/arm/arm.opt (marm): Document it.
14512         (mthumb): Reject negative variant.
14513
14514 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14515
14516         PR target/48898
14517         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14518         Fix typo in "ccvt" variable name.
14519
14520 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14521
14522         PR target/48895
14523         * config/vms/vms-ar.c (main): Remove cwd variable.
14524
14525 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14526
14527         PR debug/48902
14528         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14529
14530 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14531
14532         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14533         * gimplify.c (gimplify_switch_expr): Likewise.
14534         * omp-low.c (expand_omp_sections): Likewise.
14535         * tree-eh.c (lower_try_finally_switch): Likewise.
14536         (lower_eh_dispatch): Likewise.
14537         * tree.h (build_case_label): Declare.
14538         * tree.c (build_case_label): Define.
14539
14540 2011-05-05  Jason Merrill  <jason@redhat.com>
14541
14542         PR c++/40975
14543         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14544         (copy_statement_list): Don't recurse.
14545         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14546         STATEMENT_LIST.
14547
14548 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14549
14550         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14551         through from -mfpu= handling.
14552         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14553
14554 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14555
14556         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14557         POST_MODIFY.
14558
14559 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14560
14561         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14562         for 11.31.
14563         (hppa[12]*-*-hpux11*): Ditto.
14564         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14565         * config/ia64/hpux-unix2003.h: New.
14566         * config/pa/pa-hpux1131.opt: New.
14567         * config/pa/pa-hpux1131.h: New.
14568         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14569         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14570         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14571
14572 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14573
14574         PR debug/48853
14575         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14576         instead of mode as 3rd argument to recursive call.
14577         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14578         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14579         VOIDmode.
14580         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14581         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14582         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14583         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14584
14585 2011-05-05  Julian Brown  <julian@codesourcery.com>
14586
14587         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14588         parenthesis in D-register case.
14589
14590 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14591
14592         * opt-functions.awk (var_type_struct): Handle Enum options.
14593         * optc-gen.awk: Don't check range of variables of character type.
14594         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14595         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14596         rs6000_sdata_name, rs6000_explicit_options): Remove.
14597         (rs6000_option_override_internal): Check for -malign-power here.
14598         Use global_options_set instead of rs6000_explicit_options.
14599         (rs6000_parse_fpu_option): Remove.
14600         (rs6000_handle_option): Access variables via opts and opts_set
14601         pointers.  Use error_at and warning_at.  Add fall-through
14602         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14603         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14604         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14605         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14606         here.  Don't use rs6000_parse_fpu_option.
14607         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14608         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14609         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14610         (mrecip=): Use Var.
14611         (mspe): Use Var and Save.
14612         (mtraceback=): Use Enum and Var.
14613         (rs6000_traceback_type): New Enum and EnumValue entries.
14614         (mfloat-gprs=): Use Enum, Var and Save.
14615         (rs6000_float_gprs): New Enum and EnumValue entries.
14616         (mlong-double-): use Var and Save.
14617         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14618         (malign-): Use Enum and Var.
14619         (rs6000_alignment_flags): New Enum and EnumValue entries.
14620         (mfpu=): Use Enum.
14621         (fpu_type_t): New Enum and EnumValue entries.
14622         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14623         global_options_set instead of rs6000_explicit_options.
14624         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14625         global_options_set instead of rs6000_explicit_options.
14626         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14627         global_options_set instead of rs6000_explicit_options.
14628         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14629         global_options_set instead of rs6000_explicit_options.
14630         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14631         global_options_set instead of rs6000_explicit_options.
14632         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14633         global_options_set instead of rs6000_explicit_options.
14634         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14635         definition.
14636         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14637         global_options_set instead of rs6000_explicit_options.
14638         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14639         (rs6000_cmodel): New Enum and EnumValue entries.
14640         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14641         global_options_set instead of rs6000_explicit_options.
14642         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14643         (mtls-size=): Use Enum and Var.
14644         (rs6000_tls_size): New Enum and EnumValue entries.
14645
14646 2011-05-05  Michael Matz  <matz@suse.de>
14647
14648         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14649         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14650         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14651         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14652         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14653         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14654         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14655         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14656         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14657         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14658         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14659         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14660         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14661         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14662         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14663         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14664
14665 2011-05-05  Richard Guenther  <rguenther@suse.de>
14666
14667         * expmed.c (expand_variable_shift): Rename to ...
14668         (expand_shift_1): ... this.  Take an expanded shift amount.
14669         For rotates recurse directly not building trees for the shift amount.
14670         (expand_variable_shift): Wrap around expand_shift_1.
14671         (expand_shift): Adjust.
14672
14673 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14674
14675         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14676
14677 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14678
14679         * tree.h (get_pending_sizes): Remove prototype.
14680         (put_pending_size): Likewise.
14681         (put_pending_sizes): Likewise.
14682         * stor-layout.c (pending_sizes): Delete.
14683         (get_pending_sizes): Likewise.
14684         (put_pending_size): Likewise.
14685         (put_pending_sizes): Likewise.
14686         (variable_size): Do not call put_pending_size and tidy up.
14687         * function.h (struct function): Remove dont_save_pending_sizes_p.
14688         * lto-streamer-in.c (input_function): Do not stream it.
14689         * lto-streamer-out.c (output_function): Likewise.
14690         * tree-inline.c (initialize_cfun): Do not copy it.
14691         * c-decl.c (store_parm_decls): Do not set it.
14692         * omp-low.c (create_task_copyfn): Likewise.
14693         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14694
14695 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
14696
14697         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14698         conditions.
14699         (*movdf_internal): Ditto.
14700         (*movdf_internal_nointeger): Ditto.
14701         (*movsf_internal): Ditto.
14702
14703 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14704
14705         * c-decl.c (finish_decl): Don't call get_pending_sizes.
14706         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
14707         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
14708         (c_variable_size): Remove.
14709         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
14710         call put_pending_sizes.
14711         (get_parm_info): Add parameter expr.  Use it to set
14712         arg_info->pending_sizes.
14713         (store_parm_decls): Use arg_info->pending_sizes instead or calling
14714         get_pending_sizes.
14715         * c-parser.c (c_parser_parms_declarator): Update call to
14716         c_parser_parms_list_declarator.
14717         (c_parser_parms_list_declarator): Take parameter expr.  Update
14718         call to push_parm_decl.  Update recursive call.  Don't call
14719         get_pending_sizes.  Update calls to get_parm_info.
14720         (c_parser_objc_method_definition): Update calls to
14721         c_parser_objc_method_decl and objc_start_method_definition.
14722         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14723         (c_parser_objc_method_decl): Add parameter expr.  Update call to
14724         grokparm.
14725         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14726         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14727         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14728
14729 2011-05-05  Michael Hope  <michael.hope@linaro.org>
14730
14731         PR pch/45979
14732         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14733         __ARM_EABI__ hosts.
14734
14735 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14736
14737         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14738         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14739         (spu_output_mi_thunk): New function.
14740
14741 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14742
14743         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14744         targetm.asm_out.print_operand.
14745         * config/sol2.c: Include target.h.
14746
14747 2011-05-04  Jan Hubicka  <jh@suse.cz>
14748
14749         * ipa-inline.c (reset_edge_caches): New function.
14750         (update_caller_keys): Add check_inlinablity_for; do not
14751         reset edge caches; remove now unnecesary loop.
14752         (update_callee_keys): Add comments; reset node_growth_cache of callee.
14753         (update_all_callee_keys): Likewise.
14754         (inline_small_functions): Sanity check cache; update code
14755         recomputing it.
14756
14757 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
14758
14759         PR rtl-optimization/47612
14760         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14761         as the last insn of the sequence to be moved.
14762
14763 2011-05-04  Tobias Burnus  <burnus@net-b.de>
14764
14765         PR fortran/48864
14766         * doc/invoke.texi (Ofast): Document that it
14767         enables Fortran's -fno-protect-parens.
14768
14769 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14770
14771         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14772
14773 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14774
14775         * stor-layout.c (variable_size): Do not issue errors.
14776
14777 2011-05-04  Richard Guenther  <rguenther@suse.de>
14778
14779         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14780         for array-ref indices.
14781         (tree_coverage_counter_addr): Likewise.
14782         (build_fn_info_type): Use size_int for index types.
14783         (build_gcov_info): Likewise.
14784
14785 2011-05-04  Richard Guenther  <rguenther@suse.de>
14786
14787         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14788         to build_int_cst.
14789         * c-typeck.c (really_start_incremental_init): Use bitsize_int
14790         for constructor indices.
14791         (push_init_level): Likewise.
14792
14793 2011-05-04  Richard Guenther  <rguenther@suse.de>
14794
14795         * explow.c (promote_mode): Move variable declarations before code.
14796
14797 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14798
14799         * tree.h (build_function_type_array): Declare.
14800         (build_varargs_function_type_array): Declare.
14801         (build_function_type_vec, build_varargs_function_type_vec): Define.
14802         * tree.c (build_function_type_array_1): New function.
14803         (build_function_type_array): New function.
14804         (build_varargs_function_type_array): New function.
14805
14806 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14807
14808         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14809         before setting STMT_VINFO_TYPE.
14810
14811 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14812
14813         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14814         instead of spu_pass_by_reference.
14815
14816 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14817
14818         * calls.c (emit_library_call_value_1): Invoke
14819         promote_function_mode hook on libcall arguments.
14820         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14821         argument being NULL.
14822         * targhooks.c (default_promote_function_mode): Lisewise.
14823         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14824         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14825
14826         * doc/tm.texi: Document that TYPE argument might be NULL.
14827
14828 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14829
14830         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14831
14832 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14833
14834         From Bernd Schmidt
14835         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14836
14837 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14838
14839         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14840         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14841         Move ...
14842         * mips-tfile.c: ... here.
14843         Don't include coretypes.h, tm.h, filenames.h.
14844         (saber_stop): Remove definition and all calls.
14845         [__SABER__]: Remove.
14846         (__LINE__): Remove default.
14847         (Size_t, Ptrdiff_t): Remove definitions.
14848         Replace by size_t, ptrdiff_t.
14849         [!MIPS_DEBUGGING_INFO]: Remove.
14850         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14851         (progname): Add const.
14852         (STATIC): Remove.
14853         Replace all uses by static.
14854         (ALIGN_SYMTABLE_OFFSET): Remove default.
14855         * mips-tdump.c: Don't include coretypes.h, tm.h.
14856         Remove !MIPS_IS_STAB guard.
14857         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14858         $(TM_H), filenames.h dependencies.
14859         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14860
14861 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14862
14863         From Jie Zhang
14864         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14865         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14866
14867 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14868
14869         From Bernd Schmidt
14870         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14871         account and save/restore RETS.
14872         (PROFILE_BEFORE_PROLOGUE): Define.
14873         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14874         the push insn to use predecrement.
14875
14876 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14877
14878         From Jie Zhang
14879         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14880
14881 2011-05-04  Nick Clifton  <nickc@redhat.com>
14882
14883         * config/mn10300/mn10300.c: Include cfgloop.h.
14884         (DUMP): New macro.
14885         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14886         Lcc or a FLcc insn into the instruction stream.
14887         (mn10300_block_contains_call): New function.  Returns true if the
14888         given basic block contains a CALL insn.
14889         (mn10300_loop_contains_call_insn): New function.  Returns true if
14890         the given loop contains a CALL insn.
14891         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14892         to use the SETLB and Lcc or FLcc insns.
14893         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14894         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14895         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14896         disable the SETLB optimization.
14897         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14898         __SETLB__ or __NO_SETLB__.
14899         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14900         (movsf_internal): Handle MDR register.
14901         (cmpsi): Make visible.
14902         (setlb): New pattern.
14903         (Lcc): New pattern.
14904         (FLcc): New pattern.
14905
14906 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14907
14908         PR target/48860
14909         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14910         for reg<->xmm moves.
14911         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14912         (vec_concatv2di_rex64_sse): Ditto.
14913         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14914         (*vec_extractv2di_1_rex64): Ditto.
14915
14916         Revert:
14917         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14918
14919         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14920         reg<->xmm moves.
14921         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14922
14923 2011-05-04  Richard Guenther  <rguenther@suse.de>
14924
14925         * tree.h (int_const_binop): Remove notrunc argument.
14926         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14927         create integer constants that are properly truncated.
14928         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14929         (const_binop): Remove zero notrunc argument to int_const_binop.
14930         (size_binop_loc): Likewise.
14931         (fold_div_compare): Likewise.
14932         (maybe_canonicalize_comparison_1): Likewise.
14933         (fold_comparison): Likewise.
14934         (fold_binary_loc): Likewise.
14935         (multiple_of_p): Likewise.
14936         * expr.c (store_constructor): Likewise.
14937         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14938         (maybe_fold_stmt_addition): Likewise.
14939         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14940         * stor-layout.c (layout_type): Likewise.
14941         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14942         * tree-sra.c (build_ref_for_offset): Likewise.
14943         (build_user_friendly_ref_for_offset): Likewise.
14944         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14945         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14946         * tree-ssa-loop-niter.c (inverse): Likewise.
14947         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14948         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14949         * tree-switch-conversion.c (check_range): Likewise.
14950         (build_constructors): Likewise.
14951         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14952         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14953         (extract_range_from_assert): Likewise.
14954         (vrp_int_const_binop): Likewise.
14955         (extract_range_from_binary_expr): Likewise.
14956         (extract_range_from_unary_expr): Likewise.
14957         (check_array_ref): Likewise.
14958         (find_case_label_range): Likewise.
14959         (simplify_div_or_mod_using_ranges): Likewise.
14960         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14961         comparing case labels for merging.
14962
14963 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14964
14965         * dwarf2out.c (debug_str_hash_forced): Removed.
14966         (gen_label_for_indirect_string): Removed.
14967         (get_debug_string_label): Removed.
14968         (AT_string_form): Generate label directly.
14969         (output_indirect_string): Test indirect_string_node for
14970         DW_FORM_strp instead of checking label and refcount.
14971         (prune_indirect_string): Removed.
14972         (prune_unused_types): Don't check debug_str_hash_forced or
14973         call prune_indirect_string.
14974
14975 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14976
14977         PR other/48093
14978         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14979
14980 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14981
14982         PR debug/47994
14983         PR debug/47919
14984         * combine.c (try_combine): Skip debug insns at m_split tests.
14985
14986 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14987
14988         PR42288
14989         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14990         when info_section_emitted.
14991
14992 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14993
14994         * config/mips/mips-opts.h: New.
14995         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14996         to mips-opts.h.
14997         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14998         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14999         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
15000         via opts pointer.
15001         * config/mips/mips.h (enum mips_code_readable_setting): Move to
15002         mips-opts.h.
15003         (mips_abi, mips_code_readable): Don't declare.
15004         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15005         (mabi=): Use Enum and Var.
15006         (mips_abi): New Enum and EnumValue entries.
15007         (mcode-readable=): Use Enum and Var.
15008         (mips_code_readable_setting): New Enum and EnumValue entries.
15009         (mr10k-cache-barrier=): Use Enum and Var.
15010         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15011
15012 2011-05-03  Jan Hubicka  <jh@suse.cz>
15013
15014         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15015         replace hash by pointer map.
15016         (cgraph_node_set_element_def, cgraph_node_set_element,
15017         const_cgraph_node_set_element, varpool_node_set_element_def,
15018         varpool_node_set_element, const_varpool_node_set_element): Remove.
15019         (free_cgraph_node_set, free_varpool_node_set): New function.
15020         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15021         * tree-emutls.c: Free varpool node set.
15022         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15023         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15024         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15025         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15026         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15027         Move here from ipa.c; implement using pointer_map
15028         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15029         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15030         debug_cgraph_node_set, varpool_node_set_new,
15031         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15032         dump_varpool_node_set, debug_varpool_node_set):
15033         Move to ipa-uitls.c.
15034         * passes.c (ipa_write_summaries): Update.
15035
15036 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15037
15038         From Mike Frysinger:
15039         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15040         bf542/bf544/bf547/bf548/bf549.
15041
15042 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15043
15044         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15045
15046 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15047
15048         From Bernd Schmidt:
15049         * config/bfin/bfin.md (MOVCC): New mode_macro.
15050         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15051         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
15052         comments from generated assembly.
15053
15054 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15055
15056         From Bernd Schmidt
15057         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15058         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15059         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15060         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15061         * config/bfin/lib1funcs.asm (___muldi3): New function.
15062
15063 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15064
15065         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15066         build_function_type_list instead of build_function_type.
15067         Rearrange initialization of `args' to do so.
15068
15069 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15070
15071         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15072         instead of build_function_type.
15073
15074 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15075
15076         * config/rs6000/rs6000.c (spe_init_builtins): Call
15077         build_function_type_list instead of build_function_type.
15078         (paired_init_builtins, altivec_init_builtins): Likewise.
15079         (builtin_function_type): Likewise.
15080
15081 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15082
15083         * config/sh/sh.c (sh_media_init_builtins): Call
15084         build_function_type_list instead of build_function_type.
15085
15086 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15087
15088         * config/sparc/sparc.c (sparc_file_end): Call
15089         build_function_type_list instead of build_function_type.
15090
15091 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15092
15093         * config/alpha/alpha.c (alpha_init_builtins): Call
15094         build_function_type_list instead of build_function_type.
15095
15096 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15097
15098         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15099         build_function_type_list instead of build_function_type.
15100
15101 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15102
15103         * config/iq2000/i2000.c (iq2000_init_builtins): Call
15104         build_function_type_list instead of build_function_type.
15105         Delete `endlink' variable.
15106
15107 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15108
15109         * config/avr/avr.c (avr_init_builtins): Call
15110         build_function_type_list instead of build_function_type.
15111
15112 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15113
15114         * config/picochip/picochip.c (picochip_init_builtins): Call
15115         build_function_type_list instead of build_function_type.
15116         Delete `endlink' variable.
15117
15118 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15119
15120         * config/bfin/bfin.c (bfin_init_builtins): Call
15121         build_function_type_list instead of build_function_type.
15122
15123 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15124
15125         From Bernd Schmidt
15126         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15127         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
15128
15129 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15130
15131         From Jie Zhang:
15132         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15133         libbffastfp overrides libgcc when -mfast-fp.
15134
15135 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15136
15137         Originally from Bernd Schmidt
15138         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15139         * config/bfin/bfin.c (override_options): Test it and error if
15140         TARGET_FDPIC.
15141
15142 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15143
15144         Originally From Bernd Schmidt
15145         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15146         FD-PIC.
15147
15148 2011-05-03  Jeff Law  <law@redhat.com>
15149
15150         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15151         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15152         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15153         than accessing AUX field directly.  Free the AUX field before
15154         clearing it.
15155         (thread_block, thread_through_loop_header): Likewise.
15156         (thread_single_edge, mark_threaded_blocks): Likewise.
15157         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
15158         (register_jump_thread): Do not attempt to thread to a NULL edge.
15159
15160 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15161
15162         * function.c (init_function_start): Call decide_function_section.
15163         * varasm.c (decide_function_section): New function.
15164         (assemble_start_function): When not using
15165         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15166         or first_function_block_is_cold.
15167         * rtl.h (decide_function_section): Declare.
15168
15169 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15170             Jakub Jelinek  <jakub@redhat.com>
15171
15172         PR target/48774
15173         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15174         only succeed if req_mode is the same as set_mode.
15175
15176 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15177
15178         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15179         * genemit.c (gen_exp): Handle RETURN.
15180         * emit-rtl.c (verify_rtx_sharing): Likewise.
15181         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15182         * rtl.c (copy_rtx): RETURN is shared.
15183         * rtl.h (enum global_rtl_index): Add GR_RETURN.
15184         (ret_rtx): New.
15185         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15186         * config/s390/s390.c (s390_emit_epilogue): Likewise.
15187         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15188         * config/cris/cris.c (cris_expand_return): Likewise.
15189         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15190         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15191         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15192         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15193         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15194         Likewise.
15195         * config/v850/v850.c (expand_epilogue): Likewise.
15196         * config/bfin/bfin.c (bfin_expand_call): Likewise.
15197         * config/arm/arm.md (epilogue): Likewise.
15198         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15199         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15200         variable to ret_reg.
15201
15202 2011-05-03  Richard Guenther  <rguenther@suse.de>
15203
15204         PR lto/48846
15205         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15206         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15207         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15208
15209 2011-05-03  Richard Guenther  <rguenther@suse.de>
15210
15211         * c-decl.c (grokdeclarator): Instead of looking at
15212         TREE_OVERFLOW check if the constant fits in the index type.
15213
15214 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15215
15216         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15217         (vec_store_lanes<mode><mode>): Likewise.
15218
15219 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15220
15221         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15222         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15223         convert_optab_index values.
15224         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15225         * genopinit.c (optabs): Initialize the new optabs.
15226         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15227         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15228         (expand_STORE_LANES): New functions.
15229         * tree.h (build_array_type_nelts): Declare.
15230         * tree.c (build_array_type_nelts): New function.
15231         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15232         (vect_model_load_cost): Likewise.
15233         (vect_store_lanes_supported, vect_load_lanes_supported)
15234         (vect_record_strided_load_vectors): Declare.
15235         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15236         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15237         (vect_transform_strided_load): Split out statement recording into...
15238         (vect_record_strided_load_vectors): ...this new function.
15239         * tree-vect-stmts.c (create_vector_array, read_vector_array)
15240         (write_vector_array, create_array_ref): New functions.
15241         (vect_model_store_cost): Add store_lanes_p argument.
15242         (vect_model_load_cost): Add load_lanes_p argument.
15243         (vectorizable_store): Try to use store-lanes functions for
15244         interleaved stores.
15245         (vectorizable_load): Likewise load-lanes and loads.
15246         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15247         to vect_model_store_cost.
15248         (vect_build_slp_tree): Likewise vect_model_load_cost.
15249
15250 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15251
15252         * hooks.h (hook_bool_mode_uhwi_false): Declare.
15253         * hooks.c (hook_bool_mode_uhwi_false): New function.
15254         * target.def (array_mode_supported_p): New hook.
15255         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15256         * doc/tm.texi: Regenerate.
15257         * stor-layout.c (mode_for_array): New function.
15258         (layout_type): Use it.
15259         * config/arm/arm.c (arm_array_mode_supported_p): New function.
15260         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15261
15262 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
15263
15264         PR target/48723
15265         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15266         for -fstack-check if the size to allocate is negative.
15267
15268 2011-05-02  Lawrence Crowl  <crowl@google.com>
15269
15270         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15271         (timevar_cond_start): New for starting a timer only when it is not
15272         already running.
15273         (timevar_cond_stop): New for stopping a timer when it was not already
15274         running.
15275
15276         * timevar.c (timevar_stop): Enable start/stop timers to start again.
15277         (timevar_cond_start): New as above.
15278         (timevar_cond_stop): New as above.
15279
15280         * timevar.def: Add start/stop timers for compiler phases,
15281         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15282         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15283         and TV_PHASE_FINALIZE.
15284         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15285         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15286         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15287         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15288         Make unused TV_OVERLOAD into a start/stop timer.
15289
15290         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15291         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15292         to indicate that they are start/stop timers.
15293
15294         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15295         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15296         Move initialization to do_compile.
15297         (do_compile): Add initialization from above.
15298         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15299
15300         * c-decl.c (c_write_global_declarations): Add start/stop of
15301         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15302
15303         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15304         or TV_PARSE_INLINE, as appropriate.
15305         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15306         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15307
15308 2011-05-02  Jason Merrill  <jason@redhat.com>
15309
15310         PR c++/40975
15311         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15312
15313 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
15314
15315         PR c/35445
15316         * c-decl.c (finish_decl): Only create a composite if the types are
15317         compatible.
15318
15319 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15320
15321         * config/fr30/fr30-protos.h (Mmode): Don't define.
15322         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
15323         definition where used.
15324         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15325         define.  Expand definitions where used.
15326         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15327         Expand definitions where used.
15328         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15329         rx_function_arg, rx_function_arg_advance,
15330         rx_function_arg_boundary): Expand definitions of those macros.
15331         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15332         definition where used.
15333
15334 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15335
15336         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15337         reg<->xmm moves.
15338         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15339         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15340         with *movv2sf_internal_rex64_avx.
15341         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15342         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15343         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15344         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15345         "vex" in "prefix" attribute calculation.
15346         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15347
15348 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15349
15350         PR target/47951
15351         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15352         inputs match the output.
15353
15354 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15355
15356         PR target/47955
15357         * config/m68k/m68k.c (m68k_expand_prologue): Set
15358         current_function_static_stack_size.
15359
15360 2011-05-02   Jan Hubicka  <jh@suse.cz>
15361
15362         * lto-streamer.c (lto_streamer_cache_insert_1,
15363         lto_streamer_cache_lookup, lto_streamer_cache_create,
15364         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15365         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15366
15367 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15368
15369         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15370         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15371         config/m68k/t-opts: New files.
15372         * config/m68k/m68k-tables.opt: New file (generated).
15373         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15374         extra_options and m68k/t-opts to tmake_file.
15375         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15376         (all_isas): Initialize using m68k-isas.def.
15377         (all_microarchs): Initialize using m68k-microarchs.def.
15378         (m68k_find_selection): Remove.
15379         (m68k_handle_option): Don't assert that global structures are in
15380         use.  Use error_at.  Access variables via opts pointer.  Don't
15381         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15382         directly for -m68020-40 and -m68020-60.
15383         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15384         m68k_tune_entry here.
15385         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15386         to m68k-opts.h.
15387         (m68k_library_id_string): Remove declaration.
15388         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15389         (m68k_library_id_string): New Variable.
15390         (march=, mcpu=, mtune=): Use Enum and Var.
15391
15392 2011-05-02  Richard Guenther  <rguenther@suse.de>
15393
15394         * varasm.c (output_constructor_regular_field): Compute zero-based
15395         index with double-ints.  Make sure to ICE instead of producing
15396         wrong code.
15397         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15398         in asserts.  Properly use a signed type.
15399
15400 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15401
15402         * config/i386/sse.md (V): New mode iterator.
15403         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15404         TARGET_SSE2.
15405         (V_256): Rename from AVX256MODE.
15406         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15407         condition to all users.
15408         (VF1): Ditto.
15409         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15410         condition to all users.
15411         (VF_128): Make V4SF mode unconditional.
15412         (VF_256): Rename from AVX256MODEF2P.
15413         (VI4F_128): Rename from SSEMODE4S.
15414         (VI8F_128): Rename from SSEMODE2D.
15415         (VI4F_256): Rename from AVX256MODE8P.
15416         (VI8F_256): Rename from AVX256MODE4P.
15417         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15418         (ssescalarmodesuffix): Remove SF and DF modes.
15419         (SSEMODE124): Remove.
15420         (SSEMODE1248): Ditto.
15421         (SSEMODEF2P): Ditto.
15422         (AVXMODEF2P): Ditto.
15423         (AVXMODEFDP): Ditto.
15424         (AVXMODEFSP): Ditto.
15425         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15426         unconditional.
15427         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15428         unconditional.
15429         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15430         xop_pcmov_<mode>256.  Use V mode iterator.
15431
15432         Adjust RTX patterns globally for renamed mode attributes.
15433
15434 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15435
15436         * haifa-sched.c (sched_emit_insn): Emit insn before first
15437         non-scheduled insn.  Inform back-end about new insn.  Add
15438         new insn to scheduled_insns list.
15439
15440 2011-05-02  Richard Guenther  <rguenther@suse.de>
15441
15442         PR tree-optimization/48822
15443         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15444         (process_scc): Indicate which iteration we start.
15445
15446 2011-05-02  Jan Hubicka  <jh@suse.cz>
15447
15448         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15449         (lto_section_overrun): New.
15450         * lto-section-out.c (append_block): Rename to ...
15451         (lto_append_block): ... this one; export.
15452         (lto_output_1_stream): Move lto lto-streamer.h
15453         (lto_output_data_stream): Update.
15454         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15455         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15456         functions.
15457
15458 2011-05-02  Richard Guenther  <rguenther@suse.de>
15459
15460         * tree.c (tree_code_counts): New global array.
15461         (record_node_allocation_statistics): Count individual tree codes.
15462         (dump_tree_statistics): Dump individual code stats.
15463
15464 2011-05-01  Jan Hubicka  <jh@suse.cz>
15465
15466         * ipa-inline.c (caller_growth_limits): Fix thinko when
15467         looking for largest stack frame.
15468         * ipa-inline.h (dump_inline_summary): Declare.
15469         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15470         on stack usage.
15471         (dump_inline_summary): Export.
15472         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15473
15474 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15475
15476         * reginfo.c (memory_move_cost): Change rclass argument type form
15477         'enum reg_class' to reg_class_t.
15478         * reload.h (memory_move_cost): Update prototype.
15479         * postreload.c reload_cse_simplify_set): Change type dclass var to
15480         reg_class_t.
15481         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15482         Update prototype.
15483         (ira_allocate_and_set_costs): Change aclass argument type form
15484         'enum reg_class' to reg_class_t.
15485         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15486         Change aclass argument type to reg_class_t.
15487         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15488         to reg_class_t.
15489         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15490         memory_move_cost call.
15491
15492         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15493         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15494         Change type tmp var to reg_class_t.
15495
15496 2011-04-30  Jan Hubicka  <jh@suse.cz>
15497
15498         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15499         inlining into function with flatten attribute.
15500         (want_inline_small_function_p): Be more realistic about inlining
15501         cold calls where callee size grows.
15502
15503 2011-04-30  Jan Hubicka  <jh@suse.cz>
15504
15505         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15506         flags.
15507
15508 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15509
15510         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15511         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15512         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15513         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15514         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15515         (print_operand): Rename to...
15516         (sparc_print_operand): ...this. Make static. Adjust
15517         sparc_print_operand function call.
15518         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15519         functions.
15520
15521 2011-04-30  Jan Hubicka  <jh@suse.cz>
15522
15523         PR middle-end/48752
15524         * ipa-inline.c (early_inliner): Disable when doing late
15525         addition of function.
15526
15527 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15528
15529         * dwarf2out.c (get_address_mode): New inline.
15530         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15531         if not dwarf_strict emit
15532         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15533         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15534         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15535         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15536         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15537         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15538         mem_loc_descriptor callers.
15539         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15540         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15541         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15542         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15543         (base_types): New variable.
15544         (get_base_type_offset, calc_base_type_die_sizes,
15545         base_type_for_mode, mark_base_types, base_type_cmp,
15546         move_marked_base_types): New functions.
15547         (calc_die_sizes): Assert that die_offset is 0 or equal to
15548         next_die_offset.
15549         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15550         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15551         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15552         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15553         (gen_subprogram_die): Don't give up on call site parameters
15554         with non-integral or large integral modes.  Adjust
15555         mem_loc_descriptor callers.
15556         (prune_unused_types): Call prune_unused_types_mark on base_types
15557         vector entries.
15558         (resolve_addr): Call mark_base_types.
15559         (dwarf2out_finish): Call move_marked_base_types.
15560
15561         PR tree-optimization/48809
15562         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15563         type.
15564         (gen_inbound_check): Don't compute index_expr - range_min in utype
15565         again, instead reuse SSA_NAME initialized in build_arrays.
15566         Remove two useless gsi_for_stmt calls.
15567
15568 2011-04-29  Jeff Law  <law@redhat.com>
15569
15570         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15571
15572 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15573
15574         * cgraph.h (cgraph_postorder): Remove declaration.
15575         * ipa-utils.h (ipa_free_postorder_info): Declare.
15576         (ipa_reverse_postorder): Likewise.
15577         * cgraphunit.c: Include ipa-utils.h.
15578         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15579         * ipa-inline.c: Include ipa-utils.h.
15580         (ipa_inline): Update call to ipa_reverse_postorder.
15581         * ipa-pure-const.c (propagate_pure_const): Update call to
15582         ipa_reduced_postorder and ipa_print_order.  Call
15583         ipa_free_postorder_info to clean up.
15584         (propagate_nothrow): Likewise.
15585         * ipa-reference.c (propagate): Removed a useless call to
15586         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15587         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15588         * ipa.c: Include ipa-utils.h.
15589         (ipa_profile): Update call to ipa_reverse_postorder.
15590         (cgraph_postorder): Moved to...
15591         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15592         (ipa_utils_print_order): Renamed to ipa_print_order.
15593         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15594         comments.
15595         (ipa_free_postorder_info): New function.
15596         * passes.c: Include ipa-utils.h.
15597         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15598         (ipa_write_summaries): Likewise.
15599         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15600         (cgraphunit.o): Likewise.
15601         (ipa.o): Likewise.
15602         (ipa-inline.o): Likewise.
15603
15604 2011-04-29  Jan Hubicka  <jh@suse.cz>
15605
15606         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15607         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15608         * ipa-inline.h (clause_t): Turn into unsigned int.
15609         * ipa-inline-analysis.c (add_clause): Do more simplification.
15610         (and_predicates): Shortcut more cases.
15611         (predicates_equal_p): Move forward; check that clauses are properly
15612         ordered.
15613         (or_predicates): Shortcut more cases.
15614         (edge_execution_predicate): Rewrite as...
15615         (set_cond_stmt_execution_predicate): ... this function; handle
15616         __builtin_constant_p.
15617         (set_switch_stmt_execution_predicate): New .
15618         (compute_bb_predicates): New.
15619         (will_be_nonconstant_predicate): Update TODO.
15620         (estimate_function_body_sizes): Use compute_bb_predicates
15621         and free them later, always try to estimate if stmt is constant.
15622         (estimate_time_after_inlining, estimate_size_after_inlining):
15623         Gracefully handle optimized out edges.
15624         (read_predicate): Fix off by one error.
15625
15626 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15627
15628         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15629
15630 2011-04-27  Xinliang David Li  <davidxl@google.com>
15631
15632         * tree-profile.c (init_ic_make_global_vars): Set
15633         tls attribute on ic vars.
15634         * coverage.c (coverage_end_function): Initialize
15635         function_list with zero.
15636
15637 2011-04-29  Richard Guenther  <rguenther@suse.de>
15638
15639         * builtins.c (fold_builtin_classify_type): Use integer_type_node
15640         for the type of the result.
15641         (fold_builtin_isascii): Likewise.
15642         (fold_builtin_toascii): Use integer_type_node where appropriate.
15643         (fold_builtin_logb): Likewise.
15644         (fold_builtin_frexp): Likewise.
15645         (fold_builtin_strstr): Likewise.
15646         (fold_builtin_strpbrk): Likewise.
15647         (fold_builtin_fputs): Likewise.
15648         (fold_builtin_sprintf): Likewise.
15649         (fold_builtin_snprintf): Likewise.
15650         (fold_builtin_printf): Likewise.
15651         (do_mpfr_remquo): Use a proper type for the assigned constant.
15652         (do_mpfr_lgamma_r): Likewise.
15653         * dwarf2out.c (resolve_one_addr): Use size_int.
15654         * except.c (init_eh): Likewise.
15655         (assign_filter_values): Use integer_type_node for filter values.
15656         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15657         indices.
15658         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15659         for EH region numbers.
15660         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15661         for the shift amount.
15662
15663 2011-04-29  Richard Guenther  <rguenther@suse.de>
15664
15665         * expr.h (expand_shift): Rename to ...
15666         (expand_variable_shift): ... this.
15667         (expand_shift): Take a constant shift amount.
15668         * expmed.c (expand_shift): Rename to ...
15669         (expand_variable_shift): ... this.
15670         (expand_shift): New wrapper around expand_variable_shift.
15671         * expr.c (convert_move, emit_group_load_1, emit_group_store,
15672         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15673         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15674         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15675         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15676         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15677         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15678         emit_store_flag_1, emit_store_flag): Likewise.
15679         * builtins.c (expand_builtin_signbit): Likewise.
15680         * calls.c (load_register_parameters): Likewise.
15681         * function.c (assign_parm_setup_block): Likewise.
15682         * lower-subreg.c (resolve_shift_zext): Likewise.
15683         * optabs.c (widen_bswap, expand_abs_nojump,
15684         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15685         * spu/spu.c (spu_expand_extv): Likewise.
15686         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15687
15688 2011-04-29  Richard Guenther  <rguenther@suse.de>
15689
15690         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15691         for the remapped region number.
15692         * predict.c (build_predict_expr): Use integer_type_node for the
15693         predict kind.
15694         * fold-const.c (fold_binary_loc): Use integer_type_node for
15695         the shift amount.  Use a proper type for the PLUS_EXPR operand.
15696
15697 2011-04-29  Michael Matz  <matz@suse.de>
15698
15699         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15700         other trees that just builtins.
15701         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15702
15703 2011-04-29  Richard Guenther  <rguenther@suse.de>
15704
15705         * tree-nested.c (get_trampoline_type): Use size_int.
15706         (get_nl_goto_field): Likewise.
15707         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15708         for all indexes.
15709         (lower_eh_constructs_2): Likewise.
15710         (lower_resx): Likewise.
15711         (lower_eh_dispatch): Likewise.
15712         * tree-mudflap.c (mf_build_string): Use size_int.
15713         (mudflap_register_call): Use integer_type_node for the flag.
15714         (mudflap_enqueue_constant): Use size_int.
15715         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15716         instead of rebuilding it.
15717
15718 2011-04-29  Richard Guenther  <rguenther@suse.de>
15719
15720         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15721         Handle OBJ_TYPE_REF.
15722         (find_func_aliases_for_call): Use it more consistently.
15723
15724 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
15725
15726         * haifa-sched.c (last_nondebug_scheduled_insn): New.
15727         (rank_for_schedule): Use it.
15728         (schedule_block): Set it.
15729
15730 2011-04-28  David Li  <davidxl@google.com>
15731
15732         * tree.c (crc32_string): Use crc32_byte.
15733         (crc32_byte): New function.
15734         * tree.h (crc32_byte): New function.
15735         * gcov.c (read_graph_file): Handle new cfg_cksum.
15736         (read_count_file): Ditto.
15737         * profile.c (instrument_values): Ditto.
15738         (get_exec_counts): Ditto.
15739         (read_profile_edge_counts): Ditto.
15740         (compute_branch_probabilities): Ditto.
15741         (compute_value_histograms): Ditto.
15742         (branch_prob): Ditto.
15743         (end_branch_prob): Ditto.
15744         * coverage.c (read_counts_file): Ditto.
15745         (get_coverage_counts): Ditto.
15746         (tree_coverage_counter_addr): Ditto.
15747         (coverage_checksum_string): Ditto.
15748         (coverage_begin_output): Ditto.
15749         (coverage_end_function): Ditto.
15750         (build_fn_info_type): Ditto.
15751         (build_fn_info_value): Ditto.
15752         * libgcov.c (gcov_exit): Ditto.
15753         * gcov-dump.c (tag_function): Ditto.
15754         (compute_checksum): Remove.
15755
15756 2011-04-29  Alan Modra  <amodra@gmail.com>
15757
15758         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15759         unspec plus offset.  Tidy macho code.
15760
15761 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15762
15763         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15764         node instead of a decl.  Update all callers.
15765         * cgraph.h: Update declaration.
15766
15767 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
15768
15769         PR tree-optimization/48765
15770         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15771         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15772         to indicate if loop aware SLP is being used.  Scan the statements
15773         and update the vectorization factor according to the type of
15774         vectorization before statement analysis.
15775         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15776         pass it to vect_analyze_loop_operations.
15777         (vectorizable_reduction): Set number of copies to 1 in case of pure
15778         SLP statement.
15779         * tree-vect-stmts.c (vectorizable_conversion,
15780         vectorizable_assignment, vectorizable_shift,
15781         vectorizable_operation, vectorizable_type_demotion,
15782         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15783         Likewise.
15784         (vectorizable_condition): Move the check that it is not SLP
15785         vectorization before the number of copies check.
15786         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15787         to vectorize the loop using SLP.
15788
15789 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
15790
15791         PR middle-end/48597
15792         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15793         inline asm.
15794
15795 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15796
15797         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15798         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15799         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15800         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15801         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15802         linux*.h headers.
15803         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15804         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15805         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15806         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15807         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15808         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15809         REG_NAME.
15810         * config/i386/linux.h (REG_NAME): Don't define.
15811         * config/i386/linux64.h (REG_NAME): Don't define.
15812         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15813         Undefine before defining.
15814
15815 2011-04-28  Jan Hubicka  <jh@suse.cz>
15816
15817         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15818         nonconstant_names array.
15819         (estimate_function_body_sizes): Build nonconstant_names array; handle
15820         BUILT_IN_CONSTANT_P.
15821
15822 2011-04-28  Richard Guenther  <rguenther@suse.de>
15823
15824         PR bootstrap/48804
15825         Revert
15826         2011-04-28  Richard Guenther  <rguenther@suse.de>
15827
15828         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15829         as late as possible.
15830
15831 2011-04-28  Richard Guenther  <rguenther@suse.de>
15832
15833         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15834         (debug_constraint): Do it here.
15835         (dump_constraints): And here.
15836         (rewrite_constraints): And here.
15837         (dump_constraint_edge): Remove.
15838         (dump_constraint_graph): Rewrite to produce DOT output.
15839         (solve_constraints): Build succ graph as late as possible.
15840         Dump constraint graphs before and after solving.
15841
15842 2011-04-28  Richard Guenther  <rguenther@suse.de>
15843
15844         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15845         New function split out from ...
15846         (find_func_aliases): ... here.  Call it.
15847         (find_func_aliases_for_call): Likewise.
15848
15849 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15850
15851         * internal-fn.h (internal_fn_name_array): Declare.
15852         (internal_fn_flags_array): Likewise.
15853
15854 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15855
15856         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15857         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15858         Move from sse.md.
15859         (ssemodefsuffix): Remove.
15860         (ssevecmodesuffix): New mode attribute.
15861         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15862         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15863         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15864         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15865         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15866         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15867         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15868         ssemodesuffix mode attribute.
15869         (float splitters): Use ssevecmodesuffix mode attribute.
15870         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15871         (sseinsmode): Rename from avxvecmode.
15872         (avxsizesuffix): Rename from avxmodesuffix.
15873         (sseintvecmode): Rename from avxpermvecmode.
15874         (ssedoublevecmode): Rename from ssedoublesizemode.
15875         (ssehalfvecmode): Rename from avxhalfvecmode.
15876         (ssescalarmode): Rename from avxscalarmode.
15877         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15878         templates for ssemodesuffix mode attribute.
15879         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15880         mode attribute.
15881
15882         Adjust RTX patterns globally for renamed mode attributes.
15883
15884 2011-04-27  Jan Hubcika  <jh@suse.cz>
15885
15886         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15887         * ipa-inline-analysis.c: Include alloc-pool.h.
15888         (edge_predicate_pool): New.
15889         (trye_predicate_p): New function
15890         (false_predicate_p): New function.
15891         (add_clause): Sanity check that false clauses are "optimized";
15892         never add clauses to predicate that is already known to be false.
15893         (and_predicate): Use flase_predicate_p.
15894         (evaulate_predicate): Rename to ...
15895         (evaluate_predicate): ... this one; update all callers; assert
15896         that false is not listed among possible truths.
15897         (dump_predicate): Use true_predicate_p.
15898         (account_size_time): Use false_predicate_p.
15899         (evaulate_conditions_for_edge): Rename to ...
15900         (evaluate_conditions_for_edge) ... this one.
15901         (edge_set_predicate): New function.
15902         (inline_edge_duplication_hook): Duplicate edge predicates.
15903         (inline_edge_removal_hook): Free edge predicates.
15904         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15905         (dump_inline_summary): Update.
15906         (estimate_function_body_sizes): Set edge predicates.
15907         (estimate_calls_size_and_time): Handle predicates.
15908         (estimate_callee_size_and_time): Update.
15909         (remap_predicate): Add toplev_predicate; update comment.
15910         (remap_edge_predicates): New function.
15911         (inline_merge_summary): Compute toplev predicate; update.
15912         (read_predicate): New function.
15913         (read_inline_edge_summary): Use it.
15914         (inline_read_section): Likewise.
15915         (write_predicate): New function.
15916         (write_inline_edge_summary): Use it.
15917         (inline_write_summary): Likewise.
15918         (inline_free_summary): Free alloc pool and edge summary vec.
15919
15920 2011-04-27  Richard Guenther  <rguenther@suse.de>
15921
15922         * tree-ssa-structalias.c (changed_count): Remove.
15923         (changed): Use a bitmap.
15924         (unify_nodes): Adjust.
15925         (do_sd_constraint): Likewise.
15926         (do_ds_constraint): Likewise.
15927         (do_complex_constraint): Likewise.
15928         (solve_graph): Likewise.
15929
15930 2011-04-27  Jan Hubicka  <jh@suse.cz>
15931
15932         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15933
15934 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15935
15936         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15937         (avx_vperm2f128_*_operand): Ditto.
15938         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15939         Use avx_vpermilp_parallel in insn condition.
15940         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15941         Use avx_vperm2f128_parallel in insn condition.
15942
15943 2011-04-27  Richard Guenther  <rguenther@suse.de>
15944
15945         * Makefile.in (tree-ssa-structalias.o): Remove
15946         gt-tree-ssa-structalias.h dependency.
15947         (GTFILES): Remove tree-ssa-structalias.c.
15948         * tree.c (allocate_decl_uid): New function.
15949         (make_node_stat): Use it.
15950         (copy_node_stat): Likewise.
15951         * tree.h (allocate_decl_uid): Declare.
15952         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15953         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15954         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15955         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15956         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15957         (struct heapvar_map): Likewise.
15958         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15959         heapvar_insert): Likewise.
15960         (make_heapvar_for): Rename to ...
15961         (make_heapvar): ... this.  Simplify.
15962         (fake_var_decl_obstack): New global var.
15963         (build_fake_var_decl): New function.
15964         (make_constraint_from_heapvar): Adjust.
15965         (handle_lhs_call): Likewise.
15966         (create_function_info_for): Likewise.
15967         (intra_create_variable_infos): Likewise.
15968         (init_alias_vars): Allocate fake_var_decl_obstack.
15969         (init_alias_heapvars, delete_alias_heapvars): Remove.
15970         (compute_points_to_sets): Do not call init_alias_heapvars.
15971         (ipa_pta_execute): Likewise.
15972         (delete_points_to_sets): Free fake_var_decl_obstack.
15973
15974 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15975
15976         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15977         (si_from_UTItype, si_to_UTItype): New functions.
15978         (__udivmodti4): Use them to implement type-punning.
15979         * config/spu/multi3.c (union qword_TItype): New data type.
15980         (si_from_TItype, si_to_TItype): New functions.
15981         (__multi3): Use them to implement type-punning.
15982
15983 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15984
15985         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15986
15987 2011-04-27  Jan Hubicka  <jh@suse.cz>
15988
15989         * ipa-prop.c (function_insertion_hook_holder): New holder.
15990         (ipa_add_new_function): New function.
15991         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15992         Register/deregister holder.
15993
15994 2011-04-27  Richard Guenther  <rguenther@suse.de>
15995
15996         PR tree-optimization/48772
15997         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15998
15999 2011-04-27  Richard Guenther  <rguenther@suse.de>
16000
16001         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16002         TARGET_MEM_REF handling.
16003
16004 2011-04-27  Nick Clifton  <nickc@redhat.com>
16005
16006         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16007         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16008         (REG_CLASS_NAMES): Likewise.
16009         (REG_CLASS_CONTENTS): Likewise.
16010         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16011         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16012         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
16013         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
16014         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
16015         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16016         duplicate register classes.
16017         (frv_class_likely_spilled_p): Likewise.
16018         (frv_register_move_cost): Likewise.
16019
16020         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16021         end of the regno_reg_class array.
16022
16023 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
16024
16025         PR c/48742
16026         * c-typeck.c (build_binary_op): Don't wrap arguments if
16027         int_operands is true.
16028
16029 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
16030
16031         PR target/48767
16032         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16033         targetm.calls.must_pass_in_stack for void type.
16034
16035 2011-04-26  Jan Hubicka  <jh@suse.cz>
16036
16037         * cgraphbuild.c (build_cgraph_edges): Update call
16038         of cgraph_create_edge and cgraph_create_indirect_edge.
16039         * cgraph.c (cgraph_create_edge_including_clones,
16040         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16041         cgraph_update_edges_for_call_stmt_node): Do not take nest
16042         argument; do not initialize call_stmt_size/time.
16043         (dump_cgraph_node): Do not dump nest.
16044         (cgraph_clone_edge): Do not take loop_nest argument;
16045         do not propagate it; do not clone call_stmt_size/time.
16046         (cgraph_clone_node): Likewise.
16047         (cgraph_create_virtual_clone): Update.
16048         * cgraph.h (struct cgraph_edge): Remove
16049         call_stmt_size/call_stmt_time/loop_nest.
16050         (cgraph_create_edge, cgraph_create_indirect_edge,
16051         cgraph_create_edge_including_clones, cgraph_clone_node): Update
16052         prototype.
16053         * tree-emutls.c (gen_emutls_addr): Update.
16054         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16055         loop_nest; handle indirect calls, too.
16056         (clone_inlined_nodes): Do not care about updating inline summaries.
16057         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16058         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16059         stream call_stmt_size/call_stmt_time/loop_nest.
16060         * ipa-inline.c (edge_badness): Update.
16061         (ipa_inline): dump summaries after inlining.
16062         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16063         New.
16064         (inline_edge_summary): New function.
16065         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16066         (inline_edge_removal_hook): Handle edge summaries.
16067         (inline_edge_duplication_hook): New hook.
16068         (inline_summary_alloc): Alloc hooks.
16069         (initialize_growth_caches): Do not register removal hooks.
16070         (free_growth_caches); Do not free removal hook.
16071         (dump_inline_edge_summary): New function.
16072         (dump_inline_summary): Use it.
16073         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16074         (inline_update_callee_summaries): New function.
16075         (inline_merge_summary): Use it.
16076         (do_estimate_edge_time, do_estimate_edge_growth): Update.
16077         (read_inline_edge_summary): New function.
16078         (inline_read_section): Use it.
16079         (write_inline_edge_summary): New function.
16080         (inline_write_summary): Use it.
16081         (inline_free_summary): Free edge new holders.
16082         * tree-inline.c (copy_bb): Update.
16083
16084 2011-04-26  Jason Merrill  <jason@redhat.com>
16085
16086         * tree-eh.c (lower_try_finally_switch): Create the label along with
16087         the CASE_LABEL_EXPR.
16088
16089 2011-04-26  David S. Miller  <davem@davemloft.net>
16090             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16091
16092         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16093         * configure: Regenerate.
16094
16095 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16096
16097         PR target/48258
16098         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16099         reduction.
16100         (VEC_reduc): New code iterator and splitters for vector reduction.
16101         (VEC_reduc_name): Ditto.
16102         (VEC_reduc_rtx): Ditto.
16103         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16104         (reduc_<VEC_reduc_name>_v4sf): Ditto.
16105
16106         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16107         support for extracting SF on VSX.
16108
16109         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16110         generating xscvspdp.
16111         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16112         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16113         double add, minimum, maximum vector reduction.
16114         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16115         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16116         optimize double vector reduction.
16117         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16118
16119 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
16120
16121         * config/fr30/fr30.h (inhibit_libc): Don't define.
16122         * config/m32r/m32r-protos.h: Correct comment.
16123         * config/v850/v850.h (GHS_default_section_names,
16124         GHS_current_section_names): Use tree, not union tree_node *.
16125
16126 2011-04-26  Xinliang David Li  <davidxl@google.com>
16127
16128         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16129         * c-family/c-opts.c (c_common_handle_option): Set
16130         warn_maybe_uninitialized.
16131         * opts.c (common_handle_option): Ditto.
16132         * common.opt:  New option.
16133         * tree-ssa.c (warn_uninit): Add one more parameter.
16134         (warn_uninitialized_var): Pass warning code.
16135         * tree-flow.h: Interface change.
16136
16137 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16138
16139         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16140         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16141         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16142
16143 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16144
16145         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16146         * config/mips/mips.opt (mmips-tfile): Remove.
16147
16148         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16149         mips-tdump reference to ...
16150         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
16151         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16152         reference by Tru64 UNIX.
16153
16154 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
16155
16156         PR debug/48768
16157         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16158         is error_mark_node, set value to NULL.
16159
16160         PR tree-optimization/48734
16161         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16162         if return value from maybe_fold_*_comparsions isn't something
16163         the code is prepared to handle.
16164
16165 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
16166
16167         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16168         mode check.
16169         (ext_QIreg_nomode_operands): Remove.
16170         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16171         (*andsi_1): Ditto.
16172         (*andhi_1): Ditto.
16173
16174 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
16175
16176         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16177
16178 2011-04-26  Richard Guenther  <rguenther@suse.de>
16179
16180         * c-typeck.c (build_unary_op): Do not expand array-refs via
16181         pointer arithmetic.  Only adjust qualifiers for function types.
16182
16183 2011-04-26  Richard Guenther  <rguenther@suse.de>
16184
16185         PR middle-end/48694
16186         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16187         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16188         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
16189         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16190
16191 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
16192
16193         * doc/extend.texi: Document __underlying_type.
16194
16195 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
16196
16197         * config/rs6000/titan.md (automata_option "progress"): Remove.
16198
16199 2011-04-25  Jeff Law  <law@redhat.com>
16200
16201         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16202
16203 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
16204
16205         * system.h (ENUM_BITFIELD): Remove.
16206
16207 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
16208             Eric Botcazou  <ebotcazou@adacore.com>
16209
16210         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16211         for STORE_FLAG_VALUE==-1 case.
16212
16213 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
16214
16215         PR target/43804
16216         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16217         LEGITIMATE_PIC_OPERAND_P.
16218
16219 2011-04-24  Jan Hubicka  <jh@suse.cz>
16220
16221         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16222         WPA hack.
16223         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16224         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16225         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16226         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16227         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16228         Sanity check predicate length.
16229         (remap_predicate): Likewise; sanity check jump functions.
16230         (inline_read_section, inline_write_summary): Sanity check
16231         predicate length.
16232
16233 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
16234
16235         PR other/48748
16236         * doc/extend.texi (Type Traits): Document __is_standard_layout,
16237         __is_literal_type, and __is_trivial; update throughout about
16238         possibly cv-qualified void types.
16239
16240 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16241
16242         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16243         testsuite and make it version agnostic.
16244
16245 2011-04-22  Jan Hubicka  <jh@suse.cz>
16246
16247         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16248
16249 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
16250
16251         PR c/48685
16252         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16253         to VOID_TYPE even around MODIFY_EXPR.
16254
16255 2011-04-22  Mike Stump  <mikestump@comcast.net>
16256
16257         * gensupport.c (read_md_rtx): Fix typo in comment.
16258         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16259         comment.
16260
16261 2011-04-22  Jan Hubicka  <jh@suse.cz>
16262
16263         * gengtype.c (open_base_files): Add ipa-inline.h include.
16264         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16265         ipa-prop.c; update all uses.
16266         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16267         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16268         merge summary of inlined function into former caller.
16269         * ipa-inline.c (max_benefit): Remove.
16270         (edge_badness): Compensate for removal of benefits.
16271         (update_caller_keys): Use
16272         reset_node_growth_cache/reset_edge_growth_cache.
16273         (update_callee_keys): Likewise.
16274         (update_all_callee_keys): Likewise.
16275         (inline_small_functions): Do not collect max_benefit; do not reset
16276         estimated_growth; call free_growth_caches and initialize_growth_caches.
16277         * ipa-inline.h (struct condition, type clause_t, struct predicate,
16278         struct size_time_entry): New structures.
16279         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16280         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16281         and estimated_growth.
16282         (edge_growth_cache_entry): New structure.
16283         (node_growth_cache, edge_growth_cache): New global vars.
16284         (estimate_growth): Turn into inline.
16285         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16286         initialize_growth_caches, free_growth_caches): Declare.
16287         (estimate_edge_growth): Rewrite.
16288         (estimate_edge_time): Implement as inline cache lookup.
16289         (reset_node_growth_cache, reset_edge_growth_cache): New inline
16290         functions.
16291         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16292         (NUM_CONDITIONS): New constant.
16293         (predicate_conditions): New enum.
16294         (IS_NOT_CONSTANT): New constant.
16295         (edge_removal_hook_holder): New var.
16296         (node_growth_cache, edge_growth_cache): New global vars.
16297         (true_predicate, single_cond_predicate, false_predicate,
16298         not_inlined_predicate, add_condition, add_clause, and_predicates,
16299         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16300         dump_clause, dump_predicate, account_size_time,
16301         evaulate_conditions_for_edge): New functions.
16302         (inline_summary_alloc): Move to heap.
16303         (inline_node_removal_hook): Clear condition and entry vectors.
16304         (inline_edge_removal_hook): New function.
16305         (initialize_growth_caches, free_growth_caches): New function.
16306         (dump_inline_summary): Update.
16307         (edge_execution_predicate): New function.
16308         (will_be_nonconstant_predicate): New function.
16309         (estimate_function_body_sizes): Compute BB and constantness predicates.
16310         (compute_inline_parameters): Do not clear estimated_growth.
16311         (estimate_edge_size_and_time): New function.
16312         (estimate_calls_size_and_time): New function.
16313         (estimate_callee_size_and_time): New function.
16314         (remap_predicate): New function.
16315         (inline_merge_summary): New function.
16316         (do_estimate_edge_time): New function based on...
16317         (estimate_edge_time): ... this one.
16318         (do_estimate_edge_growth): New function.
16319         (do_estimate_growth): New function based on....
16320         (estimate_growth): ... this one.
16321         (inline_analyze_function): Analyze after deciding on jump functions.
16322         (inline_read_section): New function.
16323         (inline_read_summary): Use it.
16324         (inline_write_summary): Write all the new data.
16325         * ipa-prop.c (ipa_get_param_decl_index): Export.
16326         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16327         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16328         Declare.
16329         (ipa_get_lattice): Move here from ipa-cp.c
16330         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16331         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16332         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16333         cgraph_edge_inlinable_p): Remove.
16334         * cgraphunit.c: Include ipainline.h
16335         (cgraph_process_new_functions): Update call of
16336         compute_inline_parameters.
16337
16338 2011-04-22  Richard Guenther  <rguenther@suse.de>
16339
16340         * tree.c (build_int_cst): Properly create canonicalized integer
16341         constants.
16342         (build_int_cst_type): Remove scary comments.
16343
16344 2011-04-22  Xinliang David Li  <davidxl@google.com>
16345
16346         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16347         by default when -Wno-error is not specified.
16348         * opts-global.c (decode_options): Remove call to
16349         control_warning_options.
16350
16351 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16352
16353         PR tree-optimization/48717
16354         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16355         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16356
16357 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16358
16359         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16360         definition where used.
16361
16362 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16363
16364         PR c/48716
16365         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16366         TREE_STATIC variables declared inside of some OpenMP construct.
16367
16368 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16369
16370         PR middle-end/48585
16371         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16372
16373 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16374
16375         PR c/36750
16376         * c-typeck.c (pop_init_level): Do not warn about initializing
16377         with ` = {0}'.
16378
16379 2011-04-22  Alan Modra  <amodra@gmail.com>
16380
16381         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16382         when returning call_cookie.
16383         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16384         pointers, to functions with no more vector args than the current
16385         function, and some non-local calls for ABI_V4.
16386         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16387         sibcall_nonlocal_aix64): Combine to ..
16388         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16389         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16390         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16391         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16392         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16393         operand.
16394         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16395         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16396         sibcall_value_symbolic_64): Delete.
16397
16398 2011-04-21  Xinliang David Li  <davidxl@google.com>
16399
16400         * cgraph.h: Remove pid.
16401         * cgraph.c: Remove pid.
16402         * value-prof.c (init_node_map): New function.
16403         (del_node_map): New function.
16404         (find_func_by_funcdef_no): New function.
16405         (gimple_ic_transform): Call new function.
16406         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16407         * function.c (get_last_funcdef_no): New function.
16408         * function.h (get_last_funcdef_no): New function.
16409         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16410         to libgcov function.
16411         (tree-profiling): Call node map init and delete function.
16412
16413 2011-04-21  Ian Lance Taylor  <iant@google.com>
16414
16415         * godump.c (go_format_type): Use exported Go name for anonymous
16416         field name.
16417
16418 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16419
16420         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16421         Call builtin_function_type_list instead of builtin_function_type.
16422         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16423
16424 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16425
16426         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16427         build_function_type_list instead of build_function_type.
16428         Delete variable `endlink'.
16429
16430 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16431
16432         * config/s390/s390.c (s390_init_builtins): Call
16433         build_function_type_list instead of build_function_type.
16434
16435 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16436
16437         * config/ia64/ia64.c (ia64_init_builtins): Call
16438         build_function_type_list instead of builtin_function_type.
16439
16440 2011-04-21  Easwaran Raman  <eraman@google.com>
16441
16442         * cfgexpand.c (stack_var): Remove OFFSET...
16443         (add_stack_var): ...and its reference here...
16444         (expand_stack_vars): ...and here.
16445         (stack_var_cmp): Sort by descending order of size.
16446         (partition_stack_vars): Change heuristic.
16447         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16448         (dump_stack_var_partition): Add newline after each partition.
16449
16450 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16451             Jeff Law  <law@redhat.com>
16452
16453         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16454         * gengtype.c (matching_file_name_substitute): Likewise.
16455
16456 2011-04-21  Richard Guenther  <rguenther@suse.de>
16457
16458         PR lto/48703
16459         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16460
16461 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16462
16463         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16464
16465 2011-04-21  Richard Guenther  <rguenther@suse.de>
16466
16467         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16468         file name.
16469
16470 2011-04-21  Richard Guenther  <rguenther@suse.de>
16471
16472         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16473         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16474         Use DECL_P, not SSA_VAR_P.
16475         (ptr_derefs_may_alias_p): Likewise.
16476         (ptr_deref_may_alias_ref_p_1): Likewise.
16477         (decl_refs_may_alias_p): Likewise.
16478         (refs_may_alias_p_1): Likewise.
16479         (ref_maybe_used_by_call_p_1): Likewise.
16480         (call_may_clobber_ref_p_1): Likewise.
16481         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16482         are either MEM_REF or TARGET_MEM_REF.
16483         (indirect_refs_may_alias_p): Likewise.
16484         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16485         for MEM_EXPR of indirect calls.
16486
16487 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16488
16489         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16490         (dst_file_info_struct): Remove flen field.
16491         (lookup_filename): Remove code that set flen field.
16492
16493 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16494
16495         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16496
16497 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16498
16499         PR target/48708
16500         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16501         vec_extract and vec_concat for non-SSE4_1 targets.
16502
16503 2011-04-21  Richard Guenther  <rguenther@suse.de>
16504
16505         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16506         return statements.
16507
16508 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16509
16510         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16511         undefine.
16512         (FILE): Don't undefine.
16513
16514 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16515
16516         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16517         struct rtx_def *.
16518         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16519         struct rtx_def *.
16520         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16521         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16522         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16523         rtx_def *.
16524         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16525         definitions where used.
16526         * config/microblaze/microblaze.h (struct microblaze_args): Use
16527         rtx, not struct rtx_def *.
16528         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16529         rtx_def *.
16530         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16531         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16532         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16533         not struct rtx_def *.
16534         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16535         struct rtx_def *.
16536         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16537         rtx_def *.
16538         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16539
16540 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16541
16542         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16543         operand_equal_p to compare DR_BASE_ADDRESSes.
16544         (vect_check_interleaving): Likewise.
16545
16546 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16547
16548         PR target/46329
16549         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16550         for all Neon struct constants.
16551
16552 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16553
16554         * target.def (legitimate_constant_p): New hook.
16555         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16556         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16557         * doc/tm.texi: Regenerate.
16558         * hooks.h (hook_bool_mode_rtx_true): Declare.
16559         * hooks.c (hook_bool_mode_rtx_true): Define.
16560         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16561         * calls.c (precompute_register_parameters): Replace uses of
16562         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16563         (emit_library_call_value_1): Likewise.
16564         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16565         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16566         * ira-costs.c (scan_one_insn): Likewise.
16567         * recog.c (general_operand, immediate_operand): Likewise.
16568         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16569         * reload1.c (init_eliminable_invariants): Likewise.
16570
16571         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16572         mode argument.
16573         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16574         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16575         argument.
16576         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16577         * config/alpha/predicates.md (input_operand): Update call to
16578         alpha_legitimate_constant_p.
16579
16580         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16581         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16582         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16583         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16584         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16585         (arm_legitimate_constant_p): New functions.
16586         (arm_cannot_force_const_mem): Make static.
16587
16588         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16589
16590         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16591         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16592         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16593         instead of bfin_legitimate_constant_p.
16594         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16595         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16596
16597         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16598
16599         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16600
16601         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16602         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16603         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16604         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16605
16606         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16607         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16608         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16609
16610         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16611         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16612         * config/i386/i386.c (legitimate_constant_p): Rename to...
16613         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16614         argument.
16615         (ix86_cannot_force_const_mem): Update accordingly.
16616         (ix86_legitimate_address_p): Likewise.
16617         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16618         * config/i386/i386.md: Update commentary.
16619
16620         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16621         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16622         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16623         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16624
16625         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16626
16627         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16628         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16629         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16630         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
16631
16632         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16633         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16634         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16635
16636         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16637         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16638         (m32r_legitimate_constant_p): New function.
16639
16640         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16641         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16642         LEGITIMATE_CONSTANT_P.
16643         (LEGITIMATE_CONSTANT_P): Delete.
16644         * config/m68k/m68k.c (m68k_expand_prologue): Call
16645         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16646         (m68k_legitimate_constant_p): New function.
16647         * config/m68k/m68k.md: Update comments.
16648
16649         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16650         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16651         (mcore_legitimate_constant_p): New function.
16652
16653         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16654         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16655         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16656         Add a mode argument.
16657         (mep_legitimate_address): Update accordingly.
16658         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16659
16660         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16661         Delete.
16662         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16663         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16664         static.  Check OP's mode for VOIDmode.
16665         (microblaze_legitimate_constant_p): New function.
16666         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16667
16668         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16669         * config/mips/mips.c (mips_legitimate_constant_p): New function.
16670         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16671         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16672         * config/mips/predicates.md: Update comments.
16673
16674         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16675         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16676         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16677         (mmix_legitimate_constant_p): Make static, return a bool, and take
16678         a mode argument.
16679         (mmix_print_operand_address): Update accordingly.
16680
16681         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16682         Delete.
16683         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16684         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16685         static.  Add a mode argument.
16686         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16687
16688         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16689
16690         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16691         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16692         (pa_legitimate_constant_p): New function.
16693
16694         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16695
16696         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16697         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16698         (pdp11_legitimate_constant_p): New function.
16699
16700         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16701         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16702         (rs6000_legitimate_constant_p): New function.
16703
16704         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16705         (rx_legitimate_constant_p): ...this.
16706         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16707         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16708         (rx_legitimate_constant_p): ...this.
16709         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16710         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16711
16712         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16713         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16714         * config/s390/s390.c (legitimate_constant_p): Rename to...
16715         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
16716         and add a mode argument.
16717         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16718
16719         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16720
16721         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16722         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16723         (sh_legitimate_constant_p): New function.
16724
16725         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16726         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16727         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16728         (legitimate_constant_p): Rename to...
16729         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
16730         argument.
16731         (constant_address_p): Update accordingly.
16732
16733         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16734         argument and return a bool.
16735         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16736         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16737         (spu_legitimate_constant_p): Add a mode argument and return a bool.
16738         (spu_rtx_costs): Update accordingly.
16739         * config/spu/predicates.md (vec_imm_operand): Likewise.
16740
16741         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16742
16743         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16744         * config/v850/v850.c (v850_legitimate_constant_p): New function.
16745         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16746
16747         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16748         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16749         * config/vax/vax.c (legitimate_constant_p): Likewise.
16750
16751         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16752         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16753         (xtensa_legitimate_constant_p): New function.
16754
16755 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16756
16757         * target.def (cannot_force_const_mem): Add a mode argument.
16758         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16759         * doc/tm.texi: Regenerate.
16760         * hooks.h (hook_bool_mode_rtx_false): Declare.
16761         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16762         (hook_bool_mode_const_rtx_true): Likewise.
16763         (hook_bool_mode_rtx_false): New function.
16764         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16765         to be non-VOID.  Update call to cannot_force_const_mem.
16766         (find_reloads): Update accordingly.
16767         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16768         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16769         argument.
16770         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16771         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16772         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16773         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16774         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16775         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16776         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16777         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16778         (m68k_cannot_force_const_mem): ...this new function.
16779         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16780         argument.
16781         (mips_const_insns, mips_legitimize_const_move): Update calls.
16782         (mips_secondary_reload_class): Likewise.
16783         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16784         (pa_cannot_force_const_mem): ...this new function.
16785         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16786         (rs6000_cannot_force_const_mem): ...this new function.
16787         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16788         argument.
16789         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16790         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16791         to...
16792         (xtensa_cannot_force_const_mem): ...this new function.
16793
16794 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16795
16796         * config/mips/mips.c (mips16_build_function_stub): Call
16797         build_function_type_list instead of build_function_type.
16798         (mips16_build_call_stub): Likewise.
16799
16800 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16801
16802         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16803         instead of build_function_type.
16804
16805 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16806
16807         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16808         instead of build_function_type.
16809
16810 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16811
16812         PR target/48678
16813         * config/i386/i386.md (insv): Change operand 0 constraint to
16814         "register_operand".  Change operand 1 and 2 constraint to
16815         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16816         * config/i386/sse.md (sse4_1_pinsrb): Export.
16817         (sse2_pinsrw): Ditto.
16818         (sse4_1_pinsrd): Ditto.
16819         (sse4_1_pinsrq): Ditto.
16820         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16821         * config/i386/i386.c (ix86_expand_pinsr): New.
16822
16823 2011-04-20  Easwaran Raman  <eraman@google.com>
16824
16825         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16826         containing union type only with -fstrict-aliasing.
16827
16828 2011-04-20  Jim Meyering  <meyering@redhat.com>
16829
16830         Remove useless if-before-free tests.
16831         * calls.c (expand_call, save_area): Likewise.
16832         * cfgcleanup.c (try_forward_edges): Likewise.
16833         * collect2.c (collect_execute): Likewise.
16834         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16835         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16836         * coverage.c (coverage_checksum_string): Likewise.
16837         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16838         * cselib.c (cselib_init): Likewise.
16839         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16840         (df_set_clean_cfg): Likewise.
16841         * function.c (free_after_compilation): Likewise.
16842         * gcc.c (do_spec_1, main): Likewise.
16843         * gcov.c (create_file_names): Likewise.
16844         * gensupport.c (identify_predicable_attribute): Likewise.
16845         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16846         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16847         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16848         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16849         * ipa-pure-const.c (local_pure_const): Likewise.
16850         * ipa-reference.c (propagate): Likewise.
16851         * ira-costs.c (free_ira_costs): Likewise.
16852         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16853         * matrix-reorg.c (mat_free): Likewise.
16854         * prefix.c (get_key_value): Likewise.
16855         * profile.c (compute_value_histograms): Likewise.
16856         * reload1.c (free_reg_equiv): Likewise.
16857         * sched-deps.c (free_deps): Likewise.
16858         * sel-sched-ir.c (fence_clear): Likewise.
16859         * sese.c (set_rename, if_region_set_false_region): Likewise.
16860         * tree-data-ref.c (free_rdg): Likewise.
16861         * tree-eh.c (lower_try_finally): Likewise.
16862         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16863         * tree-ssa-live.c (delete_var_map): Likewise.
16864         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16865         * tree-ssa-pre.c (phi_trans_add): Likewise.
16866
16867 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16868
16869         PR tree-optimization/48611
16870         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16871         beyond ERT_MUST_NOT_THROW region.
16872
16873 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16874
16875         * config/mips/mips.opt (mfix-24k): New.
16876         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16877         * config/mips/mips.md (length): Increase by 4 for stores if
16878         fixing 24K errata.
16879         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16880         all noreorder if fixing 24K errata.
16881         * doc/invoke.texi: Document mfix-24k.
16882
16883 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16884
16885         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16886         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16887
16888 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16889
16890         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16891         (const_ok_for_op): ... to here.
16892
16893 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16894
16895         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16896         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16897
16898 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16899
16900         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16901
16902 2011-04-20  Richard Guenther  <rguenther@suse.de>
16903
16904         PR tree-optimization/47892
16905         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16906         are if-convertible.
16907
16908 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16909
16910         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16911
16912 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16913
16914         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16915
16916 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16917
16918         PR target/18145
16919
16920         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16921         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16922         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16923         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16924         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16925
16926         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16927         New prototype.
16928
16929         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16930         (avr_asm_named_section, avr_asm_output_aligned_common,
16931         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16932         New functions to update...
16933         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16934         (avr_asm_init_sections): Overwrite section callbacks for
16935         data_section, bss_section.
16936         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16937         from here to...
16938         (avr_file_end): ...here.
16939
16940 2011-04-20  Richard Guenther  <rguenther@suse.de>
16941
16942         PR middle-end/48695
16943         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16944         objects and types here.  Adjust for their offset before comparing.
16945
16946 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16947
16948         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16949         statement per copy.
16950
16951 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16952
16953         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16954         (GIMPLE_H): Include $(INTERNAL_FN_H).
16955         (OBJS-common): Add internal-fn.o.
16956         (internal-fn.o): New rule.
16957         * internal-fn.def: New file.
16958         * internal-fn.h: Likewise.
16959         * internal-fn.c: Likewise.
16960         * gimple.h: Include internal-fn.h.
16961         (GF_CALL_INTERNAL): New gf_mask.
16962         (gimple_statement_call): Put fntype into a union with a new
16963         internal_fn field.
16964         (gimple_build_call_internal): Declare.
16965         (gimple_build_call_internal_vec): Likewise.
16966         (gimple_call_same_target_p): Likewise.
16967         (gimple_call_internal_p): New function.
16968         (gimple_call_internal_fn): Likewise.
16969         (gimple_call_fntype): Return null for internal calls.
16970         (gimple_call_set_fntype): Assert that the function is not internal.
16971         (gimple_call_set_fn): Likewise.
16972         (gimple_call_set_fndecl): Likewise.
16973         (gimple_call_set_internal_fn): New function.
16974         (gimple_call_addr_fndecl): Handle null functions.
16975         (gimple_call_return_type): Likewise null types.
16976         * gimple.c (gimple_build_call_internal_1): New function.
16977         (gimple_build_call_internal): Likewise.
16978         (gimple_build_call_internal_vec): Likewise.
16979         (gimple_call_same_target_p): Likewise.
16980         (gimple_call_flags): Handle calls to internal functions.
16981         (gimple_call_fnspec): New function.
16982         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16983         (gimple_has_side_effects): Handle null functions.
16984         (gimple_rhs_has_side_effects): Likewise.
16985         (gimple_call_copy_skip_args): Handle calls to internal functions.
16986         * cfgexpand.c (expand_call_stmt): Likewise.
16987         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16988         * gimple-fold.c (gimple_fold_call): Handle null functions.
16989         (gimple_fold_stmt_to_constant_1): Don't fold
16990         calls to internal functions.
16991         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16992         functions.
16993         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16994         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16995         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16996         (do_warn_unused_result): Likewise.
16997         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16998         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16999         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17000         the target of a call.
17001         (initialize_hash_element): Update accordingly.
17002         (hashable_expr_equal_p): Use gimple_call_same_target_p.
17003         (iterative_hash_hashable_expr): Handle calls to internal functions.
17004         (print_expr_hash_elt): Likewise.
17005         * tree-ssa-pre.c (can_value_number_call): Likewise.
17006         (eliminate): Handle null functions.
17007         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17008         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17009         (find_func_aliases): Likewise.
17010         * value-prof.c (gimple_ic_transform): Likewise.
17011         (gimple_indirect_call_to_profile): Likewise.
17012         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17013         * lto-streamer-out.c (output_gimple_stmt): Likewise.
17014
17015 2011-04-19  Jan Hubicka  <jh@suse.cz>
17016
17017         * ipa-inline-transform.c (save_inline_function_body): Add comments.
17018         * ipa-inline.c (inline_small_functions): Compute summaries first,
17019         populate heap later.
17020
17021 2011-04-19  Jan Hubicka  <jh@suse.cz>
17022
17023         * cgraph.h (save_inline_function_body): Remove.
17024         * ipa-inline-transform.c: New file, broke out of...
17025         * ipa-inline.c: ... this one; Update toplevel comment.
17026         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17027         make global.
17028         (update_noncloned_frequencies): Move to ipa-inline-transform.c
17029         (cgraph_mark_inline_edge): Rename to inline_call; move to
17030         ipa-inline-transform.c.
17031         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17032         move to ipa-inline-transform.c
17033         (recursive_inlining, inline_small_functions, flatten_function,
17034         ipa_inline, inline_always_inline_functions,
17035         early_inline_small_functions): Update.
17036         (inline_transform): Move to ipa-inline-transform.c.
17037         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17038         Declare.
17039         * Makefile.in (ipa-inline-transform.o): New file.
17040         * cgraphunit.c (save_inline_function_body): Move to
17041         ipa-inline-transform.c
17042
17043 2011-04-19  DJ Delorie  <dj@redhat.com>
17044
17045         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17046         registers if we already know there aren't any.
17047         (m32c_emit_epilogue): Don't emit a barrier here.
17048         (m32c_emit_eh_epilogue): Likewise.
17049         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17050         operands at expand time.
17051         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17052         int" wchar type.
17053         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17054         duplicates.  Provide aliases instead.
17055         * config/m32c/prologue.md (eh_return): Emit a barrier here.
17056         (eh_epilogue): Add a "(return)" here as a hint to other parts of
17057         the compiler.
17058
17059 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
17060
17061         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17062         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17063         (general_or_i64_p, sparc_register_move_cost): New function.
17064
17065 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17066
17067         * doc/install.texi (Configuration, --enable-threads): Remove mach.
17068         Add lynx, mipssde.  Sort table.
17069
17070 2011-04-19  Xinliang David Li  <davidxl@google.com>
17071
17072         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17073         not negative.
17074
17075 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
17076
17077         PR target/48678
17078         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17079         is a SUBREG with non-MODE_INT mode inside of it.
17080
17081 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17082
17083         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17084         also according to actual contants.
17085         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17086         (gimple_fold_call): Use it.
17087         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17088
17089 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17090
17091         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17092         non-pointer assignments.
17093
17094 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17095
17096         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17097         account anc_offset and otr_type from the indirect edge info.
17098         * ipa-prop.c (get_ancestor_addr_info): New function.
17099         (compute_complex_ancestor_jump_func): Assignment analysis moved to
17100         get_ancestor_addr_info, call it.
17101         (ipa_note_param_call): Do not initialize information about polymorphic
17102         calls, return the indirect call graph edge.  Remove the last
17103         parameter, adjust all callers.
17104         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17105         parameters.  Initialize polymorphic information in the indirect edge.
17106
17107 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17108
17109         PR lto/48148
17110         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17111         the types if they have different enumeration identifiers.
17112
17113 2011-04-19  Jan Hubicka  <jh@suse.cz>
17114
17115         * cgraph.h (cgraph_optimize_for_size_p): Declare.
17116         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17117         * predict.c (cgraph_optimize_for_size_p): Break out from ...
17118         (optimize_function_for_size_p) ... here.
17119
17120 2011-04-19  Richard Guenther  <rguenther@suse.de>
17121
17122         PR lto/48207
17123         * tree.c (free_lang_data): Do not reset the decl-assembler-name
17124         langhook.
17125
17126 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17127
17128         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17129         if DECL_NO_INLINE_WARNING_P is set on the function.
17130
17131 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
17132
17133         PR fortran/47976
17134         * reload1.c (inc_for_reload): Return void. All callers changed.
17135         (emit_input_reload_insns): Don't try to delete previous output
17136         reloads to a register, or record spill_reg_store for autoincs.
17137
17138 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
17139
17140         * gengtype.h: Updated copyright year.
17141         (struct input_file_st): Add inpisplugin field.
17142         (type_fileloc): New function.
17143         * gengtype.c
17144         (write_typed_struct_alloc_def): Add gcc_assert.
17145         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17146         (write_typed_alloc_defns): Don't output for plugin files.
17147         (input_file_by_name): Clear inpisplugin field.
17148         (main): Set inpisplugin field for plugin files.
17149
17150 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
17151
17152         * gengtype-state.c (string_eq): New.
17153         (read_state): Use string_eq instead of strcmp when creating the
17154         state_ident_tab.
17155
17156 2011-04-19  Wei Guozhi  <carrot@google.com>
17157
17158         PR target/47855
17159         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17160         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17161         linkage.
17162         * config/arm/constraints.md (Uu): New constraint.
17163         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17164
17165 2011-04-19  Tristan Gingold  <gingold@adacore.com>
17166
17167         * config.gcc (-*-*-*vms): Added.
17168         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17169         definitions moved.
17170         * config/vms/vms-ld.c: New file.
17171         * config/vms/vms-ar.c: New file.
17172         * config/vms/t-vmsnative: New file.
17173
17174 2011-04-18  Xinliang David Li  <davidxl@google.com>
17175
17176         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17177
17178 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17179
17180         PR middle-end/48661
17181         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17182         if TREE_TYPE (v) is non-NULL.
17183
17184         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17185         gimple_get_virt_mehtod_for_binfo.
17186         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17187         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17188         callers.
17189         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17190
17191 2011-04-18  Michael Matz  <matz@suse.de>
17192             Steve Ellcey  <sje@cup.hp.com>
17193
17194         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17195         use its mode as source mode if it isn't VOIDmode.
17196
17197 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
17198
17199         * doc/passes.texi: Fill crossref nodes.
17200
17201 2011-04-18  Jim Meyering  <meyering@redhat.com>
17202
17203         Fix doubled-word typos in comments and strings
17204         * config/alpha/vms-unwind.h: s/for for/for/
17205         * config/arm/unwind-arm.h: Likewise.
17206         * config/microblaze/microblaze.c: Likewise.
17207         * config/sh/constraints.md: s/in in/in/
17208         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17209
17210 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
17211
17212         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17213         (AVX_FLOAT_MODE_P): Ditto.
17214         (AVX128_VEC_FLOAT_MODE_P): Ditto.
17215         (AVX256_VEC_FLOAT_MODE_P): Ditto.
17216         (AVX_VEC_FLOAT_MODE_P): Ditto.
17217         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17218         (UNSPEC_MASKSTORE): Ditto.
17219         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17220         Merge from <sse>_movmsk<ssemodesuffix> and
17221         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
17222         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
17223         iterator.
17224         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17225         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17226         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17227
17228 2011-04-18  Jan Hubicka  <jh@suse.cz>
17229
17230         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17231
17232         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17233         (want_inline_function_called_once_p): Break out the logic from
17234         ipa_inline.
17235         (edge_badness): Ensure that profile is not misupdated.
17236         (lookup_recursive_calls): Prioritize by call frequencies.
17237         (inline_small_functions): Move program size estimates here;
17238         actually process whole queue even when unit growth has been
17239         met. (to properly compute inline_failed reasons and for the
17240         case unit size decrease.) Revisit comments on recursive inlining.
17241         (ipa_inline): Remove unit summary code; first inline hot calls
17242         of functions called once, cold calls next.
17243         (order, nnodes): Remove unused variables.
17244         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17245         (GTFILES): Remove ipa-inline.c
17246         * sel-sched.c (fill_insns): Silence uninitialized var warning.
17247
17248 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17249
17250         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17251
17252 2011-04-18  Jie Zhang  <jie@codesourcery.com>
17253             Richard Earnshaw  <rearnsha@arm.com>
17254
17255         * arm.c (neon_builtin_type_bits): Remove.
17256         (typedef enum neon_builtin_mode): New.
17257         (T_MAX): Don't define.
17258         (typedef enum neon_builtin_datum): Remove bits, codes[],
17259         num_vars and base_fcode.  Add mode, code and fcode.
17260         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17261         VAR10): Change accordingly.
17262         (neon_builtin_data[]): Change accordingly
17263         (arm_init_neon_builtins): Change accordingly.
17264         (neon_builtin_compare): Remove.
17265         (locate_neon_builtin_icode): Remove.
17266         (arm_expand_neon_builtin): Change accordingly.
17267
17268         * arm.h (enum arm_builtins): Move to ...
17269         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17270
17271         * arm.c (arm_builtin_decl): Declare.
17272         (TARGET_BUILTIN_DECL): Define.
17273         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17274         (arm_builtin_decls[]): New.
17275         (arm_init_neon_builtins): Store builtin declarations in
17276         arm_builtin_decls[].
17277         (arm_init_tls_builtins): Likewise.
17278         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
17279         (arm_builtin_decl): New.
17280
17281 2011-04-18  Richard Guenther  <rguenther@suse.de>
17282
17283         * tree.c (upper_bound_in_type): Build properly canonicalized
17284         INTEGER_CSTs.
17285         (lower_bound_in_type): Likewise.
17286
17287 2011-04-18  Richard Guenther  <rguenther@suse.de>
17288
17289         * gimple.h (gimple_call_addr_fndecl): New function.
17290         (gimple_call_fndecl): Use it.
17291         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17292         for direct calls.
17293         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17294         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17295
17296 2011-04-18  Richard Guenther  <rguenther@suse.de>
17297
17298         PR middle-end/48650
17299         * tree.c (build_string): STRING_CST is now derived from tree_typed.
17300
17301 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17302
17303         PR lto/48492
17304         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17305         DECL_IN_CONSTANT_POOL without RTL.
17306
17307 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
17308             Ira Rosen  <ira.rosen@linaro.org>
17309
17310         PR target/48252
17311         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17312         to match neon_vzip/vuzp/vtrn_internal.
17313         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17314         outputs explicitly dependent on both inputs.
17315         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17316
17317 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17318
17319         PR tree-optimization/48616
17320         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17321         whether the shift is by scalar or vector based on whether all SLP
17322         scalar stmts have the same rhs.
17323
17324 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
17325
17326         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17327         memory operands.
17328
17329 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17330
17331         PR target/43700
17332         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17333         registers.
17334
17335 2011-04-17  Jan Hubicka  <jh@suse.cz>
17336
17337         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17338         * cgrpahunit.c (cgraph_finalize_function): Do not set
17339         finalized_by_frontend.
17340         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17341         finalized_by_frontend.
17342
17343 2011-04-17  Jan Hubicka  <jh@suse.cz>
17344
17345         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17346         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17347         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17348         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17349         method.
17350         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17351         gimple-fold.c
17352         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17353
17354 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17355
17356         PR lto/48538
17357         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17358         is non-null before accessing it.
17359         (input_cgraph): Remove trailing spaces.
17360
17361 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17362
17363         * params.def (sms-min-sc): New param flag.
17364         * modulo-sched.c (sms_schedule): Use it.
17365         * doc/invoke.texi (sms-min-sc): Document it.
17366
17367 2011-04-17  Jan Hubicka  <jh@suse.cz>
17368
17369         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17370         present, also set gimple_call_set_cannot_inline.
17371         * ipa-inline.c: Update toplevel comment.
17372         (MAX_TIME): Remove.
17373         (cgraph_clone_inlined_nodes): Fix linebreaks.
17374         (cgraph_check_inline_limits): Restructure to ...
17375         (caller_growth_limits): ... this one; be more tolerant
17376         on growth in nested inline chains; add explanatory comment;
17377         fix stack accounting thinko introduced by previous patch.
17378         (cgraph_default_inline_p): Remove.
17379         (report_inline_failed_reason): New function.
17380         (can_inline_edge_p): New function.
17381         (can_early_inline_edge_p): New function.
17382         (leaf_node_p): Move upwards in file.
17383         (want_early_inline_function_p): New function.
17384         (want_inline_small_function_p): New function.
17385         (want_inline_self_recursive_call_p): New function.
17386         (cgraph_edge_badness): Rename to ...
17387         (edge_badness) ... this one; fix linebreaks.
17388         (update_edge_key): Update call of edge_baddness; add
17389         detailed dump about queue updates.
17390         (update_caller_keys): Use can_inline_edge_p and
17391         want_inline_small_function_p.
17392         (cgraph_decide_recursive_inlining): Rename to...
17393         (recursive_inlining): Use can_inline_edge_p and
17394         want_inline_self_recursive_call_p; simplify and remove no longer
17395         valid FIXME.
17396         (cgraph_set_inline_failed): Remove.
17397         (add_new_edges_to_heap): Use can_inline_edge_p and
17398         want_inline_small_function_p.
17399         (cgraph_decide_inlining_of_small_functions): Rename to ...
17400         (inline_small_functions): ... this one; cleanup; use
17401         can/want predicates; cleanup debug ouput; work edges till fibheap
17402         is exhausted and do not stop once unit growth is reached; remove
17403         later loop processing remaining edges.
17404         (cgraph_flatten): Rename to ...
17405         (flatten_function): ... this one; use can_inline_edge_p
17406         and can_early_inline_edge_p predicates.
17407         (cgraph_decide_inlining): Rename to ...
17408         (ipa_inline): ... this one; remove unreachable nodes before
17409         inlining functions called once; simplify the pass.
17410         (cgraph_perform_always_inlining): Rename to ...
17411         (inline_always_inline_functions): ... this one; use
17412         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17413         (cgraph_decide_inlining_incrementally): Rename to ...
17414         (early_inline_small_functions): ... this one; simplify
17415         using new predicates; cleanup; make dumps prettier.
17416         (cgraph_early_inlining): Rename to ...
17417         (early_inliner): newer inline regular functions into always-inlines;
17418         fix updating of call stmt summaries.
17419         (pass_early_inline): Update for new names.
17420         (inline_transform): Fix formating.
17421         (gate_cgraph_decide_inlining): Rename to ...
17422         (pass_ipa_inline): ... this one.
17423         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17424         * ipa-inline-analysis.c (dump_inline_summary): Update.
17425         (compute_inline_parameters): Do not compute disregard_inline_limits;
17426         look for mismatching arguments.
17427         (estimate_growth): Fix handlig of non-trivial self recursion.
17428         (inline_read_summary): Do not read info->disregard_inline_limits.
17429         (inline_write_summary): Do not write info->disregard_inline_limits.
17430         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17431         and move all checks into can_inline_edge_p predicate; re-enable code
17432         comparing optimization levels.
17433         (expand_call_inline): Do not test inline_forbidden_into_p.
17434         * Makefile.in (ipa-inline.o): Update arguments.
17435
17436 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17437
17438         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17439
17440 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17441
17442         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17443
17444 2011-04-17  Michael Matz  <matz@suse.de>
17445
17446         PR tree-optimization/48622
17447         PR lto/48645
17448         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17449         in same order as they're written.
17450
17451 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17452
17453         * config/pa/predicates.md: Reorganize and simplify predicates.
17454         Eliminate duplicate code checks.
17455         (arith_operand): Rename to arith14_operand
17456         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17457         * config/pa/pa.md: Use renamed operands.
17458         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17459         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17460         arith11_operand, adddi3_operand, indexed_memory_operand,
17461         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17462         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17463         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17464         move_dest_operand, move_src_operand, prefetch_cc_operand,
17465         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17466         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17467         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17468         div_operand, int5_operand, movb_comparison_operator,
17469         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17470         arith_double_operand, ireg_operand, lhs_lshift_operand,
17471         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17472         integer_store_memory_operand): Likewise.
17473         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17474         (integer_store_memory_operand, read_only_operand,
17475         function_label_operand, borx_reg_operand,
17476         non_hard_reg_operand): Likewise.
17477         (eq_neq_comparison_operator): Delete unused operator.
17478         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17479         function_label_operand.
17480         (emit_move_sequence): Likewise.
17481
17482 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17483
17484         * config/i386/sse.md (sseunpackmode): New mode attribute.
17485         (ssepackmode): Ditto.
17486         (vec_pack_trunc_<mode>): Macroize expander from
17487         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17488         (vec_unpacks_lo_<mode>): Macroize expander from
17489         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17490         (vec_unpacks_hi_<mode>): Macroize expander from
17491         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17492         (vec_unpacku_lo_<mode>): Macroize expander from
17493         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17494         (vec_unpacku_hi_<mode>): Macroize expander from
17495         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17496         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17497         ix86_expand_sse4_unpack.
17498         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17499
17500 2011-04-16  Jan Hubicka  <jh@suse.cz>
17501
17502         * cgraphbuild.c: Include ipa-inline.h.
17503         (reset_inline_failed): Use initialize_inline_failed.
17504         * cgraph.c: Include ipa-inline.h.
17505         (cgraph_create_node_1): Do not initialize estimated_growth.
17506         (initialize_inline_failed): More to ipa-inline-analysis.c
17507         (dump_cgraph_node): Do not dump inline flags.
17508         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17509         and disregard_inline_limits flags.
17510         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17511         time, size, estimated_growth.
17512         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17513         Update.
17514         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17515         DECL_DISREGARD_INLINE_LIMITS.
17516         (cgraph_analyze_function): Do not initialize
17517         node->local.disregard_inline_limits.
17518         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17519         inlinable, versionable and disregard_inline_limits.
17520         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17521         cgraph_check_inline_limits, cgraph_default_inline_p,
17522         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17523         add_new_edges_to_heap): Update.
17524         (cgraph_decide_inlining_of_small_function): Update; set
17525         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17526         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17527         cgraph_decide_inlining_incrementally): Update.
17528         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17529         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17530         time, size and estimated_growth parameters.
17531         (estimate_edge_growth): Update.
17532         (initialize_inline_failed): Declare.
17533         * ipa-split.c: Include ipa-inline.h
17534         (execute_split_functions): Update.
17535         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17536         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17537         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17538         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17539         estimated_growth to INT_MIN.
17540         (inline_node_duplication_hook): Likewise.
17541         (dump_inline_summary): Dump new fields.
17542         (compute_inline_parameters): Update.
17543         (estimate_edge_time, estimate_time_after_inlining,
17544         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17545         inline_write_summary):
17546         (initialize_inline_failed): Move here from cgraph.c.
17547         * tree-sra.c: Include ipa-inline.h.
17548         (ipa_sra_preliminary_function_checks): Update.
17549         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17550         ipa-inline.h.
17551
17552 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17553
17554         * config/i386/sse.md (V16): New mode iterator.
17555         (VI1, VI8): Ditto.
17556         (AVXMODEQI, AVXMODEDI): Remove.
17557         (sse2, sse3): New mode attribute.
17558         (mov<mode>): Use V16 mode iterator.
17559         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17560         (push<mode>1): Use V16 mode iterator.
17561         (movmisalign<mode>): Ditto.
17562         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17563         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17564         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17565         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17566         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17567         avx_movdqu<avxmodesuffix>.
17568         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17569         *avx_movdqu<avxmodesuffix>.
17570         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17571         avx_lddqu<avxmodesuffix>.
17572         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17573         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17574         avx_movnt<AVXMODEDI:mode>.
17575         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17576         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17577
17578 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17579
17580         PR target/48629
17581         * haifa-sched.c (prune_ready_list, schedule_block): Use
17582         sched_pressure_p rather than flag_sched_pressure.
17583
17584 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17585
17586         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17587         cgraph_get_node instead of cgraph_get_create_node.
17588
17589 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17590
17591         * cfgexpand.c (expand_debug_expr): Use
17592         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17593
17594 2011-04-15  Michael Matz  <matz@suse.de>
17595
17596         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17597         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17598         * function.c (gimplify_parameters): Ditto.
17599         * gimplify.c (gimplify_vla_decl): Ditto.
17600
17601         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17602         (gimple_call_set_alloca_for_var): New inline function.
17603         (gimple_call_alloca_for_var_p): Ditto.
17604         * gimple.c (gimple_build_call_from_tree): Remember
17605         CALL_ALLOCA_FOR_VAR_P state.
17606         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17607
17608         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17609         calls if they were for VLA objects.
17610
17611 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17612
17613         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17614         of ADR_EXPRs.
17615
17616 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17617
17618         PR middle-end/48601
17619         * tree-emutls.c (lower_emutls_function_body): Call
17620         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17621         result is non-NULL.
17622
17623 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17624
17625         * c-decl.c (detect_field_duplicates): Call
17626         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17627
17628 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17629
17630         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17631         * gimple.c (gimple_asm_clobbers_memory_p): Define.
17632         * ipa-pure-const.c (check_stmt): Call it.
17633         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17634
17635 2011-04-15  Richard Guenther  <rguenther@suse.de>
17636
17637         PR tree-optimization/48290
17638         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17639         Properly decide inhibiting propagation based on the valueized
17640         operand.  Do loop-closed SSA form preserving here ...
17641         (init_copy_prop): ... not here.
17642
17643 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17644
17645         PR target/48612
17646         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17647         (*ieee_smax<mode>3): Likewise.
17648
17649 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17650
17651         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17652         Replace match_operand with match_dup for the third operand in
17653         these expanders.
17654
17655 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17656
17657         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17658         to track processing of conditionals.  Update all callers.
17659         (try_combine, simplify_if_then_else): Update.
17660
17661 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17662
17663         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17664         -fsched-pressure.
17665
17666 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
17667
17668         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17669         instead of match_operand for operand 3.
17670
17671 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
17672
17673         * recog.h (insn_operand_data): Add an "allows_mem" field.
17674         * genoutput.c (output_operand_data): Initialize it.
17675         * optabs.c (maybe_legitimize_operand_same_code): New function.
17676         (maybe_legitimize_operand): Use it when matching the original
17677         op->value.
17678
17679 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17680
17681         * gimplify.c: Fix issues in comments throughout.
17682         (voidify_wrapper_expr): Fix long line.
17683         (build_stack_save_restore): Likewise.
17684         (gimplify_loop_expr): Likewise.
17685         (gimplify_compound_lval): Likewise.
17686         (gimplify_init_ctor_eval): Likewise.
17687         (gimplify_modify_expr_rhs): Likewise.
17688         (omp_notice_threadprivate_variable): Likewise.
17689
17690 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17691
17692         * cfgexpand.c (expand_call_stmt): Convert the function type to the
17693         original one if this is not a builtin function.
17694
17695 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
17696
17697         PR target/48605
17698         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17699         offset it as needed based on top 2 bits in operands[3], change
17700         MEM mode to SFmode and mask those 2 bits away from operands[3].
17701
17702 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17703
17704         * c-parser.c (c_parser_objc_protocol_definition): Updated for
17705         change from objc_declare_protocols() to objc_declare_protocol().
17706
17707 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
17708
17709         * config/i386/sse.md (sse4_1): New mode attribute.
17710         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17711         avx_blend<ssemodesuffix><avxmodesuffix> and
17712         sse4_1_blend<ssemodesuffix> using VF mode iterator.
17713         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17714         avx_blendv<ssemodesuffix><avxmodesuffix> and
17715         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17716         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17717         avx_dp<ssemodesuffix><avxmodesuffix> and
17718         sse4_1_dp<ssemodesuffix> using VF mode iterator.
17719         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17720         (sse4_1_packusdw): Merge with *avx_packusdw.
17721         (sse4_1_pblendvb): Merge with *avx_pblendvb.
17722         (sse4_1_pblendw): Merge with *avx_pblendw.
17723         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17724         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17725         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17726         VF mode iterator.
17727         (sse4_1_round<ssescalarmodesuffix>): Merge with
17728         *avx_round<ssescalarmodesuffix>.
17729         (aesenc): Merge with *avx_aesenc.
17730         (aesenclast): Merge with *avx_aesenclast.
17731         (aesdec): Merge with *avx_aesdec.
17732         (aesdeclast): Merge with *avx_aesdeclast.
17733         (pclmulqdq): Merge with *pclmulqdq.
17734         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17735         New predicate.
17736         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17737
17738 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
17739
17740         PR middle-end/48608
17741         * cfgexpand.c (get_decl_align_unit): Renamed to ...
17742         (align_local_variable): This.  Update DECL_ALIGN.
17743         (add_stack_var): Updated.
17744         (expand_one_stack_var): Likewise.
17745
17746 2011-04-14  Richard Guenther  <rguenther@suse.de>
17747
17748         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17749         Remove.
17750         (dse_initialize_block_local_data, dse_leave_block,
17751         record_voperand_set, get_stmt_uid): Likewise.
17752         (dse_possible_dead_store_p): Allow any kind of killing stmt.
17753         (dse_optimize_stmt): Remove voperand set handling code.
17754         Simplify and improve to handle any kind of killing stmt.
17755         (dse_record_phi): Remove.
17756         (dse_enter_block): Simplify.
17757         (tree_ssa_dse): Likewise.
17758         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17759
17760 2011-04-14  Jan Hubicka  <jh@suse.cz>
17761
17762         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17763         * cgraph.h (struct inline_summary): Move to ipa-inline.h
17764         (cgraph_local_info): Remove inline_summary.
17765         * ipa-cp.c: Include ipa-inline.h.
17766         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17767         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17768         accesor.
17769         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17770         (input_overwrite_node): Do not set inline summary.
17771         (input_node): Do not stream inline summary.
17772         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17773         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17774         growth; we do not have inline parameters computed for that anyway.
17775         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17776         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17777         (inline_summary_t): New type and VECtor.
17778         (debug_inline_summary, dump_inline_summaries): Declare.
17779         (inline_summary): Use VOCtor.
17780         (estimate_edge_growth): Kill hack computing call stmt size directly.
17781         * lto-section-in.c (lto_section_name): Add inline section.
17782         * ipa-inline-analysis.c: Include lto-streamer.h
17783         (node_removal_hook_holder, node_duplication_hook_holder): New holders
17784         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17785         (inline_summary_vec): Define.
17786         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17787         dump_inline_summaries): New functions.
17788         (estimate_function_body_sizes): Properly compute size/time of outgoing
17789         calls.
17790         (compute_inline_parameters): Alloc inline_summary; do not compute
17791         size/time of incomming calls.
17792         (estimate_edge_time): Avoid missing time summary hack.
17793         (inline_read_summary): Read inline summary info.
17794         (inline_write_summary): Write inline summary info.
17795         (inline_free_summary): Free all hooks and inline summary vector.
17796         * lto-streamer.h: Add LTO_section_inline_summary section.
17797         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17798         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17799
17800 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17801
17802         * tree-vectorizer.h (vect_strided_store_supported): Add a
17803         HOST_WIDE_INT argument.
17804         (vect_strided_load_supported): Likewise.
17805         (vect_permute_store_chain): Return void.
17806         (vect_transform_strided_load): Likewise.
17807         (vect_permute_load_chain): Delete.
17808         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17809         count argument.  Check that the count is a power of two.
17810         (vect_strided_load_supported): Likewise.
17811         (vect_permute_store_chain): Return void.  Update after above changes.
17812         Assert that the access is supported.
17813         (vect_permute_load_chain): Likewise.
17814         (vect_transform_strided_load): Return void.
17815         * tree-vect-stmts.c (vectorizable_store): Update calls after
17816         above interface changes.
17817         (vectorizable_load): Likewise.
17818         (vect_analyze_stmt): Don't check for strided powers of two here.
17819
17820 2011-04-14  Richard Guenther  <rguenther@suse.de>
17821
17822         PR tree-optimization/48590
17823         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17824         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17825         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17826         BUILT_IN_STACK_SAVE.
17827         * tree-ssa-dce.c (propagate_necessity): Handle
17828         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17829
17830 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17831
17832         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17833         objc_declare_class.
17834
17835 2011-04-14  Richard Guenther  <rguenther@suse.de>
17836
17837         * tree.h (get_object_alignment_1): Declare.
17838         * builtins.c (get_object_alignment_1): Split out worker from ...
17839         (get_object_alignment): ... here.
17840         * fold-const.c (get_pointer_modulus_and_residue): Use
17841         get_object_alignment_1.
17842
17843 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17844
17845         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17846         type parameter.
17847         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17848         parameter.  Generalise code to handle arrays as well as vectors.
17849         (vect_setup_realignment): Update accordingly.
17850         * tree-vect-stmts.c (vectorizable_store): Likewise.
17851         (vectorizable_load): Likewise.
17852
17853 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17854
17855         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17856         within the per-copy loop.
17857
17858 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17859
17860         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17861         in the dump file.
17862
17863 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17864
17865         * doc/options.texi (Negative): Explicitly mention that the
17866         Negative chain must be circular.
17867
17868 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17869
17870         * function.h (block_chainon): Declare.
17871         * function.c (block_chainon): Define.
17872
17873 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17874             Eric Weddington  <eric.weddington@atmel.com>
17875             Georg-Johann Lay  <avr@gjlay.de>
17876
17877         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17878         New Includes
17879         (avr_init_builtins, avr_expand_builtin,
17880         avr_expand_delay_cycles, avr_expand_unop_builtin,
17881         avr_expand_binop_builtin ): New functions.
17882         (avr_builtin_id): New enum
17883         (struct avr_builtin_description): New struct
17884         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17885         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17886
17887         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17888         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17889         UNSPECV_DELAY_CYCLES): new enumeration values
17890         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17891         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17892         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17893         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17894         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17895         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17896         "fmulsu"): New insns
17897
17898         * config/avr/avr-c.c: fix line endings
17899         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17900         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17901         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17902         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17903         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17904
17905         * doc/extend.texi (AVR Built-in Functions): New node
17906         (Target Builtins): Add documentation of AVR
17907         built-in functions.
17908
17909 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17910
17911         PR target/44643
17912         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17913         alone. Error if non-const data has attribute progmem.
17914
17915 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17916
17917         * tree.h (struct tree_constructor): Include tree_typed instead of
17918         tree_common.
17919         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17920         TS_TYPED instead of TS_COMMON.
17921
17922 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17923
17924         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17925         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17926         (sse2_psadbw): Merge with *avx_psadbw.
17927         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17928         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17929         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17930         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17931         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17932         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17933         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17934         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17935         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17936         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17937         (ssse3_palignrti): Merge with *avx_palignrti.
17938
17939 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17940
17941         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17942         * tree-ssanames.c (fini_ssanames): VEC_free it.
17943         (make_ssa_name_fn): Update for VECness of free_ssanames.
17944         (release_ssa_name, release_dead_ssa_names): Likewise.
17945         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17946         tree_common.
17947         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17948         TS_TYPED instead of TS_COMMON.
17949
17950 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17951
17952         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17953         statistics_counter_event.
17954         * tree-ssa-copyrename.c (stats): Define.
17955         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17956         statistics_counter_event.
17957         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17958         (bswap_stats, widen_mul_stats): Define.
17959         (insert_reciprocals): Increment rdivs_inserted.
17960         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17961         rfuncs_inserted.  Add calls to statistics_counter_event.
17962         (execute_cse_sincos_1): Increment inserted.
17963         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17964         statistics_counter_event.
17965         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17966         of bswap_stats.  Add calls to statistics_counter_event.
17967         (convert_mult_to_widen): Increment widen_mults_inserted.
17968         (convert_plusminus_to_widen): Increment maccs_inserted.
17969         (convert_mult_to_fma): Increment fmas_inserted.
17970         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17971         calls to statistics_counter_event.
17972
17973 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17974
17975         PR rtl-optimization/48455
17976         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17977         `temp_costs->mem_cost'.
17978
17979 2011-04-13  Jan Hubicka  <jh@suse.cz>
17980
17981         * ipa-inline.h: New file.
17982         * ipa-inline-analysis.c: New file. Broken out of ...
17983         * ipa-inline.c: ... this file; update toplevel comment;
17984         include ipa-inline.h
17985         (inline_summary): Move to ipa-inline.h
17986         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17987         ipa-inline-analysis.c.
17988         (cgraph_estimate_time_after_inlining): Rename to
17989         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17990         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17991         to estimate_edge_growth.
17992         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17993         rename to estimate_size_after_inlining.
17994         (cgraph_mark_inline_edge): Update for new naming convention.
17995         (cgraph_check_inline_limits): Likewise.
17996         (cgraph_edge_badness): Likewise.
17997         (cgraph_decide_recursive_inlining): Likewise.
17998         (cgraph_decide_inlining_of_small_functions): Likewise.
17999         (cgraph_decide_inlining_incrementally): Likewise.
18000         (cgraph_estimate_growth): Rename to estimate_growth; move to
18001         ipa-inline-analysis.c.
18002         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18003         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18004         (compute_inline_parameters): Likewise.
18005         (compute_inline_parameters_for_current): Likewise.
18006         (pass_inline_parameters): Likewise.
18007         (inline_indirect_intraprocedural_analysis): Likewise.
18008         (analyze_function): Rename to inline_analyze_function; likewise.
18009         (add_new_function): Move to ipa-inline-analysis.c.
18010         (inline_generate_summary): Likewise.
18011         (inline_read_summary): Likewise.
18012         (inline_write_summary): Likewise.
18013         * Makefile.in (ipa-inline-analysis.c): New file.
18014
18015 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18016
18017         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18018         * configure: Regenerate.
18019
18020 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18021
18022         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18023         instead of tree_common.
18024         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18025         Likewise.
18026         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18027         TS_TYPED rather than TS_COMMON.
18028         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18029
18030 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
18031
18032         PR target/45263
18033         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18034         r20 around calls of __tablejump_elpm__
18035
18036 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18037
18038         PR middle-end/48591
18039         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18040         NULL.
18041         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18042
18043 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
18044
18045         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18046         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18047         (cfi_vec): New typedef.
18048         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18049         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18050         (cie_cfi_vec): New static variable.
18051         (cie_cfi_head): Delete.
18052         (add_cfi): Accept a cfi_vec * as first argument. All callers and
18053         declaration changed. Use vector rather than list operations.
18054         (new_cfi): Don't initialize the dw_cfi_next field.
18055         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18056         rather than list operations.
18057         (lookup_cfa): Use vector rather than list operations.
18058         (output_cfis): New argument upto. Accept a cfi_vec rather than
18059         a dw_cfi_ref list head as argument. All callers changed.
18060         Iterate over the vector using upto as a maximum index.
18061         (output_all_cfis): New static function.
18062         (output_fde): Use vector rather than list operations. Use the
18063         new upto argument for output_cfis rather than manipulating a
18064         list.
18065         (dwarf2out_begin_prologue): Change initializations to match
18066         new struct members.
18067         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18068         from the vector length rather than searching for the end of a list.
18069         Use output_all_cfis.
18070         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18071
18072 2011-04-13  Nick Clifton  <nickc@redhat.com>
18073
18074         * config/rx/rx.md (movmemsi): Do not use this pattern when
18075         volatile pointers are involved.
18076
18077 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18078
18079         * config/i386/sse.md (pinsrbits): Remove.
18080         (sse2_packsswb): Merge with *avx_packsswb.
18081         (sse2_packssdw): Merge with *avx_packssdw.
18082         (sse2_packuswb): Merge with *avx_packuswb.
18083         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18084         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18085         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18086         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18087         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18088         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18089         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18090         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18091         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18092         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18093         (sse2_loadld): Merge with *avx_loadld.
18094         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18095         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18096         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18097         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18098         (vec_concatv2di): Merge with *vec_concatv2di_avx.
18099
18100 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
18101
18102         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18103         calling TREE_CHAIN.
18104         * print-tree.c (print_node): Likewise.
18105         * tree-inline.c (copy_tree_r): Likewise.
18106         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18107         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18108         instead of TS_COMMON.
18109         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18110         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18111         (copy_node_stat): Zero TREE_CHAIN only if necessary.
18112         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18113         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18114         ...and these...
18115         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18116         * tree.h: ...here.
18117         (TREE_CHAIN): Check for a TS_COMMON structure.
18118         (TREE_TYPE): Check for a TS_TYPED structure.
18119
18120 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
18121
18122         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18123         cgraph_get_create_node instead of cgraph_node.
18124
18125 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18126
18127         * c-parser.c (c_parser_initelt): Updated call to
18128         objc_build_message_expr.
18129         (c_parser_postfix_expression): Likewise.
18130
18131 2011-04-12  Kai Tietz  <ktietz@redhat.com>
18132
18133         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18134         MASK_MS_BITFIELD_LAYOUT bit.
18135
18136 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18137
18138         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18139         assert it is always true.
18140         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18141         moves.
18142
18143 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18144
18145         * c-parser.c (c_lex_one_token): Rewritten conditional used when
18146         compiling Objective-C to be more efficient.
18147
18148 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
18149
18150         * opts-common.c (decode_cmdline_options_to_array): Remove variable
18151         argv_copied.
18152
18153 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18154
18155         * recog.h, genoutput.c, optabs.c: Revert last patch.
18156
18157 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18158
18159         PR target/48090
18160         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18161
18162 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18163
18164         * recog.h (insn_operand_data): Add an "allows_mem" field.
18165         * genoutput.c (output_operand_data): Initialize it.
18166         * optabs.c (maybe_legitimize_operand_same_code): New function.
18167         (maybe_legitimize_operand): Use it when matching the original
18168         op->value.
18169
18170 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18171
18172         * genpreds.c (process_define_predicate): Move most processing
18173         to gensupport.c.  Continue to validate the expression.
18174         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18175         (process_define_predicate): Move processing to gensupport.c.
18176         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18177         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18178         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
18179         argument.
18180         (valid_predicate_name_p): New function, split out from old
18181         genpreds.c:process_define_predicate.
18182         (process_define_predicate): New function, combining code from
18183         old genpreds.c and genrecog.c functions.
18184         (process_rtx): Call it for DEFINE_PREDICATE and
18185         DEFINE_SPECIAL_PREDICATE.
18186
18187 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18188
18189         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18190         size of a '%A' memory reference.
18191         (T_DREG, T_QREG): New neon_builtin_type_bits.
18192         (arm_init_neon_builtins): Assert that the load and store operands
18193         are neon_struct_operands.
18194         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18195         (NEON_ARG_MEMORY): New builtin_arg.
18196         (neon_dereference_pointer): New function.
18197         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18198         Handle NEON_ARG_MEMORY.
18199         (arm_expand_neon_builtin): Update after above interface changes.
18200         Use NEON_ARG_MEMORY for loads and stores.
18201         * config/arm/predicates.md (neon_struct_operand): New predicate.
18202         * config/arm/iterators.md (V_two_elem): Tweak formatting.
18203         (V_three_elem): Use BLKmode for accesses that have no associated mode.
18204         (V_four_elem): Tweak formatting.
18205         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18206         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18207         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18208         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18209         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18210         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18211         (neon_vst4<mode>): Replace pointer operand with a memory operand.
18212         Use %A in the output template.
18213         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18214         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18215         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18216         the width of the memory access.  Remove post-increment.
18217         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18218
18219 2011-04-12  Nick Clifton  <nickc@redhat.com>
18220
18221         * config/v850/v850.c (expand_prologue): Do not use the CALLT
18222         instruction for interrupt handlers if the target is the basic V850
18223         architecture.
18224         (expand_epilogue): Likewise.
18225
18226 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18227
18228         PR rtl-optimization/48549
18229         * combine.c (propagate_for_debug): Also stop after BB_END of
18230         this_basic_block.  Process LAST and just stop processing after it.
18231         (combine_instructions): If last_combined_insn has been deleted,
18232         set last_combined_insn to its PREV_INSN.
18233
18234 2011-04-12  Richard Guenther  <rguenther@suse.de>
18235
18236         PR tree-optimization/46076
18237         * gimple.h (struct gimple_statement_call): Add fntype field.
18238         (gimple_call_fntype): Adjust.
18239         (gimple_call_set_fntype): New function.
18240         * gimple.c (gimple_build_call_1): Set the call function type.
18241         * gimplify.c (gimplify_call_expr): Preserve the function
18242         type the frontend used for the call.
18243         (gimplify_modify_expr): Likewise.
18244         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18245         function type.
18246         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18247         function type.
18248         * tree-ssa.c (useless_type_conversion_p): Function pointer
18249         conversions are useless.
18250
18251 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18252
18253         * cgraph.h (cgraph_node): Remove function declaration.
18254         (cgraph_create_node): Declare.
18255         (cgraph_get_create_node): Likewise.
18256         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18257         Updated all callers.
18258         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18259         the decl does not already exist.  Call cgraph_get_create_node instead
18260         of cgraph_node.
18261         (cgraph_get_create_node): New function.
18262         (cgraph_same_body_alias): Update comment.
18263         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18264         assert it does not return NULL.
18265         (cgraph_update_edges_for_call_stmt): Likewise.
18266         (cgraph_clone_edge): Likewise.
18267         (cgraph_create_virtual_clone): Likewise.
18268         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18269         instead of cgraph_node.
18270         (cgraph_add_new_function): Call cgraph_create_node or
18271         cgraph_get_create_node instead of cgraph_node.
18272         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18273         instead of cgraph_node.
18274         (record_eh_tables): Likewise.
18275         (mark_address): Likewise.
18276         (mark_load): Likewise.
18277         (build_cgraph_edges): Call cgraph_get_create_node instead
18278         of cgraph_node.
18279         (rebuild_cgraph_edges): Likewise.
18280         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18281         instead of cgraph_node.
18282         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18283         cgraph_node.
18284         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18285         cgraph_create_node instead of cgraph_node.
18286         * c-decl.c (finish_function): Call cgraph_get_create_node instead
18287         of cgraph_node.
18288         * lto-cgraph.c (input_node): Likewise.
18289         * lto-streamer-in.c (input_function): Likewise.
18290         * varasm.c (mark_decl_referenced): Likewise.
18291         (assemble_alias): Likewise.
18292
18293 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18294
18295         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18296         instead of cgraph_node and assert it does not return NULL.
18297         * lto-streamer-in.c (lto_read_body): Likewise.
18298         * omp-low.c (new_omp_context): Likewise.
18299         (create_task_copyfn): Likewise.
18300         * tree-emutls.c (lower_emutls_function_body): Likewise.
18301         * matrix-reorg.c (transform_allocation_sites): Likewise.
18302
18303 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18304
18305         PR c/48552
18306         * c-typeck.c (build_asm_expr): Error out on attempts to use
18307         void type outputs or inputs for constraints that allow reg or
18308         don't allow memory.
18309
18310 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
18311             Richard Earnshaw  <rearnsha@arm.com>
18312
18313         PR target/48250
18314         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18315         to use sign-magnitude offsets. Reject unsupported unaligned
18316         cases. Add detailed description in comments.
18317         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18318         condition from TARGET_32BIT to TARGET_ARM.
18319
18320 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
18321
18322         * tree.h (struct typed_tree): New.
18323         (struct tree_common): Include it instead of tree_base.
18324         (TREE_TYPE): Update for new location of type field.
18325         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18326         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18327         (union tree_node): Add typed field.
18328         * treestruct.def (TS_TYPED): New.
18329         * lto-streamer.c (check_handled_ts_structures): Handle it.
18330         * tree.c (MARK_TS_TYPED): New macro.
18331         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18332
18333 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18334
18335         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18336         (force_nonfallthru): Do not alter the loop nest if no basic block
18337         was created.
18338
18339 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18340
18341         * config/i386/sse.md (VI): New mode iterator.
18342         (SSEMODEI): Remove.
18343         (AVX256MODEI): Ditto.
18344         (AVXMODEF4P): Ditto.
18345         (avxvecpsmode): Ditto.
18346         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18347         (sse2_andnot<mode>3): New expander.
18348         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18349         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18350         (<any_logic:code><mode>3): Use VI mode iterator.
18351         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18352         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18353         (*andnottf3): Handle AVX three-operand constraints.
18354         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18355
18356 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18357             Robert Millan  <rmh@gnu.org>
18358
18359         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18360         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18361         GNU_USER_DYNAMIC_LINKER64): Define.
18362         (REG_NAME): Don't undefine.
18363         (MD_UNWIND_SUPPORT): Undefine.
18364         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18365         (REG_NAME): Don't undefine.
18366         (MD_UNWIND_SUPPORT): Undefine.
18367         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18368
18369 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18370
18371         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18372         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18373
18374 2011-04-11  Xinliang David Li  <davidxl@google.com>
18375
18376         * value-profile.c (check_ic_target): New function.
18377         (gimple_ic_transform): Sanity check indirect call target.
18378         * gimple-low.c (gimple_check_call_args): Interface change.
18379         (gimple_check_call_matching_types): New function.
18380         * tree-inline.c (tree_can_inline_p): Call new function.
18381
18382 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18383
18384         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18385         tree-pretty-print.h & realmpfr.h.
18386
18387 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18388
18389         PR middle-end/48464
18390         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18391         (setup_allocno_and_important_classes): Ditto.
18392
18393 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18394
18395         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18396         GNU_USER_DYNAMIC_LINKER.
18397         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18398         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18399         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18400         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18401         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18402         GNU_USER_TARGET_OS_CPP_BUILTINS.
18403         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18404         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18405         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18406         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18407         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18408         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18409         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18410         GNU_USER_TARGET_OS_CPP_BUILTINS.
18411         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18412         GNU_USER_DYNAMIC_LINKER.
18413         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18414         GNU_USER_TARGET_OS_CPP_BUILTINS.
18415         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18416         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18417         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18418         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18419         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18420         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18421         GNU_USER_DYNAMIC_LINKER64): Remove.
18422         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18423         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18424         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18425         GNU_USER_DYNAMIC_LINKER.
18426         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18427         GNU_USER_TARGET_OS_CPP_BUILTINS.
18428         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18429         GNU_USER_TARGET_OS_CPP_BUILTINS.
18430         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18431         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18432         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18433         GNU_USER_TARGET_OS_CPP_BUILTINS.
18434         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18435         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18436         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18437         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18438         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18439         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18440         GNU_USER_DYNAMIC_LINKER.
18441         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18442         GNU_USER_TARGET_OS_CPP_BUILTINS.
18443         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18444         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18445         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18446         GNU_USER_DYNAMIC_LINKER.
18447         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18448         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18449         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18450         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18451         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18452         GNU_USER_DYNAMIC_LINKER.
18453         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18454         GNU_USER_DYNAMIC_LINKERN32.
18455         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18456         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18457         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18458         GNU_USER_DYNAMIC_LINKER32.
18459         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18460         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18461         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18462         GNU_USER_DYNAMIC_LINKER.
18463         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18464         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18465         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18466         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18467         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18468         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18469         GNU_USER_DYNAMIC_LINKER32.
18470         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18471         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18472         GNU_USER_DYNAMIC_LINKER.
18473         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18474         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18475         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18476         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18477         GNU_USER_DYNAMIC_LINKER64.
18478         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18479         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18480         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18481         GNU_USER_DYNAMIC_LINKER.
18482         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18483         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18484         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18485         GNU_USER_DYNAMIC_LINKER.
18486         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18487         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18488         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18489         GNU_USER_DYNAMIC_LINKER32.
18490         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18491         GNU_USER_DYNAMIC_LINKER64.
18492         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18493         GNU_USER_DYNAMIC_LINKER64.
18494         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18495         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18496         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18497         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18498         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18499
18500 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18501
18502         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18503         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18504         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18505         GNU_USER_DYNAMIC_LINKER.
18506         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18507         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18508         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18509         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18510         GNU_USER_DYNAMIC_LINKER64.
18511         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18512         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18513         GNU_USER_LINK_EMULATION.
18514         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18515         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18516         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18517         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18518         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18519         CPP_SPEC, CC1_SPEC): Remove.
18520         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18521         (GNU_USER_DYNAMIC_LINKER): Define.
18522         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18523         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18524         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18525         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18526         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18527         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18528         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18529         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18530         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18531         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18532         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18533         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18534         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18535         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18536         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18537         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18538         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18539         GNU_USER_DYNAMIC_LINKER.
18540         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18541         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18542         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18543         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18544         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18545         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18546         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18547         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18548         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18549         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18550
18551 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18552
18553         PR target/9601
18554         PR target/11772
18555         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18556         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18557         comment.
18558         (ix86_is_msabi_thiscall): Removed.
18559         (ix86_is_type_thiscall): Likewise.
18560         (ix86_get_callcvt): New function.
18561         (ix86_comp_type_attributes): Simplify check.
18562         (ix86_function_regparm): Use ix86_get_callcvt for calling
18563         convention attribute checks.
18564         (ix86_return_pops_args): Likewise.
18565         (ix86_static_chain): Likewise.
18566         (x86_this_parameter): Likewise.
18567         (x86_output_mi_thunk): Likewise.
18568         (ix86_function_type_abi): Optimize check for types without attributes.
18569         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18570         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18571         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18572         by flag-values.
18573         (IX86_BASE_CALLCVT): Helper macro.
18574         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18575         Use ix86_get_callcvt for calling convention attribute checks and avoid
18576         symbol-decoration for stdcall in TARGET_RTD case.
18577         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18578         Likewise.
18579         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18580         for declaration.
18581
18582 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18583
18584         * config/i386/sse.md (VI_128): New mode iterator.
18585         (VI12_128): Rename from SSEMODE12.
18586         (VI14_128): Rename from SSEMODE14.
18587         (VI124_128): New mode iterator.
18588         (VI24_128): Rename from SSEMODE248.
18589         (VI248_128): Rename from SSEMODE248.
18590         (SSEMODE124C8): Remove.
18591         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18592         (*sse2_<plusminus_insn><mode>3): Merge with
18593         *avx_<plusminus_insn><mode>3.
18594         (*mulv8hi3): Merge with *avx_mulv8hi3.
18595         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18596         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18597         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18598         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18599         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18600         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18601         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18602         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18603         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18604         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18605         (*<smaxmin:code>v8hi3): Ditto.
18606         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18607         (*<smaxmin:code>v16qi3): Ditto.
18608         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18609         (*sse2_eq<mode>3): Ditto.
18610         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18611         (*sse2_gt<mode>3): Ditto.
18612         (vcondv2di): Split out of vcond<mode>.
18613         (vconduv2di): Split out of vcondu<mode>.
18614
18615 2011-04-11  Richard Guenther  <rguenther@suse.de>
18616
18617         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18618         before calling tree_low_cst.
18619
18620 2011-04-11  Richard Guenther  <rguenther@suse.de>
18621
18622         * stor-layout.c (layout_type): Compute all array index size operations
18623         in the original type.
18624         (initialize_sizetypes): Add comment.
18625         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18626
18627 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18628
18629         * common.opt (Tbss=, Tdata=, Ttext=): New options.
18630
18631 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18632
18633         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18634         of cgraph_node, handle NULL return value.
18635         (cgraph_global_info): Likewise.
18636         (cgraph_rtl_info): Likewise.
18637         * tree-inline.c (estimate_num_insns): Likewise.
18638         * gimplify.c (unshare_body): Likewise.
18639         (unvisit_body): Likewise.
18640         (gimplify_body): Likewise.
18641         * predict.c (optimize_function_for_size_p): Likewise.
18642         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18643         (call_may_clobber_ref_p_1): Likewise.
18644         * varasm.c (function_section_1): Likewise.
18645         (assemble_start_function): Likewise.
18646
18647 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18648
18649         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18650         of cgraph_node.
18651         * final.c (rest_of_clean_state): Likewise.
18652         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18653         * passes.c (pass_init_dump_file): Likewise.
18654         (execute_all_ipa_transforms): Likewise.
18655         (function_called_by_processed_nodes_p): Likewise.
18656         * predict.c (maybe_hot_frequency_p): Likewise.
18657         (probably_never_executed_bb_p): Likewise.
18658         (compute_function_frequency): Likewise.
18659         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18660         (unnest_nesting_tree_1): Likewise.
18661         (lower_nested_functions): Likewise.
18662         * tree-optimize.c (execute_fixup_cfg): Likewise.
18663         (tree_rest_of_compilation): Likewise.
18664         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18665         * tree-sra.c (ipa_early_sra): Likewise.
18666         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18667         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18668         * ipa.c (record_cdtor_fn): Likewise.
18669         * ipa-inline.c (cgraph_early_inlining): Likewise.
18670         (compute_inline_parameters_for_current): Likewise.
18671         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18672         * ipa-pure-const.c (local_pure_const): Likewise.
18673         * ipa-split.c (split_function): Likewise.
18674         (execute_split_functions): Likewise.
18675         * cgraphbuild.c (build_cgraph_edges): Likewise.
18676         (rebuild_cgraph_edges): Likewise.
18677         (cgraph_rebuild_references): Likewise.
18678         (remove_cgraph_callee_edges): Likewise.
18679         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18680         (verify_cgraph_node): Likewise.
18681         (cgraph_analyze_functions): Likewise.
18682         (cgraph_preserve_function_body_p): Likewise.
18683         (save_inline_function_body): Likewise.
18684         (save_inline_function_body): Likewise.
18685         * tree-inline.c (copy_bb): Likewise.
18686         (optimize_inline_calls): Likewise.
18687
18688 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18689
18690         PR tree-optimization/48195
18691         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18692         ipa_check_create_edge_args.
18693         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18694         ipa_check_create_edge_args.
18695         * ipa-inline.c (inline_generate_summary): Do not call
18696         ipa_check_create_node_params and ipa_check_create_edge_args.
18697         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18698         ipa_check_create_edge_args.
18699
18700 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
18701
18702         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18703         instead of loop.
18704         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18705         * function.c (record_hard_reg_sets): Likewise.
18706         * ira.c (compute_regs_asm_clobbered): Likewise.
18707         * sched-deps.c (sched_analyze_1): Likewise.
18708         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18709
18710 2011-04-09  Xinliang David Li  <davidxl@google.com>
18711
18712         PR tree-optimization/PR48484
18713         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18714         has_valid_pred lazily
18715
18716 2011-04-09  Duncan Sands  <baldrick@free.fr>
18717
18718         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18719
18720 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18721
18722         * combine.c (combine_validate_cost): Adjust comments.  Set registered
18723         cost of I0 to zero at the end, if any.
18724
18725 2011-04-08  Xinliang David Li  <davidxl@google.com>
18726
18727         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18728         to insane profile data.
18729
18730 2011-04-08  Xinliang David Li  <davidxl@google.com>
18731
18732         * ipa-cp.c (ipcp_update_profiling): Correct
18733          negative scale factor due to insane profile data.
18734
18735 2011-04-08  Xinliang David Li  <davidxl@google.com>
18736
18737         * final.c (dump_basic_block_info): New function.
18738         (final): Dump basic block.
18739         (final_scan_insn): Remove old dump.
18740
18741 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18742
18743         PR target/47829
18744         * config.gcc (i386-*-freebsd): Disable unwind table generation for
18745         crtbegin/crtend.
18746
18747 2011-04-08  Michael Matz  <matz@suse.de>
18748
18749         PR middle-end/48389
18750         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18751         functions.
18752         (rebuild_jump_labels): Call rebuild_jump_labels_1.
18753         * rtl.h (rebuild_jump_labels_chain): Declare.
18754         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18755         insns inserted on edges.
18756
18757 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
18758
18759         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18760         * config/arm/arm-arches.def: New.
18761         * config/arm/arm-opts.h: New.
18762         * config/arm/genopt.sh: New.
18763         * config/arm/arm-tables.opt: New (generated).
18764         * config/arm/arm.c (arm_handle_option, arm_target_help,
18765         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18766         (all_architectures): Get most table contents from arm-arches.def.
18767         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18768         arm_selected_tune here.
18769         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18770         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18771         (march=, mcpu=, mtune=): Use Enum and Var.
18772         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18773         (arm.o): Update dependencies.
18774
18775 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
18776
18777         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18778         of header_file.
18779         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18780         (write_typed_alloc_defns): Likewise.
18781         (main): Calls write_typed_alloc_defns with output_header.
18782
18783 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
18784
18785         PR inline-asm/48435
18786         * ira-color.c (setup_profitable_hard_regs): Add comments.
18787         Don't take prohibited hard regs into account.
18788         (setup_conflict_profitable_regs): Rename to
18789         get_conflict_profitable_regs.
18790         (check_hard_reg_p): Check prohibited hard regs.
18791
18792 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
18793
18794         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18795         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18796         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18797
18798 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18799
18800         PR target/48366
18801         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18802         move from floating point to shift amount register.
18803         (emit_move_sequence): Remove secondary reload support for floating
18804         point to shift amount amount register copies.
18805         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18806         amount register copies.
18807         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18808         register, return false if mode isn't a scalar integer mode.
18809         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18810
18811 2011-04-08  Richard Guenther  <rguenther@suse.de>
18812
18813         * gimple.c (gimple_call_flags): Remove kludge.
18814
18815 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18816
18817         * sel-sched.c (sel_region_init): Move call to
18818         sel_setup_region_sched_flags after setup_current_loop_nest.
18819
18820 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18821
18822         PR rtl-optimization/48272
18823         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18824         init_insn_reg_pressure_info.  Adjust a caller.
18825         * sched-int.h (init_insn_reg_pressure_info): Declare.
18826         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18827         when sched-pressure is enabled.
18828
18829 2011-04-08  Richard Guenther  <rguenther@suse.de>
18830
18831         * gimple.c (gimple_set_modified): Do not queue calls to
18832         MODIFIED_NORETURN_CALLS here ...
18833         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18834
18835 2011-04-08  Richard Guenther  <rguenther@suse.de>
18836
18837         PR lto/48467
18838         * toplev.c (lang_dependent_init): Do not open asm_out_file
18839         in WPA mode, nor perform debug machinery initialization.
18840         (finalize): Do not unlink asm_out_file in WPA mode.
18841
18842 2011-04-08  Richard Guenther  <rguenther@suse.de>
18843
18844         * gimple.h (gimple_call_fntype): New function.
18845         (gimple_call_return_type): Use it.
18846         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18847         * gimple-low.c (gimple_check_call_args): Likewise.
18848         * gimple.c (gimple_call_flags): Likewise.
18849         (gimple_call_arg_flags): Likewise.
18850         (gimple_call_return_flags): Likewise.
18851         * tree-cfg.c (verify_gimple_call): Likewise.
18852         (do_warn_unused_result): Likewise.
18853         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18854         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18855
18856 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18857
18858         PR rtl-optimization/48235
18859         * sel-sched.c (code_motion_process_successors): Recompute the last
18860         insn in basic block if control flow changed.
18861         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18862         Update condition for ilist_remove.
18863
18864 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18865
18866         PR rtl-optimization/48302
18867         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18868         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18869         it to record added preheader blocks.
18870         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18871         on to sel_add_loop_preheaders.
18872         (sel_region_init): Move call to setup_current_loop_nest after
18873         sel_init_bbs.
18874
18875 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18876
18877         PR target/48273
18878         * cfgloop.h (loop_has_exit_edges): New helper.
18879         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18880         non-clonable.
18881         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18882         that have no exit edges.
18883
18884 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18885
18886         PR rtl-optimization/48442
18887         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18888         all callers.  Adjust assert.
18889
18890 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18891
18892         PR tree-optimization/48377
18893         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18894         is_packed to true even for types with smaller TYPE_ALIGN than
18895         TYPE_SIZE.
18896
18897 2011-04-08  Richard Guenther  <rguenther@suse.de>
18898
18899         PR bootstrap/48513
18900         * doc/tm.texi: Re-generate.
18901
18902 2011-04-08  Wei Guozhi  <carrot@google.com>
18903
18904         PR target/47855
18905         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18906         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18907         * config/arm/arm.md (*push_multi): Change the length computation to
18908         call a C function.
18909
18910 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18911
18912         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18913         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18914         * doc/tm.texi: Regenerate.
18915         * system.h (ASM_OUTPUT_BSS): Poison.
18916         * varasm.c (asm_output_bss): Remove function.
18917         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18918
18919         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18920         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18921         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18922         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18923         Likewise.
18924         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18925         Likewise.
18926         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18927         Likewise.
18928         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18929
18930 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18931
18932         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18933         EnumValue lines.
18934
18935 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18936
18937         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18938         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18939         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18940         OPT_mcpu32.
18941         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18942         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18943         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18944         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18945         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18946         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18947         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18948         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18949         options.  Don't map other m68k options manually.  Don't handle
18950         old-style options as canonical.
18951         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18952         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18953
18954 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18955
18956         * basic-block.h (force_nonfallthru): Move to...
18957         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18958         (force_nonfallthru): ...here.
18959         * cfghooks.c (force_nonfallthru): New function.
18960         * cfgrtl.c (force_nonfallthru): Rename into...
18961         (rtl_force_nonfallthru): ...this.
18962         (commit_one_edge_insertion): Do not set AUX field.
18963         (commit_edge_insertions): Do not discover new basic blocks.
18964         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18965         (cfg_layout_rtl_cfg_hooks): Likewise.
18966         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18967         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18968         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18969
18970 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18971
18972         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18973         Remove macros.
18974
18975 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18976
18977         * config/i386/sse.md: Update copyright year.
18978         (avxcvtvecmode): Remove.
18979         (sse_movhlps): Merge with *avx_movhlps.
18980         (sse_movlhps): Merge with *avx_movlhps.
18981         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18982         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18983         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18984         (sse_loadhps): Merge with *avx_loadhps.
18985         (sse_storelps): Merge with *avx_storelps.
18986         (sse_loadlps): Merge with *avx_loadlps.
18987         (sse_movss): Merge with *avx_movss.
18988         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18989         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18990         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18991         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18992         (vec_set<mode>_0): Ditto.
18993         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18994         (sse4_1_insertps): Merge with *avx_insertps.
18995         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18996         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18997         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18998         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18999         (sse2_storehpd): Merge with *avx_storehpd.
19000         (sse2_loadhpd): Merge with *avx_loadhpd.
19001         (sse2_loadlpd): Merge with *avx_loadlpd.
19002         (sse2_movsd): Merge with *avx_movsd.
19003         (*vec_concatv2df): Merge with *vec_concatv2df.
19004
19005 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
19006
19007         PR debug/48343
19008         * combine.c (combine_instructions): Add last_combined_insn,
19009         update it if insn is after it, pass it to all try_combine calls.
19010         (try_combine): Add last_combined_insn parameter, pass it instead of
19011         i3 to propagate_for_debug.
19012
19013 2011-04-07  Nick Clifton  <nickc@redhat.com>
19014
19015         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19016         to handle MDR <-> data register transfers.
19017         (movhi_internal): Likewise.
19018
19019 2011-04-07  Alan Modra  <amodra@gmail.com>
19020
19021         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19022         previous stack info.
19023
19024 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19025
19026         PR target/43920
19027         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
19028         flow_find_cross_jump.  Swap variables to implement backward replacement.
19029         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19030
19031 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19032
19033         PR target/43920
19034         * cfgcleanup.c (walk_to_nondebug_insn): New function.
19035         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
19036         and bb2.
19037         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19038         src1 or src2.  Redirect edges to the last basic block.  Update
19039         frequency and count on multiple basic blocks in case of fallthru.
19040
19041 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19042
19043         PR target/43920
19044         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19045         function.
19046         (old_insns_match_p): Change return type.  Replace return false/true
19047         with return dir_none/dir_both.  Use can_replace_by.
19048         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
19049         direction from dir_p.  Register replacement direction in dir, last_dir
19050         and afterlast_dir.  Handle new return type of old_insns_match_p using
19051         merge_dir.  Return replacement direction in dir_p.
19052         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19053         return type of old_insns_match_p.
19054         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19055         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19056         flow_find_cross_jump.
19057         * basic-block.h (enum replace_direction): New type.
19058         (flow_find_cross_jump): Add parameter to declaration.
19059
19060 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19061
19062         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19063         (AVXMODEDCVTPS2DQ): Ditto.
19064         (VEC_FLOAT_MODE): Ditto.
19065         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
19066         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19067         (<any_logic:code><mode>3): Use VF mode iterator.
19068         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19069         Use VF mode iterator.
19070         (copysign<mode>3): Use VF mode iterator.
19071         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
19072         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19073         (*<any_logic:code><MODEF:mode>3): Merge with
19074         *avx_<any_logic:code><MODEF:mode>3.
19075         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19076         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19077         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19078         (avx_cvtdq2ps<avxmodesuffix>): Remove.
19079         (sse2_cvtdq2ps): Use %v modifier.
19080         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19081         (avx_cvtps2dq<avxmodesuffix>): Remove.
19082         (sse2_cvtps2dq): Use %v modifier.
19083         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19084         (avx_cvttps2dq<avxmodesuffix>): Remove.
19085         (sse2_cvttps2dq): Use %v modifier.
19086         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19087         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19088         (sse2_cvtsd2siq): Fix insn template.
19089         (sse2_cvtsd2siq_2): Ditto.
19090         (sse2_cvttsd2siq): Ditto.
19091         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19092         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19093
19094 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19095
19096         * gcov-io.c: Use GCC Runtime Library Exception.
19097
19098 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
19099
19100         PR debug/48466
19101         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19102         as base_reg whatever register reg has been eliminated to, instead
19103         of hardcoding STACK_POINTER_REGNUM.
19104
19105 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19106
19107         * doc/tm.texi.in: Document C target hooks as separate from general
19108         target hooks.
19109         * doc/tm.texi: Regenerate.
19110         * genhooks.c (struct hook_desc): Add docname field.
19111         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
19112         docname field.
19113         (hook_array): Include c-target.def.
19114         (emit_documentation): Use docname field in output.
19115         (emit_init_macros): Take docname argument.  Only emit definitions
19116         for hooks matching docname.
19117         (main): Expect additional arguments in all cases.  Pass argument
19118         to emit_init_macros.
19119         * target.def: Move initial macro definitions and comments to
19120         target-hooks-macros.h.
19121         (gcc_targetcm): Move to c-family/c-target.def.
19122         * target.h (targetcm): Move declaration to c-family/c-target.h.
19123         * targhooks.c (default_handle_c_option): Move to
19124         c-family/c-opts.c.
19125         * targhooks.h (default_handle_c_option): Move declaration to
19126         c-family/c-common.h.
19127         * target-hooks-macros.h: New file.
19128         * config.gcc (target_has_targetcm): Define and use to add to
19129         c_target_objs and cxx_target_objs.
19130         * config/default-c.c: New file.
19131         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19132         of target.h and target-def.h.
19133         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19134         (darwin_objc_construct_string, darwin_cfstring_ref_p,
19135         darwin_check_cfstring_format_arg): Make static.
19136         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19137         TARGET_STRING_OBJECT_REF_TYPE_P,
19138         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19139         * config/darwin-protos.h (darwin_objc_construct_string,
19140         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19141         declare.
19142         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19143         TARGET_STRING_OBJECT_REF_TYPE_P,
19144         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19145         * config/t-darwin (darwin-c.o): Update dependencies.
19146         * system.h (TARGET_HAS_TARGETCM): Poison.
19147         * Makefile.in (TARGET_H): Update.
19148         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19149         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19150         (default-c.o): New target.
19151         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19152         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19153         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
19154         c-target.def.
19155         (build/genhooks.o): Update dependencies.
19156
19157 2011-04-06  Richard Guenther  <rguenther@suse.de>
19158
19159         * ipa-inline.c (enum inlining_mode): Remove.
19160         (cgraph_flatten): Use some other token.
19161         (cgraph_edge_early_inlinable_p): New function, split out from ...
19162         (cgraph_perform_always_inlining): New function, split out from ...
19163         (cgraph_decide_inlining_incrementally): ... here.
19164         (cgraph_mark_inline_edge): Adjust.
19165         (cgraph_early_inlining): Re-structure.
19166         (pass_early_inline): Require SSA form.
19167
19168 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
19169             Julian Brown  <julian@codesourcery.com>
19170             Mark Shinwell  <shinwell@codesourcery.com>
19171
19172         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19173         LO_REGS only for Thumb-1.
19174         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19175         be used in short instructions when optimising for size on Thumb-2.
19176
19177 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19178
19179         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19180         associated with user returns to be preserved.
19181
19182 2011-04-06  Tristan Gingold  <gingold@adacore.com>
19183
19184         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19185         symbol_queue_size, DBXOUT_DECR_NESTING,
19186         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19187         if XCOFF_DEBUGGING_INFO.
19188
19189 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19190
19191         * config/i386/i386.md (attribute isa): New.
19192         (attribute enabled): New.
19193         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19194         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19195         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19196         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19197         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19198         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19199         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19200         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19201
19202         * config/i386/sse.md (VF): New mode iterator.
19203         (VF1): Ditto.
19204         (VF2): Ditto.
19205         (VF_128): Ditto.
19206         (SSEMODEF4): Remove.
19207         (attribute sse): Handle V8SF and V4DF modes.
19208         (<absneg:code><mode>2): Use VF mode iterator.
19209         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
19210         mode iterator.
19211         (<plusminus_insn><mode>3): Use VF mode iterator.
19212         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19213         Use VF mode iterator.
19214         (<sse>_vm<plusminus_insn><mode>3): Merge with
19215         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
19216         (mul<mode>3): Use VF mode iterator.
19217         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
19218         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
19219         mode iterator.
19220         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19221         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19222         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
19223         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
19224         mode iterator.
19225         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19226         Use VF1 mode iterator.
19227         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19228         (sqrt<VF2:mode>2): New expander.
19229         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19230         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19231         and sqrtv2df2.  Use VF mode iterator.
19232         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
19233         mode iterator.
19234         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19235         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19236         Use VF1 mode iterator.
19237         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19238         (<smaxmin:code><mode>3): Use VF mode iterator.
19239         (*<smaxmin:code><mode>3_finite): Merge with
19240         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
19241         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19242         (<sse>_vm<smaxmin:code><mode>2): Merge with
19243         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
19244         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
19245         mode iterator.
19246         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
19247         mode iterator.
19248         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19249         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19250         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19251         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19252         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
19253         VF mode iterator.
19254         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19255         Use VF_128 mode iterator.
19256         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
19257         mode iterator.
19258         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
19259         VF_128 mode iterator.
19260         (vcond<mode>): Use VF mode iterator.
19261         * config/i386/predicates.md (sse_comparison_operator): Merge with
19262         avx_comparison_float_operator.  Do not declare as special_predicate.
19263         * config/i386/i386.c (struct builtin_description): Update for renamed
19264         compare patterns.
19265         (ix86_expand_args_builtin): Ditto.
19266         (ix86_expand_sse_compare_mask): Ditto.
19267
19268 2011-04-06  Richard Guenther  <rguenther@suse.de>
19269
19270         * tree-inline.c (estimate_num_insns): For calls simply account
19271         for all passed arguments and a used return value.
19272
19273 2011-04-06  Richard Guenther  <rguenther@suse.de>
19274
19275         PR tree-optimization/47663
19276         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19277         call_stmt_time fields.
19278         (cgraph_edge_inlinable_p): Declare.
19279         (cgraph_edge_recursive_p): New inline function.
19280         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19281         (cgraph_clone_edge): Copy it.
19282         * ipa-inline.c (cgraph_estimate_edge_time): New function.
19283         Account for call stmt time.
19284         (cgraph_estimate_time_after_inlining): Take edge argument.
19285         (cgraph_estimate_edge_growth): Account call stmt size.
19286         (cgraph_estimate_size_after_inlining): Take edge argument.
19287         (cgraph_mark_inline_edge): Adjust.
19288         (cgraph_check_inline_limits): Likewise.
19289         (cgraph_recursive_inlining_p): Remove.
19290         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19291         (cgraph_decide_recursive_inlining): Take edge argument and
19292         adjust.
19293         (cgraph_decide_inlining_of_small_functions): Do not avoid
19294         diags for recursive inlining here.
19295         (cgraph_flatten): Adjust.
19296         (cgraph_decide_inlining_incrementally): Likewise.
19297         (estimate_function_body_sizes): Remove call cost handling.
19298         (compute_inline_parameters): Initialize caller edge call costs.
19299         (cgraph_estimate_edge_growth): New function.
19300         (cgraph_estimate_growth): Use it.
19301         (cgraph_edge_badness): Likewise.
19302         (cgraph_check_inline_limits): Take an edge argument.
19303         (cgraph_decide_inlining_of_small_functions): Adjust.
19304         (cgraph_decide_inlining): Likewise.
19305         * tree-inline.c (estimate_num_insns): Only account for call
19306         return value if it is used.
19307         (expand_call_inline): Avoid diagnostics on recursive inline
19308         functions here.
19309         * lto-cgraph.c (lto_output_edge): Output edge call costs.
19310         (input_edge): Input edge call costs.
19311
19312 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19313
19314         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19315
19316 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
19317
19318         * doc/invoke.texi (Spec Files): Fix typo.
19319
19320 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19321
19322         * profile.c (branch_prob): Move declaration of local variable.  Remove
19323         obsolete ??? comment.  Expand the location explicitly instead of using
19324         the LOCATION_FILE and LOCATION_LINE macros.
19325
19326 2011-04-06  Wei Guozhi  <carrot@google.com>
19327
19328         PR target/47855
19329         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19330         (arm_cond_branch): Likewise.
19331         (arm_cond_branch_reversed): Likewise.
19332         (arm_jump): Likewise.
19333         (push_multi): Likewise.
19334         * config/arm/constraints.md (Py): New constraint.
19335
19336 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19337
19338         PR bootstrap/48471
19339         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19340         Move these...
19341         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19342         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19343         #ifdef DBX_DEBUGGING_INFO.
19344
19345 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19346
19347         PR bootstrap/48403
19348         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19349         if old and new states differ.
19350
19351 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19352
19353         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19354         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19355         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19356         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19357         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19358         mcfv4e): Use Alias.
19359         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19360         ColdFire options to -mcpu= options.
19361
19362 2011-04-05  Jeff Law  <law@redhat.com>
19363
19364         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19365         check if BB is a successor of LOOP->header and return
19366         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19367
19368 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19369
19370         * cprop.c (struct reg_use): Remove.
19371         (reg_use_table): Make an array of RTX.
19372         (find_used_regs, constprop_register, local_cprop_pass,
19373         bypass_block): Simplify users of reg_use_table.
19374         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19375         on one of the uses found by find_used_regs.
19376
19377 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19378
19379         PR bootstrap/48469
19380         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19381         declaration.
19382
19383 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19384
19385         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19386         as an rtx.
19387         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19388
19389 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19390
19391         PR middle-end/48441
19392         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19393
19394 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19395
19396         * combine.c: Include obstack.h.
19397         (struct insn_link): Define.
19398         (uid_log_links): Adjust type.
19399         (FOR_EACH_LOG_LINK): New macro.
19400         (insn_link_obstack): Declare.
19401         (alloc_insn_link): Define.
19402         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19403         type of link variables.
19404         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19405         (try_combine, record_promoted_values, distribute_notes): Likewise.
19406         (distribute_links): Likewise.  Tweak prototype.
19407         (clear_log_links): Delete.
19408         (adjust_for_new_dest): Call alloc_insn_link.
19409         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19410
19411 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19412
19413         * gcse.c (modify_mem_list): Convert to an array of VECs.
19414         (canon_modify_mem_list, compute_transp): Tweak formatting.
19415         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19416         (load_killed_in_block_p): Likewise.
19417         (record_last_mem_set_info): Likewise.
19418         (clear_modify_mem_tables): Likewise.
19419
19420 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19421
19422         PR middle-end/48461
19423         * function.c (emit_use_return_register_into_block): Only define if
19424         HAVE_return.
19425
19426 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19427
19428         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19429
19430 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19431
19432         * config/rx/rx-opts.h: New.
19433         * config/rx/rx.c (rx_cpu_type): Remove.
19434         (rx_handle_option): Don't assert that global structures are in
19435         use.  Access variables via opts pointer.  Defer most handling of
19436         OPT_mint_register_.  Use error_at.
19437         (rx_option_override): Handle deferred OPT_mint_register_ here.
19438         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19439         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19440         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19441         (rx_cpu_types): New Enum and EnumValue entries.
19442         (mint-register=): Use Defer and use Var accordingly.
19443
19444 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19445
19446         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19447         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19448         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19449         Move these...
19450         (debug_free_queue, debug_nesting, symbol_queue_index):
19451         ...and these...
19452         * dbxout.c: ...to here.  Make static.
19453
19454 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19455
19456         * gcse.c (modify_pair): Define.  Define a VEC of it.
19457         (canon_modify_mem_list): Convert to an array of VECs.
19458         (free_insn_expr_list_list): Delete.
19459         (clear_modify_mem_tables): Call VEC_free instead.
19460         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19461         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19462         (canon_list_insert, compute_transp): Likewise.
19463
19464 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19465
19466         PR target/43920
19467         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19468         for size.
19469
19470 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19471
19472         PR target/43920
19473         * function.c (emit_use_return_register_into_block): New function.
19474         (thread_prologue_and_epilogue_insns): Use
19475         emit_use_return_register_into_block.
19476
19477 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19478
19479         PR target/43920
19480         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19481         insn.
19482
19483 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19484
19485         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19486
19487 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19488
19489         * config/arm/arm.md (define_constants for unspec): Replace with
19490         define_c_enum.
19491         (define_constants for unspecv): Replace with define_c_enum.
19492         * config/arm/neon.md (define_constants for unspec): Replace with
19493         define_c_enum.
19494
19495 2011-04-04  Richard Henderson  <rth@redhat.com>
19496
19497         PR bootstrap/48400
19498         * dwarf2out.c (output_line_info): Always emit line info from
19499         at least one section.
19500         (dwarf2out_init): Create text_section_line_info here ...
19501         (set_cur_line_info_table): ... not here.
19502
19503 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19504
19505         PR target/48380
19506         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19507         not called.
19508
19509         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19510
19511 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19512
19513         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19514         (expr_equiv_p): Remove.
19515         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19516         (hash_scan_set): Update call to insert_set_in_table.
19517         (dump_hash_table): Dump <dest, src> pair.
19518         (lookup_set): Simplify.  Lookup <dest, src> pair.
19519         (compute_transp): Remove, fold heavily simplified code into...
19520         (compute_local_properties): ...here.  Expect COMP and TRANSP
19521         unconditionally.
19522         (find_avail_set): Take set directly from struct expr.
19523         (find_bypass-set): Likewise.
19524         (bypass_block): Likewise.
19525         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19526
19527         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19528         checks on form of COND from find_implicit_sets to here.
19529         (find_implicit_sets): Cleanup control flow. Split critical edges
19530         if it exposes implicit sets.  Allocate/resize implicit_sets as
19531         necessary.
19532         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19533         changed something.  Run df_analyze after find_implicit_sets if any
19534         edges were split.  Do not allocate implicit_sets here.
19535
19536         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19537         (gcse_obstack): Renamed to cprop_obstack.
19538         (GNEW, GNEWVEC, GNEWVAR): Remove.
19539         (gmalloc): Remove.
19540         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19541         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19542         (gcse_alloc): Likewise, and rename to cprop_alloc.
19543         (alloc_gcse_men, free_gcse_mem): Remove.
19544         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19545         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19546         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19547
19548         * cprop.c (oprs_not_set_p): Remove.
19549         (mark_set, mark_clobber): Remove.
19550         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19551         (reg_not_set_p): New function.
19552         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19553         (cprop_insn): Likewise.
19554         (cprop_jump): Use FOR_EACH_EDGE.
19555
19556 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19557
19558         PR bootstrap/48403
19559         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19560         (rank_for_schedule): Use scheduled_insns vector instead of
19561         last_scheduled_insn.
19562         (ok_for_early_queue_removal): Likewise.
19563         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19564         we have a dbg_cnt.
19565         (choose_ready): Likewise.
19566         (commit_schedule): Use VEC_iterate.
19567         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19568         a dbg_cnt, use it and ensure the first insn is in the ready list.
19569         (haifa_sched_init): Allocate scheduled_insns.
19570         (sched_extend_ready_list): Don't allocate it; reserve space.
19571         (haifa_sched_finish): Free it.
19572
19573 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19574
19575         * optc-gen.awk: Always remove type from Variable entry before
19576         recording in var_seen.
19577
19578 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19579
19580         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19581         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19582         call to tidy_fallthru_edges.
19583
19584 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19585
19586         * doc/options.texi (ToLower): Document.
19587         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19588         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19589         * opts.h (cl_option): Add cl_tolower field.
19590         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19591         arguments with lowercase strings.
19592         * config/rx/rx.opt (mcpu=): Add ToLower.
19593         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19594         argument.
19595
19596 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19597
19598         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19599
19600 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19601
19602         * config/vax/vax.c: Include reload.h.
19603
19604 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19605
19606         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19607         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19608         (sparc_preferred_reload_class): New function.
19609
19610 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19611
19612         PR debug/48401
19613         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19614         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19615
19616 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19617
19618         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19619         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19620
19621 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19622
19623         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19624         (ASM_OUTPUT_ALIGNED_BSS): Define.
19625
19626 2011-04-03  Michael Matz  <matz@suse.de>
19627
19628         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19629         and next_slot members.
19630         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19631         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19632         (lto_streamer_cache_append): Declare.
19633         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19634         unsigned index, remove offset parameter, ensure that we append
19635         or update existing entries.
19636         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19637         parameter, update next_slot for append.
19638         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19639         parameter.
19640         (lto_streamer_cache_insert_at): Likewise.
19641         (lto_streamer_cache_append): New function.
19642         (lto_streamer_cache_lookup): Use unsigned index.
19643         (lto_streamer_cache_get): Likewise.
19644         (lto_record_common_node): Don't test tree_node_can_be_shared.
19645         (preload_common_node): Adjust call to lto_streamer_cache_insert.
19646         (lto_streamer_cache_delete): Don't free offsets member.
19647         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19648         (lto_output_string_with_length): Use lto_output_data_stream.
19649         (lto_output_tree_header): Remove ix parameter, don't write it.
19650         (lto_output_builtin_tree): Likewise.
19651         (lto_write_tree): Adjust callers to above, don't track and write
19652         offset, write unsigned index.
19653         (output_unreferenced_globals): Don't emit all global vars.
19654         (write_global_references): Use unsigned indices.
19655         (lto_output_decl_state_refs): Likewise.
19656         (write_symbol): Likewise.
19657         * lto-streamer-in.c (lto_input_chain): Move earlier.
19658         (input_function): Use unsigned index.
19659         (input_alias_pairs): Don't read and then ignore all global vars.
19660         (lto_materialize_tree): Remove ix_p parameter, don't read index,
19661         don't pass it back, use lto_streamer_cache_append.
19662         (lto_register_var_decl_in_symtab): Use unsigned index.
19663         (lto_register_function_decl_in_symtab): Likewise.
19664         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19665         index.
19666         (lto_get_builtin_tree): Don't read index, use
19667         lto_streamer_cache_append.
19668         (lto_read_tree): Adjust call to lto_materialize_tree.
19669
19670         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19671         don't use function calls in arguments to MIN.
19672
19673         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19674         twice.
19675
19676         * gimple.c (gimple_type_leader_entry): Mark deletable.
19677
19678 2011-04-03  Alan Modra  <amodra@gmail.com>
19679
19680         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19681
19682 2011-04-03  Michael Matz  <matz@suse.de>
19683
19684         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19685         an integer.
19686         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19687
19688 2011-04-03  Michael Matz  <matz@suse.de>
19689
19690         * cgraphbuild.c (record_reference): Canonicalize constructor values.
19691         * gimple-fold.c (canonicalize_constructor_val): Accept being called
19692         without function context.
19693         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19694         current_function_decl and cfun.
19695
19696 2011-04-03  Michael Matz  <matz@suse.de>
19697
19698         * tree.c (decl_init_priority_insert): Don't create entry for
19699         default priority.
19700         (decl_fini_priority_insert): Ditto.
19701         (fields_compatible_p, find_compatible_field): Remove.
19702         * tree.h (fields_compatible_p, find_compatible_field): Remove.
19703         * gimple.c (gimple_compare_field_offset): Adjust block comment.
19704
19705 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
19706
19707         * combine.c (try_combine): Remove useless local variable.
19708
19709 2011-04-03  Richard Guenther  <rguenther@suse.de>
19710             Ira Rosen  <ira.rosen@linaro.org>
19711
19712         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19713         non-variable offsets and compare the remaining bases of the two
19714         accesses instead of looking for exact same data-ref.
19715
19716 2011-04-02  Kai Tietz  <ktietz@redhat.com>
19717
19718         PR target/48416
19719         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19720
19721         * i386.c (ix86_is_msabi_thiscall): New helper function.
19722         (ix86_is_type_thiscall): New helper function.
19723         (ix86_comp_type_attributes): Handle thiscall for method-functions
19724         special.
19725         (init_cumulative_args): Likewise.
19726         (find_drap_reg): Likewise.
19727         (ix86_static_chain): Likewise.
19728         (x86_this_parameter): Likewise.
19729         (x86_output_mi_thunk): Likewise.
19730
19731 2011-04-01  Olivier Hainque  <hainque@adacore.com>
19732             Nicolas Setton  <setton@adacore.com>
19733             Eric Botcazou  <ebotcazou@adacore.com>
19734
19735         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19736         (add_gnat_descriptive_type_attribute): New function.
19737         (gen_array_type_die): Call it.
19738         (gen_enumeration_type_die): Likewise.
19739         (gen_struct_or_union_type_die): Likewise.
19740         (modified_type_die): Likewise.
19741         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19742         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19743         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19744
19745 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19746
19747         PR bootstrap/48148
19748         * dwarf2out.c (resolve_addr): Don't call force_decl_die
19749         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19750
19751         Revert:
19752         2011-03-17  Richard Guenther  <rguenther@suse.de>
19753
19754         PR bootstrap/48148
19755         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19756         origin for decls in other ltrans units.
19757         (input_varpool_node): Likewise.
19758
19759 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19760
19761         PR middle-end/48335
19762         * expr.c (expand_assignment): Handle all possibilities
19763         if TO_RTX is CONCAT.
19764         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19765         (store_split_bit_field): If SUBREG_REG (op0) or
19766         op0 itself has smaller mode than word, return it
19767         for offset 0 and const0_rtx for out-of-bounds stores.
19768         If word is const0_rtx, skip it.
19769
19770 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
19771
19772         * config/h8300/h8300.c (print_operand_address): Rename to...
19773         (h8300_print_operand_address): ...this. Make static. Adjust comments.
19774         Call h8300_print_operand and h8300_print_operand_address instead of
19775         print_operand and print_operand_address. Declare.
19776         (print_operand): Renake to...
19777         (h8300_print_operand): ...this. Make static. Adjust comments.
19778         Call h8300_print_operand instead of print_operand. Declare.
19779         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19780         (h8300_register_move_cost): Likewise.
19781         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19782         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19783         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19784         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19785         * config/h8300/h8300-protos.h (print_operand): Delete.
19786         (print_operand_address): Delete.
19787
19788 2011-04-01  Richard Henderson  <rth@redhat.com>
19789
19790         PR 48400
19791         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19792         in strict mode before dwarf4.  Re-order tests to early out
19793         before switching sections.
19794
19795 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19796
19797         * config/h8300/constraints.md: New file.
19798         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19799         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19800         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19801         * config/h8300/predicates.md (bit_operand): Likewise.
19802         (incdec_operand): Use satisfies_constraint_M and
19803         satisfies_constraint_O.  Don't use C code block.
19804         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19805         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19806         (compute_mov_length): Use satisfies_constraint_G.
19807         (fix_bit_operand): Use satisfies_constraint_U.
19808         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19809         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19810         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19811         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19812         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19813         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19814         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19815         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19816         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19817         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19818         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19819         (EXTRA_MEMORY_CONSTRAINT): Delete.
19820
19821 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19822             Michael Meissner  <meissner@linux.vnet.ibm.com>
19823
19824         PR target/48262
19825         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19826         operands, as per the specifications.
19827
19828         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19829         (vec_extract_evenv4sf): Ditto.
19830         (vec_extract_evenv8hi): Ditto.
19831         (vec_extract_evenv16qi): Ditto.
19832         (vec_extract_oddv4si): Ditto.
19833
19834 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19835
19836         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19837         high_pc attribute if the CU has no associated code. Only output
19838         DW_AT_entry_pc for CU if not generating strict dwarf and
19839         dwarf_version < 4.
19840
19841 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19842
19843         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19844         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19845         out of ...
19846         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19847         * final.c (final_start_function): Call the new function rather
19848         than using a NULL argument for dwarf2out_frame_debug.
19849
19850         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19851         that contains the prologue.
19852
19853         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19854         changed.  Print it in debugging output.
19855
19856         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19857
19858         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19859         Split most of the code into...
19860         (begin_move_insn): ... here.  New function.
19861         (ebb_sched_info): Add a pointer to it.
19862         * haifa-sched.c (scheduled_insns): New static variable.
19863         (sched_extend_ready_list): Allocate it.
19864         (schedule_block): Use it to record the order of scheduled insns.
19865         Perform RTL changes to move insns only after all scheduling
19866         decisions have been made.
19867         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19868         begin_move_insn field.
19869         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19870         * sched-int.h (struct haifa_sched_info): Remove second argument
19871         from begin_schedule_ready hook.  Add new member begin_move_insn.
19872         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19873         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19874
19875         * haifa-sched.c (prune_ready_list): New function, broken out of
19876         schedule_block.
19877         (schedule_block): Use it.
19878
19879 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19880
19881         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19882
19883 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19884
19885         * config.gcc (*-*-mingw*): Allow as option the
19886         posix threading model.
19887         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19888         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19889         definition.
19890         (CPP_SPEC): Add pthread/no-pthread handling.
19891         (LIB_SPEC): Likewise.
19892         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19893         (LIB_SPEC): Likewise.
19894         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19895         flag to pass -pthread option for shared libgcc build.
19896         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19897         for shared libgcc build.
19898         * config/i386/t-mingw-pthread: New file.
19899         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19900         New define to enable use of library pthread by default.
19901         * config/i386/mingw.opt (pthread): New driver option.
19902         (no-pthread): New driver option.
19903         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19904         * config/i386/mingw-w64.opt: Likewise.
19905
19906 2011-04-01  Gary Funck  <gary@intrepid.com>
19907
19908         * c-decl.c (grokdeclarator): Fix formatting.
19909
19910 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19911
19912         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19913         instead of n_operands.
19914         (set_storage_via_setmem): Likewise.
19915         * optabs.c (maybe_gen_insn): Likewise.
19916         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19917         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19918         (mips_expand_builtin_direct): Likewise.
19919         * config/spu/spu.c (expand_builtin_args): Likewise.
19920
19921 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19922
19923         * recog.h (insn_data_d): Add n_generator_args.
19924         * genoutput.c (data): Likewise.
19925         (output_insn_data): Print it.
19926         (max_opno, num_dups): Delete.
19927         (scan_operands): Just fill in "d->operand[...]".
19928         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19929
19930 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19931
19932         * gensupport.h (pattern_stats): New structure.
19933         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19934         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19935         (max_operand_1, max_operand_vec): Delete.
19936         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19937
19938 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19939
19940         * emit-rtl.c (emit_pattern_after_setloc): New function.
19941         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19942         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19943         (emit_pattern_after): New function.
19944         (emit_insn_after, emit_jump_insn_after): Call it.
19945         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19946         (emit_pattern_before_setloc): New function.
19947         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19948         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19949         Likewise.
19950         (emit_pattern_before): New function.
19951         (emit_insn_before, emit_jump_insn_before): Call it.
19952         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19953
19954 2011-03-31  Richard Henderson  <rth@redhat.com>
19955
19956         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19957         (dw_separate_line_info_entry): Remove.
19958         (enum dw_line_info_opcode): New.
19959         (dw_line_info_entry): Use it.
19960         (dw_line_info_table, dw_line_info_table_p): New.
19961         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19962         (line_info_table, line_info_label_num): Remove.
19963         (line_info_table_in_use): Remove.
19964         (separate_line_info_table): Remove.
19965         (separate_line_info_table_allocated): Remove.
19966         (separate_line_info_table_in_use): Remove.
19967         (LINE_INFO_TABLE_INCREMENT): Remove.
19968         (line_info_label_num): New.
19969         (cur_line_info_table): New.
19970         (text_section_line_info, cold_text_section_line_info): New.
19971         (separate_line_info): New.
19972         (SEPARATE_LINE_CODE_LABEL): Remove.
19973         (print_dwarf_line_table): Remove.
19974         (debug_dwarf): Don't dump it.
19975         (output_one_line_info_table): New.
19976         (output_line_info): Use it.
19977         (new_line_info_table): New.
19978         (set_cur_line_info_table): New.
19979         (dwarf2out_switch_text_section): Use it.
19980         (dwarf2out_begin_function): Likewise.
19981         (push_dw_line_info_entry): New.
19982         (dwarf2out_source_line): Rewrite for new line info tables.
19983         (dwarf2out_init): Remove dead initailizations.
19984
19985 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19986
19987         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19988         various flags.
19989         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19990         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19991         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19992         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19993         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19994         * opt-functions.awk (flag_init, switch_bit_fields): New.
19995         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19996         generate CL_MISSING_OK or CL_SAVE.
19997         * optc-gen.awk: Update to generate bit-field output as well as
19998         flags field.
19999         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20000         bit-field instead of CL_REJECT_DRIVER flag.
20001         * opts-common.c (generate_canonical_option,
20002         decode_cmdline_option): Use bit-fields instead of CL_* flags.
20003         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20004         instead of CL_REJECT_NEGATIVE flag.
20005         * toplev.c (print_switch_values): Use cl_report bit-field instead
20006         of CL_REPORT flag.
20007
20008 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20009
20010         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20011         a zero minimum index only if it is redundant.
20012
20013 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
20014
20015         PR rtl-optimization/48381
20016         * ira-color.c (assign_hard_reg): Use hard reg set intersection
20017         instead of ira_class_hard_reg_index for calculating conflicting
20018         hard registers.
20019
20020 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
20021
20022         * cprop.c: Clean up hash table building.
20023         (reg_avail_info): Remove.
20024         (oprs_available_p): Remove.
20025         (record_last_reg_set_info): Remove.
20026         (record_last_set_info): Remove.
20027         (reg_available_p): New function.
20028         (gcse_constant_p): Do not treat unfolded conditions as constants.
20029         (make_set_regs_unavailable): New function.
20030         (hash_scan_set): Simplify with new reg_available_p.
20031         (compute_hash_table_work): Traverse insns stream only once.
20032         Do not compute reg_avail_info. Traverse insns in reverse order.
20033         Record implicit sets after recording explicit sets from the block.
20034
20035 2011-03-31  Michael Matz  <matz@suse.de>
20036
20037         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20038
20039 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
20040
20041         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20042         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20043         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20044         (h8300_mode_dependent_address_p): New function.
20045         (h8300_get_index): Make static.
20046
20047 2011-03-31  Jeff Law  <law@redhat.com>
20048
20049         * reload1.c (elimination_effects): Fix typo in recent change.
20050
20051         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20052         typo potentially leading to null pointer dereference.
20053
20054         * caller-save.c (new_saved_hard_reg): Eliminate return value.
20055         (setup_save_areas): Corresponding changes to avoid useless
20056         assignments.
20057
20058         * jump.c (reversed_comparison_code_parts): Avoid successive return
20059         statements when REVERSE_CONDITION is defined.
20060
20061         * expr.c (expand_assignment): Avoid useless assignments.
20062         (expand_expr_real_1): Likewise.
20063         (expand_expr_real_2): Avoid useless statements.
20064
20065         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20066
20067         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20068
20069         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20070         statements.
20071
20072         * stmt.c (expand_expr_stmt): Avoid useless assignment.
20073
20074 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20075
20076         PR target/47109
20077         * doc/tm.texi.in (TARGET_VERSION): Remove.
20078         * doc/tm.texi: Regenerate.
20079         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20080         * collect2.c (main): Don't use TARGET_VERSION.
20081         * mips-tdump.c (main): Don't use TARGET_VERSION.
20082         * mips-tfile.c (main): Don't use TARGET_VERSION.
20083         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20084         * config/rs6000/vxworksae.h: Remove.
20085         * config/alpha/alpha.h (TARGET_VERSION): Remove.
20086         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20087         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20088         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20089         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20090         * config/arm/arm.h (TARGET_VERSION): Remove.
20091         * config/arm/coff.h (TARGET_VERSION): Remove.
20092         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20093         * config/arm/elf.h (TARGET_VERSION): Remove.
20094         * config/arm/freebsd.h (TARGET_VERSION): Remove.
20095         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20096         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20097         * config/arm/pe.h (TARGET_VERSION): Remove.
20098         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20099         * config/arm/semi.h (TARGET_VERSION): Remove.
20100         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20101         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20102         * config/arm/vxworks.h (TARGET_VERSION): Remove.
20103         * config/avr/avr.h (TARGET_VERSION): Remove.
20104         * config/bfin/bfin.h (TARGET_VERSION): Remove.
20105         * config/fr30/fr30.h (TARGET_VERSION): Remove.
20106         * config/frv/frv.h (TARGET_VERSION): Remove.
20107         * config/h8300/h8300.h (TARGET_VERSION): Remove.
20108         * config/i386/cygwin.h (TARGET_VERSION): Remove.
20109         * config/i386/darwin.h (TARGET_VERSION): Remove.
20110         * config/i386/darwin64.h (TARGET_VERSION): Remove.
20111         * config/i386/djgpp.h (TARGET_VERSION): Remove.
20112         * config/i386/freebsd.h (TARGET_VERSION): Remove.
20113         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20114         * config/i386/gnu.h (TARGET_VERSION): Remove.
20115         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20116         * config/i386/i386elf.h (TARGET_VERSION): Remove.
20117         * config/i386/linux.h (TARGET_VERSION): Remove.
20118         * config/i386/linux64.h (TARGET_VERSION): Remove.
20119         * config/i386/lynx.h (TARGET_VERSION): Remove.
20120         * config/i386/mingw32.h (TARGET_VERSION): Remove.
20121         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20122         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20123         * config/i386/netware.h (TARGET_VERSION): Remove.
20124         * config/i386/nto.h (TARGET_VERSION): Remove.
20125         * config/i386/openbsd.h (TARGET_VERSION): Remove.
20126         * config/i386/vxworks.h (TARGET_VERSION): Remove.
20127         * config/ia64/elf.h (TARGET_VERSION): Remove.
20128         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20129         * config/ia64/hpux.h (TARGET_VERSION): Remove.
20130         * config/ia64/linux.h (TARGET_VERSION): Remove.
20131         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20132         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20133         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20134         * config/lm32/lm32.h (TARGET_VERSION): Remove.
20135         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20136         * config/m32c/m32c.h (TARGET_VERSION): Remove.
20137         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20138         * config/m32r/m32r.h (TARGET_VERSION): Remove.
20139         * config/m68k/linux.h (TARGET_VERSION): Remove.
20140         * config/m68k/m68k.h (TARGET_VERSION): Remove.
20141         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20142         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20143         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20144         * config/mep/mep.h (TARGET_VERSION): Remove.
20145         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20146         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20147         * config/mips/iris6.h (MACHINE_TYPE): Remove.
20148         * config/mips/linux.h (TARGET_VERSION): Remove.
20149         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20150         * config/mips/vxworks.h (TARGET_VERSION): Remove.
20151         * config/mmix/mmix.h (TARGET_VERSION): Remove.
20152         * config/mn10300/linux.h (TARGET_VERSION): Remove.
20153         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20154         * config/pa/pa.h (TARGET_VERSION): Remove.
20155         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20156         * config/picochip/picochip.h (TARGET_VERSION): Remove.
20157         * config/rs6000/aix.h (TARGET_VERSION): Remove.
20158         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20159         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20160         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20161         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20162         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20163         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20164         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20165         * config/rs6000/linux.h (TARGET_VERSION): Remove.
20166         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20167         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20168         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20169         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20170         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20171         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20172         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20173         * config/s390/linux.h (TARGET_VERSION): Remove.
20174         * config/s390/s390.h (TARGET_VERSION): Remove.
20175         * config/s390/tpf.h (TARGET_VERSION): Remove.
20176         * config/score/score.h (TARGET_VERSION): Remove.
20177         * config/sh/linux.h (TARGET_VERSION): Remove.
20178         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20179         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20180         * config/sh/sh.h (TARGET_VERSION): Remove.
20181         * config/sh/sh64.h (TARGET_VERSION): Remove.
20182         * config/sh/superh.h (TARGET_VERSION): Remove.
20183         * config/sh/vxworks.h (TARGET_VERSION): Remove.
20184         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20185         * config/sparc/linux.h (TARGET_VERSION): Remove.
20186         * config/sparc/linux64.h (TARGET_VERSION): Remove.
20187         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20188         TARGET_NAME32, TARGET_NAME): Remove.
20189         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20190         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20191         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20192         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20193         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20194         * config/spu/spu.h (TARGET_VERSION): Remove.
20195         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20196         * config/v850/v850.h (TARGET_VERSION): Remove.
20197         * config/vax/linux.h (TARGET_VERSION): Remove.
20198         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20199         * config/xtensa/elf.h (TARGET_VERSION): Remove.
20200         * config/xtensa/linux.h (TARGET_VERSION): Remove.
20201
20202 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20203
20204         PR target/48142
20205         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20206         frame-related from frame-unrelated adjustments to the stack pointer.
20207
20208 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
20209
20210         * common.opt (fdebug-types-section): Move earlier.
20211         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20212
20213 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
20214
20215         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20216         var.
20217
20218 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
20219
20220         * tree.h (CASE_CHAIN): Define.
20221         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20222         (gimple_redirect_edge_and_branch): Likewise.
20223
20224 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20225
20226         PR middle-end/48367
20227         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20228         calculation.
20229
20230 2011-03-30  Jeff Law  <law@redhat.com>
20231
20232         * PR bootstrap/48371
20233         * reload1.c (reload): Fix botch in last change.
20234
20235         * reload.h (struct reload): Fix typo introduced in last change.
20236
20237 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20238
20239         * config/arm/arm.opt (mhard-float, msoft-float): Mark
20240         Undocumented.  Remove help text.
20241         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20242         -mhard-float.
20243
20244 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20245
20246         * doc/options.texi (NegativeAlias): Document.
20247         (Alias): Mention NegativeAlias.
20248         * opt-functions.awk: Handle NegativeAlias.
20249         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20250         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20251         * opts.h (CL_NEGATIVE_ALIAS): Define.
20252         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20253         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20254         OPT_mspe_.
20255         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20256         Alias entries.
20257         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20258         mno-spe and mno-isel instead of mspe=no and -misel=no.
20259
20260 2011-03-29  Mark Wielaard  <mjw@redhat.com>
20261
20262         * common.opt (fdebug-types-section): New flag.
20263         * doc/invoke.texi: Document new -fno-debug-types-section flag.
20264         * dwarf2out.c (use_debug_types): New define.
20265         (struct die_struct): Mark die_id with GTY desc use_debug_types.
20266         (print_die): Guard output of type unit signatures using
20267         use_debug_types.
20268         (build_abbrev_table): Replace assert of dwarf_version >= 4
20269         with assert on use_debug_types.
20270         (size_of_die): Likewise.
20271         (unmark_dies): Likewise.
20272         (value_format): Decide AT_ref_external form on use_debug_types.
20273         (output_die): Replace dwarf_version version check guard with
20274         use_debug_types where appropriate.
20275         (modified_type_die): Likewise.
20276         (gen_reference_type_die): Likewise.
20277         (dwarf2out_start_source_file): Likewise.
20278         (dwarf2out_end_source_file): Likewise.
20279         (prune_unused_types_walk_attribs): Likewise.
20280         (dwarf2out_finish): Likewise.
20281
20282 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20283
20284         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20285
20286 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20287
20288         PR rtl-optimization/48332
20289         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20290         mode of input operand N and modeN to its actual mode.
20291
20292 2011-03-30  Jeff Law  <law@redhat.com>
20293
20294         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20295         define accessor macro.
20296         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20297         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20298         (reg_equiv_init): Likewise.
20299         (reg_equivs_size): New variable.
20300         (reg_equiv_init_size): Remove.
20301         (allocate_initial_values): Move prototype to here from....
20302         * integrate.h (allocate_initial_values): Remove prototype.
20303         * integrate.c: Include reload.h.
20304         (allocate_initial_values): Corresponding changes.
20305         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20306         (fix_reg_equiv_init, no_equiv): Corresponding changes.
20307         (update_equiv_regs): Corresponding changes.
20308         (ira): Corresponding changes.
20309         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20310         (push_secondary_reload): Corresponding changes.
20311         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20312         (make_memloc, find_reloads_address): Corresponding changes.
20313         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20314         (find_reloads_address_1): Corresponding changes.
20315         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20316         (refers_to_regno_for_reload_p): Corresponding changes.
20317         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20318         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20319         * reload1.c: Include ggc.h.
20320         (grow_reg_equivs): New function.
20321         (replace_pseudos_in, reload): Corresponding changes.
20322         (calculate_needs_all_insns, alter_regs): Corresponding changes.
20323         (eliminate_regs_1, elimination_effects): Corresponding changes.
20324         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20325         (delete_output_reload): Likewise.
20326         * caller-save.c (mark_referenced_regs): Corresponding changes.
20327         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20328         * frv/predicates.md (frv_load_operand): Corresponding changes.
20329         * microblaze/microblaze.c (double_memory_operand): Corresponding
20330         changes.
20331         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20332         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20333         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20334         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20335         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20336         changes.
20337         * pa/pa.c (emit_move_sequence): Corresponding changes.
20338         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20339
20340 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20341
20342         PR target/47551
20343         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20344         structure modes.  Don't check neon_vector_mem_operand for
20345         vector or structure modes.
20346
20347 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20348             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20349
20350         PR target/43590
20351         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20352         operand 1 and reshuffle the operands to match.
20353         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20354
20355 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20356
20357         PR driver/48208
20358         * config/c.opt (F): Added 'Driver' to -F option.
20359
20360         PR driver/48260
20361         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20362           handler function.
20363         * config/darwin.opt: Added '-arch' option.
20364
20365 2011-03-30  Nick Clifton  <nickc@redhat.com>
20366
20367         * config/rx/rx.md: Add peepholes and patterns to combine
20368         extending loads and simple arithmetic instructions.
20369         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20370         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20371         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20372         modes to use pre-decrement and post-increment addressing.
20373         (rx_is_restricted_memory_address): Add range checking of REG+INT
20374         addresses.
20375         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20376         (rx_memory_move_cost): Adjust cost of stores.
20377         (rx_adjust_insn_length): New function.
20378
20379 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20380
20381         PR c/48305
20382         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20383         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20384         matching arg00/arg01 types.
20385
20386 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20387
20388         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20389         last_location to UNKNOWN_LOCATION.
20390
20391 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20392
20393         PR target/48349
20394         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20395         FLOAT_SSE_REGS.
20396
20397 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20398             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20399
20400         PR bootstrap/48337
20401         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20402         Init(PROCESSOR_V7).
20403         (sparc_cpu): Likewise.
20404         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20405         PROCESSOR_V7.
20406
20407 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20408
20409         PR target/48336
20410         PR middle-end/48342
20411         PR rtl-optimization/48345
20412         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20413         hard regs for given mode from profitable regs when doing secondary
20414         allocation.
20415
20416 2011-03-29  Jeff Law  <law@redhat.com>
20417
20418         PR bootstrap/48327
20419         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20420         do_not_duplicate field.
20421         (lookup_redirection_data): Corresponding changes.
20422         (create_duplicates): Always create a template block.
20423         (redirect_edges): Remove code which reused the original block
20424         when it was going to become unreachable code.
20425         (thread_block): Don't set do_not_duplicate field.
20426
20427 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20428
20429         * lto-opts.c (register_user_option_p, lto_register_user_option):
20430         Make type argument unsigned.
20431         * lto-streamer.h (lto_register_user_option): Make type argument
20432         unsigned.
20433         * opth-gen.awk: Make CL_* macros unsigned.
20434         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20435         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20436         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20437         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20438         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20439         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20440         (find_opt): Make lang_mask argument unsigned.
20441
20442 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20443
20444         PR rtl-optimization/48331
20445         PR rtl-optimization/48334
20446         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20447         for any used algorithm.
20448
20449 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20450
20451         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20452         to parent_max.
20453
20454 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20455
20456         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20457         (alpha_option_override): Don't set alpha_sr_alias_set.
20458         (emit_frame_store_1): Use gen_frame_mem rather than calling
20459         set_mem_alias_set.
20460         (alpha_expand_epilogue): Ditto.
20461
20462 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20463
20464         PR tree-optimization/48290
20465         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20466         vectorization, check that relevant phis in the basic block after
20467         the inner loop are really inner loop's exit phis.
20468
20469 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20470
20471         PR debug/48190
20472         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20473         (cached_dw_loc_list_def): New structure.
20474         (cached_dw_loc_list): New typedef.
20475         (cached_dw_loc_list_table): New variable.
20476         (cached_dw_loc_list_table_hash): New function.
20477         (cached_dw_loc_list_table_eq): Likewise.
20478         (add_location_or_const_value_attribute): Take a bool cache_p.
20479         Cache the list when the parameter is true.
20480         (gen_formal_parameter_die): Update caller.
20481         (gen_variable_die): Likewise.
20482         (dwarf2out_finish): Likewise.
20483         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20484         while generating debug info for the decl.
20485         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20486         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20487         (resolve_addr): Cache the result of resolving a chain of
20488         location lists.
20489
20490 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20491
20492         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20493         conflict object hard regset nodes have intersecting hard reg sets.
20494
20495         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20496         after regstat_init_n_sets_and_refs.
20497
20498         * ira.c: Add more comments at the top.
20499         (setup_stack_reg_pressure_class, setup_pressure_classes):
20500         Add comments how we compute the register pressure classes.
20501         (setup_allocno_and_important_classes): Add more comments.
20502         (setup_class_translate_array, reorder_important_classes)
20503         (setup_reg_class_relations): Add comments.
20504
20505         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20506         start of the file.
20507
20508         * ira-color.c: Add 2011 to the Copyright line.
20509         (assign_hard_reg):  Add more comments.
20510         (improve_allocation): Ditto.
20511
20512         * ira-costs.c: Add 2011 to the Copyright line.
20513         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20514         comments.
20515         (setup_regno_cost_classes_by_mode): Ditto.
20516
20517         Initial patches from ira-improv branch:
20518
20519         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20520
20521         * ira-build.c (ira_create_object): Remove initialization of
20522         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20523         (ira_create_allocno): Remove initialization of
20524         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20525         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20526         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20527         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20528         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20529         Initialize ALLOCNO_ADD_DATA.
20530         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20531         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20532         ALLOCNO_REG.
20533         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20534         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20535
20536         * ira.c (ira_reallocate): Remove.
20537         (setup_pressure_classes): Call
20538         ira_init_register_move_cost_if_necessary.  Use
20539         ira_register_move_cost instead of ira_get_register_move_cost.
20540         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20541         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20542
20543         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20544         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20545         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20546         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20547         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20548         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20549         Fix formatting.
20550         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20551         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20552         (struct allocno_color_data): New.
20553         (allocno_color_data_t): New typedef.
20554         (allocno_color_data): New definition.
20555         (ALLOCNO_COLOR_DATA): New macro.
20556         (struct object_color_data): New.
20557         (object_color_data_t): New typedef.
20558         (object_color_data): New definition.
20559         (OBJECT_COLOR_DATA): New macro.
20560         (update_copy_costs, calculate_allocno_spill_cost): Call
20561         ira_init_register_move_cost_if_necessary.  Use
20562         ira_register_move_cost instead of ira_get_register_move_cost.
20563         (move_spill_restore, update_curr_costs): Ditto.
20564         (allocno_spill_priority): Make it inline.
20565         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20566         (struct coalesce_data, coalesce_data_t): New.
20567         (allocno_coalesce_data): New definition.
20568         (ALLOCNO_COALESCE_DATA): New macro.
20569         (merge_allocnos, coalesced_allocno_conflict_p): Use
20570         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20571         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20572         (coalesce_allocnos): Ditto.
20573         (setup_coalesced_allocno_costs_and_nums): Ditto.
20574         (collect_spilled_coalesced_allocnos): Ditto.
20575         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20576         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20577         (coalesce_spill_slots): Ditto.
20578         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20579         free allocno_coalesce_data.
20580
20581         * ira-conflicts.c: Fix formatting.
20582         (process_regs_for_copy): Call
20583         ira_init_register_move_cost_if_necessary.  Use
20584         ira_register_move_cost instead of ira_get_register_move_cost.
20585         (build_object_conflicts): Optimize.
20586
20587         * ira-costs.c (record_reg_classes): Optimize.  Call
20588         ira_init_register_move_cost_if_necessary.  Use
20589         ira_register_move_cost, ira_may_move_in_cost, and
20590         ira_may_move_out_cost instead of ira_get_register_move_cost and
20591         ira_get_may_move_cost.
20592         (record_address_regs): Ditto.
20593         (scan_one_insn): Optimize.
20594         (find_costs_and_classes): Optimize.
20595         (process_bb_node_for_hard_reg_moves): Call
20596         ira_init_register_move_cost_if_necessary.  Use
20597         ira_register_move_cost instead of ira_get_register_move_cost.
20598
20599         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20600         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20601         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20602         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20603         definitions.
20604         (ira_initiate_emit_data, ira_finish_emit_data)
20605         (create_new_allocno): New functions.
20606         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20607         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20608         Use ira_register_move_cost instead of ira_get_register_move_cost.
20609
20610         * ira-int.h: Fix some comments.
20611         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20612         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20613         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20614         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20615         add_data.
20616         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20617         bitfield after mode.  Make hard_regno a short int.  Make
20618         hard_regno short.  Remove first_coalesced_allocno and
20619         next_coalesced_allocno.  Move mem_optimized_dest_p,
20620         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20621         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20622         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20623         temp, colorable_p.  Add new member add_data.
20624         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20625         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20626         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20627         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20628         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20629         (ALLOCNO_ADD_DATA): New macro.
20630         (ira_emit_data_t): New typedef.
20631         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
20632         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20633         from struct ira_allocno.
20634         (ALLOCNO_EMIT_DATA): New macro.
20635         (ira_allocno_emit_data, allocno_emit_reg): New.
20636         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20637         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20638         (OBJECT_ADD_DATA): New macro.
20639         (ira_reallocate): Remove.
20640         (ira_initiate_emit_data, ira_finish_emit_data): New.
20641         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20642         (ira_init_register_move_cost_if_necessary): New.
20643         (ira_object_conflict_iter_next): Merge into
20644         ira_object_conflict_iter_cond.
20645         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20646
20647         * ira-live.c (process_single_reg_class_operands): Call
20648         ira_init_register_move_cost_if_necessary.  Use
20649         ira_register_move_cost instead of ira_get_register_move_cost.
20650
20651         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20652
20653         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20654
20655         * ira-costs.c: Fix formatting.
20656         (cost_classes, cost_classes_num): Remove.
20657         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20658         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20659         (cost_classes_del, cost_classes_htab): New.
20660         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20661         (initiate_regno_cost_classes, setup_cost_classes): New.
20662         (setup_regno_cost_classes_by_aclass): New.
20663         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20664         (record_reg_classes): Use regno_cost_classes instead of
20665         cost_classes.  Move checking opposite operand up.
20666         (record_address_regs): Use regno_cost_classes
20667         instead of cost_classes.
20668         (scan_one_insn): Ditto.  Use always general register.
20669         (print_allocno_costs): Use regno_cost_classes instead of
20670         cost_classes.
20671         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
20672         (find_costs_and_classes): Set up cost classes for each registers.
20673         Use also their mode for this.  Use regno_cost_classes instead of
20674         cost_classes.
20675         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20676         cost_classes.
20677         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20678         (ira_costs, ira_set_pseudo_classes): Call
20679         initiate_regno_cost_classes and finish_regno_cost_classes.
20680
20681         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20682
20683         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20684
20685         * target.def (ira_cover_classes): Remove.
20686
20687         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20688
20689         * doc/tm.texi.in: Ditto.
20690
20691         * ira-conflicts.c: Remove mentioning cover classes from the file.
20692         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
20693         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
20694
20695         * targhooks.c (default_ira_cover_classes): Remove.
20696
20697         * targhooks.h (default_ira_cover_classes): Ditto.
20698
20699         * haifa-sched.c: Remove mentioning cover classes from the file.
20700         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20701         ira_pressure_classes and ira_pressure_classes_num instead of
20702         ira_reg_class_cover_size and ira_reg_class_cover.  Use
20703         sched_regno_pressure_class instead of sched_regno_cover_class.
20704         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20705         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20706
20707         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
20708         classes from the file.
20709         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20710         (struct object_hard_regs, struct object_hard_regs_node): New.
20711         (struct ira_object): New members profitable_hard_regs,
20712         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20713         (struct ira_allocno): Rename cover_class to aclass.  Rename
20714         cover_class_cost and updated_cover_class_cost to class_cost and
20715         updated_class_cost.  Remove splay_removed_p and
20716         left_conflict_size.  Add new members colorable_p.
20717         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20718         (ALLOCNO_COLORABLE_P): New macro.
20719         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20720         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20721         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20722         (OBJECT_...): Rename parameter C to O.
20723         (OBJECT_PROFITABLE_HARD_REGS): New macro.
20724         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20725         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20726         (struct target_ira_int): New members x_ira_max_memory_move_cost,
20727         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20728         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20729         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20730         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
20731         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
20732         x_ira_reg_class_subunion.
20733         (ira_max_memory_move_cost, ira_max_register_move_cost)
20734         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20735         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20736         (ira_important_class_nums, ira_reg_class_superunion): New macros.
20737         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20738         (ira_reg_class_union): Rename to ira_reg_class_subunion.
20739         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20740         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20741         (ira_tune_allocno_costs_and_cover_classes): Rename to
20742         ira_tune_allocno_costs.
20743         (ira_debug_hard_regs_forest): New.
20744         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20745         (ira_object_conflict_iter_next): Fix comments.
20746         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20747         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20748         cover_class to aclass.
20749         (ira_allocate_and_accumulate_costs): Ditto.
20750         (ira_allocate_and_set_or_copy_costs): Ditto.
20751
20752         * opts.c (decode_options): Remove ira_cover_class check.
20753
20754         * ira-color.c: Remove mentioning cover classes from the file.  Use
20755         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20756         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20757         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20758         (splay-tree.h): Remove include.
20759         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20760         before copy_freq_compare_func.
20761         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20762         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20763         New definitions.
20764         (hard_regs_roots, hard_regs_node_vec): Ditto.
20765         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20766         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20767         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20768         (create_new_object_hard_regs_node): Ditto.
20769         (add_new_object_hard_regs_node_to_forest): Ditto.
20770         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20771         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20772         Ditto.
20773         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20774         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20775         (remove_unused_object_hard_regs_nodes): Ditto.
20776         (enumerate_object_hard_regs_nodes): Ditto.
20777         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20778         (object_hard_regs_subnode_t): Ditto.
20779         (struct object_hard_regs_subnode): Ditto.
20780         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20781         (setup_object_hard_regs_subnode_index): Ditto.
20782         (get_object_hard_regs_subnodes_num): Ditto.
20783         (form_object_hard_regs_nodes_forest): Ditto.
20784         (finish_object_hard_regs_nodes_tree): Ditto.
20785         (finish_object_hard_regs_nodes_forest): Ditto.
20786         (allocnos_have_intersected_live_ranges_p): Rename to
20787         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20788         (pseudos_have_intersected_live_ranges_p): Rename to
20789         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20790         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20791         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20792         (update_copy_costs): Remove assert.  Skip cost update if the hard
20793         reg does not belong the class.
20794         (assign_hard_reg): Process only profitable hard regs.
20795         (uncolorable_allocnos_num): Make it scalar.
20796         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20797         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20798         and ira_reg_class_max_nregs.
20799         (bucket_allocno_compare_func): Check frequency first.
20800         (sort_bucket): Add compare function as a parameter.
20801         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20802         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20803         (push_allocno_to_stack): Rewrite for checking new allocno
20804         colorability.
20805         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20806         (push_only_colorable): Pass new parameter to sort_bucket.
20807         (push_allocno_to_spill): Remove.
20808         (allocno_spill_priority_compare): Make it inline and rewrite.
20809         (splay_tree_allocate, splay_tree_free): Remove.
20810         (allocno_spill_sort_compare): New function.
20811         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20812         build and use splay tree.  Choose first allocno in uncolorable
20813         allocno bucket to spill.  Remove setting spill cost.
20814         (all_conflicting_hard_regs): Remove.
20815         (setup_allocno_available_regs_num): Check only profitable hard
20816         regs.  Print info about hard regs nodes.
20817         (setup_allocno_left_conflicts_size): Remove.
20818         (put_allocno_into_bucket): Don't call
20819         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20820         (improve_allocation): New.
20821         (color_allocnos): Call setup_profitable_hard_regs,
20822         form_object_hard_regs_nodes_forest, improve_allocation,
20823         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20824         (print_loop_title): Use pressure classes.
20825         (color_allocnso): Ditto.
20826         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20827         and allocnos_for_spilling.
20828         (ira_sort_regnos_for_alter_reg): Don't setup members
20829         {first,next}_coalesced_allocno.
20830         (color): Remove allocating and freeing removed_splay_allocno_vec.
20831         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20832         prohibited_class_mode_regs.
20833
20834         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20835         formatting.
20836         (update_allocno_pressure_excess_length): Use pressure classes.
20837         (inc_register_pressure, dec_register_pressure): Check for pressure
20838         class.
20839         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20840         pressure class.  Use ira_reg_class_nregs instead of
20841         ira_reg_class_max_nregs.
20842         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20843         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20844         (single_reg_class): Use ira_reg_class_nregs instead of
20845         ira_reg_class_max_nregs.
20846         (process_bb_node_lives): Use pressure classes.
20847
20848         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20849         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20850         (change_loop): Use pressure classes.
20851         (modify_move_list): Call ira_set_allocno_class instead of
20852         ira_set_allocno_cover_class.
20853
20854         * ira-build.c: Remove mentioning cover classes from the file.  Use
20855         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20856         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20857         ALLOCNO_UPDATED_CLASS_COST instead of
20858         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20859         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20860         (ira_create_allocno): Remove initialization of
20861         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20862         ALLOCNO_COLORABLE_P.
20863         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20864         Update conflict regs for the objects.
20865         (create_cap_allocno): Remove assert.  Don't propagate
20866         ALLOCNO_AVAILABLE_REGS_NUM.
20867         (ira_free_allocno_costs): New function.
20868         (finish_allocno): Change a part of code into call of
20869         ira_free_allocno_costs.
20870         (low_pressure_loop_node_p): Use pressure classes.
20871         (object_range_compare_func): Don't compare classes.
20872         (setup_min_max_conflict_allocno_ids): Ditto.
20873
20874         * loop-invariant.c: Remove mentioning cover classes from the file.
20875         Use ira_pressure_classes and ira_pressure_classes_num instead of
20876         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20877         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20878         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20879         Use reg_allocno_class instead of reg_cover_class.
20880         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20881         STACK_REG_COVER_CLASS.
20882         (get_regno_cover_class): Rename to get_regno_pressure_class.
20883         (move_loop_invariants): Initialize and finalize regstat.
20884
20885         * ira.c: Remove mentioning cover classes from the file.  Add
20886         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20887         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20888         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20889         setup_class_subset_and_memory_move_costs.
20890         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20891         (setup_cover_and_important_classes): Rename to
20892         setup_allocno_and_important_classes.
20893         (setup_class_translate_array): New.
20894         (setup_class_translate): Call it for allocno and pressure classes.
20895         (cover_class_order): Rename to allocno_class_order.
20896         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20897         of ira_class_translate.
20898         (reorder_important_classes): Set up ira_important_class_nums.
20899         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20900         (print_class_cover): Rename to print_classes.  Add parameter.
20901         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20902         Print pressure classes too.
20903         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20904         setup_reg_subclasses.
20905         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20906         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20907         (setup_prohibited_class_mode_regs): Use
20908         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20909         (clarify_prohibited_class_mode_regs): New function.
20910         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20911         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20912         (ira_init_once): Initialize them.
20913         (free_register_move_costs): Process them.
20914         (ira_init): Move calls of find_reg_classes and
20915         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20916         Call clarify_prohibited_class_mode_regs.
20917         (ira_no_alloc_reg): Remove.
20918         (too_high_register_pressure_p): Use pressure classes.
20919
20920         * sched-deps.c: Remove mentioning cover classes from the file.
20921         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20922         ira_pressure_classes and ira_pressure_classes_num instead of
20923         ira_reg_class_cover_size and ira_reg_class_cover.
20924         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20925         sched_regno_pressure_class instead of sched_regno_cover_class.
20926         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20927         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20928
20929         * ira.h: Add 2010 to Copyright.
20930         (ira_no_alloc_reg): Remove external.
20931         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20932         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20933         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20934         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20935         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20936         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20937         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20938         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20939         x_ira_no_alloc_regs.
20940         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20941         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20942         ira_allocno_classes_num and ira_allocno_classes.
20943         (ira_class_translate): Rename to ira_allocno_class_translate.
20944         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20945         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20946         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20947         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20948         (ira_no_alloc_regs): New.
20949
20950         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20951         classes from the file.  Use ALLOCNO_CLASS instead of
20952         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20953         ALLOCNO_COVER_CLASS_COST.
20954         (regno_cover_class): Rename to regno_aclass.
20955         (record_reg_classes): Use ira_reg_class_subunion instead of
20956         ira_reg_class_union.
20957         (record_address_regs): Check overflow.
20958         (scan_one_insn): Ditto.
20959         (print_allocno_costs): Print total mem cost fore regional allocation.
20960         (print_pseudo_costs): Use REG_N_REFS.
20961         (find_costs_and_classes): Use classes intersected with them on the
20962         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20963         ira_reg_class_union.  Use ira_allocno_class_translate and
20964         regno_aclass instead of ira_class_translate and regno_cover_class.
20965         Modify code for finding regno_aclass.  Setup preferred classes for
20966         the next pass.
20967         (setup_allocno_cover_class_and_costs): Rename to
20968         setup_allocno_class_and_costs.  Use regno_aclass instead of
20969         regno_cover_class.  Use ira_set_allocno_class instead of
20970         ira_set_allocno_cover_class.
20971         (init_costs, finish_costs): Use regno_aclass instead of
20972         regno_cover_class.
20973         (ira_costs): Use setup_allocno_class_and_costs instead of
20974         setup_allocno_cover_class_and_costs.
20975         (ira_tune_allocno_costs_and_cover_classes): Rename to
20976         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20977         by processing objects.  Use ira_reg_class_max_nregs instead of
20978         ira_reg_class_nregs.
20979
20980         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20981
20982         * sched-int.h: Remove mentioning cover classes from the file.
20983         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20984
20985         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20986         classes from the file.
20987         (struct reg_pref): Rename coverclass into allocnoclass.
20988         (reg_cover_class): Rename to reg_allocno_class.
20989
20990         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20991
20992         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20993
20994         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20995
20996         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20997
20998         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20999
21000         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21001
21002         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21003
21004         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21005
21006         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21007
21008         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21009
21010         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21011         (i386_ira_cover_classes): Ditto.
21012
21013         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21014
21015         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21016
21017         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21018
21019         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21020
21021         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21022
21023         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21024
21025         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21026         (mips_ira_cover_classes): Ditto.
21027
21028         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21029
21030         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21031
21032         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21033
21034         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21035
21036         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21037
21038         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21039         (IRA_COVER_CLASSES_VSX): Ditto.
21040
21041         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21042         (rs6000_ira_cover_classes): Ditto.
21043
21044         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21045
21046         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21047
21048         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21049
21050         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21051
21052         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21053
21054         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21055
21056         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21057
21058         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21059
21060         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21061
21062         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21063
21064 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
21065
21066         PR debug/48253
21067         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21068         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21069         dw_fde_unlikely_section_end_label, cold_in_std_section,
21070         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21071         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21072         fields.
21073         (output_fde): Use dw_fde_second_{begin,end} if second is
21074         true, otherwise dw_fde_{begin,end}.
21075         (output_call_frame_info): Test dw_fde_second_begin != NULL
21076         instead of dw_fde_switched_sections.
21077         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21078         fields, initialize new fields.  Initialize in_std_section
21079         unconditionally from the first partition.
21080         (dwarf2out_end_epilogue): Don't override dw_fde_end when
21081         dw_fde_second_begin is non-NULL.
21082         (dwarf2out_switch_text_section): Stop initializing removed
21083         dw_fde_struct fields, initialize new fields, initialize
21084         also dw_fde_end here.  Set dw_fde_switch_cfi even when
21085         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
21086         (struct var_loc_list_def): Add last_before_switch field.
21087         (arange_table, arange_table_allocated, arange_table_in_use,
21088         ARANGE_TABLE_INCREMENT, add_arange): Removed.
21089         (size_of_aranges): Count !in_std_section and !second_in_std_section
21090         hunks in fdes, instead of looking at arange_table_in_use.
21091         (output_aranges): Add aranges_length argument, don't call
21092         size_of_aranges here.  Instead of using aranges_table*
21093         emit ranges for fdes when !in_std_section resp.
21094         !second_in_std_section.
21095         (dw_loc_list): Break ranges crossing section switch.
21096         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
21097         use dw_fde_second_end instead of dw_fde_end as end of last range.
21098         (gen_subprogram_die): Don't call add_arange.  Use
21099         dw_fde_{begin,end} for first partition and if switched
21100         section dw_fde_second_{begin,end} for the second.
21101         (var_location_switch_text_section_1,
21102         var_location_switch_text_section): New functions.
21103         (dwarf2out_begin_function): Initialize cold_text_section even
21104         when function_section () isn't text_section.
21105         (prune_unused_types): Don't walk arange_table.
21106         (dwarf2out_finish): Don't needlessly test
21107         flag_reorder_blocks_and_partition when testing cold_text_section_used.
21108         If info_section_emitted, call size_of_aranges and if it indicates
21109         non-empty .debug_aranges, call output_aranges with the computed
21110         size.  Stop using removed dw_fde_struct fields, use
21111         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21112         for second.
21113
21114         PR debug/48203
21115         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21116         create ENTRY_VALUE if incoming or address of incoming's MEM
21117         is a hard REG.
21118         * dwarf2out.c (mem_loc_descriptor): Don't emit
21119         DW_OP_GNU_entry_value of DW_OP_fbreg.
21120         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21121         on ENTRY_VALUE is able to find the canonical parameter VALUE.
21122         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21123         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21124         ENTRY_VALUE_EXPs.
21125         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21126         is a REG_P or MEM_P with REG_P address, compute hash directly
21127         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21128         (preserve_only_constants): Don't clear VALUES forwaring
21129         ENTRY_VALUE to some other VALUE.
21130
21131 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
21132
21133         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21134         instead of GEN_INT.
21135
21136 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21137
21138         * cfgexpand.c (expand_gimple_cond): Always set the source location and
21139         block before expanding the statement.
21140         (expand_gimple_stmt_1): Likewise.  Set them here...
21141         (expand_gimple_stmt): ...and not here.  Tidy.
21142         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21143         unknown.
21144
21145 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21146
21147         * Makefile.in: New rule for cprop.o.
21148         * gcse.c: Move constant/copy propagation to cprop.c.
21149         (compute_local_properties): Only handle expression tables.
21150         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21151         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21152         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21153         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21154         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21155         compute_cprop_data, find_used_regs, try_replace_reg,
21156         find_avail_set, cprop_jump, constprop_register, cprop_insn,
21157         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21158         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21159         find_bypass_set, reg_killed_on_edge, bypass_block,
21160         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21161         execute_rtl_cprop, pass_rtl_cprop): Move to...
21162         * cprop.c: ...here.  New file, constant/copy propagation for RTL
21163         moved from gcse.c to here with minor cleanups in duplicated code.
21164
21165 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21166
21167         * config/i386/i386.c (flag_opts): Fix a typo in
21168         -mavx256-split-unaligned-store.
21169
21170 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21171
21172         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21173         LIBCALL_VALUE): Remove macros.
21174         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21175         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21176         (h8300_function_value, h8300_libcall_value,
21177         h8300_function_value_regno_p): New functions.
21178
21179 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21180
21181         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21182
21183 2011-03-28  Jeff Law  <law@redhat.com>
21184
21185         * tree-ssa-threadupdate.c (redirect_edges): Call
21186         create_edge_and_update_destination_phis as needed.
21187         (create_edge_and_update_destination_phis): Accept new BB argument.
21188         All callers updated.
21189         (thread_block): Do not update the profile when threading around
21190         intermediate blocks.
21191         (thread_single_edge): Likewise.
21192         (determine_bb_domination_status): If BB is not a successor of the
21193         loop header, return NONDOMINATING.
21194         (register_jump_thread): Note when we register a jump thread around
21195         an intermediate block.
21196         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21197         (thread_across_edge): Use it.
21198
21199 2011-03-28  Tristan Gingold  <gingold@adacore.com>
21200
21201         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21202         when for_return is 2.
21203
21204 2011-03-28  Jeff Law  <law@redhat.com>
21205
21206         * var-tracking.c (canonicalize_values_mark): Delete unused
21207         lhs assignment.
21208         (canonicalize_values_star, set_variable_part): Likewise.
21209         (clobber_variable_part, delete_variable_part): Likewise.
21210
21211 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21212
21213         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21214
21215 2011-03-28  Martin Jambor  <mjambor@suse.cz>
21216
21217         * tree-inline.c (expand_call_inline): Do not check that destination
21218         node is analyzed.
21219         (optimize_inline_calls): Assert that destination node is analyzed.
21220         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21221         not call tree_lowering_passes.
21222         * cgraph.h (cgraph_analyze_function): Declare.
21223         * cgraphunit.c (cgraph_analyze_function): Make public.
21224
21225 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
21226
21227         * config/sparc/sparc-opts.h: New.
21228         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21229         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21230         (sparc_option_override): Store processor_type enumeration rather
21231         than string in cpu_default.  Remove name and enumeration from
21232         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
21233         without using sparc_select.  Use target_flags_explicit instead of
21234         fpu_option_set.
21235         * config/sparc/sparc.h (enum processor_type): Move to
21236         sparc-opts.h.
21237         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21238         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21239         HeaderInclude entry.
21240         (mcpu=, mtune=): Use Var and Enum.
21241         (sparc_processor_type): New Enum and EnumValue entries.
21242
21243 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21244             Iain Sandoe  <iains@gcc.gnu.org>
21245
21246         PR target/48245
21247         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21248
21249 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21250
21251         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21252         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21253         Insert new statements at it in lieu of STMT.
21254         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21255         * tree-vect-stmts.c (vectorizable_store): Likewise.
21256         (vectorizable_load): Likewise.
21257
21258 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
21259
21260         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21261         (divtf3): Ditto.
21262         (multf3): Ditto.
21263         (subtf3): Ditto.
21264
21265 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21266
21267         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21268         unaligned 256bit load/store.
21269         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21270         (*avx_movdqu<avxmodesuffix>): Likewise.
21271
21272 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21273
21274         PR target/48288
21275         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21276         * config/pa/pa.md (iordi3): Use new predicate in expander.
21277         (iorsi3): Likewise.
21278
21279 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
21280
21281         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21282         FUNCTION_VALUE_REGNO_P): Remove macros.
21283         * config/mips/mips-protos.h (mips_function_value): Remove.
21284         * config/mips/mips.c (mips_function_value): Rename to...
21285         (mips_function_value_1): ... this. Make static.  Handle receiving
21286         the function type in 'fn_decl_or_type' argument.
21287         (mips_function_value, mips_libcall_value,
21288         mips_function_value_regno_p): New function.
21289         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21290         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21291
21292 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21293
21294         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21295         and -mavx256-split-unaligned-store.
21296         (ix86_option_override_internal): Split 32-byte AVX unaligned
21297         load/store by default.
21298         (ix86_avx256_split_vector_move_misalign): New.
21299         (ix86_expand_vector_move_misalign): Use it.
21300
21301         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21302         -mavx256-split-unaligned-store.
21303
21304         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21305         256bit load/store.  Generate unaligned store on misaligned memory
21306         operand.
21307         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21308         256bit load/store.
21309         (*avx_movdqu<avxmodesuffix>): Likewise.
21310
21311         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21312         -mavx256-split-unaligned-store.
21313
21314 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21315
21316         PR target/38598
21317         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21318         Update commentary.
21319
21320 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21321
21322         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21323         opno arguments with an expand_operand.  Use create_input_operand.
21324         (mips_prepare_builtin_target): Delete.
21325         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21326         functions.
21327         (mips_expand_builtin_direct): Use create_output_operand and
21328         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21329         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21330         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21331
21332 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21333
21334         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21335         function.
21336         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21337
21338 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21339
21340         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21341         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21342         basic blocks and call commit_edge_insertions directly.
21343         (fixup_abnormal_edges): Move from here to...
21344         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21345         on the edges and return whether some have actually been inserted.
21346         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21347         compensation code.
21348
21349 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21350
21351         PR rtl-optimization/48144
21352         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21353         (merge_expr_data): ... here.
21354         (av_set_intersect): Rename to av_set_code_motion_filter.
21355         Update all callers.  Call merge_history_vect when an expression
21356         is found in both sets.
21357         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21358
21359 2011-03-26  Alan Modra  <amodra@gmail.com>
21360
21361         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21362         cmodel medium addresses.
21363         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21364         64-bit gpr loads and stores.
21365         (rs6000_secondary_reload_ppc64): New function.
21366         * config/rs6000/rs6000-protos.h: Declare it.
21367         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21368
21369 2011-03-26  Alan Modra  <amodra@gmail.com>
21370
21371         PR target/47487
21372         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21373         GNU Go in traceback table.
21374
21375 2011-03-25  Richard Henderson  <rth@redhat.com>
21376
21377         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21378         if there are exactly 6 operands.
21379         (set_storage_via_setmem): Similarly.
21380
21381 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21382
21383         * collect2.c (write_c_file_stat): Handle backslash
21384         as right-hand directory separator.
21385         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21386         checking just for slash.
21387         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21388         instead of checking for trailing slash.
21389         * gcc.c (record_temp_file): Use filename_cmp instead
21390         of strcmp.
21391         (do_spec_1): Likewise.
21392         (replace_outfile_spec_function): Likewise.
21393         (is_directory): Use filename_ncmp instead of strncmp.
21394         (print_multilib_info): Likewise.
21395         * gcov.c (find_source): Use filename_cmp instead
21396         instead of strcmp.
21397         (make_gcov_file_name): Fix order of slash/backslash
21398         checks.
21399         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21400         (add_standard_paths): Likewise.
21401         * mips-tfile.c (saber_stop): Handle backslash.
21402         * prefix.c (update_path): Use filename_ncmp instead of
21403         strncmp.
21404         * profile.c (output_location): Use filename_cmp instead
21405         of strcmp.
21406         * read-md.c (handle_toplevel_file): Handle backslash.
21407         * tlink.c (frob_extension):  Likewise.
21408         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21409         strcmp.
21410         * tree-dump.c (dequeue_and_dump): Handle backslash.
21411         * tree.c (get_file_function_name): Likewise.
21412         * gengtype.c (read_input_list): Likewise.
21413         (get_file_realbasename): Likewise.
21414         (get_output_file_with_visibility): Use filename_cmp
21415         instead of strcmp.
21416
21417 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21418
21419         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21420         case to VFPv1.
21421
21422 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21423
21424         * fold-const.c (expr_location_or): New function.
21425         (fold_truth_not_expr): Call it.
21426
21427 2011-03-25  Jeff Law  <law@redhat.com>
21428
21429         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21430         va_end.
21431         * c-family/c-common.c (def_fn_type): Likewise.
21432         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21433         * emit-rtl.c (gen_rtvec): Likewise.
21434         * lto/lto-lang.c (def_fn_type): Likewise.
21435
21436 2011-03-25  Richard Guenther  <rguenther@suse.de>
21437
21438         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21439         also generate copies.
21440         (fini_copy_prop): Handle constant values properly.
21441
21442 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21443
21444         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21445         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21446         (hash_loc_operands, compare_loc_operands): Handle
21447         DW_OP_GNU_entry_value.
21448
21449 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21450
21451         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21452         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21453         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21454         comment and use macro TARGET_64BIT_MS_ABI instead.
21455         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21456         and change default behavior for 32-bit MS_ABI.
21457         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21458         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21459         32-bit, too.
21460         (ix86_cfun_abi): Likewise.
21461         (ix86_maybe_switch_abi): Adjust comment.
21462         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21463         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21464         instead of checking for SYSV_ABI.
21465         (ix86_nsaved_sseregs): Likewise.
21466         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21467         to 16 bytes.
21468         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21469         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21470         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21471         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21472         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21473
21474 2011-03-25  Richard Guenther  <rguenther@suse.de>
21475
21476         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21477         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21478         (verify_gimple): Remove.
21479         * tree-cfg.c (verify_gimple_call): Merge verification
21480         from verify_stmts.
21481         (verify_gimple_phi): Merge verification from verify_stmts.
21482         (verify_gimple_label): New function.
21483         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21484         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21485         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21486         (verify_stmts): Rename to verify_gimple_in_cfg.
21487         (verify_gimple_in_cfg): New function.
21488         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21489         * tree-ssa.c (verify_ssa): Likewise.
21490         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21491
21492 2011-03-25  Richard Guenther  <rguenther@suse.de>
21493
21494         * passes.c (init_optimization_passes): Add FRE pass after
21495         early SRA.
21496
21497 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21498             Andrew Stubbs  <ams@codesourcery.com>
21499
21500         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21501         for Cortex-A8.
21502         (arm_movdi_vfp_cortexa8): New pattern.
21503         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21504         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21505         instructions when tuning for Cortex-A8.  Set attribute "arch".
21506         * config/arm/arm.md: Move include arm-tune.md up a bit.
21507         (define_attr "arch"): Add "onlya8" and "nota8" values.
21508         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21509
21510 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21511
21512         PR bootstrap/48282
21513         Revert:
21514         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21515
21516         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21517         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21518         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21519         * passes.c (init_optimization_passes): Move
21520         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21521
21522 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21523
21524         * c-typeck.c (comptypes_internal): Replace target
21525         hook call of comp_type_attributes by version in tree.c file.
21526         * gimple.c (gimple_types_compatible_p_1): Likewise.
21527         * tree-ssa.c (useless_type_conversion_p): Likewise.
21528         * tree.c (build_type_attribute_qual_variant): Likewise.
21529         (attribute_value_equal): New static helper function.
21530         (comp_type_attributes): New function.
21531         (merge_attributes): Use attribute_value_equal for comparison.
21532         (attribute_list_contained): Likewise.
21533         * tree.h (comp_type_attributes): New prototype.
21534
21535 2011-03-25  Richard Guenther  <rguenther@suse.de>
21536
21537         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21538         of complex types at -O0.
21539         (verify_gimple_assign_binary): Likewise.
21540         (verify_gimple_assign_ternary): Likewise.
21541
21542 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21543
21544         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21545         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21546
21547 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21548
21549         PR debug/48041
21550         * dwarf2out.c (output_abbrev_section): Only write table when
21551         abbrev_die_table_in_use > 1.
21552
21553 2011-02-24  Richard Henderson  <rth@redhat.com>
21554
21555         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21556         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21557         (alpha_expand_unaligned_load_words): Use extql.
21558         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21559         (emit_insxl): Handle all modes for consistency.
21560
21561 2011-02-24  Richard Henderson  <rth@redhat.com>
21562
21563         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21564         (alpha_expand_unaligned_load): Likewise.
21565         (alpha_expand_unaligned_store): Likewise.
21566         (alpha_expand_unaligned_load_words): Likewise.
21567         (alpha_expand_unaligned_store_words): Likewise.
21568         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21569         (alpha_split_lock_test_and_set_12): Likewise.
21570         (print_operand, alpha_fold_builtin_extxx): Likewise.
21571         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21572         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21573         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21574         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21575         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21576         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21577         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21578         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21579         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21580         (extwl, extll, extql): Similarly.
21581         (inswh, inslh, insqh): Similarly.
21582         (mskbl, mskwl, mskll, mskql): Similarly.
21583         (mskwh, msklh, mskqh): Similarly.
21584
21585 2011-02-24  Richard Henderson  <rth@redhat.com>
21586
21587         * config/alpha/alpha.md (attribute isa): Add er, ner.
21588         (attribute enabled): Handle them.
21589         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21590
21591 2011-02-24  Richard Henderson  <rth@redhat.com>
21592
21593         * config/alpha/alpha.md (attribute isa): Add vms.
21594         (attribute enabled): Handle it.
21595         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21596         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21597         (*movtf): Rename from *movtf_internal for consistency.
21598         (*movsi): Merge with *movsi_nt_vms.
21599         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21600         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21601         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21602         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21603
21604 2011-02-24  Richard Henderson  <rth@redhat.com>
21605
21606         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21607         (extendqisi2, extendhisi2): Likewise.
21608         (extendqidi2): Simplify BWX/non-BWX expansions.
21609         (extendhidi2): Similarly.
21610
21611 2011-02-24  Richard Henderson  <rth@redhat.com>
21612
21613         * config/alpha/alpha.md (attribute isa): New.
21614         (attribute enabled): New.
21615         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21616         (zero_extendqisi2, zero_extendqidi2): Similarly.
21617         (zero_extendhisi2, zero_extendhidi2): Similarly.
21618         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21619
21620 2011-02-24  Richard Henderson  <rth@redhat.com>
21621
21622         * config/alpha/predicates.md (input_operand): Revert last change;
21623         update comment to mention 32-bit VMS rather than Windows.
21624
21625 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21626
21627         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21628         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21629         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21630         * passes.c (init_optimization_passes): Move
21631         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21632
21633 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21634
21635         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21636
21637 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21638
21639         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21640         correctly.
21641
21642 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
21643
21644         PR debug/48204
21645         * simplify-rtx.c (simplify_const_unary_operation): Call
21646         real_convert when changing mode class with FLOAT_EXTEND.
21647
21648 2011-03-24  Nick Clifton  <nickc@redhat.com>
21649
21650         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21651         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21652         * config/rx/rx.c (rx_option_override): Set align_jumps,
21653         align_loops and align_labels if not set by the user.
21654         (rx_align_for_label): New function.
21655         (rx_max_skip_for_label): New function.
21656         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21657         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21658         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21659         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21660         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21661
21662 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21663
21664         PR rtl-optimization/48263
21665         * optabs.c (expand_binop_directly): Reinstate convert_modes code
21666         and original commutative_p handling.  Use maybe_gen_insn.
21667
21668 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21669
21670         * reload.c (find_reloads_subreg_address): Add address_reloaded
21671         parameter and return true there if the full address has been
21672         reloaded.
21673         (find_reloads_toplev): Pass address_reloaded flag.
21674         (find_reloads_address_1): Don't use address_reloaded parameter.
21675
21676 2011-03-24  Jeff Law  <law@redhat.com>
21677
21678         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21679         unused variable "ann".
21680         (remove_unused_locals): Likewise.
21681
21682         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21683         statement.
21684
21685         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21686         after it is freed.
21687
21688 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21689
21690         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21691         for invalid symbolic addresses.
21692         (s390_secondary_reload): Don't use s390_check_symref_alignment for
21693         larl operands.
21694
21695 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21696
21697         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21698         the argument in calls to fold_truth_not_expr.
21699
21700 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21701
21702         * tree.c (record_node_allocation_statistics): New function.
21703         (make_node_stat, copy_node_stat, build_string): Call it.
21704         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21705         (build1_stat, build_omp_clause): Likewise.
21706
21707 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21708
21709         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21710         last commit.
21711
21712 2011-03-24  Richard Guenther  <rguenther@suse.de>
21713
21714         PR tree-optimization/48271
21715         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21716         blocks that still exist.
21717
21718 2011-03-24  Richard Guenther  <rguenther@suse.de>
21719
21720         PR tree-optimization/48270
21721         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21722         not free datarefs before ddrs.
21723
21724 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21725
21726         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21727         from the address built for a reference with variable offset.
21728
21729 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21730
21731         PR target/48237
21732         * config/i386/i386.md (*movdf_internal_rex64): Do not split
21733         alternatives that can be handled with movq or movabsq insn.
21734         (*movdf_internal): Disable for !TARGET_64BIT.
21735         (*movdf_internal_nointeger): Ditto.
21736         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21737
21738 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21739
21740         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21741         (FUNCTION_ARG_ADVANCE): Likewise.
21742         * tm.texi.in: Change references to them to hook references.
21743         * tm.texi: Regenerate.
21744         * targhooks.c (default_function_arg): Eliminate check for target macro.
21745         (default_function_incoming_arg): Likewise.
21746         (default_function_arg_advance): Likewise.
21747         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21748         (function_arg_advance): Likewise.
21749         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21750
21751 2011-03-24  Richard Guenther  <rguenther@suse.de>
21752
21753         PR middle-end/48269
21754         * tree-object-size.c (addr_object_size): Do not double-account
21755         for MEM_REF offsets.
21756
21757 2011-03-24  Diego Novillo  <dnovillo@google.com>
21758
21759         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21760         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21761         (lto_input_data_block): Move from lto-opts.c.  Make extern.
21762         Update all users.
21763         (lto_input_string): Rename from input_string.  Make extern.
21764         Update all users.
21765         * lto-streamer-out.c (lto_output_string_with_length): Rename from
21766         output_string_with_length.
21767         Output 0 to indicate a non-NULL string.  Update all callers to
21768         not emit 0.
21769         (lto_output_string): Rename from output_string.  Make extern.
21770         Update all users.
21771         (lto_output_decl_state_streams): Make extern.
21772         (lto_output_decl_state_refs): Make extern.
21773         * lto-streamer.h (lto_input_string): Declare.
21774         (lto_input_data_block): Declare.
21775         (lto_output_string): Declare.
21776         (lto_output_string_with_length): Declare.
21777         (lto_output_decl_state_streams): Declare.
21778         (lto_output_decl_state_refs): Declare.
21779
21780 2011-03-24  Richard Guenther  <rguenther@suse.de>
21781
21782         PR tree-optimization/46562
21783         * tree.c (build_invariant_address): New function.
21784         * tree.h (build_invariant_address): Declare.
21785         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21786         a renamed function moved ...
21787         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21788         Take valueization callback parameter.
21789         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21790         * gimple-fold.h: New file.
21791         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21792         (ccp_fold, fold_const_aggregate_ref,
21793         fold_ctor_reference, fold_nonarray_ctor_reference,
21794         fold_array_ctor_reference, fold_string_cst_ctor_reference,
21795         get_base_constructor): Move ...
21796         * gimple-fold.c: ... here.
21797         (gimple_fold_stmt_to_constant_1): New function
21798         split out from ccp_fold.  Take a valueization callback parameter.
21799         Valueize all operands.
21800         (gimple_fold_stmt_to_constant): New wrapper function.
21801         (fold_const_aggregate_ref_1): New function split out from
21802         fold_const_aggregate_ref.  Take a valueization callback parameter.
21803         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21804         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21805         invariant POINTER_PLUS_EXPRs to invariant form.
21806         (vn_valueize): New function.
21807         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21808         * tree-vrp.c (vrp_valueize): New function.
21809         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21810         to fold statements to constants.
21811         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21812         function declarations.
21813         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21814         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21815
21816 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21817
21818         * config/h8300/predicates.md (jump_address_operand): Fix register
21819         mode check.
21820
21821 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21822
21823         * doc/invoke.texi (max-stores-to-sink): Document.
21824         * params.h (MAX_STORES_TO_SINK): Define.
21825         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21826         if either vectorization or if-conversion is disabled.
21827         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21828         tree-vect-data-refs.c vect_equal_offsets.
21829         (dr_equal_offsets_p): New function.
21830         (find_data_references_in_bb): Remove static.
21831         * tree-data-ref.h (find_data_references_in_bb): Declare.
21832         (dr_equal_offsets_p): Likewise.
21833         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21834         (vect_drs_dependent_in_basic_block): Update calls to
21835         vect_equal_offsets.
21836         (vect_check_interleaving): Likewise.
21837         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21838         (cond_if_else_store_replacement): Rename to...
21839         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21840         documentation.
21841         (cond_if_else_store_replacement): New function.
21842         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21843         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21844
21845 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21846
21847         PR target/46934
21848         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21849         to subtract lower bound instead of GEN_INT().
21850
21851 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21852
21853         PR other/48179
21854         PR other/48221
21855         PR other/48234
21856         * doc/extend.texi (Alignment): Move section to match order in TOC.
21857         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21858         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21859
21860 2011-03-23  Jeff Law  <law@redhat.com>
21861
21862         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21863         before removing the edge.
21864
21865         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21866         it may have been freed by redirect_branch_edge or
21867         redirect_edge_succ_nodup.
21868
21869 2011-03-23  Richard Guenther  <rguenther@suse.de>
21870
21871         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21872         (check_va_list_escapes): Likewise.
21873         (check_all_va_list_escapes): Likewise.
21874
21875 2011-03-23  Richard Guenther  <rguenther@suse.de>
21876
21877         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21878         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21879         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21880         (alias.o): Likewise.
21881         (ipa-type-escape.o): Remove.
21882         (ipa-struct-reorg.o): Likewise.
21883         (GTFILES): Remove ipa-struct-reorg.c.
21884         * alias.c: Do not include ipa-type-escape.h.
21885         * tree-ssa-alias.c: Likewise.
21886         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21887         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21888         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21889         and ipa-type-escape passes.
21890         * tree-pass.h (pass_ipa_type_escape): Remove.
21891         (pass_ipa_struct_reorg): Likewise.
21892         * ipa-struct-reorg.h: Remove.
21893         * ipa-struct-reorg.c: Likewise.
21894         * ipa-type-escape.h: Likewise.
21895         * ipa-type-escape.c: Likewise.
21896         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21897         (--param struct-reorg-cold-struct-ratio): Likewise.
21898         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21899         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21900         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21901
21902 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21903
21904         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21905         cpu attribute value.
21906         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21907         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21908         * config/s390/s390.c (processor_flags_table): New constant array.
21909         (s390_handle_arch_option): Remove.
21910         (s390_handle_option): Remove s390_handle_arch_option invocations
21911         and OPT_mwarn_framesize_ handling.
21912         (s390_option_override): Remove s390_handle_arch_option invocation.
21913         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21914         warnings.
21915         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21916         * config/s390/s390.opt (s390_tune, s390_arch)
21917         (march=): Replace s390_arch_option enum and values with
21918         processor_type.  Set variable name to s390_arch.  Set
21919         initialization value.
21920         (mtune=): Replace s390_arch_option with processor_type.  Set
21921         variable name to s390_tune.  Set initialization value.
21922
21923 2011-03-23  Julian Brown  <julian@codesourcery.com>
21924
21925         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21926         accesses which are not naturally aligned.
21927
21928 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21929
21930         PR target/47553
21931         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21932
21933 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21934
21935         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21936         parameter from "int" to "enum insn_code".
21937         (expand_operand_type): New enum.
21938         (expand_operand): New structure.
21939         (create_expand_operand): New function.
21940         (create_fixed_operand, create_output_operand): Likewise
21941         (create_input_operand, create_convert_operand_to): Likewise.
21942         (create_convert_operand_from, create_address_operand): Likewise.
21943         (create_integer_operand): Likewise.
21944         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21945         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21946         (expand_insn, expand_jump_insn): Likewise.
21947         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21948         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21949         (expand_movstr, expand_builtin___clear_cache): Likewise.
21950         (expand_builtin_lock_release): Likewise.
21951         * explow.c (allocate_dynamic_stack_space): Likewise.
21952         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21953         and use the default handling in that case.
21954         * expmed.c (check_predicate_volatile_ok): Delete.
21955         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21956         (emit_cstore): Likewise.
21957         * expr.c (emit_block_move_via_movmem): Likewise.
21958         (set_storage_via_setmem, expand_assignment): Likewise.
21959         (emit_storent_insn, try_casesi): Likewise.
21960         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21961         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21962         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21963         (expand_twoval_unop, expand_twoval_binop): Likewise.
21964         (expand_unop_direct, emit_indirect_jump): Likewise.
21965         (emit_conditional_move, vector_compare_rtx): Likewise.
21966         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21967         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21968         (expand_sync_lock_test_and_set): Likewise.
21969         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21970         (emit_unop_insn): Likewise.
21971         (expand_copysign_absneg): Change icode to an insn_code.
21972         (create_convert_operand_from_type): New function.
21973         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21974         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21975         (expand_insn, expand_jump_insn): Likewise.
21976         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21977         than const_int_operand for operand 2.
21978
21979 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21980
21981         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21982         if possible.
21983
21984 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21985
21986         * emit-rtl.c (emit_pattern_before_noloc): New function.
21987         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21988         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21989         (emit_pattern_after_noloc): New function.
21990         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21991         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21992
21993 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21994
21995         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21996         (__ffsDI2): Likewise.
21997
21998 2011-03-22  Richard Henderson  <rth@redhat.com>
21999
22000         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22001         of !TARGET_ABI_OPEN_VMS.
22002         (alpha_trampoline_init, alpha_start_function): Likewise.
22003         (alpha_expand_epilogue, alpha_file_start): Likewise.
22004         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22005         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22006         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22007         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22008         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22009
22010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22011
22012         * config/s390/s390-opts.h: New.
22013         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22014         s390_arch_flags, s390_warn_framesize, s390_stack_size,
22015         s390_stack_guard): Remove.
22016         (s390_handle_arch_option): Return void.  Take enum
22017         s390_arch_option value instead of string and searching array.
22018         (s390_handle_option): Don't assert that global structures are in
22019         use.  Access variables via opts pointer.  Use error_at.  Don't use
22020         sscanf for -mstack-guard= or -mstack-size=.  Update call to
22021         s390_handle_arch_option.
22022         (s390_option_override): Update call to s390_handle_arch_option.
22023         (s390_emit_prologue): Use %d format for s390_stack_size in
22024         diagnostic.  Use %wd for HOST_WIDE_INT.
22025         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22026         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22027         * config/s390/s390.opt (config/s390/s390-opts.h): New
22028         HeaderInclude entry.
22029         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22030         s390_arch_flags, s390_warn_framesize): New Variable entries.
22031         (s390_arch_option): New Enum and EnumValue entries.
22032         (march=): Use Enum instead of Var.
22033         (mstack-guard=, mstack-size=): Use UInteger and Var.
22034         (mtune=): Use Enum.
22035
22036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22037
22038         * config/score/score.c (score_handle_option): Don't assert that
22039         global structures are in use.  Access target_flags via opts
22040         pointer.  Use value of -march= option to determine target_flags
22041         settings.
22042         * config/score/score.opt (march=): Use Enum.
22043         (score_arch): New Enum and EnumValue entries.
22044
22045 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22046
22047         * config/mep/mep.c (option_mtiny_specified): Remove.
22048         (mep_option_override): Move register handling for -mivc2 from
22049         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
22050         instead of option_mtiny_specified.
22051         (mep_handle_option): Access target_flags via opts pointer.  Don't
22052         assert that global structures are in use.  Defer part of -mivc2
22053         handling and move it to mep_option_override.
22054         * config/mep/mep.opt (IVC2): New Mask entry.
22055         (mivc2): Use Var and Defer instead of Mask.
22056
22057 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22058
22059         * config/v850/v850-opts.h: New.
22060         * config/v850/v850.c (small_memory): Replace with
22061         small_memory_physical_max array.  Make that array static const.
22062         (v850_handle_memory_option): Take integer value of argument.  Take
22063         gcc_options pointer, option text and location.  Return void.
22064         Update for changes to small memory structures.
22065         (v850_handle_option): Access target_flags via opts pointer.  Don't
22066         assert that global structures are in use.  Update calls to
22067         v850_handle_memory_option.
22068         (v850_encode_data_area): Update references to small memory settings.
22069         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22070         (enum small_memory_type): Move to v850-opts.h.
22071         * config/v850/v850.opt (config/v850/v850-opts.h): New
22072         HeaderInclude entry.
22073         (small_memory_max): New Variable entry.
22074         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
22075         (mtda, mzda): Likewise.
22076
22077 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22078
22079         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22080         pointer.  Don't assert that global structures are in use.
22081
22082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22083
22084         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22085         via opts pointer.  Don't assert that global structures are in use.
22086
22087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22088
22089         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22090         (munix=93): Use Var.
22091         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22092         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22093         * config/pa/pa-opts.h: New.
22094         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22095         (pa_handle_option): Don't assert that global structures are in
22096         use.  Access target_flags via opts pointer.  Don't handle
22097         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22098         OPT_munix_98 here.
22099         (pa_option_override): Handle deferred OPT_mfixed_range_.
22100
22101 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22102
22103         * config/mn10300/mn10300-opts.h: New.
22104         * config/mn10300/mn10300.c (mn10300_processor,
22105         mn10300_tune_string): Remove.
22106         (mn10300_handle_option): Don't assert that global structures are
22107         in use.  Access mn10300_processor via opts pointer.  Don't handle
22108         OPT_mtune_ here.
22109         * config/mn10300/mn10300.h (enum processor_type): Move to
22110         mn10300-opts.h.
22111         (mn10300_processor): Remove.
22112         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22113         HeaderInclude entry.
22114         (mn10300_processor): New Variable entry.
22115         (mtune=): Use Var.
22116
22117 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22118
22119         * config/microblaze/microblaze.c: Don't include opts.h.
22120         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22121         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22122         (mno-clearbss): Use Var and Warn.
22123
22124 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22125
22126         * config/m32r/m32r-opts.h: New.
22127         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22128         (m32r_handle_option): Don't assert that global structures are in
22129         use.  Access target_flags and m32r_cache_flush_func via opts
22130         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
22131         OPT_mno_flush_trap here.
22132         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22133         include of m32r-opts.h.
22134         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22135         HeaderInclude entry.
22136         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22137         (mmodel=): Use Enum and Var.
22138         (m32r_model): New Enum and EnumValue entries.
22139         (mno-flush-trap): Use Var.
22140         (msdata=): Use Enum and Var.
22141         (m32r_sdata): New Enum and EnumValue entries.
22142
22143 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22144
22145         * config/m32c/m32c.c: Don't include opts.h.
22146         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22147         m32c_handle_option): Remove.
22148         (m32c_option_override): Check global_options_set.x_target_memregs
22149         instead of target_memregs_set.
22150         * config/m32c/m32c.h (target_memregs): Remove.
22151         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22152         variable.
22153
22154 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22155
22156         * config/iq2000/iq2000-opts.h: New.
22157         * config/iq2000/iq2000.c: Don't include opts.h.
22158         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22159         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22160         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22161         HeaderInclude entry.
22162         (iq2000_tune): New Variable entry.
22163         (march=): Add comment.  Use Enum.
22164         (iq2000_arch): New Enum and EnumValue entries.
22165         (mcpu=): Use Enum and Var.
22166         (iq2000_tune): New Enum and EnumValue entries.
22167
22168 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22169
22170         * config/ia64/ia64-opts.h: New.
22171         * config/ia64/ia64.c (ia64_tune): Remove.
22172         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22173         here.  Use error_at.
22174         (ia64_option_override): Handle deferred OPT_mfixed_range_.
22175         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22176         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22177         HeaderInclude entry.
22178         (ia64_tune): New Variable entry.
22179         (mfixed-range=): Use Defer and Var.
22180         (mtune=): Use Enum and Var.
22181         (ia64_tune): New Enum and EnumValue entries.
22182
22183 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22184
22185         * config/frv/frv-opts.h: New.
22186         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22187         frv-opts.h.
22188         (frv_cpu_type): Remove.
22189         * config/frv/frv.c: Don't include opts.h.
22190         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22191         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22192         (frv_cpu_type): New Variable entry.
22193         (frv_cpu): New Enum and EnumValue entries.
22194
22195 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22196
22197         * config/cris/cris.c (cris_handle_option): Access target_flags via
22198         opts pointer.  Don't assert that global structures are in use.
22199         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22200         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22201
22202 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22203
22204         * config/bfin/bfin-opts.h: New.
22205         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22206         bfin_si_revision, bfin_workarounds): Remove.
22207         (bfin_cpus): Make static const.
22208         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22209         not bfin_lib_id_given.
22210         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
22211         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22212         pointer. Use error_at.  Don't assert that global structures are in use.
22213         * config/bfin/bfin.h: Include bfin-opts.h.
22214         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22215         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22216         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22217         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22218         entries.
22219
22220 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22221
22222         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22223         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22224         or -msoft-float here.
22225         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22226         -msoft-float and -mhard-float.
22227         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22228         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22229         msoft-float.
22230         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22231         -msoft-float.
22232         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22233         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22234         not mhard-float.
22235         (LIBGCC_SPEC): Don't handle -msoft-float.
22236         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22237         -mhard-float.
22238         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22239         msoft-float.
22240         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22241         -mfloat-abi=*, not -msoft-float and -mhard-float.
22242         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22243         -msoft-float.
22244         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22245         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22246         mhard-float and msoft-float.
22247         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22248         mfloat-abi=soft in comments, not mhard-float and msoft-float.
22249         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22250         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22251         mhard-float.
22252         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22253         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22254         msoft-float.
22255         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22256         not mhard-float.
22257         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22258         not msoft-float.
22259
22260 2011-03-22  Richard Henderson  <rth@redhat.com>
22261
22262         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22263         TARGET_ABI_WINDOWS_NT.
22264         (alpha_output_function_end_prologue): Likewise.
22265         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22266         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22267         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22268         (trap, *movsi_nt_vms): Likewise.
22269         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22270         (*tablejump_osf_nt_internal): Remove.
22271         * config/alpha/predicates.md (input_operand): Only test Pmode.
22272
22273 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22274
22275         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22276         via opts pointer.  Use error_at.  Don't assert that global
22277         structures are in use.
22278
22279 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22280
22281         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22282         (ix86_handle_option): Access ix86_isa_flags and
22283         ix86_isa_flags_explicit via opts pointer.  Don't assert that
22284         global structures are in use.
22285         (ix86_function_specific_save, ix86_function_specific_restore):
22286         Update ix86_isa_flags_explicit field name.
22287         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22288         (ix86_isa_flags_explicit): Rename TargetSave entry to
22289         x_ix86_isa_flags_explicit.
22290
22291 2011-03-22  Richard Henderson  <rth@redhat.com>
22292
22293         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22294         (alpha_option_override, direct_return): Likewise.
22295         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22296         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22297         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22298         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22299         (alpha_expand_epilogue, alpha_end_function): Likewise.
22300         (alpha_init_libfuncs): Likewise.
22301         (struct machine_function): Remove unicosmk members.
22302         (print_operand) ['t']: Remove.
22303         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22304         unicosmk_output_module_name, unicosmk_output_common,
22305         current_section_align, unicosmk_output_text_section_asm_op,
22306         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22307         unicosmk_section_type_flags, unicosmk_unique_section,
22308         unicosmk_asm_named_section, unicosmk_insert_attributes,
22309         unicosmk_output_align, unicosmk_defer_case_vector,
22310         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22311         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22312         unicosmk_output_ssib, unicosmk_add_call_info_word,
22313         unicosmk_extern_head, unicosmk_output_default_externs,
22314         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22315         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22316         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22317         * config/alpha/alpha-protos.h: Update.
22318         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22319         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22320         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22321         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22322         (*mulsi_se, mulvsi3): Likewise.
22323         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22324         (*divmodsi_internal, call, call_value, realign): Likewise.
22325         (moddi3, umoddi3): Likewise; remove duplicate expander.
22326         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22327         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22328         (*movdi_nofix): Remove r/U alternative.
22329         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22330         * config/alpha/constraints.md ("U"): Remove.
22331         * config/alpha/predicates.md (call_operand"): Don't test
22332         TARGET_ABI_UNICOSMK.
22333
22334 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22335
22336         * target.def (handle_option): Take gcc_options and
22337         cl_decoded_option pointers and location_t.
22338         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22339         * doc/tm.texi: Regenerate.
22340         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22341         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22342         * lto-opts.c (lto_reissue_options): Generate option structure for
22343         targetm.handle_option call.
22344         * opts.c (target_handle_option): Update call to
22345         targetm.handle_option.  Remove assertions about values now passed
22346         down to hook.
22347         * targhooks.c (default_target_handle_option): New.
22348         * targhooks.h (default_target_handle_option): Declare.
22349         * config/alpha/alpha.c: Include opts.h.
22350         (alpha_handle_option): Update to new hook interface.
22351         * config/arm/arm.c: Include opts.h.
22352         (arm_handle_option): Update to new hook interface.
22353         * config/arm/t-arm (arm.o): Update dependencies.
22354         * config/bfin/bfin.c: Include opts.h.
22355         (bfin_handle_option): Update to new hook interface.
22356         * config/cris/cris.c: Include opts.h.
22357         (cris_handle_option): Update to new hook interface.
22358         * config/frv/frv.c: Include opts.h.
22359         (frv_handle_option): Update to new hook interface.
22360         * config/i386/i386.c: Include opts.h.
22361         (ix86_handle_option): Update to new hook interface.
22362         (ix86_valid_target_attribute_inner_p): Generate option structure
22363         for call to ix86_handle_option.
22364         * config/i386/t-i386 (i386.o): Update dependencies.
22365         * config/ia64/ia64.c: Include opts.h.
22366         (ia64_handle_option): Update to new hook interface.
22367         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22368         * config/iq2000/iq2000.c: Include opts.h.
22369         (iq2000_handle_option): Update to new hook interface.
22370         * config/m32c/m32c.c: Include opts.h.
22371         (m32c_handle_option): Update to new hook interface.
22372         * config/m32r/m32r.c: Include opts.h.
22373         (m32r_handle_option): Update to new hook interface.
22374         * config/m68k/m68k.c: Include opts.h.
22375         (m68k_handle_option): Update to new hook interface.
22376         * config/mep/mep.c: Include opts.h.
22377         (mep_handle_option): Update to new hook interface.
22378         * config/microblaze/microblaze.c: Include opts.h.
22379         (microblaze_handle_option): Update to new hook interface.
22380         * config/mips/mips.c: Include opts.h.
22381         (mips_handle_option): Update to new hook interface.
22382         * config/mn10300/mn10300.c: Include opts.h.
22383         (mn10300_handle_option): Update to new hook interface.
22384         * config/pa/pa.c: Include opts.h.
22385         (pa_handle_option): Update to new hook interface.
22386         * config/pdp11/pdp11.c: Include opts.h.
22387         (pdp11_handle_option): Update to new hook interface.
22388         * config/rs6000/rs6000.c: Include opts.h.
22389         (rs6000_handle_option): Update to new hook interface.
22390         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22391         * config/rx/rx.c: Include opts.h.
22392         (rx_handle_option): Update to new hook interface.
22393         * config/s390/s390.c: Include opts.h.
22394         (s390_handle_option): Update to new hook interface.
22395         * config/score/score.c: Include opts.h.
22396         (score_handle_option): Update to new hook interface.
22397         * config/sh/sh.c: Include opts.h.
22398         (sh_handle_option): Update to new hook interface.
22399         * config/sparc/sparc.c: Include opts.h.
22400         (sparc_handle_option): Update to new hook interface.
22401         * config/v850/v850.c: Include opts.h.
22402         (v850_handle_option): Update to new hook interface.
22403
22404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22405
22406         * gcc.c (driver_unknown_option_callback): Only permit and save
22407         unknown -Wno- options.
22408         (driver_wrong_lang_callback): Save options directly instead of via
22409         driver_unknown_option_callback.
22410
22411 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22412
22413         * combine.c (simplify_set): Try harder to find the best CC mode when
22414         simplifying a nested COMPARE on the RHS.
22415
22416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22417
22418         * config/alpha/gnu.h: Remove.
22419         * config/arc: Remove directory.
22420         * config/arm/netbsd.h: Remove.
22421         * config/arm/t-pe: Remove.
22422         * config/crx: Remove directory.
22423         * config/i386/netbsd.h: Remove.
22424         * config/m68hc11: Remove directory.
22425         * config/m68k/uclinux-oldabi.h: Remove.
22426         * config/mcore/mcore-pe.h: Remove.
22427         * config/mcore/t-mcore-pe: Remove.
22428         * config/netbsd-aout.h: Remove.
22429         * config/rs6000/gnu.h: Remove.
22430         * config/sh/sh-symbian.h: Remove.
22431         * config/sh/symbian-base.c: Remove.
22432         * config/sh/symbian-c.c: Remove.
22433         * config/sh/symbian-cxx.c: Remove.
22434         * config/sh/symbian-post.h: Remove.
22435         * config/sh/symbian-pre.h: Remove.
22436         * config/sh/t-symbian: Remove.
22437         * config/svr3.h: Remove.
22438         * config/vax/netbsd.h: Remove.
22439         * config.build: Don't handle i[34567]86-*-pe.
22440         * config.gcc: Remove handling of deprecations for most deprecated
22441         targets.
22442         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22443         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22444         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22445         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22446         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22447         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22448         Remove cases.
22449         * config.host: Don't handle i[34567]86-*-pe.
22450         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22451         (ASM_SPEC32): Don't handle -mcall-gnu.
22452         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22453         -mcall-gnu.
22454         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22455         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22456         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22457         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22458         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22459         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22460         conditional on SYMBIAN.
22461         * configure.ac: Don't handle powerpc*-*-gnu*.
22462         * configure: Regenerate.
22463         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22464         * doc/install-old.texi (m6811, m6812): Don't mention.
22465         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22466         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22467         (m68k-uclinuxoldabi): Don't mention.
22468         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22469         Remove.
22470         (-mcall-gnu): Remove.
22471         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22472         families): Remove constraint documentation.
22473
22474 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22475
22476         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22477         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22478         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22479
22480 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22481
22482         PR target/48226
22483         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22484         vector when peeking at the next token for vector, don't expand the
22485         keywords.
22486
22487 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22488
22489         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22490         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22491         * config/avr/avr.c (init_cumulative_args)
22492         (avr_function_arg_advance): Use it.
22493         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22494         sibcall epilogues.
22495         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22496         (avr_function_ok_for_sibcall): ...this new function.
22497         (avr_lookup_function_attribute1): New static Function.
22498         (avr_naked_function_p, interrupt_function_p)
22499         (signal_function_p, avr_OS_task_function_p)
22500         (avr_OS_main_function_p): Use it.
22501         * config/avr/avr.md ("sibcall", "sibcall_value")
22502         ("sibcall_epilogue"): New expander.
22503         ("*call_insn", "*call_value_insn"): New insn.
22504         ("call_insn", "call_value_insn"): Remove
22505         ("call", "call_value", "epilogue"): Change expander to handle
22506         sibling calls.
22507
22508 2011-03-21  Nick Clifton  <nickc@redhat.com>
22509
22510         * doc/invoke.texi (Overall Options): Move closing brace to end of
22511         options list.
22512         (Optimization Options): Add missing @gol.
22513         (Directory Options): Likewise.
22514         (i386 and x86-64 Options): Likewise.
22515         (RS6000 and PowerPC Options): Likewise.
22516         (i386 and x86-64 Windows Options): Likewise.
22517         (V850 Options): Add text missing from descriptions.
22518
22519 2011-03-22  Richard Henderson  <rth@redhat.com>
22520
22521         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22522         (avr_incoming_return_addr_rtx): New.
22523         (emit_push_byte): New.
22524         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22525         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22526         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22527         (emit_pop_byte): New.
22528         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22529         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22530         (INCOMING_RETURN_ADDR_RTX): New.
22531         (INCOMING_FRAME_SP_OFFSET): New.
22532         (ARG_POINTER_CFA_OFFSET): New.
22533         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22534         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22535         (pophi): Remove.
22536
22537         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22538
22539 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22540
22541         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22542         (FUNCTION_ARG_ADVANCE): Likewise.
22543         * tm.texi.in: Change references to them to hook references.
22544         * tm.texi: Regenerate.
22545         * targhooks.c (default_function_arg): Eliminate check for target
22546         macro.
22547         (default_function_incoming_arg): Likewise.
22548         (default_function_arg_advance): Likewise.
22549         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22550         (function_arg_advance): Likewise.
22551         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22552
22553 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22554
22555         * tree.c (build_call_1): New function.
22556         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22557
22558 2011-03-22  Richard Guenther  <rguenther@suse.de>
22559
22560         PR tree-optimization/48228
22561         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22562         for single-arg PHIs.
22563
22564 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22565
22566         PR rtl-optimization/48143
22567         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22568         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22569         sse2_cvtps2pd): Likewise.
22570
22571 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22572
22573         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22574
22575 2011-03-22  Richard Guenther  <rguenther@suse.de>
22576
22577         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22578         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22579         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22580         and REALIGN_LOAD_EXPR.
22581         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22582         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22583         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22584         DOT_PROD_EXPR case ...
22585         (expand_expr_real_2): ... here.
22586         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22587         and REALIGN_LOAD_EXPR.
22588         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22589         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22590         (vect_create_epilog_for_reduction): Likewise.
22591         (vectorizable_reduction): Likewise.
22592         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22593         * tree-vect-stmts.c (vectorizable_load): Likewise.
22594
22595 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22596
22597         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22598
22599 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22600
22601         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22602         handling for PLTOFF/GOTOFF.
22603
22604 2011-03-22  Nick Clifton  <nickc@redhat.com>
22605
22606         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22607         trailing backslash from the end of the macro definition.
22608
22609 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22610
22611         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22612         and PLT unspecs.
22613
22614 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22615
22616         * expr.h (prepare_operand): Move to...
22617         * optabs.h (prepare_operand): ...here and change the insn code
22618         parameter from "int" to "enum insn_code".
22619         (insn_operand_matches): Declare.
22620         * expr.c (init_expr_target): Use insn_operand_matches.
22621         (compress_float_constant): Likewise.
22622         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22623         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22624         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22625         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22626         Likewise.
22627         (gen_cond_trap): Likewise.
22628         (prepare_operand): Likewise.  Change icode to an insn_code.
22629         (insn_operand_matches): New function.
22630         * reload.c (find_reloads_address_1): Use insn_operand_matches.
22631         * reload1.c (gen_reload): Likewise.
22632         * targhooks.c (default_secondary_reload): Likewise.
22633
22634 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22635
22636         * config/alpha/alpha.md (unspec): New define_c_enum.
22637         (unspecv): Ditto.
22638
22639 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22640
22641         PR debug/48214
22642         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22643         between a call and its CALL_ARG_LOCATION note.
22644
22645 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
22646
22647         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22648
22649 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22650
22651         PR c/42544
22652         PR c/48197
22653         * c-common.c (shorten_compare): If primopN is first sign-extended
22654         to opN and then zero-extended to result type, set primopN to opN.
22655
22656 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
22657
22658         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22659         for barrier handlers.
22660
22661 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22662
22663         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22664         UNSPEC constants to be in the unspec enumeration, and redefine
22665         all UNSPECV constants to be in the unspecv enumeration, so that
22666         dumps print which unspec/unspec_volatile this is.
22667         * config/rs6000/vector.md (UNSPEC_*): Ditto.
22668         * config/rs6000/paired.md (UNSPEC_*): Ditto.
22669         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22670         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22671         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22672
22673         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22674         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22675         UNSPECV_LWSYNC, since these are used as unspec_volatile.
22676         * config/rs6000/sync.md (isync, lwsync): Ditto.
22677
22678 2011-03-21  Richard Guenther  <rguenther@suse.de>
22679
22680         * params.def (lto-min-partition): Fix typo.
22681
22682 2011-03-21  Richard Guenther  <rguenther@suse.de>
22683
22684         PR c/47939
22685         * c-decl.c (grokdeclarator): Drop to the main variant only
22686         for array types.  Drop flag_gen_aux_info check.
22687
22688 2011-03-21  Richard Guenther  <rguenther@suse.de>
22689
22690         PR translation/47911
22691         * params.def (lto-partitions): Fix typo.
22692         (lto-min-partition): Fix wording.
22693
22694 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
22695
22696         * config/rs6000/t-freebsd: Remove duplication from file.
22697
22698 2011-03-21  Richard Guenther  <rguenther@suse.de>
22699
22700         PR middle-end/47661
22701         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22702
22703 2011-03-21  Richard Guenther  <rguenther@suse.de>
22704
22705         PR lto/48210
22706         * params.def (lto-partitions): Require at least 1 partition.
22707
22708 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22709
22710         * gthr-solaris.h: Remove.
22711         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22712         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22713         (LIB_SPEC): Likewise.
22714         * config/sol2.opt (threads): Remove.
22715         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22716         (sparc*-*-solaris2*): Likewise.
22717         * configure.ac (enable_threads): Enable solaris support.
22718         * configure: Regenerate.
22719         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22720         * doc/install.texi (Configuration, --enable-threads=lib): Remove
22721         solaris.
22722
22723 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22724
22725         * config.gcc: Obsolete *-*-solaris2.8*.
22726         * doc/install.texi (Specific, *-*-solaris2*): Document it.
22727
22728 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22729
22730         PR bootstrap/48135
22731         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22732         reference.  Solaris 8 perl works.
22733
22734 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22735
22736         PR bootstrap/48135
22737         * doc/install.texi (Prerequisites): Move jar etc. up.
22738         Explain support library version requirements.
22739
22740 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22741
22742         PR bootstrap/48135
22743         * doc/install.texi (Prerequisites): Move Perl to build
22744         requirements.  Always necessary on Solaris 2 with Sun ld.
22745
22746 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22747
22748         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22749         binutils 2.21.
22750         (Specific, i?86-*-solaris2.[89]): Likewise.
22751         (Specific, i?86-*-solaris2.10): Likewise.
22752         (Specific, mips-sgi-irix6): Likewise.
22753         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22754         Update for binutils 2.21.
22755
22756 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22757
22758         * configure.ac (gcc_cv_lto_plugin): Fix typo.
22759         Allow -fuse-linker-plugin for non-default plugin linker.
22760         * configure: Regenerate.
22761
22762 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22763
22764         PR bootstrap/48167
22765         * gengtype.c (files_rules): Added rule for cp/parser.h.
22766
22767 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22768
22769         PR target/48213
22770         * config/s390/s390.c (s390_delegitimize_address): Don't call
22771         lowpart_subreg if orig_x has BLKmode.
22772
22773 2011-03-21  Kai Tietz  <ktietz@redhat.com>
22774
22775         PR target/12171
22776         * doc/plugins.texi: Adjust documentation for plugin register_callback.
22777         * tree.h (attribute_spec): Add new member affects_type_identity.
22778         * attribs.c (empty_attribute_table): Adjust attribute_spec
22779         initializers.
22780         * config/alpha/alpha.c: Likewise.
22781         * config/arc/arc.c: Likewise.
22782         * config/arm/arm.c: Likewise.
22783         * config/avr/avr.c: Likewise.
22784         * config/bfin/bfin.c: Likewise.
22785         * config/crx/crx.c: Likewise.
22786         * config/darwin.h: Likewise.
22787         * config/h8300/h8300.c: Likewise.
22788         * config/i386/cygming.h: Likewise.
22789         * config/i386/i386.c: Likewise.
22790         * config/ia64/ia64.c: Likewise.
22791         * config/m32c/m32c.c: Likewise.
22792         * config/m32r/m32r.c: Likewise.
22793         * config/m68hc11/m68hc11.c: Likewise.
22794         * config/m68k/m68k.c: Likewise.
22795         * config/mcore/mcore.c: Likewise.
22796         * config/mep/mep.c: Likewise.
22797         * config/microblaze/microblaze.c: Likewise.
22798         * config/mips/mips.c: Likewise.
22799         * config/rs6000/rs6000.c: Likewise.
22800         * config/rx/rx.c: Likewise.
22801         * config/sh/sh.c: Likewise.
22802         * config/sol2.h: Likewise.
22803         * config/sparc/sparc.c: Likewise.
22804         * config/spu/spu.c: Likewise.
22805         * config/stormy16/stormy16.c: Likewise.
22806         * config/v850/v850.c: Likewise.
22807
22808 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22809
22810         * simplify-rtx.c (simplify_binary_operation_1): Handle
22811         (xor (and A B) C) case when B and C are both constants.
22812
22813 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22814
22815         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22816
22817 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22818
22819         PR bootstrap/48168
22820         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22821
22822 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22823
22824         PR rtl-optimization/48156
22825         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22826         assume df and df_lr are not NULL.
22827
22828 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22829
22830         PR debug/48023
22831         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22832         between a call and its CALL_ARG_LOCATION note.
22833
22834 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22835
22836         PR debug/48178
22837         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22838         between a call and its corresponding CALL_ARG_LOCATION note.
22839
22840 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22841
22842         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22843         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22844         * haifa-sched.c (setup_ref_regs): Ditto.
22845         * caller-save.c (add_used_regs_1): Ditto.
22846         * dse.c (look_for_hardregs): Ditto.
22847         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22848         * sched-rgn.c (check_live_1): Ditto.
22849
22850 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22851
22852         * c-decl.c (diagnose_mismatched_decls): Give an error for
22853         redefining a typedef with variably modified type.
22854
22855 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22856
22857         * c-decl.c (grokfield): Don't allow typedefs for structures or
22858         unions with no tag by default.
22859         * doc/extend.texi (Unnamed Fields): Update.
22860
22861 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22862
22863         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22864         Rewrite using indirect functions.
22865         (lwp_slwpcb): Ditto.
22866         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22867         (avx_vinsertf128<mode>): Ditto.
22868
22869 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22870
22871         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22872         unspecs.
22873
22874 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22875
22876         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22877         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22878
22879 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22880
22881         PR rtl-optimization/48170
22882         * gcse.c (hoist_code): Remove bogus asserts.
22883
22884 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22885
22886         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22887         computation for prologue/epilogue.
22888
22889 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22890
22891         * Makefile.in (check-consistency): Remove.
22892
22893 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22894
22895         PR debug/48176
22896         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22897         arange_table_in_use is 0, but either text_section_used or
22898         cold_text_section_used is true.  Don't call it if
22899         !info_section_emitted.
22900
22901 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22902
22903         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22904         FUNCTION_VALUE_REGNO_P): Remove.
22905         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22906         Remove.
22907         * config/avr/avr.c (avr_ret_register): Make static inline.
22908         (avr_function_value_regno_p): New function.
22909         (avr_libcall_value): Make static. Add 'func' argument.
22910         (avr_function_value): Make static. Rename 'func' argument to
22911         'fn_decl_or_type', forward it to avr_libcall_value. Call
22912         avr_ret_register function instead of RET_REGISTER macro.
22913         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22914
22915 2011-03-18  Jason Merrill  <jason@redhat.com>
22916
22917         PR c++/23372
22918         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22919
22920 2011-03-18  Richard Guenther  <rguenther@suse.de>
22921
22922         * doc/install.texi (--enable-gold): Remove.
22923         (--with-plugin-ld): Document.
22924         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22925
22926 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22927
22928         PR middle-end/47790
22929         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22930         again after expansion changes.
22931
22932 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22933
22934         * combine.c (try_combine): Do simplification only call of
22935         subst() on i2 even when i1 is present. Update comments.
22936
22937 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22938
22939         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22940         and UNSPEC_PCREL_SYMOFF.
22941
22942 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22943
22944         * config/s390/s390.md: Use define_c_enum for the unspec constant
22945         definitions.
22946
22947 2011-03-18  Richard Henderson  <rth@redhat.com>
22948             Jakub Jelinek  <jakub@redhat.com>
22949
22950         PR bootstrap/48161
22951         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22952         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22953
22954 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22955
22956         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22957         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22958         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22959         Change return type to bool.
22960         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22961
22962 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22963
22964         PR debug/48163
22965         * var-tracking.c (prepare_call_arguments): If CALL target
22966         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22967         pc instead of looking it up using cselib_lookup and use
22968         Pmode for it if x has VOIDmode.
22969         * dwarf2out.c (gen_subprogram_die): If also both first and
22970         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22971
22972         PR debug/48163
22973         * function.c (assign_parms): For data.passed_pointer parms
22974         use MEM of data.entry_parm instead of data.entry_parm itself
22975         as DECL_INCOMING_RTL.
22976         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22977         also when passed and declared mode is the same, DECL_RTL
22978         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22979         a MEM too.
22980
22981 2011-03-16  Jeff Law  <law@redhat.com>
22982
22983         PR rtl-optimization/37273
22984         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22985         handle them like argument loads from stack slots.  Do not double
22986         count memory for memory constants and argument loads from stack slots.
22987
22988 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22989
22990         PR debug/48160
22991         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22992
22993 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22994
22995         PR target/48171
22996         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22997
22998 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22999
23000         PR bootstrap/48153
23001         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23002         if dwarf_strict.
23003         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23004         Clear call_arg_locations and call_arg_loc_last always.
23005
23006         PR middle-end/48152
23007         * var-tracking.c (prepare_call_arguments): If argument needs to be
23008         passed by reference, adjust argtype and mode.
23009
23010 2011-03-17  Richard Guenther  <rguenther@suse.de>
23011
23012         PR middle-end/48134
23013         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23014         a value make sure to fold the statement.
23015
23016 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
23017
23018         PR target/43872
23019         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23020         return condition with !cfun->calls_alloca.
23021
23022 2011-03-17  Richard Guenther  <rguenther@suse.de>
23023
23024         PR bootstrap/48148
23025         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23026         origin for decls in other ltrans units.
23027         (input_varpool_node): Likewise.
23028
23029 2011-03-17  Richard Guenther  <rguenther@suse.de>
23030
23031         PR middle-end/48165
23032         * tree-object-size.c (compute_object_offset): Properly return
23033         the offset operand of MEM_REFs as sizetype.
23034
23035 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23036
23037         PR rtl-optimization/48141
23038         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23039         * dse.c: Include params.h.
23040         (active_local_stores_len): New variable.
23041         (add_wild_read, dse_step1): Clear it when setting active_local_stores
23042         to NULL.
23043         (record_store, check_mem_read_rtx): Decrease it when removing
23044         from the chain.
23045         (scan_insn): Likewise.  Increase it when adding to chain, if it
23046         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23047         set active_local_stores to NULL before the addition.
23048         * Makefile.in (dse.o): Depend on $(PARAMS_H).
23049
23050         PR rtl-optimization/48141
23051         * dse.c (record_store): If no positions are needed in an insn
23052         that cannot be deleted, at least unchain it from active_local_stores.
23053
23054 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
23055
23056         PR debug/47510
23057         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23058         (lookup_type_die_strip_naming_typedef): ... here.
23059         (get_context_die): Use it.
23060         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23061         the anonymous struct named by the naming typedef.
23062
23063 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23064
23065         PR target/48154
23066         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23067         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23068
23069 2011-03-16  Jeff Law  <law@redhat.com>
23070
23071         * tree-vrp.c (identify_jump_threads): Slightly simplify type
23072         check for operands of conditional.  Allow type to be a pointer.
23073
23074 2011-03-16  Richard Guenther  <rguenther@suse.de>
23075
23076         PR tree-optimization/48149
23077         * fold-const.c (fold_binary_loc): Fold
23078         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23079
23080 2011-03-16  Richard Guenther  <rguenther@suse.de>
23081
23082         PR tree-optimization/26134
23083         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23084         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23085         (non_rewritable_mem_ref_base): Handle complex type component
23086         accesses, constrain offsets for vector and complex extracts
23087         more properly.
23088
23089 2011-03-16  Richard Guenther  <rguenther@suse.de>
23090
23091         PR tree-optimization/48146
23092         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23093         operands avoiding the need for renaming.
23094
23095 2011-03-16  Richard Guenther  <rguenther@suse.de>
23096
23097         * gimple-fold.c (maybe_fold_reference): Open-code relevant
23098         constant folding.  Move MEM_REF canonicalization first.
23099         Rely on fold_const_aggregate_ref for initializer folding.
23100         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23101
23102 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23103
23104         PR middle-end/48136
23105         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23106         arg0/arg1 or their arguments are always fold converted to matching
23107         types.
23108
23109         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23110         to nargs.
23111
23112 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23113
23114         PR lto/46944
23115         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23116         Handle in-tree gold.
23117         (ld_vers): Extract binutils version for gold.
23118         (gcc_cv_ld_hidden): Handle gold here.
23119         (gcc_cv_lto_plugin): Determine level of linker plugin support.
23120         * configure: Regenerate.
23121         * config.in: Regenerate.
23122         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23123         -fuse-linker-plugin otherwise.
23124         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
23125         (LINK_COMMAND_SPEC): Use it.
23126         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23127
23128 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23129
23130         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23131         * calls.c: Remove debug.h include.
23132         (emit_call_1): Don't call virtual_call_token debug hook.
23133         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23134         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23135         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23136         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23137         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23138         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23139         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23140         dwarf2out_virtual_call): Remove.
23141         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23142         copy_call_info and virtual_call hooks.
23143         (dwarf2out_init): Don't initialize vcall_insn_table,
23144         debug_dcall_section and debug_vcall_section.
23145         (prune_unused_types): Don't mark nodes from dcall_table.
23146         (dwarf2out_finish): Don't output dcall or vcall tables.
23147         * final.c (final_scan_insn): Don't call direct_call or
23148         virtual_call debug hooks.
23149         * debug.h (struct gcc_debug_hooks): Remove direct_call,
23150         virtual_call_token, copy_call_info and virtual_call hooks.
23151         (debug_nothing_uid): Remove prototype.
23152         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23153         copy_call_info and virtual_call hooks.
23154         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23155         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23156         * debug.c (do_nothing_debug_hooks): Likewise.
23157         (debug_nothing_uid): Remove.
23158         * doc/invoke.texi (-fenable-icf-debug): Remove.
23159         * common.opt (-fenable-icf-debug): Likewise.
23160
23161         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23162         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23163         call's MEM.  Handle functions returning aggregate through a hidden
23164         first pointer.  For virtual calls add clobbered pc to call arguments
23165         chain.
23166         * dwarf2out.c (gen_subprogram_die): Emit
23167         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23168         can't be emitted.
23169
23170         PR debug/45882
23171         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23172         * rtl.h (ENTRY_VALUE_EXP): Define.
23173         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23174         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23175         * print-rtl.c (print_rtx): Likewise.
23176         * gengtype.c (adjust_field_rtx_def): Likewise.
23177         * var-tracking.c (vt_add_function_parameter): Adjust
23178         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23179         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23180         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23181         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23182         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23183
23184         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23185         Call var_location debug hook even on CALL_INSNs.
23186         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23187         * rtl.def (ENTRY_VALUE): New.
23188         * dwarf2out.c: Include cfglayout.h.
23189         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23190         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23191         (struct call_arg_loc_node): New type.
23192         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23193         tail_call_site_count): New variables.
23194         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23195         DW_TAG_GNU_call_site_parameter.
23196         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23197         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23198         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23199         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23200         and DW_AT_GNU_all_source_call_sites.
23201         (mem_loc_descriptor): Handle ENTRY_VALUE.
23202         (add_src_coords_attributes): Don't add enything if
23203         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23204         (dwarf2out_abstract_function): Save and clear call_arg_location,
23205         call_site_count and tail_call_site_count around dwarf2out_decl call.
23206         (gen_call_site_die): New function.
23207         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23208         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23209         (dwarf2out_function_decl): Clear call_arg_locations,
23210         call_arg_loc_last, set call_site_count and tail_call_site_count
23211         to -1 and free block_map.
23212         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23213         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
23214         followed by any real instructions.
23215         (dwarf2out_begin_function): Set call_site_count and
23216         tail_call_site_count to 0.
23217         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23218         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23219         attempt to force a DIE for it and worst case remove the attribute.
23220         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23221         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23222         the decl itself.
23223         * var-tracking.c: Include tm_p.h.
23224         (vt_stack_adjustments): For calls call note_register_arguments.
23225         (argument_reg_set): New variable.
23226         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23227         ensure the VALUE is resolved.
23228         (call_arguments): New variable.
23229         (prepare_call_arguments): New function.
23230         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23231         (struct expand_loc_callback_data): Add ignore_cur_loc field.
23232         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23233         always use the best expression.
23234         (vt_expand_loc): Add ignore_cur_loc argument.
23235         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23236         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23237         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23238         note for all calls.
23239         (vt_add_function_parameter): Use cselib_lookup_from_insn.
23240         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23241         argument.  Don't call cselib_preserve_only_values and
23242         cselib_reset_table.
23243         (note_register_arguments): New function.
23244         (vt_initialize): Compute argument_reg_set.  Call
23245         vt_add_function_parameters before processing basic blocks instead of
23246         afterwards.  For calls call prepare_call_arguments before calling
23247         cselib_process_insn.
23248         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23249         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23250         (var-tracking.o): Depend on $(TM_P_H).
23251         * cfglayout.h (insn_scope): New prototype.
23252         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23253         * cfglayout.c (insn_scope): No longer static.
23254         * insn-notes.def (CALL_ARG_LOCATION): New.
23255         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23256         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23257         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23258         nothing for DECL_EXTERNAL BLOCK_VARS.
23259
23260 2011-03-16  Alan Modra  <amodra@gmail.com>
23261
23262         PR target/45844
23263         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23264         create invalid offset address for vsx splat insn.
23265         * config/rs6000/predicates.md (splat_input_operand): New.
23266         * config/rs6000/vsx.md (vsx_splat_*): Use it.
23267
23268 2011-03-15  Xinliang David Li  <davidxl@google.com>
23269
23270         PR c/47837
23271         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23272         (normalize_preds): New function.
23273         (is_use_properly_guarded): Normalize def predicates.
23274
23275 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23276
23277         PR target/46788
23278         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23279         in the output template.
23280
23281 2011-03-15  Richard Guenther  <rguenther@suse.de>
23282
23283         PR middle-end/47650
23284         * tree-pretty-print.c (dump_function_declaration): Properly
23285         dump unprototyped and varargs function types.
23286
23287 2011-03-15  Richard Guenther  <rguenther@suse.de>
23288
23289         PR tree-optimization/13954
23290         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23291         and friends.
23292
23293 2011-03-15  Richard Guenther  <rguenther@suse.de>
23294
23295         PR tree-optimization/48037
23296         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23297         selects into BIT_FIELD_REFs.
23298         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23299         vector select.
23300
23301 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
23302
23303         PR tree-optimization/48129
23304         * builtins.c (fold_builtin_snprintf): Convert to type of
23305         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23306         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23307
23308 2011-03-15  Richard Guenther  <rguenther@suse.de>
23309
23310         PR tree-optimization/41490
23311         * tree-ssa-dce.c (propagate_necessity): Handle returns without
23312         value but with VUSE.
23313         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23314         return statements.
23315         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23316         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23317         * tree-tailcall.c (find_tail_calls): Ignore returns.
23318
23319 2011-03-15  Richard Guenther  <rguenther@suse.de>
23320
23321         PR middle-end/48031
23322         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23323         or variable-indexed array accesses when in gimple form.
23324
23325 2011-03-15  Richard Guenther  <rguenther@suse.de>
23326
23327         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23328
23329 2011-03-15  Alan Modra  <amodra@gmail.com>
23330
23331         PR target/48032
23332         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23333         presume symbol_refs without a symbol_ref_decl are suitably
23334         aligned, nor other trees we may see here.  Handle anchor symbols.
23335         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23336         Check cmodel=medium addresses.  Adjust all calls.
23337         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23338         creating cmodel=medium optimized access to locals.
23339         * config/rs6000/constraints.md (R): Pass QImode to
23340         legitimate_constant_pool_address_p.
23341         * config/rs6000/predicates.md (input_operand): Pass mode to
23342         legitimate_constant_pool_address_p.
23343         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23344         Update prototype.
23345
23346 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23347
23348         PR target/48053
23349         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23350         64-bit constants being loaded into registers other than GPRs such
23351         as loading 0 into a VSX register.
23352
23353 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23354
23355         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23356
23357 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23358
23359         PR middle-end/47917
23360         * builtins.c (fold_builtin_snprintf): New function.
23361         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23362         (fold_builtin_4): Likewise.
23363
23364         PR middle-end/38878
23365         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23366         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23367         and C - X == X also strip nops from +/-/p+ operand.
23368         When optimizing -X == C, fold C to arg0's type.
23369
23370         PR debug/47946
23371         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23372         emit it as add_AT_int instead of add_AT_unsigned.
23373
23374 2011-03-14  Tom Tromey  <tromey@redhat.com>
23375
23376         * unwind-dw2.c: Include sys/sdt.h if it exists.
23377         (_Unwind_DebugHook): Use STAP_PROBE2.
23378         * config.in, configure: Rebuild.
23379         * configure.ac: Check for sys/sdt.h.
23380
23381 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23382
23383         * config/i386/i386.md (ROUND_FLOOR): New constant.
23384         (ROUND_CEIL): Ditto.
23385         (ROUND_TRUNC): Ditto.
23386         (ROUND_MXCSR): Ditto.
23387         (ROUND_NO_EXC): Ditto.
23388         (rint<mode>2): Use new defines instead of numerical constants.
23389         (floor<mode>2): Ditto.
23390         (ceil<mode>2): Ditto.
23391         (btrunc<mode>2): Ditto.
23392         * config/i386/i386-builtin-types.def: Define ROUND function type
23393         aliases.
23394         * config/i386/i386.c (enum ix86_builtins): Add
23395         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23396         (struct builtin_description): Add
23397         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23398         (ix86_expand_sse_round): New static function.
23399         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23400         function types.
23401         (ix86_builtin_vectorized_function): Handle
23402         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23403
23404 2011-03-14  Tom Tromey  <tromey@redhat.com>
23405
23406         * c-parser.c (c_parser_asm_string_literal): Clear
23407         warn_overlength_strings.
23408
23409 2011-03-14  Tom Tromey  <tromey@redhat.com>
23410
23411         * c-parser.c (disable_extension_diagnostics): Save
23412         warn_overlength_strings.
23413         (restore_extension_diagnostics): Restore warn_overlength_strings.
23414
23415 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23416
23417         * BASE-VER: Change to 4.7.0.
23418
23419 2011-03-14  Richard Guenther  <rguenther@suse.de>
23420
23421         PR middle-end/48098
23422         * tree.c (build_vector_from_val): Adjust assert to requirements
23423         and reality.
23424
23425 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23426
23427         PR bootstrap/48102
23428         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23429
23430 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23431
23432         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23433         terms of target_flags_explicit. Adjust copyright year.
23434
23435         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23436         * config/rs6000/t-freebsd: New file. Add override for
23437         LIB2FUNCS_EXTRA.
23438
23439 2011-03-13  Chris Demetriou  <cgd@google.com>
23440
23441         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23442         (-fno-diagnostics-show-option): this, to reflect current default.
23443         (-Werror=): Update text about -fno-diagnostics-show-option.
23444
23445 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23446
23447         PR target/48053
23448         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23449         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23450         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23451         mode is not V2DImode or V2DFmode.
23452         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23453         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23454         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23455         registers to 0.
23456         (movdi_internal64): Likewise.
23457
23458 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23459
23460         PR tree-optimization/47127
23461         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23462         parameter.
23463         (set_cloog_options): Same.
23464         (scop_to_clast): Same.
23465         (print_clast_stmt): Do not call cloog_state_malloc and
23466         cloog_state_free.
23467         (print_generated_program): Same.
23468         (gloog): Same.
23469         * graphite-clast-to-gimple.h (cloog_state): Declared.
23470         (scop_to_clast): Adjust declaration.
23471         * graphite.c (cloog_state): Defined here.
23472         (graphite_initialize): Call cloog_state_malloc.
23473         (graphite_finalize): Call cloog_state_free.
23474
23475 2011-03-11  Jason Merrill  <jason@redhat.com>
23476
23477         * attribs.c (lookup_attribute_spec): Take const_tree.
23478         * tree.h: Adjust.
23479
23480 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23481
23482         * config/sparc/sparc.c (sparc_option_override): Use
23483         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23484
23485 2011-03-11  Richard Guenther  <rguenther@suse.de>
23486
23487         PR tree-optimization/48067
23488         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23489         multiplication result will be only used once on the target
23490         stmt.
23491
23492 2011-03-11  Richard Guenther  <rguenther@suse.de>
23493
23494         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23495
23496 2011-03-11  Richard Guenther  <rguenther@suse.de>
23497
23498         PR lto/48073
23499         * tree.c (find_decls_types_r): Do not walk types only reachable
23500         from IDENTIFIER_NODEs.
23501
23502 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23503
23504         PR middle-end/48044
23505         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23506         all vnode->force_output nodes as needed.
23507
23508 2011-03-11  Jason Merrill  <jason@redhat.com>
23509
23510         PR c++/48069
23511         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23512         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23513
23514 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23515
23516         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23517         cgraph_node.
23518
23519 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23520
23521         PR tree-optimization/48063
23522         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23523         inline functions called once if !tree_can_inline_p (node->callers).
23524
23525 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23526
23527         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23528         extra_objs.
23529         * config/score/score3.c: Delete.
23530         * config/score/score3.h: Delete.
23531         * config/score/mul-div.S: Delete.
23532         * config/score/sfp-machine.h: Add new file.
23533         * config/score/constraints.md: Add new file.
23534         * config/score/t-score-softfp: Add new file.
23535         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23536         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23537         (score7_extra_constraint): Delete.
23538         (score7_option_override): Remove unused code.
23539         * config/score/score.c: Remove score3 and score5 define and code.
23540         * config/score/score.h: Remove score3 and score5 define and code.
23541         * config/score/score.md: Remove score3 template and unusual insn.
23542         * config/score/score.opt: Remove score3 and score5 options.
23543
23544 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23545
23546         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23547         when _HPUX_SOURCE is defined.
23548         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23549
23550 2011-03-10  Jason Merrill  <jason@redhat.com>
23551
23552         PR c++/48029
23553         * stor-layout.c (layout_type): Don't set structural equality
23554         on arrays of incomplete type.
23555         * tree.c (type_hash_eq): Handle comparing them properly.
23556
23557 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23558
23559         PR debug/48043
23560         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23561         result mode matches original rtl mode.
23562
23563 2011-03-10  Nick Clifton  <nickc@redhat.com>
23564
23565         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23566         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23567
23568 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23569
23570         PR rtl-optimization/47866
23571         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23572         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23573         if target wasn't scalar.
23574         * function.c (assign_stack_temp_for_type): Assert that neither
23575         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23576         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23577         macro.
23578         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23579
23580 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23581
23582         * config/s390/s390-protos.h (s390_label_align): New prototype.
23583         * config/s390/s390.c (s390_label_align): New function.
23584         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23585
23586 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23587
23588         PR target/47755
23589         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23590         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23591         (output_vec_const_move): Ditto.
23592
23593 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23594
23595         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23596         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23597         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23598         Change 'rclass' argument and result type to reg_class_t.
23599         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23600
23601 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23602
23603         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23604         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23605         (TARGET_MEMORY_MOVE_COST): Define.
23606         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23607
23608 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23609
23610         PR debug/47881
23611         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23612         removed anything.
23613
23614         PR tree-optimization/48022
23615         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23616         for EQ/NE_EXPR.
23617
23618 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23619
23620         PR debug/47991
23621         * var-tracking.c (find_use_val): Return NULL for
23622         cui->sets && cui->store_p BLKmode MEMs.
23623
23624 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23625
23626         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23627         Remove.
23628         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23629         xstormy16_print_operand_address): Remove.
23630         * config/stormy16/stormy16.c (xstormy16_print_operand,
23631         xstormy16_print_operand_address): Make static.
23632         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23633
23634 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
23635
23636         PR target/47862
23637         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23638         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23639         before definition.
23640
23641 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
23642
23643         PR bootstrap/48000
23644         * cfgloopmanip.c (fix_bb_placements): Return immediately
23645         if FROM is BASE_LOOP's header.
23646
23647 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
23648
23649         * gimplify.c (gimplify_function_tree): Fix building calls
23650         to __builtin_return_address.
23651
23652 2011-03-07  Alan Modra  <amodra@gmail.com>
23653
23654         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23655         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23656         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23657         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23658         return_mode args.
23659         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23660         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23661         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23662         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23663         * config/rs6000/rs6000.c
23664         (rs6000_elf_end_indicate_exec_stack): Rename to..
23665         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
23666         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
23667         (rs6000_file_start): ..here.
23668         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23669         file scope variables.
23670         (call_ABI_of_interest): New function.
23671         (init_cumulative_args): Set above vars when function return value
23672         is a float, vector, or small struct.
23673         (rs6000_function_arg_advance_1): Likewise for function args.
23674         (rs6000_va_start): Set rs6000_passes_float if variable arg function
23675         references float args.
23676
23677 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23678
23679         * doc/cfg.texi: Remove "See" before @ref.
23680         * doc/invoke.texi: Likewise.
23681
23682 2011-03-05  Jason Merrill  <jason@redhat.com>
23683
23684         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23685
23686 2011-03-05  Anthony Green  <green@moxielogic.com>
23687
23688         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23689
23690 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
23691
23692         PR rtl-optimization/47899
23693         * cfgloopmanip.c (fix_bb_placements): Fix first argument
23694         to flow_loop_nested_p when moving the loop upward.
23695
23696 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
23697
23698         PR target/47719
23699         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
23700
23701 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
23702
23703         PR tree-optimization/47967
23704         * ipa-cp.c (build_const_val): Return NULL instead of creating
23705         VIEW_CONVERT_EXPR for mismatching sizes.
23706         (ipcp_create_replace_map): Return NULL if build_const_val failed.
23707         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23708         give up on versioning.
23709
23710 2011-03-05  Alan Modra  <amodra@gmail.com>
23711
23712         PR target/47986
23713         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23714         full cmodel medium/large lo_sum + high addresses.
23715
23716 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23717
23718         * config/s390/s390.c (s390_decompose_address): Reject non-literal
23719         pool references in UNSPEC_LTREL_OFFSET.
23720
23721 2011-03-04  Jan Hubicka  <jh@suse.cz>
23722
23723         PR lto/47497
23724         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23725         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23726         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23727         Add node pointers.
23728         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23729         cgraph_add_thunk): Add node pointers.
23730         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23731         associated to right node.
23732         (input_node): Update use of cgraph_same_body_alias
23733         and cgraph_add_thunk.
23734
23735 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23736
23737         * config/i386/i386.opt (mprefer-avx128): New flag.
23738         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23739         modes when the flag -mprefer-avx128 is on.
23740
23741 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
23742
23743         * dwarf2out.c (compare_loc_operands): Fix address handling.
23744
23745 2011-03-04  Alan Modra  <amodra@gmail.com>
23746
23747         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23748
23749 2011-03-04  Richard Guenther  <rguenther@suse.de>
23750
23751         PR middle-end/47968
23752         * expmed.c (extract_bit_field_1): Prefer vector modes that
23753         vec_extract patterns can handle.
23754
23755 2011-03-04  Richard Guenther  <rguenther@suse.de>
23756
23757         PR middle-end/47975
23758         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23759
23760 2011-03-04  Richard Henderson  <rth@redhat.com>
23761
23762         * explow.c (emit_stack_save): Remove 'after' parameter.
23763         (emit_stack_restore): Likewise.
23764         * expr.h: Update to match.
23765         * builtins.c, calls.c, stmt.c: Likewise.
23766         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23767         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23768         * function.c (expand_function_end): Insert the emit_stack_save
23769         sequence before parm_birth_insn instead of after.
23770
23771 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
23772
23773         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23774         (ssse3_pmaddubsw128): Ditto.
23775         (ssse3_pmaddubsw): Ditto.
23776
23777 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
23778
23779         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23780
23781 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
23782
23783         PR c/47963
23784         * gimplify.c (omp_add_variable): Only call omp_notice_variable
23785         on TYPE_SIZE_UNIT if it is a DECL.
23786
23787         PR debug/47283
23788         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23789         first operand is not is_gimple_mem_ref_addr, try to fold it.
23790         If the operand still isn't is_gimple_mem_ref_addr, clear
23791         MEM_EXPR on op0.
23792
23793 2011-03-03  Richard Guenther  <rguenther@suse.de>
23794
23795         PR middle-end/47283
23796         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23797         match comment.
23798         (refs_may_alias_p_1): For release branches return true if
23799         we are confused by our input.
23800
23801 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23802
23803         * config/s390/s390.c (s390_function_value): Rename to ...
23804         (s390_function_and_libcall_value): ... this.
23805         (s390_function_value): New function.
23806         (s390_libcall_value): New function.
23807         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23808         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23809         target macro definitions.
23810         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23811
23812 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23813
23814         * config/i386/freebsd64.h (CC1_SPEC): Define.
23815         * config/i386/linux64.h (CC1_SPEC): Define.
23816         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23817
23818 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23819
23820         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23821         Remove.
23822         * config/stormy16/stormy16.c: Include reload.h.
23823         (xstormy16_memory_move_cost): New function.
23824         (TARGET_MEMORY_MOVE_COST): Define.
23825
23826 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23827
23828         PR rtl-optimization/47925
23829         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23830         with side effects.  Remove the more-specific check for volatile asms.
23831
23832 2011-03-02  Alan Modra  <amodra@gmail.com>
23833
23834         PR target/47935
23835         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23836         toc relative addresses for valid offsets.
23837
23838 2011-03-01  Richard Guenther  <rguenther@suse.de>
23839
23840         PR tree-optimization/47890
23841         * tree-vect-loop.c (get_initial_def_for_induction): Set
23842         related stmt properly.
23843
23844 2011-03-01  Richard Guenther  <rguenther@suse.de>
23845
23846         PR lto/47924
23847         * lto-streamer.c (lto_record_common_node): Also register
23848         the canonical type.
23849
23850 2011-03-01  Richard Guenther  <rguenther@suse.de>
23851
23852         PR lto/46911
23853         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23854         Do not stream DECL_ABSTRACT_ORIGIN.
23855         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23856         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23857         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23858         Do not stream DECL_ABSTRACT_ORIGIN.
23859         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23860         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23861
23862 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23863
23864         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23865         FUNCTION_VALUE_REGNO_P): Remove.
23866         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23867         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23868         Add 'outgoing' argument.
23869         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23870         function.
23871         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23872         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23873
23874 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23875
23876         PR debug/28047
23877         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23878         (lookup_filename): Likewise.
23879         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23880
23881 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23882             Jakub Jelinek  <jakub@redhat.com>
23883
23884         PR middle-end/47893
23885         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23886         (assign_stack_local_1): Change last argument type to int.
23887         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23888         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23889         don't record padding space into frame_space_list nor use those areas.
23890         (assign_stack_local): Adjust caller.
23891         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23892         of assign_stack_local, pass 0 as last argument.
23893         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23894         callers.
23895
23896 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23897
23898         PR debug/47283
23899         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23900         Use target address_mode and pointer_mode hooks instead of hardcoded
23901         Pmode and ptr_mode.  Handle some simple cases of extending if
23902         POINTERS_EXTEND_UNSIGNED < 0.
23903         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23904         Call convert_debug_memory_address.
23905         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23906         convert_debug_memory_address.
23907
23908         PR middle-end/46790
23909         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23910         * configure: Regenerated.
23911         * config.in: Regenerated.
23912         * varasm.c (default_function_section): Return NULL
23913         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23914
23915 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23916
23917         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23918         the description to match the printed values.
23919
23920 2011-02-28  Richard Guenther  <rguenther@suse.de>
23921
23922         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23923         of the copied scope tree.
23924
23925 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23926
23927         * doc/extend.texi (Function Attributes): Avoid deeply (and
23928         wrongly) nested tables.
23929
23930 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23931
23932         PR middle-end/47903
23933         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23934         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23935         r isn't op0 nor op1.
23936
23937 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23938
23939         * config/avr/avr.md: Remove magic comment for emacs.
23940
23941 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23942
23943         PR target/45261
23944         * config/avr/avr.c (avr_option_override): Use error on bad options.
23945         (avr_help): New function.
23946         (TARGET_HELP): Define.
23947
23948 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23949
23950         PR target/42240
23951         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23952         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23953
23954 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23955
23956         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23957         (ARM Options): Ditto.
23958         (i386 and x86-64 Options): Ditto.
23959         (RX Options): Ditto.
23960         (SPARC Options): Ditto.
23961
23962 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23963
23964         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23965         FreeBSD 6 and later.  Generally use cpu generic.
23966
23967 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23968
23969         * doc/cpp.texi: Update copyright years.
23970
23971 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23972
23973         PR target/46898
23974         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23975
23976 2011-02-25  Jon Beniston  <jon@beniston.com>
23977
23978         PR target/46898
23979         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23980         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23981         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23982         (lm32_block_move_inline): Add type cast to remove warning.
23983         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23984         (gen_int_relational): Move declarations to start of function.
23985
23986 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23987
23988         PR tree-optimization/45470
23989         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23990         can throw internally only.
23991         * tree-vect-stmts.c (vectorizable_call): Likewise.
23992
23993 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23994
23995         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23996         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23997         * config/stormy16/stormy16-protos.h
23998         (xstormy16_preferred_reload_class): Remove.
23999         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24000         static. Change 'rclass' argument and return type to reg_class_t.
24001         (TARGET_PREFERRED_RELOAD_CLASS,
24002         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24003
24004 2011-02-24  Richard Guenther  <rguenther@suse.de>
24005
24006         * lto-streamer-in.c (input_bb): Do not find referenced vars
24007         in debug statements.
24008
24009 2011-02-23  Jason Merrill  <jason@redhat.com>
24010
24011         * common.opt (fabi-version): Document v5 and v6.
24012
24013 2011-02-23  Richard Guenther  <rguenther@suse.de>
24014
24015         PR tree-optimization/47849
24016         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24017
24018 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24019
24020         * opts-common.c (decode_cmdline_option): Print empty string
24021         argument as "" in decoded->orig_option_with_args_text.
24022         * gcc.c (execute): Print empty string argument as ""
24023         in the verbose output.
24024         (do_spec_1): Keep empty string argument.
24025
24026 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
24027
24028         * config.gcc: Declare score-* and crx-* obsolete.
24029
24030 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24031
24032         PR rtl-optimization/47763
24033         * web.c (web_main): Ignore naked clobber when replacing register.
24034
24035 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
24036
24037         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24038         Remove.
24039
24040 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24041
24042         PR doc/47848
24043         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24044
24045 2011-02-22  Mike Stump  <mikestump@comcast.net>
24046
24047         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24048         assembler.
24049         * configure: Regenerate.
24050
24051 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
24052
24053         PR rtl-optimization/46002
24054         * ira-color.c (update_copy_costs): Change class intersection
24055         test to reg_class_contents[] test of 'hard_regno'.
24056
24057 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
24058
24059         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24060         than Driver option.
24061         * config/hpux11.opt (mt): Likewise.
24062         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24063         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24064         * config/vax/elf.opt (mno-asm-pic): Likewise.
24065         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24066
24067 2011-02-21  Mike Stump  <mikestump@comcast.net>
24068
24069         PR target/47822
24070         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24071         tree so we can get save the type.
24072         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24073         for CFString instead of trying to use past the end of the builtins.
24074         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24075         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24076         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24077         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24078         Rename to darwin_builtin_cfstring.
24079         (darwin_init_cfstring_builtins): Return the built type.
24080
24081 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
24082
24083         PR target/47840
24084         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24085         (_mm256_insert_epi64): Use _mm_insert_epi64.
24086
24087 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
24088
24089         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24090         * config/stormy16/stormy16-protos.h
24091         (xstormy16_mode_dependent_address_p): Remove.
24092         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24093         Make static. Change return type to bool. Change argument type to
24094         const_rtx. Remove dead code.
24095         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24096
24097 2011-02-21  Richard Guenther  <rguenther@suse.de>
24098
24099         PR lto/47820
24100         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24101         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24102         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24103         TUs context.
24104         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24105         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24106
24107 2011-02-20  Richard Guenther  <rguenther@suse.de>
24108
24109         PR lto/47822
24110         * tree.c (free_lang_data_in_decl): Clean builtins from
24111         the TU decl BLOCK_VARS.
24112
24113 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
24114
24115         PR debug/47620
24116         PR debug/47630
24117         * haifa-sched.c (fix_tick_ready): Skip tick computation
24118         for debug insns.
24119
24120 2011-02-19  Richard Guenther  <rguenther@suse.de>
24121
24122         PR lto/47647
24123         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24124         Remove lazy BLOCK_VARS streaming.
24125         (lto_input_ts_block_tree_pointers): Likewise.
24126         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24127
24128 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24129
24130         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24131
24132 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24133
24134         * config/i386/biarch32.h, config/i386/mach.h,
24135         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24136
24137 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
24138
24139         PR target/47800
24140         * config/i386/i386.md (peephole2 for shift and plus): Use
24141         operands[1] original mode in the first insn.
24142
24143 2011-02-18  Mike Stump  <mikestump@comcast.net>
24144
24145         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24146
24147 2011-02-18  Jan Hubicka  <jh@suse.cz>
24148
24149         PR middle-end/47788
24150         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24151         to zero when the function is not inlinable at all.
24152
24153 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24154
24155         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24156         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24157         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24158         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24159         * config/pa/t-pa64: Likewise.
24160         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24161
24162 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24163
24164         PR driver/47787
24165         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24166
24167 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24168
24169         PR target/47792
24170         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24171
24172 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
24173
24174         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24175         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24176         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24177         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24178         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24179         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24180         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24181         m32r_load_postinc_p, m32r_store_preinc_predec_p,
24182         m32r_legitimate_address_p): New functions.
24183         * config/m32r/constraints.md (constraint "S"): Don't use
24184         STORE_PREINC_PREDEC_P.
24185         (constraint "U"): Don't use LOAD_POSTINC_P.
24186
24187 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
24188
24189         PR rtl-optimization/46178
24190         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24191         compute ira_hard_regno_cover_class[].
24192
24193 2011-02-18  Richard Guenther  <rguenther@suse.de>
24194
24195         PR lto/47798
24196         * lto-streamer.h (lto_global_var_decls): Declare.
24197         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24198         statics for global var processing.
24199
24200 2011-02-18  Richard Guenther  <rguenther@suse.de>
24201
24202         PR tree-optimization/47737
24203         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24204         edge dominance check.
24205
24206 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24207
24208         PR debug/47780
24209         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24210         avoid invalid rtx sharing.
24211
24212 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
24213
24214         * doc/cpp.texi (Obsolete Features): Add background on the
24215         origin of assertions.
24216
24217 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
24218
24219         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24220         objc_abi == 2.
24221         * config/darwin.c (output_objc_section_asm_op): Added support for
24222         ABI v1 and v2.
24223         (is_objc_metadata): New.
24224         (darwin_objc2_section): New.
24225         (darwin_objc1_section): New.
24226         (machopic_select_section): Added support for ABI v1 and v2.
24227         (darwin_emit_objc_zeroed): New.
24228         (darwin_output_aligned_bss): Detect objc metadata and treat it
24229         appropriately.
24230         (darwin_asm_output_aligned_decl_common): Same.
24231         (darwin_asm_output_aligned_decl_local): Same.
24232         * config/darwin-sections.def: Updated for ABI v1 and v2.
24233         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24234         compiling Objective-C code for the NeXT runtime, default to using
24235         ABI version 0 for 32-bit, and version 2 for 64-bit.
24236
24237 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24238
24239         * common.opt (optimize_fast): New Variable.
24240         * opts.c (default_options_optimization): Use opts->x_optimize_fast
24241         instead of local variable ofast.
24242
24243 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
24244
24245         * doc/invoke.texi (fobjc-abi-version): Documented.
24246         (fobjc-nilcheck): Documented.
24247         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24248         version.
24249
24250 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24251
24252         PR driver/47390
24253         * common.opt (export-dynamic): New Driver option.
24254         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24255
24256 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24257
24258         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24259
24260 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
24261             Jan Hubicka  <jh@suse.cz>
24262
24263         PR debug/47106
24264         PR debug/47402
24265         * cfgexpand.c (account_used_vars_for_block): Remove.
24266         (estimated_stack_frame_size): Use referenced vars.
24267         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24268         that were referenced in the original function.  Test src_fn
24269         rather than cfun.  Drop redundant get_var_ann.
24270         (setup_one_parameter): Drop redundant get_var_ann.
24271         (declare_return_variable): Likewise.
24272         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24273         (copy_arguments_for_versioning): Drop redundant get_var_ann.
24274         * ipa-inline.c (compute_inline_parameters): Do not compute
24275         disregard_inline_limits here.
24276         (compute_inlinable_for_current, pass_inlinable): New.
24277         (pass_inline_parameters): Require PROP_referenced_vars.
24278         * cgraphunit.c (cgraph_process_new_functions): Don't run
24279         compute_inline_parameters explicitly unless function is in SSA form.
24280         (cgraph_analyze_function): Set .disregard_inline_limits.
24281         * tree-sra.c (convert_callers): Compute inliner parameters
24282         only for functions already in SSA form.
24283
24284 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24285
24286         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24287         -mlittle-endian-data.
24288
24289 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24290
24291         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24292         -mno-fpu, not -fpu and -no-fpu.
24293         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24294         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24295
24296 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
24297
24298         PR target/43653
24299         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24300         input reload with PLUS RTX.
24301
24302 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24303
24304         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24305         of InverseVar(MDMX).
24306
24307 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24308
24309         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24310         --m4-340.
24311
24312 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24313
24314         * config/mn10300/mn10300.opt (mno-crt0): New.
24315
24316 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24317
24318         * config/m68k/uclinux.opt (static-libc): New Driver option.
24319
24320 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24321
24322         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24323
24324 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24325
24326         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24327         %{muser-extend-enabled}.
24328
24329 2011-02-16  Richard Guenther  <rguenther@suse.de>
24330
24331         PR tree-optimization/47738
24332         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24333         the TODO from tree_predictive_commoning.
24334
24335 2011-02-15  Jeff Law  <law@redhat.com>
24336
24337         Revert
24338         2011-01-25  Jeff Law  <law@redhat.com>
24339
24340         PR rtl-optimization/37273
24341         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24342         handle them like argument loads from stack slots.  Do not double
24343         count memory for memory constants and argument loads from stack slots.
24344
24345 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24346
24347         PR target/47755
24348         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24349         mode for vector constants.  Remove code that checks for TImode.
24350
24351 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24352
24353         PR debug/47106
24354         PR debug/47402
24355         * cgraph.h (compute_inline_parameters): Return void.
24356         * ipa-inline.c (compute_inline_parameters): Adjust.
24357
24358 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24359
24360         PR debug/47106
24361         PR debug/47402
24362         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24363         rather than decl.
24364         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24365         * ipa-inline.c (compute_inline_parameters): Adjust.
24366
24367 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24368
24369         PR debug/47106
24370         PR debug/47402
24371         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24372         Adjust all users.  Pass FN to...
24373         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24374         fn argument.
24375         * ipa-struct-reorg.c: Adjust.
24376         * tree-dfa.c: Adjust.
24377         * tree-into-ssa.c: Adjust.
24378         * tree-sra.c: Adjust.
24379         * tree-ssa-alias.c: Adjust.
24380         * tree-ssa-live.c: Adjust.
24381         * tree-ssa.c: Adjust.
24382         * tree-ssanames.c: Adjust.
24383         * tree-tailcall.c: Adjust.
24384
24385 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24386
24387         PR debug/47106
24388         PR debug/47402
24389         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24390         Adjust all callers.
24391         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24392         * tree-flow-inline.h: Adjust.
24393         * gimple-pretty-print.c: Adjust.
24394         * tree-into-ssa.c: Adjust.
24395         * tree-ssa.c: Adjust.
24396         * cfgexpand.c: Adjust.
24397
24398 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24399
24400         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24401         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24402         (EXTRA_CONSTRAINT): Delete.
24403         * config/iq2000/constraints.md: New file.
24404         * config/iq2000/iq2000.md: Include it.
24405         (define_insn ""): Delete.
24406         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24407         unsupported constraint letters from patterns.
24408         (call_value, call_value_internal1): Likewise.
24409         (call_value_multiple_internal1): Likewise.
24410
24411 2011-02-15  Nick Clifton  <nickc@redhat.com>
24412
24413         * config/mn10300/mn10300.c: Include tm-constrs.h.
24414         (struct liw_data): New data structure describing an LIW candidate
24415         instruction.
24416         (extract_bundle): Use struct liw_data.  Allow small integer
24417         operands for some instructions.
24418         (check_liw_constraints): Use struct liw_data.  Remove swapped
24419         parameter.  Add comments describing the checks.  Fix bug when
24420         assigning the source of liw1 to the source of liw2.
24421         (liw_candidate): Delete.  Code moved into extract_bundle.
24422         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24423         before swapping.
24424         * config/mn10300/predicates.md (liw_operand): New predicate.
24425         Allows registers and small integer constants.
24426         * config/mn10300/constraints.md (O): New constraint.  Accetps
24427         integers in the range -8 to +7 inclusive.
24428         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24429         for moving a small integer into a register.  Give this alternative
24430         LIW attributes.
24431         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24432         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24433         using the J,K,L and M constraints,
24434         (liw): Remove SI mode on second operands to allow for HI and QI
24435         mode values.
24436         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24437         instruction.
24438
24439 2011-02-15  Richard Guenther  <rguenther@suse.de>
24440
24441         PR tree-optimization/47743
24442         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24443         for a non-type-compatible VN lookup bail out.
24444
24445 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24446
24447         * config/fr30/constraints.md: New file.
24448         * config/fr30/fr30.md: Include it.
24449         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24450         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24451         (EXTRA_CONSTRAINT): Delete.
24452
24453 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24454
24455         * config/frv/constraints.md: New file.
24456         * config/frv/predicates.md: Include it.
24457         * config/frv/frv.c (reg_class_from_letter): Delete.
24458         (frv_option_override): Don't initialize it.
24459         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24460         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24461         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24462         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24463         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24464         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24465         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24466         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24467         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24468         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24469         (REG_CLASS_FROM_CONSTRAINT): Delete.
24470
24471 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24472
24473         PR middle-end/47581
24474         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24475         if frame size is 0 in a leaf function.
24476
24477 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24478
24479         PR pch/14940
24480         * config/alpha/host-osf.c: New file.
24481         * config/alpha/x-osf: New file.
24482         * config.host (alpha*-dec-osf*): Use it.
24483
24484 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24485
24486         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24487         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24488         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24489         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24490         type to const_rtx.
24491         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24492
24493 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24494
24495         * config/stormy16/constraints.md: New file.
24496         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24497         Use satisfies_constraint_Q and satisfies_constraint_R.
24498         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24499         Delete.
24500         (xstormy16_legitiamte_address_p): Declare.
24501         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24502         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24503         (EXTRA_CONSTRAINT): Delete.
24504         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24505         Un-staticize.
24506         (xstormy16_extra_constraint_p): Delete.
24507
24508 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24509
24510         PR tree-optimization/46494
24511         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24512         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24513         (pass_rtl_loop_done): Add TODO_verify_flow.
24514         * fwprop.c (pass_rtl_fwprop): Likewise.
24515         * modulo-sched.c (pass_sms): Likewise.
24516         * tree-ssa-dom.c (pass_dominator): Likewise.
24517         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24518         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24519         (pass_tree_loop_done): Likewise.
24520         * tree-ssa-pre.c (execute_pre): Likewise.
24521         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24522         * tree-ssa-sink.c (pass_sink_code): Likewise.
24523         * tree-vrp.c (pass_vrp): Likewise.
24524
24525 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24526
24527         * config/v850/constraints.md: New file.
24528         * config/v850/v850.md: Include it.
24529         * config/v850/predicates.md (reg_or_0_operand): Use
24530         satisfies_constraint_G.
24531         (special_symbolref_operand): Use satisfies_constraint_K.
24532         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24533         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24534         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24535         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24536         (EXTRA_CONSTRAINT): Delete.
24537         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24538         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24539         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24540
24541 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24542
24543         PR target/47696
24544         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24545         description.
24546
24547 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24548
24549         * config/mcore/constraints.md: New file.
24550         * config/mcore/mcore.md: Include it.
24551         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24552         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24553         (REG_CLASS_FROM_LETTER): Delete.
24554         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24555         insn_const_int_ok_for_constraint.
24556         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24557         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24558         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24559         (EXTRA_CONSTRAINT): Delete.
24560
24561 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24562
24563         PR ada/41929
24564         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24565         (IS_SIGHANDLER): Define.
24566         (sparc64_is_sighandler): New function, split off from
24567         sparc64_fallback_frame_state.
24568         (sparc_is_sighandler): New function, split off from
24569         sparc_fallback_frame_state.
24570         (sparc64_fallback_frame_state): Merge with ...
24571         (sparc_fallback_frame_state): ... this into ...
24572         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24573         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24574         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24575         stack instead of hardcoded offsets.
24576
24577 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24578
24579         PR target/45808
24580         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24581
24582 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24583
24584         * configure: Regenerate.
24585
24586 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24587
24588         PR driver/45731
24589         * gcc.c (asm_options): Correct spec matching --target-help.
24590
24591 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24592
24593         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24594         to gimple call error.
24595
24596 2011-02-12  Mike Stump  <mikestump@comcast.net>
24597
24598         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24599         comments in backslash regions.
24600
24601 2011-02-12  Mike Stump  <mikestump@comcast.net>
24602             Jakub Jelinek  <jakub@redhat.com>
24603             Iain Sandoe  <iains@gcc.gnu.org>
24604
24605         PR target/47324
24606         * dwarf2out.c (output_cfa_loc): When required, apply the
24607         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24608         (output_loc_sequence): Likewise.
24609         (output_loc_operands_raw): Likewise.
24610         (output_loc_sequence_raw): Likewise.
24611         (output_cfa_loc): Likewise.
24612         (output_loc_list): Suppress register number adjustment when
24613         calling output_loc_sequence()
24614         (output_die): Likewise.
24615
24616 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24617
24618         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24619         Remove macros.
24620         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24621         xtensa_memory_move_cost): New functions.
24622         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24623
24624 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24625
24626         PR lto/47225
24627         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24628         in the current directory.
24629         * configure: Rebuilt.
24630
24631 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24632
24633         * config/darwin.c (darwin_override_options): Add a hunk missed
24634         from the commit of r168571.  Trim comment line lengths and
24635         correct indents of the preceding block.
24636
24637 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24638
24639         * gcc.c (driver_handle_option): Concatenate the argument to -F with
24640         the switch.
24641
24642 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24643
24644         * common.opt (nostartfiles): New Driver option.
24645
24646 2011-02-11  Xinliang David Li  <davidxl@google.com>
24647
24648         PR tree-optimization/47707
24649         * tree-chrec.c (convert_affine_scev): Keep type precision.
24650
24651 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
24652
24653         PR tree-optimization/47420
24654         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24655
24656 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
24657
24658         PR rtl-optimization/47614
24659         * rtl.h (check_for_inc_dec): Declare.
24660         * dse.c (check_for_inc_dec): Externalize...
24661         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24662         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24663
24664 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24665
24666         PR driver/47678
24667         * gcc.c (main): Do not compile inputs if there were errors in
24668         option handling.
24669         * opts-common.c (read_cmdline_option): Check for wrong language
24670         after other error checks.
24671
24672 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
24673
24674         * cgraph.c: Fix comment typos.
24675         * cgraph.h: Likewise.
24676         * cgraphunit.c: Likewise.
24677         * ipa-cp.c: Likewise.
24678         * ipa-inline.c: Likewise.
24679         * ipa-prop.c: Likewise.
24680         * ipa-pure-const.c: Likewise.
24681         * ipa-ref.c: Likewise.
24682         * ipa-reference.c: Likewise.
24683
24684 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24685
24686         PR debug/47684
24687         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24688
24689 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24690
24691         PR testsuite/47400
24692         * doc/sourcebuild.texi (Require Support): Document
24693         dg-require-ascii-locale.
24694
24695 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
24696
24697         * doc/lto.texi (Write summary): Fix missing parentheses.
24698
24699 2011-02-10  DJ Delorie  <dj@redhat.com>
24700
24701         * config/m32c/m32c.c (m32c_option_override): Disable
24702         -fcombine-stack-adjustments until flag value tracking and compare
24703         optimization can be rewritten.
24704
24705 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
24706
24707         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24708         PROCESSOR_POWER7.
24709         (PROCESSOR_DEFAULT64): Likewise.
24710
24711 2011-02-10  Richard Henderson  <rth@redhat.com>
24712
24713         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24714         change from 2011-02-03.
24715         * config/rx/rx.c (flags_from_code): Likewise.
24716         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24717         is valid, n/pz otherwise.
24718         (rx_select_cc_mode): Return CCmode if Y is not zero.
24719
24720 2011-02-10  Richard Guenther  <rguenther@suse.de>
24721
24722         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24723
24724 2011-02-10  Richard Guenther  <rguenther@suse.de>
24725
24726         PR tree-optimization/47677
24727         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24728
24729 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
24730
24731         PR target/47665
24732         * combine.c (make_compound_operation): Only change shifts into
24733         multiplication for SCALAR_INT_MODE_P.
24734
24735 2011-02-10  Jie Zhang  <jie@codesourcery.com>
24736
24737         PR testsuite/47622
24738         Revert
24739         2011-02-05  Jie Zhang  <jie@codesourcery.com>
24740         PR debug/42631
24741         * web.c (entry_register): Don't clobber the number of the
24742         first uninitialized reference in used[].
24743
24744 2011-02-09  Richard Guenther  <rguenther@suse.de>
24745
24746         PR tree-optimization/47664
24747         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24748         all edges again.
24749
24750 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
24751
24752         PR target/46481
24753         PR target/47032
24754         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24755         PROCESSOR_POWER7.
24756         (PROCESSOR_DEFAULT64): Same.
24757         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24758
24759 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24760
24761         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24762
24763 2011-02-09  Martin Jambor  <mjambor@suse.cz>
24764
24765         PR middle-end/45505
24766         * tree-sra.c (struct access): New flags grp_scalar_read and
24767         grp_scalar_write.  Changed description of assignment read and write
24768         flags.
24769         (dump_access): Dump new flags, reorder all of them.
24770         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24771         to detect multiple scalar reads.
24772         (analyze_access_subtree): Use the new scalar read write flags instead
24773         of the old flags.  Adjusted comments.
24774
24775 2011-02-08  DJ Delorie  <dj@redhat.com>
24776
24777         PR target/47548
24778         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24779         patterns.
24780
24781 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24782
24783         * config/m68k/uclinux.opt: New.
24784         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24785
24786 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24787
24788         * config/cris/elf.opt (sim): New Driver option.
24789
24790 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24791
24792         * config/xtensa/elf.opt: New.
24793         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24794
24795 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24796
24797         * config/vax/elf.opt: New.
24798         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24799
24800 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24801
24802         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24803
24804 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24805
24806         * config/gnu-user.opt: New.
24807         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24808         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24809         *-*-uclinux*): Use gnu-user.opt.
24810
24811 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24812
24813         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24814         * config/i386/gnu.h (CPP_SPEC): Likewise.
24815
24816 2011-02-08  Ian Lance Taylor  <iant@google.com>
24817
24818         * common.opt (fcx-limited-range): Add SetByCombined flag.
24819         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24820         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24821         (fassociative-math, freciprocal-math): Likewise.
24822         (funsafe-math-optimizations): Likewise.
24823         * opth-gen.awk: Handle SetByCombined.
24824         * optc-gen.awk: Likewise.
24825         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24826         (set_unsafe_math_optimizations_flags): Likewise.
24827         * doc/options.texi (Option properties): Document SetByCombined.
24828
24829 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24830
24831         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24832         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24833         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24834         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24835         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24836
24837 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24838
24839         PR tree-optimization/46834
24840         PR tree-optimization/46994
24841         PR tree-optimization/46995
24842         * graphite-sese-to-poly.c (used_outside_reduction): New.
24843         (detect_commutative_reduction): Call used_outside_reduction.
24844         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24845         translate_scalar_reduction_to_array only when at least one
24846         loop-phi/close-phi tuple has been detected.
24847
24848 2011-02-08  Richard Guenther  <rguenther@suse.de>
24849
24850         PR middle-end/47639
24851         * tree-vect-generic.c (expand_vector_operations_1): Update
24852         stmts here ...
24853         (expand_vector_operations): ... not here.  Cleanup EH info
24854         and the CFG if required.
24855
24856 2011-02-08  Richard Guenther  <rguenther@suse.de>
24857
24858         PR tree-optimization/47641
24859         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24860         require type compatibility.
24861
24862 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24863
24864         * gimple-low.c (lower_function_body): Don't remove the location of
24865         the return statement here.
24866         (lower_gimple_return): Do it here instead but only if the return
24867         statement is actually used twice.
24868
24869 2011-02-08  Richard Guenther  <rguenther@suse.de>
24870
24871         PR tree-optimization/47632
24872         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24873         unused up_to_stmt parameter, return whether cfg-cleanup is
24874         necessary, remove EH info properly.
24875         (forward_propagate_into_gimple_cond): Adjust caller.
24876         (forward_propagate_into_cond): Likewise.
24877         (forward_propagate_comparison): Likewise.
24878         (tree_ssa_forward_propagate_single_use_vars): Make
24879         forward_propagate_comparison case similar to the two others.
24880
24881 2011-02-08  Nick Clifton  <nickc@redhat.com>
24882
24883         * config/mn10300/mn10300.opt (mliw): New command line option.
24884         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24885         (liw_bundling): New automaton.
24886         (liw): New attribute.
24887         (liw_op): New attribute.
24888         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24889         (movsi_internal): Add LIW attributes.
24890         (andsi3): Likewise.
24891         (iorsi3): Likewise.
24892         (xorsi3): Likewise.
24893         (addsi3): Separate register and immediate alternatives.
24894         Add LIW attributes.
24895         (subsi3): Likewise.
24896         (cmpsi): Likewise.
24897         (aslsi3): Likewise.
24898         (lshrsi3): Likewise.
24899         (ashrsi3): Likewise.
24900         (liw): New pattern.
24901         * config/mn10300/mn10300.c (liw_op_names): New
24902         (mn10300_print_operand): Handle 'W' operand descriptor.
24903         (extract_bundle): New function.
24904         (check_liw_constraints): New function.
24905         (liw_candidate): New function.
24906         (mn10300_bundle_liw): New function.
24907         (mn10300_reorg): New function.
24908         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24909         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24910         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24911         __LIW__ or __NO_LIW__.
24912         * doc/invoke.texi: Describe the -mliw command line option.
24913
24914 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24915
24916         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24917         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24918         pthread_mutex_unlock): Remove.
24919         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24920         * config/pa/t-pa64: Likewise.
24921         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24922         shared libc if not linking against libpthread.
24923         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24924
24925 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24926
24927         PR target/47558
24928         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24929         on 10.6 and later to ensure that we always use the unwinder from
24930         the system.  Only add -no_compact_unwind when tarteting darwin
24931         10.6 or later.
24932
24933 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24934
24935         PR target/46997
24936         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24937         (vec_interleave_lowv2sf): Ditto.
24938         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24939         (vec_extract_oddv2sf): Ditto.
24940
24941 2011-02-07  Mike Stump  <mikestump@comcast.net>
24942
24943         PR target/42333
24944         Add __ieee_divdc3 entry point.
24945         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24946         entry point.
24947         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24948         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24949         * config/darwin.c (darwin_rename_builtins): Add.
24950         * config/darwin-protos.h (darwin_rename_builtins): Add.
24951
24952 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24953
24954         PR target/47636
24955         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24956         for the condition.
24957
24958 2011-02-07  Mike Stump  <mikestump@comcast.net>
24959
24960         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24961
24962 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24963
24964         PR target/47534
24965         * config/avr/libgcc.S (exit): Move .endfunc
24966
24967 2011-02-07  Richard Guenther  <rguenther@suse.de>
24968
24969         PR tree-optimization/47615
24970         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24971         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24972         (run_scc_vn): Initialize it.
24973         (visit_reference_op_load): Use it.
24974         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24975
24976 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24977
24978         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24979         DImode trapping arithmetic libfuncs.
24980
24981 2011-02-07  Richard Guenther  <rguenther@suse.de>
24982
24983         PR tree-optimization/47621
24984         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24985         two duplicates ...
24986         (execute_update_addresses_taken): ... here.  Make it more
24987         conservative in what we accept.
24988
24989 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24990
24991         * config/sparc/freebsd.h (ASM_SPEC): Define.
24992         * config/sparc/vxworks.h (ASM_SPEC): Define.
24993
24994 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24995
24996         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24997
24998 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24999
25000         * doc/invoke.texi: Remove reference to compiler internals from
25001         user documentation.
25002
25003         * reg-notes.def: Remove REG_VALUE_PROFILE.
25004         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25005
25006 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
25007
25008         PR middle-end/47610
25009         * varasm.c (default_section_type_flags): If decl is NULL,
25010         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25011
25012 2011-02-05  Jie Zhang  <jie@codesourcery.com>
25013
25014         PR debug/42631
25015         * web.c (entry_register): Don't clobber the number of the
25016         first uninitialized reference in used[].
25017
25018 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
25019
25020         PR tree-optimization/46194
25021         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25022         (build_classic_dist_vector_1): Do not represent classic distance
25023         vectors when the access functions are variating in different loops.
25024
25025 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25026
25027         * config/mips/iris6.opt: New.
25028         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25029
25030 2011-02-04  Richard Henderson  <rth@redhat.com>
25031             Steve Ellcey  <sje@cup.hp.com>
25032
25033         PR target/46997
25034         * config/ia64/predicates.md (mux1_brcst_element): New.
25035         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25036         * config/ia64/ia64.c (ia64_unpack_assemble): New.
25037         (ia64_unpack_sign): New.
25038         (ia64_expand_unpack): Rewrite using new routines.
25039         (ia64_expand_widen_sum): Ditto.
25040         (ia64_expand_dot_prod_v8qi): Ditto.
25041         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25042         routines, add endian check.
25043         (pmpy2_even): Rename from pmpy2_r, add endian check.
25044         (pmpy2_odd): Rename from pmpy2_l, add endian check.
25045         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25046         (vec_widen_smult_hi_v4hi): Ditto.
25047         (vec_widen_umult_lo_v4hi): Ditto.
25048         (vec_widen_umult_hi_v4hi): Ditto.
25049         (mulv2si3): Change endian checks.
25050         (sdot_prodv4hi): Rewrite with new calls.
25051         (udot_prodv4hi): New.
25052         (vec_pack_ssat_v4hi): Add endian check.
25053         (vec_pack_usat_v4hi): Ditto.
25054         (vec_pack_ssat_v2si): Ditto.
25055         (max1_even): Rename from max1_r, add endian check.
25056         (max1_odd): Rename from max1_l, add endian check.
25057         (*mux1_rev): Format change.
25058         (*mux1_mix): Ditto.
25059         (*mux1_shuf): Ditto.
25060         (*mux1_alt): Ditto.
25061         (*mux1_brcst_v8qi): Use new predicate.
25062         (vec_extract_evenv8qi): Remove endian check.
25063         (vec_extract_oddv8qi): Ditto.
25064         (vec_interleave_lowv4hi): Format change.
25065         (vec_interleave_highv4hi): Ditto.
25066         (mix2_even): Rename from mix2_r, add endian check.
25067         (mix2_odd): Rename from mux2_l, add endian check.
25068         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25069         (vec_extract_evenodd_helper): Format change.
25070         (vec_extract_evenv4hi): Remove endian check.
25071         (vec_extract_oddv4hi): Remove endian check.
25072         (vec_interleave_lowv2si): Format change.
25073         (vec_interleave_highv2si): Format change.
25074         (vec_initv2si): Remove endian check.
25075         (vecinit_v2si): Add endian check.
25076         (reduc_splus_v2sf): Add endian check.
25077         (reduc_smax_v2sf): Ditto.
25078         (reduc_smin_v2sf): Ditto.
25079         (vec_initv2sf): Remove endian check.
25080         (fpack): Add endian check.
25081         (fswap): Add endian check.
25082         (vec_interleave_highv2sf): Add endian check.
25083         (vec_interleave_lowv2sf): Add endian check.
25084         (fmix_lr): Add endian check.
25085         (vec_setv2sf): Format change.
25086         (*vec_extractv2sf_0_be): Use shift to extract operand.
25087         (*vec_extractv2sf_1_be): New.
25088         (vec_pack_trunc_v4hi): Add endian check.
25089         (vec_pack_trunc_v2si): Format change.
25090
25091 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
25092
25093         PR inline-asm/23200
25094         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
25095         do bb, locus and block comparison and disallow loads if it is not set.
25096         (stmt_is_replaceable_p): New function.
25097         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25098         callers.
25099         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25100         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25101         SSA_NAME_DEF_STMT.
25102         * tree-flow.h (stmt_is_replaceable_p): New prototype.
25103
25104 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25105
25106         * config/rs6000/xilinx.opt: New.
25107         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25108
25109 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25110
25111         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25112
25113 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
25114
25115         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25116         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25117         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25118         secondary_reload_info, xtensa_secondary_reload): Remove.
25119         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25120         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25121         (xtensa_preferred_reload_class): Make static. Change return and
25122         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25123         Use CONST_DOUBLE_P predicate.
25124         (xtensa_preferred_output_reload_class): New function.
25125         (xtensa_secondary_reload): Make static.
25126
25127 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
25128
25129         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25130         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25131         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25132
25133 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25134
25135         PR middle-end/31490
25136         * output.h (SECTION_RELRO): Define.
25137         (SECTION_MACH_DEP): Adjust.
25138         (get_variable_section): New prototype.
25139         * varpool.c (varpool_finalize_named_section_flags): New function.
25140         (varpool_assemble_pending_decls): Call it.
25141         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25142         * cgraphunit.c (cgraph_output_in_order): Call
25143         varpool_finalize_named_section_flags.
25144         * varasm.c (get_section): Allow section flags conflicts between
25145         relro and read-only sections if the section hasn't been declared yet.
25146         Set SECTION_OVERRIDE after diagnosing section type conflict.
25147         (get_variable_section): No longer static.
25148         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25149         readonly sections that need relocations.
25150         (decl_readonly_section_1): New function.
25151         (decl_readonly_section): Use it.
25152
25153         Revert:
25154         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
25155                     Steve Ellcey  <sje@cup.hp.com>
25156
25157         PR middle-end/31490
25158         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25159         if section attribute used.
25160
25161 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25162
25163         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25164         * config/darwin.c (SECTION_NO_ANCHOR): Define.
25165         (darwin_init_sections): Remove assertion.
25166
25167 2011-02-03  Nick Clifton  <nickc@redhat.com>
25168
25169         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25170         lt and ge.
25171         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25172         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25173         instead of "n" and "pz".
25174         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25175         CC_FLAG_S.
25176
25177 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25178
25179         PR target/47312
25180         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25181         fma, expand FMA_EXPR as fma{,f,l} call.
25182
25183         PR lto/47274
25184         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25185         copy them into a unsigned char variable and pass address of it to
25186         lto_output_data_stream.
25187
25188         PR target/47564
25189         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25190         around backend_init_target and lang_dependent_init_target calls.
25191         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25192         (verify_cgraph_node): Don't call set_cfun here.  Use
25193         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25194         Set error_found for incorrectly represented calls to thunks.
25195
25196 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25197
25198         PR debug/43092
25199         PR rtl-optimization/43494
25200         * rtl.h (for_each_inc_dec_fn): New type.
25201         (for_each_inc_dec): Declare.
25202         * rtlanal.c (struct for_each_inc_dec_ops): New type.
25203         (for_each_inc_dec_find_inc_dec): New fn.
25204         (for_each_inc_dec_find_mem): New fn.
25205         (for_each_inc_dec): New fn.
25206         * dse.c (struct insn_size): Remove.
25207         (replace_inc_dec, replace_inc_dec_mem): Remove.
25208         (emit_inc_dec_insn_before): New fn.
25209         (check_for_inc_dec): Use it, along with for_each_inc_dec.
25210         (canon_address): Pass mem modes to cselib_lookup.
25211         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
25212         (cselib_lookup_from_insn): Likewise.
25213         (cselib_subst_to_values): Likewise.
25214         * cselib.c (find_slot_memmode): New var.
25215         (cselib_find_slot): New fn.  Use it instead of
25216         htab_find_slot_with_hash everywhere.
25217         (entry_and_rtx_equal_p): Use find_slot_memmode.
25218         (autoinc_split): New fn.
25219         (rtx_equal_for_cselib_p): Rename and implement in terms of...
25220         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
25221         Deal with autoinc.  Special-case recursion into MEMs.
25222         (cselib_hash_rtx): Likewise.
25223         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
25224         address and MEM modes.
25225         (cselib_subst_to_values): Add memmode, pass it on.
25226         Deal with autoinc.
25227         (cselib_lookup): Add memmode argument, pass it on.
25228         (cselib_lookup_from_insn): Add memmode.
25229         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25230         (struct cselib_record_autoinc_data): New.
25231         (cselib_record_autoinc_cb): New fn.
25232         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
25233         mode to cselib_lookup.  Reset autoinced REGs here instead of...
25234         (cselib_process_insn): ... here.
25235         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25236         to cselib_lookup.
25237         (add_uses): Likewise, also to cselib_subst_to_values.
25238         (add_stores): Likewise.
25239         * sched-deps.c (add_insn_mem_dependence): Pass mode to
25240         cselib_subst_to_values.
25241         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
25242         * gcse.c (do_local_cprop): Adjusted.
25243         * postreload.c (reload_cse_simplify_set): Adjusted.
25244         (reload_cse_simplify_operands): Adjusted.
25245         * sel-sched-dump (debug_mem_addr_value): Pass mode.
25246
25247 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25248
25249         PR tree-optimization/45122
25250         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25251         unsafe assumptions when there's more than one loop exit.
25252
25253 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25254
25255         PR target/47272
25256         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25257         Document using vector double with the load/store builtins, and
25258         that the load/store builtins always use Altivec instructions.
25259
25260         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25261         to use altivec memory instructions, even on VSX.
25262         (vector_altivec_store_<mode>): Ditto.
25263
25264         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25265         function.
25266
25267         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25268         V2DF, V2DI support to load/store overloaded builtins.
25269
25270         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25271         altivec load/store builtins for V2DF/V2DI types.
25272
25273         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25274         set avoid indexed addresses on power6 if -maltivec.
25275         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25276         vector_altivec_load/vector_altivec_store builtins.
25277         (altivec_expand_st_builtin): Ditto.
25278         (altivec_expand_builtin): Add VSX memory builtins.
25279         (rs6000_init_builtins): Add V2DI types to internal types.
25280         (altivec_init_builtins): Add support for V2DF/V2DI altivec
25281         load/store builtins.
25282         (rs6000_address_for_altivec): Insure memory address is appropriate
25283         for Altivec.
25284
25285         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25286         vec_vsx_ld and vec_vsx_st.
25287         (vsx_store_<mode>): Ditto.
25288
25289         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25290         variables to hold long long types for VSX vector memory builtins.
25291         (RS6000_BTI_unsigned_long_long): Ditto.
25292         (long_long_integer_type_internal_node): Ditti.
25293         (long_long_unsigned_type_internal_node): Ditti.
25294
25295         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25296         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25297         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25298
25299         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25300         short cuts.
25301         (vec_vsx_st): Ditto.
25302
25303 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25304
25305         * config/pa/pa-hpux10.opt: New.
25306         * config/hpux11.opt (pthread): New Driver option.
25307         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25308         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25309
25310 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25311
25312         * config/ia64/vms.opt: New.
25313         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25314
25315 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25316
25317         PR target/47580
25318         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25319         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25320         generator functions.
25321         (vsx_floatuns<VSi><mode>2): Ditto.
25322         (vsx_fix_trunc<mode><VSi>2): Ditto.
25323         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25324
25325 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25326
25327         * config/i386/djgpp.opt (posix): New Driver option.
25328
25329 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25330
25331         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25332         Move to the unsupported targets list.
25333
25334 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25335
25336         PR rtl-optimization/47525
25337         * df-scan.c: Update copyright years.
25338         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25339         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25340
25341 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25342
25343         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25344         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25345         (ASM_OUTPUT_ASCII): Remove.
25346         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25347
25348 2011-02-02  Jeff Law  <law@redhat.com>
25349
25350         PR middle-end/47543
25351         * reload.c (find_reloads_address): Handle reg+d address where both
25352         components are invalid by reloading the entire address.
25353
25354 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25355             Richard Guenther  <rguenther@suse.de>
25356
25357         PR tree-optimization/40979
25358         PR bootstrap/47044
25359         * passes.c (init_optimization_passes): After LIM call copy_prop
25360         and DCE to clean up.
25361         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25362
25363 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25364
25365         PR tree-optimization/47576
25366         PR tree-optimization/47555
25367         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25368         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25369         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25370         * tree-scalar-evolution.c (follow_ssa_edge): Use
25371         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25372
25373 2011-02-02  Richard Guenther  <rguenther@suse.de>
25374
25375         PR tree-optimization/47566
25376         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25377
25378 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25379
25380         PR debug/47106
25381         PR debug/47402
25382         * tree-inline.c (declare_return_variable): Remove unused caller
25383         variable.
25384
25385         PR debug/47106
25386         PR debug/47402
25387         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25388         * cfgexpand.c (account_used_vars_for_block): Use them.
25389         * tree-nrv.c (tree_nrv): Likewise.
25390         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25391         (dump_scope_block): Likewise.
25392         (remove_unused_locals): Likewise.
25393
25394         PR debug/47106
25395         PR debug/47402
25396         * tree-inline.c (declare_return_variable): Add result decl to
25397         local decls only once.
25398         * gimple-low.c (record_vars_into): Mark newly-created variables
25399         as referenced.
25400
25401 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25402
25403         PR debug/47498
25404         PR debug/47501
25405         PR debug/45136
25406         PR debug/45130
25407         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25408         debug insns.
25409         (no_real_insns_p, schedule_block, set_priorities): Drop special
25410         treatment of boundary debug insns.
25411         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25412         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25413         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25414         (BOUNDARY_DEBUG_INSN_P): Likewise.
25415         (SCHEDULE_DEBUG_INSN_P): Likewise.
25416         * sched-rgn.c (init_ready_list): Drop special treatment of
25417         boundary debug insns.
25418         * final.c (rest_of_clean_state): Clear notes' BB.
25419
25420 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25421
25422         * config/openbsd.opt (assert=): New Driver option.
25423
25424 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25425
25426         * config/i386/nto.opt: New.
25427         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25428
25429 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25430
25431         * config/i386/netware.opt: New.
25432         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25433
25434 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25435
25436         * config/interix.opt (posix): New Driver option.
25437
25438 2011-02-01  DJ Delorie  <dj@redhat.com>
25439
25440         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25441
25442         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25443         class for A0/A1.
25444
25445 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25446
25447         PR tree-optimization/47561
25448         * toplev.c (process_options): Print the Graphite flags.  Add
25449         flag_loop_flatten to the list of options requiring Graphite.
25450
25451 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25452
25453         * config/i386/cygming.opt (posix): New Driver option.
25454
25455 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25456
25457         * config/arm/vxworks.opt: New.
25458         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25459
25460 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25461
25462         * config/alpha/elf.opt: New.
25463         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25464         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25465
25466 2011-02-01  Richard Guenther  <rguenther@suse.de>
25467
25468         PR tree-optimization/47559
25469         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25470         store-motion on references that can throw.
25471
25472 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25473
25474         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25475         * tree-pass.h (TDF_CSELIB): New macro.
25476         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25477         cselib_lookup): Check for it rather than for TDF_DETAILS.
25478
25479 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25480
25481         PR driver/47547
25482         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25483         is HOST_BIT_BUCKET.
25484
25485         * opts.c (finish_options): Don't add x_aux_base_name if it is
25486         HOST_BIT_BUCKET.
25487
25488 2011-02-01  Richard Guenther  <rguenther@suse.de>
25489
25490         PR tree-optimization/47555
25491         Revert
25492         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25493
25494         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25495
25496 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25497
25498         PR gcc/46692
25499         * config/lm32/t-lm32: Add multilib for all CPU options.
25500
25501 2011-02-01  Richard Guenther  <rguenther@suse.de>
25502
25503         PR tree-optimization/47541
25504         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25505         sure to have a field at offset zero.
25506
25507 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25508
25509         * config/arc/arc.opt (EB, EL): New Driver options.
25510
25511 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25512
25513         * config/alpha/osf5.opt: New.
25514         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25515
25516 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25517
25518         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25519
25520 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25521
25522         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25523         -floop-interchange.
25524         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25525         is an alias of -floop-interchange and that it requires the
25526         Graphite infrastructure.
25527         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25528         flag_loop_interchange based on the value of flag_tree_loop_linear.
25529
25530 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25531             Richard Guenther  <rguenther@suse.de>
25532
25533         PR tree-optimization/47538
25534         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25535         type instead of r1type, except for comparisons.  For right
25536         shifts and comparisons punt if there are mismatches in
25537         sizetype vs. non-sizetype types.
25538
25539 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25540
25541         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25542         avx_runtime.
25543
25544 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25545
25546         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25547         version number.
25548         * configure: Regenerate.
25549
25550 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25551
25552         * configure.ac (gcc_cv_ld_static_option): Define.
25553         (gcc_cv_ld_dynamic_option): Define.
25554         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25555         instead.
25556         (HAVE_LD_STATIC_DYNAMIC): Update message.
25557         (LD_STATIC_OPTION): Define.
25558         (LD_DYNAMIC_OPTION): Define.
25559         * configure: Regenerate.
25560         * config.in: Regenerate.
25561         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25562         HAVE_LD_STATIC_DYNAMIC]: Use them.
25563
25564 2011-01-31  Nick Clifton  <nickc@redhat.com>
25565
25566         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25567         registers inside interrupt handlers if the handler is not a leaf
25568         function.
25569
25570 2011-01-31  Nick Clifton  <nickc@redhat.com>
25571
25572         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25573         reg_renumber returning an INVALID_REGNUM.
25574
25575 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25576
25577         PR libgcj/44341
25578         * doc/install.texi: Document host options discarded when cross
25579         configuring target libraries.
25580
25581 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25582
25583         Reverted:
25584         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25585         PR debug/45136
25586         PR debug/45130
25587         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25588         debug insns.
25589         (no_real_insns_p, schedule_block, set_priorities): Drop special
25590         treatment of boundary debug insns.
25591         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25592         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25593         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25594         (BOUNDARY_DEBUG_INSN_P): Likewise.
25595         (SCHEDULE_DEBUG_INSN_P): Likewise.
25596         * sched-rgn.c (init_ready_list): Drop special treatment of
25597         boundary debug insns.
25598         * final.c (rest_of_clean-state): Clear notes' BB.
25599
25600 2011-01-31  Alan Modra  <amodra@gmail.com>
25601
25602         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25603         toc relative expressions as we do in print_operand_address.
25604
25605 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25606
25607         * doc/extend.texi: Follow spelling conventions.
25608         * doc/invoke.texi: Fix a typo.
25609
25610 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25611
25612         * config/hpux11.opt: New.
25613         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25614         ia64*-*-hpux*): Use hpux11.opt.
25615
25616 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25617
25618         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25619         to tmake_file.
25620
25621 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25622
25623         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25624         support sites.
25625
25626 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25627
25628         * doc/install.texi (Binaries): Remove outdated reference for
25629         Motorola 68HC11/68HC12 downloads.
25630
25631 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25632
25633         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25634         Drepper's paper.
25635
25636 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
25637
25638         PR bootstrap/47147
25639         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25640         used by NetBSD.
25641
25642 2011-01-28  Ahmad Sharif  <asharif@google.com>
25643
25644         * value-prof.c (check_counter): Corrected error message.
25645
25646 2011-01-29  Jie Zhang  <jie@codesourcery.com>
25647
25648         * config/arm/arm.c (arm_legitimize_reload_address): New.
25649         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25650         arm_legitimize_reload_address.
25651         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25652
25653 2011-01-28  Ian Lance Taylor  <iant@google.com>
25654
25655         * godump.c (go_define): Ignore macros whose definitions include
25656         two adjacent operands.
25657
25658 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
25659
25660         PR target/42894
25661         * varasm.c (force_const_mem): Store copy of x in desc->constant
25662         instead of x itself.
25663         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25664         itself into REG_EQUAL note.
25665
25666 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
25667
25668         * config/freebsd.opt (posix, rdynamic): New Driver options.
25669
25670 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25671
25672         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25673         -Bstatic/-Bdynamic.
25674         * configure: Regenerate.
25675
25676 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25677
25678         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25679         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25680
25681 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25682
25683         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25684         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25685         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25686         (s390_preferred_reload_class): Make static. Change return and
25687         'rclass' argument type to reg_class_t.
25688
25689 2011-01-27  Jan Hubicka  <jh@suse.cz>
25690
25691         PR middle-end/46949
25692         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25693         (process_function_and_variable_attributes): Check defined weakrefs.
25694
25695 2011-01-27  Martin Jambor  <mjambor@suse.cz>
25696
25697         PR tree-optimization/47228
25698         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25699         build_ref_for_offset.
25700
25701 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25702
25703         * config/spu/spu-elf.h (ASM_SPEC): Remove.
25704
25705 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
25706
25707         PR rtl-optimization/46856
25708         * postreload.c (reload_combine_recognize_const_pattern): Do not
25709         separate cc0 setter and user on cc0 targets.
25710
25711 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
25712
25713         PR c/43082
25714         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25715         passed a VOID_TYPE expression, immediately emit an error and
25716         return error_mark_node.
25717
25718 2011-01-26  Jeff Law  <law@redhat.com>
25719
25720         PR rtl-optimization/47464
25721         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25722         rather than may_trap_p as needed.
25723
25724 2011-01-26  DJ Delorie  <dj@redhat.com>
25725
25726         PR rtl-optimization/46878
25727         * combine.c (insn_a_feeds_b): Check for the implicit cc0
25728         setter/user dependency as well.
25729
25730 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25731
25732         PR rtl-optimization/44469
25733         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25734         after removing trivially dead basic blocks.
25735
25736 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25737
25738         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25739         * config/frv/frv.h (LINK_SPEC): Likewise.
25740         * config/i386/netware.h (LINK_SPEC): Likewise.
25741         * config/m68k/linux.h (ASM_SPEC): Likewise.
25742         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25743         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25744         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25745         * config/sparc/linux.h (ASM_SPEC): Likewise.
25746         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25747         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25748
25749 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25750
25751         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25752         * config/frv/frv.h (ASM_SPEC): Likewise.
25753         * config/m68k/linux.h (ASM_SPEC): Likewise.
25754         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25755         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25756         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25757         * config/sparc/linux.h (ASM_SPEC): Likewise.
25758         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25759         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25760
25761 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25762
25763         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25764         * config/frv/frv.h (LINK_SPEC): Likewise.
25765         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25766
25767 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25768
25769         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25770         * config/frv/frv.h (ASM_SPEC): Likewise.
25771         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25772         * config/m68k/linux.h (ASM_SPEC): Likewise.
25773         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25774         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25775         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25776         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25777         * config/sparc/linux.h (ASM_SPEC): Likewise.
25778         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25779         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25780         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25781
25782 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
25783
25784         PR target/46997
25785         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25786         (*mux2): Ditto.
25787         (vec_extract_evenodd_help): Ditto.
25788         (vec_extract_evenv4hi): Ditto.
25789         (vec_extract_oddv4hi): Ditto.
25790         (vec_interleave_lowv2si): Ditto.
25791         (vec_interleave_highv2si): Ditto.
25792         (vec_extract_evenv2si): Ditto.
25793         (vec_extract_oddv2si: Ditto.
25794         (vec_pack_trunc_v2si): Ditto.
25795
25796 2011-01-22  Jan Hubicka  <jh@suse.cz>
25797
25798         PR target/47237
25799         * cgraph.h (cgraph_local_info): New field can_change_signature.
25800         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25801         signature can change.
25802         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25803         can change.
25804         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25805         (cgraph_function_versioning): We can not change signature of functions
25806         that don't allow that.
25807         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25808         (lto_input_node): Likewise.
25809         * ipa-inline.c (compute_inline_parameters): Compute
25810         local.can_change_signature.
25811         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25812         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25813         functions that can not change signature.
25814         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25815         init_cumulative_args): Do not use local calling conventions
25816         for functions that can not change signature.
25817
25818 2011-01-22  Jan Hubicka  <jh@suse.cz>
25819
25820         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25821
25822 2011-01-26  Richard Guenther  <rguenther@suse.de>
25823
25824         PR tree-optimization/47190
25825         * cgraphunit.c (process_common_attributes): New function.
25826         (process_function_and_variable_attributes): Use it.
25827
25828 2011-01-26  Richard Guenther  <rguenther@suse.de>
25829
25830         PR lto/47423
25831         * cgraphbuild.c (record_eh_tables): Record reference to personality
25832         function.
25833
25834 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25835
25836         PR debug/45454
25837         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25838         non-debug insns from moving up.
25839
25840 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25841
25842         PR target/40125
25843         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25844         t-dlldir{,-x} fragment for build and add it to tmake_file.
25845         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25846         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25847         * config/i386/t-dlldir: New file.
25848         (SHLIB_DLLDIR): Define.
25849         * config/i386/t-dlldir-x: New file.
25850         (SHLIB_DLLDIR): Define.
25851         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25852         (SHLIB_INSTALL): Use it.
25853
25854 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25855
25856         PR target/47246
25857         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25858         lower bound of the allowed Thumb-2 coprocessor load/store
25859         index range to -256. Add explaining comment.
25860
25861 2011-01-25  Ian Lance Taylor  <iant@google.com>
25862
25863         * godump.c (go_define): Improve lexing of macro expansion to only
25864         accept expressions which match Go spec.
25865
25866 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25867
25868         PR c++/43601
25869         * tree.c (handle_dll_attribute): Handle it.
25870         * doc/extend.texi (@item dllexport): Mention it.
25871         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25872
25873 2011-01-25  Ian Lance Taylor  <iant@google.com>
25874
25875         PR tree-optimization/26854
25876         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25877         (decl_jump_unsafe): Move higher in file, with no other change.
25878         (bind): Set has_jump_unsafe_decl if appropriate.
25879         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25880         (check_earlier_gotos): Likewise.
25881         (c_check_switch_jump_warnings): Likewise.
25882
25883 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25884
25885         * doc/invoke.texi (Warning Options): Add missing hyphen.
25886         (-fprofile-dir): Minor grammatical fixes.
25887         (-fbranch-probabilities): Likewise.
25888
25889 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25890
25891         PR debug/45136
25892         PR debug/45130
25893         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25894         debug insns.
25895         (no_real_insns_p, schedule_block, set_priorities): Drop special
25896         treatment of boundary debug insns.
25897         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25898         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25899         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25900         (BOUNDARY_DEBUG_INSN_P): Likewise.
25901         (SCHEDULE_DEBUG_INSN_P): Likewise.
25902         * sched-rgn.c (init_ready_list): Drop special treatment of
25903         boundary debug insns.
25904         * final.c (rest_of_clean-state): Clear notes' BB.
25905
25906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25907
25908         * Makefile.in (LAMBDA_H): Removed.
25909         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25910         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25911         lambda-trans.o, and tree-loop-linear.o.
25912         (lto-symtab.o): Remove dependence on LAMBDA_H.
25913         (tree-loop-linear.o): Remove rule.
25914         (lambda-mat.o): Same.
25915         (lambda-trans.o): Same.
25916         (lambda-code.o): Same.
25917         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25918         (tree-vect-slp.o): Same.
25919         * hwint.h (gcd): Moved here.
25920         (least_common_multiple): Same.
25921         * lambda-code.c: Removed.
25922         * lambda-mat.c: Removed.
25923         * lambda-trans.c: Removed.
25924         * lambda.h: Removed.
25925         * tree-loop-linear.c: Removed.
25926         * lto-symtab.c: Do not include lambda.h.
25927         * omega.c (gcd): Removed.
25928         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25929         * tree-data-ref.c (print_lambda_vector): Moved here.
25930         (lambda_vector_copy): Same.
25931         (lambda_matrix_copy): Same.
25932         (lambda_matrix_id): Same.
25933         (lambda_vector_first_nz): Same.
25934         (lambda_matrix_row_add): Same.
25935         (lambda_matrix_row_exchange): Same.
25936         (lambda_vector_mult_const): Same.
25937         (lambda_vector_negate): Same.
25938         (lambda_matrix_row_negate): Same.
25939         (lambda_vector_equal): Same.
25940         (lambda_matrix_right_hermite): Same.
25941         * tree-data-ref.h: Do not include lambda.h.
25942         (lambda_vector): Moved here.
25943         (lambda_matrix): Same.
25944         (dependence_level): Same.
25945         (lambda_transform_legal_p): Removed declaration.
25946         (lambda_collect_parameters): Same.
25947         (lambda_compute_access_matrices): Same.
25948         (lambda_vector_gcd): Same.
25949         (lambda_vector_new): Same.
25950         (lambda_vector_clear): Same.
25951         (lambda_vector_lexico_pos): Same.
25952         (lambda_vector_zerop): Same.
25953         (lambda_matrix_new): Same.
25954         * tree-flow.h (least_common_multiple): Removed declaration.
25955         * tree-parloops.c (lambda_trans_matrix): Moved here.
25956         (LTM_MATRIX): Same.
25957         (LTM_ROWSIZE): Same.
25958         (LTM_COLSIZE): Same.
25959         (LTM_DENOMINATOR): Same.
25960         (lambda_trans_matrix_new): Same.
25961         (lambda_matrix_vector_mult): Same.
25962         (lambda_transform_legal_p): Same.
25963         * tree-pass.h (pass_linear_transform): Removed declaration.
25964         * tree-ssa-loop.c (tree_linear_transform): Removed.
25965         (gate_tree_linear_transform): Removed.
25966         (pass_linear_transform): Removed.
25967         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25968         flag_loop_interchange.
25969
25970 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25971
25972         PR tree-optimization/47265
25973         PR tree-optimization/47443
25974         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25975         if name still has some uses.
25976
25977 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25978
25979         PR tree-optimization/47382
25980         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25981         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25982
25983 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25984
25985         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25986         sjlj_except_unwind_info.
25987
25988 2011-01-25  Richard Guenther  <rguenther@suse.de>
25989
25990         PR tree-optimization/47426
25991         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25992         visible functions results escape.
25993
25994 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25995
25996         PR target/45701
25997         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25998         (arm_get_frame_offsets): Use it.
25999
26000 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26001             Jakub Jelinek  <jakub@redhat.com>
26002
26003         PR tree-optimization/47271
26004         * tree-if-conv.c (bb_postdominates_preds): New.
26005         (if_convertible_bb_p): Call bb_postdominates_preds.
26006         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26007         (predicate_scalar_phi): Call bb_postdominates_preds.
26008
26009 2011-01-25  Nick Clifton  <nickc@redhat.com>
26010
26011         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26012         * config/rx/rx.c (rx_function_value): Likewise.
26013         (rx_promote_function_mode): Likewise.
26014         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26015         in order to make it legitimate.
26016         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26017         make sure that the first operand is the same as the result register.
26018         (addsi3_unspec): Delete.
26019         (subdi3): Do not accept immediate operands.
26020         (subdi3_internal): Likewise.
26021
26022 2011-01-25  Jeff Law  <law@redhat.com>
26023
26024         PR rtl-optimization/37273
26025         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26026         handle them like argument loads from stack slots.  Do not double
26027         count memory for memory constants and argument loads from stack slots.
26028
26029 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26030
26031         PR tree-optimization/47427
26032         PR tree-optimization/47428
26033         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26034         coalesce if the new root var would be TREE_READONLY.
26035
26036 2011-01-25  Richard Guenther  <rguenther@suse.de>
26037
26038         PR middle-end/47414
26039         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26040         correct type for TBAA.
26041
26042 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26043
26044         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26045         (close_phi_written_to_memory): Call for_each_index with
26046         dr_indices_valid_in_loop.
26047
26048 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26049
26050         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26051         when it is initialized.
26052
26053 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26054
26055         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26056         call to graphite_find_data_references_in_stmt.
26057         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26058         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
26059         call to graphite_find_data_references_in_stmt.
26060         (analyze_drs_in_stmts): Same.
26061         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26062         in which the scalar analysis of indices is performed.
26063         (create_data_ref): Same.  Update call to dr_analyze_indices.
26064         (find_data_references_in_stmt): Update call to create_data_ref.
26065         (graphite_find_data_references_in_stmt): Same.
26066         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26067         declaration.
26068         (create_data_ref): Same.
26069         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26070         call to create_data_ref.
26071
26072 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26073
26074         * graphite-sese-to-poly.c (build_poly_scop): Move
26075         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26076
26077 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26078
26079         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26080         VAR_DECL, PARM_DECL, and RESULT_DECL.
26081
26082 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26083
26084         * graphite-dependences.c (reduction_dr_1): Allow several reductions
26085         in a reduction PBB.
26086         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26087         that have already been marked as PBB_IS_REDUCTION.
26088
26089 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26090
26091         * graphite-scop-detection.c (same_close_phi_node): New.
26092         (remove_duplicate_close_phi): New.
26093         (make_close_phi_nodes_unique): New.
26094         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26095
26096 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26097
26098         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26099         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26100         of both data references to be the same.
26101
26102 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26103
26104         * graphite-dependences.c (build_lexicographical_constraint): Remove
26105         the gdim parameter.
26106         (build_lexicographical_constraint): Adjust call to
26107         ppl_powerset_is_empty.
26108         (dependence_polyhedron): Same.
26109         (graphite_legal_transform_dr): Same.
26110         (graphite_carried_dependence_level_k): Same.
26111         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26112         parameter.
26113         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26114
26115 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26116
26117         * graphite-sese-to-poly.c
26118         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26119         (close_phi_written_to_memory): New.
26120         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26121         and unshare_expr.
26122
26123 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26124
26125         * doc/install.texi: Update the expected version number of PPL to 0.11.
26126         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26127         #if PPL_VERSION_MINOR < 11.
26128
26129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26130
26131         * graphite-dependences.c: Include graphite-cloog-util.h.
26132         (new_poly_ddr): Inlined into dependence_polyhedron.
26133         (free_poly_ddr): Moved close by new_poly_ddr.
26134         (dependence_polyhedron_1): Renamed dependence_polyhedron.
26135         Early return NULL when ppl_powerset_is_empty returns true.
26136         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
26137         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
26138         (graphite_legal_transform_dr): Call new_poly_ddr.
26139         (graphite_carried_dependence_level_k): Same.
26140         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
26141         (dot_transformed_deps_stmt_1): Removed.
26142         (dot_deps_stmt_1): Call dot_deps_stmt_2.
26143         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
26144         (dot_deps_1): Call dot_deps_2.
26145         * Makefile.in (graphite-dependences.o): Add missing dependence on
26146         graphite-cloog-util.h.
26147
26148 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26149
26150         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26151         (build_lexicographical_constraint): Same.
26152         (dependence_polyhedron_1): Same.
26153         (graphite_legal_transform_dr): Same.
26154         (graphite_carried_dependence_level_k): Same.
26155         * graphite-ppl.c (ppl_powerset_is_empty): New.
26156         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26157         * tree-data-ref.c (dump_data_reference): Print the basic block index.
26158
26159 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26160
26161         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26162         the "a followed by b" relation and document it.
26163
26164 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26165
26166         * graphite-dependences.c (build_lexicographical_constraint): Stop the
26167         iteration when the bag of constraints is empty.
26168
26169 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26170
26171         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26172
26173 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26174
26175         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26176         nest and two loop depths as parameters.
26177         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26178         lst_perfect_nestify.
26179
26180 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26181
26182         * graphite-dependences.c (print_pddr): Call
26183         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26184
26185 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26186
26187         * graphite-ppl.c (debug_gmp_value): New.
26188         * graphite-ppl.h (debug_gmp_value): Declared.
26189
26190 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
26191
26192         * doc/install.texi: Document availability of cloog-0.16.
26193
26194 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
26195
26196         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26197         invalid postdominance info.
26198
26199 2011-01-24  Jan Hubicka  <jh@suse.cz>
26200
26201         PR c/21659
26202         * doc/extend.texi (weak pragma): Drop claim that it must
26203         appear before definition.
26204         * varasm.c (merge_weak, declare_weak): Only sanity check
26205         that DECL is not output at a time it is declared weak.
26206
26207 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
26208
26209         * machmode.def: Fixed comments.
26210
26211 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
26212
26213         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26214
26215 2011-01-24  Paul Koning  <ni1d@arrl.net>
26216
26217         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26218         WORDS_BIG_ENDIAN.
26219
26220 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26221
26222         PR target/46519
26223         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26224         (block_info): Add scanned and prev.
26225         (move_or_delete_vzeroupper_2): Return if the basic block
26226         has been scanned and the upper 128bit state is unchanged
26227         from the last scan.
26228         (move_or_delete_vzeroupper_1): Return true if the exit
26229         state is changed.
26230         (move_or_delete_vzeroupper): Visit basic blocks using the
26231         work-list based algorithm based on vt_find_locations in
26232         var-tracking.c.
26233
26234         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26235
26236 2011-01-24  Nick Clifton  <nickc@redhat.com>
26237
26238         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26239         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26240         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
26241         then define __v850e1__.
26242         * doc/invoke.texi: Document -mv850es.
26243
26244 2011-01-24  Richard Henderson  <rth@redhat.com>
26245
26246         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26247         compound unordered comparisons.
26248         * config/rx/rx.c (rx_split_fp_compare): Remove.
26249         * config/rx/rx-protos.h: Update.
26250         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26251         (cbranchsf4): Don't call rx_split_fp_compare.
26252         (*cbranchsf4): Use rx_split_cbranch.
26253         (*cmpsf): Don't accept "i" constraint.
26254         (*conditional_branch): Only valid after reload.
26255         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
26256
26257 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26258
26259         PR target/47385
26260         * config/rs6000/altivec.md (vector constant splitters): Add
26261         support for creating vector single precision constants if -mvsx is
26262         used and we would create the constant using Altivec primitives.
26263
26264 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
26265             Richard Sandiford  <rdsandiford@googlemail.com>
26266
26267         PR rtl-optimization/47166
26268         * reload1.c (emit_reload_insns): Disable the spill_reg_store
26269         mechanism for PRE_MODIFY and POST_MODIFY.
26270         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26271         reloadreg.
26272
26273 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
26274
26275         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26276
26277 2011-01-22  Jan Hubicka  <jh@suse.cz>
26278
26279         PR lto/47333
26280         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26281
26282 2011-01-22  Jan Hubicka  <jh@suse.cz>
26283
26284         PR tree-optimization/43884
26285         PR lto/44334
26286         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26287         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26288
26289 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
26290
26291         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26292         * config/s390/s390.c (s390_register_move_cost,
26293         s390_memory_move_cost): New.
26294         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26295
26296 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26297
26298         PR middle-end/47401
26299         * except.c (sjlj_assign_call_site_values): Move setting the
26300         crtl->uses_eh_lsda flag to ...
26301         (sjlj_mark_call_sites): ... here.
26302         (sjlj_emit_function_enter): Support NULL dispatch label.
26303         (sjlj_build_landing_pads): In a function with no landing pads
26304         that still has must-not-throw regions, generate code to register
26305         a personality function with empty LSDA.
26306
26307 2011-01-21  Richard Henderson  <rth@redhat.com>
26308
26309         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26310
26311         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26312
26313         * compare-elim.c: New file.
26314         * Makefile.in (OBJS-common): Add it.
26315         (compare-elim.o): New.
26316         * common.opt (fcompare-elim): New.
26317         * opts.c (default_options_table): Add OPT_fcompare_elim.
26318         * tree-pass.h (pass_compare_elim_after_reload): New.
26319         * passes.c (init_optimization_passes): Add it.
26320         * recog.h: Protect against re-inclusion.
26321         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26322         * doc/invoke.texi (-fcompare-elim): Document it.
26323         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26324         * doc/tm.texi: Rebuild.
26325
26326 2011-01-22  Nick Clifton  <nickc@redhat.com>
26327
26328         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26329         rx_split_fp_compare.
26330
26331 2011-01-22  Nick Clifton  <nickc@redhat.com>
26332
26333         * config/rx/rx.md (UNSPEC_CONST): New.
26334         (deallocate_and_return): Wrap the amount popped off the stack in
26335         an UNSPEC_CONST in order to stop it being rejected by
26336         -mmax-constant-size.
26337         (pop_and_return): Add a "(return)" rtx.
26338         (call): Drop the immediate operand.
26339         (call_internal): Likewise.
26340         (call_value): Likewise.
26341         (call_value_internal): Likewise.
26342         (sibcall_internal): Likewise.
26343         (sibcall_value_internal): Likewise.
26344         (sibcall): Likewise.  Generate an explicit call using
26345         sibcall_internal.
26346         (sibcall_value): Likewise.
26347         (mov<>): FAIL if a constant operand is not legitimate.
26348         (addsi3_unpsec): New pattern.
26349
26350         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26351         (ok_for_max_constant): New function.
26352         (gen_safe_add): New function.
26353         (rx_expand_prologue): Use gen_safe_add.
26354         (rx_expand_epilogue): Likewise.
26355         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26356         UNSPEC CONSTs.
26357
26358 2011-01-21  Jeff Law  <law@redhat.com>
26359
26360         PR tree-optimization/47053
26361         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26362         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26363         statements are deleted.
26364         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26365         is nonempty, then purge dead edges and cleanup the CFG.
26366
26367 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26368
26369         PR debug/47402
26370         Temporarily revert:
26371         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26372         PR debug/47106
26373         * tree-dfa.c (create_var_ann): Mark variable as used.
26374
26375 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26376
26377         PR middle-end/45566
26378         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26379         notes from other section in hot/cold partitioning even if
26380         last_action is -3.  Increment call_site_base.
26381
26382         PR rtl-optimization/47366
26383         * fwprop.c (forward_propagate_into): Return bool.  If
26384         any changes are made, -fnon-call-exceptions is used and
26385         REG_EH_REGION note is present, call purge_dead_edges
26386         and return true if it purged anything.
26387         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26388         any EH edges were purged.
26389
26390 2011-01-21  Jeff Law  <law@redhat.com>
26391
26392         PR rtl-optimization/41619
26393         * caller-save.c (setup_save_areas): Break out code to determine
26394         which hard regs are live across calls by examining the reload chains
26395         so that it is always used.
26396         Eliminate code which checked REG_N_CALLS_CROSSED.
26397
26398 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26399
26400         PR tree-optimization/47355
26401         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26402         NOP has non-debug uses beyond PHIs in new_bb.
26403
26404 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26405
26406         PR debug/47106
26407         * cfgexpand.c (account_used_vars_for_block): Only account vars
26408         that are annotated as used.
26409         (estimated_stack_frame_size): Don't set TREE_USED.
26410         * tree-dfa.c (create_var_ann): Mark variable as used.
26411
26412 2011-01-21  Richard Guenther  <rguenther@suse.de>
26413
26414         PR middle-end/47395
26415         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26416
26417 2011-01-21  Richard Guenther  <rguenther@suse.de>
26418
26419         PR tree-optimization/47365
26420         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26421         (vn_reference_lookup_pieces): Adjust.
26422         (vn_reference_lookup): Likewise.
26423         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26424         (vn_reference_lookup_3): Only look through kills if in
26425         VN_WALKREWRITE mode.
26426         (vn_reference_lookup_pieces): Adjust.
26427         (vn_reference_lookup): Likewise.
26428         (visit_reference_op_load): Likewise.
26429         (visit_reference_op_store): Likewise.
26430         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26431         (compute_avail): Likewise.
26432         (eliminate): Likewise.
26433
26434 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26435
26436         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26437         DECL_IGNORED_P non-reg vars if they are used.
26438
26439         PR tree-optimization/47391
26440         * varpool.c (const_value_known_p): Return false if
26441         decl is volatile.
26442
26443 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26444
26445         PR bootstrap/47215
26446         * config/i386/i386.c (ix86_local_alignment): Handle
26447         case for va_list_type_node is nil.
26448         (ix86_canonical_va_list_type): Likewise.
26449
26450 2011-01-21  Alan Modra  <amodra@gmail.com>
26451
26452         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26453         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26454
26455 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26456
26457         * config/arm/arm.md (define_attr type): Rename f_load
26458         and f_store to f_fpa_load and f_fpa_store. Update.
26459         (write_conflict): Deal with rename fallout.
26460         (*push_fp_multi): Likewise.
26461         * config/arm/fpa.md (f_load): Use f_fpa_load.
26462         (f_store): Use f_fpa_store.
26463         (*movsf_fpa): Likewise.
26464         (*movdf_fpa): Likewise.
26465         (*movxf_fpa): Likewise.
26466         (*thumb2_movsf_fpa): Likewise.
26467         (*thumb2_movdf_fpa): Likewise.
26468         (*thumb2_movxf_fpa): Likewise.
26469         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26470         f_loadd and f_stored.
26471         (*thumb2_movdi_vfp): Likewise.
26472         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26473         (*thumb2_movsi_vfp): Likewise.
26474         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26475         Use f_loads instead of f_load.
26476         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26477
26478 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26479
26480         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26481         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26482         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26483         (xtensa_mode_dependent_address_p): New function.
26484         (constantpool_address_p): Make static. Change return type to bool.
26485         Change argument type to const_rtx. Use CONST_INT_P predicate.
26486
26487 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26488
26489         PR debug/46583
26490         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26491
26492 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26493
26494         PR debug/47283
26495         * cfgexpand.c (expand_debug_expr): Instead of generating
26496         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26497         etc. handling.
26498
26499 2011-01-20  Richard Guenther  <rguenther@suse.de>
26500
26501         PR middle-end/47370
26502         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26503         the pointer operand of MEM_REFs.
26504
26505 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26506
26507         PR tree-optimization/46130
26508         * ipa-split.c (consider_split): If return_bb contains non-virtual
26509         PHIs other than for retval or if split_function would not adjust it,
26510         refuse to split.
26511
26512 2011-01-20  Richard Guenther  <rguenther@suse.de>
26513
26514         PR tree-optimization/47167
26515         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26516         Revert previous change, only avoid enumeral type changes.
26517
26518 2011-01-19  Mike Stump  <mikestump@comcast.net>
26519
26520         * doc/tm.texi.in (BRANCH_COST): Englishify.
26521         * doc/tm.texi (BRANCH_COST): Likewise.
26522
26523 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26524
26525         PR c++/47291
26526         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26527         (gen_scheduled_generic_parms_dies): New functions.
26528         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26529         generation for the end of CU compilation.
26530         (dwarf2out_finish): Generate template parameters DIEs here.
26531
26532 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26533
26534         PR debug/46240
26535         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26536         debug bind stmt on merge edges.
26537
26538 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26539
26540         PR debug/47079
26541         PR debug/46724
26542         * function.c (instantiate_expr): Instantiate incoming rtl of
26543         implicit arguments, and recurse on VALUE_EXPRs.
26544         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26545         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26546
26547 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26548
26549         * c-parser.c (c_parser_for_statement): Initialize
26550         collection_expression.
26551
26552 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26553
26554         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26555
26556 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26557
26558         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26559         (LINK_SHLIB_SPEC): Don't use %(link_path).
26560         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26561
26562 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26563
26564         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26565         (NO_SHARED_LIB_SUPPORT): Remove.
26566         (LINK_SHLIB_SPEC): Remove one conditional definition.
26567
26568 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26569
26570         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26571         %{call_shared}.
26572         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26573         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26574         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26575         %{call_shared} and conditionals on these options not being passed.
26576         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26577         %{call_shared}.
26578
26579 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26580
26581         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26582         simplify.
26583
26584         * ipa-split.c: Spelling fixes.
26585
26586 2011-01-19  Richard Henderson  <rth@redhat.com>
26587
26588         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26589         (*mulsi3): Likewise.
26590
26591         * longlong.h [__mn10300__] (count_leading_zeros): New.
26592         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26593         [__mn10300__] (add_ssaaaa, subddmmss): New.
26594         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26595         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26596
26597 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26598
26599         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26600
26601 2011-01-19  Richard Henderson  <rth@redhat.com>
26602
26603         * config/mn10300/mn10300.md (addsi3_flags): New.
26604         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26605         (subsi3_flags, subc_internal, subdi3): New.
26606         (subdi3_internal, *subdi3_degenerate): New.
26607         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26608
26609         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26610         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26611         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26612         * config/mn10300/mn10300-protos.h: Update.
26613         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26614         (return_ret): Likewise.  Rename from return_internal_regs.
26615         (return_internal): Remove.
26616
26617         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26618         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26619         (mn10300_legitimate_constant_p): Likewise.
26620         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26621         (mn10300_frame_size): New.
26622         (mn10300_expand_prologue): Use it.
26623         (mn10300_expand_epilogue): Likewise.
26624         (mn10300_initial_offset): Likewise.
26625         * config/mn10300/mn10300-protos.h: Update.
26626         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26627         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26628         (prologue, epilogue, return_internal): Tidy output code.
26629         (mn10300_store_multiple_operation, return): Likewise.
26630         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26631         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26632         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26633         (load_pic, am33_load_pic): New.
26634         (mn10300_load_pic0, mn10300_load_pic1): New.
26635
26636         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26637         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26638         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26639         (cc_flags_for_mode, cc_flags_for_code): New.
26640         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26641         overflow flag is not valid.  Validate that the flags we need
26642         for the comparison are valid.
26643         (mn10300_output_cmp): Remove.
26644         (mn10300_output_add): New.
26645         (mn10300_select_cc_mode): Use cc_flags_for_code.
26646         (mn10300_split_cbranch): New.
26647         (mn10300_match_ccmode): New.
26648         (mn10300_split_and_operand_count): New.
26649         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26650         to the function.
26651         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26652         (addsi3): ... here.  Use mn10300_output_add.
26653         (*addsi3_flags): New.
26654         (*am33_subsi3, *mn10300_subsi3): Merge...
26655         (subsi3): ... here.  Use attribute isa.
26656         (*subsi3_flags): New.
26657         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
26658         when possible.
26659         (*am33_andsi3, *mn10300_andsi3): Merge...
26660         (andsi3): ... here.
26661         (*andsi3_flags): New.
26662         (andsi3 splitters): New.
26663         (*am33_iorsi3, *mn10300_iorsi3): Merge...
26664         (iorsi3): ... here.
26665         (*iorsi3_flags): New.
26666         (*am33_xorsi3, *mn10300_xorsi3): Merge...
26667         (xorsi3): ... here.
26668         (*xorsi3_flags): New.
26669         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26670         (one_cmplsi2): ... here.
26671         (*one_cmplsi2_flags): New.
26672         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
26673         instead of "dax" in constraints.  Use mn10300_split_cbranch.
26674         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
26675         use matching constraints to eliminate a self-comparison.
26676         (*integer_conditional_branch): Rename from integer_conditional_branch.
26677         Use int_mode_flags to match CC_REG.
26678         (*cbranchsi4_btst, *btstsi): New.
26679         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26680         mn10300_split_cbranch.
26681         (*am33_cmpsf): Rename from am33_cmpsf.
26682         (*float_conditional_branch): Rename from float_conditional_branch.
26683         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26684         (zero_extendqisi2): ... here.
26685         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26686         (zero_extendhisi2): ... here.
26687         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26688         (extendqisi2): ... here.
26689         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26690         (extendhisi2): ... here.
26691         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26692         (ashlsi3): ... here.
26693         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26694         (lshrsi3): ... here.
26695         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26696         (ashrsi3): ... here.
26697         (consecutive add peephole): Remove.
26698         * config/mn10300/predicates.md (label_ref_operand): New.
26699         (int_mode_flags): New.
26700         (CCZN_comparison_operator): New.
26701
26702         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26703         (throughput_42_latency_43): New reservation.
26704         (mulsidi3, umulsidi3): New expanders.
26705         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
26706         the MDR register to allocation; separately allocate the low and
26707         high parts of the DImode result.
26708         (umulsidi3_internal): Similarly.
26709         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26710         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
26711         (udivsi3, umodsi3): Remove.
26712         (udivmodsi4, divmodsi4): New expanders.
26713         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
26714         (*divmodsi4): Simiarly.
26715         (ext_internal): New.
26716
26717         * config/mn10300/constraints.md ("z"): New constraint.
26718         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26719         (FIXED_REGISTERS): Don't fix MDR.
26720         (CALL_USED_REGSITERS): Reformat nicely.
26721         (REG_ALLOC_ORDER): Add MDR.
26722         (enum regclass): Add MDR_REGS.
26723         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26724         (IRA_COVER_CLASSES): Add MDR_REGS.
26725         (REGNO_REG_CLASS): Handle MDR_REG.
26726         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26727         (mn10300_register_move_cost): Likewise.
26728         * config/mn10300/mn10300.md (MDR_REG): New.
26729         (*movsi_internal): Handle moves to/from MDR_REGS.
26730
26731         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26732         POST_MODIFY.
26733         (mn10300_secondary_reload): Tidy combination reload classes.
26734         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26735         addresses for AM33.  Allow symbolic offsets for reg+imm.
26736         (mn10300_regno_in_class_p): New.
26737         (mn10300_legitimize_reload_address): New.
26738         * config/mn10300/mn10300.h (enum reg_class): Remove
26739         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26740         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
26741         SP_OR_GENERAL_REGS.
26742         (REG_CLASS_NAMES): Update to match.
26743         (REG_CLASS_CONTENTS): Likewise.
26744         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26745         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26746         (REGNO_IN_RANGE_P): Remove.
26747         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26748         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26749         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26750         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26751         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26752         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26753         (REGNO_GENERAL_P): New.
26754         (HAVE_POST_MODIFY_DISP): New.
26755         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26756         (LEGITIMIZE_RELOAD_ADDRESS): New.
26757         * config/mn10300/mn10300-protos.h: Update.
26758
26759         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26760         DATA_REGS for AM33 stack-pointer destination.
26761         (mn10300_preferred_output_reload_class): Likewise.
26762         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26763         into a form appropriate for ...
26764         (TARGET_SECONDARY_RELOAD): New.
26765         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26766         * config/mn10300/mn10300-protos.h: Update.
26767         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26768         reload_insi; use the "A" constraint for the scratch; handle AM33
26769         moves of sp to non-address registers.
26770
26771         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26772         (*movqi_internal): ... here.
26773         (*am33_movhi, *mn10300_movhi): Merge into...
26774         (*movhi_internal): ... here.
26775         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
26776         as the source/destination of moves from/to SP.
26777         (movsf): Only allow for AM33-2.
26778         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26779         any integer constant constraint.  Only allow for AM33-2.  Tidy
26780         all of the alternative outputs.
26781         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26782         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
26783         for MN103.
26784         (udivsi3, umodsi3): New patterns for MN103 only.
26785
26786 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
26787
26788         * doc/tm.texi.in: Spell out that a lack of register class unions
26789         can lead to ICEs.
26790         * doc/tm.texi: Regenerate.
26791
26792 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26793
26794         PR rtl-optimization/47337
26795         * dce.c (check_argument_store): New function.
26796         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26797
26798         PR tree-optimization/47290
26799         * tree-eh.c (infinite_empty_loop_p): New function.
26800         (cleanup_empty_eh): Use it.
26801
26802 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26803
26804         PR target/46997
26805         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26806         (a64_expand_widen_sum): Ditto.
26807         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26808         (vec_extract_evenodd_help): Ditto.
26809         (vec_extract_evenv4hi): Ditto.
26810         (vec_extract_oddv4hi): Ditto.
26811         (vec_extract_evenv2si): Ditto.
26812         (vec_extract_oddv2si): Ditto.
26813         (vec_extract_evenv2sf): Ditto.
26814         (vec_extract_oddv2sf): Ditto.
26815         (vec_pack_trunc_v4hi: Ditto.
26816         (vec_pack_trunc_v2si): Ditto.
26817         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26818         (vec_interleave_highv8qi): Ditto.
26819         (mix1_r): Ditto.
26820         (vec_extract_oddv8qi): Ditto.
26821         (vec_interleave_lowv4hi): Ditto.
26822         (vec_interleave_highv4hi): Ditto.
26823         (vec_interleave_lowv2si): Ditto.
26824         (vec_interleave_highv2si): Ditto.
26825
26826 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26827
26828         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26829         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26830         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26831         (pa_c_mode_for_suffix): New.
26832         (TARGET_EXPAND_BUILTIN): Define.
26833         (TARGET_C_MODE_FOR_SUFFIX): Define.
26834         (pa_builtins): Define.
26835         (pa_init_builtins): Register __float128 type and init new support
26836         builtins.
26837         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26838         * config/pa/quadlib.c (_U_Qfcopysign): New.
26839
26840 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26841
26842         PR middle-end/46894
26843         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26844         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26845         are defined.
26846
26847 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26848
26849         PR tree-optimization/47179
26850         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26851         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26852
26853 2011-01-18  Richard Guenther  <rguenther@suse.de>
26854
26855         PR rtl-optimization/47216
26856         * emit-rtl.c: Include tree-flow.h.
26857         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26858         of replicating it with different semantics.
26859         * Makefile.in (emit-rtl.o): Adjust.
26860
26861 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26862
26863         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26864         (cortex_a9_dp): Handle neon types correctly.
26865
26866 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26867
26868         PR rtl-optimization/47299
26869         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26870         subtarget.  Use normal multiplication if both operands are constants.
26871         * expmed.c (expand_widening_mult): Don't try to optimize constant
26872         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26873         before using it.
26874
26875 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26876
26877         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26878         spacing after 'e.g.', typos, comma, hyphenation.
26879
26880 2011-01-17  Richard Henderson  <rth@redhat.com>
26881
26882         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26883         (rx_restricted_mem_operand): New.
26884         (rx_shift_operand): Use register_operand.
26885         (rx_source_operand, rx_compare_operand): Likewise.
26886         * config/rx/rx.md (addsi3_flags): New expander.
26887         (adddi3): Rewrite as expander.
26888         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26889         (subsi3_flags): New expander.
26890         (subdi3): Rewrite as expander.
26891         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26892
26893         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26894         (rx_init_builtins): Remove sat builtin.
26895         (rx_expand_builtin): Likewise.
26896         * config/rx/rx.md (ssaddsi3): New.
26897         (*sat): Rename from sat.  Represent the CC_REG input.
26898
26899         * config/rx/predicates.md (rshift_operator): New.
26900         * config/rx/rx.c (rx_expand_insv): Remove.
26901         * config/rx/rx-protos.h: Update.
26902         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26903         operand to the canonical position.
26904         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26905         (*bitclr, *bitclr_in_memory): Similarly.
26906         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26907         (insv): Retain the zero_extract in the expansion.
26908
26909         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26910         (bswaphi2, bitinvert, revw): Likewise.
26911
26912         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26913         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26914         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26915         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26916         (bitset, bitset_in_memory): Likewise.
26917         (bitinvert, bitinvert_in_memory): Likewise.
26918         (bitclr, bitclr_in_memory): Likewise.
26919         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26920         (rx_strend, rx_cmpstrn): Likewise.
26921         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26922         (bitop peep2 patterns): Remove.
26923
26924         * config/rx/rx.c (rx_match_ccmode): New.
26925         * config/rx/rx-protos.h: Update.
26926         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26927         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26928         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26929         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26930         (fix_truncsfsi2, floatsisf2): Likewise.
26931         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26932         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26933         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26934         (*subsi3_flags, *xorsi3_flags): New.
26935
26936         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26937
26938         * config/rx/rx.c (rx_print_operand): Remove workaround for
26939         unsplit comparison operations.
26940
26941         * config/rx/rx.md (movsicc): Split after reload.
26942         (*movsicc): Merge *movsieq and *movsine via match_operator.
26943         (*stcc): New pattern.
26944
26945         * config/rx/rx.c (rx_float_compare_mode): Remove.
26946         * config/rx/rx.h (rx_float_compare_mode): Remove.
26947         * config/rx/rx.md (cstoresi4): Split after reload.
26948         (*sccc): New pattern.
26949
26950         * config/rx/predicates.md (label_ref_operand): New.
26951         (rx_z_comparison_operator): New.
26952         (rx_zs_comparison_operator): New.
26953         (rx_fp_comparison_operator): New.
26954         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26955         Validate that the flags are set properly for the comparison.
26956         (rx_gen_cond_branch_template): Remove.
26957         (rx_cc_modes_compatible): Remove.
26958         (mode_from_flags): New.
26959         (flags_from_code): Rename from flags_needed_for_conditional.
26960         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26961         (rx_select_cc_mode): Likewise.
26962         (rx_split_fp_compare): New.
26963         (rx_split_cbranch): New.
26964         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26965         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26966         (*cbranchsf4): Similarly.
26967         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26968         match_operator and rx_split_cbranch.
26969         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26970         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26971         (*cmpsi): Rename from cmpsi.
26972         (*tstsi): Rename from tstsi.
26973         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26974         (*conditional_branch): Rename from conditional_branch.
26975         (*reveresed_conditional_branch): Remove.
26976         (b<code>): Remove expander.
26977         * config/rx/rx-protos.h: Update.
26978
26979         * config/rx/rx.c (rx_compare_redundant): Remove.
26980         * config/rx/rx.md (cmpsi): Don't use it.
26981         * config/rx/rx-protos.h: Update.
26982
26983         * config/rx/rx-modes.def (CC_F): New mode.
26984         * config/rx/rx.c (rx_select_cc_mode): New.
26985         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26986         * config/rx/rx-protos.h: Update.
26987
26988 2011-01-17  Richard Henderson  <rth@redhat.com>
26989
26990         * except.c (dump_eh_tree): Fix stray ; after for statement.
26991
26992 2011-01-17  Richard Guenther  <rguenther@suse.de>
26993
26994         PR tree-optimization/47313
26995         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26996         handling before copying the body.  Properly deal with
26997         by-reference result in SSA form.
26998
26999 2011-01-17  Ian Lance Taylor  <iant@google.com>
27000
27001         PR target/47219
27002         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27003         (struct_value_alias_set): Don't define.
27004         (sparc_option_override): Don't set sparc_sr_alias_set and
27005         struct_value_alias_set.
27006         (save_or_restore_regs): Use gen_frame_mem rather than calling
27007         set_mem_alias_set.
27008         (sparc_struct_value_rtx): Likewise.
27009
27010 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27011
27012         PR target/47318
27013         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27014         (_mm_maskstore_pd): Likewise.
27015         (_mm_maskload_ps): Likewise.
27016         (_mm_maskstore_ps): Likewise.
27017         (_mm256_maskload_pd): Change mask to __m256i.
27018         (_mm256_maskstore_pd): Likewise.
27019         (_mm256_maskload_ps): Likewise.
27020         (_mm256_maskstore_ps): Likewise.
27021
27022         * config/i386/i386-builtin-types.def: Updated.
27023         (ix86_expand_special_args_builtin): Likewise.
27024
27025         * config/i386/i386.c (bdesc_special_args): Update
27026         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27027         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27028         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27029         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27030
27031         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27032         Use <avxpermvecmode> on mask register.
27033         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27034
27035 2011-01-17  Olivier Hainque  <hainque@adacore.com>
27036             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27037             Eric Botcazou  <ebotcazou@adacore.com>
27038
27039         PR target/46655
27040         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27041         if <= USHRT_MAX in 32-bit mode.
27042
27043 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27044
27045         * doc/install.texi (Configuration, Specific): Wrap long
27046         lines in examples.  Allow line wrapping in long options
27047         and URLs where beneficial for PDF output.
27048
27049 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
27050
27051         * config/mips/mips.c (mips_classify_symbol): Don't return
27052         SYMBOL_PC_RELATIVE for nonlocal labels.
27053
27054 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27055
27056         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27057
27058 2011-01-15  Jan Hubicka  <jh@suse.cz>
27059
27060         PR tree-optimization/47276
27061         * ipa.c (function_and_variable_visibility): Do not try to mark alias
27062         declarations as needed.
27063
27064 2011-01-15  Martin Jambor  <mjambor@suse.cz>
27065
27066         * common.opt (fdevirtualize): New flag.
27067         * doc/invoke.texi (Option Summary): Document it.
27068         * opts.c (default_options_table): Add devirtualize flag.
27069         * ipa-prop.c (detect_type_change): Return immediately if
27070         devirtualize flag is not set.
27071         (detect_type_change_ssa): Likewise.
27072         (compute_known_type_jump_func): Likewise.
27073         (ipa_analyze_virtual_call_uses): Likewise.
27074
27075 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27076
27077         PR tree-optimization/45934
27078         PR tree-optimization/46302
27079         * ipa-prop.c (type_change_info): New type.
27080         (stmt_may_be_vtbl_ptr_store): New function.
27081         (check_stmt_for_type_change): Likewise.
27082         (detect_type_change): Likewise.
27083         (detect_type_change_ssa): Likewise.
27084         (compute_complex_assign_jump_func): Check for dynamic type change.
27085         (compute_complex_ancestor_jump_func): Likewise.
27086         (compute_known_type_jump_func): Likewise.
27087         (compute_scalar_jump_functions): Likewise.
27088         (ipa_analyze_virtual_call_uses): Likewise.
27089         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27090
27091 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27092
27093         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27094         * config/i386/i386.opt (msse5): New Alias.
27095
27096 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27097
27098         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27099         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27100         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27101         * config/sparc/sparc.h (CC1_SPEC): Likewise.
27102
27103 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27104
27105         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27106         -mcpu options.
27107         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27108         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27109         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27110         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27111         Likewise.
27112         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27113
27114 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27115
27116         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27117
27118 2011-01-14  Mike Stump  <mikestump@comcast.net>
27119
27120         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27121         * config/fr30/fr30.md: Likweise
27122         (movsi_push): Likewise.
27123         (movsi_pop): Likewise.
27124         (enter_func): Likewise.
27125         * config/moxie/moxie.md (movsi_push): Likewise.
27126         (movsi_pop): Likewise.
27127
27128 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27129
27130         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27131         %{no_archive} %{exact_version}.
27132         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27133         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27134         %{no_archive} %{exact_version}.
27135         * config/mips/openbsd.h (LINK_SPEC): Likewise.
27136         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27137         * config/mips/vxworks.h: Likewise.
27138
27139 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27140
27141         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27142
27143 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27144
27145         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27146         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27147
27148 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27149
27150         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27151         -nodefaultlib.
27152
27153 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27154
27155         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27156         for mcpu not cpu.
27157         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27158         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27159         not cpu.
27160         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27161         Don't handle -shlib.
27162
27163 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27164
27165         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27166         (CC1_SPEC): Don't handle -profile.
27167
27168 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27169
27170         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27171         * config/mips/mips.h (CC1_SPEC): Likewise.
27172
27173 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27174
27175         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27176         * config/mips/mips.h (CC1_SPEC): Likewise.
27177
27178 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27179
27180         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27181         * config/m32r/linux.h (LINK_SPEC): Likewise.
27182         * config/mips/linux.h (LINK_SPEC): Likewise.
27183         * config/mips/linux64.h (LINK_SPEC): Likewise.
27184         * config/sparc/linux.h (LINK_SPEC): Likewise.
27185         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27186         LINK_SPEC): Likewise.
27187         * config/xtensa/linux.h (LINK_SPEC): Likewise.
27188
27189 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27190
27191         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27192         %{version:-v}.
27193         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27194
27195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27196
27197         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27198         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27199
27200 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27201
27202         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27203
27204 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27205
27206         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27207         supports -Bstatic/-Bdynamic.
27208         * configure: Regenerate.
27209
27210 2011-01-14  Jan Hubicka  <jh@suse.cz>
27211             Jack Howarth  <howarth@bromo.med.uc.edu>
27212
27213         PR target/46037
27214         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27215         when checking debug_info_level. Test write_symbols instead of
27216         debug_hooks->var_location when setting flag_var_tracking_uninit.
27217
27218 2011-01-14  Richard Guenther  <rguenther@suse.de>
27219
27220         PR tree-optimization/47179
27221         * target.def (ref_may_alias_errno): New target hook.
27222         * targhooks.h (default_ref_may_alias_errno): Declare.
27223         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27224         (default_ref_may_alias_errno): New function.
27225         * target.h (struct ao_ref_s): Declare.
27226         * tree-ssa-alias.c: Include target.h.
27227         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27228         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27229         (targhooks.o): Likewise.
27230         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27231         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27232
27233 2011-01-14  Richard Guenther  <rguenther@suse.de>
27234
27235         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
27236
27237 2011-01-14  Richard Guenther  <rguenther@suse.de>
27238
27239         PR tree-optimization/47280
27240         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27241         return CFG changes.
27242         (tree_ssa_forward_propagate_single_use_vars): Deal with
27243         CFG changes from associate_plusminus.
27244
27245 2011-01-14  Richard Guenther  <rguenther@suse.de>
27246
27247         PR middle-end/47281
27248         Revert
27249         2011-01-11  Richard Guenther  <rguenther@suse.de>
27250
27251         PR tree-optimization/46076
27252         * tree-ssa.c (useless_type_conversion_p): Conversions from
27253         unprototyped to empty argument list function types are useless.
27254
27255 2011-01-14  Richard Guenther  <rguenther@suse.de>
27256
27257         PR tree-optimization/47286
27258         * tree-ssa-structalias.c (new_var_info): Register variables are global.
27259
27260 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27261
27262         PR middle-end/46823
27263         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27264
27265 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
27266
27267         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27268         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27269         * config/xtensa/xtensa.c (xtensa_libcall_value,
27270         xtensa_function_value_regno_p): New functions.
27271         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27272
27273 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
27274
27275         PR c++/47213
27276         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27277         PE specific hook.
27278         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27279         New function prototype.
27280         * config/i386/winnt.c (i386_pe_assemble_visibility):
27281         Warn only if attribute was specified by user.
27282
27283 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27284
27285         PR target/47251
27286         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27287         floating point.
27288         (floatunsdidf2_fcfidu): Ditto.
27289
27290 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27291
27292         * config/s390/s390.c (print_operand_address): Replace 'error' with
27293         'output_operand_lossage'.
27294         (print_operand): Likewise.
27295
27296 2011-01-13  Jeff Law  <law@redhat.com>
27297
27298         PR rtl-optimization/39077
27299         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27300         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27301         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27302         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27303         * gcse.c (prune_insertions_deletions): New function.
27304         (compute_pre_data): Use it.
27305
27306 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
27307
27308         PR debug/PR46973
27309         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27310         static function.
27311         (prune_unused_types_mark): Use it.
27312
27313 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
27314
27315         PR rtl-optimization/45352
27316         * sel-sched.c: Update copyright years.
27317         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27318         in the advancing loop when we have issued issue_rate insns.
27319
27320 2011-01-12  Richard Henderson  <rth@redhat.com>
27321
27322         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27323         (TARGET_MD_ASM_CLOBBERS): New.
27324
27325         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27326         (TARGET_DELEGITIMIZE_ADDRESS): New.
27327
27328         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27329         (clzsi2, *bsch): New patterns.
27330
27331         * config/mn10300/mn10300.md (INT): New mode iterator.
27332         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27333
27334         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27335         flag_split_wide_types.
27336
27337         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27338         (mn10300_trampoline_init): Rewrite without a template, an immediate
27339         load and a direct branch.
27340         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27341
27342 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27343
27344         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27345         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27346         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27347         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27348
27349 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27350
27351         PR debug/47209
27352         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27353         of type.
27354
27355 2011-01-12  Jan Hubicka  <jh@suse.cz>
27356
27357         PR driver/47244
27358         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27359         (PLUGIN_COND_CLOSE): New macro.
27360         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27361
27362 2011-01-12  Richard Guenther  <rguenther@suse.de>
27363
27364         PR lto/47259
27365         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27366         register variables in a MEM_REF.
27367
27368 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27369
27370         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27371         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27372         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27373         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27374         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27375         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27376         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27377         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27378         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27379         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27380         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27381         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27382         * config/gnu-user.h: New.  Copied from linux.h.
27383         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27384         GNU_USER_TARGET_STARTFILE_SPEC.
27385         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27386         GNU_USER_TARGET_ENDFILE_SPEC.
27387         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27388         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27389         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27390         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27391         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27392         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27393         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27394         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27395         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27396         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27397         * config/arm/linux-eabi.h (CC1_SPEC): Use
27398         GNU_USER_TARGET_CC1_SPEC.
27399         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27400         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27401         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27402         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27403         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27404         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27405         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27406         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27407
27408 2011-01-12  Richard Guenther  <rguenther@suse.de>
27409
27410         PR other/46946
27411         * doc/invoke.texi (ffast-math): Document it is turned on
27412         with -Ofast.
27413
27414 2011-01-12  Jan Hubicka  <jh@suse.cz>
27415
27416         PR tree-optimization/47233
27417         * opts.c (common_handle_option): Disable ipa-reference with profile
27418         feedback.
27419
27420 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27421
27422         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27423         error message.
27424
27425 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27426
27427         * c-parser.c (c_lex_one_token): Updated and reindented some
27428         comments.  No changes in code.
27429
27430 2011-01-11  Ian Lance Taylor  <iant@google.com>
27431
27432         * godump.c (go_output_var): Don't output the variable if there is
27433         already a type with the same name.
27434
27435 2011-01-11  Ian Lance Taylor  <iant@google.com>
27436
27437         * godump.c (go_format_type): Don't generate float80.
27438
27439 2011-01-11  Richard Henderson  <rth@redhat.com>
27440
27441         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27442         declaration.  Rewrite for both speed and size.
27443         (mn10300_address_cost_1): Remove.
27444         (mn10300_register_move_cost): New.
27445         (mn10300_memory_move_cost): New.
27446         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27447         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27448         extensions, shifts, BSWAP, CLZ.
27449         (mn10300_wide_const_load_uses_clr): Remove.
27450         (TARGET_REGISTER_MOVE_COST): New.
27451         (TARGET_MEMORY_MOVE_COST): New.
27452         * config/mn10300/mn10300-protos.h: Update.
27453         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27454
27455         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27456         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27457         * config/mn10300/mn10300-protos.h: Update.
27458         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27459         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27460         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27461         (*test_int_bitfield, *test_byte_bitfield): Remove.
27462         (*bit_test, *subreg_bit_test): Remove.
27463         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27464
27465         * config/mn10300/constraints.md ("c"): Rename from "A".
27466         ("A", "D"): New constraint letters.
27467         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27468         (fmssf4, fnmasf4, fnmssf4): Likewise.
27469
27470         * config/mn10300/mn10300.md (isa): New attribute.
27471         (enabled): New attribute.
27472
27473         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27474         (abssf2, negsf2): Define only for hardware fp.
27475         (sqrtsf2): Reformat.
27476         (addsf3, subsf3, mulsf3): Merge expander and insn.
27477
27478         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27479         (DEBUGGER_AUTO_OFFSET): Remove.
27480         (DEBUGGER_ARG_OFFSET): Remove.
27481
27482         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27483         Emit register stores with the same offsets as the hardware.
27484         (mn10300_store_multiple_operation): Don't check that the register
27485         save offsets are monotonic.
27486         * config/mn10300/mn10300-protos.h: Update.
27487
27488         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27489
27490         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27491         in terms of the value on the stack, not the MDR register.
27492
27493 2011-01-11  Jan Hubicka  <jh@suse.cz>
27494
27495         PR lto/45721
27496         PR lto/45375
27497         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27498         (symbol_alias_set_destroy, symbol_alias_set_contains,
27499         propagate_aliases_backward): Declare.
27500         * lto-streamer-out.c (struct sets): New sturcture.
27501         (trivally_defined_alias): New function.
27502         (output_alias_pair_p): Rewrite.
27503         (output_unreferenced_globals): Fix output of alias pairs.
27504         (produce_symtab): Likewise.
27505         * ipa.c (function_and_variable_visibility): Set weak alias destination
27506         as needed in lto.
27507         * varasm.c (symbol_alias_set_t): Remove.
27508         (symbol_alias_set_destroy): Export.
27509         (propagate_aliases_forward, propagate_aliases_backward): New functions
27510         based on ...
27511         (compute_visible_aliases): ... this one; remove.
27512         (trivially_visible_alias): New
27513         (trivially_defined_alias): New.
27514         (remove_unreachable_alias_pairs): Rewrite.
27515         (finish_aliases_1): Reorganize code checking if alias is defined.
27516         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27517         in LTO mode.
27518
27519 2011-01-11  Richard Guenther  <rguenther@suse.de>
27520
27521         PR tree-optimization/46076
27522         * tree-ssa.c (useless_type_conversion_p): Conversions from
27523         unprototyped to empty argument list function types are useless.
27524
27525 2011-01-11  Richard Guenther  <rguenther@suse.de>
27526
27527         PR middle-end/45235
27528         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27529         volatile MEMs as MEM_READONLY_P.
27530
27531 2011-01-11  Richard Guenther  <rguenther@suse.de>
27532
27533         PR tree-optimization/47239
27534         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27535
27536 2011-01-11  Jeff Law  <law@redhat.com>
27537
27538         PR tree-optimization/47086
27539         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27540         IVs from statements that might throw.
27541
27542 2011-01-10  Jan Hubicka  <jh@suse.cz>
27543
27544         PR lto/45375
27545         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27546
27547 2011-01-10  Jan Hubicka  <jh@suse.cz>
27548
27549         PR lto/45375
27550         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27551         when correcting profile.
27552
27553 2011-01-10  Jan Hubicka  <jh@suse.cz>
27554
27555         PR lto/46083
27556         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27557         DECL_FINI_PRIORITY.
27558         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27559         Restore DECL_FINI_PRIORITY.
27560
27561 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27562
27563         * doc/gimple.texi: Fix quoting of multi-word return values in
27564         @deftypefn statements.  Ensure presence of return value.  Wrap
27565         overlong @deftypefn lines.
27566         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27567         descriptions of removed functions.
27568         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27569         of multi-word return value in @deftypefn statement.
27570
27571 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27572
27573         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27574         (Conditional Expressions, Logical Operators)
27575         (Statement and operand traversals): Do not indent smallexample
27576         code.  Fix duplicate function argument in example.
27577
27578 2011-01-10  Jeff Law  <law@redhat.com>
27579
27580         PR tree-optimization/47141
27581         * ipa-split.c (split_function): Handle case where we are
27582         returning a value and the return block has a virtual operand phi.
27583
27584 2011-01-10  Jan Hubicka  <jh@suse.cz>
27585
27586         PR tree-optimization/47234
27587         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27588         (pass_feedback_split_functions): Declare.
27589         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27590         tree-profile.
27591         * ipa-split.c (gate_split_functions): Update comments; disable
27592         split-functions for profile_arc_flag and branch_probabilities.
27593         (gate_feedback_split_functions): New function.
27594         (execute_feedback_split_functions): New function.
27595         (pass_feedback_split_functions): New global var.
27596
27597 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27598
27599         PR lto/46760
27600         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27601         calling gimple_call_set_cannot_inline.
27602
27603 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27604
27605         * config/darwin-sections.def: Remove unused section.
27606
27607 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27608
27609         PR c++/47218
27610         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27611
27612 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27613
27614         PR objc/47232
27615         * c-parser.c (c_parser_declaration_or_fndef): Improved
27616         error message.
27617
27618 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27619
27620         * config/i386/winnt.c (i386_pe_start_function): Make sure
27621         to switch back to function's section.
27622
27623 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27624
27625         PR gcc/46902
27626         PR testsuite/46912
27627         * plugin.c: Move include of dlfcn.h from here...
27628         * system.h: ... to here.
27629
27630 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27631
27632         * doc/cpp.texi (C++ Named Operators): Fix markup for header
27633         file name.
27634         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27635         two extra empty pages in PDF output.
27636
27637 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
27638
27639         PR objc/47078
27640         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27641         for error recovery purposes behave as if it was not specified so
27642         that the default type is usd.
27643
27644 2011-01-07  Jan Hubicka  <jh@suse.cz>
27645
27646         PR tree-optmization/46469
27647         * ipa.c (function_and_variable_visibility): Clear needed flags on
27648         nodes with external decls; handle weakrefs merging correctly.
27649
27650 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
27651
27652         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27653         not false.
27654
27655 2011-01-07  Jan Hubicka  <jh@suse.cz>
27656
27657         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27658         and no longer claim that gold is required for linker plugin.
27659         * configure: Regenerate.
27660         * gcc.c (PLUGIN_COND): New macro.
27661         (LINK_COMMAND_SPEC): Use it.
27662         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27663         * config.in (HAVE_LTO_PLUGIN): New.
27664         * configure.ac (--with-lto-plugin): New parameter; autodetect
27665         HAVE_LTO_PLUGIN.
27666
27667 2011-01-07  Jan Hubicka  <jh@suse.cz>
27668
27669         PR tree-optimization/46367
27670         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27671         when we can update original.
27672         (cgraph_mark_inline_edge): Sanity check.
27673         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27674
27675 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27676
27677         * config/spu/spu.h (ASM_COMMENT_START): Define.
27678
27679 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27680
27681         PR driver/42445
27682         * gcc.c (%>S): New.
27683         (SWITCH_KEEP_FOR_GCC): Likewise.
27684         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27685         (do_spec_1): Handle "%>".
27686
27687         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27688
27689 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
27690
27691         PR target/47201
27692         * config/i386/i386.c (ix86_delegitimize_address): If
27693         simplify_gen_subreg fails, return orig_x.
27694
27695         PR bootstrap/47187
27696         * value-prof.c (gimple_stringop_fixed_value): Handle
27697         lhs of the call properly.
27698
27699 2011-01-07  Jan Hubicka  <jh@suse.cz>
27700
27701         PR lto/45375
27702         * lto-opt.c (lto_reissue_options): Set flag_shlib.
27703
27704 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27705
27706         * target.def (function_switched_text_sections): New hook.
27707         * doc/tm.texi: Regenerated.
27708         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27709         * final.c (default_function_switched_text_sections): New.
27710         (final_scan_insn): Call function_switched_text_sections when a
27711         mid-function section change occurs.
27712         * output.h (default_function_switched_text_sections): Declare.
27713         * config/darwin-protos.h (darwin_function_switched_text_sections):
27714         Likewise.
27715         * config/darwin.c (darwin_function_switched_text_sections): New.
27716         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27717
27718 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27719
27720         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
27721         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
27722         the secondary code fragment when outputting for DWARF == 2.
27723
27724 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
27725
27726         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27727         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27728         Remove.
27729         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27730         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27731
27732 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27733
27734         PR debug/46704
27735         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27736         when it is not empty.
27737
27738 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
27739
27740         Bobcat Enablement
27741         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27742         (case ${target}): Add btver1.
27743         * config/i386/driver-i386.c (host_detect_local_cpu): Let
27744         -march=native recognize btver1 processors.
27745         * config/i386/i386-c.c (ix86_target_macros_internal): Add
27746         btver1 def_and_undef
27747         * config/i386/i386.c (struct processor_costs btver1_cost): New
27748         btver1 cost table.
27749         (m_BTVER1): New definition.
27750         (m_AMD_MULTIPLE): Includes m_BTVER1.
27751         (initial_ix86_tune_features): Add btver1 tune.
27752         (processor_target_table): Add btver1 entry.
27753         (static const char *const cpu_names): Add btver1 entry.
27754         (software_prefetching_beneficial_p): Add btver1.
27755         (ix86_option_override_internal): Add btver1 instruction sets.
27756         (ix86_issue_rate): Add btver1.
27757         (ix86_adjust_cost): Add btver1.
27758         * config/i386/i386.h (TARGET_BTVER1): New definition.
27759         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27760         (enum processor_type): Add PROCESSOR_BTVER1.
27761         * config/i386/i386.md (define_attr "cpu"): Add btver1.
27762
27763 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27764
27765         PR target/43309
27766         * config/i386/i386.c (legitimize_tls_address)
27767         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27768         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27769         (tls_initial_exec_64_sun): New pattern.
27770
27771 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27772
27773         * doc/invoke.texi (Overall Options): Improve wording and markup
27774         of the description of -wrapper.
27775
27776 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27777
27778         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27779         rdynamic, threads): New Driver options.
27780
27781 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27782
27783         PR target/38118
27784         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27785         if coming from .tdata.
27786         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27787
27788 2011-01-06  Jan Hubicka  <jh@suse.cz>
27789
27790         PR lto/47188
27791         * collect2.c (main): Do not enable LTOmode when plugin is active.
27792
27793 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27794
27795         PR other/45915
27796         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27797         --version output if supported.
27798         * configure: Regenerate.
27799
27800 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27801
27802         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27803         Driver options.
27804
27805 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27806
27807         PR c/47150
27808         * c-convert.c (convert): When converting a complex expression
27809         other than COMPLEX_EXPR to a different complex type, ensure
27810         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27811         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27812         when converting COMPLEX_TYPE.
27813
27814 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27815
27816         PR tree-optimization/47139
27817         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27818         only the last reduction value is used outside the loop.  Update
27819         documentation.
27820
27821 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27822
27823         * config/rtems.opt: New.
27824         * config.gcc (*-*-rtems*): Use rtems.opt.
27825
27826 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27827
27828         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27829         processors do not support 3DNow instructions.
27830
27831 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27832
27833         * config/spu/spu.c (spu_option_override): Set parameter
27834         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27835
27836 2011-01-05  Jan Hubicka  <jh@suse.cz>
27837
27838         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27839         at the command line.
27840
27841 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27842
27843         PR lto/47162
27844         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27845         deltas on streamed outgoing edges.
27846         (output_node_opt_summary): Output info for outgoing edges only when
27847         the node is in new parameter set.
27848         (output_cgraph_opt_summary): New parameter set, passed to the two
27849         aforementioned functions.  Update its forward declaration and its
27850         callee too.
27851
27852 2011-01-05  Tom Tromey  <tromey@redhat.com>
27853
27854         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27855         operator to c_finish_omp_atomic.
27856         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27857         (build_unary_op): Update.
27858         (build_modify_expr): Update.
27859         (build_asm_expr): Update.
27860
27861 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27862
27863         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27864         newly inserted insns.
27865         (pad_bb): Likewise.
27866         (spu_emit_branch_hint): Likewise.
27867         (insert_hbrp_for_ilb_runout): Likewise.
27868         (spu_machine_dependent_reorg): Call df_finish_pass after
27869         schedule_insns returns.
27870
27871 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27872
27873         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27874
27875 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27876
27877         PR tree-optimization/47005
27878         * tree-sra.c (struct access): Add 'non_addressable' bit.
27879         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27880         (decide_one_param_reduction): Return 0 if the parameter is passed by
27881         reference and one of the accesses in the group is non_addressable.
27882
27883 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27884
27885         PR tree-optimization/47056
27886         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27887         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27888         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27889
27890 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27891
27892         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27893         initializer.  Skip view conversions from aggregate types.
27894
27895 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27896
27897         PR bootstrap/47055
27898         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27899
27900 2011-01-04  Philipp Thomas  <pth@suse.de>
27901
27902         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27903         obvious typo.
27904
27905 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27906
27907         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27908         on empty epilogue sequences.
27909
27910 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27911
27912         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27913         non-static): New Driver options.
27914
27915 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27916
27917         PR driver/47137
27918         * gcc.c (default_compilers[]): Set combinable field to 0
27919         for all assembly languages.
27920
27921 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27922
27923         * config/mips/loongson3a.md: New file.
27924         * config/mips/mips.md: Include loongson3a.md.
27925         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27926         TUNE_LOONGSON_3A.
27927
27928 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27929
27930         PR middle-end/47017
27931         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27932         instead of convert_memory_address_addr_space on the base expression.
27933
27934 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27935
27936         * config/spu/spu.c (spu_option_override): Update error text
27937         for bad -march= / -mtune= values.
27938
27939 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27940
27941         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27942         if branch-hint optimization will be performed.
27943
27944 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27945
27946         PR tree-optimization/47148
27947         * ipa-split.c (split_function): Convert arguments to
27948         DECL_ARG_TYPE if possible.
27949
27950         PR tree-optimization/47155
27951         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27952         when computing uns.
27953
27954         PR rtl-optimization/47157
27955         * combine.c (try_combine): If undobuf.other_insn becomes
27956         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27957         and set *new_direct_jump_p too.
27958
27959 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27960
27961         PR tree-optimization/47021
27962         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27963
27964 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27965
27966         * gcc.c (process_command): Update copyright notice dates.
27967         * gcov.c (print_version): Likewise.
27968         * gcov-dump.c (print_version): Likewise.
27969         * mips-tfile.c (main): Likewise.
27970         * mips-tdump.c (main): Likewise.
27971
27972 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27973
27974         PR tree-optimization/46801
27975         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27976         aggregate fields start at byte boundary instead of the bit-field flag.
27977
27978 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27979
27980         PR driver/47137
27981         * gcc.c (main): Revert revision 168407.
27982
27983 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27984
27985         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27986
27987 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27988
27989         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27990         vector optab to expand vector/scalar shift, update gimple to vector.
27991
27992 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27993
27994         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27995         a thunk.
27996
27997 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27998
27999         PR tree-optimization/46984
28000         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28001         HOST_WIDE_INT.
28002         (cgraph_create_indirect_edge): Fixed line length.
28003         (cgraph_indirect_call_info): Declare.
28004         (cgraph_make_edge_direct) Update declaration.
28005         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28006         (cgraph_create_indirect_edge): Use it.
28007         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
28008         callees.
28009         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28010         the new thunk_delta representation.
28011         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28012         HOST_WIDE_INT.
28013         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28014         (ipa_read_indirect_edge_info): Likewise.
28015         * lto-cgraph.c (output_edge_opt_summary): New function.
28016         (output_node_opt_summary): Call it on all outgoing edges.
28017         (input_edge_opt_summary): New function.
28018         (input_node_opt_summary): Call it on all outgoing edges.
28019
28020 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
28021
28022         PR driver/47137
28023         * gcc.c (main): Don't check have_o when settting combine_inputs.
28024
28025 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
28026
28027         * regrename.c: Add general comment describing the pass.
28028         (struct du_head): Remove 'length' field.
28029         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28030         (regrename_optimize): Do not sort chains.  Rework comments, add others.
28031         Force renaming to the preferred class (if any) in the first pass and do
28032         not consider registers that belong to it in the second pass.
28033         (create_new_chain): Do not set 'length' field.
28034         (scan_rtx_reg): Likewise.
28035
28036 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
28037
28038         PR tree-optimization/47140
28039         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28040         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28041         to bit_value_binop.
28042
28043         PR rtl-optimization/47028
28044         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28045         parm_birth_insn instead of at the beginning of first bb.
28046
28047 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
28048
28049         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28050         Remove the word "see" before "@pxref".
28051         * doc/rtl.texi: Remove the word "see" before "@pxref".
28052
28053 2011-01-01  Jan Hubicka  <jh@suse.cz>
28054
28055         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28056         memory.
28057
28058 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
28059
28060         PR target/38662
28061         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28062
28063 \f
28064 Copyright (C) 2011 Free Software Foundation, Inc.
28065
28066 Copying and distribution of this file, with or without modification,
28067 are permitted in any medium without royalty provided the copyright
28068 notice and this notice are preserved.