OSDN Git Service

other/49533
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-13  Jan Hubicka  <jh@suse.cz>
2
3         other/49533
4         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
5
6 2011-09-13  Paul Brook  <paul@codesourcery.com>
7  
8         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
10         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
11         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
12         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
13         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
14         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
15         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
16         enabling unwind tables.
17         (c6x_debug_unwind_info): New function.
18         (TARGET_ARM_EABI_UNWINDER): Define.
19         (TARGET_DEBUG_UNWIND_INFO): Define.
20         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
21         (TARGET_EXTRA_CFI_SECTION): Remove.
22         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
23         * ginclude/unwind-arm-common.h: New file.
24
25 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
26         
27         PR target/50358
28         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
29         * config/avr/avr.md: (extend_s): New code attribute.
30         (mul_r_d): New code attribute.
31         (*maddqihi4, *umaddqihi4): New insns.
32         (*msubqihi4, *umsubqihi4): New insns.
33         (*usmaddqihi4, *sumaddqihi4): New insns.
34         (*usmsubqihi4, *susubdqihi4): New insns.
35         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
36         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
37         (*umsubqihi4.uconst.ashift): New insn-and-split.
38         (*msubqihi4.sconst.ashift): New insn-and-split.
39         (*sumaddqihi4.uconst): New insn-and-split.
40         (*sumsubqihi4.uconst): New insn-and-split.
41         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
42         PLUS:HI and MINUS:HI.
43
44 2011-09-13  Revital Eres  <revital.eres@linaro.org>
45
46         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
47         (optimize_sc): Adjust call to remove_node_from_ps.
48         (sms_schedule): Add print info.
49
50 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
51
52         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
53         flags specially.
54
55 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
56
57         PR bootstrap/50010
58         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
59         NOTE_INSN_CFI notes, with the exception of
60         NOTE_INSN_SWITCH_TEXT_SECTIONS.
61
62 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
63             Richard Sandiford  <rdsandiford@googlemail.com>
64
65         * config/mips/mips.c (mips_epilogue): New structure.
66         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
67         restoring registers.
68         (mips_epilogue_emit_cfa_restores): New function.
69         (mips_epilogue_set_cfa): Likewise.
70         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
71         the current CFA register from the stack, redefine the CFA in terms
72         of the stack pointer.
73         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
74         to the epilogue instructions.
75
76 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
77
78         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
79         argument.
80         (mips16e_build_save_restore): Update accordingly.
81
82 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
83
84         PR rtl-optimization/50212
85         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
86         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
87
88         PR debug/50299
89         * calls.c (load_register_parameters): Use use_reg_mode instead
90         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
91         entry.
92         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
93         for stack CALL_INSN_FUNCTION_USAGE uses.
94         * expr.h (use_reg_mode): New prototype.
95         (use_reg): Changed into inline around use_reg_mode.
96         * expr.c (use_reg): Renamed to...
97         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
98         mode to that mode instead of VOIDmode.
99         * var-tracking.c (prepare_call_arguments): Don't track parameters
100         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
101         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
102         EXPR_LIST mode.
103
104 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
105
106         PR target/43746
107         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
108         (progmem_section): New Variable.
109         (avr_asm_init_sections): Initialize it.
110         (TARGET_ASM_SELECT_SECTION): Define to...
111         (avr_asm_select_section): ... this new Function.
112         (avr_replace_prefix): New Function.
113         (avr_asm_function_rodata_section): Use it.
114         (avr_insert_attributes): Don't add section attribute for PROGMEM.
115         (avr_section_type_flags): Use avr_progmem_p instead of section
116         name to detect if object is in PROGMEM.
117         (avr_asm_named_section): Set section name prefix for objects in
118         PROGMEM.
119
120 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
121
122         PR bootstrap/50352
123         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
124         sprintf format string.
125
126 2011-09-12  Richard Guenther  <rguenther@suse.de>
127
128         PR tree-optimization/50343
129         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
130         that the reduction is over an SSA name before checking its
131         definition.
132
133 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
134
135         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
136         throughout file.
137
138 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
139
140         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
141         throughout file.
142         * config/mips/sb1.md: Likewise.
143         * config/mips/predicates.md: Replace (match_test "!...")
144         with (not (match_test "..."))
145         * config/mips/constraints.md: Likewise.
146
147 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
148
149         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
150         * config/arm/arm-tables.opt: Regenerate.
151         * config/arm/arm-tune.md: Regenerate.
152         * config/arm/arm.c (arm_file_start): Output .arch directive when
153         user passes -mcpu=generic-*.
154         (arm_issue_rate): Add genericv7a support.
155         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
156         (ASM_CPU_SPEC): New define.
157         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
158         * config/arm/semi.h (ASM_SPEC): Likewise.
159         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
160         and -mtune=generic-*.
161
162 2011-09-09  Richard Guenther  <rguenther@suse.de>
163
164         PR tree-optimization/50328
165         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
166         constant or default-def operand.
167
168 2011-09-09  Richard Guenther  <rguenther@suse.de>
169
170         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
171         last statement.
172
173 2011-09-09  Richard Guenther  <rguenther@suse.de>
174
175         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
176         instead of a statement.
177         * gimple-fold.c (fold_stmt_inplace): Likewise.
178         * sese.c (graphite_copy_stmts_from_block): Adjust.
179         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
180         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
181         fold_stmt.
182         (forward_propagate_addr_into_variable_array_index): Likewise.
183         (forward_propagate_addr_expr_1): adjust.
184         (associate_plusminus): Likewise.
185         (ssa_forward_propagate_and_combine): Likewise.
186         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
187         (execute_cse_reciprocals): Likewise.
188         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
189
190 2011-09-09  Nick Clifton  <nickc@redhat.com>
191
192         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
193         Return a positive value to indicate that the bits at the
194         bottom of the register should be cleared.
195
196 2011-09-09  Richard Guenther  <rguenther@suse.de>
197
198         * tree-ssa-operands.c (swap_tree_operands): Always adjust
199         existing operand positions.
200
201 2011-09-09  Richard Guenther  <rguenther@suse.de>
202
203         PR middle-end/50333
204         * tree-data-ref.c (split_constant_offset): Do not try to handle
205         ternary ops.
206
207 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
208
209         PR tree-optimization/50318
210         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
211         typo in use of mult_rhs1 and mult_rhs2.
212
213 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
214
215         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
216         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
217
218 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
219
220         * config/arm/arm.md (push_multi): Emit predicates.
221         (push_fp_multi): Likewise.
222         * config/arm/arm.c (vfp_output_fstmd): Likewise.
223
224 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
225
226         PR c++/33255 - Support -Wunused-local-typedefs warning
227         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
228         (pushdecl): Use the new record_locally_defined_typedef.
229         (store_parm_decls): Allocate cfun->language.
230         (finish_function): Use the new maybe_warn_unused_local_typedefs,
231         and free cfun->language.
232         (c_push_function_context): Allocate cfun->language here only if needed.
233         (c_pop_function_context): Likewise, mark cfun->language
234         for collection only when it should be done.
235         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
236         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
237         maybe_record_local_typedef_use.
238         * doc/invoke.texi: Update documentation for
239         -Wunused-local-typedefs.
240
241 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
242
243         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
244         (ix86_avoid_lea_for_add): Likewise.
245         (ix86_avoid_lea_for_addr): Likewise.
246         (ix86_split_lea_for_addr): Likewise.
247
248         * config/i386/i386.c (LEA_MAX_STALL): New.
249         (increase_distance): Likewise.
250         (insn_defines_reg): Likewise.
251         (insn_uses_reg_mem): Likewise.
252         (distance_non_agu_define_in_bb): Likewise.
253         (distance_agu_use_in_bb): Likewise.
254         (ix86_lea_outperforms): Likewise.
255         (ix86_ok_to_clobber_flags): Likewise.
256         (ix86_avoid_lea_for_add): Likewise.
257         (ix86_avoid_lea_for_addr): Likewise.
258         (ix86_split_lea_for_addr): Likewise.
259         (distance_non_agu_define): Search in pred BBs added.
260         (distance_agu_use): Search in succ BBs added.
261         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
262         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
263         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
264
265         * config/i386/i386.md: Split added to transform non destructive
266         add into move and add.
267         (lea_1): transformed into insn_and_split to avoid AGU stalls.
268         (lea<mode>_2): Likewise.
269
270 2011-09-08  Martin Jambor  <mjambor@suse.cz>
271
272         PR tree-optimization/50287
273         * ipa-split.c (split_function): Do not create SSA names for
274         non-gimple-registers.
275
276 2011-09-08  Richard Guenther  <rguenther@suse.de>
277
278         PR tree-optimization/19831
279         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
280         skip builtins with vdefs that do not really store something.
281         (propagate_necessity): For calls to free that we can associate
282         with an allocation function do not mark the freed pointer
283         definition necessary.
284         (eliminate_unnecessary_stmts): Remove a call to free if
285         the associated call to an allocation function is not necessary.
286
287 2011-09-08  Richard Guenther  <rguenther@suse.de>
288
289         PR tree-optimization/19831
290         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
291         allocation functions as necessary.
292
293 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
294
295         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
296         cut from ...
297         (darwin_default_min_version): Amended to provide defaults
298         for the cross directory case.
299         (darwin_driver_init): call darwin_default_min_version unconditionally.
300         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
301         * config/darwin9.h: Likewise.
302         * config/darwin10.h: Likewise.
303         * config/rs6000/darwin7.h: Likewise.
304
305 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
306
307         PR target/50310
308         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
309         code early if TARGET_AVX.
310         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
311
312 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
313
314         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
315         duplicates.
316
317         PR target/50310
318         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
319         "mode" attribute computation.
320
321 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
322
323         * regrename.c (struct du_head): Make nregs signed.
324         (closed_chains): Remove.
325         (create_new_chain): Return the new chain.
326         (chain_from_id): New static function.
327         (dump_def_use_chain): Change argument to be an int, indicating
328         the first ID to print.  All callers changed.
329         (merge_overlapping_regs): Use chain_from_id.  Assert that
330         chains don't conflict with themselves.
331         (rename_chains): Take no argument.  Iterate over id_to_chain
332         rather to find chains to rename.  Clear tick before the main loop.
333         (struct incoming_reg_info): New struct.
334         (struct bb_rename_info): New struct.
335         (init_rename_info, set_incoming_from_chain, merge_chains): New
336         static functions.
337         (regrename_analyze): New static function, broken out of
338         regrename_optimize.  Record and make use of open chain information
339         at basic block boundaries, and merge chains where possible.
340         (scan_rtx_reg): Make this_nregs signed.  Don't update
341         closed_chains.
342         (build_def_use): Return a bool to indicate success.  All callers
343         changed.  Don't initialize global data here.
344         (regrename_optimize): Move most code out of here into
345         regrename_analyze.
346         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
347         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
348         static inline functions.
349         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
350
351         * bb-reorder.c (insert_section_boundary_note): Don't check
352         optimize_function_for_speed_p.
353         (gate_handle_partition_blocks): Do it here instead.
354         (gate_handle_reorder_blocks): Move preliminary checks here ...
355         (rest_of_handle_reorder_blocks): ... from here.
356
357 2011-09-07  Martin Jambor  <mjambor@suse.cz>
358
359         PR middle-end/50301
360         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
361         function index bounds.
362         (perhaps_add_new_callers): Likewise.
363
364 2011-09-07  Martin Jambor  <mjambor@suse.cz>
365
366         PR tree-optimization/49911
367         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
368         enumerations to the corresponding plain integer type.
369
370 2011-09-07  Richard Guenther  <rguenther@suse.de>
371
372         PR tree-optimization/50319
373         * tree-if-conv.c (set_bb_predicate): Assert we only set
374         canonical predicates.
375         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
376         around canonical predicates.
377         (predicate_bbs): Do not re-gimplify already canonical
378         predicates.  Properly unshare them though.
379         (find_phi_replacement_condition): Simplify.
380
381 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
382
383         PR target/49030
384         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
385         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
386         reusing the old code from get_arm_condition_code.  Return ARM_NV
387         for invalid comparison codes.
388         (get_arm_condition_code): Redefine in terms of
389         maybe_get_arm_condition_code.
390         * config/arm/predicates.md (arm_comparison_operator): Use
391         maybe_get_arm_condition_code.
392
393 2011-09-07  Richard Guenther  <rguenther@suse.de>
394
395         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
396         Canonicalize negated predicates by swapping edges.
397         (forward_propagate_into_cond): Likewise.
398
399 2011-09-07  Richard Guenther  <rguenther@suse.de>
400
401         PR tree-optimization/50213
402         * tree-flow.h (simple_iv_increment_p): Declare.
403         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
404         POINTER_PLUS_EXPR.
405         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
406         not propagate simple IV counter increments.
407
408 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
409             Iain Sandoe  <iains@gcc.gnu.org>
410
411         * config/rs6000/rs6000.c (compute_save_world_info): Test
412         cfun->has_nonlocal_label to determine if the out-of-line save
413         world call may be used.
414
415 2011-09-07  Nick Clifton  <nickc@redhat.com>
416
417         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
418         label on the parallel part of the insn.
419
420 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
421
422         PR debug/50191
423         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
424         avoid_constant_pool_reference first instead of last.
425
426 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
427
428         * doc/configfiles.texi (Configuration Files): Update documentation
429         about tm_p.h and remove FIXME comment.
430
431 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
432
433         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
434         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
435
436 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
437
438         * config/darwin10.h Remove duplicate LIB_SPEC.
439
440 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
441
442         PR middle-end/44382
443         * target.def (reassociation_width): New hook.
444
445         * doc/tm.texi.in (reassociation_width): Likewise.
446
447         * doc/tm.texi (reassociation_width): Likewise.
448
449         * doc/invoke.texi (tree-reassoc-width): New param documented.
450
451         * hooks.h (hook_int_uint_mode_1): New default hook.
452
453         * hooks.c (hook_int_uint_mode_1): Likewise.
454
455         * config/i386/i386.h (ix86_tune_indices): Add
456         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
457
458         (TARGET_REASSOC_INT_TO_PARALLEL): New.
459         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
460
461         * config/i386/i386.c (initial_ix86_tune_features): Add
462         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
463
464         (ix86_reassociation_width): New function.
465
466         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
467
468         * tree-ssa-reassoc.c (get_required_cycles): New function.
469         (get_reassociation_width): Likewise.
470         (swap_ops_for_binary_stmt): Likewise.
471         (rewrite_expr_tree_parallel): Likewise.
472
473         (rewrite_expr_tree): Refactored.  Part of code moved into
474         swap_ops_for_binary_stmt.
475
476         (reassociate_bb): Now checks reassociation width to be used and
477         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
478
479 2011-09-06  Richard Guenther  <rguenther@suse.de>
480
481         PR tree-optimization/47025
482         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
483         uses nothing.
484         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
485         BUILT_IN_FREE.
486         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
487         definitely points to.
488         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
489         BUILT_IN_VA_START doesn't let its va_list argument escape.
490         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
491         not make any previous stores necessary.
492
493 2011-09-06  Martin Jambor  <mjambor@suse.cz>
494
495         * ipa-inline.h (struct inline_summary): Move versionable flag...
496         * cgraph.h (struct cgraph_local_info): ...here
497         * ipa-cp.c (determine_versionability): Use the new versionable flag.
498         (determine_versionability): Likewise.
499         (ipcp_versionable_function_p): Likewise.
500         (ipcp_generate_summary): Likewise.
501         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
502         versionable flag.
503         (compute_inline_parameters): Do not clear the versionable flag.
504         (inline_read_section): Do not stream the versionable flag.
505         (inline_write_summary): Likewise.
506         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
507         (input_overwrite_node): Likewise.
508
509 2011-09-06  Richard Guenther  <rguenther@suse.de>
510
511         PR tree-optimization/48149
512         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
513         (vn_valueize): Move earlier.
514         (valueize_expr): Use vn_valueize.
515         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
516         operands.
517         (simplify_unary_expression): Simplify.
518
519 2011-09-06  Richard Guenther  <rguenther@suse.de>
520
521         PR tree-optimization/48317
522         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
523         trailing array.
524         (sizeof_vn_nary_op): New inline function.
525         (vn_nary_op_lookup_pieces): Adjust.
526         (vn_nary_op_insert_pieces): Likewise.
527         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
528         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
529         any number of operands.
530         (vn_nary_length_from_stmt): New function.
531         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
532         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
533         sized temporary.
534         (vn_nary_op_lookup): Likewise.
535         (vn_nary_op_lookup_stmt): Likewise.
536         (vn_nary_op_insert_into): Likewise.
537         (vn_nary_op_insert_stmt): Likewise.
538         (visit_use): Handle CONSTRUCTOR as nary.
539         * tree-ssa-pre.c (phi_translate_1): Adjust.
540         (create_expression_by_pieces): Likewise.
541         (compute_avail): Likewise.
542
543 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
544
545          * config/arm/arm.c (arm_preferred_simd_mode): Check
546         TARGET_NEON_VECTORIZE_DOUBLE instead of
547         TARGET_NEON_VECTORIZE_QUAD.
548         (arm_autovectorize_vector_sizes): Likewise.
549         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
550         mask of mvectorize-with-neon-double.  Add RejectNegative.
551         (mvectorize-with-neon-double): New.
552
553 2011-09-06  Richard Guenther  <rguenther@suse.de>
554
555         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
556
557 2011-09-06  Tom de Vries  <tom@codesourcery.com>
558
559         * recog.c (asm_labels_ok): New function.
560         (check_asm_operands): Use asm_labels_ok.
561
562 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
563
564         PR target/49606
565         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
566         (PMODE_INSN): New macro.
567         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
568         (mips_got_load, mips_expand_synci_loop): Likewise.
569         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
570         cprestore patterns.
571         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
572         copygp_mips16 patterns.
573         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
574         and use_cprestore patterns.
575         (mips_override_options): Check for incompatible -mabi and -mlong
576         combinations.
577         * config/mips/mips.md (unspec_got<mode>): Rename to...
578         (unspec_got_<mode>): ...this.
579         (copygp_mips16): Use the Pmode iterator.
580         (potential_cprestore, cprestore, use_cprestore): Likewise.
581         (clear_cache, indirect_jump): Use PMODE_INSN.
582         (indirect_jump<mode>): Rename to...
583         (indirect_jump_<mode>): ...this.
584         (tablejump): Use PMODE_INSN.
585         (tablejump<mode>): Rename to...
586         (tablejump_<mode>): ...this.
587         (exception_receiver): Handle restore_gp_si and restore_gp_di.
588         (restore_gp): Use the Pmode iterator.
589         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
590         PMODE_INSN.
591
592 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
593
594         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
595         Fix the type of the BIT_AND_EXPR.
596
597 2011-09-05  David S. Miller  <davem@davemloft.net>
598
599         * config.host: Add driver-sparc.o and sparc/x-sparc on
600         native sparc*-*-linux* builds.
601         * config/sparc/driver-sparc.c: Correct Linux strings.
602         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
603         * config/sparc/linux64.h: Likewise.
604         * doc/invoke.texi: Document that Linux also supports
605         -mcpu=native and -mtune=native on sparc.
606
607         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
608         PROCESSOR_NIAGARA4): New.
609         * config/sparc/sparc.opt: Handle new processor types.
610         * config/sparc/sparc.md: Add to "cpu" attribute.
611         * config/sparc/sparc.h (TARGET_CPU_niagara3,
612         TARGET_CPU_niagara4): New, treat as niagara2.
613         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
614         * config/sparc/sol2.h: Likewise.
615         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
616         * config/sparc/sparc.c (sparc_option_override): Add
617         niagara3 and niagara4 handling.
618         (sparc32_initialize_trampoline): Likewise.
619         (sparc64_initialize_trampoline): Likewise.
620         (sparc_use_sched_lookahead): Likewise.
621         (sparc_issue_rate): Likewise.
622         (sparc_register_move_cost): Likewise.
623         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
624         and niagara4 as appropriate.
625         * doc/invoke.texi: Document new processor types.
626         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
627         and --with-tune options.
628
629         * config/sparc/sol2-64.h: Move ...
630         * config/sparc/default-64.h: ... to here.  Update comment.
631         * config.gcc: Update Solaris sparc to use default-64.h, also
632         prefix this header into the list on sparc64-*-linux.
633         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
634         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
635         to MASK_HARD_QUAD.
636
637 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
638
639         PR target/50289
640         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
641         that contain global register variable.
642
643 2011-09-05  Richard Guenther  <rguenther@suse.de>
644
645         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
646
647 2011-09-05  Richard Guenther  <rguenther@suse.de>
648
649         * stor-layout.c (layout_type): Use size_binop for array size
650         calculations.
651
652 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
653
654         * config/avr/avr.h (progmem_section): Remove Declaration.
655         * config/avr/avr.c (progmem_section): Make static and rename to
656         progmem_swtable_section.
657         (avr_output_addr_vec_elt): No need to switch sections.
658         (avr_asm_init_sections): Use output_section_asm_op as section
659         callback for progmem_swtable_section.
660         (avr_output_progmem_section_asm_op): Remove Function.
661         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
662         (avr_asm_function_rodata_section): New static Function.
663         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
664         alignment 2**1 for jump tables.
665
666 2011-09-04  Jan Hubicka  <jh@suse.cz>
667
668         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
669         parameter is SSA name.
670
671 2011-09-04  Richard Guenther  <rguenther@suse.de>
672
673         Revert
674         2011-08-31  Richard Guenther  <rguenther@suse.de>
675
676         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
677         special-casing.
678
679 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
680
681         PR debug/49901
682         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
683
684 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
685             Ira Rosen  <ira.rosen@linaro.org>
686
687         PR tree-optimization/50208
688         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
689         argument.  Check that def_stmt is inside the loop.
690         (vect_recog_widen_mult_pattern): Update calls to
691         vect_handle_widen_mult_by_cons.
692         (vect_operation_fits_smaller_type): Check that def_stmt is
693         inside the loop.
694
695 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
696
697         * tree-vectorizer.c (vect_print_dump_info): Print line
698         number when dumping to a file.
699         (vectorize_loops): Add new messages to dump file.
700
701 2011-09-03  Martin Jambor  <mjambor@suse.cz>
702
703         * ipa-prop.h (ipa_jump_func_t): New typedef.
704         (struct ipa_edge_args): Removed field argument_count, field
705         jump_functions turned into a vector.
706         (ipa_set_cs_argument_count): Removed.
707         (ipa_get_cs_argument_count): Updated to work on vectors.
708         (ipa_get_ith_jump_func): Likewise.
709         * ipa-prop.c (ipa_count_arguments): Removed.
710         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
711         jump functions.  Update caller.
712         (compute_pass_through_member_ptrs): Likewise.
713         (compute_cst_member_ptr_arguments): Likewise.
714         (ipa_compute_jump_functions_for_edge): Get number of arguments from
715         the statement, allocate vector.
716         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
717         (duplicate_ipa_jump_func_array): Removed.
718         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
719         (ipa_read_node_info): Allocate vector.
720
721 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
722
723         PR middle-end/50232
724         * config/pa/pa.md (return): Define "return" insn pattern.
725         (epilogue): Use it when no epilogue is needed.
726         * config/pa/pa.c (pa_can_use_return_insn): New function.
727         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
728
729 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
730
731         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
732         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
733         Force at least BITS_PER_UNIT alignment on the new variable.
734
735 2011-09-02  Gary Funck <gary@intrepid.com>
736
737         * opts.c (print_specific_help): Fix off-by-one compare in
738         assertion check.
739         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
740         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
741         Increase by +5 to allow for more languages.
742         * optc-gen.awk: Generate #if that ensures that the number of
743         languages is within the implementation-defined limit.
744
745 2011-09-02  Michael Matz  <matz@suse.de>
746
747         PR middle-end/50260
748         * ipa-split.c (split_function): Call add_referenced_var.
749
750         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
751         (cond_if_else_store_replacement_1): Ditto.
752         * tree-ssa-pre.c (get_representative_for): Ditto.
753         (create_expression_by_pieces): Ditto.
754         (insert_into_preds_of_block): Ditto.
755         * tree-sra.c (create_access_replacement): Ditto.
756         (get_replaced_param_substitute): Ditto.
757
758 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
759
760         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
761         automata_options.
762         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
763         (l1w, s1w, l2w, s2w): Define in the main automaton.
764         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
765         units.
766         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
767         (c6x_unit_names): Add the new units.
768         (c6x_unit_codes): New static array.
769         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
770         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
771         UNIT_QID_SIDE_OFFSET): New macros.
772         (RESERVATION_S2): Adjust value.
773         (c6x_option_override): Compute c6x_unit_codes.
774         (assign_reservations): Take the unit_mask of the last instruction
775         into account.  Detect floating point reservations by looking for
776         the new units.  Don't assign reservations if the field is already
777         nonzero.
778         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
779         (init_sched_state): Initialize it.
780         (c6x_clear_sched_context): Free it.
781         (insn_set_clock): Clear reservation.
782         (prev_cycle_state): New static variable.
783         (c6x_init_sched_context): Save it.
784         (c6x_sched_init): Allocate space for it and clear it.
785         (c6x_sched_dfa_pre_cycle_insn): New static function.
786         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
787         (c6x_variable_issue): Only record units in the unit_mask that
788         were not set at the start of the cycle.
789         (c6x_variable_issue): Compute and store the unit_mask from the
790         current state.
791         (reorg_split_calls): Ensure the new information remains correct.
792         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
793         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
794         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
795         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
796         Add special reservations.
797         * config/c6x/c6x-sched.md: Regenerate.
798
799 2011-09-02  Martin Jambor  <mjambor@suse.cz>
800
801         * ipa-prop.h (ipa_node_params): Removed fields
802         called_with_var_arguments and node_versionable.
803         (ipa_set_called_with_variable_arg): Removed.
804         (ipa_is_called_with_var_arguments): Likewise.
805         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
806         (determine_versionability): Do not check for type attributes and va
807         builtins.  Record versionability into inline summary.
808         (initialize_node_lattices): Do not check
809         ipa_is_called_with_var_arguments.
810         (propagate_constants_accross_call): Likewise, ignore arguments we do
811         not have PARM_DECLs for, set variable flag for parameters that were
812         not passed a value.
813         (create_specialized_node): Dump info that we cannot change signature.
814         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
815         number of arguments.
816         (ipa_make_edge_direct_to_target): Likewise.
817         (ipa_update_after_lto_read): Likewise.
818         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
819         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
820         they were remapped.
821
822 2011-09-02  Richard Guenther  <rguenther@suse.de>
823
824         PR tree-optimization/27460
825         PR middle-end/29269
826         * doc/md.texi (vcond): Document.
827         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
828         optab with two modes.
829         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
830         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
831         (vcond_optab): Adjust.
832         (vcondu_optab): Likewise.
833         (expand_vec_cond_expr_p): Adjust prototype.
834         * optabs.c (get_vcond_icode): Adjust.
835         (expand_vec_cond_expr_p): Likewise.
836         (expand_vec_cond_expr): Likewise.
837         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
838         vector type.
839         (vectorizable_condition): Allow differing types for comparison
840         and result.
841         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
842         for the comparison.
843         * config/i386/sse.md (vcond<mode>): Split to
844         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
845         vcond<V_128:mode><VI124_128:mode> and
846         vcondu<V_128:mode><VI124_128:mode>.
847         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
848         (vconduv2di): Likewise.
849         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
850         (vcondu<mode>): Likewise.
851         * config/ia64/vect.md (vcond<mode>): Likewise.
852         (vcondu<mode>): Likewise.
853         (vcondv2sf): Likewise.
854         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
855         * config/rs6000/paired.md (vcondv2sf): Likewise.
856         * config/rs6000/vector.md (vcond<mode>): Likewise.
857         (vcondu<mode>): Likewise.
858         * config/spu/spu.md (vcond<mode>): Likewise.
859         (vcondu<mode>): Likewise.
860
861 2011-09-02  Richard Guenther  <rguenther@suse.de>
862
863         * pretty-print.h (pp_unsigned_wide_integer): New.
864         * tree-pretty-print.c (dump_generic_node): Print unsigned
865         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
866
867 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
868
869         PR target/49987
870         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
871         valid CONST_VECTOR operands.
872         (rs6000_expand_vector_init): Likewise.
873
874 2011-09-02  Martin Jambor  <mjambor@suse.cz>
875
876         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
877         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
878         BINFO_VTABLE.  Parameter delta removed, all callers updated.
879         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
880         BINFO_VTABLE.
881         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
882         all calls.
883         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
884         handling of thunk_delta.
885         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
886         (devirtualization_time_bonus): Do not handle thunk deltas.
887         (ipcp_discover_new_direct_edges): Likewise.
888         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
889         (try_make_edge_direct_simple_call): Likewise.
890         (try_make_edge_direct_virtual_call): Likewise.
891         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
892         parameter set as unused.
893         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
894         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
895         parameter set as unused.
896         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
897         (input_edge_opt_summary): Likewise.
898         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
899         BINFO_VIRTUALS at all.
900         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
901
902 2011-09-02  Richard Guenther  <rguenther@suse.de>
903
904         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
905         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
906
907 2011-08-31  Richard Guenther  <rguenther@suse.de>
908
909         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
910         handling here, from ...
911         (expand_expr_real_1): ... here.
912         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
913         and VEC_COND_EXPR.
914         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
915         a GIMPLE_TERNARY_RHS.
916         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
917         and VEC_COND_EXPR here ...
918         (verify_gimple_assign_single): ... not here.
919         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
920         * tree-object-size.c (cond_expr_object_size): Adjust.
921         (collect_object_sizes_for): Likewise.
922         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
923         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
924         (ssa_forward_propagate_and_combine): Adjust.
925         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
926         as ternary.
927         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
928         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
929         * tree-vect-stmt.c (vectorizable_condition): Likewise.
930         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
931         (extract_range_from_assignment): Likewise.
932
933 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
934
935         * config/i386/i386.md: Use (match_test ...) for attribute tests.
936         * config/i386/mmx.md: Likewise.
937         * config/i386/sse.md: Likewise.
938         * config/i386/predicates.md (call_insn_operand): Use
939         (not (match_test "...")) instead of (match_test "!...")
940         * config/i386/constraints.md (w): Likewise.
941
942 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
943
944         * doc/md.texi: Describe the use of match_tests in attribute tests.
945         * rtl.def (MATCH_TEST): Update commentary.
946         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
947         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
948
949 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
950
951         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
952         (attr_string): Use copy_md_ptr_loc.
953
954 2011-08-31  Martin Jambor  <mjambor@suse.cz>
955
956         PR middle-end/49886
957         * ipa-inline-analysis.c (compute_inline_parameters): Set
958         can_change_signature of noes with typde attributes.
959         * ipa-split.c (split_function): Do not skip any arguments if
960         can_change_signature is set.
961
962 2011-08-31  Martin Jambor  <mjambor@suse.cz>
963
964         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
965         check removed.
966
967 2011-08-31  Richard Guenther  <rguenther@suse.de>
968
969         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
970         special-casing.
971
972 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
973
974         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
975
976 2011-08-31  Tom de Vries  <tom@codesourcery.com>
977
978         PR middle-end/43513
979         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
980         * tree-ssa-ccp.c (params.h): Include.
981         (fold_builtin_alloca_for_var): New function.
982         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
983
984 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
985
986         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
987         Handle FMA option.
988
989 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
990
991         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
992         b3 and b4 unsigned.
993
994 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
995
996         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
997         when code is SET.
998
999 2011-08-30  Richard Guenther  <rguenther@suse.de>
1000
1001         PR middle-end/48571
1002         * gimple.h (maybe_fold_offset_to_address): Remove.
1003         (maybe_fold_offset_to_reference): Likewise.
1004         (maybe_fold_stmt_addition): Likewise.
1005         (may_propagate_address_into_dereference): Likewise.
1006         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1007         array references.
1008         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1009         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1010         addresses instead.
1011         (may_propagate_address_into_dereference): Remove.
1012         (maybe_fold_offset_to_array_ref): Likewise.
1013         (maybe_fold_offset_to_reference): Likewise.
1014         (maybe_fold_offset_to_address): Likewise.
1015         (maybe_fold_stmt_addition): Likewise.
1016         (fold_gimple_assign): Do not reconstruct array references but
1017         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1018         MEM_REF addresses.
1019         (gimple_fold_stmt_to_constant_1): Likewise.
1020         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1021         * gimplify.c (gimplify_conversion): Likewise.
1022         (gimplify_expr): Likewise.
1023
1024 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
1025
1026         * config/i386/fmaintrin.h: New.
1027         * config.gcc: Add fmaintrin.h.
1028         * config/i386/i386.c
1029         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1030         <IX86_BUILTIN_VFMADDSD3>: Likewise.
1031         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1032         (*fmai_fmadd_<mode>): Likewise.
1033         (*fmai_fmsub_<mode>): Likewise.
1034         (*fmai_fnmadd_<mode>): Likewise.
1035         (*fmai_fnmsub_<mode>): Likewise.
1036         * config/i386/immintrin.h: Add fmaintrin.h.
1037
1038 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
1039
1040         * genautomata.c (NO_COMB_OPTION): New macro.
1041         (no_comb_flag): New static variable.
1042         (gen_automata_option): Handle NO_COMB_OPTION.
1043         (comb_vect_p): False if no_comb_flag.
1044         (add_vect): Move computation of min/max values.  Return early if
1045         no_comb_flag.
1046         * doc/md.texi (automata_option): Document no-comb-vect.
1047
1048         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1049         "__x86.get_pc_thunk".
1050
1051         * bb-reorder.c (insert_section_boundary_note): Only do it if
1052         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1053
1054 2011-08-30  Christian Bruel  <christian.bruel@st.com>
1055
1056         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1057         flag_profile_use.
1058
1059 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1060
1061         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1062         to off.  Document switch.
1063         * doc/invoke.texi (-msave-toc-indirect): Ditto.
1064
1065 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1066
1067         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1068         conditionals and comments inside macro arguments.
1069
1070 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1071             Richard Guenther  <rguenther@suse.de>
1072
1073         * tree.h (constant_boolean_node): Adjust prototype.
1074         * fold-const.c (fold_convert_loc): Move aggregate conversion
1075         leeway down.
1076         (constant_boolean_node): Make value parameter boolean, add
1077         vector type handling.
1078         (fold_unary_loc): Use constant_boolean_node.
1079         (fold_binary_loc): Preserve types properly when folding
1080         COMPLEX_EXPR <__real x, __imag x>.
1081         * gimplify.c (gimplify_expr): Handle vector comparison.
1082         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1083         comparison.
1084         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1085         comparisons.
1086
1087 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1088
1089         PR middle-end/48722
1090         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1091         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1092         (verify_rtl_sharing): Likewise and verify_rtx_sharing
1093         in there too.
1094         (unshare_all_rtl_in_chain): For CALL_INSNs
1095         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1096
1097 2011-08-29  Richard Guenther  <rguenther@suse.de>
1098
1099         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1100         on the built ADDR_EXPR.
1101
1102 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1103
1104         PR debug/50215
1105         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1106         before adding ENTRY_VALUE to val->locs.
1107
1108 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
1109
1110         PR bootstrap/50218
1111         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1112         comp.
1113
1114 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
1115
1116         * doc/rtl.texi (simple_return): Document.
1117         (parallel, PATTERN): Here too.
1118         * doc/md.texi (return): Mention it's allowed to expand to simple_return
1119         in some cases.
1120         (simple_return): Document standard pattern.
1121         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1122         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1123         * reorg.c (function_return_label, function_simple_return_label):
1124         New static variables, replacing...
1125         (end_of_function_label): ... this.
1126         (simplejump_or_return_p): New static function.
1127         (optimize_skip, steal_delay_list_from_fallthrough,
1128         fill_slots_from_thread): Use it.
1129         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
1130         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1131         (find_end_label): Take a new arg which is one of the two return
1132         rtxs.  Depending on which, set either function_return_label or
1133         function_simple_return_label.  All callers changed.
1134         (make_return_insns): Make both kinds.
1135         (dbr_schedule): Adjust for two kinds of end labels.
1136         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1137         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1138         (gen_expand, gen_split): Use ANY_RETURN_P.
1139         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1140         * rtl.def (SIMPLE_RETURN): New code.
1141         * ifcvt.c (find_if_case_1): Be more careful about
1142         redirecting jumps to the EXIT_BLOCK.
1143         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1144         returnjump_p_1): Handle SIMPLE_RETURNs.
1145         * print-rtl.c (print_rtx): Likewise.
1146         * rtl.c (copy_rtx): Likewise.
1147         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1148         * combine.c (simplify_set): Likewise.
1149         * resource.c (find_dead_or_set_registers, mark_set_resources):
1150         Likewise.
1151         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1152         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1153         (init_emit_regs): Initialize simple_return_rtx.
1154         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1155         force_nonfallthru_and_redirect.
1156         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1157         (GR_SIMPLE_RETURN): New enum value.
1158         (simple_return_rtx): New macro.
1159         * basic-block.h (force_nonfallthru_and_redirect): Adjust
1160         declaration.
1161         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1162         argument.  All callers changed.  Be careful about what kinds of
1163         returnjumps to generate.
1164         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1165         ix86_pad_short_function): Likewise.
1166         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1167         of return.
1168         * config/mips/mips.md (any_return): New code_iterator.
1169         (optab): Add cases for return and simple_return.
1170         (return): Expand to a simple_return.
1171         (simple_return): New pattern.
1172         (*<optab>, *<optab>_internal for any_return): New patterns.
1173         (return_internal): Remove.
1174         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1175         a simple_return_internal.
1176
1177 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1178
1179         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1180         (vec_extract_lo_<mode>): Prevent both operands in memory.
1181         (vec_extract_lo_v16hi): Ditto.
1182         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1183
1184 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1185
1186         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1187         (*sse2_mulv4si3): Ditto.
1188         (mulv2di3): Ditto.
1189         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1190         notes to REG_EQUAL.
1191
1192 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1193
1194         PR target/50202
1195         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1196         when all outputs are unused.
1197         (sse4_2_pcmpistr): Ditto.
1198
1199 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1200
1201         * config/i386/i386.md (round<mode>2): New expander.
1202         * config/i386/i386.c (enum ix86_builtins): Add
1203         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1204         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1205         descriptions.
1206         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1207         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1208
1209 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1210
1211         PR middle-end/50083
1212         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1213         only when TARGET_C99_FUNCTIONS.
1214         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1215         <BUILT_IN_RINT{,F,L}>: Ditto.
1216
1217 2011-08-26  Michael Matz  <matz@suse.de>
1218             Jakub Jelinek  <jakub@redhat.com>
1219
1220         PR lto/50165
1221         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1222         don't call strlen twice, use memcpy.
1223
1224 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1225
1226         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1227         * config/i386/bmiintrin.h: Likewise.
1228         * config/i386/lzcntintrin.h: Likewise.
1229
1230         * config/i386/immintrin.h: Include <lzcntintrin.h>,
1231         <bmiintrin.h> and <bmi2intrin.h>.
1232
1233 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1234
1235         PR target/50166
1236         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1237         * configure: Regenerate.
1238
1239 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1240
1241         PR c/50179
1242         * c-typeck.c (c_process_expr_stmt): Skip over nops and
1243         call mark_exp_read even if exprv is ADDR_EXPR.
1244
1245 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
1246
1247         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1248         to df_set_dead_notes_for_mw.
1249
1250 2011-08-26  Richard Guenther  <rguenther@suse.de>
1251
1252         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1253
1254 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
1255             Tom de Vries  <tom@codesourcery.com>
1256
1257         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1258         (struct ivopts_data): Add loop_single_exit_p field.
1259         (niter_for_exit): Change parameter desc_p into return value.  Return
1260         desc if desc->may_be_zero.  Free desc if unused.
1261         (niter_for_single_dom_exit): Change return type.
1262         (find_induction_variables): Handle changed return type of
1263         niter_for_single_dom_exit.  Dump may_be_zero.
1264         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1265         (set_use_iv_cost): Add and handle comp parameter.
1266         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1267         comp argument to set_use_iv_cost.
1268         (strip_wrap_conserving_type_conversions, expr_equal_p)
1269         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1270         (may_eliminate_iv): Add comp parameter.  Handle new return type of
1271         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
1272         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1273         and may_eliminate_iv.
1274         (rewrite_use_compare): Move call to iv_elimination_compare to ...
1275         (may_eliminate_iv): Here.
1276         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1277
1278 2011-08-26  Tom de Vries  <tom@codesourcery.com>
1279
1280         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1281         accessing TREE_TYPE.
1282
1283 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
1284
1285         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1286         (*ior_scc_scc_cmp): Likewise
1287         (*and_scc_scc): Likewise.
1288         (*and_scc_scc_cmp): Likewise.
1289         (*and_scc_scc_nodom): Likewise.
1290         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1291
1292 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1293
1294         * rtlanal.c (nonzero_bits1): Handle CLRSB.
1295
1296 2011-08-26  Richard Guenther  <rguenther@suse.de>
1297
1298         * expr.c (string_constant): Handle &MEM_REF.
1299
1300 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1301
1302         * config/arm/arm.c (struct four_ints): New type.
1303         (count_insns_for_constant): Delete function.
1304         (find_best_start): Delete function.
1305         (optimal_immediate_sequence): New function.
1306         (optimal_immediate_sequence_1): New function.
1307         (arm_gen_constant): Move constant splitting code to
1308         optimal_immediate_sequence.
1309         Rewrite constant negation/invertion code.
1310
1311 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1312
1313         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1314         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1315         Remove prototype. Remove static function type.
1316         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1317         Add arch attribute.
1318         * config/arm/constraints.md (Pj, PJ): New constraints.
1319
1320 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1321
1322         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1323         ("cortex_a9_multiply_long"): New and use above.  Handle all
1324         long multiply cases.
1325         ("cortex_a9_multiply"): Handle smmul and smmulr.
1326         ("cortex_a9_mac"): Handle smmla.
1327
1328 2011-08-25  Richard Henderson  <rth@redhat.com>
1329
1330         PR 50132
1331         PR 49864
1332         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1333         non-constant stack adjutment.
1334         * expr.c (find_args_size_adjust): Break out from ...
1335         (fixup_args_size_notes): ... here.
1336         * rtl.h (find_args_size_adjust): Declare.
1337
1338 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
1339
1340         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1341         sse4 and sse4_noavx.
1342         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1343         (*pushdf_rex64): Change Y2 register constraint to x.
1344         (*movdf_internal_rex64): Ditto.
1345         (*zero_extendsidi2_rex64): Ditto.
1346         (*movdi_internal): Change Y2 register constraint to x
1347         and update "isa" attribute.
1348         (*pushdf): Ditto.
1349         (*movdf internal): Ditto.
1350         (zero_extendsidi2_1): Ditto.
1351         (*truncdfdf_mixed): Ditto.
1352         (*truncxfdf2_mixed): Ditto.
1353         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1354         register constraint to x.
1355         (*movv2sf_internal_rex64): Ditto.
1356         (*mov<mode>_internal): Change Y2 register constraint to x
1357         and add "isa" attribute.
1358         (*movv2sf_internal): Ditto.
1359         (*vec_extractv2si_1): Ditto.
1360         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1361         constraints to x and update "isa" attribute.
1362         (*vec_interleave_highv2df): Change Y3 registerconstraint
1363         to x and update "isa" attribute.
1364         (*vec_interleave_lowv2df): Ditto.
1365         (*vec_concatv2df): Change Y2 register constraint to x and
1366         update "isa" attribute.
1367         (sse2_loadld): Ditto.
1368         (*vec_extractv2di_1): Ditto.
1369         (*vec_dupv4si): Ditto.
1370         (*vec_dupv2di): Ditto.
1371         (*vec_concatv4si): Ditto.
1372         (vec_concatv2di): Ditto.
1373         * config/i386/constraints.md (Y2): Remove.
1374         (Y3): Ditto.
1375         (Y4): Ditto.
1376
1377 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1378
1379         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1380         dump_def_use_chain): Don't declare.
1381         (mark_conflict, create_new_chain): Move before users.
1382         (regrename_optimize): Move to near end of file.
1383
1384 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1385
1386         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1387         (secondary_input_reload_class): Remove Prototype.
1388         * config/avr/avr.c (byte_immediate_operand): Remove Function.
1389         * config/avr/avr.md (setmemhi): Use u8_operand.
1390         (strlenhi): Use const0_rtx for comparison.
1391         * config/avr/avr.h (avr_reg_order): Remove Declaration.
1392
1393 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1394
1395         * config/avr/avr.c (reg_class_tab): Make local to
1396         avr_regno_reg_class.  Return smallest register class available.
1397
1398 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1399
1400         * config/avr/avr.c (STR_PREFIX_P): New Define.
1401         (avr_asm_declare_function_name): Use it.
1402         (avr_asm_named_section): Use it.
1403         (avr_section_type_flags): Use it.
1404
1405 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1406
1407         * doc/md.texi (automata_option): Document collapse-ndfa.
1408         * genautomata.c (COLLAPSE_OPTION): New macro.
1409         (collapse_flag): New static variable.
1410         (struct description): New member normal_decls_num.
1411         (struct automaton): New members advance_ainsn and collapse_ainsn.
1412         (gen_automata_option): Check for COLLAPSE_OPTION.
1413         (collapse_ndfa_insn_decl): New static variable.
1414         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1415         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1416         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1417         necessary.  Use normal_decls_num rather than decls_num, remove
1418         test for special decls.
1419         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1420         (make_automaton); Likewise.  Use the new advance_cycle_insn member
1421         of struct automaton.
1422         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1423         is set.
1424         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1425         transition.  Create the necessary transitions for it.
1426         (create_ainsns): Return void.  Take an automaton_t argument, and
1427         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
1428         callers changed.
1429         (COLLAPSE_NDFA_VALUE_NAME): New macro.
1430         (output_tables): Output code to define it.
1431         (output_internal_insn_code_evaluation): Output code to accept
1432         const0_rtx as collapse-ndfa transition.
1433         (output_default_latencies, output_print_reservation_func,
1434         output_print_description): Reorganize loops to use normal_decls_num
1435         as loop bound; remove special case for advance_cycle_insn_decl.
1436         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1437         (check_automata_insn_issues): Check for collapse_ainsn.
1438         (expand_automate): Allocate sufficient space.  Initialize
1439         normal_decls_num.
1440
1441 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1442
1443         * config/avr/avr.md: Fix indentation from r177991.
1444
1445 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1446
1447         * regrename.c (struct du_head): Remove member terminated.
1448         (create_new_chain): Don't initialize it.
1449         (scan_rtx_reg): Don't set or test it, test the open_chains_set
1450         bitmap instead.
1451         (tick, this_tick): New global variables, moved out of
1452         regrename_optimize.
1453         (current_id, open_chains, closed_chains, open_chains_set,
1454         live_in_chains, live_hard_regs): Reorder declarations.
1455         (dump_def_use_chain): Move function earlier in the file.
1456         (rename_chains): New static function, broken out of
1457         regrename_optimize.
1458         (regrename_optimize): Use it.  Remove #if 0'ed code.
1459
1460 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1461
1462         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1463
1464 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1465
1466         PR target/50172
1467         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1468
1469 2011-08-24  Richard Guenther  <rguenther@suse.de>
1470
1471         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1472         ref in the basic-block case.  Move stripping array-refs
1473         to the place we create an access-function for it.  Remove
1474         bogus stripping down a MEM_REF to its base.
1475
1476 2011-08-24  Richard Guenther  <rguenther@suse.de>
1477
1478         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1479         with -fno-strict-overflow.
1480
1481 2011-08-24  Richard Guenther  <rguenther@suse.de>
1482
1483         * tree-vectorizer.c (vect_print_dump_info): Avoid the
1484         file and location clutter when dumping to dump files.
1485
1486 2011-08-24  Simon Baldwin  <simonb@google.com>
1487
1488         * gengtype-state.c (write_state): Remove timestamped header line.
1489
1490 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1491
1492         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1493         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1494         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1495         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1496         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1497         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1498         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1499         rules.
1500         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1501
1502 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1503
1504         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1505
1506 2011-08-24  Richard Guenther  <rguenther@suse.de>
1507
1508         PR tree-optimization/50067
1509         * tree-data-ref.c (dr_analyze_indices): Do not add an access
1510         function for a MEM_REF base that has no evolution in the loop
1511         nest or that is not analyzable.
1512
1513 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
1514
1515         * ira.c (ira_init_register_move_cost): Check small subclasses
1516         through ira_reg_class_max_nregs and ira_available_class_regs.
1517
1518 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1519
1520         * config/i386/constraints.md (Yp): New register constraint.
1521         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1522         Yp register constraint.
1523         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1524         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1525         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1526
1527 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1528
1529         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1530
1531 2011-08-23  Mark Heffernan  <meheff@google.com>
1532
1533         PR middle-end/38509
1534         * common.opt (Wfree-nonheap-object): New option.
1535         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1536         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1537         to warning.
1538         (expand_builtin): Make warning conditional.
1539
1540 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1541
1542         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1543         (length_immediate): Handle imulx, ishiftx and rotatex.
1544         (imm_disp): Ditto.
1545         (isa): Add bmi2.
1546         (enabled): Handle bmi2.
1547         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1548         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
1549         (*bmi2_umulditi3_1): New insn pattern.
1550         (*bmi2_umulsidi3_1): Ditto.
1551         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1552         (*bmi2_ashl<mode>3_1): New insn pattern.
1553         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1554         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1555         (*bmi2_ashlsi3_1_zext): New insn pattern.
1556         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1557         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1558         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1559         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1560         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1561         flags dependency.
1562         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1563         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1564         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1565         flags dependency.
1566         (*bmi2_rorx<mode>3_1): New insn pattern.
1567         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1568         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1569         (*rotatert<mode>3_1 splitter): Ditto.
1570         (*bmi2_rorxsi3_1_zext): New insn pattern.
1571         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1572         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1573         (*rotatertsi3_1_zext splitter): Ditto.
1574
1575 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1576
1577         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1578         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1579         (ix86_handle_option): Handle OPT_mbmi2 case.
1580         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1581         (x86_64-*-*): Likewise.
1582         * config/i386/bmi2intrin.h: New file.
1583         * config/i386/cpuid.h (bit_BMI2): New.
1584         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1585         BMI2 feature.
1586         * config/i386/i386-c.c (ix86_target_macros_internal):
1587         Conditionally define __BMI2__.
1588         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1589         Handle BMI2 option.
1590         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1591         (print_reg): New code.
1592         (ix86_print_operand): Likewise.
1593         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1594         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1595         IX86_BUILTIN_PEXT64.
1596         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1597         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1598         IX86_BUILTIN_PEXT64.
1599         * config/i386/i386.h (TARGET_BMI2): New.
1600         * config/i386/i386.md (UNSPEC_PDEP): New.
1601         (UNSPEC_PEXT): Likewise.
1602         (*bmi2_bzhi_<mode>3): Likewise.
1603         (*bmi2_pdep_<mode>3): Likewise.
1604         (*bmi2_pext_<mode>3): Likewise.
1605         * config/i386/i386.opt (mbmi2): New.
1606         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1607         is defined.
1608         * doc/extend.texi: Document BMI2 built-in functions.
1609         * doc/invoke.texi: Document -mbmi2.
1610
1611 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
1612
1613         PR middle-end/50161
1614         * simplify-rtx.c (simplify_const_unary_operation): If
1615         op is CONST_INT, don't look at op_mode, but use instead mode.
1616         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1617         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1618         operation and TRUNCATE/ZERO_EXTEND if needed.
1619         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1620         Document that operand mode must be same as operation mode,
1621         or VOIDmode.
1622         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1623         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1624         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1625         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1626         use the mode of operand for the operation and add truncate
1627         or zero_extend around if needed.
1628         * config/c6x/c6x.md (ctzdi2): Likewise.
1629         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1630
1631 2011-08-12  Michael Matz  <matz@suse.de>
1632
1633         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1634         (gimple_expand_cfg): Merge alignment info for coalesced pointer
1635         SSA names.
1636
1637 2011-08-23  Richard Guenther  <rguenther@suse.de>
1638
1639         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1640         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1641         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1642         from ...
1643         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1644         (mem_refs_may_alias_p): Adjust.
1645         * tree-data-ref.h (dr_may_alias_p): Adjust.
1646         * tree-data-ref.c: Include tree-affine.h.
1647         (dr_analyze_indices): Do nothing for the non-loop case.
1648         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1649         more cases in the non-loop case.
1650         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1651         calls to dr_may_alias_p.
1652         (write_alias_graph_to_ascii_ecc): Likewise.
1653         (write_alias_graph_to_ascii_dot): Likewise.
1654         (build_alias_set_optimal_p): Likewise.
1655
1656 2011-08-23  Richard Guenther  <rguenther@suse.de>
1657
1658         PR tree-optimization/50162
1659         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1660
1661 2011-08-23  Richard Guenther  <rguenther@suse.de>
1662
1663         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1664         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1665         (create_data_ref): Also dump access functions for the created data-ref.
1666
1667 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1668             Kirill Yukhin  <kirill.yukhin@intel.com>
1669
1670         PR target/50155
1671         * config/i386/sse.md (VI_AVX2): New.
1672         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1673         (*<plusminus_insn><mode>3): Ditto.
1674         (<sse2_avx2>_andnot<mode>3): Ditto.
1675         (*andnot<mode>3): Fix order of cond operands.
1676         Add asserts for correct TARGET_xxx.
1677         (*<any_logic:code><mode>3): Ditto.
1678
1679 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1680
1681         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1682         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1683         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1684         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1685         and return types to unsigned char. Use reg_class_contents instead
1686         of class_contents.
1687         (TARGET_CLASS_MAX_NREGS): Define.
1688
1689 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1690
1691         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1692         to make computed_jump_p return true.
1693
1694 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1695
1696         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1697         (PICFLAG_FOR_TARGET): Substitute.
1698         * aclocal.m4: Regenerate.
1699         * configure: Regenerate.
1700
1701 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1702
1703         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1704         after reading in the pch.
1705
1706 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1707
1708         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1709         * configure: Regenerated.
1710
1711 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1712
1713         PR tree-optimization/50133
1714         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1715         from stmt instead of some statement around gsi.
1716
1717         PR middle-end/50141
1718         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1719         innerdecl is a VAR_DECL.
1720
1721 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1722
1723         * config/i386/avx2intrin.h: New file.
1724         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1725         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1726         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1727         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1728         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1729         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1730         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1731         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1732         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1733         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1734         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1735         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1736         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1737         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1738         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1739         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1740         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1741         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1742         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1743         VOID_FTYPE_PV8SI_V8SI_V8SI,
1744         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1745         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1746         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1747         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1748         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1749         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1750         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1751         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1752         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1753         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1754         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1755         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1756         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1757         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1758         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1759         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1760         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1761         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1762         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1763         V4DI_FTYPE_V4DI_INT_CONVERT,
1764         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1765         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1766         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1767         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1768         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1769         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1770         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1771         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1772         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1773         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1774         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1775         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1776         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1777         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1778         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1779         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1780         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1781         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1782         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1783         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1784         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1785         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1786         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1787         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1788         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1789         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1790         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1791         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1792         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1793         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1794         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1795         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1796         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1797         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1798         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1799         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1800         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1801         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1802         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1803         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1804         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1805         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1806         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1807         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1808         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1809         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1810         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1811         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1812         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1813         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1814         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1815         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1816         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1817         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1818         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1819         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1820         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1821         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1822         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1823         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1824         IX86_BUILTIN_VBROADCASTSS_PS256,
1825         IX86_BUILTIN_VBROADCASTSD_PD256,
1826         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1827         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1828         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1829         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1830         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1831         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1832         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1833         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1834         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1835         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1836         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1837         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1838         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1839         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1840         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1841         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1842         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1843         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1844         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1845         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1846         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1847         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1848         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1849         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1850         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1851         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1852         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1853         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1854         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1855         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1856         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1857         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1858         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1859         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1860         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1861         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1862         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1863         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1864         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1865         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1866         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1867         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1868         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1869         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1870         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1871         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1872         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1873         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1874         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1875         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1876         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1877         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1878         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1879         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1880         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1881         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1882         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1883         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1884         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1885         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1886         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1887         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1888         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1889         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1890         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1891         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1892         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1893         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1894         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1895         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1896         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1897         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1898         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1899         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1900         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1901         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1902         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1903         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1904         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1905         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1906         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1907         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1908         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1909         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1910         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1911         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1912         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1913         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1914         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1915         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1916         IX86_BUILTIN_VBROADCASTSD_PD256,
1917         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1918         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1919         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1920         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1921         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1922         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1923         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1924         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1925         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1926         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1927         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1928         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1929         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1930         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1931         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1932         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1933         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1934         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1935         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1936         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1937         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1938         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1939         IX86_BUILTIN_GATHERDIV8SI.
1940         (ix86_preferred_simd_mode): Support AVX2 modes.
1941         (ix86_expand_args_builtin): Support AVX2 builtins.
1942         (ix86_expand_special_args_builtin): Likewise.
1943         (ix86_expand_builtin): Likewise.
1944         * config/i386/i386.md (UNSPEC_VPERMSI): New.
1945         (UNSPEC_VPERMDF): Likewise.
1946         (UNSPEC_VPERMSF): Likewise.
1947         (UNSPEC_VPERMDI): Likewise.
1948         (UNSPEC_VPERMTI): Likewise.
1949         (UNSPEC_GATHER): Likewise.
1950         (ssemodesuffix): Extend.
1951         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1952         is defined.
1953         * config/i386/predicates.md (const1248_operand): New.
1954         * config/i386/sse.md (VI1_AVX2): New mode iterator.
1955         (VI2_AVX2): Likewise.
1956         (VI4_AVX2): Likewise.
1957         (VI8_AVX2): Likewise.
1958         (VIMAX_AVX2): Likewise.
1959         (SSESCALARMODE): Likewise.
1960         (VI12_AVX2): Likewise.
1961         (VI24_AVX2): Likewise.
1962         (VI124_AVX2): Likewise.
1963         (VI248_AVX2): Likewise.
1964         (VI48_AVX2): Likewise.
1965         (VI4SD_AVX2): Likewise.
1966         (V48_AVX2): Likewise.
1967         (AVX256MODE2P): Likewise.
1968         (AVXMODE48P_DI): Likewise.
1969         (sse2_avx2): New mode attribute.
1970         (ssse3_avx2): Likewise.
1971         (sse4_1_avx2): Likewise.
1972         (avx_avx2): Likewise.
1973         (ssebytemode): Likewise.
1974         (AVXTOSSEMODE): Likewise.
1975         (AVXMODE48P_DI): Likewise.
1976         (gthrfirstp): Likewise.
1977         (gthrlastp): Likewise.
1978         (lshift): New code_iterator
1979         (lshift): New code attribute.
1980         (lshift): Likewise.
1981         (ssescalarmodesuffix): Update.
1982         (sseunpackmode): Likewise.
1983         (ssepackmode): Likewise.
1984         (avx2_vec_dupv4sf): New insn pattern.
1985         (avx2_vec_dupv8sf): Likewise.
1986         (avx2_interleave_highv4di): Likewise.
1987         (avx2_interleave_lowv4di): Likewise.
1988         (avx2_umulv4siv4di3): Likewise
1989         (*avx2_umulv4siv4di3): Likewise
1990         (avx2_pmaddwd): Likewise.
1991         (*avx2_pmaddwd): Likewise.
1992         (avx2_lshrqv4di3): Likewise.
1993         (avx2_lshlqv4di3): Likewise.
1994         (avx2_lshl<mode>3): Likewise.
1995         (avx2_<umaxmin:code><mode>3): Likewise.
1996         (*avx2_<umaxmin:code><mode>3): Likewise.
1997         (avx2_<smaxmin:code><mode>3): Likewise.
1998         (*avx2_<smaxmin:code><mode>3): Likewise.
1999         (avx2_eq<mode>3): Likewise.
2000         (*avx2_eq<mode>3): Likewise.
2001         (avx2_gt<mode>3): Likewise.
2002         (avx2_interleave_highv32qi): New.
2003         (avx2_interleave_lowv32qi): Likewise.
2004         (avx2_interleave_highv16hi): Likewise.
2005         (avx2_interleave_lowv16hi): Likewise.
2006         (avx2_interleave_highv8si): Likewise.
2007         (avx2_interleave_lowv8si): Likewise.
2008         (avx2_pshufd): Likewise.
2009         (avx2_pshufd_1): Likewise.
2010         (avx2_pshuflwv3): Likewise.
2011         (avx2_pshuflw_1): Likewise.
2012         (avx2_pshufhwv3): Likewise.
2013         (avx2_pshufhw_1): Likewise.
2014         (avx2_uavgv32qi3): Likewise.
2015         (*avx2_uavgv32qi3): Likewise.
2016         (avx2_uavgv16hi3): Likewise.
2017         (*avx2_uavgv16hi3): Likewise.
2018         (avx2_pmovmskb): Likewise.
2019         (avx2_phaddwv16hi3): Likewise.
2020         (avx2_phadddv8si3): Likewise.
2021         (avx2_phaddswv16hi3): Likewise.
2022         (avx2_phsubwv16hi3): Likewise.
2023         (avx2_phsubdv8si3): Likewise.
2024         (avx2_phsubswv16hi3): Likewise.
2025         (avx2_pmaddubsw256): Likewise.
2026         (avx2_umulhrswv16hi3): Likewise.
2027         (*avx2_umulhrswv16hi3): Likewise.
2028         (avx2_packusdw): Likewise.
2029         (avx2_pblendd<mode>): Likewise.
2030         (avx2_<code>v16qiv16hi2): Likewise.
2031         (avx2_<code>v8qiv8si2): Likewise.
2032         (avx2_<code>v8hiv8si2): Likewise.
2033         (avx2_<code>v4qiv4di2): Likewise.
2034         (avx2_<code>v4hiv4di2): Likewise.
2035         (avx2_<code>v4siv4di2): Likewise.
2036         (avx2_pbroadcast<mode>): Likewise.
2037         (avx2_permvarv8si): Likewise.
2038         (avx2_permv4df): Likewise.
2039         (avx2_permvarv8sf): Likewise.
2040         (avx2_permv4di): Likewise.
2041         (avx2_permv2ti): Likewise.
2042         (avx2_vec_dupv4df): Likewise.
2043         (avx2_vbroadcasti128_<mode>): Likewise.
2044         (avx2_vec_set_lo_v4di): Likewise.
2045         (avx2_vec_set_hi_v4di): Likewise.
2046         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2047         (avx2_extracti128): Likewise.
2048         (avx2_inserti128): Likewise.
2049         (avx2_ashrvv8si): Likewise.
2050         (avx2_ashrvv4si): Likewise.
2051         (avx2_<lshift>vv8si): Likewise.
2052         (avx2_<lshift>v<mode>): Likewise.
2053         (avx2_<lshift>vv2di): Likewise.
2054         (avx2_gathersi<mode>): Likewise.
2055         (*avx2_gathersi<mode>): Likewise.
2056         (avx2_gatherdi<mode>): Likewise.
2057         (*avx2_gatherdi<mode>): Likewise.
2058         (avx2_gatherdi<mode>256): Likewise.
2059         (*avx2_gatherdi<mode>256): Likewise.
2060         (<plusminus_insn><mode>3): Use VI mode iterator.
2061         (*<plusminus_insn><mode>3): Use VI mode iterator.
2062         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2063         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2064         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2065         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2066         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
2067         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
2068         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2069         Use VI2_AVX2 mode iterator.
2070         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2071         Use VI2_AVX2 mode iterator.
2072         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
2073         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
2074         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2075         Use VI4_AVX2 mode iterator.
2076         (ashr<mode>3): Use VI24_AVX2 mode iterator.
2077         (lshr<mode>3): Use VI248_AVX2 mode iterator.
2078         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2079         Use VIMAX_AVX2 mode iterator.
2080         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2081         Use VI mode iterator.
2082         (*andnot<mode>3): Update for AVX2.
2083         (*<any_logic:code><mode>3): Likewise.
2084         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2085         Use VI1_AVX mode iterator.
2086         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
2087         Use VI2_AVX mode iterator.
2088         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2089         Use VI1_AVX mode iterator.
2090         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2091         Use VI8_AVX2 mode iterator.
2092         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2093         Use VI1_AVX2 mode iterator.
2094         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2095         Use VI124_AVX2 mode iterator.
2096         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2097         Use SSESCALARMODE mode iterator.
2098         (abs<mode>2): Use VI124_AVX2 mode iterator.
2099         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2100         Use VI8_AVX2 mode iterator.
2101         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2102         Use VI1_AVX2 mode iterator.
2103         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2104         Use VI1_AVX2 mode iterator.
2105         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2106         Use VI2_AVX2 mode iterator.
2107         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2108         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2109         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2110         avx_maskstore<ssemodesuffix><avxsizesuffix>.
2111         Use V48_AVX2 mode iterator.
2112         * doc/extend.texi: Document AVX2 built-in functions.
2113         * doc/invoke.texi: Document -mavx2.
2114
2115 2011-08-22  Matthias Klose <doko@debian.org>
2116
2117         Revert:
2118         2011-07-11  Arthur Loiret  <aloiret@debian.org>
2119                     Matthias Klose <doko@debian.org>
2120         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2121         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2122         convention.
2123         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2124
2125 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
2126
2127         PR bootstrap/50146
2128         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2129         to #ifndef HONOR_REG_ALLOC_ORDER block.
2130
2131 2011-08-21  Richard Henderson  <rth@redhat.com>
2132
2133         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2134         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2135         * resource.c (next_insn_no_annul): Likewise.
2136         (mark_set_resources): Likewise.
2137         * reorg.c (delete_from_delay_slot): Likewise.
2138         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2139         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2140
2141 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
2142
2143         * config/i386/i386.md (any_div): Remove.
2144         (sgnprefix): Update for removal.
2145         (u): Ditto.
2146
2147 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
2148
2149         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2150         for ira_reg_class_max_nregs.  Increase pressure by 1.
2151         (mark_pseudo_regno_subword_dead): Use allocno class
2152         for ira_reg_class_max_nregs.
2153
2154 2011-08-20  Richard Henderson  <rth@redhat.com>
2155
2156         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2157         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2158         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2159         config/c6x/ltf.c: Adjust include path for soft-fp.
2160
2161 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2162
2163         PR other/46770
2164         * config.gcc (tm_file): Add initfini-array.h if
2165         .init_arrary/.fini_array are supported.
2166
2167         * crtstuff.c: Don't generate .ctors nor .dtors sections if
2168         USE_INITFINI_ARRAY is defined.
2169
2170         * output.h (default_elf_init_array_asm_out_constructor): New.
2171         (default_elf_fini_array_asm_out_destructor): Likewise.
2172         * varasm.c (elf_init_array_section): Likewise.
2173         (elf_fini_array_section): Likewise.
2174         (get_elf_initfini_array_priority_section): Likewise.
2175         (default_elf_init_array_asm_out_constructor): Likewise.
2176         (default_elf_fini_array_asm_out_destructor): Likewise.
2177
2178         * config/initfini-array.h: New.
2179
2180 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2181
2182         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2183         OK for ST_REGS and FP_REGS before taking those classes into account.
2184
2185 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2186
2187         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2188         before checking for annulled branches.
2189
2190 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2191
2192         * config/i386/i386.c (ix86_binary_operator_ok): Use
2193         satisfies_constraint_L.
2194
2195 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2196             Michael Matz  <matz@suse.de>
2197
2198         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2199         trunc (a + copysign (nextafter (0.5, 0.0), a)).
2200
2201 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
2202
2203         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2204         * doc/tm.texi: Regenerate.
2205         * targhooks.c (default_preferred_output_reload_class): Don't use
2206         PREFERRED_OUTPUT_RELOAD_CLASS macro.
2207         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2208
2209 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
2210
2211         PR tree-optimization/48739
2212         * tree-ssa.c: Include cfgloop.h.
2213         (execute_update_addresses_taken): When updating ssa, if in loop closed
2214         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2215         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2216
2217 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
2218
2219         PR rtl-optimization/49936
2220         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2221         for calculation of max register move costs.
2222
2223 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2224
2225         * c-parser.c (c_parser_postfix_expression): Convert operands of
2226         __builtin_complex to their semantic types.
2227
2228 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2229
2230         PR middle-end/49721
2231         * explow.c (convert_memory_address_addr_space): Also permute the
2232         conversion and addition of constant for zero-extend.
2233
2234 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2235
2236         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2237         * doc/extend.texi (__builtin_complex): Document.
2238
2239 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2240
2241         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2242         beyond conversions.
2243         (convert_mult_to_widen): Convert constant inputs to the right type.
2244         (convert_plusminus_to_widen): Don't automatically reject inputs that
2245         are not an SSA_NAME.
2246         Convert constant inputs to the right type.
2247
2248 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2249
2250         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2251         to the correct type.
2252
2253 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2254
2255         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2256         unsigned inputs of different modes.
2257         (convert_plusminus_to_widen): Likewise.
2258
2259 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2260
2261         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2262         'type'.
2263         Use 'type' from caller, not inferred from 'rhs'.
2264         Don't reject non-conversion statements. Do return lhs in this case.
2265         (is_widening_mult_p): Add new argument 'type'.
2266         Use 'type' from caller, not inferred from 'stmt'.
2267         Pass type to is_widening_mult_rhs_p.
2268         (convert_mult_to_widen): Pass type to is_widening_mult_p.
2269         (convert_plusminus_to_widen): Likewise.
2270
2271 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2272
2273         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2274         Ensure the the larger type is the first operand.
2275
2276 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2277
2278         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2279         unsupported unsigned multiplies to signed.
2280         (convert_plusminus_to_widen): Likewise.
2281
2282 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2283
2284         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2285         conversion statement separating multiply-and-accumulate.
2286
2287 2011-08-19  Richard Guenther  <rguenther@suse.de>
2288
2289         PR tree-optimization/50067
2290         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2291         offset only if we accounted for it.
2292
2293 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2294
2295         * config/arm/arm.md (maddhidi4): Remove '*' from name.
2296         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2297         * optabs.c (find_widening_optab_handler_and_mode): New function.
2298         (expand_widen_pattern_expr): Use find_widening_optab_handler.
2299         (expand_binop_directly): Likewise.
2300         (expand_binop): Likewise.
2301         * optabs.h (find_widening_optab_handler): New macro define.
2302         (find_widening_optab_handler_and_mode): New prototype.
2303         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2304         type precision rules.
2305         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2306         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2307         (is_widening_mult_rhs_p): Allow widening by more than one mode.
2308         Explicitly disallow mis-matched input types.
2309         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2310         input types to fit the new handler.
2311         (convert_plusminus_to_widen): Likewise.
2312
2313 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2314
2315         * expr.c (expand_expr_real_2): Use widening_optab_handler.
2316         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2317         (gen_insn): $N now means $a must be wider than $b, not consecutive.
2318         * optabs.c (widened_mode): New function.
2319         (expand_widen_pattern_expr): Use widening_optab_handler.
2320         (expand_binop_directly): Likewise.
2321         (expand_binop): Likewise.
2322         * optabs.h (widening_optab_handlers): New struct.
2323         (optab_d): New member, 'widening'.
2324         (widening_optab_handler): New function.
2325         (set_widening_optab_handler): New function.
2326         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2327         widening_optab_handler.
2328         (convert_plusminus_to_widen): Likewise.
2329
2330 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2331
2332         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2333         pedantic.
2334         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2335         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2336
2337 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2338
2339         * opth-gen.awk: Do not declare target save/restore structures and
2340         functions if IN_RTS defined.
2341
2342 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2343
2344         PR target/49437
2345         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2346         when stack was realigned in interrupt handler prologue.
2347
2348 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2349
2350         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2351         (quals_from_declspecs): Assert _Noreturn not present.
2352         (grokdeclarator): Handle _Noreturn.
2353         (build_null_declspecs): Initialize noreturn_p.
2354         (declspecs_add_scspec): Handle RID_NORETURN.
2355         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2356         (c_parser_attributes): Handle RID_NORETURN.
2357         * c-tree.h (struct c_declspecs): Add noreturn_p.
2358         * ginclude/stdnoreturn.h: New.
2359         * Makefile.in (USER_H): Add stdnoreturn.h.
2360
2361 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2362
2363         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2364         (OPTION_MASK_ISA_AVX_UNSET): Update.
2365         (OPTION_MASK_ISA_AVX2_UNSET): New.
2366         (ix86_handle_option): Handle OPT_mavx2 case.
2367         * config/i386/cpuid.h (bit_AVX2): New.
2368         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2369         AVX2 feature.
2370         * config/i386/i386-c.c (ix86_target_macros_internal):
2371         Conditionally define __AVX2__.
2372         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2373         Define "core-avx2" processor alias.  Handle avx2 option.
2374         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2375         * config/i386/i386.h (TARGET_AVX2): New.
2376         * config/i386/i386.opt (mavx2): New.
2377         * doc/invoke.texi: Document -mavx2.
2378
2379 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
2380
2381         PR rtl-optimization/49890
2382         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2383         subclasses of class which is superset of a pressure class.
2384
2385 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2386             Igor Zamyatin <igor.zamyatin@intel.com>
2387
2388         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2389         with HOST_WIDE_INT for isa_flag.
2390         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2391         isa variables.
2392
2393         * config/i386/i386.c (ix86_target_string): Replace int with
2394         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
2395         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2396         (pta_flags): Removed.
2397         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2398         (pta): Use HOST_WIDE_INT on flags.
2399         (builtin_isa): Use HOST_WIDE_INT on isa.
2400         (ix86_add_new_builtins): Likewise.
2401         (def_builtin): Use HOST_WIDE_INT on mask.
2402         (def_builtin_const): Likewise.
2403         (builtin_description): Likewise.
2404
2405         * config/i386/i386.opt (ix86_isa_flags): Replace int with
2406         HOST_WIDE_INT.
2407         (ix86_isa_flags_explicit): Likewise.
2408         (x_ix86_isa_flags_explicit): Likewise.
2409
2410 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
2411
2412         PR rtl-optimization/50107
2413         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2414         (ira_hard_reg_in_set_p): New.
2415
2416         * ira-color.c (calculate_saved_nregs): New.
2417         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
2418         hard regs.
2419         (allocno_reload_assign, fast_allocation): Use
2420         ira_hard_reg_set_intersection_p instead of
2421         ira_hard_reg_not_in_set_p.
2422
2423         * ira.c (setup_reg_renumber): Use
2424         ira_hard_reg_set_intersection_p instead of
2425         ira_hard_reg_not_in_set_p.
2426         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2427         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2428
2429         * ira-costs.c (ira_tune_allocno_costs): Use
2430         ira_hard_reg_set_intersection_p instead of
2431         ira_hard_reg_not_in_set_p.
2432
2433 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2434             Igor Zamyatin <igor.zamyatin@intel.com>
2435
2436         * hwint.h (HOST_WIDE_INT_1): New.
2437
2438         * opt-functions.awk (switch_bit_fields): Initialize the
2439         host_wide_int field.
2440         (host_wide_int_var_name): New.
2441         (var_type_struct): Check and return HOST_WIDE_INT.
2442
2443         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2444
2445         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2446
2447         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
2448         check masks for HOST_WIDE_INT.
2449
2450         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2451         (option_enabled): Likewise.
2452         (get_option_state): Likewise.
2453
2454         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
2455         to HOST_WIDE_INT.
2456
2457 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2458             Marc Glisse  <marc.glisse@normalesup.org>
2459
2460         PR libstdc++-v3/1773
2461         * target.def (decl_mangling_context): New C++ hook.
2462         * doc/tm.texi: Regenerate.
2463         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2464         * config/sol2-protos.h: Group by source file.
2465         (solaris_cxx_decl_mangling_context): Declare.
2466         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2467         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2468         Use $<.
2469         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2470         Add sol2-stubs.o to extra_objs.
2471
2472 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
2473
2474         PR target/50009
2475         * stor-layout.c (update_alignment_for_field): Don't ICE on
2476         packed flexible array members if ms_bitfield_layout_p.
2477
2478         PR target/50092
2479         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2480         on the result before returning it.
2481
2482         PR debug/50017
2483         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2484         is a debug stmt, use location of the first non-debug stmt after it.
2485
2486 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2487
2488         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2489         (arm_size_rtx_costs): Likewise.
2490
2491 2011-08-18  Richard Guenther  <rguenther@suse.de>
2492
2493         * tree.h (tree_int_cst_msb): Remove.
2494         * tree.c (tree_int_cst_msb): Likewise.
2495         (tree_int_cst_sign_bit): Move from ...
2496         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2497
2498 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2499
2500         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2501         * doc/tm.texi: Regenerate.
2502         * target.def (rtx_costs): Add an opno parameter.
2503         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2504         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2505         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2506         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2507         * cse.c (COST_IN): Add an opno parameter.
2508         (notreg_cost): Likewise.  Update call to rtx_cost.
2509         (COST, fold_rtx): Update accordingly.
2510         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2511         * expmed.c (emit_store_flag): Likewise.
2512         * optabs.c (avoid_expensive_constant): Add an opno parameter.
2513         Update call to rtx_cost.
2514         (expand_binop_directly, expand_binop): Likewise.
2515         (expand_twoval_binop, prepare_cmp_insn): Likewise.
2516         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2517         (set_src_cost, get_full_set_src_cost): Update accordingly.
2518         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
2519         to target hook.
2520         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
2521         (default_adress_cost): Update calls to rtx_cost.
2522
2523         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2524         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2525         (arm_rtx_costs): Add an opno parameter.
2526         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2527         adjust any recursive rtx-cost calls.
2528         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2529         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2530         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2531         * config/cris/cris.c (cris_rtx_costs): Likewise.
2532         * config/frv/frv.c (frv_rtx_costs): Likewise.
2533         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2534         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2535         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2536         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2537         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2538         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2539         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2540         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2541         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2542         * config/mep/mep.c (mep_rtx_cost): Likewise.
2543         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2544         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2545         (mips_zero_extend_cost): Add an opno parameter.
2546         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2547         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2548         to rtx_cost.
2549         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2550         rtx-cost calls.
2551         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2552         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2553         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2554         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2555         (rs6000_debug_rtx_costs): Likewise.
2556         * config/s390/s390.c (s390_rtx_costs): Likewise.
2557         * config/score/score-protos.h (score_rtx_costs): Likewise.
2558         * config/score/score.c (score_rtx_costs): Likewise.
2559         * config/sh/sh.c (andcosts): Update call to rtx_cost.
2560         (sh_rtx_costs): Add an opno parameter.
2561         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2562         * config/spu/spu.c (spu_rtx_costs): Likewise.
2563         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2564         * config/v850/v850.c (v850_rtx_costs): Likewise.
2565         * config/vax/vax.c (vax_rtx_costs): Likewise.
2566         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2567
2568 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2569
2570         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2571         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2572         rtx_cost.
2573         * calls.c (precompute_register_parameters): Likewise.
2574         * combine.c (expand_compound_operation, make_extraction): Likewise.
2575         (force_to_mode, distribute_and_simplify_rtx): Likewise.
2576         * dse.c (find_shift_sequence): Likewise.
2577         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2578         * expr.c (compress_float_constant): Likewise.
2579         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2580         * gcse.c (want_to_gcse_p): Likewise.
2581         * ifcvt.c (noce_try_sign_mask): Likewise.
2582         * loop-doloop.c (doloop_optimize): Likewise.
2583         * loop-invariant.c (create_new_invariant): Likewise.
2584         * optabs.c (avoid_expensive_constant): Likewise.
2585         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2586         (try_replace_in_use, reload_cse_move2add): Likewise.
2587         * reload1.c (calculate_elim_costs_all_insns): Likewise.
2588         (note_reg_elim_costly): Likewise.
2589         * rtlanal.c (insn_rtx_cost): Likewise.
2590         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2591         * stmt.c (lshift_cheap_p): Likewise.
2592         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2593         * config/avr/avr.c (final_prescan_insn): Likewise.
2594         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2595         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2596
2597 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2598
2599         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2600         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2601         * cfgloopanal.c (seq_cost): Likewise.
2602         * loop-invariant.c (create_new_invariant): Likewise.
2603         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2604         (reload_cse_move2add): Use get_full_set_rtx_cost.
2605
2606 2011-08-18  Richard Guenther  <rguenther@suse.de>
2607
2608         * expr.c (get_inner_reference): Fix typo in last change.
2609
2610 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2611             Joseph Myers  <joseph@codesourcery.com>
2612
2613         PR tree-optimization/49963
2614         * hwint.c (absu_hwi): Define.
2615         * hwint.h (absu_hwi): Declare.
2616         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2617         of abs_hwi.
2618         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2619         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2620
2621 2011-08-18  Richard Guenther  <rguenther@suse.de>
2622
2623         * expr.c (get_inner_reference): Sign-extend the constant
2624         twos-complement offset before doing arbitrary precision
2625         arithmetic on it.
2626         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2627         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2628         to get_constraint_for_ptr_offset.
2629
2630 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2631
2632         PR target/50068
2633         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2634
2635 2011-08-17  Richard Guenther  <rguenther@suse.de>
2636
2637         * tree.h (convert_to_ptrofftype_loc): New function.
2638         (convert_to_ptrofftype): Define.
2639         * builtins.c (expand_builtin_bzero): Use size_type_node.
2640         (fold_builtin_bzero): Likewise.
2641         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2642         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2643         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2644         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2645         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2646         * fold-const.c (build_range_check): Negate using the original type.
2647         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2648         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2649         convert_to_ptrofftype.
2650         * gimplify.c (gimplify_self_mod_expr): Likewise.
2651         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2652         (graphite_create_new_loop_guard): Likewise.
2653         * graphite-sese-to-poly.c (my_long_long): Remove.
2654         (scop_ivs_can_be_represented): Adjust.
2655         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2656         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2657         * tree-loop-distribution.c (build_size_arg_loc): Use
2658         size_type_node.
2659         (generate_memset_zero): Simplify.
2660         * tree-mudflap.c: Use fold_convert, not convert.
2661         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2662         its own type.
2663         (determine_offset): Likewise for DR_STEP.
2664         (valid_initializer_p): Likewise.
2665         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2666         to an integer type of same size.
2667         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2668         to sizetype without need.
2669         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2670         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2671         * tree-ssa-loop-manip.c (create_iv): Likewise.
2672         (determine_exit_conditions): Adjust comment.
2673         * tree-ssa-pre.c (create_expression_by_pieces): Use
2674         convert_to_ptrofftype.
2675         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2676         * varasm.c (array_size_for_constructor): Compute using double_ints.
2677
2678 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2679
2680         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2681         when generating an integer result where possible.  Short-cut
2682         comparison against 0 also for QImode.
2683
2684 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2685
2686         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2687         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2688         prototype.
2689         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2690         (spu_legitimate_address_p): Do not check displacement if the base
2691         is an eliminable stack register.
2692
2693 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2694
2695         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2696         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2697         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2698         m32c_preferred_output_reload_class): Remove.
2699         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2700         Change rclass argument and return types to reg_class_t. Use
2701         reg_class_subset_p instead of class_sizes.
2702         (m32c_preferred_output_reload_class): Make static. Change rclass
2703         argument and return types to reg_class_t.
2704         (TARGET_PREFERRED_RELOAD_CLASS,
2705         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2706
2707 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2708
2709         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2710
2711 2011-08-16  Richard GUenther  <rguenther@suse.de>
2712
2713         PR tree-optimization/50082
2714         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2715         warnings here, instead of ...
2716         (ssa_forward_propagate_and_combine): ... here.
2717         (forward_propagate_into_comparison_1): Adjust.
2718         (forward_propagate_into_comparison): Likewise.
2719         (forward_propagate_into_gimple_cond): Likewise.
2720         (forward_propagate_into_cond): Likewise.
2721
2722 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2723
2724         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2725         instead of ggc_alloc_zone_vec_rtvec_def.
2726
2727 2011-08-16  Richard Guenther  <rguenther@suse.de>
2728
2729         * tree.h (ptrofftype_p): New helper function.
2730         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2731         offset verification.
2732         (verify_gimple_assign_binary): Likewise.
2733         * tree.c (build2_stat): Likewise.
2734         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2735         (reset_evolution_in_loop): Likewise.
2736         * tree-chrec.h (build_polynomial_chrec): Likewise.
2737
2738 2011-08-16  Liang Wang  <lwang1@marvell.com>
2739
2740         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2741         ggc_alloc_zone_vec_rtvec_def.
2742
2743 2011-08-16  Richard Guenther  <rguenther@suse.de>
2744
2745         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2746         helper factored out from ...
2747         (extract_range_from_binary_expr_1): ... here.  Re-structure
2748         to not glob handling too different tree codes.
2749
2750 2011-08-15  Richard Henderson  <rth@redhat.com>
2751
2752         PR middle-end/50006
2753         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2754         setting out to include allocate_stack named pattern as well.
2755         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2756         * stmt.c (expand_stack_restore): Likewise.
2757
2758 2011-08-15  Richard Guenther  <rguenther@suse.de>
2759
2760         PR middle-end/50082
2761         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2762         convert the modified operand to the other operand type.
2763         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2764         useless conversions stripped from comparison operands.
2765
2766 2011-08-15  Richard Guenther  <rguenther@suse.de>
2767
2768         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2769         (extract_range_from_unary_expr_1): Restructure.
2770
2771 2011-08-15  Richard Guenther  <rguenther@suse.de>
2772
2773         PR tree-optimization/50058
2774         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2775         copy matching.
2776
2777 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2778
2779         PR target/50022
2780         * config/arm/arm.c (output_move_double): Add 2 parameters
2781         to count the number of insns emitted and whether to emit or not.
2782         Use the flag to decide when to emit and count number of instructions
2783         that will be emitted.
2784         Handle case where output_move_double might be called for calculating
2785         lengths with an invalid constant.
2786         (arm_count_output_move_double_insns): Define.
2787         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2788         (output_move_double): Adjust prototype.
2789         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2790         output_move_double.
2791         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2792         for ce_count.
2793         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2794         ("*movdf_soft_insn"): Likewise.
2795         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2796         ("*cirrus_thumb2_movdi"): Likewise.
2797         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2798         ("*cirrus_movdf_hard_insn"): Likewise.
2799         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2800         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2801         ("mov<mode>_internal VMMX"): Likewise.
2802         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2803
2804 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2805
2806         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2807         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2808         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2809         for TARGET_ROUND.
2810
2811         (rint<mode>2): Simplify TARGET_ROUND check.
2812         (floor<mode>2): Ditto.
2813         (ceil<mode>2): Ditto.
2814         (btrunc<mode>2): Ditto.
2815
2816 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2817
2818         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2819         as mmix_preferred_output_reload_class.
2820
2821 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2822
2823         * PR target/49903
2824         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2825         (branch_unspec): New insn.
2826         (branch): Beauty farm.
2827         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2828         to be IF_THEN_ELSE.
2829         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2830         New static functions.
2831         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2832         Use CONST_INT_P.  Beauty.
2833
2834 2011-08-12  Richard Henderson  <rth@redhat.com>
2835
2836         PR rtl-opt/49994
2837         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2838         * sched-deps.c (init_deps): Clear it.
2839         (deps_analyze_insn): Consume it.
2840         (sched_analyze_insn): Fill it.
2841
2842 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2843
2844         PR target/48328
2845         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2846         for tbh instructions.
2847
2848 2011-08-12  Diego Novillo  <dnovillo@google.com>
2849
2850         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2851         (streamer_write_uhwi): Rename from lto_output_uleb128.
2852         (streamer_write_hwi): Rename from output_sleb128.
2853         (streamer_write_string): Rename from lto_output_string.
2854         (streamer_string_index): Rename from lto_string_index.
2855         (streamer_write_string_with_length): Rename from
2856         lto_output_string_with_length.
2857         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2858         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2859         (streamer_read_string): Rename from lto_input_string.
2860         (streamer_read_indexed_string): Rename from input_string_internal.
2861         (streamer_read_uhwi): Rename from lto_input_uleb128.
2862         (streamer_read_hwi): Rename from lto_input_sleb128.
2863         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2864         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2865         (streamer_write_enum): Rename from lto_output_enum.
2866         (streamer_read_enum): Rename from lto_input_enum.
2867         (streamer_write_record_start): Rename from output_record_start.
2868         (streamer_read_record_start): Rename from input_record_start.
2869         (streamer_write_bitpack): Rename from lto_output_bitpack.
2870         (streamer_read_bitpack): Rename from lto_input_bitpack.
2871         (streamer_write_char_stream): Rename from lto_output_1_stream.
2872         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2873         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2874         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2875         (streamer_read_string_cst): Rename from input_string_cst.
2876         (streamer_read_chain): Rename from lto_input_chain.
2877         (streamer_alloc_tree): Rename from lto_materialize_tree.
2878         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2879         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2880         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2881         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2882         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2883         (streamer_write_chain): Rename from lto_output_chain.
2884         (streamer_write_tree_header): Rename from lto_output_tree_header.
2885         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2886         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2887         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2888         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2889         (streamer_check_handled_ts_structures): Rename from
2890         check_handled_ts_structures.
2891         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2892         (streamer_tree_cache_insert_at): Rename from
2893         lto_streamer_cache_insert_at.
2894         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2895         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2896         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2897         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2898         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2899         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2900         (write_identifier): Rename from output_identifier.
2901         (write_ts_common_tree_pointers): Rename from
2902         lto_output_ts_common_tree_pointers.
2903         (write_ts_vector_tree_pointers): Rename from
2904         lto_output_ts_vector_tree_pointers.
2905         (write_ts_complex_tree_pointers): Rename from
2906         lto_output_ts_complex_tree_pointers.
2907         (write_ts_decl_minimal_tree_pointers): Rename from
2908         lto_output_ts_decl_minimal_tree_pointers.
2909         (write_ts_decl_common_tree_pointers): Rename from
2910         lto_output_ts_decl_common_tree_pointers.
2911         (write_ts_decl_non_common_tree_pointers): Rename from
2912         lto_output_ts_decl_non_common_tree_pointers.
2913         (write_ts_decl_with_vis_tree_pointers): Rename from
2914         lto_output_ts_decl_with_vis_tree_pointers.
2915         (write_ts_field_decl_tree_pointers): Rename from
2916         lto_output_ts_field_decl_tree_pointers.
2917         (write_ts_function_decl_tree_pointers): Rename from
2918         lto_output_ts_function_decl_tree_pointers.
2919         (write_ts_type_common_tree_pointers): Rename from
2920         lto_output_ts_type_common_tree_pointers.
2921         (write_ts_type_non_common_tree_pointers): Rename from
2922         lto_output_ts_type_non_common_tree_pointers.
2923         (write_ts_list_tree_pointers): Rename from
2924         lto_output_ts_list_tree_pointers.
2925         (write_ts_vec_tree_pointers): Rename from
2926         lto_output_ts_vec_tree_pointers.
2927         (write_ts_exp_tree_pointers): Rename from
2928         lto_output_ts_exp_tree_pointers.
2929         (write_ts_block_tree_pointers): Rename from
2930         lto_output_ts_block_tree_pointers.
2931         (write_ts_binfo_tree_pointers): Rename from
2932         lto_output_ts_binfo_tree_pointers.
2933         (write_ts_constructor_tree_pointers): Rename from
2934         lto_output_ts_constructor_tree_pointers.
2935         (write_ts_target_option): Rename from lto_output_ts_target_option.
2936         (write_ts_translation_unit_decl_tree_pointers): Rename from
2937         lto_output_ts_translation_unit_decl_tree_pointers.
2938         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2939         Rename from lto_streamer_cache_add_to_node_array.
2940         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2941         (record_common_node): Rename from lto_record_common_node.
2942
2943         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2944         declarations.
2945         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2946         function.
2947         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2948         unused function.
2949         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2950         (ipa-reference.o): Likewise.
2951         * lto-section-out.c: Include data-streamer.h.
2952         * ipa-reference.c: Include data-streamer.h.
2953
2954 2011-08-12  Nick Clifton  <nickc@redhat.com>
2955
2956         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2957         * doc/md.texi (cmpstrn): Note that the comparison stops if both
2958         fetched bytes are zero.
2959         (cmpstr): Likewise.
2960         (cmpmem): Note that the comparison does not stop if both of the
2961         fetched bytes are zero.
2962
2963 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
2964
2965         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2966         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2967         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2968         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2969         to integer_type_node.
2970         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2971         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2972         * builtins.c (expand_builtin_in): Ditto.
2973         (mathfn_built_in_1): Ditto.
2974         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2975         BUILT_IN_IFLOOR.
2976         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2977         BUILT_IN_IROUND.
2978         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2979         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2980         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2981
2982 2011-08-12  Richard Guenther  <rguenther@suse.de>
2983
2984         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2985
2986 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
2987
2988         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2989
2990 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2991
2992         * config/arm/arm.c (get_label_padding): New function.
2993         (create_fix_barrier, arm_reorg): Use it.
2994
2995 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2996
2997         PR target/49781
2998         * config/i386/i386.md (*lea_5_zext): New.
2999         (*lea_6_zext): Ditto.
3000         * config/i386/predicates.md (const_32bit_mask): New predicate.
3001         (lea_address_operand): Reject AND.
3002         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3003         const_32bit_mask immediate.
3004         (ix86_print_operand_address): Handle AND.
3005         (memory_address_length): Ditto.
3006
3007 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
3008             Brian Hackett  <bhackett1024@gmail.com>
3009
3010         * plugin.def: Add event for finish_decl.
3011         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3012         * c-decl.c (finish_decl): Invoke callbacks on above event.
3013         * doc/plugins.texi: Document above event.
3014
3015 2011-08-11  Richard Guenther  <rguenther@suse.de>
3016
3017         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3018         lookups, make looking through aggregate copies stronger.
3019
3020 2011-08-11  Richard Henderson  <rth@redhat.com>
3021
3022         PR bootstrap/50018
3023         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3024
3025 2011-08-11  Richard Guenther  <rguenther@suse.de>
3026
3027         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3028         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3029         (vrp_visit_stmt): Likewise.
3030
3031 2011-08-11  Richard Guenther  <rguenther@suse.de>
3032
3033         PR middle-end/50040
3034         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3035         load of the other piece with TREE_NO_WARNING.
3036         * tree-flow.h (warn_uninit): Adjust prototype.
3037         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3038         the base variable and the expression that is used separately.
3039         Properly query all TREE_NO_WARNING flags.
3040         (struct walk_data): Remove.
3041         (warn_uninitialized_var): Likewise.
3042         (warn_uninitialized_vars): Do not walk gimple pieces but simply
3043         look at all SSA uses of the statement.  Handle unused memory
3044         separately.
3045         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3046
3047 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3048
3049         * config/rx/rx.md (movsicc): Allow register to register transfers.
3050         (*movsicc): Likewise.
3051         (*stcc): Restrict this pattern to EQ and NE compares.
3052         (*stcc_reg): New pattern.  Works for any comparison but only for
3053         register transfers.
3054
3055 2011-08-11   Diego Novillo  <dnovillo@google.com>
3056
3057         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3058         Call stream_write_tree instead of output_record_start.
3059         (lto_output_ts_binfo_tree_pointers): Likewise.
3060
3061         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3062         Convert it to a macro.
3063         (stream_read_tree): Likewise.
3064
3065         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3066         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3067
3068         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3069         and tree_read_bitfields.
3070         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3071         (lto_write_tree): Call it.
3072         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3073         * streamer-hooks.h (struct streamer_hooks): Remove fields
3074         name, is_streamable and alloc_tree. Update all users.
3075         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3076         (lto_materialize_tree): ... here.
3077         Handle CALL_EXPR codes.
3078         Remove call to lto_streamer_cache_append.
3079         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3080         * tree-streamer.h (tree_read_bitfields): Declare.
3081
3082         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3083         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3084         * tree-streamer.h (stream_read_tree): New.  Replace all calls
3085         to lto_input_tree with it.
3086         (stream_write_tree): New.  Replace all calls to lto_output_tree,
3087         lto_output_tree_ref and lto_output_tree_or_ref with it.
3088         * lto-streamer-in.c (lto_read_tree): Inline code from
3089         lto_streamer_read_tree.
3090         (lto_input_tree): Move from tree-streamer-in.c.
3091         * lto-streamer-out.c (lto_output_tree_ref): Make static.
3092         Remove handling of NULL values for EXPR.
3093         Do not handle EXPRs that are not indexable.
3094         (lto_write_tree): Move from tree-streamer-out.c.
3095         Inline lto_streamer_write_tree.
3096         (lto_output_tree): Move from tree-streamer-out.c.
3097         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3098         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3099         (lto_preload_common_nodes): Likewise.
3100         Remove assertions and adjustments for nodes
3101         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3102         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3103         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3104         * lto-streamer.h (lto_input_tree): Declare.
3105         (lto_output_tree_ref): Remove.
3106         * streamer-hooks.h (struct streamer_hooks): Remove fields
3107         preload_common_nodes, indexable_with_decls_p,
3108         pack_value_fields, unpack_value_fields and output_tree_header.
3109         Update all users.
3110         * tree-streamer-in.c (lto_materialize_tree): Make extern.
3111         (lto_input_tree_pointers): Likewise.
3112         (lto_read_tree): Move to lto-streamer-in.c.
3113         (lto_input_integer_cst): Make extern.
3114         (lto_get_pickled_tree): Likewise.
3115         (lto_get_builtin_tree): Likewise.
3116         (lto_input_tree): Move to lto-streamer-in.c.
3117         * tree-streamer-out.c (pack_value_fields): Make extern.
3118         (lto_output_tree_or_ref): Remove.  Replace all callers with
3119         calls to stream_write_tree.
3120         (lto_output_builtin_tree): Make extern.
3121         (lto_streamer_write_tree): Inline into lto_write_tree.
3122         (lto_output_tree_pointers): Make extern.
3123         (lto_output_tree_header): Likewise.
3124         (lto_output_integer_cst): Likewise.
3125         (lto_write_tree): Move to lto-streamer-out.c.
3126         (lto_output_tree): Likewise.
3127         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3128         (preload_common_nodes): Likewise.
3129         (lto_streamer_cache_create): Call it.
3130         * tree-streamer.h: Include streamer-hooks.h.
3131         (stream_write_tree): New.
3132         (stream_read_tree): New.
3133         (lto_input_tree): Remove.
3134         (lto_materialize_tree): Declare.
3135         (lto_input_tree_pointers): Declare.
3136         (lto_get_pickled_tree): Declare.
3137         (lto_get_builtin_tree): Declare.
3138         (lto_input_integer_cst): Declare.
3139         (lto_output_tree_header): Declare.
3140         (pack_value_fields): Declare.
3141         (lto_output_tree_pointers): Declare.
3142         (lto_output_integer_cst): Declare.
3143         (lto_output_builtin_tree): Declare.
3144
3145 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3146
3147         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3148         only if producer writes to the register given by regno.
3149
3150 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3151             Alexander Monakov  <amonakov@ispras.ru>
3152
3153         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3154         (sched_get_condition_with_rev_uncached): ... this.  Factor out
3155         condition caching logic into ...
3156         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
3157         attempt to use cache for instructions with zero luid.
3158         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3159         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3160
3161 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3162
3163         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3164         get_seqno_for_a_jump.  Update the caller.
3165         (get_seqno_by_succs): New.  Use it ...
3166         (get_seqno_for_a_jump): ... here to find a seqno if looking at
3167         predecessors was not sufficient.
3168         (get_seqno_by_preds): Include head in iteration range, exclude insn.
3169
3170 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3171
3172         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3173
3174 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3175
3176         * sel-sched-ir.h (register_unavailable_p): Declare.
3177         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
3178         (set_unavailable_target_for_expr): ... here to properly test
3179         availability of a register.
3180         (speculate_expr): Ditto.
3181         * sel-sched.c (substitute_reg_in_expr): Ditto.
3182         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3183
3184 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3185
3186         * sel-sched.c (verify_target_availability): Fix usage of
3187         hard_regno_nregs.
3188
3189 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3190
3191         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3192         recognized by cannot_copy_insn_p hook and volatile instructions.
3193
3194 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3195
3196         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3197
3198 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
3199
3200         * doc/md.texi (define_bypass): Say that the instruction names can
3201         be filename-style globs.
3202         * Makefile.in (FNMATCH_H): Define.
3203         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3204         * genattrtab.c: Include fnmatch.h.
3205         (bypass_list): Change field name from "insn" to "pattern".
3206         (gen_bypass_1): Update accordingly.
3207         (process_bypasses): Use fnmatch to check for matches between
3208         insn reservations and define_bypasses.
3209         * genautomata.c: Include fnmatch.h.
3210         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3211         and out_pattern respectively.
3212         (gen_bypass, insert_bypass): Update accordingly.
3213         (for_each_matching_insn, process_bypass_2, process_bypass_1)
3214         (process_bypass): New functions.
3215         (process_decls): Use process_bypass.  Update after field name changes.
3216
3217 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
3218
3219         PR target/49687
3220         * config/avr/avr.md (smulqi3_highpart): New insn.
3221         (umulqi3_highpart): New insn.
3222         (*subqi3.ashiftrt7): New insn.
3223         (smulhi3_highpart): New expander.
3224         (umulhi3_highpart): Nex expander.
3225         (*smulhi3_highpart_call): New insn.
3226         (*umulhi3_highpart_call): New insn.
3227         (extend_u): New code attribute.
3228         (extend_prefix): Rename code attribute to extend_su.
3229         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3230         widening QI/HI multiply.
3231
3232 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
3233
3234         PR tree-optimization/50039
3235         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3236         that DEF_STMT has a stmt_vec_info.
3237
3238 2011-08-10  Richard Guenther  <rguenther@suse.de>
3239
3240         * tree.h (can_trust_pointer_alignment): Remove.
3241         * builtins.c (can_trust_pointer_alignment): Remove.
3242
3243 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3244
3245         * c-typeck.c (scalar_to_vector): New function. Try scalar to
3246         vector conversion.
3247         (stv_conv): New enum for scalar_to_vector return type.
3248         (build_binary_op): Adjust.
3249         * doc/extend.texi: Description of scalar to vector expansion.
3250
3251 2011-08-10  Richard Guenther  <rguenther@suse.de>
3252
3253         * tree.h (get_pointer_alignment): Remove max-align argument.
3254         (get_object_alignment): Likewise.
3255         * builtins.c (get_object_alignment_1): Adjust.
3256         (get_object_alignment): Remove max-align argument.
3257         (get_pointer_alignment): Likewise.
3258         (expand_builtin_strlen): Adjust.
3259         (expand_builtin_memcpy): Likewise.
3260         (expand_builtin_mempcpy_args): Likewise.
3261         (expand_builtin_strncpy): Likewise.
3262         (expand_builtin_memset_args): Likewise.
3263         (expand_builtin_memcmp): Likewise.
3264         (expand_builtin_strcmp): Likewise.
3265         (expand_builtin_strncmp): Likewise.
3266         (get_builtin_sync_mem): Likewise.
3267         (fold_builtin_memset): Likewise.
3268         (fold_builtin_memory_op): Likewise.
3269         (expand_builtin_memory_chk): Likewise.
3270         * emit-rtl.c (get_mem_align_offset): Likewise.
3271         (set_mem_attributes_minus_bitpos): Likewise.
3272         * expr.c (expand_assignment): Likewise.
3273         (expand_expr_real_1): Likewise.
3274         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3275         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3276         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3277         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3278         * value-prof.c (gimple_stringops_transform): Likewise.
3279
3280 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
3281
3282         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3283         * doc/tm.texi: Regenerate.
3284
3285 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
3286
3287         PR target/29560
3288         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3289         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3290         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3291         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3292         shift target is unused.
3293
3294 2011-08-10  Richard Guenther  <rguenther@suse.de>
3295
3296         PR tree-optimization/49937
3297         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3298         using get_object_alignment_1.
3299
3300 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3301
3302         * config/i386/i386.c (ix86_emit_i387_round): New function.
3303         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3304         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3305         Use ix86_emit_i387_round to expand round function for i387 math.
3306         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3307         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3308
3309 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3310
3311         * config/sync.c: Move to ../libgcc.
3312         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3313         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3314         Remove.
3315
3316 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3317
3318         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3319         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3320         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3321         Change 'from' and 'to' arguments type to reg_class_t.
3322         (TARGET_REGISTER_MOVE_COST): Define.
3323
3324 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
3325
3326         PR target/50026
3327         Revert:
3328         PR rtl-optimization/49990
3329         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3330         ignore classes which can not change mode.
3331         (find_costs_and_classes): Ditto.
3332
3333 2011-08-09  Richard Guenther  <rguenther@suse.de>
3334
3335         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3336         information for ranges with only negative values.
3337         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3338         BIT_AND_EXPR handling to handle ranges with negative values.
3339
3340 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
3341
3342         * config/i386/i386.c: Remove traling spaces.
3343         * config/i386/sse.md: Likewise.
3344         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3345         (*fma_fmsub_<mode>): Likewise.
3346         (*fma_fnmadd_<mode>): Likewise.
3347         (*fma_fnmsub_<mode>): Likewise.
3348
3349 2011-08-09  Nick Clifton  <nickc@redhat.com>
3350
3351         * config/rx/rx.md: Disable extender peepholes at -O3.
3352
3353 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3354
3355         PR target/49781
3356         * config/i386/i386.md (reload_noff_load): New.
3357         (reload_noff_store): Ditto.
3358         * config/i386/i386.c (ix86_secondary_reload): Use
3359         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3360         double-word moves from/to non-offsetable addresses instead of
3361         generating XMM temporary.
3362
3363 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3364
3365         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3366
3367 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
3368
3369         PR tree-optimization/50014
3370         * tree-vect-loop.c (vectorizable_reduction): Get def type before
3371         calling vect_get_vec_def_for_stmt_copy ().
3372
3373 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
3374
3375         PR rtl-optimization/49990
3376         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3377         ignore classes which can not change mode.
3378         (find_costs_and_classes): Ditto.
3379
3380 2011-08-08  Richard Henderson  <rth@redhat.com>
3381
3382         PR middle-end/49990
3383         * config/i386/i386.c (ix86_expand_prologue): Call
3384         for SEH target gen_prologue_use instead of gen_blockage
3385         at prologue's end.
3386
3387 2011-08-08  Martin Jambor  <mjambor@suse.cz>
3388
3389         PR middle-end/49923
3390         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3391         memory alignment.
3392
3393 2011-08-08   Diego Novillo  <dnovillo@google.com>
3394
3395         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3396         (DATA_STREAMER_H): New.
3397         (GIMPLE_STREAMER_H): New.
3398         (TREE_STREAMER_H): New.
3399         (STREAMER_HOOKS_H): New.
3400         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3401         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3402         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3403         (data-streamer.o): New.
3404         (data-streamer-in.o): New.
3405         (data-streamer-out.o): New.
3406         (gimple-streamer-in.o): New.
3407         (gimple-streamer-out.o): New.
3408         (streamer-hooks.o): New.
3409         (tree-streamer.o): New.
3410         (tree-streamer-in.o): New.
3411         (tree-streamer-out.o): New.
3412         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3413         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3414         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3415         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3416         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3417         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3418         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3419         (ipa-inline-analysis.o): Likewise.
3420         (ipa-pure-const.o): Likewise.
3421         * data-streamer-in.c: New.
3422         * data-streamer-out.c: New.
3423         * data-streamer.c: New.
3424         * data-streamer.h: New.
3425         * gimple-streamer-in.c: New.
3426         * gimple-streamer-out.c: New.
3427         * gimple-streamer.h: New.
3428         * ipa-inline-analysis.c: Include data-streamer.h.
3429         * ipa-prop.c: Include data-streamer.h.
3430         * ipa-pure-const.c: Include data-streamer.h.
3431         * lto-cgraph.c: Include data-streamer.h.
3432         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3433         (lto_input_widest_uint_uleb128): Likewise.
3434         (lto_input_sleb128): Likewise.
3435         (bp_unpack_var_len_unsigned): Likewise.
3436         (bp_unpack_var_len_int): Likewise.
3437         * lto-section-out.c (lto_output_uleb128_stream): Move to
3438         data-streamer-out.c.
3439         (lto_output_widest_uint_uleb128_stream): Likewise.
3440         (lto_output_sleb128_stream): Likewise.
3441         (bp_pack_var_len_unsigned): Likewise.
3442         (bp_pack_var_len_int): Likewise.
3443         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3444         (struct string_slot): Remove.  Update all users.
3445         (lto_tag_check_set): Make extern.
3446         (lto_tag_check_range): Move to lto-streamer.h.
3447         (lto_tag_check): Likewise.
3448         (hash_string_slot_node): Remove.  Update all users.
3449         (eq_string_slot_node): Remove.  Update all users.
3450         (string_for_index): Move to data-streamer-in.c
3451         (input_string_internal): Likewise.
3452         (input_string_cst): Move to tree-streamer-in.c.
3453         (input_identifier): Likewise.
3454         (lto_input_string): Move to data-streamer-in.c
3455         (input_record_start): Move to data-streamer.h
3456         (canon_file_name): Use new definition of struct string_slot
3457         from data-streamer.h.  Set S_SLOT.LEN.
3458         (lto_input_location): Make extern.
3459         (lto_input_chain): Move to tree-streamer-in.c.
3460         (lto_init_eh): Make extern.
3461         (input_phi): Move to gimple-streamer-in.c.
3462         (input_gimple_stmt): Likewise.
3463         (input_bb): Likewise.
3464         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3465         (unpack_ts_real_cst_value_fields): Likewise.
3466         (unpack_ts_fixed_cst_value_fields): Likewise.
3467         (unpack_ts_decl_common_value_fields): Likewise.
3468         (unpack_ts_decl_wrtl_value_fields): Likewise.
3469         (unpack_ts_decl_with_vis_value_fields): Likewise.
3470         (unpack_ts_function_decl_value_fields): Likewise.
3471         (unpack_ts_type_common_value_fields): Likewise.
3472         (unpack_ts_block_value_fields): Likewise.
3473         (unpack_ts_translation_unit_decl_value_fields): Likewise.
3474         (unpack_value_fields): Likewise.
3475         (lto_materialize_tree): Likewise.
3476         (lto_input_ts_common_tree_pointers): Likewise.
3477         (lto_input_ts_vector_tree_pointers): Likewise.
3478         (lto_input_ts_complex_tree_pointers): Likewise.
3479         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3480         (lto_input_ts_decl_common_tree_pointers): Likewise.
3481         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3482         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3483         (lto_input_ts_field_decl_tree_pointers): Likewise.
3484         (lto_input_ts_function_decl_tree_pointers): Likewise.
3485         (lto_input_ts_type_common_tree_pointers): Likewise.
3486         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3487         (lto_input_ts_list_tree_pointers): Likewise.
3488         (lto_input_ts_vec_tree_pointers): Likewise.
3489         (lto_input_ts_exp_tree_pointers): Likewise.
3490         (lto_input_ts_block_tree_pointers): Likewise.
3491         (lto_input_ts_binfo_tree_pointers): Likewise.
3492         (lto_input_ts_constructor_tree_pointers): Likewise.
3493         (lto_input_ts_target_option): Likewise.
3494         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3495         (lto_input_tree_pointers): Likewise.
3496         (lto_get_pickled_tree): Likewise.
3497         (lto_get_builtin_tree): Likewise.
3498         (lto_read_tree): Likewise.
3499         (lto_input_integer_cst): Likewise.
3500         (lto_input_tree): Likewise.
3501         * lto-streamer-out.c: Include data-streamer.h,
3502         gimple-streamer.h and streamer-hooks.h.
3503         (struct string_slot): Move to data-streamer.h.
3504         (hash_string_slot_node): Likewise.
3505         (eq_string_slot_node): Likewise.
3506         (lto_string_index): Move to data-streamer-out.c.
3507         (lto_output_string_with_length): Likewise.
3508         (lto_output_string): Likewise.
3509         (output_string_cst): Move to tree-streamer-out.c.
3510         (output_identifier): Likewise.
3511         (output_zero): Move to data-streamer-out.c
3512         (output_uleb128): Likewise.
3513         (output_sleb128): Likewise.
3514         (output_record_start): Move to data-streamer.h
3515         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3516         (pack_ts_real_cst_value_fields): Likewise.
3517         (pack_ts_fixed_cst_value_fields): Likewise.
3518         (pack_ts_decl_common_value_fields): Likewise.
3519         (pack_ts_decl_wrtl_value_fields): Likewise.
3520         (pack_ts_decl_with_vis_value_fields): Likewise.
3521         (pack_ts_function_decl_value_fields): Likewise.
3522         (pack_ts_type_common_value_fields): Likewise.
3523         (pack_ts_block_value_fields): Likewise.
3524         (pack_ts_translation_unit_decl_value_fields): Likewise.
3525         (pack_value_fields): Likewise.
3526         (lto_output_chain): Likewise.
3527         (lto_output_ts_common_tree_pointers): Likewise.
3528         (lto_output_ts_vector_tree_pointers): Likewise.
3529         (lto_output_ts_complex_tree_pointers): Likewise.
3530         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3531         (lto_output_ts_decl_common_tree_pointers): Likewise.
3532         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3533         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3534         (lto_output_ts_field_decl_tree_pointers): Likewise.
3535         (lto_output_ts_function_decl_tree_pointers): Likewise.
3536         (lto_output_ts_type_common_tree_pointers): Likewise.
3537         (lto_output_ts_type_non_common_tree_pointers): Likewise.
3538         (lto_output_ts_list_tree_pointers): Likewise.
3539         (lto_output_ts_vec_tree_pointers): Likewise.
3540         (lto_output_ts_exp_tree_pointers): Likewise.
3541         (lto_output_ts_block_tree_pointers): Likewise.
3542         (lto_output_ts_binfo_tree_pointers): Likewise.
3543         (lto_output_ts_constructor_tree_pointers): Likewise.
3544         (lto_output_ts_target_option): Likewise.
3545         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3546         (lto_output_tree_pointers): Likewise.
3547         (lto_output_tree_header): Likewise.
3548         (lto_output_builtin_tree): Likewise.
3549         (lto_write_tree): Likewise.
3550         (lto_output_integer_cst): Likewise.
3551         (lto_output_tree): Likewise.
3552         (output_phi): Move to gimple-streamer-out.c.
3553         (output_gimple_stmt): Likewise.
3554         (output_bb): Likewise.
3555         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3556         (streamer_hooks): Move to streamer-hooks.c.
3557         (check_handled_ts_structures): Move to tree-streamer.c
3558         (lto_streamer_cache_add_to_node_array): Likewise.
3559         (lto_streamer_cache_insert_1): Likewise.
3560         (lto_streamer_cache_insert): Likewise.
3561         (lto_streamer_cache_insert_at): Likewise.
3562         (lto_streamer_cache_append): Likewise.
3563         (lto_streamer_cache_lookup): Likewise.
3564         (lto_streamer_cache_get): Likewise.
3565         (lto_record_common_node): Likewise.
3566         (lto_preload_common_nodes): Likewise.
3567         (lto_streamer_cache_create): Likewise.
3568         (lto_streamer_cache_delete): Likewise.
3569         (streamer_hooks_init): Move to streamer-hooks.c.
3570         * lto-streamer.h: Include diagnostic.h
3571         (struct output_block, struct lto_input_block,
3572         struct data_in, struct bitpack_d): Remove forward declarations.
3573         (struct bitpack_d): Move to data-streamer.h.
3574         (struct lto_streamer_cache_d): Move to tree-streamer.h.
3575         (struct streamer_hooks): Move to streamer-hooks.h.
3576         (bp_pack_var_len_unsigned): Move to data-streamer.h.
3577         (bp_pack_var_len_int): Likewise.
3578         (bp_unpack_var_len_unsigned): Likewise.
3579         (bp_unpack_var_len_int): Likewise.
3580         (lto_input_location): Declare.
3581         (lto_tag_check_set): Declare.
3582         (lto_init_eh): Declare.
3583         (lto_output_tree_ref): Declare.
3584         (lto_output_location): Declare.
3585         (bitpack_create): Move to data-streamer.h.
3586         (bp_pack_value): Likewise.
3587         (lto_output_bitpack): Likewise.
3588         (lto_input_bitpack): Likewise.
3589         (bp_unpack_value): Likewise.
3590         (lto_output_1_stream): Likewise.
3591         (lto_input_1_unsigned): Likewise.
3592         (lto_output_int_in_range): Likewise.
3593         (lto_input_int_in_range): Likewise.
3594         (bp_pack_int_in_range): Likewise.
3595         (bp_unpack_int_in_range): Likewise.
3596         (lto_output_enum): Likewise.
3597         (lto_input_enum): Likewise.
3598         (bp_pack_enum): Likewise.
3599         (bp_unpack_enum): Likewise.
3600         * streamer-hooks.c: New.
3601         * streamer-hooks.h: New.
3602         * tree-streamer-in.c: New.
3603         * tree-streamer-out.c: New.
3604         * tree-streamer.c: New.
3605         * tree-streamer.h: New.
3606
3607 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3608
3609         * gthr-posix95.h: Remove.
3610         * gthr.h [_PTHREADS95]: Remove.
3611         * configure.ac (enable_threads): Remove posix95.
3612         * configure: Regenerate.
3613         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3614
3615 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
3616
3617         PR target/49781
3618         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3619         SImode addresses.
3620         (ix86_print_operand_address): Handle zero-extended addresses.
3621         (memory_address_length): Add length of addr32 prefix for
3622         zero-extended addresses.
3623         (ix86_secondary_reload): Handle moves to/from double-word general
3624         registers from/to zero-extended addresses.
3625         * config/i386/predicates.md (lea_address_operand): Reject
3626         zero-extended operands.
3627
3628 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3629
3630         PR other/48007
3631         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3632
3633         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3634         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3635
3636         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3637         (_Unwind_Context_Reg_Val): Likewise.
3638         (_Unwind_Get_Unwind_Word): Likewise.
3639         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3640         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3641         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3642         for EXTENDED_CONTEXT_BIT.
3643         (__frame_state_for): Likewise.
3644         (uw_init_context_1): Likewise.
3645         (_Unwind_GetGR): Updated.
3646         (_Unwind_SetGR): Likewise.
3647         (_Unwind_GetGRPtr): Likewise.
3648         (_Unwind_SetGRPtr): Likewise.
3649         (_Unwind_SetGRValue): Likewise.
3650         (_Unwind_GRByValue): Likewise.
3651         (uw_install_context_1): Likewise.
3652
3653         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3654         ASSUME_EXTENDED_UNWIND_CONTEXT.
3655         * doc/tm.texi: Regenerated.
3656
3657 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3658
3659         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3660
3661 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3662
3663         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3664         Linux/GNU-specific.
3665         (DEC Alpha Options, -mtune): Likewise.
3666         (MIPS Options, -march): native is supported on IRIX.
3667
3668 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3669
3670         * config/sparc/driver-sparc.c: New file.
3671         * config/sparc/x-sparc: New file.
3672         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3673         * config/sparc/sparc.opt (native): New value for enum processor_type.
3674         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3675         * config/sparc/sparc.c (sparc_option_override): Abort if
3676         PROCESSOR_NATIVE gets here.
3677         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3678         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3679         DRIVER_SELF_SPECS): Define.
3680         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3681         (SPARC Options, -mtune): Likewise.
3682         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3683         Substitute result.
3684         * configure: Regenerate.
3685         * Makefile.in (EXTRA_GCC_LIBS): Set.
3686         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3687         (cpp$(exeext)): Likewise.
3688
3689 2011-08-08  Richard Guenther  <rguenther@suse.de>
3690
3691         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3692         split out from ...
3693         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3694         by composition.
3695
3696 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3697
3698         PR tree-optimization/50005
3699         * ipa-inline-analysis (remap_predicate): Add cast to
3700         silence signed/unsigned comparison warning.
3701
3702 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3703
3704         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3705         Print the current ii.
3706         (sms_schedule_by_order): Reduce whitespace in dump line.
3707
3708 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3709
3710         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3711         and one loop for successors.  Fix upper bound of memory range.
3712
3713 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3714
3715         PR target/50001
3716         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3717         (TARGET_INSTANTIATE_DECLS): New define.
3718
3719 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3720             Mikael Morin   <mikael.morin@sfr.fr>
3721
3722         * Makefile.in (INCLUDES_FOR_TARGET): New.
3723         (LIBGCC2_CFLAGS): Use it.
3724         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3725
3726 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3727
3728         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3729         frame->save_regs_using_mov calculation.
3730
3731 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3732
3733         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3734         * config/i386/sse.md (castmode): New mode attribute.
3735         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3736         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3737
3738 2011-08-05  Jan Hubicka  <jh@suse.cz>
3739
3740         PR middle-end/49494
3741         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3742
3743 2011-08-05  Jan Hubicka  <jh@suse.cz>
3744
3745         PR middle-end/49500
3746         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3747         handle aliases.
3748         (create_emultls_var):New function.
3749         (ipa_lower_emutls): Handle aliases correctly.
3750
3751 2011-08-05  Jan Hubicka  <jh@suse.cz>
3752
3753         PR middle-end/49735
3754         * ipa-inline.c (recursive_inlining): Look through aliases.
3755
3756 2011-08-05  Jason Merrill  <jason@redhat.com>
3757
3758         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3759         declarations to beginning of function.
3760
3761 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3762
3763         PR rtl-optimization/49900
3764         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3765         ensure basic blocks stay in the same order.
3766
3767 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3768
3769         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3770         store_bit_field.
3771         (s390_expand_atomic): Same.
3772
3773 2011-08-05  Richard Henderson  <rth@redhat.com>
3774
3775         PR rtl-opt/49977
3776         * dwarf2cfi.c (scan_insn_after): Split out of ...
3777         (scan_trace): ... here.  Correctly place notes wrt sequences.
3778
3779 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3780             Richard Henderson  <rth@redhat.com>
3781
3782         PR rtl-opt/49982
3783         * expr.c (fixup_args_size_notes): Look through no-op moves.
3784
3785 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3786
3787         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3788         of "m" for operand 0.  Add type and mode attribute.
3789         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3790         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3791         constraint instead of "o" for opreand 1.
3792         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3793         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3794         operand 0, alternative 4.
3795         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3796
3797 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3798
3799         * config/i386/predicates.md (lea_address_operand): Rename from
3800         no_seg_address_operand.
3801         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3802         (*lea_1_zext): Ditto.
3803         (*lea_2): Ditto.
3804         (*lea_2_zext): Ditto.
3805
3806 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3807
3808         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3809         parts.base and parts.index.
3810         * config/i386/predicates.md (aligned_operand): Ditto.
3811         (cmpxchg8b_pic_memory_operand): Ditto.
3812
3813 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3814
3815         * config/soft-fp: Move to ../libgcc.
3816         * Makefile.in (SFP_MACHINE): Remove.
3817         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3818         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3819         * config/arm/t-arm-softfp: Move to
3820         ../libgcc/config/arm/t-softfp.
3821         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3822         * config/c6x/t-c6x-softfp: Remove.
3823         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3824         * config/i386/t-fprules-softfp: Move to
3825         ../libgcc/config/t-softfp-tf.
3826         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3827         * config/ia64/t-fprules-softfp: Remove.
3828         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3829         * config/lm32/t-fprules-softfp: Remove.
3830         * config/moxie/sfp-machine.h: Remove.
3831         * config/moxie/t-moxie-softfp: Remove.
3832         * config/rs6000/darwin-ldouble-format: Move to
3833         ../libgcc/config/rs6000/ibm-ldouble-format.
3834         * config/rs6000/darwin-ldouble.c: Move to
3835         ../libgcc/config/rs6000/ibm-ldouble.c
3836         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3837         * config/rs6000/libgcc-ppc64.ver: Likewise.
3838         * config/rs6000/sfp-machine.h: Likewise.
3839         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3840         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3841         (LIB2FUNCS_EXTRA): Remove.
3842         (TARGET_LIBGCC2_CFLAGS): Remove.
3843         * config/rs6000/t-aix52: Likewise
3844         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3845         $(srcdir)/config/rs6000/darwin-ldouble.c.
3846         (SHLIB_MAPFILES): Remove.
3847         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3848         $(srcdir)/config/rs6000/darwin-ldouble.c.
3849         * config/rs6000/t-fprules-softfp: Move to
3850         ../libgcc/config/t-softfp-sfdf.
3851         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3852         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3853         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3854         $(srcdir)/config/rs6000/darwin-ldouble.c.
3855         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3856         * config/score/t-score-softfp: Remove.
3857         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3858         soft-fp/t-softfp from tmake_file.
3859         (arm*-*-uclinux*): Likewise.
3860         (arm*-*-ecos-elf): Likewise.
3861         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3862         (arm*-*-rtems*): Likewise.
3863         (arm*-*-elf): Likewise.
3864         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3865         tmake_file.
3866         (moxie-*-uclinux*): Likewise.
3867         (moxie-*-rtems*): Likewise.
3868         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3869         tmake_file.
3870         (lm32-*-rtems*): Likewise.
3871         (lm32-*-uclinux*): Likewise.
3872         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3873         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3874         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3875         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3876         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3877         tmake_file.
3878         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3879         tmake_file.
3880         (tic6x-*-uclinux): Likewise.
3881         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3882         soft-fp/t-softfp from tmake_file.
3883         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3884         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3885         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3886         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3887         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3888
3889 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3890
3891         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3892         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3893         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3894         TPBIT, TPBIT_FUNCS.
3895         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3896         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3897         Remove.
3898         * config/arm/t-vxworks: Likewise.
3899         * config/arm/t-wince-pe: Likewise.
3900         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3901         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3902         * config/bfin/t-bfin-elf: Likewise.
3903         * config/bfin/t-bfin-linux: Likewise.
3904         * config/bfin/t-bfin-uclinux: Likewise.
3905         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3906         Remove.
3907         * config/fr30/t-fr30: Likewise.
3908         * config/frv/t-frv: Likewise.
3909         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3910         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3911         * config/m32c/t-m32c: Likewise.
3912         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3913         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3914         * config/mcore/t-mcore: Likewise.
3915         * config/mep/t-mep: Likewise.
3916         * config/microblaze/t-microblaze: Likewise.
3917         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3918         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3919         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3920         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3921         * config/mn10300/t-linux: Remove.
3922         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3923         * config/pdp11/t-pdp11: Likewise.
3924         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3925         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3926         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3927         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3928         * config/rs6000/t-aix52: Likewise.
3929         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3930         $(srcdir)/config/rs6000/ppc64-fp.c.
3931         * config/rs6000/t-fprules-fpbit: Remove.
3932         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3933         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3934         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3935         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3936         * config/sparc/t-elf: Likewise.
3937         * config/sparc/t-leon: Likewise.
3938         * config/sparc/t-leon3: Likewise.
3939         * config/spu/t-spu-elf: Likewise.
3940         (DPBIT_FUNCS): Remove.
3941         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3942         * config/v850/t-v850: Likewise.
3943         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3944         (avr-*-*): Likewise.
3945         (h8300-*-rtems*): Set libgcc_tm_file.
3946         (h8300-*-elf*): Likewise.
3947         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3948         tmake_file.
3949         (powerpc-*-eabisim*): Likewise.
3950         (powerpc-*-elf*): Likewise.
3951         (powerpc-*-eabialtivec*): Likewise.
3952         (powerpc-xilinx-eabi*): Likewise.
3953         (powerpc-*-eabi*): Likewise.
3954         (powerpc-*-rtems*): Likewise.
3955         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3956         (powerpcle-*-elf*): Likewise.
3957         (powerpcle-*-eabisim*): Likewise.
3958         (powerpcle-*-eabi*): Likewise.
3959         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3960         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3961         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3962         Remove.
3963
3964 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3965
3966         * Makefile.in (UNWIND_H): Remove.
3967         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3968         ../libgcc/Makefile.in.
3969         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3970         (LIBUNWINDDEP): Remove.
3971         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3972         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3973         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3974         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3975         Don't copy $(UNWIND_H).
3976         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3977         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3978         * aclocal.m4: Regenerate.
3979         * configure: Regenerate.
3980         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3981         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3982         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3983         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3984         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3985         * config/arm/libunwind.S, config/arm/pr-support.c,
3986         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3987         ../libgcc/config/arm.
3988         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3989         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3990         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3991         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3992         ($(T)frvend$(objext)): Likewise.
3993         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3994         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3995         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3996         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3997         ../libgcc/config/ia64.
3998         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3999         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4000         * config/ia64/t-vms (LIB2ADDEH): Remove.
4001         * config/ia64/vms.h (UNW_IVMS_MODE,
4002         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4003         * config/picochip/t-picochip (LIB2ADDEH): Remove.
4004         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4005         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4006         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4007         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4008         $(srcdir)/../libgcc to refer to unwinder sources.
4009         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4010         * config/t-darwin (LIB2ADDEH): Remove.
4011         * config/t-freebsd (LIB2ADDEH): Remove.
4012         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4013         * config/t-libunwind-elf: Move to ../libgcc/config.
4014         * config/t-linux (LIB2ADDEH): Remove.
4015         * config/t-sol2 (LIB2ADDEH): Remove.
4016         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4017         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4018
4019 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
4020
4021         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4022
4023         * doc/invoke.texi: Document core-avx-i.
4024
4025 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4026
4027         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4028
4029 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
4030
4031         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4032         result of multiple results reduction when extracting the final
4033         value using scalar code.
4034
4035 2011-08-05  Richard Guenther  <rguenther@suse.de>
4036
4037         PR tree-optimization/49984
4038         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4039
4040 2011-08-05  Richard Guenther  <rguenther@suse.de>
4041
4042         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4043         return true for constant integer ranges.
4044         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4045         BIT_IOR_EXPR handling.
4046
4047 2011-08-04  Kai Tietz  <ktietz@redhat.com>
4048
4049         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4050         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4051
4052 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
4053
4054         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4055         pattern def statement, and its access macro.
4056         (NUM_PATTERNS): Set to 5.
4057         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4058         pattern def statement.
4059         (vect_transform_loop): Likewise.
4060         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4061         function vect_recog_over_widening_pattern ().
4062         (vect_operation_fits_smaller_type): New function.
4063         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4064         Likewise.
4065         (vect_pattern_recog_1): Move the code that marks pattern
4066         statements to vect_mark_pattern_stmts (), and call it.  Update
4067         documentation.
4068         * tree-vect-stmts.c (vect_supportable_shift): New function.
4069         (vect_analyze_stmt): Handle pattern def statement.
4070         (new_stmt_vec_info): Initialize pattern def statement.
4071
4072 2011-08-04  Richard Henderson  <rth@redhat.com>
4073
4074         PR target/49964
4075         * config/i386/i386.c (ix86_expand_call): Don't create nested
4076         PARALLELs for TARGET_VZEROUPPER.
4077         (ix86_split_call_vzeroupper): Fix extraction of the original call.
4078         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4079         recognize nested PARALLELs.
4080         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4081         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4082         *sibcall_value_pop_vzeroupper): Likewise.
4083
4084 2011-08-04  Richard Henderson  <rth@redhat.com>
4085
4086         PR middle-end/49968
4087         * calls.c (expand_call): Use fixup_args_size_notes for
4088         emit_stack_restore.
4089         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4090         in non-standard modes.
4091
4092 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4093
4094         * gcc.c (self_spec): New variable.
4095         (static_specs): Add self_spec.
4096         (main): Call do_self_spec on "self_spec" specs after reading
4097         user specs files.  Move compare_debug handling right after that.
4098
4099 2011-08-04  Richard Guenther  <rguenther@suse.de>
4100
4101         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4102         (value_range_nonnegative_p): New function.
4103         (ssa_name_nonnegative_p): Use it.
4104         (value_range_constant_singleton): New function.
4105         (op_with_constant_singleton_value_range): Use it.
4106         (extract_range_from_binary_expr_1): New function, split out from ...
4107         (extract_range_from_binary_expr): ... this.  Remove fallback
4108         constant folding done here.
4109
4110 2011-08-04  Richard Guenther  <rguenther@suse.de>
4111
4112         PR tree-optimization/49806
4113         * tree-vrp.c (op_with_boolean_value_range_p): New function.
4114         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
4115         a new statement for a final conversion to bool.
4116
4117 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
4118
4119         * gengtype-state.c: Include "bconfig.h" if
4120         GENERATOR_FILE is defined, "config.h" otherwise.
4121         * gengtype.c: Likewise.
4122         * gengtype-lex.l: Likewise.
4123         * gengtype-parse.c: Likewise.
4124         * Makefile.in (gengtype-lex.o-warn): New variable.
4125         (plugin_resourcesdir): Likewise.
4126         (plugin_bindir): Likewise.
4127         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4128         (MOSTLYCLEANFILES): Add gengtype$(exeext).
4129         (native): Depend on gengtype$(exeext) is $enable_plugin
4130         is set to "yes".
4131         (gtype.state): Depend on s-gtype. Use temporary file.
4132         (gengtype-lex.o): New rule.
4133         (gengtype-parse.o): Likewise.
4134         (gengtype-state.o): Likewise.
4135         (gengtype$(exeext)): Likewise.
4136         (install-gengtype): Likewise.
4137         (gengtype.o): Likewise.
4138         (build/gengtype.o): Depend on version.h.
4139         (build/gengtype-state): Depend on double-int.h, version.h,
4140         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4141         (install-plugin): Depend on install-gengtype.
4142
4143 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4144
4145         PR middle-end/49905
4146         * tree.h (init_attributes): New prototype.
4147         * attribs.c (init_attributes): No longer static.
4148
4149 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4150
4151         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4152         maybe_suffix.
4153
4154 2011-08-03   David Li  <davidxl@google.com>
4155
4156         * tree-optimize.c (execute_fixup_cfg): Fix up entry
4157         outgoing edge counts after inlining.
4158
4159 2011-08-03   David Li  <davidxl@google.com>
4160
4161         * profile.c (compute_branch_probabilities): Compute
4162         function frequency after profile annotation.
4163
4164 2011-08-04  Alan Modra  <amodra@gmail.com>
4165
4166         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4167         use_backchain_to_restore_sp initialisation.
4168         (rs6000_legitimate_offset_address_p): Simplify offset test.
4169
4170 2011-08-03  Richard Henderson  <rth@redhat.com>
4171
4172         * config/spu/spu.md: Use define_c_enum instead of define_constants.
4173         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4174         (UNSPECV_NOP): New.
4175
4176 2011-08-03  Richard Henderson  <rth@redhat.com>
4177
4178         PR target/34888
4179         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4180
4181 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
4182
4183         PR tree-optimization/49948
4184         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4185
4186 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
4187
4188         * config/m32c/m32c.c (class_sizes): Remove.
4189         (reduce_class): Change arguments and return type to reg_class_t.
4190         Change type cc var to HARD_REG_SET. Change type best var to
4191         reg_class_t. Change type best_size var to unsigned int. Remove
4192         initialization class_sizes var. Use reg_class_size array instead
4193         of class_sizes. Use reg_class_contents array instead
4194         of class_contents.
4195
4196 2011-08-03  Richard Guenther  <rguenther@suse.de>
4197
4198         PR middle-end/49958
4199         * fold-const.c (fold_binary_loc): Only associate
4200         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4201         overflow wraps.
4202
4203 2011-08-03  Alan Modra  <amodra@gmail.com>
4204
4205         PR rtl-optimization/49941
4206         * jump.c (mark_jump_label): Comment.
4207         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4208         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4209         (mark_used_flags): Don't mark RETURN.
4210
4211 2011-08-03  Richard Guenther  <rguenther@suse.de>
4212
4213         PR tree-optimization/49938
4214         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4215         deal with a POLYNOMIAL_CHREC.
4216
4217 2011-08-03  Revital Eres  <revital.eres@linaro.org>
4218
4219         * modulo-sched.c (calculate_stage_count,
4220         calculate_must_precede_follow, get_sched_window,
4221         try_scheduling_node_in_cycle, remove_node_from_ps): Add
4222         declaration.
4223         (update_node_sched_params, set_must_precede_follow, optimize_sc):
4224         New functions.
4225         (reset_sched_times): Call update_node_sched_params.
4226         (sms_schedule): Call optimize_sc.
4227         (get_sched_window): Change function arguments.
4228         (sms_schedule_by_order): Update call to get_sched_window.
4229         Call set_must_precede_follow.
4230         (calculate_stage_count): Add function argument.
4231
4232 2011-08-02  Richard Henderson  <rth@redhat.com>
4233
4234         PR target/49864
4235         PR target/49879
4236         * reg-notes.def (REG_ARGS_SIZE): New.
4237         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4238         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4239         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4240         different stack levels.
4241         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4242         (maybe_move_args_size_note): New.
4243         (combine_stack_adjustments_for_block): Use it.
4244         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4245         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4246         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4247         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4248         (cur_cfa): New.
4249         (queued_args_size): Remove.
4250         (add_cfi_args_size): Assert size is non-negative.
4251         (stack_adjust_offset, dwarf2out_args_size): Remove.
4252         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4253         (notice_args_size, notice_eh_throw): New.
4254         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4255         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4256         (dwarf2out_frame_debug_cfa_offset): Likewise.
4257         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
4258         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4259         (change_cfi_row): Don't emit args_size.
4260         (maybe_record_trace_start_abnormal): Split out from ...
4261         (maybe_record_trace_start): Here.  Set args_size_undefined.
4262         (create_trace_edges): Update to match.
4263         (scan_trace): Handle REG_ARGS_SIZE.
4264         (connect_traces): Connect args_size between EH insns.
4265         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4266         * explow.c (suppress_reg_args_size): New.
4267         (adjust_stack_1): Split out from ...
4268         (adjust_stack): ... here.
4269         (anti_adjust_stack): Use it.
4270         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4271         * expr.c (mem_autoinc_base): New.
4272         (fixup_args_size_notes): New.
4273         (emit_single_push_insn_1): Rename from emit_single_push_insn.
4274         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
4275         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4276         * reload1.c (reload_as_needed): Likewise.
4277         * rtl.h (fixup_args_size_notes): Declare.
4278
4279 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
4280
4281         PR bootstrap/49914
4282         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4283         of abs.
4284         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4285         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4286
4287 2011-08-02  Richard Henderson  <rth@redhat.com>
4288
4289         * config/h8300/h8300.c (push, pop): Return the insn.
4290         (h8300_swap_into_er6): Generate correct unwind info.
4291         (h8300_swap_out_of_er6): Likewise.
4292         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4293         complex cfa expression.
4294         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4295
4296 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
4297
4298         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4299
4300 2011-08-02  Richard Henderson  <rth@redhat.com>
4301
4302         PR target/49878
4303         * config/h8300/h8300.c (h8300_move_ok): New.
4304         * config/h8300/h8300-protos.h: Declare it.
4305         * config/h8300/h8300.md (P): New mode iterator.
4306         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4307         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4308         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4309         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4310         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4311         and pushqi1_h8300hs_normal; use PRE_MODIFY and
4312         register_no_sp_elim_operand.
4313         (*pushhi1_h8300hs_<P>): Similarly.
4314         (pushqi1, pushhi1, pushhi1_h8300): Remove.
4315         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4316
4317 2011-08-02  Richard Henderson  <rth@redhat.com>
4318
4319         PR target/49881
4320         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4321
4322 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * c-parser.c (enum c_parser_prec): New enum, moved from within
4325         c_parser_binary_expression.
4326         (c_parser_binary_expression): Add PREC argument.  Stop parsing
4327         if operator has lower or equal precedence than PREC.
4328         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4329         callers.
4330         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4331         Adjust c_finish_omp_atomic caller.
4332         (c_parser_omp_taskyield): New function.
4333         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4334         (c_parser_omp_clause_name): Handle final and mergeable clauses.
4335         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4336         functions.
4337         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4338         and PRAGMA_OMP_CLAUSE_MERGEABLE.
4339         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4340         (c_parser_omp_clause_reduction): Handle min and max.
4341         * c-typeck.c (c_finish_omp_clauses): Don't complain about
4342         const qualified predetermined vars in firstprivate clause.
4343         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4344         Handle MIN_EXPR and MAX_EXPR.
4345         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4346         and OMP_CLAUSE_MERGEABLE.
4347         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4348         and OMP_ATOMIC_CAPTURE_NEW.
4349         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4350         OMP_CLAUSE_MERGEABLE.
4351         (omp_clause_code_name): Likewise.
4352         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4353         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4354         and OMP_CLAUSE_MERGEABLE.
4355         (OMP_CLAUSE_FINAL_EXPR): Define.
4356         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4357         OMP_CLAUSE_MERGEABLE.
4358         (expand_task_call): Likewise.
4359         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4360         (expand_omp_atomic_fetch_op): Handle cases where old or new
4361         value is needed afterwards.
4362         (expand_omp_atomic): Call expand_omp_atomic_load resp.
4363         expand_omp_atomic_store.
4364         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4365         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4366         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4367         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4368         * tree-nested.c (convert_nonlocal_omp_clauses,
4369         convert_local_omp_clauses): Likewise.
4370         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4371         OMP_ATOMIC_CAPTURE_NEW): New.
4372         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4373         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4374         New inlines.
4375         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4376         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4377         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4378
4379 2011-08-02  Kai Tietz  <ktietz@redhat.com>
4380
4381         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4382         boolean-type.
4383         (ssa_forward_propagate_and_combine): Interprete result of
4384         forward_propagate_comparison.
4385         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4386         boolean-typed operands for comparisons.
4387
4388 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
4389
4390         * config/avr/libgcc.S: Gather related function in the
4391         same input section.
4392         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4393         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4394         references.
4395         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4396         __udivmodsi4, __divmodsi4, __prologue_saves__,
4397         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4398         __do_copy_data, __do_clear_bss, __do_global_ctors,
4399         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4400
4401 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
4402
4403         PR target/47766
4404         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4405         (stack_protect_test): The pattern compares ptr_mode value.
4406
4407 2011-08-02  Alan Modra  <amodra@gmail.com>
4408
4409         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4410         note for save_LR_around_toc_setup sequence.
4411
4412 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4413
4414         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4415
4416 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4417             Joseph Myers  <joseph@codesourcery.com>
4418
4419         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4420         * hwint.c: Include diagnostic-core.h.
4421         (abs_hwi): New.
4422         (gcd): Moved here...
4423         (pos_mul_hwi): New.
4424         (mul_hwi): New.
4425         (least_common_multiple): Moved here...
4426         * hwint.h (gcd): ... from here.
4427         (least_common_multiple): ... from here.
4428         (HOST_WIDE_INT_MIN): New.
4429         (HOST_WIDE_INT_MAX): New.
4430         (abs_hwi): Declared.
4431         (gcd): Declared.
4432         (pos_mul_hwi): Declared.
4433         (mul_hwi): Declared.
4434         (least_common_multiple): Declared.
4435         * omega.c (check_pos_mul): Removed.
4436         (check_mul): Removed.
4437         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4438         mul_hwi instead of check_mul.
4439
4440 2011-08-01  Richard Henderson  <rth@redhat.com>
4441
4442         PR target/49881
4443         * config/avr/avr.h (PUSH_ROUNDING): New.
4444         * config/avr/avr.md (pushqi1): Rename from *pushqi.
4445         (*pushhi, *pushsi, *pushsf): Remove.
4446         (MPUSH): New mode iterator.
4447         (push<MPUSH>1): New expander.
4448
4449 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
4450
4451         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4452         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4453         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4454         mmix_preferred_output_reload_class): Remove.
4455         * config/mmix/mmix.c (mmix_preferred_reload_class,
4456         mmix_preferred_output_reload_class): Make static. Change rclass
4457         argument and return type to reg_class_t.
4458         (TARGET_PREFERRED_RELOAD_CLASS,
4459         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4460
4461 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4462
4463         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4464         handling.
4465
4466 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4467
4468         PR target/47766
4469         * config/i386/i386.md (PTR): New.
4470         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4471         (stack_protect_test): Likewise.
4472         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4473         (stack_tls_protect_set_<mode>): Likewise.
4474         (stack_tls_protect_test_<mode>): Likewise.
4475
4476 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
4477
4478         PR target/49927
4479         * config/i386/i386.c (ix86_address_subreg_operand): New.
4480         (ix86_decompose_address): Use ix86_address_subreg_operand.
4481         (ix86_legitimate_address_p): Do not assert that subregs satisfy
4482         register_no_elim_operand in DImode.
4483
4484 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
4485
4486         PR tree-optimization/49926
4487         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4488         in a chain doesn't have uses both inside and outside the loop.
4489
4490 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4491
4492         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4493         * config/avr/avr-devices.c (avr_mcu_types): Use it.
4494         * config/avr/avr-mcus.def (AVR_MCU): Use it.
4495         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4496         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4497         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4498         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4499         to detect if XJMP must not be skipped.
4500
4501 2011-08-02  Alan Modra  <amodra@gmail.com>
4502
4503         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4504         Delete.
4505         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4506         (rs6000_emit_prologue): Don't prematurely return when
4507         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
4508         save_toc_in_prologue case.
4509         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4510         calls_alloca.
4511
4512 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4513
4514         * config/avr/avr-devices.c: Delete SVN property svn:executable.
4515         * config/avr/predicates.md: Ditto.
4516         * config/avr/driver-avr.c: Ditto.
4517         * config/avr/genopt.sh: Set SVN property svn:executable to *.
4518
4519 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4520
4521         * calls.c (emit_library_call_value_1): Declare size only if
4522         BLOCK_REG_PADDING is defined.
4523
4524 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
4525
4526         PR target/49547
4527         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4528         (x86_64-*-*): Likewise.
4529         * config/i386/i386.opt (mlzcnt): New.
4530         * config/i386/abmintrin.h: File removed.
4531         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4532         * config/i386/lzcntintrin.h: ... here.  New file.
4533         (__lzcnt): Rename to ...
4534         (__lzcnt32): ... this.
4535         * config/i386/bmiintrin.h (head): Update copyright year.
4536         (__lzcnt_u16): Removed.
4537         (__lzcnt_u32): Likewise.
4538         (__lzcnt_u64): Likewise.
4539         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4540         is defined, remove abmintrin.h.
4541         * config/i386/cpuid.h (bit_LZCNT): New.
4542         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4543         LZCNT feature.
4544         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4545         __LZCNT__ if needed.
4546         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4547         (ix86_option_override_internal): Handle LZCNT option.
4548         (ix86_valid_target_attribute_inner_p): Likewise.
4549         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4550         * config/i386/i386.h (TARGET_LZCNT): New.
4551         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4552         * config/i386/i386.md (clz<mode>2): Update insn constraint.
4553         (clz<mode>2_lzcnt): Likewise.
4554         * doc/invoke.texi: Mention -mlzcnt option.
4555         * doc/extend.texi: Likewise.
4556
4557 2011-08-01  Julian Brown  <julian@codesourcery.com>
4558
4559         * configure.ac (fixed-point): Add ARM support.
4560         * configure: Regenerate.
4561         * config/arm/arm.c (arm_fixed_mode_set): New struct.
4562         (arm_set_fixed_optab_libfunc): New.
4563         (arm_set_fixed_conv_libfunc): New.
4564         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4565         ARM-specific names.
4566         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4567         return values in SImode.
4568         (arm_return_in_msb): Return fixed-point types in the msb.
4569         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4570         upwards.
4571         (arm_scalar_mode_supported_p): Support fixed-point modes.
4572         (arm_vector_mode_supported_p): Support vector fixed-point modes.
4573         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4574         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4575         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4576         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4577         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4578         New mode iterators.
4579         (qaddsub_suf): New mode attribute.
4580         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4581         vector modes.
4582         * config/arm/predicates.md (sat_shift_operator): New predicate.
4583         * config/arm/arm-fixed.md: New.
4584         * config/arm/arm.md: Include arm-fixed.md.
4585         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4586
4587 2011-08-01  Julian Brown  <julian@codesourcery.com>
4588
4589         * calls.c (emit_library_call_value_1): Support padding for libcall
4590         arguments and return values.
4591         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4592         downwards in big-endian mode.
4593
4594 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4595
4596         PR debug/49887
4597         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4598         * config/sol2-protos.h: Likewise.
4599         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4600         solaris_code_end.
4601         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4602         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4603         solaris_file_end.
4604         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4605
4606 2011-08-01  Julian Brown  <julian@codesourcery.com>
4607
4608         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4609
4610 2011-08-01  Julian Brown  <julian@codesourcery.com>
4611
4612         * final.c (output_addr_const): Print fixed-point constants as
4613         decimal not hex.
4614
4615 2011-08-01  Richard Guenther  <rguenther@suse.de>
4616
4617         * stor-layout.c (initialize_sizetypes): Properly sign-extend
4618         bitsiztype TYPE_MAX_VALUE.
4619
4620 2011-08-01  Julian Brown  <julian@codesourcery.com>
4621
4622         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4623         comparison helpers.
4624
4625 2011-07-31  Richard Henderson  <rth@redhat.com>
4626
4627         * config/h8300/crti.asm: Add flags to .section directive.
4628         * config/h8300/crtn.asm: Likewise.
4629
4630 2011-07-31  Richard Henderson  <rth@redhat.com>
4631
4632         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4633         * tree.c (build_common_tree_nodes): Likewise.
4634
4635 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4636
4637         PR target/49880
4638         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4639         (divsi3_i1): Likewise.
4640
4641 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4642
4643         PR tree-optimization/49749
4644         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4645         (PHI_LOOP_BIAS): New macro.
4646         (phi_rank): New function.
4647         (loop_carried_phi): Likewise.
4648         (propagate_rank): Likewise.
4649         (get_rank): Add calls to phi_rank and propagate_rank.
4650
4651 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4652
4653         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4654         of TARGET_64BIT.
4655         (PTRDIFF_TYPE): Likewise.
4656
4657 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4658
4659         PR target/49920
4660         * config/i386/i386.md (strset): Do not expand strset_singleop
4661         when %eax or $edi are fixed.
4662         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4663         (*strsetsi_1): Ditto.
4664         (*strsethi_1): Ditto.
4665         (*strsetqi_1): Ditto.
4666         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4667         (*rep_stossi): Ditto.
4668         (*rep_stosqi): Ditto.
4669         (*strlenqi_1): Ditto.
4670         (cmpstrnsi): Also fail when %ecx is fixed.
4671         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4672         (*cmpstrnqi_1): Ditto.
4673         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4674         (*strmovsi_1): Ditto.
4675         (*strmovhi_1): Ditto.
4676         (*strmovqi_1): Ditto.
4677         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4678         (*rep_movsi): Ditto.
4679         (*rep_movqi): Ditto.
4680
4681 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4682
4683         PR target/47908
4684         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4685         Disable instruction scheduling for non-ColdFire targets.
4686         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4687
4688 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4689
4690         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4691         of anti-dep edge from a branch.
4692         (add_cross_iteration_register_deps): Create anti-dep edge from
4693         a branch.
4694
4695 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4696
4697         * modulo-sched.c: Change comment.
4698         (reset_sched_times): Fix print message.
4699         (print_partial_schedule): Add print info.
4700
4701 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4702
4703         PR middle-end/43513
4704         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4705         get_object_alignment and TYPE_ALIGN.
4706
4707 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4708
4709         PR middle-end/43513
4710         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4711         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4712
4713 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4714
4715         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4716         <sys/sbd.h>.
4717         (cpu_types): New array.
4718         (cputype): New function.
4719         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4720         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4721         * config.host: Also use driver-native.o, mips/x-native on
4722         mips-sgi-irix*.
4723         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4724         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4725         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4726
4727 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4728
4729         PR middle-end/49897
4730         PR middle-end/49898
4731         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4732         in nested parallel and outer is a gimple_reg, mark it as addressable
4733         and set its bit in task_shared_vars bitmap too.
4734
4735 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4736
4737         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4738
4739 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4740
4741         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4742         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4743         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4744         AMASK_LOCKPFTCHOK): Define.
4745         (host_detect_local_cpu): Remove buf, f, cpu_names.
4746         Define cpu_types, implver, amask.
4747         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4748         native CPU.
4749         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4750         alpha*-dec-osf*.
4751         * config/alpha/osf5.h [__alpha__ || __alpha]
4752         (host_detect_local_cpu): Declare.
4753         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4754         (DRIVER_SELF_SPECS): Define.
4755
4756 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4757
4758         PR target/47715
4759         * config/i386/i386.md (*load_tp_x32): New.
4760         (*load_tp_x32_zext): Ditto.
4761         (*add_tp_x32): Ditto.
4762         (*add_tp_x32_zext): Ditto.
4763         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4764         (*add_tp_<mode>): Ditto.
4765         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4766         ptr_mode and convert to Pmode if needed.
4767
4768 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4769
4770         PR target/49687
4771         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4772         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4773         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4774         Add X to register footprint: Clobber r26/r27.
4775
4776 2011-07-29  Richard Guenther  <rguenther@suse.de>
4777
4778         * builtins.c (fold_builtin_signbit): Build the comparison
4779         with a proper type.
4780
4781 2011-07-29  Richard Guenther  <rguenther@suse.de>
4782
4783         PR tree-optimization/49893
4784         * tree-predcom.c (suitable_reference_p): Volatile references
4785         are not suitable.
4786
4787 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4788
4789         PR target/49313
4790         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4791         (__ctzsi2): Result for 0 may be undefined.
4792         (__ctzhi2): Result for 0 may be undefined.
4793         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4794         (__popcountsi2): Ditto. And don't clobber r26.
4795         (__popcountdi2): Ditto. And don't clobber r27.
4796         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4797         (parityhi2): New expand.
4798         (paritysi2): New expand.
4799         (popcounthi2): New expand.
4800         (popcountsi2): New expand.
4801         (clzhi2): New expand.
4802         (clzsi2): New expand.
4803         (ctzhi2): New expand.
4804         (ctzsi2): New expand.
4805         (ffshi2): New expand.
4806         (ffssi2): New expand.
4807         (copysignsf3): New insn.
4808         (bswapsi2): New expand.
4809         (*parityhi2.libgcc): New insn.
4810         (*parityqihi2.libgcc): New insn.
4811         (*paritysihi2.libgcc): New insn.
4812         (*popcounthi2.libgcc): New insn.
4813         (*popcountsi2.libgcc): New insn.
4814         (*popcountqi2.libgcc): New insn.
4815         (*popcountqihi2.libgcc): New insn-and-split.
4816         (*clzhi2.libgcc): New insn.
4817         (*clzsihi2.libgcc): New insn.
4818         (*ctzhi2.libgcc): New insn.
4819         (*ctzsihi2.libgcc): New insn.
4820         (*ffshi2.libgcc): New insn.
4821         (*ffssihi2.libgcc): New insn.
4822         (*bswapsi2.libgcc): New insn.
4823
4824 2011-07-29  Richard Guenther  <rguenther@suse.de>
4825
4826         * tree-vrp.c (get_value_range): Only set parameter default
4827         definitions to varying, leave others at undefined.
4828         (extract_range_from_binary_expr): Fix undefined handling.
4829         (vrp_visit_phi_node): Handle merged undefined state.
4830
4831 2011-07-29  Wei Guozhi  <carrot@google.com>
4832
4833         PR rtl-optimization/49799
4834         * combine.c (make_compound_operation): Check if the bit field is valid
4835         before change it to bit field extraction.
4836
4837 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4838
4839         PR rtl-optimization/49891
4840         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4841         newly created returnjumps.
4842
4843 2011-07-28  DJ Delorie  <dj@redhat.com>
4844
4845         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4846         local frame in a naked function, and produce a suitable error for
4847         that specific case.
4848
4849         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4850         registers to be reloaded in HI classes when the target is HI.
4851
4852 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4853
4854         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4855         bound_one, bound_two.
4856
4857 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4858
4859         PR middle-end/48648
4860         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4861         CLAST assignments.
4862         (translate_clast): Same.
4863         (translate_clast_assignment): New.
4864
4865 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4866
4867         PR tree-optimization/49876
4868         * sese.c (rename_uses): Do not return false on gloog_error: set
4869         the new_expr to integer_zero_node and continue code generation.
4870         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4871
4872 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4873
4874         PR debug/49846
4875         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4876         arguments also check if they aren't initialized with a MODE_INT
4877         mode of the same size.
4878
4879 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4880
4881         * expr.c (get_bit_range): Handle *MEM_REF's.
4882
4883 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4884
4885         * rtlanal.c (tablejump_p): False for returns.
4886         * reorg.c (first_active_target_insn): New static function.
4887         (find_end_label): Set JUMP_LABEL for a new returnjump.
4888         (optimize_skip, get_jump_flags, rare_destination,
4889         mostly_true_jump, get_branch_condition,
4890         steal_delay_list_from_target, own_thread_p,
4891         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4892         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4893         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4894         * jump.c (delete_related_insns): Likewise.
4895         (jump_to_label_p): New function.
4896         (redirect_target): New static function.
4897         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4898         (redirect_jump_1): Assert that the new label is nonnull.
4899         (redirect_jump): Likewise.
4900         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4901         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4902         exit block.
4903         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4904         changed.  Ensure that the right label is passed to redirect_jump.
4905         * function.c (emit_return_into_block,
4906         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4907         ret_rtx in their JUMP_LABEL.
4908         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4909         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4910         pass ret_rtx as label.
4911         * cfglayout.c (fixup_reorder_chain): Use
4912         force_nonfallthru_and_redirect rather than force_nonfallthru.
4913         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4914         * rtl.h (ANY_RETURN_P): New macro.
4915         (jump_to_label_p): Declare.
4916         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4917         JUMP_LABELs.
4918         (mark_target_live_regs): Likewise.
4919         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4920         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4921         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4922         alpha_tablejump_best_label): Remove functions.
4923         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4924         alpha_tablejump_best_label): Remove declarations.
4925         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4926         ret_rtx in JUMP_LABELs.
4927         * config/arm/arm.c (is_jump_table): Likewise.
4928
4929 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4930
4931         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4932         special predicate.  Remove explicit mode checks.
4933
4934 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4935
4936         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4937         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4938
4939         PR debug/49871
4940         * dwarf2out.c (size_of_die, value_format, output_die): Use
4941         DW_FORM_udata instead of DW_FORM_data[48] for
4942         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4943
4944 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4945
4946         * config/i386/i386.md (*tls_global_dynamic_64): Update
4947         length attribute.
4948
4949 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         PR target/47715
4952         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4953         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
4954         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4955         (tls_dynamic_gnu2_64): Ditto.
4956         (*tls_dynamic_gnu2_lea_64): Ditto.
4957         (*tls_dynamic_gnu2_call_64): Ditto.
4958         (*tls_dynamic_gnu2_combine_64): Ditto.
4959
4960 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4963
4964 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4965
4966         PR target/47364
4967         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4968
4969 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4970
4971         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4972         before the core constraints. Adjust attributes.
4973         ("*thumb2_movdf_vfp"): Likewise.
4974
4975 2011-07-28  Kai Tietz  <ktietz@redhat.com>
4976
4977         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4978         (simplify_truth_ops_using_ranges): Likewise.
4979         (build_assert_expr_for): Likewise.
4980         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4981         and handle BIT_NOT_EXPR for truth-operation.
4982
4983 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4984
4985         PR target/49313
4986         Undo r176835 from trunk
4987         2011-07-27  Georg-Johann Lay
4988
4989 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4990
4991         PR target/49687
4992         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4993         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4994         * config/avr/libgcc.S (__mulsi3): Rewrite.
4995         (__mulhisi3): Rewrite.
4996         (__umulhisi3): Rewrite.
4997         (__usmulhisi3): New.
4998         (__muluhisi3): New.
4999         (__mulshisi3): New.
5000         (__mulohisi3): New.
5001         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5002         declare.
5003         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5004         (pseudo_register_or_const_int_operand): New.
5005         (combine_pseudo_register_operand): New.
5006         (u16_operand): New.
5007         (s16_operand): New.
5008         (o16_operand): New.
5009         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5010         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5011         (any_extend, any_extend2): New code iterators.
5012         (extend_prefix): New code attribute.
5013         (mulsi3): Rewrite. Turn insn to expander.
5014         (mulhisi3): Ditto.
5015         (umulhisi3): Ditto.
5016         (usmulhisi3): New expander.
5017         (*mulsi3): New insn-and-split.
5018         (mulu<mode>si3): New insn-and-split.
5019         (muls<mode>si3): New insn-and-split.
5020         (mulohisi3): New insn-and-split.
5021         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5022         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5023         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5024         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5025         insn-and-split.
5026         (*mulsi3_call): Rewrite.
5027         (*mulhisi3_call): Rewrite.
5028         (*umulhisi3_call): Rewrite.
5029         (*usmulhisi3_call): New insn.
5030         (*muluhisi3_call): New insn.
5031         (*mulshisi3_call): New insn.
5032         (*mulohisi3_call): New insn.
5033         (extendqihi2): Use combine_pseudo_register_operand as predicate
5034         for operand 1.
5035         (extendqisi2): Ditto.
5036         (zero_extendqihi2): Ditto.
5037         (zero_extendqisi2): Ditto.
5038         (zero_extendhisi2): Ditto.
5039         (extendhisi2): Ditto. Don't early-clobber operand 0.
5040
5041 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5042
5043         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5044
5045 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5046
5047         PR tree-optimization/49471
5048         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5049         iv only when the largest type is unsigned.  Do not call
5050         lang_hooks.types.type_for_size.
5051
5052 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5053
5054         PR middle-end/45450
5055         * graphite-poly.c (apply_poly_transforms): Disable legality check
5056         after an openscop read.
5057
5058 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5059
5060         PR middle-end/47691
5061         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5062         copy_bb_and_scalar_dependences.
5063         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
5064         (graphite_copy_stmts_from_block): Update call to rename_uses.
5065         (copy_bb_and_scalar_dependences): Update call to
5066         graphite_copy_stmts_from_block.
5067         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5068
5069 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
5070
5071         PR target/49313
5072         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5073         (__ctzsi2): Result for 0 may be undefined.
5074         (__ctzhi2): Result for 0 may be undefined.
5075         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5076         (__popcountsi2): Ditto. And don't clobber r26.
5077         (__popcountdi2): Ditto. And don't clobber r27.
5078         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5079         (parityhi2): New expand.
5080         (paritysi2): New expand.
5081         (popcounthi2): New expand.
5082         (popcountsi2): New expand.
5083         (clzhi2): New expand.
5084         (clzsi2): New expand.
5085         (ctzhi2): New expand.
5086         (ctzsi2): New expand.
5087         (ffshi2): New expand.
5088         (ffssi2): New expand.
5089         (copysignsf3): New insn.
5090         (bswapsi2): New expand.
5091         (*parityhi2.libgcc): New insn.
5092         (*parityqihi2.libgcc): New insn.
5093         (*paritysihi2.libgcc): New insn.
5094         (*popcounthi2.libgcc): New insn.
5095         (*popcountsi2.libgcc): New insn.
5096         (*popcountqi2.libgcc): New insn.
5097         (*popcountqihi2.libgcc): New insn-and-split.
5098         (*clzhi2.libgcc): New insn.
5099         (*clzsihi2.libgcc): New insn.
5100         (*ctzhi2.libgcc): New insn.
5101         (*ctzsihi2.libgcc): New insn.
5102         (*ffshi2.libgcc): New insn.
5103         (*ffssihi2.libgcc): New insn.
5104         (*bswapsi2.libgcc): New insn.
5105
5106 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5107
5108         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5109         the mode of symbolic_opreand RTXes.
5110
5111 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5112
5113         * config/i386/predicates.md (x86_64_movabs_operand): Return false
5114         for pic_32bit_operand RTXes.
5115         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5116         in DImode.
5117
5118 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5119
5120         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5121         for 32-bit, too.
5122         (ix86_handle_abi_attribute): Allow function attributes
5123         ms_abi/sysv_abi in 32-bit mode, too.
5124         * doc/extend.texi: Adjust attribute documentation.
5125
5126         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5127         expression handling.
5128         (and_var_with_comparison_1): Likewise.
5129
5130 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
5131
5132         * params.h (ALLOW_STORE_DATA_RACES): New.
5133         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5134         * Makefile.in (expr.o): Depend on PARAMS_H.
5135         * machmode.h (get_best_mode): Add argument.
5136         * fold-const.c (optimize_bit_field_compare): Add argument to
5137         get_best_mode.
5138         (fold_truthop): Same.
5139         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5140         * expr.c (emit_group_store): Same.
5141         (copy_blkmode_from_reg): Same.
5142         (write_complex_part): Same.
5143         (optimize_bitfield_assignment_op): Add argument.
5144         Add argument to get_best_mode.
5145         (get_bit_range): New.
5146         (expand_assignment): Calculate maxbits and pass it down accordingly.
5147         (store_field): New argument.
5148         (expand_expr_real_2): New argument to store_field.  Include params.h.
5149         * expr.h (store_bit_field): New argument.
5150         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5151         into account maxbits.
5152         * calls.c (store_unaligned_arguments_into_pseudos): New argument
5153         to store_bit_field.
5154         * expmed.c (store_bit_field_1): New argument.  Use it.
5155         (store_bit_field): Same.
5156         (store_fixed_bit_field): Same.
5157         (store_split_bit_field): Same.
5158         (extract_bit_field_1): Pass new argument to get_best_mode.
5159         (extract_bit_field): Same.
5160         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5161         * doc/invoke.texi: Document parameter allow-store-data-races.
5162
5163 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
5164
5165         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5166
5167 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5168
5169         * tree-vrp.c (extract_range_from_binary_expr): Remove
5170         TRUTH-binary cases and add new bitwise-cases.
5171         (extract_range_from_assignment): Likewise.
5172         (register_edge_assert_for_1): Likeiwise.
5173         (register_edge_assert_for): Likewise.
5174         (simplify_truth_ops_using_ranges): Likewise.
5175         (simplify_stmt_using_ranges): Likewise.
5176
5177 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
5178
5179         PR target/47372
5180         * config/i386/i386.c (ix86_delegitimize_address): Call
5181         simplify_gen_subreg for PIC with mode of x only if modes of
5182         x and orig_x are different.
5183
5184 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
5185
5186         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5187         to GC allocated copy of the string.
5188         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5189         before .debug_line, not after it.
5190
5191 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5192
5193         PR middle-end/47046
5194         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5195         evolution_function_is_affine_p on CHREC_RIGHT.
5196
5197 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5198
5199         * tree-data-ref.c (max_stmt_executions_tree): Do not call
5200         lang_hooks.types.type_for_size.
5201
5202 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5203
5204         PR middle-end/47653
5205         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5206         loops using wrapping semantics.
5207
5208 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5209
5210         PR middle-end/48805
5211         * tree-scalar-evolution.c (instantiate_scev_r): Return
5212         chrec_dont_know for ADDR_EXPR.
5213
5214 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5215             H.J. Lu  <hongjiu.lu@intel.com>
5216
5217         PR target/47369
5218         PR target/49853
5219         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5220         if legitimize_tls_address returned operand in wrong mode. Allow
5221         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
5222         if legitimize_pic_address returned operand in wrong mode.
5223
5224 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5225
5226         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5227         return false for invariants.
5228
5229 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5230
5231         * config/i386/i386.md (add->lea splitter): Implement using SWI
5232         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
5233         (add->lea zext splitter): Change operand 2 predicate to
5234         x86_64_nonmemory_operand.
5235
5236 2011-07-26  Richard Guenther  <rguenther@suse.de>
5237
5238         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5239         frequency makes everything hot.
5240
5241 2011-07-26  Richard Guenther  <rguenther@suse.de>
5242
5243         PR tree-optimization/49840
5244         * tree-vrp.c (range_fits_type_p): Properly handle full
5245         double-int precision.
5246
5247 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5248
5249         PR bootstrap/49786
5250         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5251         counts.
5252         (update_specialized_profile): Likewise.
5253
5254 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5255             H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         PR target/47381
5258         PR target/49832
5259         PR target/49833
5260         * config/i386/i386.md (i): Change SImode attribute to "e".
5261         (g): Change SImode attribute to "rme".
5262         (di): Change SImode attribute to "nF".
5263         (general_operand): Change SImode attribute to x86_64_general_operand.
5264         (general_szext_operand): Change SImode attribute to
5265         x86_64_szext_general_operand.
5266         (immediate_operand): Change SImode attribute to
5267         x86_64_immediate_operand.
5268         (nonmemory_operand): Change SImode attribute to
5269         x86_64_nonmemory_operand.
5270         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5271         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
5272         (*lea_1): Use SWI48 mode iterator.
5273         (*lea_1_zext): New insn pattern.
5274         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5275         (*bt<mode>): Ditto.
5276         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5277         Update operand constraints.
5278         (addsi_1_zext): Ditto.
5279         (*add<mode>2): Ditto.
5280         (*addsi_3_zext): Ditto.
5281         (*subsi_1_zext): Ditto.
5282         (*subsi_2_zext): Ditto.
5283         (*subsi_3_zext): Ditto.
5284         (*addsi3_carry_zext): Ditto.
5285         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5286         (*mulsi3_1_zext): Ditto.
5287         (*andsi_1): Ditto.
5288         (*andsi_1_zext): Ditto.
5289         (*andsi_2_zext): Ditto.
5290         (*<any_or:code>si_1_zext): Ditto.
5291         (*<any_or:code>si_2_zext): Ditto.
5292         (*test<mode>_1): Use <general_operand> predicate for operand 1.
5293         (*and<mode>_2): Ditto.
5294         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
5295         (add->lea splitter): Check operand modes in insn constraint.  Extend
5296         operands less than SImode wide to SImode.
5297         (add->lea zext splitter): Do not extend input operands to DImode.
5298         (*lea_general_1): Handle only QImode and HImode operands.
5299         (*lea_general_2): Ditto.
5300         (*lea_general_3): Ditto.
5301         (*lea_general_1_zext): Remove.
5302         (*lea_general_2_zext): Ditto.
5303         (*lea_general_3_zext): Ditto.
5304         (*lea_general_4): Check operand modes in insn constraint.  Extend
5305         operands less than SImode wide to SImode.
5306         (ashift->lea splitter): Ditto.
5307         * config/i386/i386.c (ix86_print_operand_address): Print address
5308         registers with 'q' modifier on 64bit targets.
5309         * config/i386/predicates.md (pic_32bit_opreand): Define as special
5310         predicate.  Reject non-SI and non-DI modes.
5311
5312 2011-07-25  Andrew Pinski  <apinski@cavium.com>
5313
5314         PR tree-opt/49671
5315         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5316         TREE_THIS_NOTRAP into the inner most MEM_REF.
5317         Always copy TREE_THIS_VOLATILE.
5318         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5319         arguments are not volatile references.
5320
5321 2011-07-25  Richard Henderson  <rth@redhat.com>
5322
5323         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5324         * final.c (final_scan_insn): Don't test for it.
5325         (rest_of_clean_state): Likewise.
5326
5327 2011-07-25  Richard Henderson  <rth@redhat.com>
5328
5329         PR debug/49841
5330         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5331         (emit_frame_save): Likewise.
5332         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5333         insn onto a dummy blockage insn after the join label.
5334
5335 2011-07-25  Richard Henderson  <rth@redhat.com>
5336
5337         * dwarf2cfi.c (dw_trace_info): Add ID member.
5338         (get_trace_index): Remove.  Change users to use ID member.
5339         (before_next_cfi_note): New.
5340         (connect_traces): Remove unreachable traces before the main loop.
5341         Look across one trace and generate remember/restore_state if needed.
5342
5343 2011-07-25  Richard Henderson  <rth@redhat.com>
5344
5345         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5346
5347 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
5348
5349         * genattr.c (write_upcase, gen_attr <enum definition writing>):
5350         Move to ...
5351         * genattr-common.c ... here.
5352         (main): Call gen_attr.
5353         * optc-gen.awk: Make generated program include insn-attr-common.h .
5354         * Makefile.in (oprions.o): Depend on insn-attr-common.h
5355
5356 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5357
5358         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5359         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5360         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5361         m32c_print_operand, m32c_print_operand_address): Remove.
5362         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5363         Change return type to bool. Change argument type to bool.
5364         (m32c_print_operand, m32c_print_operand_address): Make static.
5365         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5366         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5367
5368 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5369
5370         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5371         attributes): Document mmap.
5372
5373 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5374
5375         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5376         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5377         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5378         mmix_print_operand, mmix_print_operand_address): Remove.
5379         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5380         Change return type to bool. Change argument type to bool.
5381         (mmix_print_operand, mmix_print_operand_address): Make static.
5382         (mmix_intval, mmix_output_condition): Change 'x' argument type
5383         to const_rtx.
5384         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5385         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5386
5387 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
5388
5389         PR target/39386
5390         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5391         shift counter for x << x and x >> x shifts.
5392
5393 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5394
5395         PR target/47124
5396         * config.gcc: Reject *-*-solaris2 configuration.
5397
5398 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
5399
5400         PR tree-optimization/49809
5401         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5402         gimple_get_lhs instead of gimple_assign_lhs.
5403
5404 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5405
5406         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5407
5408 2011-07-25  Richard Guenther  <rguenther@suse.de>
5409
5410         PR tree-optimization/49822
5411         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5412         more.  Make sure to preserve stmts with side-effects.  Properly
5413         handle virtual defs, follow a longer def chain.
5414
5415 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
5416
5417         PR plugins/45348
5418         PR plugins/48425
5419         PR plugins/46577
5420         * Makefile.in: Do not flatten c-family directory when installing
5421         plugin headers.
5422
5423 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5424
5425         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5426         original nodes if we are dealing with virtual clones.
5427
5428 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
5429
5430         * common/config/c6x/c6x-common.c: New file.
5431
5432 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
5433
5434         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5435
5436 2011-07-25  Richard Guenther  <rguenther@suse.de>
5437
5438         PR tree-optimization/49715
5439         * tree-vrp.c: Include expr.h and optabs.h.
5440         (range_fits_type_): New function.
5441         (simplify_float_conversion_using_ranges): Likewise.
5442         (simplify_stmt_using_ranges): Call it.
5443         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5444         * optabs.c (can_float_p): Export.
5445         * optabs.h (can_float_p): Declare.
5446
5447 2011-07-25  Richard Guenther  <rguenther@suse.de>
5448
5449         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5450         (get_value_range): For out-of-range SSA names or names created
5451         after propagation return a read-only varying range.
5452         (dump_all_value_ranges): Adjust.
5453         (vrp_initialize): Likewise.
5454         (vrp_finalize): Likewise.
5455
5456 2011-07-24  Richard Henderson  <rth@redhat.com>
5457
5458         PR debug/49831
5459         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
5460         them entirely.
5461
5462 2011-07-24  Richard Henderson  <rth@redhat.com>
5463
5464         PR debug/49825
5465         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5466         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5467
5468 2011-07-24  Richard Henderson  <rth@redhat.com>
5469
5470         PR debug/49827
5471         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5472
5473 2011-07-24  Richard Henderson  <rth@redhat.com>
5474
5475         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5476         Zero args_size for abnormal edges.  Adjust all callers.
5477
5478 2011-07-24  Richard Henderson  <rth@redhat.com>
5479
5480         PR debug/49825
5481         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5482
5483 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         PR bootstrap/49835
5486         * collect2.c (demangle_flag): Removed.
5487
5488 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
5489
5490         * configure.ac (demangler_in_ld): Default to yes.
5491         * configure: Regenerated.
5492         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5493         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5494         --no-demangle options straight through to ld.  When
5495         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5496         way that has the intended effect on Windows.
5497
5498 2011-07-23  Richard Henderson  <rth@redhat.com>
5499
5500         * dwarf2cfi.c: Include basic-block.h.
5501         (dw_label_info): Remove.
5502         (trace_work_list, trace_index): New.
5503         (remember_row, emit_cfa_remember): Remove.
5504         (dw_trace_info_hash, dw_trace_info_eq): New.
5505         (get_trace_index, get_trace_info): New.
5506         (save_point_p): New.
5507         (free_cfi_row): Remove.
5508         (add_cfi): Do not emit DW_CFA_remember_state.
5509         (cfa_row_equal_p): New.
5510         (barrier_args_size): Remove.
5511         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5512         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5513         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5514         (dwarf2out_cfi_begin_epilogue): Remove.
5515         (dwarf2out_frame_debug_restore_state): Remove.
5516         (connect_traces, create_pseudo_cfg): New.
5517         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5518         * Makefile.in (dwarf2cfi.o): Update.
5519
5520 2011-07-23  Richard Henderson  <rth@redhat.com>
5521
5522         * dwarf2cfi.c (dw_trace_info): New.
5523         (dw_label_info): New.
5524         (cie_return_save): New.
5525         (cur_trace): New.
5526         (queued_args_size): Rename from args_size.  Update all users.
5527         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5528         (def_cfa_1): Use cur_trace instead of cfa_*.
5529         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5530         (clobbers_queued_reg_save, reg_saved_in): Likewise.
5531         (dwarf2out_frame_debug_expr): Likewise.
5532         (create_cie_data): Split out from ...
5533         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
5534
5535 2011-07-23  Richard Henderson  <rth@redhat.com>
5536
5537         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5538         Update all users to match.
5539         (execute_dwarf2_frame): Free reg_saved_in_data.
5540
5541 2011-07-23  Richard Henderson  <rth@redhat.com>
5542
5543         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
5544         (queued_reg_saves): Don't GTY.  Change to a VEC.
5545         (queue_reg_save): Update to match.
5546         (dwarf2out_flush_queued_reg_saves): Likewise.
5547         (clobbers_queued_reg_save): Likewise.
5548         (reg_saved_in): Likewise.
5549         (execute_dwarf2_frame): Free queued_reg_saves.
5550
5551 2011-07-23  Richard Henderson  <rth@redhat.com>
5552
5553         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
5554
5555 2011-07-23  Richard Henderson  <rth@redhat.com>
5556
5557         * dwarf2cfi.c (add_cfi_args_size): Split out from...
5558         (dwarf2out_args_size): ... here.
5559         (add_cfi_restore): Split out from ...
5560         (dwarf2out_frame_debug_cfa_restore): ... here.
5561         (def_cfa_0): Split out from ...
5562         (def_cfa_1): ... here.
5563         (cfi_oprnd_equal_p, cfi_equal_p): New.
5564         (change_cfi_row): New.
5565         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5566         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5567         (output_cfis): Remove.
5568         * dwarf2out.c (output_fde): Simplify output_cfi loop.
5569         (dwarf2out_switch_text_section): Don't call output_cfis.
5570         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5571         * dwarf2out.h: Update decls.
5572         (enum dw_val_class): Add dw_val_class_none.
5573
5574 2011-07-23  Richard Henderson  <rth@redhat.com>
5575
5576         * dwarf2cfi.c (update_row_reg_save): New.
5577         (dwarf2out_frame_debug_cfa_expression): Use it.
5578         (dwarf2out_frame_debug_cfa_restore): Likewise.
5579         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
5580
5581 2011-07-23  Richard Henderson  <rth@redhat.com>
5582
5583         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
5584
5585 2011-07-23  Richard Henderson  <rth@redhat.com>
5586
5587         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5588         (cie_cfi_row): New.
5589         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5590         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5591         (cur_row, remember_row): New.
5592         (def_cfa_1): Use cur_row instead of the old_* variables.
5593         (dwarf2out_frame_debug_restore_state): Similarly.
5594         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5595         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5596         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5597         (dwarf2out_frame_debug_cfa_offset): Likewise.
5598         (dwarf2out_frame_debug_expr): Likewise.
5599         (execute_dwarf2_frame): Set up cur_row.
5600         * dwarf2out.h (struct cfa_loc): Mark for GTY.
5601
5602 2011-07-23  Richard Henderson  <rth@redhat.com>
5603
5604         * basic-block.h (EDGE_PRESERVE): New.
5605         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5606         * bb-reorder.c: Include except.h.
5607         (fix_up_crossing_landing_pad): New.
5608         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5609         landing pads in the right partition.  Duplicate as necessary.
5610         (partition_hot_cold_basic_blocks): Fix up DF info after
5611         duplicating landing pads.
5612         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5613         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5614         is set properly.  Validate that EH edges are not CROSSING.
5615         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5616         (dw2_build_landing_pads): ... here.
5617         (convert_to_eh_region_ranges): Remove code to fixup crossing
5618         landing pads.
5619         * except.h (expand_dw2_landing_pad_for_region): Declare.
5620         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5621
5622 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
5623
5624         PR target/49816
5625         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5626
5627 2011-07-22  Jason Merrill  <jason@redhat.com>
5628
5629         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5630
5631 2011-07-22  Richard Henderson  <rth@redhat.com>
5632
5633         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5634
5635 2011-07-22  Richard Henderson  <rth@redhat.com>
5636
5637         * jump.c (maybe_propagate_label_ref): Split out of...
5638         (mark_all_labels): ... here.  Do not attempt label_ref
5639         propagation while in cfglayout mode.
5640
5641 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5642
5643         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5644         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5645         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5646         (dwarf2out_define): If the vector is empty and
5647         lineno is 0, emit a dummy entry first.
5648         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5649         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5650         optimize_macinfo_range): New functions.
5651         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5652         mergeable, optimize longer strings using
5653         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5654         optimize longer sequences of define/undef ops from headers
5655         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5656         emit a section headers.
5657         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5658         and macinfo_section_label to DEBUG_MACRO_SECTION
5659         resp. DEBUG_MACRO_SECTION_LABEL.
5660         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5661         instead of DW_AT_macro_info.
5662
5663         PR other/32998
5664         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5665         options.
5666         * dwarf2out.c: Include opts.h.
5667         (dchar_p): New typedef.  Define heap VEC for it.
5668         (producer_string): New variable.
5669         (gen_producer_string): New function.
5670         (gen_compile_unit_die): Use it.
5671         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5672         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5673         * doc/invoke.texi: Document -grecord-gcc-switches and
5674         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5675         to -frecord-gcc-switches description.
5676
5677 2011-07-22  Jason Merrill  <jason@redhat.com>
5678
5679         PR c++/30112
5680         * c-decl.c (c_linkage_bindings): Define.
5681
5682 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5683
5684         PR debug/49815
5685         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5686
5687 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5688
5689         * config/i386/i386.c (ix86_option_override_internal): Disallow
5690         MS ABI in x32 mode.
5691         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5692         only for TARGET_LP64.
5693         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5694
5695 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5696
5697         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5698         avoid warnings when GCC is built with a C++ compiler.
5699
5700 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5701
5702         PR lto/49796
5703         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5704         if decl node is in another partition, call cgraph_get_node only once.
5705
5706 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5707
5708         * config.gcc (x86_64-*-linux*): Set
5709         default_gnu_indirect_function to yes.
5710
5711 2011-07-22  Richard Guenther  <rguenther@suse.de>
5712
5713         PR tree-optimization/45819
5714         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5715         preserve volatile and notrap flags.
5716
5717 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5718             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5719
5720         PR bootstrap/49794
5721         * configure.ac: Test AM_ICONV with CXX.
5722         * configure: Regenerate.
5723         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5724
5725 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5726
5727         PR bootstrap/49797
5728         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5729         (set_cloog_options): Use it.
5730
5731 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5732
5733         PR c++/49756
5734         * gcc.c (main): Call stack_limit_increase (64MB).
5735         * toplev.c (toplev_main): Likewise.
5736
5737 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5738
5739         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5740         instead of force_reg.
5741
5742 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5745         needed and use force_reg after convert.
5746         (ix86_expand_call): Likewise.
5747         (ix86_expand_special_args_builtin): Likewise.
5748         (ix86_expand_builtin): Likewise.
5749
5750 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5751
5752         PR middle-end/47654
5753         PR middle-end/49649
5754         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5755         in parameter.  Initialize v1 and v2 based on the values returned
5756         by clast_name_to_lb_ub.
5757         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5758         values.
5759         (type_for_clast_bin): Same.
5760         (type_for_clast_expr): Same.
5761         (type_for_clast_eq): Update calls to type_for_clast_expr.
5762         (type_for_clast_for): Same.
5763         (build_iv_mapping): Same.
5764         * graphite-ppl.h (value_min): New.
5765
5766 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5767
5768         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5769         types whenever possible.
5770
5771 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5772
5773         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5774         and ub fields.
5775         (new_clast_name_index): Add lb and ub parameters.
5776         (free_clast_name_index): New.
5777         (clast_name_to_lb_ub): New.
5778         (save_clast_name_index): Add lb and ub parameters.
5779         (compute_bounds_for_param): New.
5780         (type_for_level): Removed.
5781         (type_for_clast_for): Removed level parameter.  Do not call
5782         type_for_level.
5783         (graphite_create_new_loop): Store the lb and ub for the clast_name
5784         of the iterator of the loop that has been generated.
5785         (graphite_create_new_loop_guard): Remove parameter level.
5786         (create_params_index): Store the lb and ub of each parameter.
5787         (gloog): Use free_clast_name_index.  Pass to create_params_index
5788         the current scop.
5789
5790 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5791
5792         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5793         (max_precision_type): Inline max_signed_precision_type.
5794         (type_for_clast_red): Use max_precision_type.
5795         (type_for_clast_bin): Same.
5796         (type_for_clast_for): Same.
5797
5798 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5799
5800         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5801         type_for_interval.
5802         (gcc_type_for_value): Renamed type_for_value.
5803         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5804         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5805         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5806         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5807         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5808         (graphite_translate_clast_equation): Update calls.
5809         (compute_type_for_level): Renamed type_for_level.
5810         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5811         (build_iv_mapping): Update calls.
5812         (graphite_create_new_loop_guard): Same.
5813
5814 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5815
5816         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5817         comment.
5818
5819 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5820
5821         * graphite-clast-to-gimple.c (struct ivs_params): New.
5822         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5823         (clast_to_gcc_expression): Same.
5824         (clast_to_gcc_expression_red): Same.
5825         (gcc_type_for_clast_term): Same.
5826         (gcc_type_for_clast_expr): Same.
5827         (gcc_type_for_clast_red): Same.
5828         (gcc_type_for_clast_bin): Same.
5829         (gcc_type_for_clast_eq): Same.
5830         (graphite_translate_clast_equation): Same.
5831         (graphite_create_guard_cond_expr): Same.
5832         (graphite_create_new_guard): Same.
5833         (graphite_create_new_loop): Same.
5834         (build_iv_mapping): Same.
5835         (translate_clast_user): Same.
5836         (graphite_create_new_loop_guard): Same.
5837         (translate_clast): Same.
5838         (translate_clast_for_loop): Same.
5839         (translate_clast_for): Same.
5840         (translate_clast_guard): Same.
5841         (initialize_cloog_names): Fix typo.
5842         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5843
5844 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5845
5846         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5847         (new_clast_name_index): Add level parameter.
5848         (clast_name_to_level): New.
5849         (save_clast_name_index): Add level parameter.
5850         (newivs_to_depth_to_newiv): Removed.
5851         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5852         (graphite_create_new_loop): Add level parameter.  Pass level to
5853         save_clast_name_index.
5854         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5855         (create_params_index): Pass level to save_clast_name_index.
5856
5857 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5858
5859         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5860         recompute type, lb, and ub.  Get them from...
5861         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5862         pointers to type, lb, and ub.
5863         (translate_clast_for_loop): Update function calls.
5864         (translate_clast_for): Same.
5865
5866 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5867
5868         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5869         psct_dynamic_dim.
5870         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5871         (gcc_type_for_iv_of_clast_loop): Update use of level.
5872         (gloog): Start counting nesting level from 0.
5873         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5874         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5875         psct_dynamic_dim on level.
5876
5877 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         * config/i386/i386.c (ix86_legitimize_address): Convert to
5880         Pmode if needed.
5881
5882 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         * config/i386/i386.c (function_value_64): Always return pointers
5885         in Pmode.
5886         (ix86_promote_function_mode): New.
5887         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5888
5889 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5890
5891         PR tree-optimization/49749
5892         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5893         remove no-longer-used maxrank variable.
5894
5895 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5896
5897         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5898
5899 2011-07-21  Jason Merrill  <jason@redhat.com>
5900
5901         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5902         * recog.h (struct insn_data_d): Check it instead of
5903         HAVE_DESIGNATED_INITIALIZERS.
5904         * genoutput.c (output_insn_data): Likewise.
5905
5906 2011-07-21  Richard Guenther  <rguenther@suse.de>
5907
5908         PR tree-optimization/49770
5909         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5910         valueized any operand.  Renamed from ...
5911         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5912         (valueize_shared_reference_ops_from_ref): Return whether we
5913         valueized any operand.
5914         (vn_reference_lookup): Only when we valueized any operand
5915         use the valueized reference for alias analysis.  Do not preserve
5916         the original reference tree in this case.
5917
5918 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5919
5920         * config/i386/i386.c (ix86_decompose_address): Reject all but
5921         register operands and subregs of DImode hard registers in index.
5922
5923 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5924
5925         * fold-const.c (fold_unary_loc): Preserve indirect
5926         comparison cast to none-boolean type.
5927         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5928         from/to boolean-type.
5929         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5930         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5931         * tree-cfg.c (verify_gimple_comparison): Check result
5932         type of comparison expression.
5933         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5934         of condition result and disallow type-cast sinking into comparison.
5935
5936 2011-07-21  Richard Guenther  <rguenther@suse.de>
5937
5938         * tree-ssa-forwprop.c (combine_conversions): Return whether
5939         we have to run cfg-cleanup.  Properly remove dead stmts.
5940         (ssa_forward_propagate_and_combine): Adjust.
5941
5942 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
5943
5944         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5945
5946 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5947
5948         * tree-ssa-propagate.c (substitute_and_fold): Use
5949         do_dce flag to deside, if BB's statements are scanned
5950         in last to first, or first to last order.
5951
5952 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5953
5954         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5955
5956 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
5957             Uros Bizjak  <ubizjak@gmail.com>
5958             Richard Henderson  <rth@redhat.com>
5959
5960         * config/i386/constraints.md (w): New.
5961
5962         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5963         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5964
5965         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5966         instead of TARGET_64BIT.
5967
5968         * config/i386/i386.md (indirect_jump): Replace
5969         nonimmediate_operand with indirect_branch_operand.
5970         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
5971         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5972         Convert operand 0 to Pmode for x32 if not PIC.
5973         (*tablejump_1): Replace nonimmediate_operand with
5974         indirect_branch_operand.  Replace constraint "m" with "w".
5975         (*call_vzeroupper): Replace constraint "m" with "w".
5976         (*call): Likewise.
5977         (*call_rex64_ms_sysv_vzeroupper): Likewise.
5978         (*call_rex64_ms_sysv): Likewise.
5979         (*call_value_vzeroupper): Likewise.
5980         (*call_value): Likewise.
5981         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5982         (*call_value_rex64_ms_sysv): Likewise.
5983         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5984
5985         * config/i386/predicates.md (indirect_branch_operand): New.
5986         (call_insn_operand): Support x32.
5987
5988 2011-07-20  Michael Eager  <eager@eagercon.com>
5989
5990         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5991
5992 2011-07-20  Richard Henderson  <rth@redhat.com>
5993
5994         * cfg.c (dump_bb_info): Dump basic_block->flags.
5995         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5996
5997 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5998
5999         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6000         of DImode hard registers in index.
6001         (ix86_legitimate_address_p): Allow subregs of base and index to span
6002         more than a word.  Assert that subregs of base and index satisfy
6003         register_no_elim_operand predicates.  Reject addresses where
6004         base and index have different modes.
6005
6006 2011-07-20  Robert Millan  <rmh@gnu.org>
6007
6008         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6009
6010 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6011
6012         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6013         removing now-unnecessary assignment.
6014
6015 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6016
6017         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6018         memory address space to the type's address space.
6019
6020 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6021
6022         PR target/36467
6023         PR target/49687
6024         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6025         and expand appropriately if there is a CONST_INT in operand2.
6026         (usmulqihi3): New insn.
6027         (*sumulqihi3): New insn.
6028         (*osmulqihi3): New insn.
6029         (*oumulqihi3): New insn.
6030         (*muluqihi3.uconst): New insn_and_split.
6031         (*muluqihi3.sconst): New insn_and_split.
6032         (*mulsqihi3.sconst): New insn_and_split.
6033         (*mulsqihi3.uconst): New insn_and_split.
6034         (*mulsqihi3.oconst): New insn_and_split.
6035         (*ashifthi3.signx.const): New insn_and_split.
6036         (*ashifthi3.signx.const7): New insn_and_split.
6037         (*ashifthi3.zerox.const): New insn_and_split.
6038         (mulsqihi3): New insn.
6039         (muluqihi3): New insn.
6040         (muloqihi3): New insn.
6041         * config/avr/predicates.md (const_2_to_7_operand): New.
6042         (const_2_to_6_operand): New.
6043         (u8_operand): New.
6044         (s8_operand): New.
6045         (o8_operand): New.
6046         (s9_operand): New.
6047         (register_or_s9_operand): New.
6048
6049 2011-07-20  Kai Tietz  <ktietz@redhat.com>
6050
6051         * builtins.c (fold_builtin_expect): See through the cast
6052         from truthvalue_type_node to long.
6053
6054 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6055
6056         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6057         where we can use them from the standard and altivec instruction
6058         sets, instead of always using the 3 operand VSX forms that require
6059         the destination to overlap one of the inputs.
6060         (vsx_fms*): Ditto.
6061         (vsx_fnma*): Ditto.
6062         (vsx_fnms*): Ditto.
6063
6064         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6065         for DF types.
6066         (fmsdf4_fpr): Ditto.
6067         (nfmadf4_fpr): Ditto.
6068         (nfmsdf4_fpr): Ditto.
6069
6070 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
6071
6072         * genrecog.c (make_insn_sequence): Correct position numbering
6073         when filtering out match_scratch and match_dup.
6074
6075 2011-07-20  Richard Guenther  <rguenther@suse.de>
6076
6077         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6078         against already removed statements.
6079         (forward_propagate_into_comparison): Remove dead defining stmts.
6080         (forward_propagate_into_gimple_cond): Likewise.
6081         (forward_propagate_into_cond): Simplify.
6082         (ssa_forward_propagate_and_combine): Handle changed cfg from
6083         forward_propagate_into_comparison.
6084         * tree-ssa-phiopt.c (conditional_replacement): Use proper
6085         locations for newly built statements.
6086
6087 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6088
6089         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6090
6091 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6092
6093         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6094         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6095
6096 2011-07-20  Richard Guenther  <rguenther@suse.de>
6097
6098         PR middle-end/18908
6099         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6100         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6101         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
6102
6103 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
6104
6105         * config/frv/frv.c (frv_register_move_cost): Define explicitly
6106         costs for subclasses of GR_REGS.
6107
6108 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6109
6110         PR target/49780
6111         * config/i386/predicates.md (no_seg_addres_operand): No more special.
6112         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6113         of DImode hard registers in base.
6114         (ix86_legitimate_address_p): Allow SImode and DImode base and index
6115         registers.
6116
6117 2011-07-20  Richard Guenther  <rguenther@suse.de>
6118
6119         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6120         (unify_nodes): Deal with that.
6121         (solve_graph): Likewise.
6122
6123 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
6124
6125         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6126         canonicalize left operand from ZERO_EXTEND to AND.
6127
6128 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
6129
6130         * target.def (class_max_nregs): New hook.
6131         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6132         * doc/tm.texi: Regenerate.
6133         * targhooks.c (default_class_max_nregs): New function.
6134         * targhooks.h (default_class_max_nregs): Declare.
6135         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6136         x_ira_reg_class_min_nregs arrays to unsigned char.
6137         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6138         hook instead of CLASS_MAX_NREGS macro.
6139         * reginfo.c (restore_register_info): Ditto.
6140         * ira-conflicts.c (process_regs_for_copy): Use
6141         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6142         Change type rclass and aclass vars to reg_class_t.
6143         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6144         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6145         reg_class_t.
6146         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6147         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6148
6149         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6150         * config/i386/i386.c (ix86_class_max_nregs): New function.
6151         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6152         instead of CLASS_MAX_NREGS macro.
6153         (TARGET_CLASS_MAX_NREGS): Define.
6154         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6155         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6156         * config/avr/avr.c (class_max_nregs): Remove function.
6157         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6158         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6159         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6160         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6161         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6162         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6163         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6164         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6165         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6166         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6167         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6168         * config/score/score.h (CLASS_MAX_NREGS): Remove.
6169         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6170         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6171         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6172
6173 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
6174
6175         * cif-code.def (OVERWRITABLE): Fix typo and move around.
6176         (TARGET_OPTIMIZATION_MISMATCH): Delete.
6177         (EH_PERSONALITY): Fix typo.
6178         (NON_CALL_EXCEPTIONS): Fix message.
6179         (OPTIMIZATION_MISMATCH): Adjust message.
6180         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6181
6182 2011-07-19  Ian Lance Taylor  <iant@google.com>
6183
6184         * doc/install.texi (Configuration): Document
6185         --enable-build-poststage1-with-cxx.
6186
6187 2011-07-19  Robert Millan  <rmh@gnu.org>
6188
6189         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
6190         (GLIBC_DYNAMIC_LINKER): Remove.
6191
6192         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
6193         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6194         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6195         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6196         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6197         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6198
6199         * config/mips/linux.h: Remove everything except for ...
6200         (GLIBC_DYNAMIC_LINKER): ... this macro.
6201
6202         * config/mips/linux64.h: Remove everything except for ...
6203         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6204         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6205         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6206         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6207         (GNU_USER_LINK_EMULATIONN32): New macros.
6208
6209         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6210         Use the new headers.
6211
6212 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6213
6214         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6215         Add offset_known_p and size_known_p fields.
6216         (MEM_OFFSET_KNOWN_P): Update accordingly.
6217         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6218         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6219         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6220         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6221         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6222         (init_emit_regs): Likewise.
6223
6224 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6225
6226         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6227         (MEM_OFFSET): Change from returning an rtx to returning a
6228         HOST_WIDE_INT.
6229         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6230         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6231         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6232         (clear_mem_offset): Declare.
6233         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6234         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6235         MEM_OFFSET to get a HOST_WIDE_INT offset.
6236         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
6237         (adjust_offset_for_component_ref): Take a bool "known_p"
6238         parameter and a HOST_WIDE_INT "offset" parameter.
6239         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6240         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6241         than an rtx.  Use clear_mem_offset to clear the offset.
6242         * cfgcleanup.c (merge_memattrs): Likewise.
6243         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6244         * function.c (assign_parm_find_stack_rtl): Likewise.
6245         (assign_parm_setup_stack): Likewise.
6246         * print-rtl.c (print_rtx): Likewise.
6247         * reload.c (find_reloads_subreg_address): Likewise.
6248         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6249         * var-tracking.c (INT_MEM_OFFSET): Likewise.
6250         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6251         (get_mem_align_offset): Likewise.
6252         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6253         (clear_mem_offset): New function.
6254         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6255         offset rather than an rtx.  Assume both the expressio and offset
6256         are available.
6257         (r10k_needs_protection_p_1): Update accordingly, checking the
6258         expression and offset availability here instead.
6259
6260 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6261
6262         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6263         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6264         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6265         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6266         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6267         (clear_mem_size): Declare.
6268         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6269         (clear_mem_size): New function.
6270         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6271         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6272         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
6273         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
6274         to clear the size.
6275         (nonoverlapping_memrefs_p): Likewise.
6276         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6277         (expand_builtin_init_trampoline): Likewise.
6278         * calls.c (compute_argument_addresses): Likewise.
6279         * cfgcleanup.c (merge_memattrs): Likewise.
6280         * dce.c (find_call_stack_args): Likewise.
6281         * dse.c (record_store, scan_insn): Likewise.
6282         * dwarf2out.c (dw_sra_loc_expr): Likewise.
6283         * expr.c (emit_block_move_hints): Likewise.
6284         * function.c (assign_parm_find_stack_rtl): Likewise.
6285         * print-rtl.c (print_rtx): Likewise.
6286         * reload.c (find_reloads_subreg_address): Likewise.
6287         * rtlanal.c (may_trap_p_1): Likewise.
6288         * var-tracking.c (track_expr_p): Likewise.
6289         * varasm.c (assemble_trampoline_template): Likewise.
6290         * config/arm/arm.c (arm_print_operand): Likewise.
6291         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6292         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6293         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6294         (expand_constant_setmem_prologue): Likewise.
6295         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6296         * config/rs6000/rs6000.c (expand_block_move): Likewise.
6297         (adjacent_mem_locations): Likewise.
6298         * config/s390/s390.c (s390_expand_setmem): Likewise.
6299         (s390_expand_insv): Likewise.
6300         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6301         (*extendqi<mode>2_short_displ): Likewise.
6302         * config/sh/sh.c (expand_block_move): Likewise.
6303         * config/sh/sh.md (extv, extzv): Likewise.
6304
6305 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6306
6307         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6308         (mem_attrs_htab_eq): ...here.
6309         (find_mem_attrs): Replace with...
6310         (set_mem_attrs): ...this function.  Take a mem_attrs structure
6311         rather than individual fields.
6312         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6313         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6314         (set_mem_size, change_address, adjust_address_1, offset_address)
6315         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6316         Update accordingly.
6317
6318 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6319
6320         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6321         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6322         Provide a dummy definition of MEM_ADDR_SPACE for generators.
6323         (target_rtl): Add x_mode_mem_attrs.
6324         (mode_mem_attrs): New macro.
6325         (get_mem_attrs): New function.
6326         * emit-rtl.c (get_mem_attrs): Rename to...
6327         (find_mem_attrs): ...this.
6328         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6329         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6330         (set_mem_size, change_address, adjust_address_1, offset_address)
6331         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6332         Update accordingly.
6333         (init_emit_regs): Initialize mode_mem_attrs.
6334
6335 2011-07-19  Richard Guenther  <rguenther@suse.de>
6336
6337         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6338         TRUTH_*_EXPR handling.
6339         * tree-ssa-operands.c (get_expr_operands): Likewise.
6340         * tree-ssa-pre.c (fully_constant_expression): Likewise.
6341         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6342         Likewise.
6343         (is_and_or_or): Likewise.
6344         (is_norm_cond_subset_of): Likewise.
6345
6346 2011-07-19  Richard Guenther  <rguenther@suse.de>
6347
6348         * tree.h (fold_build_pointer_plus_loc): New helper function.
6349         (fold_build_pointer_plus_hwi_loc): Likewise.
6350         (fold_build_pointer_plus): Define.
6351         (fold_build_pointer_plus_hwi): Likewise.
6352         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6353         (fold_builtin_memory_op): Likewise.
6354         (fold_builtin_stpcpy): Likewise.
6355         (fold_builtin_memchr): Likewise.
6356         (fold_builtin_strstr): Likewise.
6357         (fold_builtin_strchr): Likewise.
6358         (fold_builtin_strrchr): Likewise.
6359         (fold_builtin_strpbrk): Likewise.
6360         (fold_builtin_strcat): Likewise.
6361         (expand_builtin_memory_chk): Likewise.
6362         (fold_builtin_memory_chk): Likewise.
6363         * c-typeck.c (build_unary_op): Likewise.
6364         * cgraphunit.c (thunk_adjust): Likewise.
6365         * fold-const.c (build_range_check): Likewise.
6366         (fold_binary_loc): Likewise.
6367         * omp-low.c (extract_omp_for_data): Likewise.
6368         (expand_omp_for_generic): Likewise.
6369         (expand_omp_for_static_nochunk): Likewise.
6370         (expand_omp_for_static_chunk): Likewise.
6371         * tree-affine.c (add_elt_to_tree): Likewise.
6372         * tree-data-ref.c (split_constant_offset_1): Likewise.
6373         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6374         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6375         * tree-predcom.c (ref_at_iteration): Likewise.
6376         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6377         (add_to_parts): Likewise.
6378         (create_mem_ref): Likewise.
6379         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6380         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6381         (number_of_iterations_le): Likewise.
6382         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6383         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6384         (vect_create_addr_base_for_vector_ref): Likewise.
6385         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6386         (vect_create_cond_for_alias_checks): Likewise.
6387         * tree-vrp.c (extract_range_from_assert): Likewise.
6388         * config/alpha/alpha.c (alpha_va_start): Likewise.
6389         (alpha_gimplify_va_arg_1): Likewise.
6390         * config/i386/i386.c (ix86_va_start): Likewise.
6391         (ix86_gimplify_va_arg): Likewise.
6392         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6393         * config/mep/mep.c (mep_expand_va_start): Likewise.
6394         (mep_gimplify_va_arg_expr): Likewise.
6395         * config/mips/mips.c (mips_va_start): Likewise.
6396         (mips_gimplify_va_arg_expr): Likewise.
6397         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6398         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6399         (rs6000_gimplify_va_arg): Likewise.
6400         * config/s390/s390.c (s390_va_start): Likewise.
6401         (s390_gimplify_va_arg): Likewise.
6402         * config/sh/sh.c (sh_va_start): Likewise.
6403         (sh_gimplify_va_arg_expr): Likewise.
6404         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6405         * config/spu/spu.c (spu_va_start): Likewise.
6406         (spu_gimplify_va_arg_expr): Likewise.
6407         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6408         Likewise.
6409         (xstormy16_gimplify_va_arg_expr): Likewise.
6410         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6411         (xtensa_gimplify_va_arg_expr): Likewise.
6412
6413 2011-07-19  Richard Guenther  <rguenther@suse.de>
6414
6415         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6416         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6417         handling.
6418
6419         PR middle-end/18908
6420         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6421         result of BIT_*_EXPR to bitfield precision.
6422
6423 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
6424
6425         PR tree-optimization/49742
6426         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6427         as a potential write.
6428
6429 2011-07-19  Richard Guenther  <rguenther@suse.de>
6430
6431         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6432         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6433         (forward_propagate_comparison): Simplify, remove obsolete code.
6434
6435 2011-07-19  Richard Guenther  <rguenther@suse.de>
6436
6437         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6438         BIT_XOR_EXPR, same as the RTL expander does.
6439         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6440         (verify_gimple_assign_unary): Likewise.
6441         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6442         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6443         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6444
6445 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
6446
6447         PR tree-optimization/49768
6448         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6449         if offset is smaller than bitoffset, but offset+size is bigger
6450         than bitoffset.
6451
6452 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
6453
6454         PR tree-optimization/49771
6455         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6456         zero step, set segment length to the size of the data-ref's type.
6457
6458 2011-07-18  Martin Jambor  <mjambor@suse.cz>
6459
6460         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6461         comments.
6462         (ipcp_values_pool): Declare.
6463         (ipcp_sources_pool): Likewise.
6464         (ipcp_lattice): Changed to forward declaration.
6465         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6466         cannot_devirtualize.
6467         (ipa_node_params): New fields descriptors, lattices, known_vals,
6468         clone_for_all_contexts and node dead, removed fields params and
6469         count_scale.
6470         (ipa_set_param_count): Removed.
6471         (ipa_get_param_count): Made to work with descriptors vector.
6472         (ipa_get_param): Updated.
6473         (ipa_param_cannot_devirtualize_p): Removed.
6474         (ipa_param_types_vec_empty): Likewise.
6475         (ipa_set_param_used): New function.
6476         (ipa_get_param_used): Updated to use descriptors vector.
6477         (ipa_func_list): Removed.
6478         (ipa_init_func_list): Removed declaration.
6479         (ipa_push_func_to_list_1): Likewise.
6480         (ipa_pop_func_from_list): Likewise.
6481         (ipa_push_func_to_list): Removed.
6482         (ipa_lattice_from_jfunc): Remove declaration.
6483         (ipa_get_jf_pass_through_result): Declare.
6484         (ipa_get_jf_ancestor_result): Likewise.
6485         (ipa_value_from_jfunc): Likewise.
6486         (ipa_get_lattice): Update.
6487         (ipa_lat_is_single_const): New function.
6488         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6489         (ipa_init_func_list): Likewise.
6490         (ipa_pop_func_from_list): Likewise.
6491         (ipa_get_param_decl_index): Fix coding style.
6492         (count_formal_params): Removed.
6493         (count_formal_params_1): Renamed to count_formal_params.
6494         (ipa_populate_param_decls): Update to use descriptors vector.
6495         (ipa_initialize_node_params): Likewise.
6496         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6497         (ipa_analyze_params_uses): Likewise.
6498         (ipa_free_node_params_substructures): Likewise and free also lattices
6499         and known values.
6500         (duplicate_array): Removed.
6501         (ipa_edge_duplication_hook): Add the new edge to the list of edge
6502         clones.
6503         (ipa_node_duplication_hook): Update to use new lattices.
6504         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6505         (ipa_free_all_structures_after_iinln): Likewise.
6506         (ipa_write_node_info): Update to use new lattices.
6507         (ipa_read_node_info): Likewise.
6508         (ipa_get_jf_pass_through_result): New function.
6509         (ipa_get_jf_ancestor_result): Likewise.
6510         (ipa_value_from_jfunc): Likewise.
6511         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6512         * ipa-cp.c: Reimplemented.
6513         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6514         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6515         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6516         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6517         * doc/invoke.texi (devirt-type-list-size): Removed description.
6518         (ipa-cp-value-list-size): Added description.
6519
6520 2011-07-18  Richard Henderson  <rth@redhat.com>
6521
6522         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6523         before calling create_basic_block.
6524
6525 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
6526
6527         PR middle-end/49675
6528         * tree.c (build_common_builtin_nodes): Register
6529         __builtin_return_address, __cyg_profile_func_enter
6530         and __cyg_profile_func_exit.
6531
6532 2011-07-18  Richard Henderson  <rth@redhat.com>
6533
6534         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6535         (add_labels_and_missing_jumps): ... here.
6536         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6537
6538 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
6539
6540         PR target/47744
6541         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6542         of DImode hard registers in PLUS address chains.
6543
6544 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6545
6546         PR bootstrap/49769
6547         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6548         (alpha*-*-freebsd*): Likewise.
6549         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6550         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6551         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6552         crtprec80.o, crtfastmath.o to extra_parts for all targets.
6553         (ia64*-*-elf*): Remove extra_parts.
6554         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6555         (sparc64-*-linux*): Likewise.
6556         (sparc64-*-freebsd*): Likewise.
6557
6558         Revert:
6559         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6560         (ia64*-*-linux*): Likewise.
6561         (mips64*-*-linux*): Likewise.
6562         (mips*-*-linux*): Likewise.
6563
6564 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
6565
6566         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6567
6568 2011-07-18  Richard Guenther  <rguenther@suse.de>
6569
6570         * gimplify.c (gimplify_expr): Use input_location, not saved_location
6571         when building new trees.
6572
6573 2011-07-18  Richard Guenther  <rguenther@suse.de>
6574
6575         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6576         expansion result to bitfield precision if required.
6577
6578 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6579
6580         * config.gcc (i[3456x]86-*-netware*): Remove.
6581
6582         * gthr-nks.h: Remove.
6583         * configure.ac (enable_threads): Remove nks.
6584         * configure: Regenerate.
6585
6586         * config/i386/i386.c (ix86_encode_section_info): Remove netware
6587         reference.
6588         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6589         <netware.h> reference.
6590
6591         * config/i386/netware-libgcc.c,
6592         gcc/config/i386/netware-libgcc.def,
6593         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6594         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6595         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6596         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6597
6598         * doc/extend.texi (Function Attributes,
6599         callee_pop_aggregate_return): Remove i?86-netware reference.
6600         * doc/install.texi (Configuration, --enable-threads): Remove nks.
6601
6602 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6603
6604         PR target/49746
6605         Revert:
6606         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6607
6608         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6609         patterns.
6610
6611 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
6612
6613         PR middle-end/49732
6614         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6615
6616 2011-07-16  Matthias Klose  <doko@ubuntu.com>
6617
6618         * doc/install.texi: Document --enable-static-libjava.
6619
6620 2011-07-15  Richard Henderson  <rth@redhat.com>
6621
6622         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6623         Replace all three arguments by returning a VEC of edges.
6624         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6625         pointers and counts.
6626         (fix_edges_for_rarely_executed_code): Merge ...
6627         (rest_of_handle_partition_blocks): ... into...
6628         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
6629         any work was performed.
6630         (pass_partition_blocks): Clear todo_flags_finish.
6631
6632 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
6633             Jakub Jelinek  <jakub@redhat.com>
6634             Jonathan Wakely  <jwakely.gcc@gmail.com>
6635
6636         PR libstdc++/49745
6637         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6638         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6639
6640 2011-07-15  Jason Merrill  <jason@redhat.com>
6641
6642         PR testsuite/49741
6643         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6644         rather than --tool_opts.
6645
6646 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6647
6648         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6649         corresponding gtype.state.
6650
6651 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6652
6653         PR target/49723
6654         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6655
6656 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6657
6658         PR target/48220
6659         * doc/md.texi (Standard Names): Document window_save.
6660         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6661         expand_debug_expr and expand_debug_source_expr.  If the target has
6662         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6663         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6664         SSA_NAME_VAR is a parameter.
6665         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6666         * var-tracking.c (parm_reg_t): New type and associated vector type.
6667         (windowed_parm_regs): New variable.
6668         (adjust_insn): If the target has a window_save instruction and this
6669         is the instruction, make its effect on parameter registers explicit.
6670         (next_non_note_insn_var_location): New function.
6671         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6672         (vt_add_function_parameter): If the target has a window_save insn,
6673         adjust the incoming RTL and record that in windowed_parm_regs.
6674         (vt_finalize): Free windowed_parm_regs.
6675
6676 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6677
6678         * doc/invoke.texi (C6X Options): New section.
6679         * doc/md.texi (TI C6X family): New section.
6680         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6681         tic6x-*-uclinux.
6682         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6683         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6684         Provide C6X definitions.
6685         * config/c6x/c6x.md: New file.
6686         * config/c6x/constraints.md: New file.
6687         * config/c6x/predicates.md: New file.
6688         * config/c6x/c6x-sched.md.in: New file.
6689         * config/c6x/c6x-sched.md: New file.
6690         * config/c6x/gensched.sh: New file.
6691         * config/c6x/c6x-mult.md.in: New file.
6692         * config/c6x/genmult.sh: New file.
6693         * config/c6x/c6x-mult.md: New file.
6694         * config/c6x/sync.md: New file.
6695         * config/c6x/c6x-protos.h: New file.
6696         * config/c6x/sfp-machine.h: New file.
6697         * config/c6x/c6x.c: New file.
6698         * config/c6x/c6x.h: New file.
6699         * config/c6x/crti.s: New file.
6700         * config/c6x/crtn.s: New file.
6701         * config/c6x/lib1funcs.asm: New file.
6702         * config/c6x/c6x-modes.def: New file.
6703         * config/c6x/genopt.sh: New file.
6704         * config/c6x/c6x.opt: New file.
6705         * config/c6x/c6x-tables.opt: New file.
6706         * config/c6x/c6x-opts.h: New file.
6707         * config/c6x/c6x-isas.def: New file.
6708         * config/c6x/elf.h: New file.
6709         * config/c6x/elf-common.h: New file.
6710         * config/c6x/uclinux-elf.h: New file.
6711         * config/c6x/t-c6x: New file.
6712         * config/c6x/t-c6x-elf: New file.
6713         * config/c6x/t-c6x-uclinux: New file.
6714         * config/c6x/t-c6x-softfp: New file.
6715         * config/c6x/gtd.c: New file.
6716         * config/c6x/gtf.c: New file.
6717         * config/c6x/ltd.c: New file.
6718         * config/c6x/ltf.c: New file.
6719         * config/c6x/ged.c: New file.
6720         * config/c6x/gef.c: New file.
6721         * config/c6x/led.c: New file.
6722         * config/c6x/lef.c: New file.
6723         * config/c6x/eqd.c: New file.
6724         * config/c6x/eqf.c: New file.
6725         * config/c6x/libgcc-c6xeabi.ver: New file.
6726
6727         Revert
6728         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6729         PR rtl-optimization/11320
6730         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6731         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6732         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6733         current_sched_info->compute_jump_reg_dependencies. Record which
6734         registers are used and which registers are set by the jump.
6735         Clear deps->reg_conditional_sets after a barrier.
6736         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6737         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6738         (init_deps): Initialize reg_conditional_sets.
6739         (free_deps): Clear reg_conditional_sets.
6740         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6741         Mark registers live on entry of the fallthrough block and conditionally
6742         set as set by the jump. Mark registers live on entry of non-fallthrough
6743         blocks as used by the jump.
6744         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6745         Mark new parameters as unused.
6746
6747 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6748
6749         PR tree-opt/49309
6750         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6751         Use fold_build2_loc instead of build2.
6752         Use the correct type for the new tree.
6753
6754 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6755
6756         PR rtl-optimization/11320
6757         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6758         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6759
6760 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6761
6762         PR target/49487
6763         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6764         of REG.
6765         (*rotw<mode>): Use const_int_operand for operand2.
6766         Use match_scatch for operand3.
6767         (*rotb<mode>): Ditto
6768         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6769
6770 2011-07-14  Richard Guenther  <rguenther@suse.de>
6771
6772         PR tree-optimization/49651
6773         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6774         handle dereferences with subvariables.
6775
6776 2011-07-14  Richard Guenther  <rguenther@suse.de>
6777
6778         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6779         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6780
6781 2011-07-14  Richard Guenther  <rguenther@suse.de>
6782
6783         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6784         not bool_var when folding bool_var != 1 or bool_var == 0.
6785
6786 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6787
6788         * haifa-sched.c (schedule_insns): Remove outdated comment.
6789         (schedule_block): When computing a known value for TODO_SPEC,
6790         just set it rather than using logical operations.
6791         (try_ready): Likewise.  Use a local variable rather than a
6792         pointer to TODO_SPEC.  Reorder an if statement to move the
6793         easy case to the then block.
6794         * sched-deps.c (dep_spec_p): New static function.
6795         (update_dep): Use it to decide whether to call
6796         change_spec_dep_to_hard.
6797         (get_back_and_forw_lists): Use it.
6798         (sd_resolve_dep): Likewise.
6799         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6800         (haifa_note_mem_dep): Likewise.
6801         (check_dep): Likewise.
6802         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6803         (sched_free_deps): Free in two passes.
6804
6805 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6806
6807         PR middle-end/49736
6808         * expr.c (all_zeros_p): Undo bogus part of last change.
6809
6810 2011-07-14  Matthias Klose <doko@ubuntu.com>
6811
6812         * doc/extend.texi (optimize attribute): Fix typo.
6813
6814 2011-07-14  Richard Guenther  <rguenther@suse.de>
6815
6816         * gimplify.c (gimplify_expr): Only do required conversions.
6817
6818 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6819
6820         PR target/43746
6821         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6822         i.e. use default_elf_select_section.
6823         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6824         (READONLY_DATA_SECTION_ASM_OP): Remove.
6825         (TARGET_ASM_NAMED_SECTION): Move from here...
6826         * config/avr/avr.c: ...to here.
6827         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6828         (avr_asm_named_section): Make static.
6829
6830 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6831
6832         PR bootstrap/49739
6833         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6834         and crtfastmath.o for Linux/x86.
6835
6836 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6837
6838         * haifa-sched.c: Include "hashtab.h"
6839         (sched_no_dce): New global variable.
6840         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6841         SHADOW_P): New macros.
6842         (last_clock_var, cycle_issued_insns): Move declarations.
6843         (must_backtrack): New static variable.
6844         (struct delay_pair): New structure.
6845         (delay_htab, delay_htab_i2): New static variables.
6846         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6847         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6848         functions.
6849         (dep_cost_1): If delay pairs exist, try to look up the insns and
6850         use the correct pair delay if we find them.
6851         (rank-for_schedule): Tweak priority for insns that must be scheduled
6852         soon to avoid backtracking.
6853         (queue_insn): Detect conditions which force backtracking.
6854         (ready_add): Likewise.
6855         (struct sched_block_state): Add member shadows_only_p.
6856         (struct haifa_save_data): New structure.
6857         (backtrack_queue): New static variable.
6858         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6859         unschedule_insns_until, restore_last_backtrack_point,
6860         free_topmost_backtrack_point, free_backtrack_queue,
6861         estimate_insn_tick, estimate_shadow_tick): New functions.
6862         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6863         If true, remove everything that isn't SHADOW_P.  Look up delay
6864         pairs and estimate ticks to avoid scheduling the first insn too early.
6865         (verify_shadows): New function.
6866         (schedule_block): Add machinery to enable backtracking.
6867         (sched_init): Take sched_no_dce into account when setting
6868         DF_LR_RUN_DCE.
6869         (free_delay_pairs): New function.
6870         (init_h_i_d): Initialize INSN_EXACT_TICK.
6871         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6872         * sched-deps.c (sd_unresolve_dep): New function.
6873         * sched-int. (struct haifa_sched_info): New fields save_state
6874         and restore_state.
6875         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6876         feeds_backtrack_insn and shadow_p.
6877         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6878         (sched_no_dce): Declare variable.
6879         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6880         sd_unresolve_dep): Declare functions.
6881         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6882         * sched-rgn.c (rgn_const_sched_info): Likewise.
6883         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6884         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6885         (ebb_sched_info): Add them for the two new fields.
6886         (add_deps_for_risky_insns): Call add_delay_dependencies.
6887
6888 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6889
6890         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6891         Rename -mr11.
6892         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6893         (rs6000_call_indirect_aix): Ditto.
6894         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6895         (call_indirect_aix<ptrsize>_internal): Ditto.
6896         (call_indirect_aix<ptrsize>_nor11): Ditto.
6897         (call_indirect_aix<ptrsize>_internal2): Ditto.
6898         (call_value_indirect_aix<ptrsize>): Ditto.
6899         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6900         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6901         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6902         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6903
6904 2011-07-13  Jason Merrill  <jason@redhat.com>
6905
6906         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6907
6908 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6909
6910         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6911         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6912
6913 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6914
6915         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6916         * configure: Regenerate.
6917
6918 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6919
6920         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6921         (asm_file_start): Remove.
6922         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6923         free_bb_for_insn around code that modifies insns before
6924         restarting df analysis.
6925
6926 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6927
6928         PR target/49541
6929         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6930         (LINK_SPEC): ... here.
6931
6932 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6933
6934         * haifa-sched.c (struct sched_block_state): New.
6935         (schedule_block): Move some local variables into such a structure.
6936
6937 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6938
6939         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6940         * config/i386/t-crtpc: Remove.
6941         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6942         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6943         tmake_file.
6944         (x86_64-*-darwin*): Likewise.
6945         (i[34567]86-*-linux*): Likewise.
6946         (x86_64-*-linux*): Likewise.
6947
6948         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6949         Handle -mpc32, -mpc64, -mpc80.
6950
6951 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6952
6953         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6954         * config/alpha/t-crtfm: Remove.
6955         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6956         * config/i386/t-crtfm: Remove.
6957         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6958         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6959         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6960         * config/sparc/t-crtfm: Remove.
6961
6962         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6963         (alpha*-*-freebsd*): Likewise.
6964         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6965         (x86_64-*-darwin*): Likewise.
6966         (i[34567]86-*-linux*): Likewise.
6967         (x86_64-*-linux*): Likewise.
6968         (x86_64-*-mingw*): Likewise.
6969         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6970         (ia64*-*-freebsd*): Likewise.
6971         (ia64*-*-linux*): Likewise.
6972         (mips64*-*-linux*): Likewise.
6973         (mips*-*-linux*): Likewise.
6974         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6975         (sparc64-*-linux*): Likewise.
6976         (sparc64-*-freebsd*): Likewise.
6977
6978 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6979
6980         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6981         * config/darwin-crt3.c: Move to ../libgcc/config.
6982         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6983         ($(T)crt3$(objext)): Remove.
6984         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6985         ($(T)crt2$(objext)): Remove.
6986         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6987         (powerpc64-*-darwin*): Likewise.
6988
6989 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6990
6991         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6992
6993         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6994         (addsi_1_zext): This.
6995
6996 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6997
6998         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6999         * doc/tm.texi: Regenerate.
7000         * target.def (mergeable_rodata_prefix): New defhookpod.
7001         * varasm.c (mergeable_string_section, mergeable_constant_section):
7002         Use it. Allocate name with alloca.
7003
7004 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7005
7006         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7007
7008 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7009
7010         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7011         overlap check.
7012
7013 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7014
7015         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
7016         (count_type_elements): Delete.
7017         (complete_ctor_at_level_p): Declare.
7018         * expr.c (flexible_array_member_p): New function, split out from...
7019         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
7020         parameter with for_ctor_p.  When for_ctor_p is true, return the
7021         number of elements that should appear in the top-level constructor,
7022         otherwise return an estimate of the number of scalars.
7023         (categorize_ctor_elements): Replace p_must_clear with p_complete.
7024         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
7025         (complete_ctor_at_level_p): New function, borrowing union logic
7026         from old categorize_ctor_elements_1.
7027         (mostly_zeros_p): Return true if the constructor is not complete.
7028         (all_zeros_p): Update call to categorize_ctor_elements.
7029         * gimplify.c (gimplify_init_constructor): Update call to
7030         categorize_ctor_elements.  Don't call count_type_elements.
7031         Unconditionally prevent clearing for variable-sized types,
7032         otherwise rely on categorize_ctor_elements to detect
7033         incomplete initializers.
7034
7035 2011-07-13  Richard Guenther  <rguenther@suse.de>
7036
7037         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7038         the final type is integral.
7039
7040 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7041
7042         * sched-int.h (struct _dep): Add member cost.
7043         (DEP_COST, UNKNOWN_DEP_COST): New macros.
7044         * sched-deps.c (init_dep_1): Initialize DEP_COST.
7045         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7046         (sched_change_pattern): Reset it for dependent insns.
7047
7048 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7049
7050         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7051         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7052         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7053         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7054         (CRT0_S, MCRT0_S): Remove.
7055         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7056         Remove.
7057         (s-crt0): Remove.
7058         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7059
7060 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7061
7062         * cse.c (insert_with_costs): Put semi-colon after empty loop body
7063         on the next line.
7064         * emit-rtl.c (push_to_sequence): Likewise.
7065         * haifa-sched.c (max_issue): Likewise.
7066         * matrix-reorg.c (add_allocation_site): Likewise.
7067         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7068         * reload.c (alternative_allows_const_pool_ref): Likewise.
7069         * sched-rgn.c (rgn_add_block): Likewise.
7070         (rgn_fix_recovery_cfg): Likewise.
7071         * tree.c (attribute_list_contained): Likewise.
7072
7073 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
7074
7075         * config/i386/i386.c: Tidy processor feature bitmasks.
7076         (m_P4_NOCONA): New.
7077
7078 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
7079
7080         PR rtl-opt/49474
7081         * cprop.c (find_implicit_sets): Correct the condition.
7082
7083 2011-07-12  Richard Henderson  <rth@redhat.com>
7084
7085         PR target/49713
7086         * dwarf2out.h (dwarf_frame_regnum): Remove.
7087         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
7088         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
7089         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7090         (execute_dwarf2_frame): Initialize them.
7091         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7092         users of the macros with the variables.
7093         (expand_builtin_dwarf_sp_column): Revert last change.
7094         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
7095         result of DWARF_FRAME_REGNUM into a local variable.
7096
7097 2011-07-12  Richard Henderson  <rth@redhat.com>
7098
7099         PR target/49714
7100         * config/i386/i386.c (x86_output_mi_thunk): Use
7101         machopic_indirect_call_target instead of machopic_indirection_name
7102         directly.
7103
7104 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
7105             Eric Botcazou  <ebotcazou@adacore.com>
7106
7107         * prefix.h: Wrap up in extern "C" block.
7108
7109 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
7110
7111         AMD bdver2 Enablement
7112         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7113         (case ${target}): Add bdver2.
7114         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7115         -march=native recognize bdver2 processors.
7116         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7117         bdver2 def_and_undef
7118         * config/i386/i386.c (struct processor_costs bdver2_cost): New
7119         bdver2 cost table.
7120         (m_BDVER2): New definition.
7121         (m_AMD_MULTIPLE): Includes m_BDVER2.
7122         (initial_ix86_tune_features): Add bdver2 tuning.
7123         (processor_target_table): Add bdver2 entry.
7124         (static const char *const cpu_names): Add bdver2 entry.
7125         (ix86_option_override_internal): Add bdver2 instruction sets.
7126         (ix86_issue_rate): Add bdver2.
7127         (ix86_adjust_cost): Add bdver2.
7128         (has_dispatch): Add bdver2.
7129         * config/i386/i386.h (TARGET_BDVER2): New definition.
7130         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7131         (enum processor_type): Add PROCESSOR_BDVER2.
7132         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7133         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7134         description.
7135
7136 2011-07-12  Richard Henderson  <rth@redhat.com>
7137
7138         PR target/49714
7139         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7140         destination address in memory on some paths.
7141
7142 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
7143
7144         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7145         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7146         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7147         * function.c (locate_and_pad_parm): Take it into account.
7148         * target.def (function_arg_round_boundary): New hook.
7149         * targhooks.c (default_function_arg_round_boundary): New function.
7150         * targhooks.h (default_function_arg_round_boundary): Declare.
7151         * doc/tm.texi: Regenerate.
7152
7153 2011-07-12  Richard Guenther  <rguenther@suse.de>
7154
7155         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7156         Do not perform no-op changes.
7157
7158 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
7159
7160         * config/arm/predicates.md (neon_struct_operand): Make a normal
7161         predicate.
7162         (neon_struct_or_register_operand): New predicate.
7163         * config/arm/neon.md (movmisalign<mode>): Replace predicates
7164         with neon_struct_or_register_operand.
7165         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7166         neon_struct_operand instead of memory_operand.
7167
7168 2011-07-12  Martin Jambor  <mjambor@suse.cz>
7169
7170         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7171         * cgraph.c (cgraph_get_node_or_alias): Removed.
7172         (change_decl_assembler_name): Changed all calls to
7173         cgraph_get_node_or_alias to a call to cgraph_get_node.
7174         (cgraph_make_decl_local): Likewise.
7175         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7176         * varasm.c (default_binds_local_p_1): Likewise.
7177         (decl_binds_to_current_def_p): Likewise.
7178
7179 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
7180
7181         PR tree-optimization/49712
7182         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7183
7184 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
7185
7186         * genautomata.c (add_arc): Return void.  All callers changed.
7187         (make_automaton): Remove dead code.
7188
7189 2011-07-11  Richard Henderson  <rth@redhat.com>
7190
7191         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7192         (DW_FRAME_POINTER_REGNUM): New.
7193         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7194         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7195         (dwf_regno): New.
7196         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7197         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7198         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7199         Use it.
7200         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7201         * dwarf2out.h (dwarf_frame_regnum): New.
7202         (struct cfa_loc): Document the domain of the reg member.
7203
7204 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
7205
7206         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7207         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
7208
7209 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
7210
7211         PR debug/49676
7212         * dwarf2out.c (int_shift_loc_descriptor): New function.
7213         (int_loc_descriptor): If shorter, emit i as
7214         (i >> shift), shift, DW_OP_shl for suitable shift value.
7215         Similarly, try to optimize large negative values using
7216         DW_OP_neg of a positive value if shorter.
7217         (size_of_int_shift_loc_descriptor): New function.
7218         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7219         changes.
7220         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7221         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7222         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7223         is shorter.
7224         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7225         addend as added DW_OP_plus if it is shorter.
7226
7227 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7228
7229         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7230         (DTORS_SECTION_ASM_OP): Define.
7231
7232 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7233
7234         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7235         * config/t-dfprules: Move to ../libgcc/config.
7236         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7237         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7238         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7239         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7240         Likewise.
7241         (i[34567]86-*-cygwin*): Likewise.
7242         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
7243         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7244         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7245         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7246         D64PBIT_FUNCS, D128PBIT_FUNCS.
7247
7248 2011-07-11  Richard Guenther  <rguenther@suse.de>
7249
7250         * tree-vrp.c (simplify_conversion_using_ranges): Manually
7251         translate the source value-range through the conversion chain.
7252
7253 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
7254
7255         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7256
7257 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7258
7259         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7260         a bi-arch compiler defaulting to 31-bit. In this case:
7261         (tmake_file): Add s390/t-linux64.
7262         * doc/install.texi: Add s390-linux to the list of targets supporting
7263         --enable-targets=all.
7264
7265 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7266             Matthias Klose <doko@debian.org>
7267
7268         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7269         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7270         (tm_file): Add mips/linux64.h.
7271         (tmake_file): Add mips/t-linux64.
7272         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7273         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7274         instead of hardcoded mabi=n32.
7275         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7276         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7277         convention.
7278
7279 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7280
7281         * passes.c (init_optimization_passes): Add invariant motion pass
7282         after induction variable optimization.
7283
7284 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
7285
7286         PR target/39633
7287         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7288         offsets 1..5 set cc0 in a usable way.
7289
7290 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
7291
7292         * tree.h (call_expr_arg): Remove.
7293         (call_expr_argp): Likewise.
7294
7295 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7296
7297         * config/sparc/sparc.md (save_register_window_1): Rename to...
7298         (window_save): ...this.
7299         * config/sparc/sparc.c (emit_save_register_window): Rename to...
7300         (emit_window_save): ...this.
7301         (sparc_expand_prologue): Adjust to above renaming.
7302
7303 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7304
7305         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7306         of movabs for x32.
7307
7308 2011-07-10  Richard Henderson  <rth@redhat.com>
7309
7310         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7311         run final, instead of emitting text directly.
7312
7313 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7314
7315         * config/i386/i386.c (ix86_option_override_internal): Turn on
7316         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
7317         small PIC models for TARGET_X32.
7318
7319 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
7320
7321         PR target/49684
7322         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7323         $(LIBGCC2_CFLAGS).
7324
7325         PR bootstrap/49680
7326         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7327         stray notes and debug insns by using prev_nonnote_nondebug_insn
7328         instead of PREV_INSN.
7329
7330 2011-07-09  Richard Henderson  <rth@redhat.com>
7331
7332         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7333         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7334         * dwarf2out.c: ... here.
7335         (output_all_cfis): Remove.
7336         (dwarf2out_switch_text_section): Use output_cfis directly.
7337         (size_of_locs): Export.
7338         (output_loc_sequence, output_loc_sequence_raw): Export.
7339         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7340         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7341         output_cfa_loc_raw): Move to ...
7342         * dwarfcfi.c: ... here.
7343         * dwarf2out.h: Update decls.
7344
7345 2011-07-09  Richard Henderson  <rth@redhat.com>
7346
7347         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7348         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7349         * dwarf2cfi.c: ... here.
7350         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7351         (DWARF_ROUND, DWARF_CIE_ID): Remove.
7352         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7353         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7354         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7355
7356 2011-07-09  Richard Henderson  <rth@redhat.com>
7357
7358         * dwarf2cfi.c (cie_return_save): New.
7359         (queue_reg_save): Use compare_reg_or_pc.
7360         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7361         (dwarf2out_frame_debug_expr): Likewise.
7362         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7363         (initial_return_save): Likewise.
7364         (execute_dwarf2_frame): Save and restore initial return save from
7365         the cie to the fde.
7366         * config/mips/mips.c (mips_frame_set): Remove special case for
7367         DWARF_FRAME_RETURN_COLUMN.
7368
7369 2011-07-09  Richard Henderson  <rth@redhat.com>
7370
7371         * dwarf2cfi.c (lookup_cfa): Remove.
7372         (execute_dwarf2_frame): Assert queues are empty on entry.
7373         Setup initial cfa directly, not via lookup_cfa.
7374         Don't clear args_size state here.
7375
7376 2011-07-09  Richard Henderson  <rth@redhat.com>
7377
7378         * dwarf2cfi.c (add_cfi_vec): New.
7379         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
7380         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
7381         (execute_dwarf2_frame): Set add_cfi_vec.
7382
7383 2011-07-09  Richard Henderson  <rth@redhat.com>
7384
7385         * defaults.h (ASM_COMMENT_START): Move here...
7386         * dwarf2asm.c: ... from here.
7387         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7388         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7389         * varasm.c: Likewise.
7390
7391 2011-07-09  Richard Henderson  <rth@redhat.com>
7392
7393         PR debug/49686
7394         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7395         (create_cfi_notes): ... do it here instead.
7396
7397 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
7398
7399         PR debug/49676
7400         * dwarf2out.c (size_of_int_loc_descriptor): New function.
7401         (address_of_int_loc_descriptor): Use it.
7402         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7403
7404 2011-07-09  Richard Henderson  <rth@redhat.com>
7405
7406         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7407         (prologue, epilogue): New.
7408         (return, *rts): New.
7409         (blockage, setd, seti): New.
7410         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7411         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7412         (pdp11_saved_regno): New.
7413         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7414         generate rtl instead of text.
7415         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7416         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
7417         * config/pdp11/pdp11-protos.h: Update.
7418
7419 2011-07-09  Richard Henderson  <rth@redhat.com>
7420
7421         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7422         try to insert an rtl prologue here.
7423         (rs6000_output_function_epilogue): Similarly.
7424         * config/rs6000/rs6000.md (prologue): Emit a barrier to
7425         satisfy !TARGET_SCHED_PROLOG.
7426         (epilogue, sibcall_epilogue): Likewise.
7427
7428 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
7429
7430         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7431         (FP_REG_P): Delete.
7432         (IN_OR_GLOBAL_P): Likewise.
7433
7434 2011-07-08  Jason Merrill  <jason@redhat.com>
7435
7436         PR c++/45437
7437         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7438         compound assignment.
7439
7440         * cgraph.c (cgraph_add_to_same_comdat_group): New.
7441         * cgraph.h: Declare it.
7442         * ipa.c (function_and_variable_visibility): Make sure thunks
7443         have the right visibility.
7444
7445 2011-07-08  Richard Henderson  <rth@redhat.com>
7446
7447         PR bootstrap/49680
7448         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7449         any tablejump vector.
7450
7451         PR bootstrap/49680
7452         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7453         end of the prologue.
7454
7455 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
7456
7457         PR target/49621
7458         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7459         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7460         * config/rs6000/vector.md (vector_select_<mode>,
7461         vector_select_<mode>_uns): Change second operand of NE to
7462         CONST0_RTX (<MODE>mode) instead of const0_rtx.
7463         * config/rs6000/altivec.md (*altivec_vsel<mode>,
7464         *altivec_vsel<mode>_uns): Expect second operand of NE to be
7465         zero_constant of the corresponding vector mode.
7466         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7467         Likewise.
7468
7469 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7470
7471         * graphite-dependences.c (build_alias_set_powerset): Remove
7472         continue from loop, add one more assert.
7473
7474 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7475
7476         PR target/46779
7477         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7478         In particular, allow 8-bit values in r28 and r29.
7479         (avr_hard_regno_scratch_ok): Disallow any register that might be
7480         part of the frame pointer.
7481         (avr_hard_regno_rename_ok): Same.
7482         (avr_legitimate_address_p): Don't allow SUBREGs.
7483
7484 2011-07-08  Julian Brown  <julian@codesourcery.com>
7485
7486         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7487         big-endian mode.
7488         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7489         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7490         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7491         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7492         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7493         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7494         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7495         registers in big-endian mode.
7496
7497 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7498
7499         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7500         in terms of another.
7501         (write_attr_value): Write a cast if necessary.
7502
7503         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7504         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7505         (REG_WORDS_BIG_ENDIAN): Document.
7506         * doc/tm.texi: Regenerate.
7507         * reload.c (operands_match_p): Take it into account.
7508         (reload_adjust_reg_for_mode): Likewise.
7509         * rtlanal.c (subreg_get_info): Likewise.
7510
7511 2011-07-08  Richard Guenther  <rguenther@suse.de>
7512
7513         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7514         folding.
7515
7516 2011-07-08  Kai Tietz  <ktietz@redhat.com>
7517
7518         * fold-const.c (fold_truth_andor): Factored out truth_andor
7519         label from fold_binary as function.
7520         (fold_binary_loc): Replace truth_andor lable
7521         by function fold_truth_andor.
7522
7523 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
7524
7525         PR middle-end/49519
7526         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7527         check if address is stored in register. If so - give up.
7528         (check_sibcall_argument_overlap_1): Do not perform check of
7529         overlapping when it is call to address.
7530
7531 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7532
7533         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7534         of magic '31'.
7535
7536 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7537
7538         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7539         GET_MODE_BITSIZE where appropriate.
7540         (widen_leading, expand_parity, expand_ctz, expand_ffs,
7541         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7542         expand_float, expand_fix): Likewise.
7543         * expr.c (convert_move, convert_modes, expand_expr_real_2,
7544         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7545         * stor-layout.c (get_mode_bounds): Likewise.
7546         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7547         Likewise.
7548         * convert.c (convert_to_integer): Likewise.
7549         * expmed.c (expand_shift_1): Likewise.
7550
7551         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7552         a bitsize.
7553
7554         * optabs.c (expand_binop): Tighten conditions for doubleword
7555         expansions.
7556         (widen_bswap): Assert that mode bitsize and precision are the same.
7557         * stor-layout.c (get_best_mode): Skip modes that have lower
7558         precision than bitsize.
7559         * recog.c (simplify_while_replacing): Assert that bitsize and
7560         precision are the same.
7561
7562 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7563
7564         * Makefile.in (LIBGCOV): Remove.
7565         (libgcc.mvars): Remove LIBGCOV.
7566         * libgov.c: Move to ../libgcc.
7567
7568 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7569
7570         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7571
7572 2011-07-08  Martin Jambor  <mjambor@suse.cz>
7573
7574         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7575         is too big for total scalarization.
7576
7577 2011-07-07  Richard Henderson  <rth@redhat.com>
7578
7579         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7580         (DBX_DEBUGGING_INFO): Undef.
7581
7582 2011-07-07  Richard Henderson  <rth@redhat.com>
7583
7584         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
7585         Handle some opcodes specially for debugging.
7586         * print-rtl.c: Include dwarf2out.h
7587         (print_rtx): Handle NOTE_INSN_CFI.
7588         * Makefile.in (print-rtl.o): Update.
7589
7590 2011-07-07  Richard Henderson  <rth@redhat.com>
7591
7592         * tree-pass.h (pass_dwarf2_frame): Declare.
7593         * passes.c (init_optimization_passes): Add it.
7594         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7595         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7596         make static, do not call add_cfis_to_fde.
7597         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7598         dwarf2out_frame_init): Merge into...
7599         (execute_dwarf2_frame): ... here.  New function.
7600         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
7601         saved_do_cfi_asm to a tri-state variable.
7602         (gate_dwarf2_frame, pass_dwarf2_frame): New.
7603         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7604         if it has yet to be done.  Don't call dwarf2cfi_function_init.
7605         * dwarf2out.h, debug.h: Update decls.
7606         * final.c (final_start_function): Don't call
7607         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7608         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7609         * toplev.c (lang_dependent_init): Likewise.
7610
7611 2011-07-07  Richard Henderson  <rth@redhat.com>
7612
7613         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7614         FDE_TABLE_INCREMENT): Replace with...
7615         (fde_vec): ... this, a new vector.
7616         (current_fde): Remove.  Replace all users with cfun->fde.
7617         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7618         (size_of_aranges, dwarf2out_finish): Likewise.
7619         (dwarf2out_alloc_current_fde): Break out from ...
7620         (dwarf2out_begin_prologue): ... here.
7621         (dwarf2out_frame_init): Remove.
7622         * dwarf2cfi.c: Update all users of current_fde.
7623         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7624         * dwarf2out.h: Update decls.
7625         (dw_fde_node): Add fde_index member.
7626         * function.h (struct function): Add fde member.
7627
7628 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7629             Richard Henderson  <rth@redhat.com>
7630
7631         * dwarf2cfi.c (add_cfi): Remove.
7632         (dwarf2out_cfi_label): Remove force argument.  Only generate the
7633         label name.
7634         (add_fde_cfi): Simplify the different code paths.
7635         (add_cie_cfi): New.
7636         (old_cfa, old_cfa_remember): New.
7637         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7638         (last_reg_save_label): Remove.
7639         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7640         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7641         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7642         dwarf2out_frame_debug_cfa_expression,
7643         dwarf2out_frame_debug_cfa_restore,
7644         dwarf2out_frame_debug_cfa_window_save,
7645         dwarf2out_frame_debug_expr): Remove label parameter.
7646         (cfi_label_required_p, add_cfis_to_fde): New.
7647         (dwarf2out_frame_debug_after_prologue): New.
7648         (dwarf2cfi_frame_init): Initialize old_cfa.
7649         (dwarf2out_frame_debug_restore_state): Likewise.
7650         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7651         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7652         * final.c (final_start_function): Call
7653         dwarf2out_frame_debug_after_prologue.
7654
7655 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7656             Richard Henderson  <rth@redhat.com>
7657
7658         * dwarf2cfi.c (cfi_insn): New.
7659         (dwarf2out_cfi_label): Don't emit cfi label here.
7660         (add_fde_cfi): Create a NOTE_INSN_CFI.
7661         (dwarf2out_frame_debug): Setup cfi_insn.
7662         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7663         (dwarf2out_cfi_begin_epilogue): Make static.
7664         (dwarf2out_frame_debug_restore_state): Make static.
7665         * dwarf2out.c (output_cfi_directive): Make static.
7666         (dwarf2out_emit_cfi): New.
7667         * dwarf2out.h: Update.
7668         * final.c (final): Remove CFI notes.
7669         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7670         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7671         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7672         * insn-notes.def (NOTE_INSN_CFI): New.
7673         (NOTE_INSN_CFI_LABEL): New.
7674         * rtl.h (union rtunion_def): Add rt_cfi member.
7675         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7676
7677 2011-07-07  Richard Henderson  <rth@redhat.com>
7678
7679         * dwarf2cfi.c: New file.
7680         * Makefile.in (OBJS): Add it.
7681         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7682         * gengtype.c (open_base_files): Include dwarf2out.h.
7683         * coretypes.h (enum var_init_status): Move from ...
7684         * rtl.h: ... here.
7685         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7686         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7687         expand_builtin_dwarf_sp_column, init_return_column_size,
7688         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7689         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7690         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7691         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7692         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7693         compute_barrier_args_size, dwarf2out_args_size,
7694         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7695         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7696         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7697         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7698         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7699         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7700         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7701         dwarf2out_frame_debug_cfa_expression,
7702         dwarf2out_frame_debug_cfa_restore,
7703         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7704         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7705         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7706         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7707         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7708         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7709         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7710         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7711         dw_loc_descr_node): Move to dwarf2out.h.
7712         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7713         mem_loc_descriptor): Export.
7714         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7715         (dwarf2out_frame_init): Extract CIE generation code to
7716         dwarf2cfi_frame_init.
7717
7718 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7719
7720         PR target/49660
7721         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7722         MASK_V8PLUS, remove commented out flag and reorder.
7723
7724 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7725
7726         PR c/49644
7727         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7728         one non-complex and one complex argument, call c_save_expr on both
7729         operands.
7730
7731 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7732
7733         PR middle-end/49495
7734         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7735         (verify_cgraph_node): Some functinality moved to
7736         verify_edge_corresponds_to_fndecl, call it.
7737
7738 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7739
7740         * config.gcc (*local*): Remove.
7741         * doc/install-old.texi: Don't mention local configurations.
7742
7743 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7744
7745         PR debug/49522
7746         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7747         referencing debug insns that have been reset.
7748         (dead_debug_insert_before): Don't assert reg is non-NULL,
7749         instead return immediately if it is NULL.
7750
7751 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7752
7753         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7754
7755 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7756
7757         * hw-doloop.c: New file.
7758         * hw-doloop.h: New file.
7759         * Makefile.in (OBJS): Add hw-doloop.o.
7760         (hw-doloop.o): New rule.
7761         ($(obj_out_file)): Add hw-doloop.h dependency.
7762         * config/bfin/bfin.c: Include "hw-doloop.h".
7763         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7764         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7765         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7766         type changed to hwloop_info.  Return bool, true if the loop was
7767         successfully optimized.  Remove code that was moved to
7768         hw-doloop.c, and adjust other parts.
7769         (hwloop_fail): New static function, containing parts that used
7770         to be in bfin_optimize_loop.
7771         (bfin_discover_loop, bfin_discover_loops, free_loops,
7772         bfin_reorder_loops): Remove.
7773         (hwloop_pattern_reg): New static function.
7774         (bfin_doloop_hooks): New variable.
7775         (bfin_reorg_loops): Remove most code, call reorg_loops.
7776         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7777         loop counter is a memory_operand.
7778
7779 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7780
7781         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7782
7783         * configure.ac: Mention x86-64 for --with-multilib-list.
7784         * configure: Regenerated.
7785
7786         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7787         (SPEC_32): Likewise.
7788         (ASM_SPEC): Likewise.
7789         (LINK_SPEC): Likewise.
7790         (TARGET_THREAD_SSP_OFFSET): Likewise.
7791         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7792         (SPEC_X32): New.
7793
7794         * config/i386/i386.h (TARGET_X32): New.
7795         (TARGET_LP64): New.
7796         (LONG_TYPE_SIZE): Likewise.
7797         (POINTER_SIZE): Likewise.
7798         (POINTERS_EXTEND_UNSIGNED): Likewise.
7799         (OPT_ARCH64): Support x32.
7800         (OPT_ARCH32): Likewise.
7801
7802         * config/i386/i386.opt (mx32): New.
7803
7804         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7805         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7806         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7807         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7808
7809         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7810         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7811         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7812
7813         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7814
7815         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7816
7817         * doc/invoke.texi: Document -mx32.
7818
7819 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7820
7821         * doc/invoke.texi (mwords-little-endian): Deprecate.
7822         * config/arm/arm.opt (mwords-little-endian): Likewise.
7823         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7824         of -mwords-little-endian.
7825
7826 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7827
7828         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7829         an old reload register completely defines the required value.
7830
7831 2011-07-07  Richard Guenther  <rguenther@suse.de>
7832
7833         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7834         for NEGATE_EXPR.
7835
7836 2011-07-07  Richard Guenther  <rguenther@suse.de>
7837
7838         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7839         (simplify_stmt_using_ranges): Call it.
7840
7841 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7842
7843         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7844         (lookup_logical_inverted_value): Likewise.
7845         (simplify_bitwise_binary_1): Likewise.
7846         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7847
7848 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7849
7850         * gcc.c (%[Spec]): Don't document.
7851         (struct spec_list): Update comment.
7852         (do_spec_1): Don't handle %[Spec].
7853         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7854
7855 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7856
7857         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7858         default based on TARGET_ASM_NAMED_SECTION.
7859         * common/common-target.def (have_named_sections): Default to true.
7860         * common/config/default-common.c: Don't include tm.h.
7861         * common/config/picochip/picochip-common.c
7862         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7863         * common/config/m32c/m32c-common.c: Remove.
7864         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7865         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7866         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7867         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7868         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7869         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7870         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7871
7872 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7873
7874         PR middle-end/49640
7875         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7876         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7877
7878 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7879
7880         PR libmudflap/49550
7881         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7882
7883 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7884
7885         PR target/39150
7886         * configure.ac (gcc_cv_as_hidden): Also accept
7887         x86_64-*-solaris2.1[0-9]*.
7888         (gcc_cv_as_cfi_directive): Likewise.
7889         (gcc_cv_as_comdat_group_group): Likewise.
7890         (set_have_as_tls): Likewise.
7891         * configure: Regenerate.
7892         * config.gcc (i[34567]86-*-solaris2*): Also handle
7893         x86_64-*-solaris2.1[0-9]*.
7894         * config.host (i[34567]86-*-solaris2*): Likewise.
7895         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7896         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7897         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7898         (TARGET_LD_EMULATION): Use it.
7899         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7900         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7901         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7902         (ASM_CPU64_DEFAULT_SPEC): Define.
7903         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7904         (ASM_SPEC): Redefine.
7905         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7906         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7907         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7908         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7909         configuration.
7910         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7911
7912 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7913
7914         * config/sol2.h (ASM_SPEC): Split into ...
7915         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7916         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7917         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7918         (ASM_SPEC): Use ASM_SPEC_BASE.
7919         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7920
7921 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7922
7923         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7924         const_int_operand.  Ditto for peep2 producing this insn.
7925         Add argument to output_reload_insisf call.
7926         (*movsi,*movsf): Add argument to output_movsisf call.
7927         (*reload_insf): New insn and new peep2 to produce it.
7928         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7929         (output_reload_insisf): Change prototype.
7930         * config/avr/avr.c (avr_asm_len): New function.
7931         (output_reload_insisf): Rewrite.
7932         (output_movsisf): Change prototype.  output_reload_insisf for
7933         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7934         (adjust_insn_length): Add argument to output_movsisf and
7935         output_reload_insisf call.
7936
7937 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7938
7939         * emit-rtl.c (paradoxical_subreg_p): New function.
7940         * rtl.h (paradoxical_subreg_p): Declare.
7941         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7942         apply_distributive_law, simplify_comparison, simplify_set): Use it.
7943         * cse.c (record_jump_cond, cse_insn): Likewise.
7944         * expr.c (force_operand): Likewise.
7945         * rtlanal.c (num_sign_bit_copies1): Likewise.
7946         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7947         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7948         (push_reload): Use precision to check for paradoxical subregs.
7949         * expmed.c (extract_bit_field_1): Likewise.
7950
7951         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7952         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7953         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7954         simplify_set, simplify_logical, expand_compound_operation,
7955         make_extraction, force_to_mode, if_then_else_cond, extended_count,
7956         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7957         record_value_for_reg): Likewise.
7958         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7959         * simplify-rtx. c (simplify_unary_operation_1,
7960         simplify_binary_operation_1, simplify_const_relational_operation):
7961         Likewise.
7962
7963         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7964         instead of GET_MODE_BITSIZE where appropriate.
7965         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7966         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7967         init_num_sign_bit_copies_in_rep): Likewise.
7968         * cse.c (fold_rtx, cse_insn): Likewise.
7969         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7970         * simplify-rtx.c (simplify_unary_operation_1,
7971         simplify_const_unary_operation, simplify_binary_operation_1,
7972         simplify_const_binary_operation, simplify_ternary_operation,
7973         simplify_const_relational_operation, simplify_subreg): Likewise.
7974         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7975         simplify_if_then_else, simplify_set, expand_compound_operation,
7976         expand_field_assignment, make_extraction, if_then_else_cond,
7977         make_compound_operation, force_to_mode, make_field_assignment,
7978         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7979         extended_count, try_widen_shift_mode, simplify_shift_const_1,
7980         simplify_comparison, record_promoted_value, simplify_compare_const,
7981         record_dead_and_set_regs_1): Likewise.
7982
7983         Revert:
7984         * simplify-rtx.c (simplify_const_binary_operation): Use the
7985         shift_truncation_mask hook instead of performing modulo by width.
7986         Compare against mode precision, not bitsize.
7987         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7988         Use shift_truncation_mask instead of constructing the value manually.
7989
7990 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7991
7992         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7993         declaration.
7994         (rs6000_save_toc_in_prologue_p): Ditto.
7995
7996         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7997         up the static chain (r11) during indirect function calls.
7998         (-msave-toc-indirect): New undocumented debug switch.
7999
8000         * config/rs6000/rs6000.c (struct machine_function): Add
8001         save_toc_in_prologue field to note whether the prologue needs to
8002         save the TOC value in the reserved stack location.
8003         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
8004         to save the TOC in the prologue, do so.
8005         (rs6000_trampoline_init): Don't allow creating AIX style
8006         trampolines if -mno-r11 is in effect.
8007         (rs6000_call_indirect_aix): New function to create AIX style
8008         indirect calls, adding support for -mno-r11 to suppress loading
8009         the static chain, and saving the TOC in the prologue instead of
8010         the call body.
8011         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8012         TOC in the prologue.
8013
8014         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8015         register numbers.
8016         (TOC_REGNUM): Ditto.
8017         (STATIC_CHAIN_REGNUM): Ditto.
8018         (ARG_POINTER_REGNUM): Ditto.
8019         (SFP_REGNO): Delete, unused.
8020         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8021         function descriptor offsets.
8022         (TOC_SAVE_OFFSET_64BIT): Ditto.
8023         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8024         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8025         (AIX_FUNC_DESC_SC_32BIT): Ditto.
8026         (AIX_FUNC_DESC_SC_64BIT): Ditto.
8027         (ptrload): New mode attribute for the appropriate load of a pointer.
8028         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8029         (call_indirect_aix64): Ditto.
8030         (call_value_indirect_aix32): Ditto.
8031         (call_value_indirect_aix64): Ditto.
8032         (call_indirect_nonlocal_aix32_internal): Ditto.
8033         (call_indirect_nonlocal_aix32): Ditto.
8034         (call_indirect_nonlocal_aix64_internal): Ditto.
8035         (call_indirect_nonlocal_aix64): Ditto.
8036         (call): Rewrite AIX indirect function calls.  Add support for
8037         eliminating the static chain, and for moving the save of the TOC
8038         to the function prologue.
8039         (call_value): Ditto.
8040         (call_indirect_aix<ptrsize>): Ditto.
8041         (call_indirect_aix<ptrsize>_internal): Ditto.
8042         (call_indirect_aix<ptrsize>_internal2): Ditto.
8043         (call_indirect_aix<ptrsize>_nor11): Ditto.
8044         (call_value_indirect_aix<ptrsize>): Ditto.
8045         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8046         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8047         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8048         (call_nonlocal_aix32): Relocate in the rs6000.md file.
8049         (call_nonlocal_aix64): Ditto.
8050
8051         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8052         -mno-r11 documentation.
8053
8054 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8055
8056         PR other/49658
8057         * doc/extend.texi (Compound Literals): Fix typo.
8058
8059 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
8060
8061         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8062
8063 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
8064
8065         * configure.ac (plugin-version.h): Generate
8066         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8067         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8068         macros.
8069
8070         * configure: Regenerate.
8071
8072         * doc/plugins.texi (Building GCC plugins): Mention
8073         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8074
8075 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8076
8077         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8078         * combine.c (make_extraction, gen_lowpart_or_truncate,
8079         apply_distributive_law, simplify_comparison,
8080         reg_truncated_to_mode, record_truncated_value): Use it.
8081         * cse.c (notreg_cost): Likewise.
8082         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8083         * expr.c (convert_move, convert_modes): Likewise.
8084         * optabs.c (expand_binop, expand_unop): Likewise.
8085         * postreload.c (move2add_last_label): Likewise.
8086         * regmove.c (optimize_reg_copy_3): Likewise.
8087         * rtlhooks.c (gen_lowpart_general): Likewise.
8088         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8089
8090 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
8091
8092         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8093
8094 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8095
8096         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8097         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8098         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8099         (simplify_const_unary_operation, simplify_binary_operation_1,
8100         simplify_const_binary_operation, simplify_const_relational_operation):
8101         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
8102         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8103         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8104         simplify_shift_const_1, simplify_comparison): Likewise.
8105         * expr.c (convert_modes): Likewise.
8106         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8107         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8108         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8109
8110         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8111
8112 2011-07-06  Richard Guenther  <rguenther@suse.de>
8113
8114         PR tree-optimization/49645
8115         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8116         register variables.
8117         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8118         in type qualification here ...
8119         (copy_reference_ops_from_ref): ... not here.
8120         (vn_reference_lookup_3): ... or here.
8121         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8122         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8123
8124 2011-07-06  Ian Lance Taylor  <iant@google.com>
8125
8126         * doc/install.texi (Configuration): It's
8127         --enable-gnu-indirect-function, not --enable-indirect-function.
8128
8129 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8130
8131         * simplify-rtx.c (simplify_const_binary_operation): Use the
8132         shift_truncation_mask hook instead of performing modulo by width.
8133         Compare against mode precision, not bitsize.
8134         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8135         Use shift_truncation_mask instead of constructing the value manually.
8136
8137 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8138
8139         PR middle-end/47383
8140         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8141         address computation and convert to address_mode if needed.
8142
8143 2011-07-06  Richard Guenther  <rguenther@suse.de>
8144
8145         * tree.c (build_common_tree_nodes_2): Merge with
8146         build_common_tree_nodes.
8147         * tree.h (build_common_tree_nodes): Adjust prototype.
8148         (build_common_tree_nodes_2): Remove.
8149         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8150         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8151
8152 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
8153
8154         PR tree-optimization/49618
8155         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8156         t recurse on the decl.
8157         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8158         return true if expr isn't known to be defined in current
8159         TU or some other LTO partition.
8160
8161 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8162
8163         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8164         override CASE_VALUES_THRESHOLD.
8165
8166         * stmt.c (toplevel): Include params.h.
8167         (case_values_threshold): Use the --param case-values-threshold
8168         value if non-zero, otherwise use machine dependent value.
8169         (expand_case): Use case_values_threshold.
8170
8171         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8172
8173         * doc/invoke.texi (--param case-values-threshold): Document.
8174
8175 2011-07-05  Richard Henderson  <rth@redhat.com>
8176
8177         * dwarf2out.c (dwarf2out_cfi_label): Make static.
8178         (dwarf2out_flush_queued_reg_saves): Make static.
8179         (dwarf2out_reg_save): Remove.
8180         (dwarf2out_return_save): Remove.
8181         (dwarf2out_return_reg): Remove.
8182         (dwarf2out_reg_save_reg): Remove.
8183         (dwarf2out_def_cfa): Merge into ...
8184         (dwarf2out_frame_init): ... here.
8185         * dwarf2out.h, tree.h: Remove declarations as necessary.
8186
8187 2011-07-05  Richard Henderson  <rth@redhat.com>
8188
8189         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8190         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8191         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8192         the alloc insn.
8193
8194         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8195         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8196         (process_epilogue): Don't call dwarf2out_def_cfa.
8197
8198         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8199         indicate the return address save.
8200         (process_cfa_register): Likewise.
8201
8202         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8203         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8204
8205         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8206         for ar.pfs save at alloc insn.
8207
8208 2011-07-05  Richard Henderson  <rth@redhat.com>
8209
8210         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8211         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8212         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8213         stack pointer save.
8214         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8215         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
8216         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8217         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8218
8219 2011-07-05  Richard Henderson  <rth@redhat.com>
8220
8221         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
8222         VUNSPEC_* constants here instead of via define_constants.
8223         (VUNSPEC_PEM): New constant.
8224         (procedure_entry_mask): New insn.
8225         (prologue): New expander.
8226         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8227         (vax_expand_prologue): Rename from vax_output_function_prologue;
8228         emit rtl instead of text.
8229         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8230         (print_operand): Add 'x' prefix.
8231
8232 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8233
8234         PR middle-end/47715
8235         * calls.c (precompute_register_parameters): Promote the function
8236         argument before checking non-legitimate constant.
8237
8238 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8239
8240         PR tree-optimization/47654
8241         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8242         (lst_do_strip_mine_loop): Return an int.
8243         (lst_do_strip_mine): Same.
8244         (scop_do_strip_mine): Same.
8245         (scop_do_block): Loop blocking should strip-mine at least two loops.
8246         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8247         (scop_do_interchange): Same.
8248         * graphite-poly.h (scop_do_interchange): Update declaration.
8249         (scop_do_strip_mine): Same.
8250
8251 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8252
8253         * graphite-clast-to-gimple.c (precision_for_value): Removed.
8254         (precision_for_interval): Removed.
8255         (gcc_type_for_interval): Use mpz_sizeinbase.
8256
8257 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8258
8259         * graphite-ppl.h (value_max): Correct computation of max.
8260
8261 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8262
8263         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8264
8265 2011-07-05  Richard Guenther  <rguenther@suse.de>
8266
8267         * c-decl.c (c_init_decl_processing): Defer building common
8268         tree nodes to c_common_nodes_and_builtins.
8269
8270 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
8271
8272         PR tree-optimization/49580
8273         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8274         the loop's number of iterations.
8275         * tree-parloops.c (transform_to_exit_first_loop): Add the
8276         handling of the loop's number of iterations before the call
8277         to gimple_duplicate_sese_tail.
8278         Insert the stmt caclculating the new rhs of the loop's
8279         condition stmt to the preheader instead of iters_bb.
8280
8281 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8282
8283         PR rtl-optimization/47449
8284         * fwprop.c (forward_propagate_subreg): Don't propagate hard
8285         register nor zero/sign extended hard register.
8286
8287 2011-07-05  Richard Guenther  <rguenther@suse.de>
8288
8289         PR tree-optimization/49518
8290         PR tree-optimization/49628
8291         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8292         irrelevant and invariant data-references.
8293         (vect_analyze_data_ref_access): For invariant loads clear the
8294         group association.
8295
8296 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
8297
8298         PR rtl-optimization/49619
8299         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8300         pass VOIDmode as op0_mode to recursive call, and return temp even
8301         when different from tor, just if it is not IOR of the original
8302         PLUS arguments.
8303
8304         PR rtl-optimization/49472
8305         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8306         negating MULT, negate the second operand instead of first.
8307         (simplify_binary_operation_1) <case MULT>: If one operand is
8308         a NEG and the other is MULT, don't attempt to optimize by negation
8309         of the MULT operand if it only moves the NEG operation around.
8310
8311         PR debug/49602
8312         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8313         get_current_def return value if it can't be trusted to be
8314         the current value of the variable in the current bb.
8315
8316 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
8317
8318         PR target/49600
8319         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8320         general register to memory for !TARGET_INTER_UNIT_MOVES.
8321
8322 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8323
8324         PR target/44643
8325         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8326         instead of TREE_READONLY.
8327
8328 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8329
8330         * doc/extend.texi (AVR Built-in Functions): Update documentation
8331         of __builtin_avr_fmul*.
8332         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8333         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8334         * config/avr/avr.md (fmul): Rename to fmul_insn.
8335         (fmuls): Rename to fmuls_insn.
8336         (fmulsu): Rename to fmulsu_insn.
8337         (fmul,fmuls,fmulsu): New expander.
8338         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8339         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8340         * config/avr/libgcc.S (__fmul): New function.
8341         (__fmuls): New function.
8342         (__fmulsu,__fmulsu_exit): New function.
8343
8344 2011-07-04  Richard Guenther  <rguenther@suse.de>
8345
8346         PR tree-optimization/49615
8347         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8348         basic-block index check.
8349
8350 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8351
8352         * longlong.h (count_leading_zeros, count_trailing_zeros,
8353         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8354         resp. 64.
8355
8356 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
8357
8358         PR tree-optimization/49610
8359         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8360         a basic block.
8361
8362 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8363             Olivier Hainque  <hainque@adacore.com>
8364             Nicolas Setton  <setton@adacore.com>
8365
8366         * tree.h (TYPE_ARTIFICIAL): New flag.
8367         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8368         the DIE of the type if it is artificial.
8369         (gen_array_type_die): Likewise.
8370         (gen_enumeration_type_die): Likewise.
8371         (gen_struct_or_union_type_die): Likewise.
8372         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8373         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8374
8375 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8376
8377         * tree-object-size.c (pass_through_call): Handle
8378         BUILT_IN_ASSUME_ALIGNED.
8379
8380 2011-07-01  Martin Jambor  <mjambor@suse.cz>
8381
8382         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8383
8384 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
8385
8386         PR middle-end/48016
8387         * explow.c (update_nonlocal_goto_save_area): Use proper mode
8388         for stack save area.
8389         * function.c (expand_function_start): Likewise.
8390
8391 2011-07-01  Richard Guenther  <rguenther@suse.de>
8392
8393         PR middle-end/49596
8394         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8395         may have unknown refs.
8396
8397 2011-07-01  Kai Tietz  <ktietz@redhat.com>
8398
8399         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8400
8401 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8402
8403         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8404         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8405         (Specific, mips-sgi-irix6): Likewise.
8406
8407 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8408
8409         PR libmudflap/49549
8410         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8411
8412 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8415         [idx]= and [idx1 ... idx2]= before initializers if needed for
8416         array initializers.
8417
8418 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
8419
8420         * config.gcc (score-*-elf): Remove score7.o.
8421         * config/score/t-score-elf: Likewise.
8422         * config/score/score.c: Merge score7 to score.c and
8423         remove forwarding functions.
8424         * config/score/score7.c: Deleted.
8425         * config/score/score7.h: Deleted.
8426
8427 2011-07-01  Richard Guenther  <rguenther@suse.de>
8428
8429         PR tree-optimization/49603
8430         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8431
8432 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8433
8434         * tree-sra.c (struct access): Rename total_scalarization to
8435         grp_total_scalarization
8436         (completely_scalarize_var): New function.
8437         (sort_and_splice_var_accesses): Set total_scalarization in the
8438         representative access.
8439         (analyze_access_subtree): Propagate total scalarization accross the
8440         tree, no holes in totally scalarized trees, simplify coverage
8441         computation.
8442         (analyze_all_variable_accesses): Call completely_scalarize_var instead
8443         of completely_scalarize_record.
8444
8445 2011-06-30  Richard Henderson  <rth@redhat.com>
8446
8447         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8448         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8449         * config/i386/i386.c: Don't include dwarf2out.h.
8450         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8451         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8452         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
8453         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8454         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8455
8456 2011-06-30  Richard Henderson  <rth@redhat.com>
8457
8458         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8459         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8460         * final.c (final_scan_insn): Look for it, and invoke
8461         dwarf2out_frame_debug before the insn if found.
8462
8463 2011-06-30  Richard Henderson  <rth@redhat.com>
8464
8465         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8466         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8467
8468 2011-06-30  Richard Henderson  <rth@redhat.com>
8469
8470         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8471         Define a vector of this type.
8472         (regs_saved_in_regs): Use a VEC.
8473         (num_regs_saved_in_regs): Remove.
8474         (compare_reg_or_pc): New.
8475         (record_reg_saved_in_reg): Split out from...
8476         (dwarf2out_flush_queued_reg_saves): ... here.
8477         (clobbers_queued_reg_save): Update for VEC.
8478         (reg_saved_in): Likewise.
8479         (dwarf2out_frame_debug_init): Likewise.
8480         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8481         (dwarf2out_frame_debug_cfa_register): Likewise.
8482
8483 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8484
8485         PR tree-optimization/49572
8486         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8487         type of the RHS instead of that of the LHS for the expression type.
8488
8489 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8490
8491         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8492         unconditionally.
8493
8494 2011-06-30  Richard Guenther  <rguenther@suse.de>
8495
8496         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8497         * tree-ssa-structalias.c (create_variable_info_for): Do not
8498         add initial constraints for non-var-decls.  Properly handle
8499         globals in other ltrans partitions.
8500         (intra_create_variable_infos): Manually create constraints for
8501         the fake no-alias parameter.
8502         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8503         and assert there are no clones.
8504
8505 2011-06-30  Richard Guenther  <rguenther@suse.de>
8506
8507         PR tree-optimization/46787
8508         * tree-data-ref.c (dr_address_invariant_p): Remove.
8509         (find_data_references_in_stmt): Invariant accesses are ok now.
8510         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8511         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8512         invariant loads.
8513
8514 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8515
8516         PR tree-optimization/49094
8517         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8518         (build_accesses_from_assign): Use it.
8519
8520 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8521
8522         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8523         handling of BUILT_IN_ASSUME_ALIGNED.
8524
8525         PR debug/49364
8526         * dwarf2out.c (output_abbrev_section): Don't return early
8527         if abbrev_die_table_in_use is 1.
8528         (dwarf2out_finish): Instead don't call output_abbrev_section
8529         nor emit abbrev_section_label in that case.
8530
8531 2011-06-30  Nick Clifton  <nickc@redhat.com>
8532
8533         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8534         for the V850E.
8535
8536 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8537
8538         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8539         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8540
8541 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
8542
8543         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8544         both pattern and original statements if necessary.
8545         (vect_transform_loop): Likewise.
8546         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8547         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8548         Mark the pattern statement only if the original statement doesn't
8549         have its own uses.
8550         (process_use): Call vect_mark_relevant with additional parameter.
8551         (vect_mark_stmts_to_be_vectorized): Likewise.
8552         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8553         (vect_analyze_stmt): Handle both pattern and original statements
8554         if necessary.
8555         (vect_transform_stmt): Don't store vectorized pattern statement
8556         in the original statement.
8557         (vect_is_simple_use_1): Use related pattern statement only if the
8558         original statement is irrelevant.
8559         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8560
8561 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
8562
8563         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8564         option.
8565         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8566         entry.
8567         (TARGET_AVX128_OPTIMAL): New definition.
8568         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8569         X86_TUNE_AVX128_OPTIMAL entry.
8570         (ix86_option_override_internal): Enable the generation
8571         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8572         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8573         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8574
8575 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8576
8577         PR tree-optimization/49539
8578         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8579         names by means of stmt_references_abnormal_ssa_name.
8580         (associate_plusminus): Call can_propagate_from before propagating
8581         from definition statements.
8582         (ssa_forward_propagate_and_combine): Remove superfluous newline.
8583
8584 2011-06-29  Richard Guenther  <rguenther@suse.de>
8585
8586         * doc/invoke.texi: Document -scev dump modifier.
8587         * tree-pass.h (TDF_SCEV): New dump flag.
8588         * tree-dump.c (dump_option_value_in): Add scev.
8589         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8590         * tree-scalar-evolution.c: Likewise.
8591
8592 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8593
8594         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8595         (cxa_type_match): Correct declaration.
8596         (__gnu_unwind_pr_common): Reconstruct additional indirection
8597         when __cxa_type_match returns succeeded_with_ptr_to_base.
8598
8599 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8600
8601         PR rtl-optimization/49114
8602         * reload.c (struct replacement): Remove SUBREG_LOC member.
8603         (push_reload): Do not set it.
8604         (push_replacement): Likewise.
8605         (subst_reload): Remove dead code.
8606         (copy_replacements): Remove assertion.
8607         (copy_replacements_1): Do not handle SUBREG_LOC.
8608         (move_replacements): Likewise.
8609         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
8610         Detect subregs via recursive descent instead of via SUBREG_LOC.
8611
8612 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8613
8614         * config/avr/avr.c (avr_encode_section_info): Dispatch to
8615         default_encode_section_info.
8616
8617 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
8618
8619         PR tree-optimization/49545
8620         * builtins.c (get_object_alignment_1): Update function comment.
8621         Do not use DECL_ALIGN for functions, but test
8622         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8623         * fold-const.c (get_pointer_modulus_and_residue): Don't check
8624         for functions here.
8625         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8626
8627 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
8628
8629         PR debug/49567
8630         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8631         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8632
8633 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8634
8635         PR target/34734
8636         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8637         about uninitialized data attributed 'progmem' from here...
8638         (avr_encode_section_info): ...to this new function.
8639         (TARGET_ENCODE_SECTION_INFO): New define.
8640         (avr_section_type_flags): For data in ".progmem.data", remove
8641         section flag SECTION_WRITE.
8642
8643 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8644
8645         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8646         _xmulhisi3_exit.
8647         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8648         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8649         (__umulhisi3): Ditto.
8650         * config/avr/avr.md (mulhisi3): New insn expender.
8651         (umulhisi3): New insn expender.
8652         (*mulhisi3_call): New insn.
8653         (*umulhisi3_call): New insn.
8654
8655 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8658
8659 2011-06-28  Richard Henderson  <rth@redhat.com>
8660
8661         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8662         all code and arguments that handled pushes.  Update all callers.
8663
8664 2011-06-28  Richard Henderson  <rth@redhat.com>
8665
8666         * config/arm/arm.c (arm_output_function_prologue): Don't call
8667         thumb1_output_function_prologue.
8668         (arm_expand_prologue): Avoid dead store.
8669         (number_of_first_bit_set): Use ctz_hwi.
8670         (thumb1_emit_multi_reg_push): New.
8671         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8672         to emit the entire prologue as rtl.
8673         (thumb1_output_interwork): Split out from
8674         thumb1_output_function_prologue.
8675         (thumb1_output_function_prologue): Remove.
8676         (arm_attr_length_push_multi): Handle thumb1.
8677         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8678         (prologue_thumb1_interwork): New.
8679         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8680         * config/arm/predicates.md (push_mult_memory_operand): New.
8681
8682 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8683
8684         * config/sparc/sync.md (*stbar): Delete.
8685         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8686
8687 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8688
8689         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8690
8691 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8692
8693         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8694         (TARGET_64BIT_DEFAULT): Define.
8695         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8696         of tm_file.
8697         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8698
8699 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8700
8701         * common.opt (in_lto_p): New Variable entry.
8702         * flags.h (in_lto_p): Move to common.opt.
8703         * gcc.c: Include params.h.
8704         (set_option_handlers): Also use common_handle_option and
8705         target_handle_option.
8706         (main): Call global_init_params, finish_params and init_options_struct.
8707         * opts.c (debug_type_names): Move from toplev.c.
8708         (print_filtered_help): Access quiet_flag through opts pointer.
8709         (common_handle_option): Return early in the driver for some options.
8710         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8711         opts pointer.
8712         * toplev.c (in_lto_p): Move to common.opt.
8713         (debug_type_names): Move to opts.c.
8714         * Makefile.in (OBJS): Remove opts.o.
8715         (OBJS-libcommon-target): Add opts.o.
8716         (gcc.o): Update dependencies.
8717
8718 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8719
8720         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8721
8722 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8723
8724         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8725         with '=' constraint modifier.
8726         (*divdf3_vfp): Likewise.
8727         ("*mulsf3_vfp"): Likewise.
8728         ("*muldf3_vfp"): Likewise.
8729         ("*mulsf3negsf_vfp"): Likewise.
8730         ("*muldf3negdf_vfp"): Likewise.
8731
8732 2011-06-28  Nick Clifton  <nickc@redhat.com>
8733
8734         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8735         relaxation when performing an incremental link.
8736
8737 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8738
8739         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8740         within BB from last to first.
8741
8742 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8743
8744         * genattr-common.c: New.  Based on genattr.c.
8745         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8746         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8747         (opts.o): Update dependencies.
8748         (.PRECIOUS): Add insn-attr-common.h.
8749         (simple_rtl_generated_h): Add insn-attr-common.h.
8750         (build/genattr-common.o): New.
8751         (genprogrtl): Add attr-common.
8752         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8753         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8754         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8755
8756 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8757
8758         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8759         avr-*-* and avr-*-rtems* targets.
8760
8761         * config/avr/elf.h: New file.
8762         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8763         (TARGET_ASM_SELECT_SECTION): Define.
8764         (INIT_SECTION_ASM_OP): Undefine.
8765         (FINI_SECTION_ASM_OP): Undefine.
8766         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8767         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8768         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8769         * config/avr/avr.h:
8770         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8771         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8772         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8773         (STRING_LIMIT): Move to elf.h.
8774         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8775         (ASM_DECLARE_OBJECT_NAME): Remove.
8776         (ESCAPES): Remove.
8777         (ASM_OUTPUT_SKIP): Remove.
8778         (DWARF2_DEBUGGING_INFO): Remove.
8779         (OBJECT_FORMAT_ELF): Remove.
8780         (USER_LABEL_PREFIX): Remove.
8781         (ASM_OUTPUT_EXTERNAL): Remove.
8782         (ASM_OUTPUT_ASCII): Remove.
8783         (TYPE_ASM_OP): Remove.
8784         (SIZE_ASM_OP): Remove.
8785         (WEAK_ASM_OP): Remove.
8786         (STRING_ASM_OP): Remove.
8787         (SET_ASM_OP): Remove.
8788         (ASM_WEAKEN_LABEL): Remove.
8789         (TYPE_OPERAND_FMT): Remove.
8790         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8791         (ASM_FINISH_DECLARE_OBJECT): Remove.
8792         (NO_DOLLAR_IN_LABEL): Remove.
8793         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8794         (ASM_OUTPUT_CASE_LABEL): Remove.
8795         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8796         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8797         (gas_output_ascii): Remove.
8798         (gas_output_limited_string): Remove.
8799         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8800         * config/avr/avr-protos.h
8801         (gas_output_ascii): Remove prototye.
8802         (gas_output_limited_string): Remove prototype.
8803
8804 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8805
8806         PR target/48637
8807         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8808         asm operands.
8809
8810 2011-06-27  Jan Hubicka  <jh@suse.cz>
8811
8812         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8813         node instead of references in node.
8814
8815 2011-06-27  Richard Henderson  <rth@redhat.com>
8816
8817         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8818         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8819         inside ifdef.
8820
8821 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8822
8823         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8824
8825         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8826         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8827         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8828         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8829         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8830         (evaluate_stmt, execute_fold_all_builtins): Handle
8831         BUILT_IN_ASSUME_ALIGNED.
8832         * tree-ssa-dce.c (propagate_necessity): Likewise.
8833         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8834         call_may_clobber_ref_p_1): Likewise.
8835         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8836         (expand_builtin_assume_aligned): New function.
8837         * doc/extend.texi (__builtin_assume_aligned): Document.
8838
8839         PR debug/49544
8840         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8841         and l has two DEBUG_INSN owned locs instead of just one, adjust
8842         the second location's setting_insn too.
8843
8844 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8845
8846         PR libmudflap/38738
8847         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8848
8849 2011-06-27  Nick Clifton  <nickc@redhat.com>
8850
8851         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8852         bit position of highest bit set into a count of the high zero bits.
8853
8854 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8855
8856         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8857
8858 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8859
8860         PR lto/48492
8861         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8862         to a NULL parent.
8863
8864 2011-06-27  Richard Guenther  <rguenther@suse.de>
8865
8866         PR tree-optimization/49394
8867         * passes.c (execute_one_pass): Restore current_pass after
8868         applying IPA transforms.
8869
8870 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8871
8872         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8873         out of type precision after operation.
8874         (find_bswap): Take for limit value the integer auto-promotion
8875         into account.
8876
8877 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8878
8879         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8880         forward scan as well.
8881
8882 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8883
8884         PR target/44241
8885         * config/vms/vms-protos.h: New file.
8886         * config/vms/vms-crtlmap.map: New file.
8887         * config/vms/vms.c: New file.
8888         * config/vms/make-crtlmap.awk: New file.
8889         * config/vms/vms-crtl.h: File removed.
8890         * config/vms/vms-crtl-64.h: File removed.
8891         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8892         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8893         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8894         clear some builtins on VMS.  Calls vms_patch_builtins.
8895         (avms_asm_output_external): Remove.
8896         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8897         (struct crtl_name_spec): Remove
8898         (DO_CTRL_NAMES): Remove.
8899         * config/ia64/vms.h (struct crtl_name_spec): Remove
8900         (DO_CTRL_NAMES): Remove.
8901         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8902         clear some builtins on VMS.  Calls vms_patch_builtins.
8903         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8904         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8905         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8906
8907 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8908
8909         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8910         directive on VMS.
8911
8912 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8913
8914         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8915         the function receives nonlocal gotos.
8916
8917 2011-06-27  Richard Guenther  <rguenther@suse.de>
8918
8919         PR tree-optimization/49536
8920         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8921         For non-scalar inner types use a scalar type according to
8922         the scalar inner mode.
8923
8924 2011-06-27  Richard Guenther  <rguenther@suse.de>
8925
8926         PR tree-optimization/49365
8927         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8928
8929 2011-06-27  Richard Guenther  <rguenther@suse.de>
8930
8931         PR tree-optimization/49169
8932         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8933         the alignment of function decls.
8934
8935 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8936
8937         PR target/47997
8938         * config/darwin.c (darwin_mergeable_string_section): Place string
8939         constants in '.cstring' rather than '.const' when CF/NSStrings are
8940         active.
8941
8942 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8943
8944         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8945         (emit_save_register_window): Likewise.
8946         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8947         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
8948         Swap back %o7/%i7 in register naming.
8949
8950 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
8951
8952         PR driver/49371
8953         * config/darwin.c (darwin_override_options): Improve warning when
8954         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8955         is given with fpie/fPIE.
8956         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8957         * config/darwin9.h (PIE_SPEC): New.
8958
8959 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
8960
8961         * timevar.c (timevar_print): Increase width for display of timevar
8962         name.
8963
8964 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
8965
8966         PR c++/46400
8967         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8968         instead of TYPE_CHAIN for chain_next for types.
8969
8970 2011-06-24  Richard Henderson  <rth@redhat.com>
8971
8972         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8973         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8974         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8975         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8976         (sparc_flat_expand_prologue): Emit individual instructions
8977         instead of one of the above.
8978
8979 2011-06-24  Easwaran Raman  <eraman@google.com>
8980
8981         PR rtl-optimization/49429
8982         PR target/49454
8983         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
8984         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8985         used to copy y into x.
8986         * calls.c (initialize_argument_information): Mark
8987         an argument addressable if it is passed by invisible reference.
8988         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8989         if it is passed by reference.
8990
8991 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8992
8993         PR rtl-optimization/49504
8994         * rtlanal.c (nonzero_bits1): Properly handle addition or
8995         subtraction of a pointer in Pmode if pointers extend unsigned.
8996         (num_sign_bit_copies1): Likewise.
8997
8998 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8999
9000         PR tree-optimizations/49516
9001         * tree-sra.c (sra_modify_assign): Choose the safe path for
9002         aggregate copies if we also did scalar replacements.
9003
9004 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9005
9006         PR target/49335
9007         * config/arm/predicates.md (add_operator): New.
9008         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9009
9010 2011-06-24  Andi Kleen  <ak@linux.intel.com>
9011
9012         * tree-sra.c (type_internals_preclude_sra_p): Add msg
9013         parameter. Split up ifs and report reason in *msg.
9014         (reject): Add.
9015         (find_var_candiate): Add msg variable.
9016         Split up ifs and report reason to reject.
9017         (find_param_candidates): Add msg variable.
9018         Pass msg to type_internals_preclude_sra_p.
9019
9020 2011-06-23  Jeff Law  <law@redhat.com>
9021
9022         PR middle-end/48770
9023         * reload.h (reload): Change to return a bool.
9024         * ira.c (ira): If requested by reload, run a fast DCE pass after
9025         reload has completed.  Fix comment typo.
9026         * reload1.c (need_dce): New file scoped static.
9027         (reload): Set reload_completed here.  Return whether or not a DCE
9028         pass after reload is needed.
9029         (delete_dead_insn): Set need_dce as needed.
9030
9031         PR middle-end/49465
9032         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9033         to detect threading through joiner block.  If there was already
9034         an edge to the new target, then do not change the PHI nodes.
9035
9036 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
9037
9038         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9039         get_pointer_alignment to see if base isn't sufficiently aligned.
9040
9041 2011-06-23  Jan Hubicka  <jh@suse.cz>
9042
9043         PR tree-optimize/49373
9044         * tree-pass.h (all_late_ipa_passes): Declare.
9045         * cgraphunit.c (init_lowered_empty_function): Fix properties.
9046         (cgraph_optimize): Execute late passes; remove unreachable funcions
9047         after materialization.
9048         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9049         LTOing.
9050         * passes.c (all_late_ipa_passes): Declare.
9051         (dump_passes, register_pass): Handle late ipa passes.
9052         (init_optimization_passes): Move ipa_pta to late passes; schedule
9053         fixup_cfg at beggining of all_passes.
9054         (apply_ipa_transforms): New function.
9055         (execute_one_pass): When doing simple ipa pass, apply all transforms.
9056
9057 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * params.c: Include common/common-target.h.  Don't include tm.h.
9060         (lang_independent_params): Move from toplev.c.
9061         (global_init_params): New.
9062         * params.h (global_init_params): Declare.
9063         * target.def (default_params): Move to common-target.def.
9064         * toplev.c (lang_independent_options): Remove.
9065         (lang_independent_params): Move to params.c.
9066         (general_init): Use global_init_params.
9067         * common/common-target.def (option_default_params): Move from
9068         target.def.
9069         * common/config/ia64/ia64-common.c: Include params.h.
9070         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9071         from ia64.c.
9072         * common/config/rs6000/rs6000-common.c: Include params.h.
9073         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9074         from rs6000.c.
9075         * common/config/sh/sh-common.c: Include params.h.
9076         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9077         from sh.c.
9078         * common/config/spu/spu-common.c: Include params.h.
9079         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9080         from spu.c.
9081         * config/ia64/ia64.c (ia64_option_default_params,
9082         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9083         * config/rs6000/rs6000.c (rs6000_option_default_params,
9084         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9085         * config/sh/sh.c (sh_option_default_params,
9086         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9087         * config/spu/spu.c (spu_option_default_params,
9088         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9089         * Makefile.in (OBJS): Remove params.o.
9090         (OBJS-libcommon-target): Add params.o.
9091         (params.o, $(common_out_object_file)): Update dependencies.
9092         * doc/tm.texi: Regenerate.
9093
9094 2011-06-23  Alan Modra  <amodra@gmail.com>
9095
9096         PR bootstrap/49383
9097         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9098         invocation for 2011-06-09 changes.
9099
9100 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9101
9102         PR libgomp/49490
9103         * omp-low.c (expand_omp_for_static_nochunk): Only
9104         use n ceil/ nthreads size for the first n % nthreads threads in the
9105         team instead of all threads except for the last few ones which
9106         get less work or none at all.
9107
9108         PR debug/49496
9109         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9110         uses.
9111
9112 2011-06-22  Richard Guenther  <rguenther@suse.de>
9113
9114         PR tree-optimization/49493
9115         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9116         Refer to the alias target of variables.
9117         (associate_varinfo_to_alias_1): Remove.
9118         (ipa_pta_execute): Do not associate aliases with anything.
9119         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9120         (cgraph_function_node): Likewise.
9121         (cgraph_function_or_thunk_node): Likewise.
9122         (varpool_variable_node): Likewise.
9123
9124 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9125
9126         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9127         * config.gcc (arm*-*-linux*): Default to gnu tls.
9128         (arm*-*-*): Add --with-tls option.
9129         (all_defaults): Add 'tls'.
9130
9131 2011-06-22  Richard Henderson  <rth@redhat.com>
9132
9133         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9134         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9135         (dwarf2out_frame_debug_cfa_window_save): Rename from
9136         dwarf2out_window_save; make static.
9137         * tree.h (dwarf2out_window_save): Don't declare.
9138
9139         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9140         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9141         (emit_save_register_window): Rename from gen_save_register_window;
9142         emit the insn and add REG_CFA_* notes.
9143         (sparc_expand_prologue): Update to match.
9144         * config/sparc/sparc.md (save_register_window_1): Simplify from
9145         save_register_window<P:mode>.
9146
9147 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9148
9149         PR target/49497
9150         * config/i386/i386.md (*lea_general_2): Always allow SImode.
9151         (*lea_general_2_zext): Likewise.
9152         (imul to lea peepholes): Use const359_operand and check
9153         TARGET_PARTIAL_REG_STALL.
9154
9155         * config/i386/predicates.md (const359_operand): New.
9156
9157 2011-06-22  Michael Matz  <matz@suse.de>
9158
9159         * cgraphunit.c (assemble_thunk): Use correct return type.
9160
9161 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
9162             Dmitry Melnik  <dm@ispras.ru>
9163
9164         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9165         (neon_output_shift_immediate): Ditto.
9166         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9167         prototype.
9168         (neon_output_shift_immediate): Ditto.
9169         * config/arm/neon.md (vashl<mode>3): Modified constraint.
9170         (vashr<mode>3_imm): New insn pattern.
9171         (vlshr<mode>3_imm): Ditto.
9172         (vashr<mode>3): Modified constraint.
9173         (vlshr<mode>3): Ditto.
9174         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9175         predicate.
9176         (imm_for_neon_rshift_operand): Ditto.
9177         (imm_lshift_or_reg_neon): Ditto.
9178         (imm_rshift_or_reg_neon): Ditto.
9179
9180         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9181
9182 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9183
9184         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9185         builtin calls even if likelyvalue is not CONSTANT.
9186         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9187         Return get_value_for_expr of first operand
9188         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9189         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9190         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9191         their non-checking counterparts.
9192         (call_may_clobber_ref_p_1): Likewise.
9193         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9194         like their non-checking counterparts.
9195         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9196         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9197         like their non-checking counterparts.
9198         (find_func_clobbers): Likewise.
9199         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9200         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9201
9202         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9203         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9204         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9205         of base type reference as argument.
9206         (resolve_addr_in_expr): Likewise.  Fix keep computation.
9207         (convert_descriptor_to_signed): Renamed to...
9208         (convert_descriptor_to_mode): ... this.  For wider types convert to
9209         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9210         (typed_binop): New function.
9211         (scompare_loc_descriptor, ucompare_loc_descriptor,
9212         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9213         default to unsigned type instead of signed.
9214
9215         PR debug/47858
9216         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9217         (gimple_build_debug_source_bind_stat): New prototype.
9218         (gimple_build_debug_source_bind): Define.
9219         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9220         gimple_debug_source_bind_get_value,
9221         gimple_debug_source_bind_get_value_ptr,
9222         gimple_debug_source_bind_set_var,
9223         gimple_debug_source_bind_set_value): New inlines.
9224         * gimple.c (gimple_build_debug_source_bind_stat): New function.
9225         * gimple-pretty-print.c (dump_gimple_debug): Handle
9226         GIMPLE_DEBUG_SOURCE_BIND.
9227         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9228         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9229         * tree-parloops.c (eliminate_local_variables,
9230         separate_decls_in_region): Likewise.
9231         (separate_decls_in_region_debug): Renamed from
9232         separate_decls_in_region_debug_bind.  Handle
9233         gimple_debug_source_bind_p.
9234         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9235         prototypes.
9236         (DECL_HAS_DEBUG_ARGS_P): Define.
9237         (struct tree_function_decl): Add has_debug_args_flag field.
9238         * tree.c (debug_args_for_decl): New variable.
9239         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9240         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9241         (rewrite_debug_stmt_uses): New function.
9242         (rewrite_stmt): Use it to rewrite debug stmt uses.
9243         * rtl.def (DEBUG_PARAMETER_REF): New.
9244         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9245         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9246         DEBUG_PARAMETER_REF.
9247         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9248         * print-rtl.c (print_rtx): Likewise.
9249         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9250         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9251         debug stmts in the first bb.
9252         * tree-inline.c (remap_ssa_name): If remapping default def
9253         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9254         a source bind debug stmt.
9255         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9256         (maybe_move_debug_stmts_to_successors): Likewise.
9257         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
9258         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9259         debug args vector from old_decl to new_decl.
9260         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9261         or modified parameters, add debug bind stmts before call
9262         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9263         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9264         on DECL_DEBUG_EXPRs from debug args vector.
9265         (expand_debug_source_expr): New function.
9266         (expand_debug_locations): Use it for source bind insns.
9267         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9268         * var-tracking.c (prepare_call_arguments): Add debug args
9269         to call_arguments if any.
9270         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9271         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9272         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9273         (get_ref_die_offset, parameter_ref_descriptor): New functions.
9274         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9275         (gen_subprogram_die): Handle parameters identified by
9276         DEBUG_PARAMETER_REF.
9277
9278 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9279
9280         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9281         * doc/install.texi (Configuration): Document --with-tls.
9282         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9283         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9284         (arm_tls_descseq_addr): New.
9285         (legitimize_tls_address): Add tlsdesc support.
9286         (arm_cannot_copy_insn_p): Check for tlscall.
9287         (arm_emit_tls_decoration): Likewise.
9288         * config/arm/arm.h (TARGET_GNU2_TLS): New.
9289         (OPTION_DEFAULT_SPECS): Add with-tls support.
9290         * config/arm/arm.md (R1_REGNUM): Define.
9291         (tlscall): New.
9292         * config/arm/arm.opt (tls_type): New enumeration type and values.
9293         (mtls-dialect): New switch.
9294         * config/arm/arm-opts.h (enum tls_type): New.
9295
9296 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9297
9298         * attribs.c (register_attribute): Added assert to check that all
9299         attribute specs are registered with a name that is not empty and
9300         does not start with '_'.
9301         (decl_attributes): Avoid the lookup of the "naked" attribute spec
9302         if the function has no attributes.
9303         * tree.c (is_attribute_with_length_p): Removed.
9304         (is_attribute_p): Removed.
9305         (private_is_attribute_p): New.
9306         (private_lookup_attribute): New.
9307         (lookup_attribute): Removed.
9308         (lookup_ident_attribute): New.
9309         (remove_attribute): Require the first argument to be in the form
9310         'text', not '__text__'.  Updated asserts.
9311         (merge_attributes): Use lookup_ident_attributes instead of
9312         lookup_attribute.
9313         (merge_dllimport_decl_attributes): Use remove_attribute.
9314         (attribute_list_contained): Likewise.
9315         (attribute_list_equal): Immediately return 1 if the arguments are
9316         identical pointers.
9317         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
9318         'int'.  Require the first argument to be in the form 'text', not
9319         '__text__'.  Require the second argument to be an identifier.
9320         (lookup_attribute): Made inline.  Require the first argument to be
9321         in the form 'text', not '__text__'.
9322         (private_is_attribute_p, private_lookup_attribute): New.
9323         Updated comments.
9324
9325 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
9326
9327         * builtins.c: Add sync_ or SYNC__ to builtin names.
9328         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9329         * omp-low.c: Add sync_ or SYNC__ to builtin names.
9330
9331 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9332
9333         PR target/33049
9334         * config/avr/avr.md (extzv): New expander.
9335         (*extzv): New insn.
9336         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9337         * config/avr/constraints.md (C04): New constraint.
9338         * doc/md.texi (Machine Constraints): Document it.
9339
9340 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9341
9342         PR middle-end/49489
9343         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9344         unsignedp argument instead of 1 for clrsb_optab.
9345         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9346         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
9347         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9348         * optabs.c (widen_leading): Call widen_operand and expand_unop
9349         with 0 as unsignedp argument instead of 1 for clrsb_optab.
9350         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9351
9352 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9353
9354         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9355
9356 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
9357
9358         * gensupport.c (add_define_attr): New static function.
9359         (is_predicable): Allow multi-alternative lists for the "predicable"
9360         attribute.
9361         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9362         (process_one_cond_exec): Call alter_attrs_for_insn.
9363         * doc/md.texi (Defining Attributes): Mention some standard names.
9364         (Conditional Execution): Update documentation for "predicable".
9365
9366         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9367         __builtin_clrsbll): Document.
9368         * doc/rtl.texi (clrsb): New entry.
9369         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
9370         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
9371         (expand_unop): Handle clrsb_optab.
9372         (init_optabs): Initialize it.
9373         * optabs.h (enum optab_index): New entry OTI_clrsb.
9374         (clrsb_optab): Define.
9375         * genopinit.c (optabs): Add an entry for it.
9376         * builtins.c (expand_builtin): Handle clrsb builtin functions.
9377         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9378         BUILT_IN_CLRSBLL): New.
9379         * rtl.def (CLRSB): New code.
9380         * dwarf2out.c (mem_loc_descriptor): Handle it.
9381         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9382         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9383         and popcount.
9384         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9385         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9386         (__ctzDI2): Move declaration.
9387         * config/bfin/bfin.md (clrsbsi2): New expander.
9388         (signbitssi2): Use the CLRSB rtx.
9389         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
9390         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9391
9392 2011-06-21  Richard Guenther  <rguenther@suse.de>
9393
9394         * ipa-inline-transform.c (inline_transform): Fix previous change.
9395
9396 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
9397
9398         PR tree-optimization/49478
9399         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9400         with constant operand.
9401
9402 2011-06-21  Richard Guenther  <rguenther@suse.de>
9403
9404         * ipa-inline-transform.c (inline_transform): Fix typo.
9405
9406 2011-06-21  Richard Guenther  <rguenther@suse.de>
9407
9408         PR tree-optimization/49483
9409         * tree-vect-stmts.c (vectorizable_assignment): Also handle
9410         VIEW_CONVERT_EXPR conversions.
9411
9412 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
9413
9414         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9415         * config/avr/avr-tables.opt: New file (generated).
9416         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9417         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9418         avr-mcus.def.
9419         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9420         (avr_option_override): Don't process -mmcu= argument here.  Set
9421         avr_current_device using avr_mcu_index.
9422         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9423         * config/avr/avr.opt (mmcu=): Use Enum.
9424         * config/avr/t-avr (avr-devices.o): Update dependencies.
9425         ($(srcdir)/config/avr/avr-tables.opt): New.
9426         * target.def (help): Remove.
9427         * doc/tm.texi.in (TARGET_HELP): Remove.
9428         * doc/tm.texi: Regenerate.
9429         * opts.c: Don't include target.h.
9430         (common_handle_option): Don't call targetm.help.
9431         * system.h (TARGET_HELP): Poison.
9432         * Makefile.in (opts.o): Update dependencies.
9433
9434 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9435
9436         * config/usegld.h: New file.
9437         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9438         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9439         (LIB_SPEC): Likewise.  Search /lib.
9440         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9441         (RDYNAMIC_SPEC): Handle GNU ld.
9442         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9443         Define.
9444         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9445         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9446         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9447         (STACK_CHECK_STATIC_BUILTIN): Define.
9448         * config/sol2.opt (compat-bsd): Remove.
9449         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9450         * config/sol2-bi.h: New file.
9451         * config/sol2-gld.h: Remove.
9452         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9453         (NO_DBX_BNSYM_ENSYM): Remove.
9454         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9455         (STACK_CHECK_STATIC_BUILTIN): Remove.
9456         Test USE_GLD instead of TARGET_GNU_LD.
9457         * config/i386/sol2-10.h: Rename to ...
9458         * config/i386/sol2-bi.h .. this.
9459         (SUBTARGET_EXTRA_SPECS): Redefine.
9460         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9461         (MULTILIB_DEFAULTS): Remove.
9462         (DEFAULT_ARCH32_P): Define.
9463         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9464         (ARCH64_SUBDIR): Define.
9465         Test USE_GLD instead of TARGET_GNU_LD.
9466         (I386_EMULATION): Rename to ...
9467         (ARCH32_EMULATION): ... this.
9468         (X86_64_EMULATION): Rename to ...
9469         (ARCH64_EMULATION): ... this.
9470         (TARGET_LD_EMULATION): Remove.
9471         (LINK_ARCH_SPEC): Remove.
9472         * config/i386/sol2-gas.h: Remove.
9473         * config/i386/t-sol2-10: Rename to ...
9474         * config/i386/t-sol2-64: ... this.
9475         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9476         (AS_SPARC64_FLAG): Define.
9477         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9478         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9479         depending on TARGET_CPU_DEFAULT.
9480         (CPP_CPU_SPEC): Redefine.
9481         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9482         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9483         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9484         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9485         ASM_ARCH_DEFAULT_SPEC): Redefine.
9486         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9487         LINK_ARCH_DEFAULT_SPEC.
9488         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9489         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9490         (ARCH64_SUBDIR): Define.
9491         (LINK_ARCH64_SPEC): Redefine.
9492         (CC1_SPEC): Redefine.
9493         (OPTION_DEFAULT_SPECS): Redefine.
9494         (MULTILIB_DEFAULTS): Define.
9495         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9496         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9497         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9498         (NO_DBX_BNSYM_ENSYM): Remove.
9499         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9500         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9501         (TARGET_ASM_NAMED_SECTION): Likewise.
9502         (STACK_CHECK_STATIC_BUILTIN): Remove.
9503         * config/sparc/sol2-bi.h: Remove.
9504         * config/sparc/sol2-gas-bi.h: Remove.
9505         * config/sparc/sol2-gas.h: Remove.
9506         * config/sparc/sol2-gld-bi.h: Remove.
9507         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9508         common parts ...
9509         (*-*-solaris2*): ... here.
9510
9511 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9512
9513         PR other/43564
9514         * ipa-inline.c (can_inline_edge_p): Check
9515         !DECL_DISREGARD_INLINE_LIMITS.
9516
9517 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9518
9519         PR middle-end/49139
9520         * cgraphunit.c (process_function_and_variable_attributes): warn when
9521         always_inline functions that are not inline.
9522         * ipa-inline-transform.c (inline_transform): Always call
9523         optimize_inline.
9524         * tree-inline.c (tree_inlinable_function_p): Use error instead
9525         of sorry.
9526         (expand_call_inline): Likewise.
9527
9528 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9529
9530         * Makefile.in (dg_target_exps): Set.
9531         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9532         instead of 7, try to divide it more evenly.
9533
9534 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
9535
9536         PR target/49089
9537         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9538         (avx256_split_unaligned_store): New definition.
9539         (ix86_option_override_internal): Enable avx256 unaligned load/store
9540         splitting only when avx256_split_unaligned_load/store is set.
9541
9542 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9543
9544         * regrename.c (scan_rtx_reg): Handle the case where we write to an
9545         open chain in a smaller mode without failing the entire block.
9546
9547 2011-06-21  Alan Modra  <amodra@gmail.com>
9548
9549         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9550         CONST high part large-toc address.
9551         (rs6000_tls_referenced_p): Make static.
9552         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9553
9554 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9555
9556         PR target/49385
9557         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9558         one of the operands is a register.
9559
9560 2011-06-20  Kai Tietz  <ktietz@redhat.com>
9561
9562         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9563         operations in combination with binary and.
9564
9565 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9566
9567         * regrename.c (do_replace): Don't update notes.
9568
9569 2011-06-20  Alan Modra  <amodra@gmail.com>
9570
9571         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9572         of toc-relative address in CONST.
9573         (rs6000_delegitimize_address): Recognize changed address.
9574         (rs6000_legitimize_reload_address): Likewise.
9575         (rs6000_emit_move): Don't force these constants to memory.
9576         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9577         toc-relative address in CONST.
9578         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9579         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9580
9581 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9582
9583         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9584         (count_trailing_zeros): Likewise.
9585
9586 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9587
9588         PR other/49325
9589         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9590         .init_array can be used with .ctors on targets.
9591         * configure: Regenerated.
9592
9593 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9594
9595         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9596         if the element type is volatile.
9597
9598 2011-06-18  Jan Hubicka  <jh@suse.cz>
9599
9600         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9601         extra name aliases.
9602         (lto_symtab_resolve_can_prevail_p): Likewise.
9603         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9604         * cgraphbuild.c (record_reference): Remove extra body alias code.
9605         (mark_load): Likewise.
9606         (mark_store): Likewise.
9607         * cgraph.h (varpool_node): Remove extra_name filed;
9608         add alias_of and extraname_alias.
9609         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9610         (varpool_alias_aliased_node): New inline function.
9611         (varpool_variable_node): New function.
9612         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9613         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9614         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9615         (input_varpool_node): Likewise.
9616         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9617         (varpool_externally_visible_p): Remove extra body alias code.
9618         (function_and_variable_visibility): Likewise.
9619         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9620         (ipa_pta_execute): Use it.
9621         * varpool.c (varpool_remove_node): Remove extra name alias code.
9622         (varpool_mark_needed_node): Likewise.
9623         (varpool_analyze_pending_decls): Analyze aliases.
9624         (assemble_aliases): New functoin.
9625         (varpool_assemble_decl): Use it.
9626         (varpool_create_variable_alias): New function.
9627         (varpool_extra_name_alias): Rewrite.
9628         (varpool_for_node_and_aliases): New function.
9629
9630 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
9631
9632         PR target/49411
9633         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9634         last_arg_constant and last argument doesn't match its predicate,
9635         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9636         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9637         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9638         spelling of error message.
9639         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9640         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9641         const_0_to_255_operand instead of const_int_operand.
9642
9643         Revert:
9644         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9645
9646         * config/i386/sse.md (blendbits): Remove mode attribute.
9647         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9648         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9649         Check integer value of operand 3 in insn constraint.
9650
9651 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9652
9653         PR rtl-optimization/48542
9654         * reload.c (find_equiv_reg): Stop looking when finding a
9655         setjmp-type call.
9656         * reload1.c (reload_as_needed): Invalidate all reload
9657         registers when crossing a setjmp-type call.
9658
9659 2011-06-16  Jeff Law  <law@redhat.com>
9660
9661         * tree-ssa-threadupdate.c (struct redirection_data): New field
9662         intermediate_edge.
9663         (THREAD_TARGET2): Define.
9664         (redirection_data_eq): Also check that the intermediate edge is equal.
9665         (lookup_redirection_data): Drop useless argument.  Extract the
9666         outgoing_edge and intermediate edge from E.  Callers updated.
9667         (copy_phi_args, update_destination_phis): New functions.
9668         (fix_duplicate_block_edges): Likewise.
9669         (create_edge_and_update_destination_phis): Duplicate all the edges
9670         hung off e->aux.  Use copy_phi_args.
9671         (create_duplicates): Use fix_duplicate_block_edges.
9672         (fixup_template_block): Likewise.
9673         (redirect_edges): If necessary, redirect the joiner block's incoming
9674         edge to the duplicate of the joiner block.
9675         (thread_block): Don't muck up loops when threading through a joiner
9676         block.
9677         (thread_through_loop_header): Handle threading through a joiner block.
9678         (mark_threaded_blocks, register_jump_thread): Likewise.
9679         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9680         updated.
9681         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9682         (thread_across_edge): Handle threading through a joiner block.
9683
9684 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9685
9686         PR tree-optimization/49343
9687         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9688         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9689
9690 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9691
9692         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9693         inside RTX_CODE ifdef.
9694
9695 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9696
9697         PR target/45098
9698         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9699         Disallow NULL pointer for pointer arithmetic.
9700
9701 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9702
9703         PR target/49398
9704         Revert.
9705         2011-06-10  Wei Guozhi  <carrot@google.com>
9706
9707         PR target/45335
9708         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9709         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9710         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9711         related peephole2.
9712         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9713         related peephole2.
9714         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9715         (arm_legitimate_ldrd_p): New prototype.
9716         (arm_output_ldrd): New prototype.
9717         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9718         (arm_legitimate_ldrd_p): New function.
9719         (arm_output_ldrd): New function.
9720
9721 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9722
9723         PR middle-end/46500
9724         * doc/tm.texi.in: Update Copyright date.
9725         * doc/tm.texi: Regenerate.
9726         * targhooks.c (default_setup_incoming_varargs): Replace
9727         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9728         (default_pretend_outgoing_varargs_named): Likewise.
9729         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9730         (hook_callee_copies_named): Likewise.
9731         (default_function_arg_advance): Likewise.
9732         (default_function_arg): Likewise.
9733         (default_function_incoming_arg): Likewise.
9734         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9735         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9736         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9737         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9738         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9739         * targhooks.h (default_setup_incoming_varargs): Likewise.
9740         (default_pretend_outgoing_varargs_named): Likewise.
9741         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9742         (hook_callee_copies_named): Likewise.
9743         (default_function_arg_advance): Likewise.
9744         (default_function_arg): Likewise.
9745         (default_function_incoming_arg): Likewise.
9746         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9747         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9748         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9749         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9750         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9751         * target.def (pass_by_reference): Likewise.
9752         (setup_incoming_varargs, strict_argument_naming): Likewise.
9753         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9754         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9755         (function_incoming_arg): Likewise.
9756         * target.h: Don't include "tm.h" .
9757         (cumulative_args_t): New typedef.
9758         [GCC_TM_H] (get_cumulative_args): New static inline function.
9759         [GCC_TM_H] (pack_cumulative_args): Likewise.
9760         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9761         argument type with cumulative_args_t.
9762         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9763         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9764         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9765         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9766         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9767         (frv_function_arg_1): Likewise.
9768         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9769         (s390_function_arg_advance, s390_function_arg): Likewise.
9770         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9771         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9772         (m32c_strict_argument_naming): Likewise.
9773         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9774         (spu_function_arg_advance): Likewise.
9775         (spu_setup_incoming_varargs): Likewise.  Make static.
9776         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9777         Remove prototype.
9778         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9779         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9780         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9781         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9782         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9783         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9784         (mep_pass_by_reference, mep_function_arg): Likewise.
9785         (mep_function_arg_advance): Likewise.
9786         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9787         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9788         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9789         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9790         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9791         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9792         (ix86_setup_incoming_varargs): Likewise.
9793         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9794         (sh_strict_argument_naming): Likewise.
9795         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9796         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9797         (sh_function_arg_advance, sh_function_arg): Likewise.
9798         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9799         (pdp11_function_arg_advance): Likewise.
9800         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9801         Likewise.
9802         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9803         * config/avr/avr.c (avr_function_arg): Likewise.
9804         (avr_function_arg_advance): Likewise.
9805         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9806         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9807         (xtensa_function_arg_1): Likewise.
9808         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9809         Likewise.
9810         (xstormy16_function_arg): Likewise.
9811         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9812         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9813         (fr30_function_arg_advance): Likewise.
9814         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9815         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9816         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9817         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9818         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9819         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9820         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9821         (cris_function_arg, cris_function_incoming_arg): Likewise.
9822         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9823         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9824         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9825         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9826         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9827         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9828         (mn10300_arg_partial_bytes): Likewise.
9829         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9830         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9831         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9832         (ia64_function_arg_1): Likewise.
9833         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9834         (m68k_function_arg): Likewise.
9835         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9836         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9837         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9838         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9839         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9840         (picochip_arg_advance): Likewise.
9841         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9842         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9843         (mcore_function_arg_advance): Likewise.
9844         * config/score/score.c (score_pass_by_reference): Likewise.
9845         (score_function_arg_advance): Likewise.
9846         (score_arg_partial_bytes): Likewise.  Make static.
9847         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9848         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9849         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9850         (arm_function_arg, arm_function_arg_advance): Likewise.
9851         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9852         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9853         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9854         (pa_function_arg): Likewise.
9855         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9856         (mips_function_arg, mips_function_arg_advance): Likewise.
9857         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9858         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9859         * config/vax/vax.c (vax_function_arg): Likewise.
9860         (vax_function_arg_advance): Likewise.
9861         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9862         (h8300_function_arg_advance): Likewise.
9863         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9864         (v850_strict_argument_naming, v850_function_arg): Likewise.
9865         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9866         (v850_setup_incoming_varargs): Likewise.
9867         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9868         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9869         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9870         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9871         with const void *.
9872         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9873         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9874         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9875         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9876         * calls.c (emit_call_1): Change type of args_so_far to
9877         cumulative_args_t.  Changed all callers.
9878         (initialize_argument_information): Likewise.
9879         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9880         * dse.c (get_call_args): Likewise.
9881         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9882         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9883         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9884         New member args_so_far_v.  Changed all users.
9885         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9886         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9887         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9888         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9889         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9890         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9891         Likewise.
9892         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9893         m32r_pass_by_reference.
9894
9895 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9896
9897         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9898         argument to be a VEC of statements.
9899         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9900         assert that pattern statements have to have their vector type set.
9901         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9902         Change the first argument to be a VEC of statements.  Update
9903         documentation.
9904         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9905         (vect_handle_widen_mult_by_const): New function.
9906         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9907         VEC of statements.  Update documentation.  Check that the constant is
9908         INTEGER_CST.  Support multiplication by a constant that fits an
9909         intermediate type - call vect_handle_widen_mult_by_const.
9910         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9911         call.  Handle additional pattern statements if necessary.
9912
9913 2011-06-16  Nick Clifton  <nickc@redhat.com>
9914
9915         PR target/49427
9916         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9917         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9918         md_file, extra_modes, out_file and extra_options are these are all
9919         deduced from cpu_type.
9920
9921 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9922
9923         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9924         truncation mask to 63.
9925
9926 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9927
9928         PR target/49313
9929         PR target/29524
9930         * longlong.h: Add AVR support:
9931         (count_leading_zeros): New macro.
9932         (count_trailing_zeros): New macro.
9933         (COUNT_LEADING_ZEROS_0): New macro.
9934         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9935         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9936         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9937         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9938         (LIB2FUNCS_EXCLUDE): Add _clz.
9939         * config/avr/libgcc.S (XCALL): Move up in file.
9940         (XJMP): New C Macro.
9941         (DEFUN): New asm macro.
9942         (ENDF): New asm macro.
9943         (__ffssi2): New function.
9944         (__ffshi2): New function.
9945         (__loop_ffsqi2): New function.
9946         (__ctzsi2): New function.
9947         (__ctzhi2): New function.
9948         (__clzdi2): New function.
9949         (__clzsi2): New function.
9950         (__clzhi2): New function.
9951         (__paritydi2): New function.
9952         (__paritysi2): New function.
9953         (__parityhi2): New function.
9954         (__parityqi2): New function.
9955         (__popcounthi2): New function.
9956         (__popcountsi2): New function.
9957         (__popcountdi2): New function.
9958         (__popcountqi2): New function.
9959         (__bswapsi2): New function.
9960         (__bswapdi2): New function.
9961         (__ashldi3): New function.
9962         (__ashrdi3): New function.
9963         (__lshrdi3): New function.
9964         Fix suspicous lines.
9965
9966 2011-06-16  Richard Guenther  <rguenther@suse.de>
9967
9968         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9969         the same as x != 0.
9970         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9971         to (bool) X & 1.
9972         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9973         equality compares against zero for the lower bit.
9974
9975 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
9976
9977         PR tree-optimization/49419
9978         * tree-vrp.c (execute_vrp): Call init_range_assertions
9979         before estimate_numbers_of_iterations, call
9980         free_number_of_iterations_estimates before calling
9981         remove_range_assertions.
9982
9983 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9984
9985         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9986         (struct partial_schedule): Add rows_length field.
9987         (verify_partial_schedule): Check rows_length.
9988         (ps_insert_empty_row): Handle rows_length.
9989         (create_partial_schedule): Likewise.
9990         (free_partial_schedule): Likewise.
9991         (reset_partial_schedule): Likewise.
9992         (create_ps_insn): Remove rest_count argument.
9993         (remove_node_from_ps): Update rows_length.
9994         (add_node_to_ps): Update rows_length and call create_ps_insn
9995         without passing row_rest_count.
9996         (rotate_partial_schedule): Update rows_length.
9997
9998 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9999
10000         * ddg.c (add_intra_loop_mem_dep): New function.
10001         (build_intra_loop_deps): Call it.
10002
10003 2011-06-13  Jeff Law  <law@redhat.com>
10004
10005         * df-problems.c (df_lr_local_compute): Manually CSE
10006         PIC_OFFSET_TABLE_REGNUM.
10007         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10008         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10009
10010 2011-06-13  Jan Hubicka  <jh@suse.cz>
10011
10012         * cgraphunit.c (handle_alias_pairs): New function.
10013         (cgraph_finalize_compilation_unit): Use it.
10014         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10015         as externally visible.
10016
10017 2011-06-15  Richard Guenther  <rguenther@suse.de>
10018
10019         * expr.c (expand_expr_real_2): Reduce all integral types to
10020         bitfield precision.
10021         (expand_expr_real_1): Likewise.
10022
10023 2011-06-15  Martin Jambor  <mjambor@suse.cz>
10024
10025         PR tree-optimization/48613
10026         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10027         ipa_node_params_vector is NULL.
10028
10029 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
10030
10031         PR debug/49382
10032         * dwarf2out.c (dw_loc_list_node): Add force field.
10033         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10034         location in the list, even if it is modified before first real insn.
10035         (output_loc_list): Emit empty ranges with force flag set.
10036         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10037
10038 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
10039
10040         PR target/49349
10041         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10042         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
10043         above a fence.  Update comments.
10044         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10045         placed just above it.  Do not allow NULL place_to_insert.
10046
10047 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
10048
10049         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10050         (slpeel_tree_peel_loop_to_edge): Don't call
10051         remove_dead_stmts_from_loop.
10052         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10053         remove irrelevant pattern statements.  For irrelevant statements
10054         check if it is the last statement of a detected pattern, use
10055         corresponding pattern statement instead.
10056         (destroy_loop_vec_info): No need to remove pattern statements,
10057         only free stmt_vec_info.
10058         (vect_transform_loop): For irrelevant statements check if it is
10059         the last statement of a detected pattern, use corresponding
10060         pattern statement instead.
10061         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10062         pattern statements.  Set basic block for the new statement.
10063         (vect_pattern_recog): Update documentation.
10064         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10065         operands of pattern statements.
10066         (vectorizable_call): Fix printing.  In case of a pattern statement
10067         use the lhs of the original statement when creating a dummy
10068         statement to replace the original call.
10069         (vect_analyze_stmt): For irrelevant statements check if it is
10070         the last statement of a detected pattern, use corresponding
10071         pattern statement instead.
10072         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10073         statements use gsi of the original statement.
10074
10075 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10076
10077         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10078         common/common-target-def.h.
10079         * target.def (default_target_flags, handle_option,
10080         supports_split_stack, optimization_table, init_struct,
10081         except_unwind_info, unwind_tables_default, have_named_sections):
10082         Move to common/common-target.def.
10083         * target.h (enum opt_levels, struct default_options): Move to
10084         common/common-target.h.
10085         * targhooks.c (default_except_unwind_info,
10086         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10087         default_target_handle_option, empty_optimization_table): Move to
10088         common/common-targhooks.c.
10089         * targhooks.h (default_except_unwind_info,
10090         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10091         default_target_handle_option, empty_optimization_table): Move to
10092         common/common-targhooks.h.
10093         * common/common-target-def.h: Include common/common-targhooks.h.
10094         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10095         defined.
10096         * common/common-target.def (handle_option, option_init_struct,
10097         option_optimization_table, default_target_flags,
10098         except_unwind_info, supports_split_stack, unwind_tables_default,
10099         have_named_sections): Move from target.def.
10100         (HOOK_PREFIX): Undefine at end of file.
10101         * common/common-target.h: Include input.h.
10102         (enum opt_levels, struct default_options): Move from target.h.
10103         * common/common-targhooks.c, common/common-targhooks.h: New.
10104         * config.gcc (target_has_targetm_common): Default to yes.
10105         (moxie*): Set target_has_targetm_common=no.
10106         (hppa*-*-*): Don't set target_has_targetm_common=yes.
10107         * doc/tm.texi: Regenerate.
10108         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10109         (C_TARGET_DEF_H): Add common/common-targhooks.h.
10110         (GCC_OBJS): Remove vec.o.
10111         (OBJS): Remove hooks.o and vec.o.
10112         (OBJS-libcommon-target): Add vec.o, hooks.o and
10113         common/common-targhooks.o.
10114         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10115         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10116         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10117         cfglayout.o, $(out_object_file), $(common_out_object_file)):
10118         Update dependencies.
10119         (common/common-targhooks.o): New.
10120         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
10121         * common/config/pa/pa-common.c: Include more headers.  Take
10122         copyright dates from pa.c.
10123         (pa_option_optimization_table, pa_handle_option,
10124         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10125         TARGET_HANDLE_OPTION): Move from pa.c.
10126         * common/config/alpha/alpha-common.c,
10127         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10128         common/config/bfin/bfin-common.c,
10129         common/config/cris/cris-common.c,
10130         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10131         common/config/h8300/h8300-common.c,
10132         common/config/i386/i386-common.c,
10133         common/config/ia64/ia64-common.c,
10134         common/config/iq2000/iq2000-common.c,
10135         common/config/lm32/lm32-common.c,
10136         common/config/m32c/m32c-common.c,
10137         common/config/m32r/m32r-common.c,
10138         common/config/m68k/m68k-common.c,
10139         common/config/mcore/mcore-common.c,
10140         common/config/mep/mep-common.c,
10141         common/config/microblaze/microblaze-common.c,
10142         common/config/mips/mips-common.c,
10143         common/config/mmix/mmix-common.c,
10144         common/config/mn10300/mn10300-common.c,
10145         common/config/pdp11/pdp11-common.c,
10146         common/config/picochip/picochip-common.c,
10147         common/config/rs6000/rs6000-common.c,
10148         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10149         common/config/score/score-common.c, common/config/sh/sh-common.c,
10150         common/config/sparc/sparc-common.c,
10151         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10152         common/config/vax/vax-common.c,
10153         common/config/xstormy16/xstormy16-common.c,
10154         common/config/xtensa/xtensa-common.c: New.
10155         * config/alpha/alpha.c: Include common/common-target.h.
10156         (alpha_option_optimization_table, alpha_handle_option,
10157         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10158         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10159         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10160         * config/arm/arm.c (arm_option_optimization_table,
10161         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10162         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10163         arm-common.c.
10164         * config/avr/avr.c (avr_option_optimization_table,
10165         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10166         to avr-common.c.
10167         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10168         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10169         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10170         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10171         * config/cris/cris.c (cris_option_optimization_table,
10172         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10173         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10174         cris-common.c.
10175         * config/fr30/fr30.c (fr30_option_optimization_table,
10176         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10177         to fr30-common.c.
10178         * config/frv/frv.c (frv_option_optimization_table,
10179         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10180         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10181         * config/h8300/h8300.c (h8300_option_optimization_table,
10182         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10183         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10184         * config/i386/i386-protos.h (ix86_handle_option): Declare.
10185         * config/i386/i386.c: Include common/common-target.h.
10186         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10187         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10188         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10189         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10190         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10191         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10192         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10193         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10194         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10195         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10196         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10197         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10198         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10199         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10200         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10201         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10202         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10203         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10204         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10205         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10206         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10207         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10208         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10209         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10210         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10211         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10212         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10213         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10214         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10215         ix86_option_optimization_table, ix86_option_init_struct,
10216         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10217         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10218         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10219         i386-common.c.
10220         * config/i386/t-i386 (i386.o): Update dependencies.
10221         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10222         * config/ia64/ia64.c (ia64_option_optimization_table,
10223         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10224         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10225         ia64_handle_option): Move to ia64-common.c.
10226         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10227         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10228         * config/lm32/lm32.c (lm32_option_optimization_table,
10229         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10230         to lm32-common.c.
10231         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10232         m32c-common.c.
10233         * config/m32r/m32r.c (m32r_option_optimization_table,
10234         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10235         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10236         m32r_handle_option): Move to m32r-common.c.
10237         (m32r_memory_move_cost): Remove comment referring to
10238         TARGET_HANDLE_OPTION.
10239         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10240         Move to m68k-common.c.
10241         * config/mcore/mcore.c (mcore_option_optimization_table,
10242         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10243         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10244         * config/mep/mep.c (mep_option_optimization_table,
10245         mep_handle_option, TARGET_HANDLE_OPTION,
10246         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10247         Move to mep-common.c.
10248         * config/microblaze/microblaze.c
10249         (microblaze_option_optimization_table,
10250         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10251         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10252         * config/mips/mips.c (mips_handle_option,
10253         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10254         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10255         mips-common.c.
10256         * config/mmix/mmix.c (mmix_option_optimization_table,
10257         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10258         Move to mmix-common.c.
10259         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10260         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10261         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10262         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10263         * config/pa/pa.c: Include common/common-target.h.
10264         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10265         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10266         pa_handle_option): Move to pa-common.c.
10267         (pa_option_override): Use targetm_common.except_unwind_info.
10268         (pa_asm_output_mi_thunk, pa_function_section): Use
10269         targetm_common.have_named_sections.
10270         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10271         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10272         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10273         pdp11_handle_option, pdp11_option_init_struct): Move to
10274         pdp11-common.c.
10275         * config/picochip/picochip.c (picochip_option_optimization_table,
10276         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10277         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10278         * config/rs6000/rs6000.c: Include common/common-target.h.
10279         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10280         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10281         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10282         rs6000_handle_option): Move to rs6000-common.c.
10283         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10284         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10285         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10286         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10287         * config/s390/s390.c (processor_flags_table,
10288         s390_option_optimization_table, s390_option_init_struct,
10289         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10290         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10291         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10292         * config/s390/s390.h (processor_flags_table): Declare.
10293         * config/score/score.c (score_option_optimization_table,
10294         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10295         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10296         score_handle_option): Move to score-common.c.
10297         * config/sh/sh.c (sh_option_optimization_table,
10298         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10299         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10300         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10301         * config/sparc/sparc.c: Include common/common-target.h.
10302         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10303         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10304         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10305         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10306         spu_option_init_struct): Move to spu-common.c.
10307         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10308         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10309         * config/v850/v850.c (small_memory_physical_max,
10310         v850_handle_memory_optionn v850_handle_option,
10311         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10312         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10313         v850-common.c.
10314         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10315         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10316         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10317         Move to xtensa-common.c.
10318         * cfglayout.c: Include common/common-target.h.
10319         (fixup_reorder_chain): Use targetm_common.have_named_sections.
10320         * cfgrtl.c: Include common/common-target.h.
10321         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10322         targetm_common.have_named_sections.
10323         * dbxout.c: Include common/common-target.h.
10324         (dbxout_function_end): Use targetm_common.have_named_sections.
10325         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10326         targetm_common.except_unwind_info.
10327         * dwarf2out.c: Include common/common-target.h.
10328         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10329         dwarf2out_begin_prologue, dwarf2out_frame_init,
10330         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10331         targetm_common.except_unwind_info.
10332         * except.c: Include common/common-target.h.
10333         (init_eh, finish_eh_generation,
10334         output_one_function_exception_table): Use
10335         targetm_common.except_unwind_info.
10336         (switch_to_exception_section): Use targetm_common.have_named_sections.
10337         * explow.c: Include common/common-target.h.
10338         * expr.c: Include common/common-target.h.
10339         (build_personality_function): Use targetm_common.except_unwind_info.
10340         * function.c: Include common/common-target.h.
10341         (expand_function_end): Use targetm_common.except_unwind_info.
10342         * haifa-sched.c: Include common/common-target.h.
10343         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10344         * lto-opts.c: Include common/common-target.h instead of target.h.
10345         (lto_reissue_options): Use targetm_common.handle_option.
10346         * opts.c: Include common/common-target.h.
10347         (target_handle_option): Use targetm_common.handle_option.
10348         (init_options_struct): Update comment referring to
10349         targetm.target_option.optimization.  Use
10350         targetm_common.default_target_flags,
10351         targetm_common.unwind_tables_default and
10352         targetm_common.option_init_struct.
10353         (default_options_optimization): Use
10354         targetm_common.option_optimization_table.
10355         (finish_options): Use targetm_common.except_unwind_info,
10356         targetm_common.unwind_tables_default,
10357         targetm_common.have_named_sections and
10358         targetm_common.supports_split_stack.
10359         * toplev.c: Include common/common-target.h.
10360         (process_options): Use targetm_common.have_named_sections.
10361         * tree-tailcall.c: Include common/common-target.h.
10362         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10363         * tree.c: Include common/common-target.h.
10364         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10365         * varasm.c: Include common/common-target.h.
10366         (resolve_unique_section, hot_function_section,
10367         default_function_section): Use targetm_common.have_named_sections.
10368
10369 2011-06-14  Easwaran Raman  <eraman@google.com>
10370
10371         PR rtl-optimization/44194
10372         * dse.c: Include tree-flow.h
10373         (insn_info): Add new field non_frame_wild_read.
10374         (group_info): Add new fields escaped_n and escaped_p.
10375         (kill_on_calls): New variable.
10376         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10377         (dse_step0): Initialize kill_on_calls.
10378         (can_escape): New function.
10379         (set_usage_bits): Add additional parameter; record information
10380         about escaped locations.
10381         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10382         (dse_step2_nospill): Set kill_on_calls based on
10383         group->escaped_n and group->escaped_n.
10384         (add_wild_read): Refactor into...
10385         (reset_active_stores): ... New function, and
10386         (free_read_records): ... New function.
10387         (add_non_frame_wild_read): New function.
10388         (scan_insn): Call add_non_frame_wild_read on non-const calls.
10389         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10390         (dse_step5_nospill): Call scan_reads_nospill for instructions
10391         marked as non_frame_wild_read.
10392         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10393
10394 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10395
10396         * common/common-target-def.h, common/common-target.def,
10397         common/common-target.h, common/config/default-common.c,
10398         common/config/pa/pa-common.c: New files.
10399         * Makefile.in (common_out_file, common_out_object_file,
10400         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10401         (OBJS-libcommon-target): Include $(common_out_object_file).
10402         (prefix.o): Update dependencies.
10403         ($(common_out_object_file), common/common-target-hooks-def.h,
10404         s-common-target-hooks-def-h): New.
10405         (s-tm-texi): Also check timestamp on common-target.def.
10406         (build/genhooks.o): Update dependencies.
10407         * config.gcc (common_out_file, target_has_targetm_common): Define.
10408         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10409         TARGET_ALWAYS_STRIP_DOTDOT.
10410         * configure.ac (common_out_object_file): Define.
10411         (common_out_file, common_out_object_file): Substitute.
10412         (common): Create directory.
10413         * configure: Regenerate.
10414         * doc/tm.texi.in (targetm_common): Document.
10415         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10416         * doc/tm.texi: Regenerate.
10417         * genhooks.c (hook_array): Also include common/common-target.def.
10418         * prefix.c (tm.h): Don't include.
10419         (common/common-target.h): Include.
10420         (ALWAYS_STRIP_DOTDOT): Don't define.
10421         (update_path): Use targetm_common.always_strip_dotdot instead of
10422         ALWAYS_STRIP_DOTDOT.
10423         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10424
10425 2011-06-14  David Li  <davidxl@google.com>
10426
10427         * passes.c (execute_function_todo): Remove TODO_dump_func.
10428         (execute_one_pass): Remove TODO_dump_func.
10429         (execute_function_dump): New function.
10430         * tree-vrp.c: Remove TODO_dump_func.
10431         * regrename.c: Remove TODO_dump_func.
10432         * fwprop.c: Remove TODO_dump_func.
10433         * tree-into-ssa.c: Remove TODO_dump_func.
10434         * tree-complex.c: Remove TODO_dump_func.
10435         * tracer.c: Remove TODO_dump_func.
10436         * tree-loop-distribution.c: Remove TODO_dump_func.
10437         * postreload-gcse.c: Remove TODO_dump_func.
10438         * postreload.c: Remove TODO_dump_func.
10439         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10440         * tree-tailcall.c: Remove TODO_dump_func.
10441         * ipa-cp.c: Remove TODO_dump_func.
10442         * final.c: Remove TODO_dump_func.
10443         * tree-emutls.c: Remove TODO_dump_func.
10444         * omp-low.c: Remove TODO_dump_func.
10445         * tree-ssa-dse.c: Remove TODO_dump_func.
10446         * tree-ssa-uncprop.c: Remove TODO_dump_func.
10447         * auto-inc-dec.c: Remove TODO_dump_func.
10448         * reorg.c: Remove TODO_dump_func.
10449         * tree-ssa-copyrename.c: Remove TODO_dump_func.
10450         * tree-ssa-ccp.c: Remove TODO_dump_func.
10451         * compare-elim.c: Remove TODO_dump_func.
10452         * mode-switching.c: Remove TODO_dump_func.
10453         * modulo-sched.c: Remove TODO_dump_func.
10454         * tree-call-cdce.c: Remove TODO_dump_func.
10455         * cse.c: Remove TODO_dump_func.
10456         * web.c: Remove TODO_dump_func.
10457         * tree-stdarg.c: Remove TODO_dump_func.
10458         * lto-streamer-out.c: Remove TODO_dump_func.
10459         * tree-ssa-math-opts.c: Remove TODO_dump_func.
10460         * tree-ssa-dom.c: Remove TODO_dump_func.
10461         * tree-nrv.c: Remove TODO_dump_func.
10462         * loop-init.c: Remove TODO_dump_func.
10463         * gimple-low.c: Remove TODO_dump_func.
10464         * ipa-inline.c: Remove TODO_dump_func.
10465         * tree-ssa-sink.c: Remove TODO_dump_func.
10466         * jump.c: Remove TODO_dump_func.
10467         * ifcvt.c: Remove TODO_dump_func.
10468         * tree-ssa-loop.c: Remove TODO_dump_func.
10469         * recog.c: Remove TODO_dump_func.
10470         * dse.c: Remove TODO_dump_func.
10471         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10472         * matrix-reorg.c: Remove TODO_dump_func.
10473         * tree-eh.c: Remove TODO_dump_func.
10474         * regmove.c: Remove TODO_dump_func.
10475         * function.c: Remove TODO_dump_func.
10476         * tree-vectorizer.c: Remove TODO_dump_func.
10477         * ipa-split.c: Remove TODO_dump_func.
10478         * gcse.c: Remove TODO_dump_func.
10479         * tree-if-conv.c: Remove TODO_dump_func.
10480         * init-regs.c: Remove TODO_dump_func.
10481         * tree-ssa-phiopt.c: Remove TODO_dump_func.
10482         * implicit-zee.c: Remove TODO_dump_func.
10483         * lower-subreg.c: Remove TODO_dump_func.
10484         * bt-load.c: Remove TODO_dump_func.
10485         * tree-dfa.c: Remove TODO_dump_func.
10486         * except.c: Remove TODO_dump_func.
10487         * emit-rtl.c: Remove TODO_dump_func.
10488         * store-motion.c: Remove TODO_dump_func.
10489         * cfgexpand.c: Remove TODO_dump_func.
10490         * tree-cfgcleanup.c: Remove TODO_dump_func.
10491         * cfgcleanup.c: Remove TODO_dump_func.
10492         * tree-ssa-pre.c: Remove TODO_dump_func.
10493         * tree-sra.c: Remove TODO_dump_func.
10494         * tree-mudflap.c: Remove TODO_dump_func.
10495         * tree-ssa-copy.c: Remove TODO_dump_func.
10496         * cfglayout.c: Remove TODO_dump_func.
10497         * tree-ssa-forwprop.c: Remove TODO_dump_func.
10498         * tree-ssa-dce.c: Remove TODO_dump_func.
10499         * ira.c: Remove TODO_dump_func.
10500         * tree-ssa.c: Remove TODO_dump_func.
10501         * integrate.c: Remove TODO_dump_func.
10502         * tree-optimize.c: Remove TODO_dump_func.
10503         * tree-ssa-phiprop.c: Remove TODO_dump_func.
10504         * tree-object-size.c: Remove TODO_dump_func.
10505         * combine.c: Remove TODO_dump_func.
10506         * bb-reorder.c: Remove TODO_dump_func.
10507         * cprop.c: Remove TODO_dump_func.
10508         * var-tracking.c: Remove TODO_dump_func.
10509         * tree-profile.c: Remove TODO_dump_func.
10510         * tree-vect-generic.c: Remove TODO_dump_func.
10511         * reg-stack.c: Remove TODO_dump_func.
10512         * sched-rgn.c: Remove TODO_dump_func.
10513         * tree-ssa-structalias.c: Remove TODO_dump_func.
10514         * tree-switch-conversion.c: Remove TODO_dump_func.
10515         * tree-cfg.c: Remove TODO_dump_func.
10516         * tree-ssa-reassoc.c: Remove TODO_dump_func.
10517         * combine-stack-adj.c: Remove TODO_dump_func.
10518         * dce.c: Remove TODO_dump_func.
10519         * tree-ssanames.c: Remove TODO_dump_func.
10520         * regcprop.c: Remove TODO_dump_func.
10521
10522 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10523
10524         PR middle-end/47364
10525         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10526         and properly handle result not in Pmode.
10527
10528 2011-06-14  Robert Millan  <rmh@gnu.org>
10529
10530         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10531         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10532         `config/linux.h'.
10533
10534         * config/i386/kfreebsd-gnu64.h: New file.
10535         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10536         with `i386/kfreebsd-gnu64.h'.
10537
10538         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10539         (GNU_USER_LINK_EMULATION64): New macros.
10540         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10541         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10542         of hardcoding `elf_i386' and `elf_x86_64'.
10543
10544 2011-06-14  Nick Clifton  <nickc@redhat.com>
10545
10546         PR target/49403
10547         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10548
10549         PR target/49402
10550         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10551
10552 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
10553
10554         PR fortran/49103
10555         * tree.h (DECL_NONSHAREABLE): Define.
10556         (struct tree_decl_common): Change decl_common_unused to
10557         decl_nonshareable_flag.
10558         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10559         Ignore vars with DECL_NONSHAREABLE bit set.
10560         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10561         on stores to automatic aggregate vars.
10562
10563         PR rtl-optimization/49390
10564         Revert:
10565         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10566
10567         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10568         MEM_ALIAS_SET.
10569
10570 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
10571             Tom de Vries  <tom@codesourcery.com>
10572
10573         PR target/45098
10574         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10575         Document changed semantics.
10576         (max_stmt_executions, max_stmt_executions_int): Declare.
10577         * tree-data-ref.c (estimated_loop_iterations)
10578         (estimated_loop_iterations_int): Move functions...
10579         * tree-ssa-loop-niter.c (estimated_loop_iterations)
10580         (estimated_loop_iterations_int): here.
10581         (record_estimate): Change nb_iterations_upper_bound and
10582         nb_iterations_estimate semantics.
10583         (max_stmt_executions, max_stmt_executions_int): New function.
10584         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10585         (max_stmt_executions_tree): this.
10586         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10587         estimated_loop_iterations_tree.
10588         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10589         max_stmt_executions_int instead of estimated_loop_iterations_int.
10590         * predict.c (predict_loops): Idem.
10591         * tree-parloops.c (parallelize_loops): Idem.
10592         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10593         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10594         (init_omega_for_ddr_1): Idem.
10595         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10596         (loop_prefetch_arrays): Idem
10597         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10598         max_stmt_executions instead of estimated_loop_iterations.
10599         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10600         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10601         instead of nb_iterations_upper_bound.
10602
10603 2011-06-13  Jan Hubicka  <jh@suse.cz>
10604
10605         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10606
10607 2011-06-14  Richard Henderson  <rth@redhat.com>
10608
10609         PR debug/48459
10610         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10611         (based_loc_descr): Assert it's true.
10612         (compute_frame_pointer_to_fb_displacement): Set it, rather than
10613         aborting immediately.
10614
10615 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
10616             Mingfeng Wu  <mingfeng@faraday-tech.com>
10617
10618         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10619
10620 2011-06-13  Jan Hubicka  <jh@suse.cz>
10621
10622         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10623
10624 2011-06-13  Jan Hubicka  <jh@suse.cz>
10625
10626         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10627         similarly to DECL_COMDAT.
10628         * cgraphunit.c (cgraph_analyze_function): Likewise.
10629         * ipa.c (function_and_variable_visibility): Likewise.
10630
10631 2011-06-13  Jan Hubicka  <jh@suse.cz>
10632
10633         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10634         BINFO_VIRTUALS when streaming for ltrans unit.
10635
10636 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
10637
10638         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10639         (movdi_internal64): Same.
10640
10641 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10642
10643         PR target/44618
10644         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10645         a set of similar patterns, where the MATCH_OPERAND for the function
10646         argument is replaced with individual references to hardware registers.
10647         (save_fpregs_<mode>): Ditto
10648         (restore_gpregs_<mode>): Ditto
10649         (return_and_restore_gpregs_<mode>): Ditto
10650         (return_and_restore_fpregs_<mode>): Ditto
10651         (return_and_restore_fpregs_aix_<mode>): Ditto
10652
10653 2011-06-13  Jan Hubicka  <jh@suse.cz>
10654
10655         * ipa-utils.c (postorder_stack): New structure.
10656         (ipa_reverse_postorder): Handle aliases.
10657
10658 2011-06-13  Jan Hubicka  <jh@suse.cz>
10659
10660         * ipa-inline.c (reset_edge_caches): Walk aliases.
10661         (update_caller_keys): Do not test inlinability of aliases.
10662         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10663         (do_estimate_growth): Fix typo.
10664
10665 2011-06-13  Jan Hubicka  <jh@suse.cz>
10666
10667         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10668         (can_remove_node_now_p): ... here; handle same comdat groups.
10669         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10670         (inline_call): Update use of can_remove_node_now_p.
10671
10672 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10673
10674         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10675         condition to disallow non-identical memory locations.
10676         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10677         preference to bit manipulation instructions.
10678
10679 2011-06-13  Jan Hubicka  <jh@suse.cz>
10680
10681         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10682         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10683         (nonremovable_p): New function.
10684         (cgraph_can_remove_if_no_direct_calls_p): New function.
10685         (used_from_object_file_p): New functoin.
10686         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10687         references from aliases.
10688         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10689         * ipa-inline.c (check_caller_edge): New function.
10690         (want_inline_function_called_once_p): Use it; accept aliases called
10691         once, too.
10692         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10693
10694 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10695
10696         PR target/48454
10697         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10698         correctly for the case with Quad vectors.
10699
10700 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10701            Ira Rosen  <ira.rosen@linaro.org>
10702
10703         PR tree-optimization/49352
10704         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10705         all, make sure loop_use_stmt after the loop is a def stmt of a used
10706         SSA_NAME that is the only one defined inside of the loop.  Don't
10707         check for COND_EXPR and GIMPLE_BINARY_RHS.
10708         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10709         check_reduction is true.
10710
10711 2011-06-11  Jan Hubicka  <jh@suse.cz>
10712
10713         PR middle-end/49373
10714         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10715
10716 2011-06-11  Jan Hubicka  <jh@suse.cz>
10717
10718         PR middle-end/48836
10719         * ipa-inline-transform.c: Include tree-pass.h
10720         (inline_transform): Set TODO_update_ssa_only_virtuals.
10721         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10722
10723 2011-06-11  Jan Hubicka  <jh@suse.cz>
10724
10725         PR middle-end/49378
10726         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10727         aliases and thunks.
10728
10729 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10730
10731         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10732         Take number of iterations to peel into account for equally frequent
10733         misalignment values.
10734
10735 2011-06-11  Jan Hubicka  <jh@suse.cz>
10736
10737         * lto-streamer-out.c (produce_symtab): Stream out the newly
10738         represented aliases.
10739
10740 2011-06-11  Jan Hubicka  <jh@suse.cz>
10741
10742         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10743         varying args.
10744         (ipa_update_after_lto_read): Likewise.
10745         (ipa_write_node_info): Do not sream call_with_var_arguments.
10746         (ipa_read_node_info): Likewise.
10747
10748 2011-06-11  Jan Hubicka  <jh@suse.cz>
10749
10750         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10751
10752 2011-06-11  Jan Hubicka  <jh@suse.cz>
10753
10754         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10755         (lto_symtab_resolve_can_prevail_p): Likewise.
10756         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10757         * cgraph.c (same_body_aliases_done): New global var.
10758         (cgraph_same_body_alias_1): Rename to ...
10759         (cgraph_create_function_alias): ... this one; reorg to new
10760         representation.
10761         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10762         record references when asked to.
10763         (cgraph_add_thunk): Fix formating.
10764         (cgraph_get_node): Kill same body alias code.
10765         (cgraph_node_for_asm): Likewise.
10766         (cgraph_remove_same_body_alias): Remove.
10767         (cgraph_remove_node): Kill same body alias code.
10768         (cgraph_mark_address_taken_node): Mark also the aliased function
10769         as having address taken.
10770         (dump_cgraph_node): Dump same body aliases.
10771         (cgraph_for_node_thunks_and_aliases): Update for new alias
10772         representation.
10773         (cgraph_for_node_and_aliases): Likewise.
10774         * cgraph.h (same_body): Kll pointer.
10775         (same_body_alias): Update comment.
10776         (same_body_aliases_done): Declare.
10777         (cgraph_remove_same_body_alias): Remove declaration.
10778         (cgraph_create_function_alias): Declare.
10779         (cgraph_process_same_body_aliases): Declare.
10780         (cgraph_function_with_gimple_body_p): Check for alias.
10781         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10782         (cgraph_alias_aliased_node): New function.
10783         (cgraph_function_node): Update for new aliases.
10784         (cgraph_function_or_thunk_node): Likewise.
10785         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10786         (inline_call): Remove dead aliases.
10787         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10788         name hack for same body aliases.
10789         (clone_of_p): Look through aliases.
10790         (verify_cgraph_node): Verify aliases.
10791         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10792         (cgraph_process_same_body_aliases): New function.
10793         (process_function_and_variable_attributes): Disable weakref warning on
10794         alias.
10795         (cgraph_analyze_functions): Handle aliases.
10796         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10797         (assemble_thunks): Rename to ...
10798         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10799         (cgraph_expand_function): Remove alias output code.
10800         (cgraph_output_in_order): Skip aliases.
10801         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10802         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10803         (ipa_record_reference): Do not assert on alias references.
10804         (ipa_ref_has_aliases_p): New function.
10805         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10806         (ipa_ref_has_aliases_p): Declare.
10807         * lto-cgraph.c (lto_output_node): Handle aliases.
10808         (input_node): Likewise.
10809         * lto-streamer-out.c (lto_output): Skip aliases.
10810         (produce_symtab): Kill same_body_alias code.
10811         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10812         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10813         * ipa-inline.c (update_caller_keys): Walk aliases.
10814         (inline_small_functions): Fix thinko in previous patch.
10815         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10816         (function_and_variable_visibility): Do not walk same body aliases.
10817         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10818         (ipa_pta_execute): Use it.
10819
10820 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10821
10822         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10823         (*vec_dupv2df): Rename from vec_dupv2df.
10824         (vec_dupv2df): New expander.
10825
10826 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10827
10828         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10829
10830 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10831
10832         * config/i386/i386.md: Use default value in "isa" attribute.
10833         * config/i386/sse.md: Ditto.
10834         * config/i386/mmx.md: Ditto.
10835
10836 2011-06-10  Wei Guozhi  <carrot@google.com>
10837
10838         PR target/45335
10839         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10840         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10841         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10842         related peephole2.
10843         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10844         related peephole2.
10845         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10846         (arm_legitimate_ldrd_p): New prototype.
10847         (arm_output_ldrd): New prototype.
10848         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10849         (arm_legitimate_ldrd_p): New function.
10850         (arm_output_ldrd): New function.
10851
10852 2011-06-10  David Li  <davidxl@google.com>
10853
10854         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10855         * passes.c (passr_eq): New function.
10856         (create_pass_tab): New function.
10857         (pass_traverse): New function.
10858         (dump_one_pass): New function.
10859         (dump_pass_list): New function.
10860         (dump_passes): New function.
10861
10862 2011-06-10  Jan Hubicka  <jh@suse.cz>
10863
10864         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10865         setting the nothrow flag.
10866         * ipa-reference.c (propagate): Skip aliases.
10867         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10868         (propagate_nothrow): Skip aliases; do not update cgraph.
10869         (local_pure_const): Do not update cgraph.
10870         * tree-profile.c (tree_profiling): Do fixup_cfg.
10871
10872 2011-06-10  Jan Hubicka  <jh@suse.cz>
10873
10874         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10875         (cgraph_local_node_p): ... here; handle aliases.
10876         (has_addr_references_p): Break out from ...;
10877         (cgraph_remove_unreachable_nodes) ... here.
10878
10879 2011-06-10  Jan Hubicka  <jh@suse.cz>
10880
10881         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10882         * common.opt (flag_inline_functions_called_once): Do not
10883         initialize to 1.
10884
10885 2011-06-10  Jan Hubicka  <jh@suse.cz>
10886
10887         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10888         (ipcp_initialize_node_lattices): Do not deal with aliases;
10889         Do not try to propagate through thunks.
10890         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10891
10892 2011-06-10  Jan Hubicka  <jh@suse.cz>
10893
10894         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10895         for indirect calls.
10896         (ipa_read_node_info): Likewise.
10897
10898 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10899
10900         PR lto/49302
10901         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10902         (build_and_insert_call): Likewise.
10903         (build_and_insert_ref): New.
10904         (gimple_expand_builtin_pow): Minor cleanup.
10905         (gimple_expand_builtin_cabs): New.
10906         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10907
10908 2011-06-10  Jan Hubicka  <jh@suse.cz>
10909
10910         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10911         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10912         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10913         (ipcp_propagate_stage): Skip aliases when propagating.
10914         (ipcp_need_redirect_p): Skip aliases.
10915         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10916         collect_callers_of_node.
10917         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10918         for aliases.
10919         (ipa_compute_jump_functions): Look through aliases.
10920
10921 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10922
10923         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10924
10925 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10926
10927         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10928         Adjust comments.
10929         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10930
10931 2011-06-10  Jan Hubicka  <jh@suse.cz>
10932
10933         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10934         Update call of gimple_get_virt_method_for_binfo.
10935         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10936         refuse_thunks parameter.
10937         (gimple_fold_call): Update.
10938         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10939
10940 2011-06-10  Jan Hubicka  <jh@suse.cz>
10941
10942         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10943         (not_all_callers_have_enough_arguments_p): ... this one; turn into
10944         worker for cgraph_for_node_and_aliases.
10945         (convert_callers_for_node): Break out from ...
10946         (convert_callers): ... here.
10947         (modify_function): Use collect_callers_of_node.
10948         (ipa_early_sra): Use cgraph_for_node_and_aliases.
10949
10950 2011-06-10  Richard Guenther  <rguenther@suse.de>
10951
10952         PR tree-optimization/49361
10953         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10954         when not already in gimple form.
10955
10956 2011-06-10  Richard Guenther  <rguenther@suse.de>
10957
10958         PR bootstrap/49344
10959         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10960         FOR_EACH_PHI_OR_STMT_USE.
10961
10962 2011-06-10  Jan Hubicka  <jh@suse.cz>
10963
10964         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10965         (clone_inlined_nodes): ... here.
10966         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10967         to real destination prior inlining.
10968         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10969         can_early_inline_edge_p, want_early_inline_function_p,
10970         want_early_inline_function_p, want_inline_small_function_p,
10971         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10972         edge_badness, update_all_callee_keys, lookup_recursive_calls,
10973         add_new_edges_to_heap, inline_small_functions, flatten_function,
10974         inline_always_inline_functions, early_inline_small_functions): Use
10975         cgraph_function_or_thunk_node.
10976         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10977         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10978         (do_estimate_edge_growth_1): Break out from ...
10979         (do_estimate_growth) ... here; walk aliases.
10980         (inline_generate_summary): Skip aliases.
10981
10982 2011-06-10  Richard Guenther  <rguenther@suse.de>
10983
10984         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10985         forward when combining, visit inserted stmts when a stmt was changed.
10986
10987 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10988
10989         * tree.h (error_operand_p): Add.
10990         * dbxout.c (dbxout_type_fields): Use the latter.
10991         * c-decl.c (add_stmt): Likewise.
10992         * gimplify.c (omp_add_variable, omp_notice_variable,
10993         gimplify_scan_omp_clauses): Likewise.
10994
10995 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10996
10997         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10998         when a value is actually passed in regs.
10999
11000 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
11001             Laurent Rougé  <laurent.rouge@menta.fr>
11002
11003         * doc/invoke.texi (SPARC options): Add -mflat.
11004         * config/sparc/sparc.opt: Likewise.
11005         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11006         (sparc_flat_expand_prologue): Declare.
11007         (sparc_flat_expand_epilogue): Likewise.
11008         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11009         (CPP_ENDIAN_SPEC): Replace with...
11010         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
11011         (CPP_SPEC): Adjust to above change.
11012         (EXTRA_SPECS): Likewise.
11013         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11014         (INCOMING_REGNO): Likewise.
11015         (OUTGOING_REGNO): Likewise.
11016         (LOCAL_REGNO): Likewise.
11017         (SETUP_FRAME_ADDRESSES): Likewise.
11018         (FIXED_REGISTERS): Set 0 for %fp.
11019         (CALL_USED_REGISTERS): Likewise.
11020         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11021         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11022         (RETURN_ADDR_REGNUM): Define.
11023         (RETURN_ADDR_RTX): Use it.
11024         (INCOMING_RETURN_ADDR_REGNUM): Define.
11025         (INCOMING_RETURN_ADDR_RTX): Use it.
11026         (DWARF_FRAME_RETURN_COLUMN): Likewise.
11027         (EH_RETURN_REGNUM): Define.
11028         (EH_RETURN_STACKADJ_RTX): Use it.
11029         (EH_RETURN_HANDLER_RTX): Delete.
11030         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11031         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11032         Delete.
11033         (struct machine_function): Add frame_size, apparent_frame_size,
11034         frame_base_reg, frame_base_offset, n_global_fp_regs and
11035         save_local_in_regs_p fields.
11036         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11037         sparc_frame_base_offset, sparc_n_global_fp_regs,
11038         sparc_save_local_in_regs_p): New macros.
11039         (sparc_option_override): Error out if -fcall-saved-REG is specified
11040         for Out registers.
11041         (eligible_for_restore_insn): Fix formatting.
11042         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
11043         (eligible_for_sibcall_delay): Likewise.
11044         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11045         (sparc_legitimate_address_p): Adjust to above change.
11046         (save_global_or_fp_reg_p): New predicate.
11047         (return_addr_reg_needed_p): Likewise.
11048         (save_local_or_in_reg_p): Likewise.
11049         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
11050         (SORR_SAVE, SORR_RESTORE): Delete.
11051         (sorr_pred_t): New typedef.
11052         (sorr_act_t): New enum.
11053         (save_or_restore_regs): Rename to...
11054         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
11055         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11056         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
11057         mechanism.  Add CFI information for double-word saves in 32-bit mode.
11058         (emit_adjust_base_to_offset): New function extracted from...
11059         (emit_save_or_restore_regs): ...this.  Rename the rest to...
11060         (emit_save_or_restore_regs_global_fp_regs): ...this.
11061         (emit_save_or_restore_regs_local_in_regs): New function.
11062         (gen_create_flat_frame_[123]): New functions.
11063         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
11064         (sparc_flat_expand_prologue): New function.
11065         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11066         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
11067         (sparc_flat_expand_epilogue): New function.
11068         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11069         (output_return): Likewise.
11070         (output_sibcall): Likewise.
11071         (sparc_output_mi_thunk): Likewise.
11072         (sparc_frame_pointer_required): Likewise.
11073         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11074         function optimization.
11075         * config/sparc/sparc.md (flat): New attribute.
11076         (prologue): Add TARGET_FLAT handling.
11077         (save_register_window): Disable if TARGET_FLAT.
11078         (create_flat_frame_[123]): New patterns.
11079         (epilogue): Add TARGET_FLAT handling.
11080         (sibcall_epilogue): Likewise.
11081         (eh_return): New expander.
11082         (eh_return_internal): New insn and splitter.
11083         (return_internal): Add TARGET_FLAT handling.
11084         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11085         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11086         (nonlocal_goto): Add TARGET_FLAT handling.
11087         * config/sparc/t-elf: Add -mflat multilib.
11088         * config/sparc/t-leon: Likewise.
11089
11090 2011-06-10  Jan Hubicka  <jh@suse.cz>
11091
11092         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11093         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11094         (self_recursive_p): Use cgraph_function_node.
11095         (propagate_pure_const): Likewise.
11096         (propagate_nothrow): Likewise.
11097         * ipa-reference.c (ipa_reference_get_not_read_global): Use
11098         cgraph_function_node.
11099         (propagate_bits): Likewise.
11100         (propagate): Likewise.
11101
11102 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11103             Richard Earnshaw  <rearnsha@arm.com>
11104
11105         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11106         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11107         (*thumb2_movdi_vfp): Delete.
11108         (*arm_movdi_vfp_cortexa8): Delete.
11109         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11110         (*movdi_vfp_cortexa8): Likewise.
11111
11112 2011-06-10  Richard Guenther  <rguenther@suse.de>
11113
11114         * stor-layout.c (initialize_sizetypes): Give names to all
11115         sizetype kinds.
11116
11117 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
11118
11119         PR tree-optimization/49318
11120         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11121         irrelevant pattern statements.
11122
11123 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11124
11125         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11126
11127         PR bootstrap/49354
11128         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11129         to last assignment.
11130
11131 2011-06-09  Jan Hubicka  <jh@suse.cz>
11132
11133         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11134         do not recompute reachable flag.
11135         (cgraph_finalize_function, cgraph_analyze_functions): Set
11136         redefined_extern_inline here.
11137
11138 2011-06-09  Jan Hubicka  <jh@suse.cz>
11139
11140         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11141         (cgraph_only_called_directly_p): ... this one; bring offline.
11142         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11143         varpool_used_from_object_file_p): Drop names from the declaratoin.
11144         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11145         collect_callers_of_node): New.
11146         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11147         (cgraph_edge_recursive_p): Use cgraph_function_node.
11148         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11149         (cgraph_node_cannot_be_local_p_1): Break out from ...
11150         (cgraph_node_can_be_local_p): ... here; walk aliases.
11151         (cgraph_for_node_thunks_and_aliases): New function.
11152         (cgraph_for_node_and_aliases): New function.
11153         (cgraph_make_node_local_1): Break out from ...
11154         (cgraph_make_node_local) ... here; use
11155         cgraph_for_node_thunks_and_aliases.
11156         (cgraph_set_nothrow_flag_1): Break out from ...
11157         (cgraph_set_nothrow_flag) ... here;
11158         use cgraph_for_node_thunks_and_aliases.
11159         (cgraph_set_const_flag_1): Break out from ...
11160         (cgraph_set_const_flag) ... here;
11161         use cgraph_for_node_thunks_and_aliases.
11162         (cgraph_set_pure_flag_1): Break out from ...
11163         (cgraph_set_pure_flag) ... here;
11164         use cgraph_for_node_thunks_and_aliases.
11165         (cgraph_propagate_frequency_1): Break out from ...
11166         (cgraph_propagate_frequency) ... here; use
11167         cgraph_for_node_thunks_and_aliases.
11168         (cgraph_used_from_object_file_p): Do not care about aliases.
11169         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11170         New functions.
11171         (collect_callers_of_node_1, collect_callers_of_node): New functions.
11172
11173 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11174
11175         PR rtl-optimization/49154
11176         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11177         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11178         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11179         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11180         * config/cris/cris.h (cris_register_move_cost): Remove
11181         !TARGET_V32 code.  Tweak comments.
11182
11183 2011-06-09  Jan Hubicka  <jh@suse.cz>
11184
11185         * cgraphbuild.c (record_eh_tables): Mark personality function as having
11186         address taken.
11187
11188 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11189
11190         PR rtl-optimization/49154
11191         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11192         is a matching slot in the hashtable, assign it to classes_ptr.
11193
11194         PR rtl-optimization/49154
11195         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11196         register classes.
11197         * doc/tm.texi: Regenerate.
11198
11199 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11200
11201         PR target/49307
11202         * config/sh/sh.md (UNSPEC_CHKADD): New.
11203         (chk_guard_add): New define_insn_and_split.
11204         (symGOT_load): Use chk_guard_add instead of blockage.
11205
11206 2011-06-09  Kai Tietz  <ktietz@redhat.com>
11207
11208         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11209
11210 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11211
11212         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11213
11214 2011-06-09  Wei Guozhi  <carrot@google.com>
11215
11216         PR target/46975
11217         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11218         (peephole2 for conditional move): Generate 16 bit instructions.
11219
11220 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
11221
11222         * config/i386/i386.md (*movdi_internal_rex64): Merge
11223         alternatives 6 and 8.
11224
11225 2011-06-09  David Li  <davidxl@google.com>
11226
11227         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11228         * passes.c (passr_eq): New function.
11229         (create_pass_tab): New function.
11230         (pass_traverse): New function.
11231         (dump_one_pass): New function.
11232         (dump_pass_list): New function.
11233         (dump_passes): New function.
11234
11235 2011-06-09  David Li  <davidxl@google.com>
11236
11237         * tree-complex.c (tree_lower_complex): Gate cleanup.
11238         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11239         (execute_optimize_stdarg): Ditto.
11240         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11241         (execute_cleanup_eh_1): Ditto.
11242         (execute_cleanup_eh): Ditto.
11243         * gcse.c (gate_rtl_pre): Ditto.
11244         (execute_rtl_pre): Ditto.
11245         * except.c (finish_eh_generation): Ditto.
11246         (convert_to_eh_region_ranges): Ditto.
11247         * cprop.c (one_cprop_pass): Ditto.
11248
11249 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11250
11251         PR target/48673
11252         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11253         in all basic blocks.
11254
11255 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11256
11257         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11258         (HAVE_ENABLE_EXECUTE_STACK): Define.
11259         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11260         (HAVE_ENABLE_EXECUTE_STACK): Define.
11261         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11262         (HAVE_ENABLE_EXECUTE_STACK): Define.
11263         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11264         (ENABLE_EXECUTE_STACK): Remove.
11265         (HAVE_ENABLE_EXECUTE_STACK): Define.
11266         [IN_LIBGCC2]: Don't include <windows.h>.
11267         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11268         (HAVE_ENABLE_EXECUTE_STACK): Define.
11269         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11270         (HAVE_ENABLE_EXECUTE_STACK): Define.
11271         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11272         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11273         (HAVE_ENABLE_EXECUTE_STACK): Define.
11274         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11275         (HAVE_ENABLE_EXECUTE_STACK): Define.
11276         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11277         (HAVE_ENABLE_EXECUTE_STACK): Define.
11278         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11279         (HAVE_ENABLE_EXECUTE_STACK): Define.
11280         * config/alpha/alpha.c (alpha_trampoline_init): Test
11281         HAVE_ENABLE_EXECUTE_STACK.
11282         * config/i386/i386.c (ix86_trampoline_init): Likewise.
11283         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11284         (sparc64_initialize_trampoline): Likewise.
11285         * libgcc2.c [L_enable_execute_stack]: Remove.
11286         * system.h (ENABLE_EXECUTE_STACK): Poison.
11287         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11288         * doc/tm.texi: Regenerate.
11289         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11290
11291 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
11292
11293         PR middle-end/49308
11294         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11295         variable.  After resetting and rescanning insn continue with previous
11296         statement.
11297
11298 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11299
11300         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11301         (gcc_cv_ld_hidden): Likewise.
11302         * configure: Regenerate.
11303         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11304         (ix86_stack_protect_fail): Mark unused.
11305         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11306         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11307         [TARGET_MACHO]: Don't define.
11308         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11309         (TARGET_STACK_PROTECT_FAIL): Likewise.
11310         (rs6000_stack_protect_fail): Mark unused.
11311         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11312         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
11313
11314 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11315
11316         * varasm.c (get_section): Print location of other conflict
11317         for section conflicts.
11318
11319 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11320
11321         * config/i386/driver-i386.c (host_detect_local_cpu):
11322         Add model 0x2d Intel CPU.
11323
11324 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11325
11326         * reginfo.c (global_regs_decl): Add.
11327         (globalize_reg): Add decl parameter. Compute location.  Pass location
11328         to warnings and add inform. Store decl in global_regs_decl.
11329         * rtl.h (globalize_reg): Update prototype.
11330         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11331
11332 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
11333
11334         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11335
11336 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11337
11338         PR target/49305
11339         * config/sh/predicates.md (general_movsrc_operand): Check
11340         mode for memory with indexed address for QI and HImode.
11341         (general_movdst_operand): Likewise.
11342
11343 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11344
11345         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11346
11347 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
11348
11349         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11350         (num_ssa_operands): Likewise.
11351         (op_iter_init_phiuse): Forward-declare.
11352         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11353
11354 2011-06-08  Nick Clifton  <nickc@redhat.com>
11355
11356         * doc/invoke.texi (ARM Options): Update description of
11357         -mthumb-interwork.
11358
11359 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11360
11361         * config/i386/driver-i386.c (host_detect_local_cpu): Support
11362         unknown Intel family 0x6 CPUs.
11363
11364 2011-06-08  Martin Jambor  <mjambor@suse.cz>
11365
11366         * tree-sra.c (mark_rw_status): Removed.
11367         (analyze_access_subtree): New parameter parent instead of
11368         mark_read and mark_write, propagate from that.
11369
11370 2011-06-08  Julian Brown  <julian@codesourcery.com>
11371
11372         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11373         for double-precision helper functions in hard-float mode if only
11374         single-precision arithmetic is supported in hardware.
11375
11376 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
11377
11378         PR rtl-optimization/49303
11379         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
11380         code_motion_path_driver returned 0 or 1.
11381         (sel_region_finish): Clear h_d_i_d.
11382
11383 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11384
11385         * config/sh/sh.c (prepare_move_operands): Set pic register
11386         appropriately for global and local dynamic tls models even
11387         if flag_pic is unset.
11388
11389 2011-06-07  Jason Merrill  <jason@redhat.com>
11390
11391         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11392
11393 2011-06-07  Xinliang David Li  <davidxl@google.com>
11394         * passes.c (enable_disable_pass): Handle assembler name.
11395         (is_pass_explicitly_enabled_or_disabled): Ditto.
11396
11397 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11398
11399         PR tree-optimization/48497
11400         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11401
11402 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11403
11404         PR tree-optimization/46728
11405         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11406         to use gimple_val_nonnegative_real_p.
11407         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11408         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11409
11410 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
11411
11412         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11413
11414 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
11415
11416         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11417         constant vectors.
11418
11419 2011-06-07  Richard Guenther  <rguenther@suse.de>
11420
11421         * stor-layout.c (initialize_sizetypes): Initialize all
11422         sizetypes based on target definitions.
11423         (set_sizetype): Remove.
11424         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11425         * tree.h (set_sizetype): Remove.
11426
11427 2011-06-07  Nick Clifton  <nickc@redhat.com>
11428
11429         * config.gcc: Unify V850 architecture options and add support for
11430         newer V850 architectures.
11431         * config/v850/t-v850e: Delete.
11432
11433 2011-06-07  Richard Guenther  <rguenther@suse.de>
11434
11435         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11436         Call set_sizetype from here.
11437
11438 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
11439
11440         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11441         (*maddhisi4tb, *maddhisi4tt): New define_insns.
11442
11443 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
11444             Andrew Stubbs  <ams@codesourcery.com>
11445
11446         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11447         multiplies.
11448         * doc/md.texi (Canonicalization of Instructions): Document widening
11449         multiply canonicalization.
11450
11451 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
11452
11453         PR gcov-profile/49299
11454         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11455
11456 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
11457
11458         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11459         a pointer.
11460         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11461         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11462         vect_recog_pow_pattern): Likewise.
11463         (vect_pattern_recog_1): Remove declaration.
11464         (widened_name_p): Remove declaration.  Add new argument to specify
11465         whether to check that both types are either signed or unsigned.
11466         (vect_recog_widen_mult_pattern): Update documentation.  Handle
11467         unsigned patterns and multiplication by constants.
11468         (vect_pattern_recog_1): Update vect_recog_func references.  Use
11469         statement information from the statement returned from pattern
11470         detection functions.
11471         (vect_pattern_recog): Update vect_recog_func reference.
11472         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11473         multiplication by a constant use the type of the other operand.
11474
11475 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
11476
11477         PR rtl-optimization/49145
11478         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11479
11480 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
11481
11482         PR debug/49262
11483         * dwarf2out.c (native_encode_initializer): Decrement count in each
11484         iteration.
11485
11486         PR debug/49294
11487         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11488         non-MODE_INT modes.
11489
11490         PR c++/49264
11491         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11492         if stmt folded into nothing.
11493         * tree-inline.c (fold_marked_statements): If a builtin at the end of
11494         a bb folded into nothing, just update cgraph edges and move to next bb.
11495         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11496         to be NULL.  Don't compute count and frequency if new_call is NULL.
11497
11498 2011-06-04  Diego Novillo  <dnovillo@google.com>
11499
11500         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11501         (cgraph.o): Likewise.
11502         (cgraphunit.o): Likewise.
11503         * cgraphunit.c: Include lto-streamer.h
11504         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11505         if LTO is enabled.
11506         * lto-streamer-in.c (unpack_value_fields): Call
11507         streamer_hooks.unpack_value_fields if set.
11508         (lto_materialize_tree): For unhandled nodes, first try to
11509         call lto_streamer_hooks.alloc_tree, if it exists.
11510         (lto_input_ts_decl_common_tree_pointers): Move reading of
11511         DECL_INITIAL to lto_streamer_read_tree.
11512         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11513         (lto_streamer_read_tree): New.
11514         (lto_reader_init): Rename from lto_init_reader.
11515         Move initialization code to lto/lto.c.
11516         * lto-streamer-out.c (pack_value_fields): Call
11517         streamer_hooks.pack_value_fields if set.
11518         (lto_output_tree_ref): For tree nodes that are not normally indexable,
11519         call streamer_hooks.indexable_with_decls_p before giving up.
11520         (lto_output_ts_decl_common_tree_pointers): Move handling
11521         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11522         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11523         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
11524         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11525         (lto_streamer_write_tree): New.
11526         (lto_output): Call lto_streamer_init directly.
11527         (lto_writer_init): Remove.
11528         * lto-streamer.c (streamer_hooks): New.
11529         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11530         instead of lto_preload_common_nodes.
11531         (lto_is_streamable): Move from lto-streamer.h
11532         (lto_streamer_hooks_init): New.
11533         (streamer_hooks): New.
11534         (streamer_hooks_init): New.
11535         * lto-streamer.h (struct output_block): Forward declare.
11536         (struct lto_input_block): Likewise.
11537         (struct data_in): Likewise.
11538         (struct bitpack_d): Likewise.
11539         (struct streamer_hooks): Declare.
11540         (streamer_hooks): Declare.
11541         (lto_streamer_hooks_init): Declare.
11542         (lto_streamer_write_tree): Declare.
11543         (lto_streamer_read_tree): Declare.
11544         (streamer_hooks_init): Declare.
11545         (lto_is_streamable): Move to lto-streamer.c
11546
11547 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11548
11549         * longlong.h (smul_ppmm): The resulting register pair contains the
11550         higher order word first.
11551
11552 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11553
11554         PR tree-optimization/46728
11555         * builtins.c (powi_table): Remove.
11556         (powi_lookup_cost): Remove.
11557         (powi_cost): Remove.
11558         (expand_powi_1): Remove.
11559         (expand_powi): Remove.
11560         (expand_builtin_pow_root): Remove.
11561         (expand_builtin_pow): Remove.
11562         (expand_builtin_powi): Eliminate handling of constant exponent.
11563         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11564
11565 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11566
11567         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11568
11569 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11570
11571         * dce.c (reset_unmarked_insns_debug_uses): New.
11572         (delete_unmarked_insns): Skip debug insns.
11573         (prescan_insns_for_dce): Likewise.
11574         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11575         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11576         active reg can be found.
11577         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
11578         (convert_regs_1): Use it.
11579
11580 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11581
11582         * tree-pretty-print.c (dump_function_header): Add flags.
11583         Don't dump decl_uid with nouid.
11584         * tree-pretty-print.h (dump_function_header): Adjust.
11585         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11586         * passes.c (pass_init_dump_file): Pass dump_flags on.
11587         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11588
11589 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11590
11591         PR bootstrap/49270
11592         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11593
11594 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
11595
11596         PR tree-optimization/49243
11597         * calls.c (setjmp_call_p): Also check if fndecl has the
11598         returns_twice attribute.
11599
11600 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11601
11602         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11603         -ffast-math etc.
11604
11605 2011-06-06  Richard Henderson  <rth@redhat.com>
11606             Georg-Johann Lay  <avr@gjlay.de>
11607
11608         PR target/42210
11609         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11610         New predicates.
11611         * config/avr/avr.md ("insv"): New insn expander.
11612         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11613         "*insv.not.io", "*insv.reg"): New insns.
11614
11615 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
11616
11617         PR target/49285
11618         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11619         to nonimmediate_operand from memory_operand for the operand that is to
11620         be forced to memory by the expander.  Lose the constraints.
11621
11622 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11623
11624         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11625         EH return when delayed branches are disabled.
11626
11627 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
11628
11629         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11630         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
11631         calculation.
11632         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11633         Simplify MODE_V1DF and MODE_V2SF handling.
11634         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11635         Simplify MODE_SF handling.
11636
11637 2011-06-04  Jan Hubicka  <jh@suse.cz>
11638
11639         PR tree-optimization/48893
11640         PR tree-optimization/49091
11641         PR tree-optimization/49179
11642         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11643         Bounds check.
11644
11645 2011-06-04  Jan Hubicka  <jh@suse.cz>
11646
11647         PR lto/48954
11648         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11649         bitmaps.
11650
11651 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11652
11653         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11654
11655 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11656
11657         PR target/49281
11658         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11659         to be strictly smaller than 1 << shiftcount.
11660
11661 2011-06-04  Jan Hubicka  <jh@suse.cz>
11662
11663         PR tree-optimize/48929
11664         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11665         of empty predicate.
11666
11667 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11668
11669         PR debug/48333
11670         * calls.c (emit_call_1): Prefer the __builtin declaration of
11671         builtin functions.
11672
11673 2011-06-03   Diego Novillo  <dnovillo@google.com>
11674
11675         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11676         (lto_input_tree_pointers): Likewise.
11677         * lto-streamer-out.c (pack_value_fields): Likewise.
11678         (lto_output_tree_pointers): Likewise.
11679         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11680         and OPTIMIZATION_NODE.
11681
11682 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11683
11684         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11685         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11686         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11687         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11688         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11689         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11690         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11691         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11692         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11693         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11694         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11695         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11696         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11697         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11698         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11699         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11700         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11701         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11702         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11703         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11704         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11705         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11706         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11707         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11708         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11709         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11710         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11711         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11712         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11713         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11714         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11715         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11716         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11717         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11718         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11719         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11720         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11721         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11722         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11723         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11724         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11725         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11726         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11727         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11728         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11729         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11730         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11731         * system.h (MD_UNWIND_SUPPORT): Poison.
11732         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11733         * doc/tm.texi: Regenerate.
11734         * unwind-dw2.c: Include md-unwind-support.h instead of
11735         MD_UNWIND_SUPPORT.
11736         * config/ia64/unwind-ia64.c: Likewise.
11737         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11738
11739 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11740
11741         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11742
11743 2011-06-03  Richard Henderson  <rth@redhat.com>
11744             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11745
11746         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11747         (sigill_hdlr): Correct insn, insn size.
11748         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11749
11750 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11751
11752         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11753         t-slibgcc-dummy.
11754         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11755         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11756         * config/mips/t-iris: Remove.
11757         * config/mips/t-irix6: New file.
11758         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11759
11760 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11761
11762         * Makefile.in (LIB2ADDEHDEP): Remove.
11763         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11764         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11765         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11766         * config/t-darwin (LIB2ADDEHDEP): Remove.
11767         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11768         * config/t-linux (LIB2ADDEHDEP): Remove.
11769
11770 2011-06-03  Diego Novillo  <dnovillo@google.com>
11771
11772         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11773         (lto_register_var_decl_in_symtab): Likewise.
11774         (lto_register_function_decl_in_symtab): Likewise.
11775         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11776         logic to uniquify_nodes.
11777
11778 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11779
11780         * config/alpha/t-osf5: Remove.
11781         * config/alpha/t-osf-pthread: Remove.
11782         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11783         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11784
11785 2011-06-03  Julian Brown  <julian@codesourcery.com>
11786
11787         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11788         (strongarm1110): Use strongarm tuning.
11789         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11790         * config/arm/arm.c (arm_strongarm_tune): New.
11791         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11792         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11793         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11794         setting, using previous defaults or 1 for Cortex-A5.
11795         (arm_option_override): Set max_insns_skipped from current tuning.
11796
11797 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11798
11799         * doc/install.texi (Options specification): Document --with-specs.
11800
11801 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11802
11803         * config/arm/neon.md (orndi3_neon): Actually split it.
11804
11805 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11806
11807         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11808         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11809
11810 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11811
11812         PR debug/47590
11813         * target.def (delay_sched2, delay_vartrack): New.
11814         * doc/tm.texi.in: Update.
11815         * doc/tm.texi: Rebuild.
11816         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11817         * var-tracking.c (gate_handle_var_tracking): Likewise.
11818         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11819         (bfin_flag_var_tracking): Drop.
11820         (output_file_start): Don't save and override flag_var_tracking.
11821         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11822         (bfin_reorg): Test original variables.
11823         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11824         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11825         (ia64_flag_var_tracking): Drop.
11826         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11827         (ia64_file_start): Don't save and override flag_var_tracking.
11828         (ia64_override_options_after_change): Ditto
11829         flag_schedule_insns_after_reload.
11830         (ia64_reorg): Test original variables.
11831         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11832         (picochip_flag_var_tracking): Drop.
11833         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11834         (picochip_option_override): Don't save and override
11835         flag_schedule_insns_after_reload.
11836         (picochip_asm_file_start): Ditto flag_var_tracking.
11837         (picochip_reorg): Test original variables.
11838         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11839         (TARGET_DELAY_VARTRACK): Define.
11840         (spu_var_tracking): New.
11841         (spu_machine_dependent_reorg): Call it.
11842         (asm_file_start): Don't save and override flag_var_tracking.
11843
11844 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11845
11846         PR target/49163
11847         * config/sh/predicates.md (general_movsrc_operand): Return 0
11848         for memory and memory subreg of which address is an invalid
11849         indexed address for QI and HImode.
11850         (general_movdst_operand): Likewise.
11851
11852 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11853
11854         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11855         edges only, when there is a non-local label in the function.
11856         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11857
11858 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11859
11860         * config/i386/constraints.md (Y3): New register constraint.
11861         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11862         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11863         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11864         *sse2_interleave_lowv2df.
11865
11866 2011-06-02  Julian Brown  <julian@codesourcery.com>
11867
11868         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11869         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11870         (arm_cortex_a5_tune): New.
11871
11872 2011-06-02  Julian Brown  <julian@codesourcery.com>
11873
11874         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11875         * config/arm/arm.c (arm_default_branch_cost): New.
11876         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11877         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11878         (arm_fa726_tune): Set branch_cost field using
11879         arm_default_branch_cost.
11880         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11881         current_tune structure.
11882         * dojump.c (tm_p.h): Include file.
11883
11884 2011-06-02  Julian Brown  <julian@codesourcery.com>
11885
11886         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11887         tuning.
11888         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11889         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11890         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11891         field.
11892         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11893         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11894         (arm_fa726te_tune): Add prefer_constant_pool setting.
11895         (arm_v6t2_tune, arm_cortex_tune): New.
11896         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11897         prefer_constant_pool setting.
11898
11899 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11900
11901         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11902         switch statement.
11903         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11904         (*movdf_internal) <case 6,7,8>: Ditto.
11905
11906         * config/i386/constraints.md (Y4): New register constraint.
11907         * config/i386/sse.md (vec_set<mode>_0): Merge with
11908         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11909         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11910         *vec_extractv2di_1_sse.
11911         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11912         and *vec_concatv2di_rex64_sse.
11913
11914 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11915
11916         PR target/48807
11917         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11918         of cgraph_local_info for null before attempting to use it.
11919
11920 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11921
11922         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11923         (current_function_dynamic_alloc_count): Delete.
11924         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11925         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11926         (expand_builtin_update_setjmp_buf): Remove dead code.
11927         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11928         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11929         support.
11930         * function.c (instantiate_virtual_regs): Likewise.
11931         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11932         for a block with a single abnormal incoming edge.
11933         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11934         (SETJMP_VIA_SAVE_AREA): Delete.
11935         * config/sparc/sparc-protos.h (load_got_register): Declare.
11936         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11937         (load_got_register): Make global.
11938         (sparc_frame_pointer_required): Add 'static'.
11939         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11940         (sparc_builtin_setjmp_frame_value): New function.
11941         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11942         (save_stack_nonlocal): New expander.
11943         (restore_stack_nonlocal): Likewise.
11944         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11945         (nonlocal_goto_internal): New insn.
11946         (goto_handler_and_restore): Delete.
11947         (builtin_setjmp_setup): Likewise.
11948         (do_builtin_setjmp_setup): Likewise.
11949         (setjmp): Likewise.
11950         (builtin_setjmp_receiver): New expander.
11951
11952 2011-06-01  David Li  <davidxl@google.com>
11953
11954         PR middle-end/49261
11955         * tree-pretty-print.c (dump_function_header): Format cleanup.
11956
11957 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11958
11959         PR target/49238
11960         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11961         needed when original operands are used for msw_skip comparison.
11962
11963 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11964
11965         PR debug/49250
11966         * var-tracking.c (add_uses, add_stores): Don't call
11967         cselib_subst_to_values on ENTRY_VALUE.
11968
11969 2011-06-01  Diego Novillo  <dnovillo@google.com>
11970
11971         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11972         output_record_start with LTO_null instead of output_zero.
11973         (lto_output_ts_binfo_tree_pointers): Likewise.
11974         (lto_output_tree): Likewise.
11975         (output_eh_try_list): Likewise.
11976         (output_eh_region): Likewise.
11977         (output_eh_lp): Likewise.
11978         (output_eh_regions): Likewise.
11979         (output_bb): Likewise.
11980         (output_function): Likewise.
11981         (output_unreferenced_globals): Likewise.
11982         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11983         instead of NUM_TREE_CODES.
11984         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11985         (lto_output_int_in_range): Change << to >> when shifting VAL.
11986
11987 2011-06-01  Diego Novillo  <dnovillo@google.com>
11988
11989         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11990         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11991
11992 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11993
11994         PR target/45074
11995         * optabs.h (valid_multiword_target_p): Declare.
11996         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11997         doing multi-word operations.
11998         * optabs.c (expand_binop): Likewise.
11999         (expand_doubleword_bswap): Likewise.
12000         (expand_absneg_bit): Likewise.
12001         (expand_unop): Likewise.
12002         (expand_copysign_bit): Likewise.
12003         (multiword_target_p): New function.
12004
12005 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12006
12007         PR rtl-optimization/48830
12008         PR rtl-optimization/48808
12009         PR rtl-optimization/48792
12010         * reload.c (push_reload): Check contains_reg_of_mode.
12011         * reload1.c (strip_paradoxical_subreg): New function.
12012         (gen_reload_chain_without_interm_reg_p): Use it to handle
12013         paradoxical subregs.
12014         (emit_output_reload_insns, gen_reload): Likewise.
12015
12016 2011-06-01  David Li  <davidxl@google.com>
12017
12018         * predict.c : Change pass name
12019         * ipa.c: Ditto.
12020         * dce.c: Ditto.
12021         * tree-profile.c: Ditto.
12022         * except.c: Ditto.
12023
12024 2011-06-01  David Li  <davidxl@google.com>
12025
12026         * tree-pretty-print.c (dump_function_header): New function.
12027         * final.c (rest_of_clean_state): Use header dumper.
12028         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12029         * passes.c (pass_init_dump_file): Use header dumper.
12030
12031 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12032
12033         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12034         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12035         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12036         New functions.
12037         (mem_loc_descriptor): Use them.
12038
12039         * var-tracking.c (create_entry_value): New function.
12040         (vt_add_function_parameter): Use it.
12041
12042 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12043
12044         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12045         Include <signal.h>, <ucontext.h>.
12046         (sigill_caught): Define.
12047         (sigill_hdlr): New function.
12048         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12049         insns can be executed.
12050         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12051         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12052
12053 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12054
12055         * config/t-slibgcc-darwin: Move to ...
12056         * config/t-slibgcc-dummy: ... this.  Clarify comments.
12057         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12058         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12059         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12060         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
12061         Remove i386/t-crtstuff from tmake_file.
12062         (i[34567]86-*-solaris2*): Remove t-svr4,
12063         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12064         t-slibgcc-dummy.
12065         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12066         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12067         sparc/t-crtfm from tmake_file.
12068         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12069         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12070         Remove extra_parts.
12071         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12072         * config/i386/t-nwld (SHLIB_LINK): Remove.
12073         * config/i386/t-rtems-i386: Rename to ...
12074         * config/i386/t-rtems: ... this.
12075         ($(T)crti.o, $(T)crtn.o): Remove.
12076         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12077         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12078         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12079         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12080         EXTRA_MULTILIB_PARTS): Remove.
12081         * config/sparc/t-sol2-64: Likewise.
12082         * config/sparc/t-sol2: Remove.
12083         * config/sparc/t-crtin: Remove.
12084         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12085         * config/i386/gmon-sol2.c: Remove.
12086         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12087         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12088         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12089         * config/i386/sol2-gc1.asm: Remove.
12090         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12091         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12092         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12093         * config/t-slibgcc-sld: Remove.
12094
12095 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12096
12097         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12098         base_type_for_mode with op_mode instead of mode.
12099
12100 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
12101
12102         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
12103         Cortex-A15.
12104         * config/arm/arm-tune.md: Regenerate.
12105         * config/arm/arm-tables.opt: Regenerate.
12106         * config/arm/arm.c (FL_DIV): Rename...
12107         (FL_THUMB_DIV): ... to this.
12108         (FL_ARM_DIV): Define.
12109         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12110         (arm_arch_hwdiv): Remove.
12111         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12112         (arm_issue_rate): Add cortexr5.
12113         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12114         __ARM_ARCH_EXT_IDIV__.
12115         (TARGET_IDIV): Define.
12116         (arm_arch_hwdiv): Remove.
12117         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12118         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12119         (divsi3, udivsi3): New patterns.
12120         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12121         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12122
12123 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12124
12125         * ipa-utils.c (ipa_dfs_info): New field scc_no.
12126         * ipa-utils.c (searchc): Set scc_no.
12127
12128 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12129
12130         * ipa-utils.c (searchc_env): New field allow_overwritable.
12131         (searchc): do not ignore edges to overwritable nodes if indicated
12132         by env->allow_overwritable.
12133         (ipa_reduced_postorder): Set env.allow_overwritable.
12134
12135 2011-06-01  Richard Guenther  <rguenther@suse.de>
12136
12137         * tree.c (free_lang_data): Do not reset boolean_type_node nor
12138         char_type_node.
12139         * lto-streamer.c (lto_record_common_node): Take node pointer,
12140         do not register types.
12141         (lto_preload_common_nodes): Explicitly skip preloading nodes
12142         that differ between frontends.
12143
12144 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12145
12146         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12147         NON_FLOAT_REGS.
12148
12149 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12150
12151         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12152         parameter value for dump. Dump cost on outermost call only.
12153         (rs6000_memory_move_cost): Dump cost on outermost call only.
12154
12155 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12156
12157         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12158         DW_OP_GNU_convert ops.
12159
12160         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12161         cselib_preserve_constants.
12162         (cselib_lookup_1): If cselib_preserve_constants,
12163         a new VALUE is being created for REG and there is a VALUE for the
12164         same register in wider mode, add another loc with lowpart SUBREG of
12165         the wider VALUE.
12166         (cselib_subst_to_values): Handle ENTRY_VALUE.
12167         * var-tracking.c  (replace_expr_with_values): Return NULL for
12168         ENTRY_VALUE too.
12169         * dwarf2out.c (convert_descriptor_to_signed): New function.
12170         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12171         instead of two shifts.
12172         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12173         the right mode if needed.
12174         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12175         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12176         convert_descriptor_to_signed.
12177         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12178         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12179
12180         PR target/48688
12181         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12182
12183 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12184
12185         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12186         of X87MODEI12 and SWI48x instead of SSEMODEI24.
12187         (SWI248x): New mode iterator, rename from X87MODEI.
12188         (X87MODEI): Remove mode iterator.
12189         (X87MODEI12): Ditto.
12190         (SSEMODEI24): Ditto.
12191
12192 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12193
12194         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12195         * doc/invoke.texi: Document max-vartrack-expr-depth.
12196         * var-tracking.c (EXPR_DEPTH): New.
12197         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12198
12199 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12200
12201         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12202         * config/i386/sse.md: Add n to negated FMA pattern names.
12203
12204 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12205
12206         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12207
12208 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12209
12210         * gengtype-state.c (read_state_params_structs): Initialize previous.
12211
12212 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12213
12214         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12215         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12216
12217 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12218
12219         * config/i386/i386.md (*movtf_internal): Avoid allocating general
12220         registers.  Penalize F*r->o alternative to prevent partial memory
12221         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
12222         CONST_DOUBLE immediates when optimizing function for size.  Do not move
12223         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12224         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12225         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12226         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12227         alternatives.
12228         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12229
12230         (fp_register_operand splitters): Use fp_register_operand
12231         constraint.  Do not use FP_REG_P in insn condition.
12232         (any_fp_register_operand splitters): Use any_fp_register_operand
12233         constraint.  Do not use ANY_FP_REG_P in insn condition.
12234
12235 2011-05-31  Jan Hubicka  <jh@suse.cz>
12236
12237         * cgraph.h (cgraph_inline_failed_t): Give enum a name
12238         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12239         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12240         (lto_output_edge): Use output_enum and var_len_unsigned.
12241         (lto_output_varpool_node): Likewise.
12242         (input_overwrite_node): Do not take resolution parameter;
12243         extract it from a bitpack.
12244         (input_node): Do not read resolution; use input_enum and
12245         var_len_unsigned.
12246         (input_varpool_node): Likewise.
12247         (input_edge): Likewise.
12248         (input_cgraph_1): Likewise.
12249
12250 2011-05-31  Richard Guenther  <rguenther@suse.de>
12251
12252         * gimple.c (gimple_register_canonical_type): Do not register
12253         any types via gimple_register_type.
12254
12255 2011-05-31  Jan Hubicka  <jh@suse.cz>
12256
12257         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12258         of thunks.
12259
12260 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12261
12262         PR rtl-optimization/49235
12263         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12264         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12265
12266 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
12267
12268         PR tree-optimization/49093
12269         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12270         data references.
12271
12272 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
12273
12274         PR debug/49047
12275         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12276         for concrete functions containing the code of cloned functions.
12277
12278 2011-05-31  Richard Guenther  <rguenther@suse.de>
12279
12280         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12281         to ...
12282         (forward_propagate_into_comparison_1): ... this.
12283         (forward_propagate_comparison): Rename to ...
12284         (forward_propagate_into_comparison): ... this.  Split out
12285         real forward propagation code to ...
12286         (forward_propagate_comparison): ... this.
12287         (forward_propagate_into_gimple_cond): Remove looping.
12288         (forward_propagate_into_cond): Likewise.
12289         (simplify_not_neg_expr): Return whether we have done something.
12290         (simplify_gimple_switch): Likewise.
12291         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12292         (ssa_forward_propagate_and_combine): ... this.  Re-structure
12293         to do a forward forward-propagation walk on BBs and a backward
12294         stmt combining walk on BBs.  Consistently re-scan changed statements.
12295         (pass_forwprop): Adjust.
12296
12297 2011-05-30  Ian Lance Taylor  <iant@google.com>
12298
12299         * godump.c (go_format_type): Correct length of name added to
12300         obstack for anonymous field.
12301
12302 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12303
12304         PR target/49186
12305         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12306         part of the second operand is 0.
12307
12308 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
12309
12310         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12311         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
12312         to memory for !TARGET_MEMORY_MISMATCH_STALL.
12313         (*movdf_internal_rex64): Do not penalize F->r alternative.
12314         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12315         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
12316         when optimizing function for size.  Do not move CONST_DOUBLEs
12317         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12318         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
12319         SUBREGs.  Do not check for MEM_P operands in the insn condition,
12320         check for ANY_FP_REGNO_P instead.
12321         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12322         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12323         function for speed.
12324         * config/i386/i386.c (ix86_option_override_internal): Do not
12325         set TARGET_INTEGER_DFMODE_MOVES here.
12326
12327 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12328
12329         PR target/49168
12330         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12331
12332 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12333
12334         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12335         DW_TAG_rvalue_reference_type even for
12336         -gdwarf-4 -fno-debug-types-section.
12337
12338 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12339
12340         PR tree-optimization/46728
12341         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12342         (build_and_insert_binop): New.
12343         (gimple_expand_builtin_pow): Reorder args for
12344         build_and_insert_call; use build_and_insert_binop; add more
12345         optimizations for fractional exponents.
12346
12347 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
12348
12349         PR bootstrap/49190
12350
12351         Revert:
12352         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12353
12354         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12355         tree_common.
12356         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12357         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12358         TS_BASE instead of TS_COMMON.
12359         * varasm.c (assemble_name): Remove assert.
12360
12361 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
12362
12363         * config.gcc: Keep obselete list sorted.
12364
12365 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12366             Eric Botcazou  <ebotcazou@adacore.com>
12367
12368         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12369         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12370         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12371         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12372         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12373
12374 2011-05-30  Richard Guenther  <rguenther@suse.de>
12375
12376         * gimple.c (gimple_types_compatible_p_1): Compare record
12377         and union type members properly.
12378
12379 2011-05-30  Richard Guenther  <rguenther@suse.de>
12380
12381         PR tree-optimization/49210
12382         * ipa-split.c (split_function): Care for the case where the call
12383         result is not trivially convertible to the result holding variable.
12384
12385 2011-05-30  Richard Guenther  <rguenther@suse.de>
12386
12387         PR tree-optimization/49218
12388         * tree-vrp.c (adjust_range_with_scev): Properly check whether
12389         overflow occured.
12390
12391 2011-05-30  Richard Guenther  <rguenther@suse.de>
12392
12393         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12394         New function split out from ...
12395         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12396         (forward_propagate_into_cond): Likewise.
12397         (forward_propagate_comparison): Also propagate into
12398         comparisons on assignment RHS.  Change return value to
12399         behave similar to forward_propagate_into_cond.
12400         (tree_ssa_forward_propagate_single_use_vars): Handle
12401         strict-overflow warnings properly for forward_propagate_comparison.
12402
12403 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12404
12405         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12406         from plugin linker.
12407         * configure: Regenerate.
12408
12409 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
12410
12411         PR tree-optimization/49199
12412         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12413         non-reduction operands are either defined in the loop or by induction.
12414
12415 2011-05-29  Xinliang David Li  <davidxl@google.com>
12416
12417         * opts-global.c (handle_common_deferred_options): Handle new options.
12418         * passes.c (register_one_dump_file): Call register_pass_name.
12419         (execute_one_pass): Check explicit enable/disable flag.
12420         (passr_hash): New function.
12421         (passr_eq): Ditto.
12422         (register_pass_name): Ditto.
12423         (get_pass_by_name): Ditto.
12424         (pass_hash): Ditto.
12425         (pass_eq): Ditto.
12426         (enable_pass): Ditto.
12427         (disable_pass): Ditto.
12428         (is_pass_explicitly_enabled_or_disabled): Ditto.
12429
12430 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
12431
12432         * config/i386/i386.md (*movoi_internal_avx): Use
12433         standard_sse_constant_opcode for alternative 0.
12434         (*movti_internal_sse): Ditto.
12435         (*movti_internal_rex64): Use standard_sse_constant_opcode for
12436         alternative 2.
12437         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12438         sselog1 type moves.
12439         (*movsi_internal): Ditto.
12440         (*movdi_internal): Ditto.  Add ssecvt type moves.
12441
12442 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12443
12444         PR target/48830
12445         * rtlanal.c (simplify_subreg_regno): Adjust comment.
12446
12447 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
12448
12449         PR rtl-optimization/49095
12450         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12451         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12452
12453 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12454
12455         PR target/43995
12456         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12457         recurse_p argument.  Only follow register copies if it is set,
12458         and prevent mips_find_pic_call_symbol from recursing.
12459         (mips_find_pic_call_symbol): Add a recurse_p argument.
12460         Pass it to mips_pic_call_symbol_from_set.
12461         (mips_annotate_pic_calls): Update accordingly.
12462
12463 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12464
12465         * emit-rtl.c (try_split): Use a loop to search for
12466         NOTE_INSN_CALL_ARG_LOCATIONs.
12467
12468 2011-05-29  Richard Guenther  <rguenther@suse.de>
12469
12470         PR tree-optimization/49217
12471         * ipa-pure-const.c (propagate_pure_const): Fix typos.
12472
12473 2011-05-28  Jan Hubicka  <jh@suse.cz>
12474
12475         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12476         length.
12477         (string_slot_free): Remove
12478         (create_output_block): Initialize obstack.
12479         (destroy_output_block): Free obstack.
12480         (lto_string_index): Add PERSISTENT parameter; do not duplicate
12481         the string unless it needs to be added into the hash.
12482         (lto_output_string_with_length): Add persistent attribute;
12483         handle NULL strings.
12484         (lto_output_string): Add PERSISTENT parameter.
12485         (output_string_cst, output_identifier): Simplify.
12486         (lto_output_location_bitpack): Update.
12487         (lto_output_builtin_tree): Update.
12488         * lto-streamer.h (struct output_block): Add obstack.
12489         (lto_output_string, lto_output_string_with_length): Remove
12490         declarations; functions are static now.
12491
12492 2011-05-28  Jan Hubicka  <jh@suse.cz>
12493
12494         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12495         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12496         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12497         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12498         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12499         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12500         unpack_ts_decl_with_vis_value_fields,
12501         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12502         lto_get_builtin_tree): Use enum and variable length i/o.
12503         * basic-block.h (profile_status_d): Add PROFILE_LAST.
12504         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12505         New functions.
12506         (bp_pack_enum, bp_unpack_enum): New macros.
12507
12508 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12509
12510         * genrecog.c: Remove redundant forward declarations.
12511
12512 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12513
12514         * config.gcc: Deprecate mips*-*-openbsd*.
12515
12516 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12517
12518         PR bootstrap/49195
12519         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12520         for match_op_dup.
12521
12522 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
12523
12524         PR middle-end/48981
12525         * gengtype.c (vec_prefix_type): New function.
12526         (note_def_vec): Use vec_prefix_type and change the length
12527         attribute to be based on the prefix.
12528         * vec.c: Include coretypes.h before vec.h.
12529         (struct vec_prefix): Remove.
12530         (vec_gc_p_reserve): Change the offsetof to sizeof.
12531         (vec_gc_p_reserve_exact): Likewise.
12532         (vec_heap_p_reserve): Likewise.
12533         (vec_heap_p_reserve_exact): Likewise.
12534         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12535         (vec_stack_p_reserve): Change the offsetof to sizeof.
12536         (vec_stack_p_reserve_exact): Likewise.
12537         * vec.h (struct vec_prefix): New struct definition.
12538         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12539         (VEC_T_GTY(T,B)): Likewise.
12540         (DEF_VEC_FUNC_P(T)): Use prefix field.
12541         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12542         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12543
12544 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12545
12546         PR tree-optimization/46728
12547         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12548         (powi_as_mults): Add gimple_set_location.
12549         (build_and_insert_call): New.
12550         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12551         0.5, 0.25, 0.75, 1./3., or 1./6.
12552
12553 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12554
12555         * doc/contrib.texi: Update copyright years.
12556         (Contributors): Add Zdenek Sojka.
12557
12558 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
12559
12560         * c-decl.c (c_push_function_context): Copy the current statement
12561         list stack.
12562         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12563         (finish_struct): Call building_stmt_list_p instead of checking
12564         cur_stmt_list.
12565         * c-parser.c (c_parser_postfix_expression): Likewise.
12566         * c-typeck.c (c_end_compound_stmt): Likewise.
12567         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12568         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12569         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12570         (free_stmt_list): Likewise.
12571         * tree.h (struct tree_statement_list): Include typed_tree instead
12572         of tree_common.
12573         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12574         as TS_TYPED instead of TS_COMMON.
12575
12576 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12577             Uros Bizjak  <ubizjak@gmail.com>
12578
12579         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12580         (HAVE_AS_IX86_TLSGDPTL): Define.
12581         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12582         (HAVE_AS_IX86_TLSLDMPLT): Define.
12583         * configure: Regenerate.
12584         * config.in: Regenerate.
12585         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12586         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12587         TARGET_SUN_TLS, use @tlsgdplt or @plt.
12588         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12589         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12590         @tlsldmplt or @plt.
12591         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12592
12593 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12594
12595         * sched-int.h (struct _haifa_deps_insn_data): New members cond
12596         and reverse_cond.
12597         (INSN_COND, INSN_REVERSE_COND): New macros.
12598         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12599         once.
12600         (sched_get_condition_with_rev): Cache the results, and look them up
12601         if possible.
12602         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12603         are clobbered by the current insn.
12604         * target.def (exposed_pipline): New sched data hook.
12605         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12606         * doc/tm.texi: Regenerate.
12607
12608 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12609
12610         PR tree-optimization/49170
12611         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
12612         sincos or cexp.
12613
12614 2011-05-27  Richard Guenther  <rguenther@suse.de>
12615
12616         PR middle-end/49189
12617         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12618         of comparisons.
12619
12620 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12621
12622         * haifa-sched.c (sched_scan_info): Remove.
12623         (schedule_block): Call sched_extend_luids rather than sched_init_luids
12624         with NULL args.
12625         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12626         Remove functions.
12627         (sched_scan): Remove.
12628         (sched_extend_luids): Renamed from luids_extend_insn and no longer
12629         static.  All callers changed.
12630         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12631         static.  All callers changed.
12632         (sched_init_luids): Remove all arguments except the first.  All
12633         callers changed.  Don't use sched_scan.
12634         (haifa_init_h_i_d): Likewise.
12635         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12636         manually rather than using sched_init_luids.  Likewise with
12637         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12638         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12639         rather than sched_init_luids with NULL args.
12640         * sel-sched-ir.c (new_insns): Remove variable.
12641         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12642         all arguments but the first two; all callers changed.
12643         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12644         rather than sched_init_luids.
12645         (sel_init_bbs): Remove second argument.  All callers changed.
12646         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12647         with NULL arguments.
12648         (create_insn_rtx_from_pattern): Likewise.
12649         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12650         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12651         (sched_init_insn_luid, sched_extend_luids): Declare.
12652         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12653         declarations.
12654
12655 2011-05-27  Richard Guenther  <rguenther@suse.de>
12656
12657         PR middle-end/49177
12658         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12659         A CMP B ? (T) true : (T) false for non-integral types T again.
12660
12661 2011-05-27  Jan Hubicka  <jh@suse.cz>
12662
12663         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12664         so 0 means NULL string.
12665         (lto_output_string_with_length): ... here.
12666         (lto_output_string, output_string_cst, output_identifier): Update
12667         handling of NULL strings.
12668         (lto_output_location_bitpack): New function.
12669         (lto_output_location): Use it.
12670         (lto_output_tree_ref): Use output_record_start.
12671         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12672         len values.
12673         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12674         values by 1.
12675         (input_string_internal): ... here;
12676         (input_string_cst, input_identifier, lto_input_string): Update handling
12677         of NULL strings.
12678         (lto_input_location_bitpack): New function
12679         (lto_input_location): Use it.
12680         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12681         values.
12682         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12683         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12684         (bp_pack_value): Sanity check the value range.
12685         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12686         New functions.
12687         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12688         New functions.
12689
12690 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12691
12692         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12693         call_arg_location instructions down the floor.
12694
12695 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12696
12697         PR rtl-optimization/49154
12698         * ira.c (setup_pressure_classes): Process class without sublcasses
12699         as a candidate for pressure classes.
12700
12701 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12702
12703         PR rtl-optimization/48575
12704         * genrecog.c (position_type): New enum.
12705         (position): New structure.
12706         (decision): Use position structure instead of a string.
12707         (root_pos, peep2_insn_pos_list): New variables.
12708         (next_position, compare_positions): New functions.
12709         (new_decision): Use position structures instead of strings.
12710         (maybe_both_true): Likewise.
12711         (change_state): Likewise.
12712         (write_tree): Likewise.
12713         (make_insn_sequence): Likewise.
12714
12715 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12716
12717         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12718         TS_BASE instead of TS_COMMON.
12719         (find_decls_types_r): Check for TS_TYPED structure before looking at
12720         TREE_TYPE.
12721         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12722         Add chain field.
12723         (BLOCK_CHAIN): Use new chain field.
12724
12725 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12726
12727         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12728         moves expensive on Power7 also.
12729
12730 2011-05-26  Richard Guenther  <rguenther@suse.de>
12731
12732         * fold-const.c (fold_unary_loc): Remove bogus code.
12733
12734 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12735
12736         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12737         tree_common.
12738         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12739         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12740         TS_BASE instead of TS_COMMON.
12741         * varasm.c (assemble_name): Remove assert.
12742
12743 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12744
12745         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12746         substituted first.
12747         * libgcc-std.ver: Delete file.
12748
12749 2011-05-26  Richard Guenther  <rguenther@suse.de>
12750
12751         PR tree-optimization/48702
12752         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12753         only when we know the base address is within bounds.
12754         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12755         assume the base address of TARGET_MEM_REFs is in bounds.
12756
12757 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12758
12759         PR target/49099
12760         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12761         declaration in TARGET_SOLARIS.
12762
12763 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12764
12765         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12766         The instruction is then expanded explicitly.
12767         (supported_compare): Callable instruction.
12768         (compare): Likewise.
12769
12770 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12771
12772         PR c++/49165
12773         * gimplify.c (shortcut_cond_r): Don't special case
12774         COND_EXPRs if they have void type on one of their arms.
12775
12776 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12777
12778         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12779         to reduce duplication, and to achieve a slightly more logical order
12780         of operations.
12781
12782 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12783
12784         PR tree-optimization/49161
12785         * tree-vrp.c (struct case_info): New type.
12786         (compare_case_labels): Sort case_info structs instead of
12787         trees, and not primarily by CASE_LABEL uids but by
12788         label_for_block indexes.
12789         (find_switch_asserts): Put case labels into struct case_info
12790         array instead of TREE_VEC, adjust sorting, compare label_for_block
12791         values instead of CASE_LABELs.
12792
12793 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12794
12795         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12796         ("orndi3_neon"): Likewise.
12797         ("bic<mode>3_neon"): Likewise.
12798
12799 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12800
12801         PR tree-optimization/49038
12802         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12803         Ensure at least one epilogue iteration if required by data
12804         accesses with gaps.
12805         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12806         to mark loops that require peeling for gaps.
12807         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12808         (vect_get_known_peeling_cost): Take peeling for gaps into
12809         account.
12810         (vect_transform_loop): Generate epilogue if required by data
12811         access with gaps.
12812         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12813         loop as requiring an epilogue if there are gaps in the end of
12814         the strided group.
12815
12816 2011-05-25  Ian Lance Taylor  <iant@google.com>
12817
12818         * godump.c (go_format_type): Output the first field with a usable
12819         Go type, if any.
12820
12821 2011-05-25  Ian Lance Taylor  <iant@google.com>
12822
12823         * godump.c (go_format_type): Check for invalid type names, pointer
12824         target types, and struct field types.
12825
12826 2011-05-25  Jason Merrill  <jason@redhat.com>
12827
12828         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12829
12830 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12831
12832         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12833
12834 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12835
12836         * config/i386/i386.md (*movqi_extv_1)): Put back
12837         "register_operand" check in "type" calculation.
12838         (*movqi_extzv_2): Likewise.
12839
12840 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12841
12842         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12843
12844 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12845
12846         PR bootstrap/49160
12847         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12848         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12849         __divxc3, __divtc3): Wrap definitions in #ifndef.
12850
12851 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12852
12853         PR target/49142
12854         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12855         "register_operand" check and replace q_regs_operand with
12856         QIreg_operand in "type" calculation.
12857         (*movqi_extv_1): Likewise.
12858         (*movqi_extzv_2_rex64): Likewise.
12859         (*movqi_extzv_2): Likewise.
12860
12861         * config/i386/predicates.md (QIreg_operand): New.
12862
12863 2011-05-25  Richard Guenther  <rguenther@suse.de>
12864
12865         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12866         type-based offset disambiguation, streamline MEM_REF and
12867         TARGET_MEM_REF handling.
12868
12869 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12870
12871         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12872         (bdesc_special_args): Add pause intrinsic.
12873
12874         * config/i386/i386.md (UNSPEC_PAUSE): New.
12875         (pause): Likewise.
12876         (*pause): Likewise.
12877         * config/i386/ia32intrin.h (__pause): Likewise.
12878
12879         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12880         pause intrinsic.
12881
12882 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12883
12884         PR tree-optimization/46728
12885         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12886         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12887
12888 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12889
12890         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12891         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12892         instead of TS_COMMON.
12893
12894 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12895
12896         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12897         LIBGCC2_GNU_PREFIX is defined.
12898         (__N): New macro.
12899         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12900         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12901         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12902         __clz_tab): Define using __N.
12903         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12904         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12905         * target.def (libfunc_gnu_prefix): New hook.
12906         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12907         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12908         * doc/tm.texi: Regenerate.
12909         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12910         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12911         account.
12912         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12913         (init_optabs): Likewise for the bswap libfuncs.
12914         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12915         and divide.
12916         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12917         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12918         * libgcc-std.ver: Remove.
12919         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12920         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12921         libgcc-std.ver.
12922         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12923         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12924         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12925         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12926         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12927         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12928         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12929         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12930         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12931         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12932
12933 2011-05-25  Jan Hubicka  <jh@suse.cz>
12934
12935         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12936         (lto_output_tree): Use output_record_start.
12937         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12938         (lto_get_pickled_tree): Use input_record_start.
12939         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12940         (lto_value_range_error): New function.
12941         * lto-streamer.h (lto_value_range_error): Declare.
12942         (lto_output_int_in_range, lto_input_int_in_range): New functions.
12943         (lto_output_enum, lto_input_enum): New macros.
12944
12945 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12946
12947         * common.opt (flag_stack_usage_info): New variable.
12948         (-Wstack-usage): New option.
12949         * doc/invoke.texi (Warning options): Document -Wstack-usage.
12950         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12951         <OPT_fstack_usage>: Likewise.
12952         * toplev.c (output_stack_usage): Handle -Wstack-usage.
12953         * calls.c (expand_call): Test flag_stack_usage_info variable instead
12954         of flag_stack_usage.
12955         (emit_library_call_value_1): Likewise.
12956         * explow.c (allocate_dynamic_stack_space): Likewise.
12957         * function.c (instantiate_virtual_regs ): Likewise.
12958         (prepare_function_start): Likewise.
12959         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12960         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12961         * config/arm/arm.c (arm_expand_prologue): Likewise.
12962         (thumb1_expand_prologue): Likewise.
12963         * config/avr/avr.c (expand_prologue): Likewise.
12964         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12965         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12966         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12967         * config/mips/mips.c (mips_expand_prologue): Likewise.
12968         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12969         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12970         * config/s390/s390.c (s390_emit_prologue): Likewise.
12971         * config/sh/sh.c (sh_expand_prologue): Likewise.
12972         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12973         * config/spu/spu.c (spu_expand_prologue): Likewise.
12974
12975 2011-05-25  Richard Guenther  <rguenther@suse.de>
12976
12977         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12978         (gimple_canonical_types_compatible_p): Likewise.
12979
12980 2011-05-25  Jan Hubicka  <jh@suse.cz>
12981
12982         PR middle-end/49062
12983         * ipa.c (function_and_variable_visibility): Only add to same
12984         comdat group list if DECL_ONE_ONLY.
12985
12986 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
12987
12988         PR rtl-optimization/49014
12989         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12990
12991 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12992
12993         PR target/49128
12994         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12995
12996 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12997
12998         PR rtl-optimization/48757
12999         * ira-build.c (loop_with_eh_edge_p): Rename to
13000         loop_with_complex_edge_p, check edges on complexity, make function
13001         conditional.
13002         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13003         conditional.
13004
13005 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13006
13007         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13008         force flag_ira_share_save_slots to 0.
13009
13010 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13011
13012         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13013         (vt_initialize): Set PROLOGUE_BB unconditionally.
13014         Add block comment about CFA_BASE_RTX machinery.
13015         Reset FP_CFA_OFFSET to -1 on all invalid paths.
13016         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13017
13018 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
13019
13020         PR objc/48187
13021         * c-parser.c (c_parser_objc_class_instance_variables): More robust
13022         parsing of syntax error in ObjC instance variable lists.  In
13023         particular, avoid an infinite loop if there is a stray ']'.
13024         Updated error message.
13025
13026 2011-05-24  Ian Lance Taylor  <iant@google.com>
13027
13028         * godump.c (go_define): Don't accept a string immediately after
13029         another operand.
13030
13031 2011-05-24  Ian Lance Taylor  <iant@google.com>
13032
13033         * godump.c (struct godump_container): Add invalid_hash field.
13034         (go_format_type): Return false if type is found in invalid_hash.
13035         (go_output_typedef): Add invalid type to invalid_hash.
13036         (go_finish): Create and delete invalid_hash.
13037
13038 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13039
13040         PR tree-optimization/46728
13041         * tree-ssa-math-opts.c (powi_table): New.
13042         (powi_lookup_cost): New.
13043         (powi_cost): New.
13044         (powi_as_mults_1): New.
13045         (powi_as_mults): New.
13046         (gimple_expand_builtin_powi): New.
13047         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13048         (gate_cse_sincos): Remove sincos/cexp restriction.
13049
13050 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13051
13052         PR target/3746
13053         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13054         mips-tdump native.
13055         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13056         * mips-tdump.c: Likewise.
13057
13058 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13059
13060         PR target/49128
13061         * config/i386/driver-i386.c (host_detect_local_cpu): Always
13062         add -mno-XXX.  Handle FMA.
13063
13064 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13065
13066         PR rtl-optimization/48633
13067         * ira-build.c (loop_with_eh_edge_p): New function.
13068         (mark_loops_for_removal): Use it.
13069
13070 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13071
13072         PR rtl-optimization/48971
13073         * ira.c (setup_pressure_classes): Don't check register move cost
13074         for classes with one registers.  Don't add pressure class if there
13075         is a pressure class with the same available hard registers.
13076         Check contains_reg_of_mode.  Fix a typo in collecting
13077         temp_hard_regset.  Ignore hard registers not belonging to a class.
13078
13079 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
13080
13081         PR target/49133
13082         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13083
13084 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13085             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13086
13087         PR gcov-profile/48845
13088         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13089
13090 2011-05-24  Richard Guenther  <rguenther@suse.de>
13091
13092         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13093         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13094         (gimple_types_compatible_p_1): Adjust.
13095         (iterative_hash_canonical_type): Do not bother about complete vs.
13096         incomplete types.
13097         (gimple_canonical_types_compatible_p): Likewise.
13098
13099 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13100
13101         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13102
13103 2011-05-24  Richard Guenther  <rguenther@suse.de>
13104
13105         PR bootstrap/49078
13106         * gimple.c (gimple_register_canonical_type): Revert
13107         previous change.
13108         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13109         does not for a tree for the case where it matters.  Cache
13110         pointer-type alias-sets.
13111
13112 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
13113
13114         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13115         (OBJS): Remove options.o, opts-common.o and prefix.o.
13116         (OBJS-libcommon-target): New.
13117         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13118         (BACKEND): Include libcommon-target.a.
13119         (MOSTLYCLEANFILES): Include libcommon-target.a.
13120         (libcommon-target.a): New.
13121         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13122         prefix.o.
13123
13124 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
13125
13126         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
13127         parts of output shared with the driver.
13128         * optc-gen.awk: Don't generate parts of output not shared with the
13129         driver.
13130         * opth-gen.awk: Remove GCC_DRIVER conditionals.
13131         * doc/options.texi (SourcerInclude): Mention options-save.c.
13132         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13133         (OBJS): Add options-save.o.
13134         (options-save.c, options-save.o): New.
13135         (options.o): Update dependencies.
13136         (gcc-options.o): Remove.
13137         (mostlyclean): Remove options-save.c.
13138
13139 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13140
13141         PR debug/49032
13142         * dbxout.c: Include cgraph.h.
13143         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13144         and without value expr, return NULL if no varpool node exists for
13145         it or if it is not needed.
13146         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13147
13148         PR c/49120
13149         * c-decl.c (start_decl): Convert expr to void_type_node.
13150
13151 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
13152
13153         PR rtl-optimization/48826
13154         * emit-rtl.c (try_split): When splitting a call that is followed
13155         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13156
13157 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13158
13159         * cfgexpand.c (expand_debug_expr): For unused non-addressable
13160         parameters passed in memory prefer using DECL_INCOMING_RTL over
13161         the pseudos it will be copied into.
13162
13163 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13164
13165         PR target/47315
13166         * config/i386/i386.c (ix86_option_override_internal): Save the
13167         initial options after checking vzeroupper.
13168
13169 2011-05-23  David Li  <davidxl@google.com>
13170
13171         PR tree-optimization/48988
13172         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13173         Initialize has_valid_pred for each pred chain.
13174
13175 2011-05-23  Richard Guenther  <rguenther@suse.de>
13176
13177         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13178         (iterative_hash_gimple_type): Always hash type names.
13179
13180 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13181
13182         * c-typeck.c (build_function_call_vec): Tweak call to
13183         check_function_arguments.
13184
13185 2011-05-23  Richard Guenther  <rguenther@suse.de>
13186
13187         PR tree-optimization/49115
13188         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13189         is not necessarily carried out, do not claim it kills the ref.
13190         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13191
13192 2011-05-23  Richard Guenther  <rguenther@suse.de>
13193
13194         PR middle-end/15419
13195         * builtins.c (fold_builtin_memory_op): Be less restrictive about
13196         what pointer types we accept for folding.
13197
13198 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13199
13200         * gthr-gnat.c: Remove.
13201         * gthr-gnat.h: Remove.
13202         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13203         * config/t-freebsd (LIB2ADDEH): Likewise.
13204         * config/t-linux (LIB2ADDEH): Likewise.
13205         * config/t-sol2 (LIB2ADDEH): Likewise.
13206         * config/ia64/t-vms (LIB2ADDEH): Likewise.
13207         * configure.ac (target_thread_file): Remove gnat handling.
13208         * configure: Regenerate.
13209         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13210
13211 2011-05-23  Tristan Gingold  <gingold@adacore.com>
13212             Eric Botcazou  <ebotcazou@adacore.com>
13213
13214         * gcov.c (create_file_names): If no object directory is specified,
13215         keep the directory of the file.
13216
13217 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13218
13219         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13220         * configure: Regenerate.
13221
13222 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13223
13224         PR middle-end/48973
13225         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13226         failed and the comparison has a single bit signed type, use
13227         constm1_rtx instead of const1_rtx for true value.
13228         (do_store_flag): If ops->type is single bit signed type, disable
13229         signel bit test optimization and pass -1 instead of 1 as last
13230         parameter to emit_store_flag_force.
13231
13232 2011-05-23  Tom de Vries  <tom@codesourcery.com>
13233
13234         PR target/45098
13235         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13236         function.
13237         (infer_loop_bounds_from_undefined): Use new function.
13238
13239 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13240
13241         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13242         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
13243         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13244         and -O0 otherwise.
13245         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13246
13247 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13248
13249         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13250         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13251         returns true.
13252
13253 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13254
13255         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13256
13257 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13258
13259         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13260         UNSPEC_MOVE_PIC pattern.
13261
13262 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13263
13264         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13265         (sparc-*-rtems*): Likewise.
13266         (sparc64-*-elf*): Likewise.
13267         (sparc64-*-rtems*): Likewise.
13268         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
13269         * config/sparc/t-crtin: New file.
13270         * config/sparc/t-sol2 (crti.o): Delete rule.
13271         (crtn.o): Likewise.
13272         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13273         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13274         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13275         (ENDFILE_SPEC): Add crtn.o.
13276
13277 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13278
13279         PR middle-end/48689
13280         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13281         CODE_CONTAINS_STRUCT (TS_COMMON).
13282
13283 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
13284
13285         PR middle-end/49029
13286         * expmed.c (extract_fixed_bit_field): Test whether target can be used
13287         only after deciding which mode to use.
13288
13289 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13290
13291         PR target/45098
13292         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13293         for call to get_shiftadd_cost.
13294
13295 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
13296
13297         PR target/49104
13298         * config/i386/cpuid.h (bit_MMXEXT): New define.
13299
13300 2011-05-22  Nick Clifton  <nickc@redhat.com>
13301
13302         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13303         initialisation of non-existant args[2] element.  Use args[] array
13304         not arg[] array to pass arguments to build_function_type_list.
13305
13306 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
13307
13308         PR tree-optimization/49087
13309         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13310
13311 2011-05-21  Jason Merrill  <jason@redhat.com>
13312
13313         PR c++/49092
13314         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13315         static storage duration.
13316
13317 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13318
13319         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13320         frame pointer.
13321
13322 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13323
13324         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13325         false if there are call-saved registers here...
13326         (sparc_can_use_return_insn_p): ...but here instead.
13327         (save_or_restore_regs): Fix thinko.
13328         (sparc_expand_prologue): Use current_function_is_leaf.
13329         (sparc_frame_pointer_required): Likewise.
13330
13331 2011-05-21  Nick Clifton  <nickc@redhat.com>
13332
13333         PR target/49098
13334         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13335
13336 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13337
13338         * gengtype.c (walk_type): Implemented "atomic" GTY option.
13339         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13340
13341 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
13342
13343         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
13344         * optc-gen.awk: Move common code to opt-read.awk.
13345         * opth-gen.awk: Likewise.
13346         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13347
13348 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
13349
13350         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13351
13352 2011-05-20  Tom de Vries  <tom@codesourcery.com>
13353
13354         PR target/45098
13355         * tree-ssa-loop-ivopts.c: Include expmed.h.
13356         (get_shiftadd_cost): New function.
13357         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
13358
13359 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13360
13361         PR bootstrap/49086
13362         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13363         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13364
13365 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * Makefile.in: Update comment referring to $(OBJS-common).
13368
13369 2011-05-20  Ian Lance Taylor  <iant@google.com>
13370
13371         * godump.c (go_output_typedef): Put enum constants in the macro
13372         hash table to avoid duplicate Go const definitions.
13373
13374 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13375
13376         * Makefile.in (LIBDEPS): Add libcommon.a.
13377         (LIBS): Likewise.
13378         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13379         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13380         pretty-print.o and version.o.
13381         (OBJS-libcommon): New.
13382         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13383         (BACKEND): Add libcommon.a.
13384         (MOSTLYCLEANFILES): Likewise.
13385         (libcommon.a): New.
13386         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13387         (cpp$(exeext)): Likewise.
13388         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13389         pretty-print.o and input.o.
13390         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13391         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13392         (errors.o): Remove.
13393         (mips-tfile): Don't explicitly use version.o.
13394         (mips-tdump): Likewise.
13395         (gcov.o): Depend on $(DIAGNOSTIC_H).
13396         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13397         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13398         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13399         * gcov-dump.c: Include intl.h and diagnostic.h.
13400         (main): Initialize diagnostics.
13401         * gcov.c: Include diagnostic.h.
13402         (fnotice): Remove.
13403         (main): Initialize diagnostics.
13404         * lto-wrapper.c: Include diagnostic.h.
13405         (main): Initialize diagnostics.
13406
13407 2011-05-20  Michael Matz  <matz@suse.de>
13408
13409         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13410
13411 2011-05-20  Michael Matz  <matz@suse.de>
13412             Richard Guenther  <rguenther@suse.de>
13413
13414         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13415         use lto_streamer_cache_append directly instead of returning a VEC.
13416         (preload_common_node): Remove.
13417         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13418         track seen nodes.
13419         (lto_streamer_cache_create): Call lto_preload_common_nodes.
13420
13421 2011-05-20  Richard Guenther  <rguenther@suse.de>
13422
13423         PR tree-optimization/49079
13424         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13425         MEM_REFs correctly for the trailing array access detection.
13426         Special case constants the same way as decls for overall size
13427         constraining.
13428
13429 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
13430
13431         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13432         argument expansion.
13433
13434 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13435
13436         PR tree-optimization/49073
13437         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13438         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13439         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13440
13441 2011-05-20  Richard Guenther  <rguenther@suse.de>
13442
13443         PR middle-end/48849
13444         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13445         of pointer types the same way the middle-end does.
13446
13447 2011-05-20  Richard Guenther  <rguenther@suse.de>
13448
13449         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13450         or pointer-to chains.  Delay all fixup to uniquify_nodes.
13451
13452 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
13453
13454         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13455         (fma4_fmaddsub): Likewise
13456
13457 2011-05-19  Jan Hubicka  <jh@suse.cz>
13458
13459         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13460         (GIMPLE_TYPE_PAIR_SIZE): New macro.
13461         (type_pair_cache): New static var.
13462         (lookup_type_pair): Use fixed sized custom hash; make inline.
13463         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13464         calls of lookup_type_pair.
13465         (print_gimple_types_stats): Remove cache stats.
13466         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13467         and gtc_ob.
13468
13469 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
13470
13471         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13472         when TARGET_RDRND is active.
13473         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13474         Generate dummy SImode target register when target is NULL.
13475
13476 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13477
13478         * config/arm/arm-fpus.def: New.
13479         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13480         arm-fpus.def.
13481         * config/arm/arm-tables.opt: Regenerate.
13482         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13483         (arm_option_override): Don't decode FPU name to string here.
13484         * config/arm/arm.opt (mfpu=): Use Enum.
13485         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13486         Update dependencies.
13487
13488 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13489
13490         * collect2.c: Include diagnostic.h.
13491         (fatal_perror, fatal, error, fancy_abort): Remove.
13492         (main): Set progname.  Call xmalloc_set_program_name and
13493         diagnostic_initialize.
13494         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13495         scan_libraries, resolve_lib_name): Call fatal_error instead of
13496         fatal and fatal_perror.
13497         * collect2.h (error, fatal, fatal_perror): Don't declare.
13498         * tlink.c: Include diagnostic-core.h.
13499         (recompile_files): Call fatal_error instead of fatal_perror.
13500         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13501         pretty-print.o and input.o.
13502         (collect2.o, tlink.o): Update dependencies.
13503
13504 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13505
13506         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13507
13508 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13509
13510         PR target/40483
13511         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13512         COMDAT group syntax, both SPARC and x86 variants.
13513         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13514         * configure: Regenerate.
13515         * config/sol2.h (TARGET_SOLARIS): Define.
13516         (PUSHSECTION_FORMAT): Remove.
13517         (SECTION_NAME_FORMAT): Define.
13518         * config/sol2.c: Include hashtab.h.
13519         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13520         expansion, using SECTION_NAME_FORMAT.
13521         (solaris_comdat_htab): New variable.
13522         (struct comdat_entry): Define.
13523         (comdat_hash): New function.
13524         (comdat_eq): New function.
13525         (solaris_elf_asm_comdat_section): New function.
13526         (solaris_define_comdat_signature): New function.
13527         (solaris_code_end): New function.
13528         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13529         (solaris_code_end): Declare.
13530         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13531         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13532         solaris_code_end.
13533         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13534         Remove ATTRIBUTE_UNUSED.
13535         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13536         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13537         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13538         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13539         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13540         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13541         (PUSHSECTION_FORMAT): Remove.
13542         (SECTION_NAME_FORMAT): Redefine.
13543
13544 2011-05-19  Kai Tietz  <ktietz@redhat.com>
13545
13546         * tree-cfg.c (verify_gimple_assign_binary): Barf on
13547         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13548         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13549
13550 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
13551             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13552
13553         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13554
13555 2011-05-19  Richard Guenther  <rguenther@suse.de>
13556
13557         PR middle-end/48985
13558         * tree-object-size.c (addr_object_size): If the pointed-to
13559         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13560
13561 2011-05-19  Richard Guenther  <rguenther@suse.de>
13562
13563         * gimple.c (gimple_types_compatible_p_1): Compare names of
13564         the types themselves.
13565         (iterative_hash_gimple_type): And hash them that way.
13566         (gimple_register_type_1): If we register a main variant properly
13567         initialize the leader to ourselves.
13568
13569 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13570
13571         PR target/45098
13572         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13573         get_loop_invariant_expr_id.
13574         (get_loop_invariant_expr_id): Use get_expr_id.
13575         (parm_decl_cost): New function.
13576         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13577         Improve bound cost estimation.  Use different inv_expr_id for elim and
13578         express cases.
13579
13580 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13581
13582         PR target/45098
13583         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13584         cost_base.cost == 0.
13585
13586 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13587
13588         PR target/49002
13589         * config/i386/sse.md
13590         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13591         load cast.
13592
13593 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13594
13595         PR tree-optimization/49039
13596         * tree-vrp.c (extract_range_from_binary_expr): For
13597         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13598         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13599
13600 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13601
13602         PR target/45098
13603         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13604
13605 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
13606
13607         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13608         (*tls_global_dynamic_64): Ditto.
13609         (*tls_local_dynamic_base_32_gnu): Ditto.
13610         (*tls_local_dynamic_base_64): Ditto.
13611         (tls_initial_exec_64_sun): Ditto.
13612
13613 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
13614
13615         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13616         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13617         bf592-none.
13618         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13619         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13620         * config/bfin/bfin.c (bfin_cpus): Add bf592.
13621         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13622         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13623         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13624         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13625
13626 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
13627
13628         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13629         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13630         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13631         target_thread_pointer, arm_structure_size_boundary, struct
13632         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13633         struct abi_name, arm_all_abis): Remove.
13634         (arm_option_override) Don't process most enumerated option values here.
13635         Don't process target_fpe_name here.  Work with integer not string for
13636         structure size boundary; use separate diagnostics for each case.
13637         * config/arm/arm.h (enum float_abi_type, enum
13638         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13639         to arm-opts.h.
13640         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13641         arm_structure_size_boundary): Remove.
13642         * config/arm/arm.opt (mabi=): Use Enum and Init.
13643         (arm_abi_type): New Enum and EnumValue entries.
13644         (mfloat-abi=): Use Enum and Init.
13645         (float_abi_type): New Enum and EnumValue entries.
13646         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13647         (mfp16-format=): Use Enum and Init.
13648         (arm_fp16_format_type): New Enum and EnumValue entries.
13649         (mstructure-size-boundary=): Use UInteger and Init.
13650         (mtp=): Use Enum and Init.
13651         (arm_tp_type): New Enum and EnumValue entries.
13652
13653 2011-05-18  Richard Guenther  <rguenther@suse.de>
13654
13655         PR tree-optimization/49018
13656         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13657         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13658         gimple_has_side_effects.
13659
13660 2011-05-18  Richard Guenther  <rguenther@suse.de>
13661
13662         * gimple.c (gimple_register_type_1): New function, split out from ...
13663         (gimple_register_type): ... here.  Avoid infinite recursion.
13664
13665 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13666
13667         PR tree-optimization/41881
13668         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13669         reduction_chains along with a macro for its access.
13670         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13671         (destroy_loop_vec_info): Free reduction chains.
13672         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13673         (vect_is_slp_reduction): New function.
13674         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13675         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13676         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13677         definition types for reduction chains.
13678         (vect_supported_load_permutation_p): Don't allow permutations for
13679         reduction chains.
13680         (vect_analyze_slp_instance): Support reduction chains.
13681         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13682         (vect_get_constant_vectors):  Handle reduction chains.
13683         (vect_schedule_slp_instance): Mark the first statement of the
13684         reduction chain as reduction.
13685
13686 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13687
13688         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13689         names for group elements access.
13690         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13691         reduction chains as well.  Remove data reference and interleaving
13692         related words from the fields names.
13693         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13694         elements access.
13695         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13696         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13697         vect_update_interleaving_chain, vect_same_range_drs,
13698         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13699         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13700         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13701         vect_analyze_group_access, vect_analyze_data_ref_access,
13702         vect_create_data_ref_ptr, vect_transform_strided_load,
13703         vect_record_strided_load_vectors): Likewise.
13704         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13705         vect_model_load_cost, vectorizable_store, vectorizable_load,
13706         vect_remove_stores, new_stmt_vec_info): Likewise.
13707         * tree-vect-slp.c (vect_build_slp_tree,
13708         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13709
13710 2011-05-18  Richard Guenther  <rguenther@suse.de>
13711
13712         PR middle-end/48989
13713         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13714         operand verification.
13715         (verify_gimple_assign_binary): Likewise.
13716         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13717         to non-1-precision BOOLEAN_TYPEs.
13718
13719 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13720
13721         PR target/45098
13722         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13723
13724 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13725
13726         PR tree-optimization/49000
13727         * tree-ssa.c (execute_update_addresses_taken): Call
13728         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13729         be rewritten and decl has been marked for renaming, reset
13730         the debug stmt.
13731
13732 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13733
13734         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13735         enum_opts_set when testing if attributes have set -mfpmath=.
13736
13737 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13738
13739         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13740
13741 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13742
13743         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13744         info->entry with 0
13745         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13746         id.transform_lang_insert_block with NULL.
13747
13748 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13749
13750         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13751         (output_fp_compare): Change args 3 and 4 to bool.
13752         (ix86_expand_call): Change arg 6 to bool.
13753         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13754         (ix86_attr_length_vex_default): Change arg 3 to bool.
13755         * config/i386/i386.md: Update all uses.
13756         * config/i386/i386.c: Ditto.
13757         (ix86_flags_dependent): Change return type to bool.
13758
13759 2011-05-17  Richard Guenther  <rguenther@suse.de>
13760
13761         * gimple.c (type_hash_pair_compare): Fix comparison.
13762
13763 2011-05-17  Richard Guenther  <rguenther@suse.de>
13764
13765         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13766         case some more, fix final hash value of the non-singleton case.
13767
13768 2011-05-17  Richard Guenther  <rguenther@suse.de>
13769
13770         PR bootstrap/49013
13771         Revert
13772         2011-05-16  Richard Guenther  <rguenther@suse.de>
13773
13774         * gimple.c (gimple_types_compatible_p_1): Use names of the
13775         type itself, not its main variant.
13776         (iterative_hash_gimple_type): Likewise.
13777
13778 2011-05-17  Richard Guenther  <rguenther@suse.de>
13779
13780         * gimple.c (gimple_register_canonical_type): Use the main-variant
13781         leader for computing the canonical type.
13782
13783 2011-05-17  Nick Clifton  <nickc@redhat.com>
13784
13785         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13786         moves.
13787
13788         * config/rx/rx.md: Add peephole to remove redundant extensions
13789         after loads.
13790         (bitset_in_memory): Use rx_restricted_mem_operand.
13791         (bitinvert_in_memory): Likewise.
13792         (bitclr_in_memory): Likewise.
13793
13794 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13795             Nick Clifton  <nickc@redhat.com>
13796
13797         * config/rx/rx.md: Add peepholes to match a register move followed
13798         by a comparison of the moved register.  Replace these with an
13799         addition of zero that does both actions in one instruction.
13800
13801 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13802
13803         PR target/48986
13804         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13805         predicate to allow CONST_INT.
13806         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13807
13808 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13809
13810         * opts-common.c (opt_enum_arg_to_value): New.
13811         * opts.h (opt_enum_arg_to_value): Declare.
13812         * config/i386/i386.opt (fpmath): Remove.
13813         (mfpmath=): Use Enum, Init and Save.
13814         (fpmath_unit): New Enum and EnumValue entries.
13815         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13816         name for function fpmath state.
13817         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13818         * config/i386/i386.c: Include diagnostic.h.
13819         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13820         (ix86_target_string): Take enum fpmath_unit value instead of string.
13821         (ix86_debug_options): Update call to ix86_target_string.
13822         (ix86_option_override_internal): Don't process fpmath strings here.
13823         (x86_function_specific_save, ix86_function_specific_restore):
13824         Don't handle fpmath state specially.
13825         (ix86_function_specific_print): Pass fpmath state to
13826         ix86_target_string instead of printing in this function.
13827         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13828         Handle enum attributes.
13829         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13830         (ix86_valid_target_attribute_tree): Update option_strings
13831         handling.  Handle fpmath as enum option.
13832         (ix86_can_inline_p): Update field names for function fpmath state.
13833         (ix86_expand_builtin): Update call to ix86_target_string.
13834         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13835         (ix86_fpmath): Remove.
13836         * config/i386/t-i386 (i386.o): Update dependencies.
13837
13838 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13839
13840         PR preprocessor/48677
13841         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13842         from decoded_options[0], not from itself.
13843
13844 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13845
13846         * config/i386/constraints.md (z): New constraint.
13847         * config/i386/i386.c (c): New mode attribute.
13848         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13849         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13850         constraint for operand 0.
13851         (*call_vzeroupper): Ditto.
13852         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13853         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13854         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13855         Use "lzm" constraint for operand 0.
13856         (*call_pop_vzeroupper): Ditto.
13857         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13858         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13859         constraint for operand 0.
13860         (*sibcall_vzeroupper): Ditto.
13861         (*sibcall_rex64_ms_sysv): Ditto.
13862         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13863         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13864         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13865         (*sibcall_pop_vzeroupper): Ditto.
13866         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13867         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13868         mode iterator.  Use "<c>zm" constraint for operand 1.
13869         (*call_value_vzeroupper): Ditto.
13870         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13871         for operand 1.
13872         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13873         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13874         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13875         (*call_value_pop_vzeroupper): Ditto.
13876         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13877         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13878         mode iterator.  Use "Uz" constraint for operand 1.
13879         (*sibcall_value_vzeroupper): Ditto.
13880         (*sibcall_value_rex64_ms_sysv): Ditto.
13881         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13882         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13883         constraint for operand 1.
13884         (*sibcall_value_pop_vzeroupper): Ditto.
13885         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13886         and "z" constraint for operand 2.
13887         (*tls_global_dynamic_32_gnu): Ditto.
13888         (*tls_local_dynamic_base_32_gnu): Ditto.
13889         (*tls_local_dynamic_base_64): Ditto.
13890         (*tls_local_dynamic_32_once): Ditto.
13891         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13892         Update all callers.
13893         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13894
13895 2011-05-16  Richard Guenther  <rguenther@suse.de>
13896
13897         * gimple.c (gimple_types_compatible_p_1): Use names of the
13898         type itself, not its main variant.
13899         (iterative_hash_gimple_type): Likewise.
13900
13901 2011-05-16  Richard Guenther  <rguenther@suse.de>
13902
13903         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13904         always visit pointer target and function result and argument types.
13905
13906 2011-05-16  Jason Merrill  <jason@redhat.com>
13907
13908         PR c++/48999
13909         * tree-inline.c (copy_statement_list): Put back recursion.
13910
13911 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13912
13913         PR target/27663
13914         PR target/41076
13915         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13916         * config/avr/avr.md ("*ior<mode>qi.byte0",
13917         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13918
13919 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13920
13921         PR target/45099
13922         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13923         register is needed for a function argument.
13924
13925 2011-05-16  Richard Guenther  <rguenther@suse.de>
13926
13927         * gimple.c (struct type_hash_pair): New type.
13928         (type_hash_pair_compare): New function.
13929         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13930
13931 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13932
13933         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13934
13935 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13936
13937         * config/i386/i386.md (floating point move splitters): Fix
13938         usage of standard_80387_constant_p.
13939         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13940
13941 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13942
13943         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13944
13945 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13946
13947         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13948         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13949         (tree_ssa_lim_finalize): Likewise.
13950
13951 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
13952
13953         * config/i386/constraint.md (Yd, Yx): New register constraints.
13954         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
13955         Yd conditional register constraint.
13956         (*movtf_internal): Use standard_sse_constant_opcode.
13957         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
13958         Yx conditional register constraint.
13959         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
13960         Yd conditional register constraint.  Use standard_sse_constant_p to
13961         check for valid SSE constants and call standard_sse_constant_opcode to
13962         output SSE insn.
13963         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13964         constants and call standard_sse_constant_opcode to output SSE insn.
13965         * config/i386/i386.c (ix86_option_ovverride_internal): Set
13966         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
13967         optimize_size is set.
13968         (standard_sse_constant_opcode): Output conditional AVX insn templates.
13969
13970 2011-05-14  Tobias Burnus  <burnus@net-b.de>
13971
13972         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13973
13974 2011-05-13  Martin Jambor  <mjambor@suse.cz>
13975
13976         * ipa-prop.c (ipa_cst_from_jfunc): New function.
13977         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13978         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13979         (evaluate_conditions_for_ipcp_clone): Removed.
13980         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13981         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13982         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13983
13984 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13985
13986         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13987         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13988         lieu of MAY_HAVE_DEBUG_STMTS.
13989         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13990         debug statements if !MAY_HAVE_DEBUG_STMTS.
13991
13992 2011-05-13  Martin Thuresson  <martint@google.com>
13993
13994         PR gcov-profile/47793
13995         * libgcov.c (gcov_exit): Support relative profile paths.
13996         * doc/invoke.texi (-fprofile-dir): Update for above change.
13997
13998 2011-05-13  Richard Guenther  <rguenther@suse.de>
13999
14000         * gimple.c (gimple_canonical_types_compatible_p): Do not use
14001         type-pair caching, do not compare hashes.
14002
14003 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
14004
14005         PR middle-end/48965
14006         * tree-cfg.c (edge_to_cases_cleanup): Return true.
14007         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14008
14009 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14010
14011         * gimplify.c (gimplify_expr): Make sure operand is boolified.
14012         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14013         compatible type for TRUTH_NOT_EXPR.
14014
14015 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14016
14017         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14018         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
14019         can_create_pseudo_p ().
14020
14021 2011-05-13  Richard Guenther  <rguenther@suse.de>
14022
14023         PR lto/48978
14024         * gimple.c (iterative_hash_gimple_type): Revert change in
14025         pointer target and function result and argument hashing.
14026
14027 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
14028
14029         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14030         (*movxf_internal_nointeger): Ditto.
14031         (*movdf_internal_rex64): Ditto.
14032         (*movdf_internal): Ditto.
14033         (*movdf_internal_nointeger): Ditto.
14034         (*movsf_internal): Ditto.
14035         (sincos splitters): Use can_create_pseudo ().
14036
14037 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
14038
14039         * config/i386/i386-opts.h: New.
14040         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14041         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14042         ix86_section_threshold): Remove.
14043         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
14044         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14045         OPT_mbranch_cost_.
14046         (ix86_option_override_internal): Don't decode strings for options
14047         other than -march=, -mtune= and -mfpmath=.  Don't allow for
14048         __attribute__ uses in remaining diagnostics for options with
14049         string arguments.  Don't check for integer arguments being negative.
14050         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14051         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14052         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14053         ix86_branch_cost, ix86_section_threshold): Remove.
14054         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14055         HeaderInclude.
14056         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14057         but not Var.
14058         (masm=): Use Enum and Init.
14059         (asm_dialect): New Enum and EnumValue entries.
14060         (mbranch-cost=): Use UInteger.
14061         (mlarge-data-threshold=): Use UInteger and Init.
14062         (mcmodel=): Use Enum and Init.
14063         (cmodel): New Enum and EnumValue entries.
14064         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14065         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14066         mregparm=): Use UInteger.
14067         (mstringop-strategy=): Use Enum and Init.
14068         (stringop_alg): New Enum and EnumValue entries.
14069         (mtls-dialect=): Use Enum and Init.
14070         (tls_dialect): New Enum and EnumValue entries.
14071         (mabi=): Use Enum and Init.
14072         (calling_abi): New Enum and EnumValue entries.
14073         (mveclibabi=): Use Enum and Init.
14074         (ix86_veclibabi): New Enum and EnumValue entries.
14075
14076 2011-05-13  Nick Clifton  <nickc@redhat.com>
14077
14078         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14079         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14080
14081 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14082
14083         PR middle-end/48984
14084         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14085         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14086         (gimple_boolify): Check for cast for boolean_type_node instead for
14087         BOOLEAN_TYPE.
14088
14089 2011-05-13  Richard Guenther  <rguenther@suse.de>
14090
14091         PR tree-optimization/48172
14092         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14093         multiplying by number of iterations for equal step.
14094         (vect_create_cond_for_alias_checks): Likewise.
14095
14096 2011-05-13  Andreas Schwab  <schwab@redhat.com>
14097
14098         * configure.ac: Use AS_HELP_STRING throughout.
14099         * configure: Regenerate.
14100
14101 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14102
14103         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14104         (ix86_emit_restore_regs_using_mov): Likewise.
14105         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14106
14107 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
14108
14109         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14110         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14111         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14112         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14113         RTX_OK_FOR_OLO10_P): ...here.
14114         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14115         SYMBOLIC_CONST.
14116
14117 2011-05-12  Kai Tietz  <ktietz@redhat.com>
14118
14119         * gimplify.c (gimple_boolify): Re-boolify expression
14120         arguments even if expression type is of kind BOOLEAN_TYPE.
14121         (gimplify_boolean_expr): Removed.
14122         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14123         and XOR. Additional take care that we keep expression's type.
14124         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14125         of TRUTH_AND|OR|XOR_EXPR.
14126
14127 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14128
14129         PR tree-optimization/48975
14130         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14131         on all bbs here and free and clear ifc_bbs at the end.
14132
14133 2011-05-12  Richard Guenther  <rguenther@suse.de>
14134
14135         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14136         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
14137         until after simple checks.
14138         (gimple_types_compatible_p): Likewise.
14139         (iterative_hash_gimple_type): Always hash pointer targets
14140         and function return and argument types.
14141         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14142         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
14143         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14144         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
14145         completely in the simple compare section.
14146         (gimple_register_canonical_type): Query the cache again after
14147         registering.
14148
14149 2011-05-12  Richard Guenther  <rguenther@suse.de>
14150
14151         PR tree-optimization/48172
14152         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14153         the number of iterations from the segment size calculation.
14154         (vect_create_cond_for_alias_checks): Adjust.
14155
14156 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14157
14158         PR debug/48967
14159         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14160         if validate_subreg fails.
14161
14162 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
14163
14164         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14165         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14166         early.
14167
14168 2011-05-12  DJ Delorie  <dj@redhat.com>
14169
14170         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14171         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14172         created builtin into rx_builtins array.
14173         (rx_builtin_decl): New function.
14174         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
14175
14176 2011-05-12  DJ Delorie  <dj@redhat.com>
14177             Nick Clifton  <nickc@redhat.com>
14178
14179         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14180         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14181         (rx_is_legitimate_address): Add pre-decrement and post-increment
14182         addressing in HImode and QImode.  Fix test for out of range
14183         REG+INT addressing.
14184         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14185         (rx_align_for_label): Test label before extracting its usage count.
14186         (rx_adjust_insn_lengths): Fix selection of insn codes.
14187         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14188
14189 2011-05-11  Jason Merrill  <jason@redhat.com>
14190
14191         * tree.c (type_hash_canon): Use struct tree_type_non_common.
14192
14193 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14194
14195         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14196         reindent the subsequent block.
14197
14198 2011-05-11  Satoru Takabayashi  <satorux@google.com>
14199             Paul Pluzhnikov  <ppluzhnikov@google.com>
14200
14201         * doc/install.texi (Configuration): Document --with-linker-hash-style.
14202         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14203         * config.in: Add LINKER_HASH_STYLE.
14204         * configure.ac: Add --with-linker-hash-style.
14205         * configure: Regenerate.
14206
14207 2011-05-11  Richard Guenther  <rguenther@suse.de>
14208
14209         PR middle-end/48964
14210         * gimple.c (iterative_hash_canonical_type): Fix typo.
14211
14212 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
14213
14214         * config/i386/i386.c (legitimize_tls_address)
14215         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14216         expanders directly for TARGET_GNU2_TLS.  Determine pic and
14217         __tls_get_addr symbol reference here.  Update call to
14218         gen_tls_global_dynamic_{32,64} for added arguments.
14219         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14220         expanders directly for TARGET_GNU2_TLS.  Determine
14221         __tls_get_addr symbol reference here.  Update call to
14222         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
14223         unique UNSPEC REG_EQUIV to libcall block.
14224         (ix86_tls_get_addr): Declare static.
14225         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14226         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14227         Do not determine pic and __tls_get_addr symbol reference here. Do not
14228         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14229         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14230         (tls_global_dynamic_64): Add operand 2.  Do not determine
14231         __tls_get_addr symbol reference here.  Do not call
14232         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14233         (tls_local_dynamic_base64): Ditto for operand 1.
14234
14235 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14236
14237         * function.c (expand_function_start): Initialize stack_check_probe_note
14238         only if the generic stack checking mechanism is used.
14239
14240 2011-05-11  Richard Guenther  <rguenther@suse.de>
14241
14242         PR tree-optimization/15256
14243         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14244         (A & B) | C, combine (A op CST1) op CST2.
14245         (tree_ssa_forward_propagate_single_use_vars): Only bother to
14246         visit assigns that have uses.
14247
14248 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
14249
14250         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14251         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14252         (unpack_ts_type_common_value_fields): ...this.  Update comment.
14253         (unpack_value_fields): Adjust for renaming.
14254         (lto_input_ts_type_tree_pointers): Split into...
14255         (lto_input_ts_type_common_tree_pointer): ...this and...
14256         (lto_input_ts_type_non_common_tree_pointers): ...this.
14257         (lto_input_tree_pointers): Adjust for above split.
14258         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14259         (pack_ts_type_common_value_fields): ...this.  Update comment.
14260         (lto_output_ts_type_tree_pointers): Split into...
14261         (lto_output_ts_type_common_tree_pointers): ...this and...
14262         (lto_output_ts_type_non_common_tree_pointers): ...this.
14263         (lto_output_tree_pointers): Adjust for above split.
14264         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14265         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14266         * stor-layout.c (vector_type_mode): Adjust location of mode field.
14267         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14268         Define.
14269         (struct tree_type): Split into...
14270         (struct tree_type_common: ...this and...
14271         (struct tree_type_with_lang_specific): ...this and...
14272         (struct tree_type_non_common): ...this.  Adjust accessor macros
14273         accordingly.
14274         (TYPE_VALUES_RAW): Define.
14275         (union tree_node): Update for above changes.
14276         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14277         TS_TYPE_NON_COMMON.
14278         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14279         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14280         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14281         * treestructu.def (TS_TYPE): Remove.
14282         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14283         Define.
14284
14285 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
14286
14287         PR debug/48159
14288         * tree-ssa.c (reset_debug_uses): New function.
14289         * tree-flow.h (reset_debug_uses): New prototype.
14290         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14291         * tree-loop-distribution.c (generate_loops_for_partition): Call
14292         reset_debug_uses on the stmts that will be removed.  Keep around
14293         all debug stmts, don't count them as bits in partition bitmap.
14294         (generate_builtin): Don't count debug stmts or labels as bits in
14295         partition bitmap.
14296
14297 2011-05-11  Richard Guenther  <rguenther@suse.de>
14298
14299         * gimple.c (gimple_type_hash_1): Merge with ...
14300         (gimple_type_hash): ... this.
14301         (gtc_visit): Remove mode parameter and simplify accordingly.
14302         (gimple_types_compatible_p_1): Likewise.
14303         (gimple_types_compatible_p): Likewise.
14304         (iterative_hash_gimple_type): Likewise.
14305         (visit): Likewise.
14306         (gimple_type_eq): Adjust.
14307
14308 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14309
14310         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14311         enters the branch create an anti edge in the opposite direction
14312         to prevent the creation of reg-moves.
14313         * modulo-sched.c: Adjust comment to reflect the fact we are
14314         scheduling closing branch.
14315         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14316         (stage_count): New field in struct partial_schedule.
14317         (calculate_stage_count): New function.
14318         (normalize_sched_times): Rename to reset_sched_times and handle
14319         incrementing the sched time of the nodes by a constant value
14320         passed as parameter.
14321         (duplicate_insns_of_cycles): Skip closing branch.
14322         (sms_schedule_by_order): Schedule closing branch.
14323         (ps_insn_find_column): Handle closing branch.
14324         (sms_schedule): Call reset_sched_times and adjust the code to
14325         support scheduling of the closing branch.
14326         (ps_insert_empty_row): Update calls to normalize_sched_times
14327         and rotate_partial_schedule functions.
14328
14329 2011-05-11  Richard Guenther  <rguenther@suse.de>
14330
14331         PR middle-end/48953
14332         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14333
14334 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
14335
14336         * opts.c (finish_options): Move warning settings from process_options.
14337         * toplev.c (process_options): Move warning settings to finish_options.
14338
14339 2011-05-11  Richard Guenther  <rguenther@suse.de>
14340
14341         PR tree-optimization/18041
14342         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14343         (simplify_bitwise_binary): ... this.  Handle operand conversions
14344         by applying them to the result instead.
14345         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
14346
14347 2011-05-11  Richard Guenther  <rguenther@suse.de>
14348
14349         * gimple.c (gimple_canonical_types_compatible_p): Split out
14350         from gimple_types_compatible_p and friends.  Do not recurse
14351         to pointed-to types.
14352         (gimple_canonical_type_eq): Use it.
14353         (iterative_hash_canonical_type): Split out from
14354         iterative_hash_gimple_type and friends.  Do not recurse
14355         to pointed-to types.
14356         (gimple_canonical_type_hash): Use it, allocate the hash here.
14357
14358 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14359
14360         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14361         recognizing doloop.
14362
14363 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14364
14365         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14366         instead of PREV_INSN.
14367
14368 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14369
14370         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14371         * loop-doloop.c (doloop_condition_get): Likewise.
14372         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14373         (doloop_end): New.
14374         * config/arm/arm.md (*addsi3_compare0): Remove "*".
14375
14376 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
14377
14378         * tree.def (CASE_LABEL_EXPR): Add an operand.
14379         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14380
14381 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14382
14383         * c-decl.c (c_override_global_bindings_to_false): Remove.
14384         (global_bindings_p): Don't check
14385         c_override_global_bindings_to_false.
14386         * c-tree.h (c_override_global_bindings_to_false): Remove.
14387         * c-typeck.c (composite_type): Don't set
14388         c_override_global_bindings_to_false.
14389
14390 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14391
14392         PR target/48857, 48495
14393         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14394         (VSX_MODE): Ditto.
14395         (VSX_MOVE_MODE): Ditto.
14396         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14397         VSX vector types.  Add V2DImode.
14398         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14399         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14400         (MODES_TIEABLE_P): Ditto.
14401
14402         * config/rs6000/rs6000.c (rs6000_emit_move): Use
14403         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14404         VSX_VECTOR_MODE.
14405         (init_cumulative_args): Ditto.
14406         (rs6000_function_arg_boundary): Ditto.
14407         (rs6000_function_arg_advance_1): Ditto.
14408         (rs6000_function_arg): Ditto.
14409         (rs6000_function_ok_for_sibcall): Ditto.
14410         (emit_frame_save): Ditto.
14411         (rs6000_function_value): Ditto.
14412         (rs6000_libcall_value): Ditto.
14413
14414 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14415
14416         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14417         i386/darwin-lib.h to $libgcc_tm_file.
14418         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14419
14420 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14421
14422         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14423
14424 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14425
14426         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14427         * config/rs6000/rs6000-tables.opt: New file (generated).
14428         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14429         rs6000/rs6000-tables.opt to extra_options.
14430         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14431         * config/rs6000/rs6000.c (rs6000_select): Remove.
14432         (processor_target_table): Move contents to rs6000-cpus.def.
14433         (darwin_rs6000_override_options): Check
14434         global_options_set.x_rs6000_cpu_index instead of
14435         rs6000_select[1].string.
14436         (rs6000_option_override_internal): Likewise.
14437         (rs6000_handle_option): Don't assert that global structures are in
14438         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
14439         (rs6000_default_cpu): New variable.
14440         (rs6000_file_start): Set it instead of local default_cpu.  Check
14441         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14442         global_options_set.x_rs6000_tune_index instead of rs6000_select.
14443         (rs6000_darwin_file_start): Check rs6000_default_cpu and
14444         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14445         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14446         rs6000_select): Remove.
14447         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14448         Remove.
14449         (mcpu=, mtune=): Use Var, Init, Enum and Save.
14450         * config/rs6000/t-rs6000
14451         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14452         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14453         global_options_set.x_rs6000_cpu_index instead of
14454         rs6000_select[1].string.
14455         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14456         global_options_set.x_rs6000_cpu_index instead of
14457         rs6000_select[1].string.
14458
14459 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14460
14461         * config.gcc (libgcc_tm_file): Define instead of including files
14462         from ../../libgcc/config/ in tm_file.
14463         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14464         * configure: Regenerate.
14465         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14466         libgcc_tm.h, cs-libgcc_tm.h): New.
14467         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14468         (clean): Remove libgcc_tm.h.
14469         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14470         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14471         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14472
14473 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
14474
14475         PR target/48896
14476         * config/avr/avr.c (avr_ret_register): Return unsigned int
14477         instead of int.
14478         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14479         it to avr_libcall_value.
14480         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14481         expand_expr.
14482         (avr_expand_binop_builtin): Ditto.
14483         (avr_expand_unop_builtin): Ditto.
14484
14485 2011-05-10  DJ Delorie  <dj@redhat.com>
14486
14487         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14488         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14489         * config/rx/rx.c (rx_align_for_label): Add label and
14490         uses_threshold parameters.  Do not align when the label is not
14491         used enough.
14492         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14493
14494 2011-05-10  Richard Guenther  <rguenther@suse.de>
14495
14496         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14497         a series of conversions and apply foldings similar to what
14498         fold-const does.
14499         (tree_ssa_forward_propagate_single_use_vars): Call it.
14500
14501 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
14502
14503         PR tree-optimization/48611
14504         PR tree-optimization/48794
14505         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14506         referenced from RESX or EH_DISPATCH arguments.
14507
14508         PR debug/48928
14509         * dfp.c (decimal_to_decnumber): Handle conversion from
14510         dconst{1,2,m1,half}.
14511
14512 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14513
14514         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14515         for !flag_prefer_avx128.
14516         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14517
14518 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14519
14520         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14521         (fold_ternary_loc): Use expr_location_or.
14522
14523 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14524
14525         PR debug/48853
14526         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14527         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14528         Pmode and mem_mode is not VOIDmode.
14529
14530 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
14531
14532         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14533         TYPE_QUAL_RESTRICT): Convert to enum.
14534
14535 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14536
14537         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14538         (const_pow2_1_to_8_operand): Ditto.
14539         (const_pow2_1_to_128_operand): Ditto.
14540         (const_pow2_1_to_32768_operand): Ditto.
14541         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14542         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
14543         in insn constraint to check integer value of operand 3.
14544         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14545
14546         (PINSR_MODE): New mode iterator.
14547         (sse2p4_1): New mode attribute.
14548         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14549         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14550         iterator.  Use const_int_operand instead of
14551         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
14552         exact_log2 in insn constraint to check integer value of operand 3.
14553
14554 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14555
14556         * config/i386/sse.md (blendbits): Remove mode attribute.
14557         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14558         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14559         Check integer value of operand 3 in insn constraint.
14560
14561 2011-05-09  Richard Guenther  <rguenther@suse.de>
14562
14563         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14564         for diagnostics.
14565         (lto_symtab_merge): Likewise.  Do not register types here.
14566         (lto_symtab_merge_decls_2): Likewise.
14567         (lto_symtab_merge_decls_1): Likewise.
14568         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14569         * gimple.c (enum gtc_mode): Declare.
14570         (gimple_types_compatible_p): Make static.
14571
14572 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14573
14574         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14575         temporary register to match Pmode.
14576
14577 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14578
14579         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14580         and *vec_concatv4si_1_avx.
14581
14582 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14583
14584         PR rtl-optimization/48927
14585         * ira-conflicts.c (commutative_constraint_p): Use
14586         recog_data.alternative_enabled_p to disable alternatives where
14587         "enabled" attribute is false.
14588         (get_dup_num): Ditto.
14589         * ira-lives.c (single_reg_class): Ditto.
14590         (ira_implicitly_set_insn_hard_regs): Ditto.
14591
14592 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14593
14594         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14595         (dataflow_set_preserve_mem_locs): Likewise.
14596
14597 2011-05-09  Philipp Thomas  <pth@suse.de>
14598
14599         * config/mep/mep.c (mep_validate_vliw): Syntax description
14600         should not be translated.
14601
14602 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
14603
14604         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14605         * config/mips/mips-tables.opt: New file (generated).
14606         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14607         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14608         MIPS_ARCH_OPTION_NATIVE): Define.
14609         * config/mips/mips.c (mips_cpu_info_table): Move contents to
14610         mips-cpus.def.
14611         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14612         mips_parse_cpu): Remove.
14613         (mips_cpu_info_from_opt, mips_default_arch): New.
14614         (mips_handle_option): Don't assert that global structures are in
14615         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14616         (mips_option_override): Use new variables and functions to set
14617         state of these options.  Use strcmp to check for individual CPU names.
14618         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14619         definition.
14620         * config/mips/mips.opt (march=): Use ToLower and Enum.
14621         (mips): Use ToLower, Enum and Var.
14622         (mtune=): Use ToLower and Enum.
14623         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14624
14625 2011-05-08  Jan Hubicka  <jh@suse.cz>
14626
14627         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14628         Arrange type pairs to be UID ordered.
14629         (gimple_lookup_type_leader): Make inline.
14630
14631 2011-05-09  Nick Clifton  <nickc@redhat.com>
14632
14633         PR target/48899
14634         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14635         PROCESSOR_DEFAULT.
14636
14637         PR target/48897
14638         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14639         variable 's'.
14640
14641 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14642
14643         * combine.c (simplify_comparison): Abstract out parts into...
14644         (simplify_compare_const): ... new function.
14645         (try_combine): Generalize parallel arithmetic/compare combining
14646         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14647
14648 2011-05-08  Jan Hubicka  <jh@suse.cz>
14649
14650         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14651         (cgraph_create_virtual_clone): Call hooks once virtual clone
14652         is finished.
14653         * cgraph.h (cgraph_clone_node): Update prototype.
14654         * ipa-cp.c (ipcp_estimate_growth): Use
14655         estimate_ipcp_clone_size_and_time.
14656         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14657         * lto-cgraph.c (input_node): Update.
14658         * ipa-inline.c (recursive_inlining): Update.
14659         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14660         (evaluate_conditions_for_known_args): Break out from ...
14661         (evaluate_conditions_for_edge): ... here.
14662         (evaluate_conditions_for_ipcp_clone): New function.
14663         (inline_node_duplication_hook): Update clone summary based
14664         on parameter map.
14665         (estimate_callee_size_and_time): Rename to ...
14666         (estimate_node_size_and_time): take NODE instead of EDGE;
14667         take POSSIBLE_TRUTHS as argument.
14668         (estimate_callee_size_and_time): Update.
14669         (estimate_ipcp_clone_size_and_time): New function.
14670         (do_estimate_edge_time): Update.
14671
14672 2011-05-08  Richard Guenther  <rguenther@suse.de>
14673
14674         PR middle-end/48908
14675         PR middle-end/48905
14676         * expmed.c (expand_shift_1): Compute adjusted constant shift
14677         amount manually.
14678
14679 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14680
14681         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14682
14683 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14684
14685         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14686
14687 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14688
14689         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14690
14691 2011-05-07  Jan Hubicka  <jh@suse.cz>
14692
14693         * ipa-inline-transform.c (inline_call): Account when program size
14694         decreases.
14695         * ipa-inline.c (relative_time_benefit): New function.
14696         (edge_badness): Reorganize to be power 2 based; fix thinko when
14697         computing badness for negative growth; update comments to match
14698         reality; better dumps.
14699
14700 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14701
14702         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14703         type to bool and adjust comment.
14704         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14705         (fold_mathfn_compare): Remove calls to global_bindings_p.
14706         (fold_inf_compare): Likewise.
14707         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14708         * c-tree.h (global_bindings_p): Adjust prototype.
14709         * c-decl.c (global_bindings_p): Return bool and simplify.
14710
14711 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14712
14713         PR tree-optimization/48837
14714         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14715         when accumulator transformation is performed.
14716
14717 2011-05-06  Jan Hubicka  <jh@suse.cz>
14718
14719         * i386.h (ix86_tune_indices): Add
14720         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14721         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14722         * i386.c (initial_ix86_tune_features): Add
14723         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14724         (software_prefetching_beneficial_p): Remove predicate.
14725         (ix86_option_override_internal): Use new macro.
14726
14727 2011-05-06  Jan Hubicka  <jh@suse.cz>
14728
14729         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14730
14731 2011-05-06  Jan Hubicka  <jh@suse.cz>
14732
14733         * cgraph.c (cgraph_add_thunk): Create real function node instead
14734         of alias node; finalize it and mark needed/reachale; arrange visibility
14735         to be right and add it into the corresponding same comdat group list.
14736         (dump_cgraph_node): Dump thunks.
14737         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14738         cgraph_function_with_gimple_body_p,
14739         cgraph_first_function_with_gimple_body,
14740         cgraph_next_function_with_gimple_body): New functions.
14741         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14742         New macros.
14743         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14744         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14745         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14746         devirtualization when optimizing.
14747         (verify_cgraph_node): Verify thunks.
14748         (cgraph_analyze_function): Analyze thunks.
14749         (cgraph_mark_functions_to_output): Output thunks only in combination
14750         with function they are assigned to.
14751         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14752         alias into normal node.
14753         (assemble_thunks): New functoin.
14754         (cgraph_expand_function): Use it.
14755         * lto-cgraph.c (lto_output_node): Stream thunks.
14756         (input_overwrite_node): Stream in thunks.
14757         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14758         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14759         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14760         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14761         (inline_analyze_function): Do not care about thunk jump functions.
14762         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14763         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14764         cgraph_function_with_gimple_body_p.
14765         * passes.c (do_per_function_toporder): Use
14766         cgraph_function_with_gimple_body_p.
14767         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14768         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14769         (function_called_by_processed_nodes_p): Likewise.
14770
14771 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14772
14773         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14774         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14775         entries.
14776         (mabi=): Replace with separate entries for mabi=altivec,
14777         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14778         mabi=ieeelongdouble and mabi=ibmlongdouble.
14779         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14780         check for -mabi=spe without SPE ABI support here.
14781         (rs6000_handle_option): Replace OPT_mabi_ handling with
14782         OPT_mabi_altivec and OPT_mabi_spe handling.
14783
14784 2011-05-06  Cary Coutant  <ccoutant@google.com>
14785
14786         * dwarf2out.c (contains_subprogram_definition): New function.
14787         (should_move_die_to_comdat): Call it.
14788
14789 2011-05-06  Jeff Law  <law@redhat.com>
14790
14791         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14792         remove_ctrl_stmt_and_useless_edges.
14793         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14794         (fixup_template_block, thread_single_edge): Likewise.
14795         (mark_threaded_blocks): Use THREAD_TARGET.
14796
14797 2011-05-06  Alan Modra  <amodra@gmail.com>
14798
14799         PR target/48900
14800         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14801         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14802
14803 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14804
14805         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14806         constraint modifier to "r".
14807
14808 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14809
14810         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14811         fall through for OPT_mcmodel_.
14812
14813 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14814
14815         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14816         instruction sizes.
14817         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14818
14819 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14820
14821         PR target/47930
14822         * config/arm/arm.opt (marm): Document it.
14823         (mthumb): Reject negative variant.
14824
14825 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14826
14827         PR target/48898
14828         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14829         Fix typo in "ccvt" variable name.
14830
14831 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14832
14833         PR target/48895
14834         * config/vms/vms-ar.c (main): Remove cwd variable.
14835
14836 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14837
14838         PR debug/48902
14839         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14840
14841 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14842
14843         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14844         * gimplify.c (gimplify_switch_expr): Likewise.
14845         * omp-low.c (expand_omp_sections): Likewise.
14846         * tree-eh.c (lower_try_finally_switch): Likewise.
14847         (lower_eh_dispatch): Likewise.
14848         * tree.h (build_case_label): Declare.
14849         * tree.c (build_case_label): Define.
14850
14851 2011-05-05  Jason Merrill  <jason@redhat.com>
14852
14853         PR c++/40975
14854         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14855         (copy_statement_list): Don't recurse.
14856         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14857         STATEMENT_LIST.
14858
14859 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14860
14861         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14862         through from -mfpu= handling.
14863         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14864
14865 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14866
14867         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14868         POST_MODIFY.
14869
14870 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14871
14872         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14873         for 11.31.
14874         (hppa[12]*-*-hpux11*): Ditto.
14875         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14876         * config/ia64/hpux-unix2003.h: New.
14877         * config/pa/pa-hpux1131.opt: New.
14878         * config/pa/pa-hpux1131.h: New.
14879         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14880         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14881         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14882
14883 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14884
14885         PR debug/48853
14886         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14887         instead of mode as 3rd argument to recursive call.
14888         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14889         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14890         VOIDmode.
14891         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14892         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14893         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14894         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14895
14896 2011-05-05  Julian Brown  <julian@codesourcery.com>
14897
14898         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14899         parenthesis in D-register case.
14900
14901 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14902
14903         * opt-functions.awk (var_type_struct): Handle Enum options.
14904         * optc-gen.awk: Don't check range of variables of character type.
14905         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14906         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14907         rs6000_sdata_name, rs6000_explicit_options): Remove.
14908         (rs6000_option_override_internal): Check for -malign-power here.
14909         Use global_options_set instead of rs6000_explicit_options.
14910         (rs6000_parse_fpu_option): Remove.
14911         (rs6000_handle_option): Access variables via opts and opts_set
14912         pointers.  Use error_at and warning_at.  Add fall-through
14913         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14914         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14915         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14916         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14917         here.  Don't use rs6000_parse_fpu_option.
14918         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14919         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14920         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14921         (mrecip=): Use Var.
14922         (mspe): Use Var and Save.
14923         (mtraceback=): Use Enum and Var.
14924         (rs6000_traceback_type): New Enum and EnumValue entries.
14925         (mfloat-gprs=): Use Enum, Var and Save.
14926         (rs6000_float_gprs): New Enum and EnumValue entries.
14927         (mlong-double-): use Var and Save.
14928         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14929         (malign-): Use Enum and Var.
14930         (rs6000_alignment_flags): New Enum and EnumValue entries.
14931         (mfpu=): Use Enum.
14932         (fpu_type_t): New Enum and EnumValue entries.
14933         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14934         global_options_set instead of rs6000_explicit_options.
14935         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14936         global_options_set instead of rs6000_explicit_options.
14937         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14938         global_options_set instead of rs6000_explicit_options.
14939         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14940         global_options_set instead of rs6000_explicit_options.
14941         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14942         global_options_set instead of rs6000_explicit_options.
14943         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14944         global_options_set instead of rs6000_explicit_options.
14945         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14946         definition.
14947         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14948         global_options_set instead of rs6000_explicit_options.
14949         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14950         (rs6000_cmodel): New Enum and EnumValue entries.
14951         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14952         global_options_set instead of rs6000_explicit_options.
14953         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14954         (mtls-size=): Use Enum and Var.
14955         (rs6000_tls_size): New Enum and EnumValue entries.
14956
14957 2011-05-05  Michael Matz  <matz@suse.de>
14958
14959         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14960         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14961         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14962         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14963         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14964         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14965         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14966         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14967         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14968         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14969         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14970         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14971         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14972         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14973         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14974         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14975
14976 2011-05-05  Richard Guenther  <rguenther@suse.de>
14977
14978         * expmed.c (expand_variable_shift): Rename to ...
14979         (expand_shift_1): ... this.  Take an expanded shift amount.
14980         For rotates recurse directly not building trees for the shift amount.
14981         (expand_variable_shift): Wrap around expand_shift_1.
14982         (expand_shift): Adjust.
14983
14984 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14985
14986         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14987
14988 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14989
14990         * tree.h (get_pending_sizes): Remove prototype.
14991         (put_pending_size): Likewise.
14992         (put_pending_sizes): Likewise.
14993         * stor-layout.c (pending_sizes): Delete.
14994         (get_pending_sizes): Likewise.
14995         (put_pending_size): Likewise.
14996         (put_pending_sizes): Likewise.
14997         (variable_size): Do not call put_pending_size and tidy up.
14998         * function.h (struct function): Remove dont_save_pending_sizes_p.
14999         * lto-streamer-in.c (input_function): Do not stream it.
15000         * lto-streamer-out.c (output_function): Likewise.
15001         * tree-inline.c (initialize_cfun): Do not copy it.
15002         * c-decl.c (store_parm_decls): Do not set it.
15003         * omp-low.c (create_task_copyfn): Likewise.
15004         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15005
15006 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
15007
15008         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15009         conditions.
15010         (*movdf_internal): Ditto.
15011         (*movdf_internal_nointeger): Ditto.
15012         (*movsf_internal): Ditto.
15013
15014 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15015
15016         * c-decl.c (finish_decl): Don't call get_pending_sizes.
15017         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
15018         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
15019         (c_variable_size): Remove.
15020         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
15021         call put_pending_sizes.
15022         (get_parm_info): Add parameter expr.  Use it to set
15023         arg_info->pending_sizes.
15024         (store_parm_decls): Use arg_info->pending_sizes instead or calling
15025         get_pending_sizes.
15026         * c-parser.c (c_parser_parms_declarator): Update call to
15027         c_parser_parms_list_declarator.
15028         (c_parser_parms_list_declarator): Take parameter expr.  Update
15029         call to push_parm_decl.  Update recursive call.  Don't call
15030         get_pending_sizes.  Update calls to get_parm_info.
15031         (c_parser_objc_method_definition): Update calls to
15032         c_parser_objc_method_decl and objc_start_method_definition.
15033         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15034         (c_parser_objc_method_decl): Add parameter expr.  Update call to
15035         grokparm.
15036         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15037         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15038         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15039
15040 2011-05-05  Michael Hope  <michael.hope@linaro.org>
15041
15042         PR pch/45979
15043         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15044         __ARM_EABI__ hosts.
15045
15046 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15047
15048         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15049         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15050         (spu_output_mi_thunk): New function.
15051
15052 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15053
15054         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15055         targetm.asm_out.print_operand.
15056         * config/sol2.c: Include target.h.
15057
15058 2011-05-04  Jan Hubicka  <jh@suse.cz>
15059
15060         * ipa-inline.c (reset_edge_caches): New function.
15061         (update_caller_keys): Add check_inlinablity_for; do not
15062         reset edge caches; remove now unnecesary loop.
15063         (update_callee_keys): Add comments; reset node_growth_cache of callee.
15064         (update_all_callee_keys): Likewise.
15065         (inline_small_functions): Sanity check cache; update code
15066         recomputing it.
15067
15068 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
15069
15070         PR rtl-optimization/47612
15071         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15072         as the last insn of the sequence to be moved.
15073
15074 2011-05-04  Tobias Burnus  <burnus@net-b.de>
15075
15076         PR fortran/48864
15077         * doc/invoke.texi (Ofast): Document that it
15078         enables Fortran's -fno-protect-parens.
15079
15080 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15081
15082         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15083
15084 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15085
15086         * stor-layout.c (variable_size): Do not issue errors.
15087
15088 2011-05-04  Richard Guenther  <rguenther@suse.de>
15089
15090         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15091         for array-ref indices.
15092         (tree_coverage_counter_addr): Likewise.
15093         (build_fn_info_type): Use size_int for index types.
15094         (build_gcov_info): Likewise.
15095
15096 2011-05-04  Richard Guenther  <rguenther@suse.de>
15097
15098         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15099         to build_int_cst.
15100         * c-typeck.c (really_start_incremental_init): Use bitsize_int
15101         for constructor indices.
15102         (push_init_level): Likewise.
15103
15104 2011-05-04  Richard Guenther  <rguenther@suse.de>
15105
15106         * explow.c (promote_mode): Move variable declarations before code.
15107
15108 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
15109
15110         * tree.h (build_function_type_array): Declare.
15111         (build_varargs_function_type_array): Declare.
15112         (build_function_type_vec, build_varargs_function_type_vec): Define.
15113         * tree.c (build_function_type_array_1): New function.
15114         (build_function_type_array): New function.
15115         (build_varargs_function_type_array): New function.
15116
15117 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
15118
15119         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15120         before setting STMT_VINFO_TYPE.
15121
15122 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15123
15124         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15125         instead of spu_pass_by_reference.
15126
15127 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15128
15129         * calls.c (emit_library_call_value_1): Invoke
15130         promote_function_mode hook on libcall arguments.
15131         * explow.c (promote_function_mode, promote_mode): Handle TYPE
15132         argument being NULL.
15133         * targhooks.c (default_promote_function_mode): Lisewise.
15134         * config/s390/s390.c (s390_promote_function_mode): Likewise.
15135         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15136
15137         * doc/tm.texi: Document that TYPE argument might be NULL.
15138
15139 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15140
15141         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15142
15143 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15144
15145         From Bernd Schmidt
15146         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15147
15148 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15149
15150         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15151         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15152         Move ...
15153         * mips-tfile.c: ... here.
15154         Don't include coretypes.h, tm.h, filenames.h.
15155         (saber_stop): Remove definition and all calls.
15156         [__SABER__]: Remove.
15157         (__LINE__): Remove default.
15158         (Size_t, Ptrdiff_t): Remove definitions.
15159         Replace by size_t, ptrdiff_t.
15160         [!MIPS_DEBUGGING_INFO]: Remove.
15161         (SHASH_SIZE, THASH_SIZE): Remove defaults.
15162         (progname): Add const.
15163         (STATIC): Remove.
15164         Replace all uses by static.
15165         (ALIGN_SYMTABLE_OFFSET): Remove default.
15166         * mips-tdump.c: Don't include coretypes.h, tm.h.
15167         Remove !MIPS_IS_STAB guard.
15168         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15169         $(TM_H), filenames.h dependencies.
15170         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15171
15172 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15173
15174         From Jie Zhang
15175         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15176         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15177
15178 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15179
15180         From Bernd Schmidt
15181         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15182         account and save/restore RETS.
15183         (PROFILE_BEFORE_PROLOGUE): Define.
15184         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
15185         the push insn to use predecrement.
15186
15187 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15188
15189         From Jie Zhang
15190         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15191
15192 2011-05-04  Nick Clifton  <nickc@redhat.com>
15193
15194         * config/mn10300/mn10300.c: Include cfgloop.h.
15195         (DUMP): New macro.
15196         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
15197         Lcc or a FLcc insn into the instruction stream.
15198         (mn10300_block_contains_call): New function.  Returns true if the
15199         given basic block contains a CALL insn.
15200         (mn10300_loop_contains_call_insn): New function.  Returns true if
15201         the given loop contains a CALL insn.
15202         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
15203         to use the SETLB and Lcc or FLcc insns.
15204         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15205         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15206         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
15207         disable the SETLB optimization.
15208         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15209         __SETLB__ or __NO_SETLB__.
15210         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15211         (movsf_internal): Handle MDR register.
15212         (cmpsi): Make visible.
15213         (setlb): New pattern.
15214         (Lcc): New pattern.
15215         (FLcc): New pattern.
15216
15217 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15218
15219         PR target/48860
15220         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15221         for reg<->xmm moves.
15222         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15223         (vec_concatv2di_rex64_sse): Ditto.
15224         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15225         (*vec_extractv2di_1_rex64): Ditto.
15226
15227         Revert:
15228         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15229
15230         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15231         reg<->xmm moves.
15232         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15233
15234 2011-05-04  Richard Guenther  <rguenther@suse.de>
15235
15236         * tree.h (int_const_binop): Remove notrunc argument.
15237         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
15238         create integer constants that are properly truncated.
15239         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15240         (const_binop): Remove zero notrunc argument to int_const_binop.
15241         (size_binop_loc): Likewise.
15242         (fold_div_compare): Likewise.
15243         (maybe_canonicalize_comparison_1): Likewise.
15244         (fold_comparison): Likewise.
15245         (fold_binary_loc): Likewise.
15246         (multiple_of_p): Likewise.
15247         * expr.c (store_constructor): Likewise.
15248         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15249         (maybe_fold_stmt_addition): Likewise.
15250         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15251         * stor-layout.c (layout_type): Likewise.
15252         * tree-data-ref.c (tree_fold_divides_p): Likewise.
15253         * tree-sra.c (build_ref_for_offset): Likewise.
15254         (build_user_friendly_ref_for_offset): Likewise.
15255         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15256         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15257         * tree-ssa-loop-niter.c (inverse): Likewise.
15258         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15259         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15260         * tree-switch-conversion.c (check_range): Likewise.
15261         (build_constructors): Likewise.
15262         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15263         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15264         (extract_range_from_assert): Likewise.
15265         (vrp_int_const_binop): Likewise.
15266         (extract_range_from_binary_expr): Likewise.
15267         (extract_range_from_unary_expr): Likewise.
15268         (check_array_ref): Likewise.
15269         (find_case_label_range): Likewise.
15270         (simplify_div_or_mod_using_ranges): Likewise.
15271         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15272         comparing case labels for merging.
15273
15274 2011-05-03  Mark Wielaard  <mjw@redhat.com>
15275
15276         * dwarf2out.c (debug_str_hash_forced): Removed.
15277         (gen_label_for_indirect_string): Removed.
15278         (get_debug_string_label): Removed.
15279         (AT_string_form): Generate label directly.
15280         (output_indirect_string): Test indirect_string_node for
15281         DW_FORM_strp instead of checking label and refcount.
15282         (prune_indirect_string): Removed.
15283         (prune_unused_types): Don't check debug_str_hash_forced or
15284         call prune_indirect_string.
15285
15286 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15287
15288         PR other/48093
15289         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15290
15291 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15292
15293         PR debug/47994
15294         PR debug/47919
15295         * combine.c (try_combine): Skip debug insns at m_split tests.
15296
15297 2011-04-26  Mark Wielaard  <mjw@redhat.com>
15298
15299         PR42288
15300         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15301         when info_section_emitted.
15302
15303 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
15304
15305         * config/mips/mips-opts.h: New.
15306         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15307         to mips-opts.h.
15308         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15309         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15310         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
15311         via opts pointer.
15312         * config/mips/mips.h (enum mips_code_readable_setting): Move to
15313         mips-opts.h.
15314         (mips_abi, mips_code_readable): Don't declare.
15315         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15316         (mabi=): Use Enum and Var.
15317         (mips_abi): New Enum and EnumValue entries.
15318         (mcode-readable=): Use Enum and Var.
15319         (mips_code_readable_setting): New Enum and EnumValue entries.
15320         (mr10k-cache-barrier=): Use Enum and Var.
15321         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15322
15323 2011-05-03  Jan Hubicka  <jh@suse.cz>
15324
15325         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15326         replace hash by pointer map.
15327         (cgraph_node_set_element_def, cgraph_node_set_element,
15328         const_cgraph_node_set_element, varpool_node_set_element_def,
15329         varpool_node_set_element, const_varpool_node_set_element): Remove.
15330         (free_cgraph_node_set, free_varpool_node_set): New function.
15331         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15332         * tree-emutls.c: Free varpool node set.
15333         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15334         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15335         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15336         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15337         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15338         Move here from ipa.c; implement using pointer_map
15339         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15340         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15341         debug_cgraph_node_set, varpool_node_set_new,
15342         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15343         dump_varpool_node_set, debug_varpool_node_set):
15344         Move to ipa-uitls.c.
15345         * passes.c (ipa_write_summaries): Update.
15346
15347 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15348
15349         From Mike Frysinger:
15350         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15351         bf542/bf544/bf547/bf548/bf549.
15352
15353 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15354
15355         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15356
15357 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15358
15359         From Bernd Schmidt:
15360         * config/bfin/bfin.md (MOVCC): New mode_macro.
15361         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15362         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
15363         comments from generated assembly.
15364
15365 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15366
15367         From Bernd Schmidt
15368         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15369         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15370         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15371         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15372         * config/bfin/lib1funcs.asm (___muldi3): New function.
15373
15374 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15375
15376         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15377         build_function_type_list instead of build_function_type.
15378         Rearrange initialization of `args' to do so.
15379
15380 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15381
15382         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15383         instead of build_function_type.
15384
15385 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15386
15387         * config/rs6000/rs6000.c (spe_init_builtins): Call
15388         build_function_type_list instead of build_function_type.
15389         (paired_init_builtins, altivec_init_builtins): Likewise.
15390         (builtin_function_type): Likewise.
15391
15392 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15393
15394         * config/sh/sh.c (sh_media_init_builtins): Call
15395         build_function_type_list instead of build_function_type.
15396
15397 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15398
15399         * config/sparc/sparc.c (sparc_file_end): Call
15400         build_function_type_list instead of build_function_type.
15401
15402 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15403
15404         * config/alpha/alpha.c (alpha_init_builtins): Call
15405         build_function_type_list instead of build_function_type.
15406
15407 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15408
15409         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15410         build_function_type_list instead of build_function_type.
15411
15412 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15413
15414         * config/iq2000/i2000.c (iq2000_init_builtins): Call
15415         build_function_type_list instead of build_function_type.
15416         Delete `endlink' variable.
15417
15418 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15419
15420         * config/avr/avr.c (avr_init_builtins): Call
15421         build_function_type_list instead of build_function_type.
15422
15423 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15424
15425         * config/picochip/picochip.c (picochip_init_builtins): Call
15426         build_function_type_list instead of build_function_type.
15427         Delete `endlink' variable.
15428
15429 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15430
15431         * config/bfin/bfin.c (bfin_init_builtins): Call
15432         build_function_type_list instead of build_function_type.
15433
15434 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15435
15436         From Bernd Schmidt
15437         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15438         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
15439
15440 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15441
15442         From Jie Zhang:
15443         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15444         libbffastfp overrides libgcc when -mfast-fp.
15445
15446 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15447
15448         Originally from Bernd Schmidt
15449         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15450         * config/bfin/bfin.c (override_options): Test it and error if
15451         TARGET_FDPIC.
15452
15453 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15454
15455         Originally From Bernd Schmidt
15456         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15457         FD-PIC.
15458
15459 2011-05-03  Jeff Law  <law@redhat.com>
15460
15461         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15462         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15463         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15464         than accessing AUX field directly.  Free the AUX field before
15465         clearing it.
15466         (thread_block, thread_through_loop_header): Likewise.
15467         (thread_single_edge, mark_threaded_blocks): Likewise.
15468         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
15469         (register_jump_thread): Do not attempt to thread to a NULL edge.
15470
15471 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15472
15473         * function.c (init_function_start): Call decide_function_section.
15474         * varasm.c (decide_function_section): New function.
15475         (assemble_start_function): When not using
15476         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15477         or first_function_block_is_cold.
15478         * rtl.h (decide_function_section): Declare.
15479
15480 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15481             Jakub Jelinek  <jakub@redhat.com>
15482
15483         PR target/48774
15484         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15485         only succeed if req_mode is the same as set_mode.
15486
15487 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15488
15489         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15490         * genemit.c (gen_exp): Handle RETURN.
15491         * emit-rtl.c (verify_rtx_sharing): Likewise.
15492         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15493         * rtl.c (copy_rtx): RETURN is shared.
15494         * rtl.h (enum global_rtl_index): Add GR_RETURN.
15495         (ret_rtx): New.
15496         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15497         * config/s390/s390.c (s390_emit_epilogue): Likewise.
15498         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15499         * config/cris/cris.c (cris_expand_return): Likewise.
15500         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15501         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15502         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15503         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15504         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15505         Likewise.
15506         * config/v850/v850.c (expand_epilogue): Likewise.
15507         * config/bfin/bfin.c (bfin_expand_call): Likewise.
15508         * config/arm/arm.md (epilogue): Likewise.
15509         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15510         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15511         variable to ret_reg.
15512
15513 2011-05-03  Richard Guenther  <rguenther@suse.de>
15514
15515         PR lto/48846
15516         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15517         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15518         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15519
15520 2011-05-03  Richard Guenther  <rguenther@suse.de>
15521
15522         * c-decl.c (grokdeclarator): Instead of looking at
15523         TREE_OVERFLOW check if the constant fits in the index type.
15524
15525 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15526
15527         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15528         (vec_store_lanes<mode><mode>): Likewise.
15529
15530 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15531
15532         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15533         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15534         convert_optab_index values.
15535         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15536         * genopinit.c (optabs): Initialize the new optabs.
15537         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15538         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15539         (expand_STORE_LANES): New functions.
15540         * tree.h (build_array_type_nelts): Declare.
15541         * tree.c (build_array_type_nelts): New function.
15542         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15543         (vect_model_load_cost): Likewise.
15544         (vect_store_lanes_supported, vect_load_lanes_supported)
15545         (vect_record_strided_load_vectors): Declare.
15546         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15547         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15548         (vect_transform_strided_load): Split out statement recording into...
15549         (vect_record_strided_load_vectors): ...this new function.
15550         * tree-vect-stmts.c (create_vector_array, read_vector_array)
15551         (write_vector_array, create_array_ref): New functions.
15552         (vect_model_store_cost): Add store_lanes_p argument.
15553         (vect_model_load_cost): Add load_lanes_p argument.
15554         (vectorizable_store): Try to use store-lanes functions for
15555         interleaved stores.
15556         (vectorizable_load): Likewise load-lanes and loads.
15557         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15558         to vect_model_store_cost.
15559         (vect_build_slp_tree): Likewise vect_model_load_cost.
15560
15561 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15562
15563         * hooks.h (hook_bool_mode_uhwi_false): Declare.
15564         * hooks.c (hook_bool_mode_uhwi_false): New function.
15565         * target.def (array_mode_supported_p): New hook.
15566         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15567         * doc/tm.texi: Regenerate.
15568         * stor-layout.c (mode_for_array): New function.
15569         (layout_type): Use it.
15570         * config/arm/arm.c (arm_array_mode_supported_p): New function.
15571         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15572
15573 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
15574
15575         PR target/48723
15576         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15577         for -fstack-check if the size to allocate is negative.
15578
15579 2011-05-02  Lawrence Crowl  <crowl@google.com>
15580
15581         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15582         (timevar_cond_start): New for starting a timer only when it is not
15583         already running.
15584         (timevar_cond_stop): New for stopping a timer when it was not already
15585         running.
15586
15587         * timevar.c (timevar_stop): Enable start/stop timers to start again.
15588         (timevar_cond_start): New as above.
15589         (timevar_cond_stop): New as above.
15590
15591         * timevar.def: Add start/stop timers for compiler phases,
15592         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15593         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15594         and TV_PHASE_FINALIZE.
15595         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15596         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15597         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15598         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15599         Make unused TV_OVERLOAD into a start/stop timer.
15600
15601         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15602         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15603         to indicate that they are start/stop timers.
15604
15605         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15606         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15607         Move initialization to do_compile.
15608         (do_compile): Add initialization from above.
15609         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15610
15611         * c-decl.c (c_write_global_declarations): Add start/stop of
15612         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15613
15614         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15615         or TV_PARSE_INLINE, as appropriate.
15616         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15617         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15618
15619 2011-05-02  Jason Merrill  <jason@redhat.com>
15620
15621         PR c++/40975
15622         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15623
15624 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
15625
15626         PR c/35445
15627         * c-decl.c (finish_decl): Only create a composite if the types are
15628         compatible.
15629
15630 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15631
15632         * config/fr30/fr30-protos.h (Mmode): Don't define.
15633         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
15634         definition where used.
15635         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15636         define.  Expand definitions where used.
15637         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15638         Expand definitions where used.
15639         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15640         rx_function_arg, rx_function_arg_advance,
15641         rx_function_arg_boundary): Expand definitions of those macros.
15642         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15643         definition where used.
15644
15645 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15646
15647         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15648         reg<->xmm moves.
15649         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15650         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15651         with *movv2sf_internal_rex64_avx.
15652         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15653         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15654         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15655         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15656         "vex" in "prefix" attribute calculation.
15657         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15658
15659 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15660
15661         PR target/47951
15662         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15663         inputs match the output.
15664
15665 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15666
15667         PR target/47955
15668         * config/m68k/m68k.c (m68k_expand_prologue): Set
15669         current_function_static_stack_size.
15670
15671 2011-05-02   Jan Hubicka  <jh@suse.cz>
15672
15673         * lto-streamer.c (lto_streamer_cache_insert_1,
15674         lto_streamer_cache_lookup, lto_streamer_cache_create,
15675         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15676         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15677
15678 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15679
15680         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15681         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15682         config/m68k/t-opts: New files.
15683         * config/m68k/m68k-tables.opt: New file (generated).
15684         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15685         extra_options and m68k/t-opts to tmake_file.
15686         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15687         (all_isas): Initialize using m68k-isas.def.
15688         (all_microarchs): Initialize using m68k-microarchs.def.
15689         (m68k_find_selection): Remove.
15690         (m68k_handle_option): Don't assert that global structures are in
15691         use.  Use error_at.  Access variables via opts pointer.  Don't
15692         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15693         directly for -m68020-40 and -m68020-60.
15694         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15695         m68k_tune_entry here.
15696         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15697         to m68k-opts.h.
15698         (m68k_library_id_string): Remove declaration.
15699         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15700         (m68k_library_id_string): New Variable.
15701         (march=, mcpu=, mtune=): Use Enum and Var.
15702
15703 2011-05-02  Richard Guenther  <rguenther@suse.de>
15704
15705         * varasm.c (output_constructor_regular_field): Compute zero-based
15706         index with double-ints.  Make sure to ICE instead of producing
15707         wrong code.
15708         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15709         in asserts.  Properly use a signed type.
15710
15711 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15712
15713         * config/i386/sse.md (V): New mode iterator.
15714         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15715         TARGET_SSE2.
15716         (V_256): Rename from AVX256MODE.
15717         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15718         condition to all users.
15719         (VF1): Ditto.
15720         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15721         condition to all users.
15722         (VF_128): Make V4SF mode unconditional.
15723         (VF_256): Rename from AVX256MODEF2P.
15724         (VI4F_128): Rename from SSEMODE4S.
15725         (VI8F_128): Rename from SSEMODE2D.
15726         (VI4F_256): Rename from AVX256MODE8P.
15727         (VI8F_256): Rename from AVX256MODE4P.
15728         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15729         (ssescalarmodesuffix): Remove SF and DF modes.
15730         (SSEMODE124): Remove.
15731         (SSEMODE1248): Ditto.
15732         (SSEMODEF2P): Ditto.
15733         (AVXMODEF2P): Ditto.
15734         (AVXMODEFDP): Ditto.
15735         (AVXMODEFSP): Ditto.
15736         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15737         unconditional.
15738         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15739         unconditional.
15740         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15741         xop_pcmov_<mode>256.  Use V mode iterator.
15742
15743         Adjust RTX patterns globally for renamed mode attributes.
15744
15745 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15746
15747         * haifa-sched.c (sched_emit_insn): Emit insn before first
15748         non-scheduled insn.  Inform back-end about new insn.  Add
15749         new insn to scheduled_insns list.
15750
15751 2011-05-02  Richard Guenther  <rguenther@suse.de>
15752
15753         PR tree-optimization/48822
15754         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15755         (process_scc): Indicate which iteration we start.
15756
15757 2011-05-02  Jan Hubicka  <jh@suse.cz>
15758
15759         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15760         (lto_section_overrun): New.
15761         * lto-section-out.c (append_block): Rename to ...
15762         (lto_append_block): ... this one; export.
15763         (lto_output_1_stream): Move lto lto-streamer.h
15764         (lto_output_data_stream): Update.
15765         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15766         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15767         functions.
15768
15769 2011-05-02  Richard Guenther  <rguenther@suse.de>
15770
15771         * tree.c (tree_code_counts): New global array.
15772         (record_node_allocation_statistics): Count individual tree codes.
15773         (dump_tree_statistics): Dump individual code stats.
15774
15775 2011-05-01  Jan Hubicka  <jh@suse.cz>
15776
15777         * ipa-inline.c (caller_growth_limits): Fix thinko when
15778         looking for largest stack frame.
15779         * ipa-inline.h (dump_inline_summary): Declare.
15780         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15781         on stack usage.
15782         (dump_inline_summary): Export.
15783         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15784
15785 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15786
15787         * reginfo.c (memory_move_cost): Change rclass argument type form
15788         'enum reg_class' to reg_class_t.
15789         * reload.h (memory_move_cost): Update prototype.
15790         * postreload.c reload_cse_simplify_set): Change type dclass var to
15791         reg_class_t.
15792         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15793         Update prototype.
15794         (ira_allocate_and_set_costs): Change aclass argument type form
15795         'enum reg_class' to reg_class_t.
15796         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15797         Change aclass argument type to reg_class_t.
15798         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15799         to reg_class_t.
15800         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15801         memory_move_cost call.
15802
15803         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15804         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15805         Change type tmp var to reg_class_t.
15806
15807 2011-04-30  Jan Hubicka  <jh@suse.cz>
15808
15809         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15810         inlining into function with flatten attribute.
15811         (want_inline_small_function_p): Be more realistic about inlining
15812         cold calls where callee size grows.
15813
15814 2011-04-30  Jan Hubicka  <jh@suse.cz>
15815
15816         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15817         flags.
15818
15819 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15820
15821         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15822         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15823         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15824         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15825         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15826         (print_operand): Rename to...
15827         (sparc_print_operand): ...this. Make static. Adjust
15828         sparc_print_operand function call.
15829         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15830         functions.
15831
15832 2011-04-30  Jan Hubicka  <jh@suse.cz>
15833
15834         PR middle-end/48752
15835         * ipa-inline.c (early_inliner): Disable when doing late
15836         addition of function.
15837
15838 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15839
15840         * dwarf2out.c (get_address_mode): New inline.
15841         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15842         if not dwarf_strict emit
15843         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15844         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15845         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15846         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15847         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15848         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15849         mem_loc_descriptor callers.
15850         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15851         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15852         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15853         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15854         (base_types): New variable.
15855         (get_base_type_offset, calc_base_type_die_sizes,
15856         base_type_for_mode, mark_base_types, base_type_cmp,
15857         move_marked_base_types): New functions.
15858         (calc_die_sizes): Assert that die_offset is 0 or equal to
15859         next_die_offset.
15860         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15861         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15862         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15863         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15864         (gen_subprogram_die): Don't give up on call site parameters
15865         with non-integral or large integral modes.  Adjust
15866         mem_loc_descriptor callers.
15867         (prune_unused_types): Call prune_unused_types_mark on base_types
15868         vector entries.
15869         (resolve_addr): Call mark_base_types.
15870         (dwarf2out_finish): Call move_marked_base_types.
15871
15872         PR tree-optimization/48809
15873         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15874         type.
15875         (gen_inbound_check): Don't compute index_expr - range_min in utype
15876         again, instead reuse SSA_NAME initialized in build_arrays.
15877         Remove two useless gsi_for_stmt calls.
15878
15879 2011-04-29  Jeff Law  <law@redhat.com>
15880
15881         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15882
15883 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15884
15885         * cgraph.h (cgraph_postorder): Remove declaration.
15886         * ipa-utils.h (ipa_free_postorder_info): Declare.
15887         (ipa_reverse_postorder): Likewise.
15888         * cgraphunit.c: Include ipa-utils.h.
15889         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15890         * ipa-inline.c: Include ipa-utils.h.
15891         (ipa_inline): Update call to ipa_reverse_postorder.
15892         * ipa-pure-const.c (propagate_pure_const): Update call to
15893         ipa_reduced_postorder and ipa_print_order.  Call
15894         ipa_free_postorder_info to clean up.
15895         (propagate_nothrow): Likewise.
15896         * ipa-reference.c (propagate): Removed a useless call to
15897         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15898         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15899         * ipa.c: Include ipa-utils.h.
15900         (ipa_profile): Update call to ipa_reverse_postorder.
15901         (cgraph_postorder): Moved to...
15902         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15903         (ipa_utils_print_order): Renamed to ipa_print_order.
15904         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15905         comments.
15906         (ipa_free_postorder_info): New function.
15907         * passes.c: Include ipa-utils.h.
15908         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15909         (ipa_write_summaries): Likewise.
15910         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15911         (cgraphunit.o): Likewise.
15912         (ipa.o): Likewise.
15913         (ipa-inline.o): Likewise.
15914
15915 2011-04-29  Jan Hubicka  <jh@suse.cz>
15916
15917         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15918         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15919         * ipa-inline.h (clause_t): Turn into unsigned int.
15920         * ipa-inline-analysis.c (add_clause): Do more simplification.
15921         (and_predicates): Shortcut more cases.
15922         (predicates_equal_p): Move forward; check that clauses are properly
15923         ordered.
15924         (or_predicates): Shortcut more cases.
15925         (edge_execution_predicate): Rewrite as...
15926         (set_cond_stmt_execution_predicate): ... this function; handle
15927         __builtin_constant_p.
15928         (set_switch_stmt_execution_predicate): New .
15929         (compute_bb_predicates): New.
15930         (will_be_nonconstant_predicate): Update TODO.
15931         (estimate_function_body_sizes): Use compute_bb_predicates
15932         and free them later, always try to estimate if stmt is constant.
15933         (estimate_time_after_inlining, estimate_size_after_inlining):
15934         Gracefully handle optimized out edges.
15935         (read_predicate): Fix off by one error.
15936
15937 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15938
15939         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15940
15941 2011-04-27  Xinliang David Li  <davidxl@google.com>
15942
15943         * tree-profile.c (init_ic_make_global_vars): Set
15944         tls attribute on ic vars.
15945         * coverage.c (coverage_end_function): Initialize
15946         function_list with zero.
15947
15948 2011-04-29  Richard Guenther  <rguenther@suse.de>
15949
15950         * builtins.c (fold_builtin_classify_type): Use integer_type_node
15951         for the type of the result.
15952         (fold_builtin_isascii): Likewise.
15953         (fold_builtin_toascii): Use integer_type_node where appropriate.
15954         (fold_builtin_logb): Likewise.
15955         (fold_builtin_frexp): Likewise.
15956         (fold_builtin_strstr): Likewise.
15957         (fold_builtin_strpbrk): Likewise.
15958         (fold_builtin_fputs): Likewise.
15959         (fold_builtin_sprintf): Likewise.
15960         (fold_builtin_snprintf): Likewise.
15961         (fold_builtin_printf): Likewise.
15962         (do_mpfr_remquo): Use a proper type for the assigned constant.
15963         (do_mpfr_lgamma_r): Likewise.
15964         * dwarf2out.c (resolve_one_addr): Use size_int.
15965         * except.c (init_eh): Likewise.
15966         (assign_filter_values): Use integer_type_node for filter values.
15967         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15968         indices.
15969         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15970         for EH region numbers.
15971         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15972         for the shift amount.
15973
15974 2011-04-29  Richard Guenther  <rguenther@suse.de>
15975
15976         * expr.h (expand_shift): Rename to ...
15977         (expand_variable_shift): ... this.
15978         (expand_shift): Take a constant shift amount.
15979         * expmed.c (expand_shift): Rename to ...
15980         (expand_variable_shift): ... this.
15981         (expand_shift): New wrapper around expand_variable_shift.
15982         * expr.c (convert_move, emit_group_load_1, emit_group_store,
15983         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15984         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15985         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15986         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15987         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15988         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15989         emit_store_flag_1, emit_store_flag): Likewise.
15990         * builtins.c (expand_builtin_signbit): Likewise.
15991         * calls.c (load_register_parameters): Likewise.
15992         * function.c (assign_parm_setup_block): Likewise.
15993         * lower-subreg.c (resolve_shift_zext): Likewise.
15994         * optabs.c (widen_bswap, expand_abs_nojump,
15995         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15996         * spu/spu.c (spu_expand_extv): Likewise.
15997         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15998
15999 2011-04-29  Richard Guenther  <rguenther@suse.de>
16000
16001         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16002         for the remapped region number.
16003         * predict.c (build_predict_expr): Use integer_type_node for the
16004         predict kind.
16005         * fold-const.c (fold_binary_loc): Use integer_type_node for
16006         the shift amount.  Use a proper type for the PLUS_EXPR operand.
16007
16008 2011-04-29  Michael Matz  <matz@suse.de>
16009
16010         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16011         other trees that just builtins.
16012         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16013
16014 2011-04-29  Richard Guenther  <rguenther@suse.de>
16015
16016         * tree-nested.c (get_trampoline_type): Use size_int.
16017         (get_nl_goto_field): Likewise.
16018         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16019         for all indexes.
16020         (lower_eh_constructs_2): Likewise.
16021         (lower_resx): Likewise.
16022         (lower_eh_dispatch): Likewise.
16023         * tree-mudflap.c (mf_build_string): Use size_int.
16024         (mudflap_register_call): Use integer_type_node for the flag.
16025         (mudflap_enqueue_constant): Use size_int.
16026         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16027         instead of rebuilding it.
16028
16029 2011-04-29  Richard Guenther  <rguenther@suse.de>
16030
16031         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16032         Handle OBJ_TYPE_REF.
16033         (find_func_aliases_for_call): Use it more consistently.
16034
16035 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
16036
16037         * haifa-sched.c (last_nondebug_scheduled_insn): New.
16038         (rank_for_schedule): Use it.
16039         (schedule_block): Set it.
16040
16041 2011-04-28  David Li  <davidxl@google.com>
16042
16043         * tree.c (crc32_string): Use crc32_byte.
16044         (crc32_byte): New function.
16045         * tree.h (crc32_byte): New function.
16046         * gcov.c (read_graph_file): Handle new cfg_cksum.
16047         (read_count_file): Ditto.
16048         * profile.c (instrument_values): Ditto.
16049         (get_exec_counts): Ditto.
16050         (read_profile_edge_counts): Ditto.
16051         (compute_branch_probabilities): Ditto.
16052         (compute_value_histograms): Ditto.
16053         (branch_prob): Ditto.
16054         (end_branch_prob): Ditto.
16055         * coverage.c (read_counts_file): Ditto.
16056         (get_coverage_counts): Ditto.
16057         (tree_coverage_counter_addr): Ditto.
16058         (coverage_checksum_string): Ditto.
16059         (coverage_begin_output): Ditto.
16060         (coverage_end_function): Ditto.
16061         (build_fn_info_type): Ditto.
16062         (build_fn_info_value): Ditto.
16063         * libgcov.c (gcov_exit): Ditto.
16064         * gcov-dump.c (tag_function): Ditto.
16065         (compute_checksum): Remove.
16066
16067 2011-04-29  Alan Modra  <amodra@gmail.com>
16068
16069         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16070         unspec plus offset.  Tidy macho code.
16071
16072 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16073
16074         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16075         node instead of a decl.  Update all callers.
16076         * cgraph.h: Update declaration.
16077
16078 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
16079
16080         PR tree-optimization/48765
16081         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16082         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16083         to indicate if loop aware SLP is being used.  Scan the statements
16084         and update the vectorization factor according to the type of
16085         vectorization before statement analysis.
16086         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16087         pass it to vect_analyze_loop_operations.
16088         (vectorizable_reduction): Set number of copies to 1 in case of pure
16089         SLP statement.
16090         * tree-vect-stmts.c (vectorizable_conversion,
16091         vectorizable_assignment, vectorizable_shift,
16092         vectorizable_operation, vectorizable_type_demotion,
16093         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16094         Likewise.
16095         (vectorizable_condition): Move the check that it is not SLP
16096         vectorization before the number of copies check.
16097         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16098         to vectorize the loop using SLP.
16099
16100 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
16101
16102         PR middle-end/48597
16103         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16104         inline asm.
16105
16106 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
16107
16108         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16109         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16110         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16111         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16112         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16113         linux*.h headers.
16114         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16115         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16116         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16117         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16118         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16119         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16120         REG_NAME.
16121         * config/i386/linux.h (REG_NAME): Don't define.
16122         * config/i386/linux64.h (REG_NAME): Don't define.
16123         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16124         Undefine before defining.
16125
16126 2011-04-28  Jan Hubicka  <jh@suse.cz>
16127
16128         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16129         nonconstant_names array.
16130         (estimate_function_body_sizes): Build nonconstant_names array; handle
16131         BUILT_IN_CONSTANT_P.
16132
16133 2011-04-28  Richard Guenther  <rguenther@suse.de>
16134
16135         PR bootstrap/48804
16136         Revert
16137         2011-04-28  Richard Guenther  <rguenther@suse.de>
16138
16139         * tree-ssa-structalias.c (solve_constraints): Build succ graph
16140         as late as possible.
16141
16142 2011-04-28  Richard Guenther  <rguenther@suse.de>
16143
16144         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16145         (debug_constraint): Do it here.
16146         (dump_constraints): And here.
16147         (rewrite_constraints): And here.
16148         (dump_constraint_edge): Remove.
16149         (dump_constraint_graph): Rewrite to produce DOT output.
16150         (solve_constraints): Build succ graph as late as possible.
16151         Dump constraint graphs before and after solving.
16152
16153 2011-04-28  Richard Guenther  <rguenther@suse.de>
16154
16155         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16156         New function split out from ...
16157         (find_func_aliases): ... here.  Call it.
16158         (find_func_aliases_for_call): Likewise.
16159
16160 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16161
16162         * internal-fn.h (internal_fn_name_array): Declare.
16163         (internal_fn_flags_array): Likewise.
16164
16165 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16166
16167         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
16168         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16169         Move from sse.md.
16170         (ssemodefsuffix): Remove.
16171         (ssevecmodesuffix): New mode attribute.
16172         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16173         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16174         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16175         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16176         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16177         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16178         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16179         ssemodesuffix mode attribute.
16180         (float splitters): Use ssevecmodesuffix mode attribute.
16181         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16182         (sseinsmode): Rename from avxvecmode.
16183         (avxsizesuffix): Rename from avxmodesuffix.
16184         (sseintvecmode): Rename from avxpermvecmode.
16185         (ssedoublevecmode): Rename from ssedoublesizemode.
16186         (ssehalfvecmode): Rename from avxhalfvecmode.
16187         (ssescalarmode): Rename from avxscalarmode.
16188         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16189         templates for ssemodesuffix mode attribute.
16190         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16191         mode attribute.
16192
16193         Adjust RTX patterns globally for renamed mode attributes.
16194
16195 2011-04-27  Jan Hubcika  <jh@suse.cz>
16196
16197         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16198         * ipa-inline-analysis.c: Include alloc-pool.h.
16199         (edge_predicate_pool): New.
16200         (trye_predicate_p): New function
16201         (false_predicate_p): New function.
16202         (add_clause): Sanity check that false clauses are "optimized";
16203         never add clauses to predicate that is already known to be false.
16204         (and_predicate): Use flase_predicate_p.
16205         (evaulate_predicate): Rename to ...
16206         (evaluate_predicate): ... this one; update all callers; assert
16207         that false is not listed among possible truths.
16208         (dump_predicate): Use true_predicate_p.
16209         (account_size_time): Use false_predicate_p.
16210         (evaulate_conditions_for_edge): Rename to ...
16211         (evaluate_conditions_for_edge) ... this one.
16212         (edge_set_predicate): New function.
16213         (inline_edge_duplication_hook): Duplicate edge predicates.
16214         (inline_edge_removal_hook): Free edge predicates.
16215         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16216         (dump_inline_summary): Update.
16217         (estimate_function_body_sizes): Set edge predicates.
16218         (estimate_calls_size_and_time): Handle predicates.
16219         (estimate_callee_size_and_time): Update.
16220         (remap_predicate): Add toplev_predicate; update comment.
16221         (remap_edge_predicates): New function.
16222         (inline_merge_summary): Compute toplev predicate; update.
16223         (read_predicate): New function.
16224         (read_inline_edge_summary): Use it.
16225         (inline_read_section): Likewise.
16226         (write_predicate): New function.
16227         (write_inline_edge_summary): Use it.
16228         (inline_write_summary): Likewise.
16229         (inline_free_summary): Free alloc pool and edge summary vec.
16230
16231 2011-04-27  Richard Guenther  <rguenther@suse.de>
16232
16233         * tree-ssa-structalias.c (changed_count): Remove.
16234         (changed): Use a bitmap.
16235         (unify_nodes): Adjust.
16236         (do_sd_constraint): Likewise.
16237         (do_ds_constraint): Likewise.
16238         (do_complex_constraint): Likewise.
16239         (solve_graph): Likewise.
16240
16241 2011-04-27  Jan Hubicka  <jh@suse.cz>
16242
16243         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16244
16245 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16246
16247         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16248         (avx_vperm2f128_*_operand): Ditto.
16249         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16250         Use avx_vpermilp_parallel in insn condition.
16251         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16252         Use avx_vperm2f128_parallel in insn condition.
16253
16254 2011-04-27  Richard Guenther  <rguenther@suse.de>
16255
16256         * Makefile.in (tree-ssa-structalias.o): Remove
16257         gt-tree-ssa-structalias.h dependency.
16258         (GTFILES): Remove tree-ssa-structalias.c.
16259         * tree.c (allocate_decl_uid): New function.
16260         (make_node_stat): Use it.
16261         (copy_node_stat): Likewise.
16262         * tree.h (allocate_decl_uid): Declare.
16263         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16264         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16265         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16266         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16267         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16268         (struct heapvar_map): Likewise.
16269         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16270         heapvar_insert): Likewise.
16271         (make_heapvar_for): Rename to ...
16272         (make_heapvar): ... this.  Simplify.
16273         (fake_var_decl_obstack): New global var.
16274         (build_fake_var_decl): New function.
16275         (make_constraint_from_heapvar): Adjust.
16276         (handle_lhs_call): Likewise.
16277         (create_function_info_for): Likewise.
16278         (intra_create_variable_infos): Likewise.
16279         (init_alias_vars): Allocate fake_var_decl_obstack.
16280         (init_alias_heapvars, delete_alias_heapvars): Remove.
16281         (compute_points_to_sets): Do not call init_alias_heapvars.
16282         (ipa_pta_execute): Likewise.
16283         (delete_points_to_sets): Free fake_var_decl_obstack.
16284
16285 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16286
16287         * config/spu/divmovti4.c (union qword_UTItype): New data type.
16288         (si_from_UTItype, si_to_UTItype): New functions.
16289         (__udivmodti4): Use them to implement type-punning.
16290         * config/spu/multi3.c (union qword_TItype): New data type.
16291         (si_from_TItype, si_to_TItype): New functions.
16292         (__multi3): Use them to implement type-punning.
16293
16294 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16295
16296         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16297
16298 2011-04-27  Jan Hubicka  <jh@suse.cz>
16299
16300         * ipa-prop.c (function_insertion_hook_holder): New holder.
16301         (ipa_add_new_function): New function.
16302         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16303         Register/deregister holder.
16304
16305 2011-04-27  Richard Guenther  <rguenther@suse.de>
16306
16307         PR tree-optimization/48772
16308         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16309
16310 2011-04-27  Richard Guenther  <rguenther@suse.de>
16311
16312         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16313         TARGET_MEM_REF handling.
16314
16315 2011-04-27  Nick Clifton  <nickc@redhat.com>
16316
16317         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16318         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16319         (REG_CLASS_NAMES): Likewise.
16320         (REG_CLASS_CONTENTS): Likewise.
16321         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16322         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16323         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
16324         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
16325         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
16326         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16327         duplicate register classes.
16328         (frv_class_likely_spilled_p): Likewise.
16329         (frv_register_move_cost): Likewise.
16330
16331         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16332         end of the regno_reg_class array.
16333
16334 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
16335
16336         PR c/48742
16337         * c-typeck.c (build_binary_op): Don't wrap arguments if
16338         int_operands is true.
16339
16340 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
16341
16342         PR target/48767
16343         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16344         targetm.calls.must_pass_in_stack for void type.
16345
16346 2011-04-26  Jan Hubicka  <jh@suse.cz>
16347
16348         * cgraphbuild.c (build_cgraph_edges): Update call
16349         of cgraph_create_edge and cgraph_create_indirect_edge.
16350         * cgraph.c (cgraph_create_edge_including_clones,
16351         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16352         cgraph_update_edges_for_call_stmt_node): Do not take nest
16353         argument; do not initialize call_stmt_size/time.
16354         (dump_cgraph_node): Do not dump nest.
16355         (cgraph_clone_edge): Do not take loop_nest argument;
16356         do not propagate it; do not clone call_stmt_size/time.
16357         (cgraph_clone_node): Likewise.
16358         (cgraph_create_virtual_clone): Update.
16359         * cgraph.h (struct cgraph_edge): Remove
16360         call_stmt_size/call_stmt_time/loop_nest.
16361         (cgraph_create_edge, cgraph_create_indirect_edge,
16362         cgraph_create_edge_including_clones, cgraph_clone_node): Update
16363         prototype.
16364         * tree-emutls.c (gen_emutls_addr): Update.
16365         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16366         loop_nest; handle indirect calls, too.
16367         (clone_inlined_nodes): Do not care about updating inline summaries.
16368         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16369         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16370         stream call_stmt_size/call_stmt_time/loop_nest.
16371         * ipa-inline.c (edge_badness): Update.
16372         (ipa_inline): dump summaries after inlining.
16373         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16374         New.
16375         (inline_edge_summary): New function.
16376         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16377         (inline_edge_removal_hook): Handle edge summaries.
16378         (inline_edge_duplication_hook): New hook.
16379         (inline_summary_alloc): Alloc hooks.
16380         (initialize_growth_caches): Do not register removal hooks.
16381         (free_growth_caches); Do not free removal hook.
16382         (dump_inline_edge_summary): New function.
16383         (dump_inline_summary): Use it.
16384         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16385         (inline_update_callee_summaries): New function.
16386         (inline_merge_summary): Use it.
16387         (do_estimate_edge_time, do_estimate_edge_growth): Update.
16388         (read_inline_edge_summary): New function.
16389         (inline_read_section): Use it.
16390         (write_inline_edge_summary): New function.
16391         (inline_write_summary): Use it.
16392         (inline_free_summary): Free edge new holders.
16393         * tree-inline.c (copy_bb): Update.
16394
16395 2011-04-26  Jason Merrill  <jason@redhat.com>
16396
16397         * tree-eh.c (lower_try_finally_switch): Create the label along with
16398         the CASE_LABEL_EXPR.
16399
16400 2011-04-26  David S. Miller  <davem@davemloft.net>
16401             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16402
16403         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16404         * configure: Regenerate.
16405
16406 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16407
16408         PR target/48258
16409         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16410         reduction.
16411         (VEC_reduc): New code iterator and splitters for vector reduction.
16412         (VEC_reduc_name): Ditto.
16413         (VEC_reduc_rtx): Ditto.
16414         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16415         (reduc_<VEC_reduc_name>_v4sf): Ditto.
16416
16417         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16418         support for extracting SF on VSX.
16419
16420         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16421         generating xscvspdp.
16422         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16423         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16424         double add, minimum, maximum vector reduction.
16425         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16426         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16427         optimize double vector reduction.
16428         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16429
16430 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
16431
16432         * config/fr30/fr30.h (inhibit_libc): Don't define.
16433         * config/m32r/m32r-protos.h: Correct comment.
16434         * config/v850/v850.h (GHS_default_section_names,
16435         GHS_current_section_names): Use tree, not union tree_node *.
16436
16437 2011-04-26  Xinliang David Li  <davidxl@google.com>
16438
16439         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16440         * c-family/c-opts.c (c_common_handle_option): Set
16441         warn_maybe_uninitialized.
16442         * opts.c (common_handle_option): Ditto.
16443         * common.opt:  New option.
16444         * tree-ssa.c (warn_uninit): Add one more parameter.
16445         (warn_uninitialized_var): Pass warning code.
16446         * tree-flow.h: Interface change.
16447
16448 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16449
16450         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16451         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16452         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16453
16454 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16455
16456         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16457         * config/mips/mips.opt (mmips-tfile): Remove.
16458
16459         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16460         mips-tdump reference to ...
16461         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
16462         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16463         reference by Tru64 UNIX.
16464
16465 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
16466
16467         PR debug/48768
16468         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16469         is error_mark_node, set value to NULL.
16470
16471         PR tree-optimization/48734
16472         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16473         if return value from maybe_fold_*_comparsions isn't something
16474         the code is prepared to handle.
16475
16476 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
16477
16478         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16479         mode check.
16480         (ext_QIreg_nomode_operands): Remove.
16481         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16482         (*andsi_1): Ditto.
16483         (*andhi_1): Ditto.
16484
16485 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
16486
16487         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16488
16489 2011-04-26  Richard Guenther  <rguenther@suse.de>
16490
16491         * c-typeck.c (build_unary_op): Do not expand array-refs via
16492         pointer arithmetic.  Only adjust qualifiers for function types.
16493
16494 2011-04-26  Richard Guenther  <rguenther@suse.de>
16495
16496         PR middle-end/48694
16497         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16498         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16499         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
16500         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16501
16502 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
16503
16504         * doc/extend.texi: Document __underlying_type.
16505
16506 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
16507
16508         * config/rs6000/titan.md (automata_option "progress"): Remove.
16509
16510 2011-04-25  Jeff Law  <law@redhat.com>
16511
16512         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16513
16514 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
16515
16516         * system.h (ENUM_BITFIELD): Remove.
16517
16518 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
16519             Eric Botcazou  <ebotcazou@adacore.com>
16520
16521         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16522         for STORE_FLAG_VALUE==-1 case.
16523
16524 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
16525
16526         PR target/43804
16527         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16528         LEGITIMATE_PIC_OPERAND_P.
16529
16530 2011-04-24  Jan Hubicka  <jh@suse.cz>
16531
16532         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16533         WPA hack.
16534         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16535         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16536         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16537         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16538         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16539         Sanity check predicate length.
16540         (remap_predicate): Likewise; sanity check jump functions.
16541         (inline_read_section, inline_write_summary): Sanity check
16542         predicate length.
16543
16544 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
16545
16546         PR other/48748
16547         * doc/extend.texi (Type Traits): Document __is_standard_layout,
16548         __is_literal_type, and __is_trivial; update throughout about
16549         possibly cv-qualified void types.
16550
16551 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16552
16553         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16554         testsuite and make it version agnostic.
16555
16556 2011-04-22  Jan Hubicka  <jh@suse.cz>
16557
16558         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16559
16560 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
16561
16562         PR c/48685
16563         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16564         to VOID_TYPE even around MODIFY_EXPR.
16565
16566 2011-04-22  Mike Stump  <mikestump@comcast.net>
16567
16568         * gensupport.c (read_md_rtx): Fix typo in comment.
16569         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16570         comment.
16571
16572 2011-04-22  Jan Hubicka  <jh@suse.cz>
16573
16574         * gengtype.c (open_base_files): Add ipa-inline.h include.
16575         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16576         ipa-prop.c; update all uses.
16577         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16578         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16579         merge summary of inlined function into former caller.
16580         * ipa-inline.c (max_benefit): Remove.
16581         (edge_badness): Compensate for removal of benefits.
16582         (update_caller_keys): Use
16583         reset_node_growth_cache/reset_edge_growth_cache.
16584         (update_callee_keys): Likewise.
16585         (update_all_callee_keys): Likewise.
16586         (inline_small_functions): Do not collect max_benefit; do not reset
16587         estimated_growth; call free_growth_caches and initialize_growth_caches.
16588         * ipa-inline.h (struct condition, type clause_t, struct predicate,
16589         struct size_time_entry): New structures.
16590         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16591         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16592         and estimated_growth.
16593         (edge_growth_cache_entry): New structure.
16594         (node_growth_cache, edge_growth_cache): New global vars.
16595         (estimate_growth): Turn into inline.
16596         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16597         initialize_growth_caches, free_growth_caches): Declare.
16598         (estimate_edge_growth): Rewrite.
16599         (estimate_edge_time): Implement as inline cache lookup.
16600         (reset_node_growth_cache, reset_edge_growth_cache): New inline
16601         functions.
16602         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16603         (NUM_CONDITIONS): New constant.
16604         (predicate_conditions): New enum.
16605         (IS_NOT_CONSTANT): New constant.
16606         (edge_removal_hook_holder): New var.
16607         (node_growth_cache, edge_growth_cache): New global vars.
16608         (true_predicate, single_cond_predicate, false_predicate,
16609         not_inlined_predicate, add_condition, add_clause, and_predicates,
16610         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16611         dump_clause, dump_predicate, account_size_time,
16612         evaulate_conditions_for_edge): New functions.
16613         (inline_summary_alloc): Move to heap.
16614         (inline_node_removal_hook): Clear condition and entry vectors.
16615         (inline_edge_removal_hook): New function.
16616         (initialize_growth_caches, free_growth_caches): New function.
16617         (dump_inline_summary): Update.
16618         (edge_execution_predicate): New function.
16619         (will_be_nonconstant_predicate): New function.
16620         (estimate_function_body_sizes): Compute BB and constantness predicates.
16621         (compute_inline_parameters): Do not clear estimated_growth.
16622         (estimate_edge_size_and_time): New function.
16623         (estimate_calls_size_and_time): New function.
16624         (estimate_callee_size_and_time): New function.
16625         (remap_predicate): New function.
16626         (inline_merge_summary): New function.
16627         (do_estimate_edge_time): New function based on...
16628         (estimate_edge_time): ... this one.
16629         (do_estimate_edge_growth): New function.
16630         (do_estimate_growth): New function based on....
16631         (estimate_growth): ... this one.
16632         (inline_analyze_function): Analyze after deciding on jump functions.
16633         (inline_read_section): New function.
16634         (inline_read_summary): Use it.
16635         (inline_write_summary): Write all the new data.
16636         * ipa-prop.c (ipa_get_param_decl_index): Export.
16637         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16638         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16639         Declare.
16640         (ipa_get_lattice): Move here from ipa-cp.c
16641         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16642         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16643         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16644         cgraph_edge_inlinable_p): Remove.
16645         * cgraphunit.c: Include ipainline.h
16646         (cgraph_process_new_functions): Update call of
16647         compute_inline_parameters.
16648
16649 2011-04-22  Richard Guenther  <rguenther@suse.de>
16650
16651         * tree.c (build_int_cst): Properly create canonicalized integer
16652         constants.
16653         (build_int_cst_type): Remove scary comments.
16654
16655 2011-04-22  Xinliang David Li  <davidxl@google.com>
16656
16657         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16658         by default when -Wno-error is not specified.
16659         * opts-global.c (decode_options): Remove call to
16660         control_warning_options.
16661
16662 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16663
16664         PR tree-optimization/48717
16665         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16666         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16667
16668 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16669
16670         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16671         definition where used.
16672
16673 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16674
16675         PR c/48716
16676         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16677         TREE_STATIC variables declared inside of some OpenMP construct.
16678
16679 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16680
16681         PR middle-end/48585
16682         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16683
16684 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16685
16686         PR c/36750
16687         * c-typeck.c (pop_init_level): Do not warn about initializing
16688         with ` = {0}'.
16689
16690 2011-04-22  Alan Modra  <amodra@gmail.com>
16691
16692         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16693         when returning call_cookie.
16694         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16695         pointers, to functions with no more vector args than the current
16696         function, and some non-local calls for ABI_V4.
16697         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16698         sibcall_nonlocal_aix64): Combine to ..
16699         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16700         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16701         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16702         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16703         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16704         operand.
16705         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16706         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16707         sibcall_value_symbolic_64): Delete.
16708
16709 2011-04-21  Xinliang David Li  <davidxl@google.com>
16710
16711         * cgraph.h: Remove pid.
16712         * cgraph.c: Remove pid.
16713         * value-prof.c (init_node_map): New function.
16714         (del_node_map): New function.
16715         (find_func_by_funcdef_no): New function.
16716         (gimple_ic_transform): Call new function.
16717         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16718         * function.c (get_last_funcdef_no): New function.
16719         * function.h (get_last_funcdef_no): New function.
16720         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16721         to libgcov function.
16722         (tree-profiling): Call node map init and delete function.
16723
16724 2011-04-21  Ian Lance Taylor  <iant@google.com>
16725
16726         * godump.c (go_format_type): Use exported Go name for anonymous
16727         field name.
16728
16729 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16730
16731         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16732         Call builtin_function_type_list instead of builtin_function_type.
16733         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16734
16735 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16736
16737         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16738         build_function_type_list instead of build_function_type.
16739         Delete variable `endlink'.
16740
16741 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16742
16743         * config/s390/s390.c (s390_init_builtins): Call
16744         build_function_type_list instead of build_function_type.
16745
16746 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16747
16748         * config/ia64/ia64.c (ia64_init_builtins): Call
16749         build_function_type_list instead of builtin_function_type.
16750
16751 2011-04-21  Easwaran Raman  <eraman@google.com>
16752
16753         * cfgexpand.c (stack_var): Remove OFFSET...
16754         (add_stack_var): ...and its reference here...
16755         (expand_stack_vars): ...and here.
16756         (stack_var_cmp): Sort by descending order of size.
16757         (partition_stack_vars): Change heuristic.
16758         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16759         (dump_stack_var_partition): Add newline after each partition.
16760
16761 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16762             Jeff Law  <law@redhat.com>
16763
16764         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16765         * gengtype.c (matching_file_name_substitute): Likewise.
16766
16767 2011-04-21  Richard Guenther  <rguenther@suse.de>
16768
16769         PR lto/48703
16770         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16771
16772 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16773
16774         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16775
16776 2011-04-21  Richard Guenther  <rguenther@suse.de>
16777
16778         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16779         file name.
16780
16781 2011-04-21  Richard Guenther  <rguenther@suse.de>
16782
16783         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16784         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16785         Use DECL_P, not SSA_VAR_P.
16786         (ptr_derefs_may_alias_p): Likewise.
16787         (ptr_deref_may_alias_ref_p_1): Likewise.
16788         (decl_refs_may_alias_p): Likewise.
16789         (refs_may_alias_p_1): Likewise.
16790         (ref_maybe_used_by_call_p_1): Likewise.
16791         (call_may_clobber_ref_p_1): Likewise.
16792         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16793         are either MEM_REF or TARGET_MEM_REF.
16794         (indirect_refs_may_alias_p): Likewise.
16795         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16796         for MEM_EXPR of indirect calls.
16797
16798 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16799
16800         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16801         (dst_file_info_struct): Remove flen field.
16802         (lookup_filename): Remove code that set flen field.
16803
16804 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16805
16806         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16807
16808 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16809
16810         PR target/48708
16811         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16812         vec_extract and vec_concat for non-SSE4_1 targets.
16813
16814 2011-04-21  Richard Guenther  <rguenther@suse.de>
16815
16816         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16817         return statements.
16818
16819 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16820
16821         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16822         undefine.
16823         (FILE): Don't undefine.
16824
16825 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16826
16827         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16828         struct rtx_def *.
16829         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16830         struct rtx_def *.
16831         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16832         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16833         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16834         rtx_def *.
16835         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16836         definitions where used.
16837         * config/microblaze/microblaze.h (struct microblaze_args): Use
16838         rtx, not struct rtx_def *.
16839         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16840         rtx_def *.
16841         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16842         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16843         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16844         not struct rtx_def *.
16845         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16846         struct rtx_def *.
16847         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16848         rtx_def *.
16849         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16850
16851 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16852
16853         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16854         operand_equal_p to compare DR_BASE_ADDRESSes.
16855         (vect_check_interleaving): Likewise.
16856
16857 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16858
16859         PR target/46329
16860         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16861         for all Neon struct constants.
16862
16863 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16864
16865         * target.def (legitimate_constant_p): New hook.
16866         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16867         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16868         * doc/tm.texi: Regenerate.
16869         * hooks.h (hook_bool_mode_rtx_true): Declare.
16870         * hooks.c (hook_bool_mode_rtx_true): Define.
16871         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16872         * calls.c (precompute_register_parameters): Replace uses of
16873         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16874         (emit_library_call_value_1): Likewise.
16875         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16876         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16877         * ira-costs.c (scan_one_insn): Likewise.
16878         * recog.c (general_operand, immediate_operand): Likewise.
16879         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16880         * reload1.c (init_eliminable_invariants): Likewise.
16881
16882         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16883         mode argument.
16884         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16885         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16886         argument.
16887         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16888         * config/alpha/predicates.md (input_operand): Update call to
16889         alpha_legitimate_constant_p.
16890
16891         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16892         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16893         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16894         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16895         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16896         (arm_legitimate_constant_p): New functions.
16897         (arm_cannot_force_const_mem): Make static.
16898
16899         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16900
16901         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16902         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16903         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16904         instead of bfin_legitimate_constant_p.
16905         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16906         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16907
16908         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16909
16910         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16911
16912         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16913         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16914         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16915         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16916
16917         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16918         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16919         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16920
16921         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16922         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16923         * config/i386/i386.c (legitimate_constant_p): Rename to...
16924         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16925         argument.
16926         (ix86_cannot_force_const_mem): Update accordingly.
16927         (ix86_legitimate_address_p): Likewise.
16928         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16929         * config/i386/i386.md: Update commentary.
16930
16931         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16932         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16933         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16934         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16935
16936         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16937
16938         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16939         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16940         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16941         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
16942
16943         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16944         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16945         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16946
16947         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16948         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16949         (m32r_legitimate_constant_p): New function.
16950
16951         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16952         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16953         LEGITIMATE_CONSTANT_P.
16954         (LEGITIMATE_CONSTANT_P): Delete.
16955         * config/m68k/m68k.c (m68k_expand_prologue): Call
16956         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16957         (m68k_legitimate_constant_p): New function.
16958         * config/m68k/m68k.md: Update comments.
16959
16960         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16961         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16962         (mcore_legitimate_constant_p): New function.
16963
16964         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16965         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16966         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16967         Add a mode argument.
16968         (mep_legitimate_address): Update accordingly.
16969         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16970
16971         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16972         Delete.
16973         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16974         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16975         static.  Check OP's mode for VOIDmode.
16976         (microblaze_legitimate_constant_p): New function.
16977         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16978
16979         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16980         * config/mips/mips.c (mips_legitimate_constant_p): New function.
16981         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16982         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16983         * config/mips/predicates.md: Update comments.
16984
16985         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16986         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16987         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16988         (mmix_legitimate_constant_p): Make static, return a bool, and take
16989         a mode argument.
16990         (mmix_print_operand_address): Update accordingly.
16991
16992         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16993         Delete.
16994         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16995         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16996         static.  Add a mode argument.
16997         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16998
16999         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17000
17001         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17002         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17003         (pa_legitimate_constant_p): New function.
17004
17005         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17006
17007         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17008         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17009         (pdp11_legitimate_constant_p): New function.
17010
17011         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17012         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17013         (rs6000_legitimate_constant_p): New function.
17014
17015         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17016         (rx_legitimate_constant_p): ...this.
17017         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17018         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17019         (rx_legitimate_constant_p): ...this.
17020         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17021         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17022
17023         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17024         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17025         * config/s390/s390.c (legitimate_constant_p): Rename to...
17026         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
17027         and add a mode argument.
17028         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17029
17030         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17031
17032         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17033         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17034         (sh_legitimate_constant_p): New function.
17035
17036         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17037         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17038         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17039         (legitimate_constant_p): Rename to...
17040         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
17041         argument.
17042         (constant_address_p): Update accordingly.
17043
17044         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17045         argument and return a bool.
17046         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17047         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17048         (spu_legitimate_constant_p): Add a mode argument and return a bool.
17049         (spu_rtx_costs): Update accordingly.
17050         * config/spu/predicates.md (vec_imm_operand): Likewise.
17051
17052         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17053
17054         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17055         * config/v850/v850.c (v850_legitimate_constant_p): New function.
17056         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17057
17058         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17059         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17060         * config/vax/vax.c (legitimate_constant_p): Likewise.
17061
17062         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17063         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17064         (xtensa_legitimate_constant_p): New function.
17065
17066 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17067
17068         * target.def (cannot_force_const_mem): Add a mode argument.
17069         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17070         * doc/tm.texi: Regenerate.
17071         * hooks.h (hook_bool_mode_rtx_false): Declare.
17072         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17073         (hook_bool_mode_const_rtx_true): Likewise.
17074         (hook_bool_mode_rtx_false): New function.
17075         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17076         to be non-VOID.  Update call to cannot_force_const_mem.
17077         (find_reloads): Update accordingly.
17078         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17079         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17080         argument.
17081         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17082         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17083         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17084         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17085         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17086         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17087         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17088         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17089         (m68k_cannot_force_const_mem): ...this new function.
17090         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17091         argument.
17092         (mips_const_insns, mips_legitimize_const_move): Update calls.
17093         (mips_secondary_reload_class): Likewise.
17094         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17095         (pa_cannot_force_const_mem): ...this new function.
17096         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17097         (rs6000_cannot_force_const_mem): ...this new function.
17098         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17099         argument.
17100         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17101         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17102         to...
17103         (xtensa_cannot_force_const_mem): ...this new function.
17104
17105 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17106
17107         * config/mips/mips.c (mips16_build_function_stub): Call
17108         build_function_type_list instead of build_function_type.
17109         (mips16_build_call_stub): Likewise.
17110
17111 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17112
17113         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17114         instead of build_function_type.
17115
17116 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17117
17118         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17119         instead of build_function_type.
17120
17121 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
17122
17123         PR target/48678
17124         * config/i386/i386.md (insv): Change operand 0 constraint to
17125         "register_operand".  Change operand 1 and 2 constraint to
17126         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
17127         * config/i386/sse.md (sse4_1_pinsrb): Export.
17128         (sse2_pinsrw): Ditto.
17129         (sse4_1_pinsrd): Ditto.
17130         (sse4_1_pinsrq): Ditto.
17131         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17132         * config/i386/i386.c (ix86_expand_pinsr): New.
17133
17134 2011-04-20  Easwaran Raman  <eraman@google.com>
17135
17136         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17137         containing union type only with -fstrict-aliasing.
17138
17139 2011-04-20  Jim Meyering  <meyering@redhat.com>
17140
17141         Remove useless if-before-free tests.
17142         * calls.c (expand_call, save_area): Likewise.
17143         * cfgcleanup.c (try_forward_edges): Likewise.
17144         * collect2.c (collect_execute): Likewise.
17145         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17146         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17147         * coverage.c (coverage_checksum_string): Likewise.
17148         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17149         * cselib.c (cselib_init): Likewise.
17150         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17151         (df_set_clean_cfg): Likewise.
17152         * function.c (free_after_compilation): Likewise.
17153         * gcc.c (do_spec_1, main): Likewise.
17154         * gcov.c (create_file_names): Likewise.
17155         * gensupport.c (identify_predicable_attribute): Likewise.
17156         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17157         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17158         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17159         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17160         * ipa-pure-const.c (local_pure_const): Likewise.
17161         * ipa-reference.c (propagate): Likewise.
17162         * ira-costs.c (free_ira_costs): Likewise.
17163         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17164         * matrix-reorg.c (mat_free): Likewise.
17165         * prefix.c (get_key_value): Likewise.
17166         * profile.c (compute_value_histograms): Likewise.
17167         * reload1.c (free_reg_equiv): Likewise.
17168         * sched-deps.c (free_deps): Likewise.
17169         * sel-sched-ir.c (fence_clear): Likewise.
17170         * sese.c (set_rename, if_region_set_false_region): Likewise.
17171         * tree-data-ref.c (free_rdg): Likewise.
17172         * tree-eh.c (lower_try_finally): Likewise.
17173         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17174         * tree-ssa-live.c (delete_var_map): Likewise.
17175         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17176         * tree-ssa-pre.c (phi_trans_add): Likewise.
17177
17178 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
17179
17180         PR tree-optimization/48611
17181         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17182         beyond ERT_MUST_NOT_THROW region.
17183
17184 2011-04-20  Catherine Moore  <clm@codesourcery.com>
17185
17186         * config/mips/mips.opt (mfix-24k): New.
17187         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17188         * config/mips/mips.md (length): Increase by 4 for stores if
17189         fixing 24K errata.
17190         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17191         all noreorder if fixing 24K errata.
17192         * doc/invoke.texi: Document mfix-24k.
17193
17194 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
17195
17196         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17197         quad-word modes, reduce to 9-bit index range when above 1016 limit.
17198
17199 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17200
17201         * config/arm/arm.c (arm_gen_constant): Move movw support ....
17202         (const_ok_for_op): ... to here.
17203
17204 2011-04-20  Kai Tietz  <ktietz@redhat.com>
17205
17206         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17207         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17208
17209 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17210
17211         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17212
17213 2011-04-20  Richard Guenther  <rguenther@suse.de>
17214
17215         PR tree-optimization/47892
17216         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17217         are if-convertible.
17218
17219 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17220
17221         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17222
17223 2011-04-20  Tristan Gingold  <gingold@adacore.com>
17224
17225         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17226
17227 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
17228
17229         PR target/18145
17230
17231         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17232         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17233         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17234         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17235         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17236
17237         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17238         New prototype.
17239
17240         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17241         (avr_asm_named_section, avr_asm_output_aligned_common,
17242         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17243         New functions to update...
17244         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17245         (avr_asm_init_sections): Overwrite section callbacks for
17246         data_section, bss_section.
17247         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17248         from here to...
17249         (avr_file_end): ...here.
17250
17251 2011-04-20  Richard Guenther  <rguenther@suse.de>
17252
17253         PR middle-end/48695
17254         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17255         objects and types here.  Adjust for their offset before comparing.
17256
17257 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17258
17259         * tree-vect-stmts.c (vectorizable_store): Only chain one related
17260         statement per copy.
17261
17262 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17263
17264         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17265         (GIMPLE_H): Include $(INTERNAL_FN_H).
17266         (OBJS-common): Add internal-fn.o.
17267         (internal-fn.o): New rule.
17268         * internal-fn.def: New file.
17269         * internal-fn.h: Likewise.
17270         * internal-fn.c: Likewise.
17271         * gimple.h: Include internal-fn.h.
17272         (GF_CALL_INTERNAL): New gf_mask.
17273         (gimple_statement_call): Put fntype into a union with a new
17274         internal_fn field.
17275         (gimple_build_call_internal): Declare.
17276         (gimple_build_call_internal_vec): Likewise.
17277         (gimple_call_same_target_p): Likewise.
17278         (gimple_call_internal_p): New function.
17279         (gimple_call_internal_fn): Likewise.
17280         (gimple_call_fntype): Return null for internal calls.
17281         (gimple_call_set_fntype): Assert that the function is not internal.
17282         (gimple_call_set_fn): Likewise.
17283         (gimple_call_set_fndecl): Likewise.
17284         (gimple_call_set_internal_fn): New function.
17285         (gimple_call_addr_fndecl): Handle null functions.
17286         (gimple_call_return_type): Likewise null types.
17287         * gimple.c (gimple_build_call_internal_1): New function.
17288         (gimple_build_call_internal): Likewise.
17289         (gimple_build_call_internal_vec): Likewise.
17290         (gimple_call_same_target_p): Likewise.
17291         (gimple_call_flags): Handle calls to internal functions.
17292         (gimple_call_fnspec): New function.
17293         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17294         (gimple_has_side_effects): Handle null functions.
17295         (gimple_rhs_has_side_effects): Likewise.
17296         (gimple_call_copy_skip_args): Handle calls to internal functions.
17297         * cfgexpand.c (expand_call_stmt): Likewise.
17298         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17299         * gimple-fold.c (gimple_fold_call): Handle null functions.
17300         (gimple_fold_stmt_to_constant_1): Don't fold
17301         calls to internal functions.
17302         * gimple-low.c (gimple_check_call_args): Handle calls to internal
17303         functions.
17304         * gimple-pretty-print.c (dump_gimple_call): Likewise.
17305         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17306         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17307         (do_warn_unused_result): Likewise.
17308         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17309         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17310         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17311         the target of a call.
17312         (initialize_hash_element): Update accordingly.
17313         (hashable_expr_equal_p): Use gimple_call_same_target_p.
17314         (iterative_hash_hashable_expr): Handle calls to internal functions.
17315         (print_expr_hash_elt): Likewise.
17316         * tree-ssa-pre.c (can_value_number_call): Likewise.
17317         (eliminate): Handle null functions.
17318         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17319         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17320         (find_func_aliases): Likewise.
17321         * value-prof.c (gimple_ic_transform): Likewise.
17322         (gimple_indirect_call_to_profile): Likewise.
17323         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17324         * lto-streamer-out.c (output_gimple_stmt): Likewise.
17325
17326 2011-04-19  Jan Hubicka  <jh@suse.cz>
17327
17328         * ipa-inline-transform.c (save_inline_function_body): Add comments.
17329         * ipa-inline.c (inline_small_functions): Compute summaries first,
17330         populate heap later.
17331
17332 2011-04-19  Jan Hubicka  <jh@suse.cz>
17333
17334         * cgraph.h (save_inline_function_body): Remove.
17335         * ipa-inline-transform.c: New file, broke out of...
17336         * ipa-inline.c: ... this one; Update toplevel comment.
17337         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17338         make global.
17339         (update_noncloned_frequencies): Move to ipa-inline-transform.c
17340         (cgraph_mark_inline_edge): Rename to inline_call; move to
17341         ipa-inline-transform.c.
17342         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17343         move to ipa-inline-transform.c
17344         (recursive_inlining, inline_small_functions, flatten_function,
17345         ipa_inline, inline_always_inline_functions,
17346         early_inline_small_functions): Update.
17347         (inline_transform): Move to ipa-inline-transform.c.
17348         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17349         Declare.
17350         * Makefile.in (ipa-inline-transform.o): New file.
17351         * cgraphunit.c (save_inline_function_body): Move to
17352         ipa-inline-transform.c
17353
17354 2011-04-19  DJ Delorie  <dj@redhat.com>
17355
17356         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17357         registers if we already know there aren't any.
17358         (m32c_emit_epilogue): Don't emit a barrier here.
17359         (m32c_emit_eh_epilogue): Likewise.
17360         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17361         operands at expand time.
17362         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17363         int" wchar type.
17364         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17365         duplicates.  Provide aliases instead.
17366         * config/m32c/prologue.md (eh_return): Emit a barrier here.
17367         (eh_epilogue): Add a "(return)" here as a hint to other parts of
17368         the compiler.
17369
17370 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
17371
17372         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17373         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17374         (general_or_i64_p, sparc_register_move_cost): New function.
17375
17376 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17377
17378         * doc/install.texi (Configuration, --enable-threads): Remove mach.
17379         Add lynx, mipssde.  Sort table.
17380
17381 2011-04-19  Xinliang David Li  <davidxl@google.com>
17382
17383         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17384         not negative.
17385
17386 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
17387
17388         PR target/48678
17389         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17390         is a SUBREG with non-MODE_INT mode inside of it.
17391
17392 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17393
17394         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17395         also according to actual contants.
17396         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17397         (gimple_fold_call): Use it.
17398         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17399
17400 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17401
17402         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17403         non-pointer assignments.
17404
17405 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17406
17407         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17408         account anc_offset and otr_type from the indirect edge info.
17409         * ipa-prop.c (get_ancestor_addr_info): New function.
17410         (compute_complex_ancestor_jump_func): Assignment analysis moved to
17411         get_ancestor_addr_info, call it.
17412         (ipa_note_param_call): Do not initialize information about polymorphic
17413         calls, return the indirect call graph edge.  Remove the last
17414         parameter, adjust all callers.
17415         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17416         parameters.  Initialize polymorphic information in the indirect edge.
17417
17418 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17419
17420         PR lto/48148
17421         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17422         the types if they have different enumeration identifiers.
17423
17424 2011-04-19  Jan Hubicka  <jh@suse.cz>
17425
17426         * cgraph.h (cgraph_optimize_for_size_p): Declare.
17427         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17428         * predict.c (cgraph_optimize_for_size_p): Break out from ...
17429         (optimize_function_for_size_p) ... here.
17430
17431 2011-04-19  Richard Guenther  <rguenther@suse.de>
17432
17433         PR lto/48207
17434         * tree.c (free_lang_data): Do not reset the decl-assembler-name
17435         langhook.
17436
17437 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17438
17439         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17440         if DECL_NO_INLINE_WARNING_P is set on the function.
17441
17442 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
17443
17444         PR fortran/47976
17445         * reload1.c (inc_for_reload): Return void. All callers changed.
17446         (emit_input_reload_insns): Don't try to delete previous output
17447         reloads to a register, or record spill_reg_store for autoincs.
17448
17449 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
17450
17451         * gengtype.h: Updated copyright year.
17452         (struct input_file_st): Add inpisplugin field.
17453         (type_fileloc): New function.
17454         * gengtype.c
17455         (write_typed_struct_alloc_def): Add gcc_assert.
17456         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17457         (write_typed_alloc_defns): Don't output for plugin files.
17458         (input_file_by_name): Clear inpisplugin field.
17459         (main): Set inpisplugin field for plugin files.
17460
17461 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
17462
17463         * gengtype-state.c (string_eq): New.
17464         (read_state): Use string_eq instead of strcmp when creating the
17465         state_ident_tab.
17466
17467 2011-04-19  Wei Guozhi  <carrot@google.com>
17468
17469         PR target/47855
17470         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17471         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17472         linkage.
17473         * config/arm/constraints.md (Uu): New constraint.
17474         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17475
17476 2011-04-19  Tristan Gingold  <gingold@adacore.com>
17477
17478         * config.gcc (-*-*-*vms): Added.
17479         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17480         definitions moved.
17481         * config/vms/vms-ld.c: New file.
17482         * config/vms/vms-ar.c: New file.
17483         * config/vms/t-vmsnative: New file.
17484
17485 2011-04-18  Xinliang David Li  <davidxl@google.com>
17486
17487         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17488
17489 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17490
17491         PR middle-end/48661
17492         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17493         if TREE_TYPE (v) is non-NULL.
17494
17495         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17496         gimple_get_virt_mehtod_for_binfo.
17497         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17498         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17499         callers.
17500         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17501
17502 2011-04-18  Michael Matz  <matz@suse.de>
17503             Steve Ellcey  <sje@cup.hp.com>
17504
17505         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17506         use its mode as source mode if it isn't VOIDmode.
17507
17508 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
17509
17510         * doc/passes.texi: Fill crossref nodes.
17511
17512 2011-04-18  Jim Meyering  <meyering@redhat.com>
17513
17514         Fix doubled-word typos in comments and strings
17515         * config/alpha/vms-unwind.h: s/for for/for/
17516         * config/arm/unwind-arm.h: Likewise.
17517         * config/microblaze/microblaze.c: Likewise.
17518         * config/sh/constraints.md: s/in in/in/
17519         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17520
17521 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
17522
17523         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17524         (AVX_FLOAT_MODE_P): Ditto.
17525         (AVX128_VEC_FLOAT_MODE_P): Ditto.
17526         (AVX256_VEC_FLOAT_MODE_P): Ditto.
17527         (AVX_VEC_FLOAT_MODE_P): Ditto.
17528         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17529         (UNSPEC_MASKSTORE): Ditto.
17530         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17531         Merge from <sse>_movmsk<ssemodesuffix> and
17532         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
17533         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
17534         iterator.
17535         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17536         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17537         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17538
17539 2011-04-18  Jan Hubicka  <jh@suse.cz>
17540
17541         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17542
17543         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17544         (want_inline_function_called_once_p): Break out the logic from
17545         ipa_inline.
17546         (edge_badness): Ensure that profile is not misupdated.
17547         (lookup_recursive_calls): Prioritize by call frequencies.
17548         (inline_small_functions): Move program size estimates here;
17549         actually process whole queue even when unit growth has been
17550         met. (to properly compute inline_failed reasons and for the
17551         case unit size decrease.) Revisit comments on recursive inlining.
17552         (ipa_inline): Remove unit summary code; first inline hot calls
17553         of functions called once, cold calls next.
17554         (order, nnodes): Remove unused variables.
17555         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17556         (GTFILES): Remove ipa-inline.c
17557         * sel-sched.c (fill_insns): Silence uninitialized var warning.
17558
17559 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17560
17561         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17562
17563 2011-04-18  Jie Zhang  <jie@codesourcery.com>
17564             Richard Earnshaw  <rearnsha@arm.com>
17565
17566         * arm.c (neon_builtin_type_bits): Remove.
17567         (typedef enum neon_builtin_mode): New.
17568         (T_MAX): Don't define.
17569         (typedef enum neon_builtin_datum): Remove bits, codes[],
17570         num_vars and base_fcode.  Add mode, code and fcode.
17571         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17572         VAR10): Change accordingly.
17573         (neon_builtin_data[]): Change accordingly
17574         (arm_init_neon_builtins): Change accordingly.
17575         (neon_builtin_compare): Remove.
17576         (locate_neon_builtin_icode): Remove.
17577         (arm_expand_neon_builtin): Change accordingly.
17578
17579         * arm.h (enum arm_builtins): Move to ...
17580         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17581
17582         * arm.c (arm_builtin_decl): Declare.
17583         (TARGET_BUILTIN_DECL): Define.
17584         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17585         (arm_builtin_decls[]): New.
17586         (arm_init_neon_builtins): Store builtin declarations in
17587         arm_builtin_decls[].
17588         (arm_init_tls_builtins): Likewise.
17589         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
17590         (arm_builtin_decl): New.
17591
17592 2011-04-18  Richard Guenther  <rguenther@suse.de>
17593
17594         * tree.c (upper_bound_in_type): Build properly canonicalized
17595         INTEGER_CSTs.
17596         (lower_bound_in_type): Likewise.
17597
17598 2011-04-18  Richard Guenther  <rguenther@suse.de>
17599
17600         * gimple.h (gimple_call_addr_fndecl): New function.
17601         (gimple_call_fndecl): Use it.
17602         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17603         for direct calls.
17604         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17605         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17606
17607 2011-04-18  Richard Guenther  <rguenther@suse.de>
17608
17609         PR middle-end/48650
17610         * tree.c (build_string): STRING_CST is now derived from tree_typed.
17611
17612 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17613
17614         PR lto/48492
17615         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17616         DECL_IN_CONSTANT_POOL without RTL.
17617
17618 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
17619             Ira Rosen  <ira.rosen@linaro.org>
17620
17621         PR target/48252
17622         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17623         to match neon_vzip/vuzp/vtrn_internal.
17624         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17625         outputs explicitly dependent on both inputs.
17626         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17627
17628 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17629
17630         PR tree-optimization/48616
17631         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17632         whether the shift is by scalar or vector based on whether all SLP
17633         scalar stmts have the same rhs.
17634
17635 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
17636
17637         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17638         memory operands.
17639
17640 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17641
17642         PR target/43700
17643         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17644         registers.
17645
17646 2011-04-17  Jan Hubicka  <jh@suse.cz>
17647
17648         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17649         * cgrpahunit.c (cgraph_finalize_function): Do not set
17650         finalized_by_frontend.
17651         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17652         finalized_by_frontend.
17653
17654 2011-04-17  Jan Hubicka  <jh@suse.cz>
17655
17656         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17657         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17658         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17659         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17660         method.
17661         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17662         gimple-fold.c
17663         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17664
17665 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17666
17667         PR lto/48538
17668         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17669         is non-null before accessing it.
17670         (input_cgraph): Remove trailing spaces.
17671
17672 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17673
17674         * params.def (sms-min-sc): New param flag.
17675         * modulo-sched.c (sms_schedule): Use it.
17676         * doc/invoke.texi (sms-min-sc): Document it.
17677
17678 2011-04-17  Jan Hubicka  <jh@suse.cz>
17679
17680         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17681         present, also set gimple_call_set_cannot_inline.
17682         * ipa-inline.c: Update toplevel comment.
17683         (MAX_TIME): Remove.
17684         (cgraph_clone_inlined_nodes): Fix linebreaks.
17685         (cgraph_check_inline_limits): Restructure to ...
17686         (caller_growth_limits): ... this one; be more tolerant
17687         on growth in nested inline chains; add explanatory comment;
17688         fix stack accounting thinko introduced by previous patch.
17689         (cgraph_default_inline_p): Remove.
17690         (report_inline_failed_reason): New function.
17691         (can_inline_edge_p): New function.
17692         (can_early_inline_edge_p): New function.
17693         (leaf_node_p): Move upwards in file.
17694         (want_early_inline_function_p): New function.
17695         (want_inline_small_function_p): New function.
17696         (want_inline_self_recursive_call_p): New function.
17697         (cgraph_edge_badness): Rename to ...
17698         (edge_badness) ... this one; fix linebreaks.
17699         (update_edge_key): Update call of edge_baddness; add
17700         detailed dump about queue updates.
17701         (update_caller_keys): Use can_inline_edge_p and
17702         want_inline_small_function_p.
17703         (cgraph_decide_recursive_inlining): Rename to...
17704         (recursive_inlining): Use can_inline_edge_p and
17705         want_inline_self_recursive_call_p; simplify and remove no longer
17706         valid FIXME.
17707         (cgraph_set_inline_failed): Remove.
17708         (add_new_edges_to_heap): Use can_inline_edge_p and
17709         want_inline_small_function_p.
17710         (cgraph_decide_inlining_of_small_functions): Rename to ...
17711         (inline_small_functions): ... this one; cleanup; use
17712         can/want predicates; cleanup debug ouput; work edges till fibheap
17713         is exhausted and do not stop once unit growth is reached; remove
17714         later loop processing remaining edges.
17715         (cgraph_flatten): Rename to ...
17716         (flatten_function): ... this one; use can_inline_edge_p
17717         and can_early_inline_edge_p predicates.
17718         (cgraph_decide_inlining): Rename to ...
17719         (ipa_inline): ... this one; remove unreachable nodes before
17720         inlining functions called once; simplify the pass.
17721         (cgraph_perform_always_inlining): Rename to ...
17722         (inline_always_inline_functions): ... this one; use
17723         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17724         (cgraph_decide_inlining_incrementally): Rename to ...
17725         (early_inline_small_functions): ... this one; simplify
17726         using new predicates; cleanup; make dumps prettier.
17727         (cgraph_early_inlining): Rename to ...
17728         (early_inliner): newer inline regular functions into always-inlines;
17729         fix updating of call stmt summaries.
17730         (pass_early_inline): Update for new names.
17731         (inline_transform): Fix formating.
17732         (gate_cgraph_decide_inlining): Rename to ...
17733         (pass_ipa_inline): ... this one.
17734         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17735         * ipa-inline-analysis.c (dump_inline_summary): Update.
17736         (compute_inline_parameters): Do not compute disregard_inline_limits;
17737         look for mismatching arguments.
17738         (estimate_growth): Fix handlig of non-trivial self recursion.
17739         (inline_read_summary): Do not read info->disregard_inline_limits.
17740         (inline_write_summary): Do not write info->disregard_inline_limits.
17741         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17742         and move all checks into can_inline_edge_p predicate; re-enable code
17743         comparing optimization levels.
17744         (expand_call_inline): Do not test inline_forbidden_into_p.
17745         * Makefile.in (ipa-inline.o): Update arguments.
17746
17747 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17748
17749         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17750
17751 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17752
17753         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17754
17755 2011-04-17  Michael Matz  <matz@suse.de>
17756
17757         PR tree-optimization/48622
17758         PR lto/48645
17759         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17760         in same order as they're written.
17761
17762 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17763
17764         * config/pa/predicates.md: Reorganize and simplify predicates.
17765         Eliminate duplicate code checks.
17766         (arith_operand): Rename to arith14_operand
17767         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17768         * config/pa/pa.md: Use renamed operands.
17769         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17770         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17771         arith11_operand, adddi3_operand, indexed_memory_operand,
17772         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17773         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17774         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17775         move_dest_operand, move_src_operand, prefetch_cc_operand,
17776         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17777         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17778         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17779         div_operand, int5_operand, movb_comparison_operator,
17780         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17781         arith_double_operand, ireg_operand, lhs_lshift_operand,
17782         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17783         integer_store_memory_operand): Likewise.
17784         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17785         (integer_store_memory_operand, read_only_operand,
17786         function_label_operand, borx_reg_operand,
17787         non_hard_reg_operand): Likewise.
17788         (eq_neq_comparison_operator): Delete unused operator.
17789         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17790         function_label_operand.
17791         (emit_move_sequence): Likewise.
17792
17793 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17794
17795         * config/i386/sse.md (sseunpackmode): New mode attribute.
17796         (ssepackmode): Ditto.
17797         (vec_pack_trunc_<mode>): Macroize expander from
17798         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17799         (vec_unpacks_lo_<mode>): Macroize expander from
17800         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17801         (vec_unpacks_hi_<mode>): Macroize expander from
17802         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17803         (vec_unpacku_lo_<mode>): Macroize expander from
17804         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17805         (vec_unpacku_hi_<mode>): Macroize expander from
17806         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17807         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17808         ix86_expand_sse4_unpack.
17809         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17810
17811 2011-04-16  Jan Hubicka  <jh@suse.cz>
17812
17813         * cgraphbuild.c: Include ipa-inline.h.
17814         (reset_inline_failed): Use initialize_inline_failed.
17815         * cgraph.c: Include ipa-inline.h.
17816         (cgraph_create_node_1): Do not initialize estimated_growth.
17817         (initialize_inline_failed): More to ipa-inline-analysis.c
17818         (dump_cgraph_node): Do not dump inline flags.
17819         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17820         and disregard_inline_limits flags.
17821         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17822         time, size, estimated_growth.
17823         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17824         Update.
17825         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17826         DECL_DISREGARD_INLINE_LIMITS.
17827         (cgraph_analyze_function): Do not initialize
17828         node->local.disregard_inline_limits.
17829         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17830         inlinable, versionable and disregard_inline_limits.
17831         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17832         cgraph_check_inline_limits, cgraph_default_inline_p,
17833         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17834         add_new_edges_to_heap): Update.
17835         (cgraph_decide_inlining_of_small_function): Update; set
17836         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17837         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17838         cgraph_decide_inlining_incrementally): Update.
17839         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17840         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17841         time, size and estimated_growth parameters.
17842         (estimate_edge_growth): Update.
17843         (initialize_inline_failed): Declare.
17844         * ipa-split.c: Include ipa-inline.h
17845         (execute_split_functions): Update.
17846         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17847         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17848         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17849         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17850         estimated_growth to INT_MIN.
17851         (inline_node_duplication_hook): Likewise.
17852         (dump_inline_summary): Dump new fields.
17853         (compute_inline_parameters): Update.
17854         (estimate_edge_time, estimate_time_after_inlining,
17855         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17856         inline_write_summary):
17857         (initialize_inline_failed): Move here from cgraph.c.
17858         * tree-sra.c: Include ipa-inline.h.
17859         (ipa_sra_preliminary_function_checks): Update.
17860         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17861         ipa-inline.h.
17862
17863 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17864
17865         * config/i386/sse.md (V16): New mode iterator.
17866         (VI1, VI8): Ditto.
17867         (AVXMODEQI, AVXMODEDI): Remove.
17868         (sse2, sse3): New mode attribute.
17869         (mov<mode>): Use V16 mode iterator.
17870         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17871         (push<mode>1): Use V16 mode iterator.
17872         (movmisalign<mode>): Ditto.
17873         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17874         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17875         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17876         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17877         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17878         avx_movdqu<avxmodesuffix>.
17879         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17880         *avx_movdqu<avxmodesuffix>.
17881         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17882         avx_lddqu<avxmodesuffix>.
17883         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17884         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17885         avx_movnt<AVXMODEDI:mode>.
17886         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17887         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17888
17889 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17890
17891         PR target/48629
17892         * haifa-sched.c (prune_ready_list, schedule_block): Use
17893         sched_pressure_p rather than flag_sched_pressure.
17894
17895 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17896
17897         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17898         cgraph_get_node instead of cgraph_get_create_node.
17899
17900 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17901
17902         * cfgexpand.c (expand_debug_expr): Use
17903         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17904
17905 2011-04-15  Michael Matz  <matz@suse.de>
17906
17907         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17908         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17909         * function.c (gimplify_parameters): Ditto.
17910         * gimplify.c (gimplify_vla_decl): Ditto.
17911
17912         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17913         (gimple_call_set_alloca_for_var): New inline function.
17914         (gimple_call_alloca_for_var_p): Ditto.
17915         * gimple.c (gimple_build_call_from_tree): Remember
17916         CALL_ALLOCA_FOR_VAR_P state.
17917         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17918
17919         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17920         calls if they were for VLA objects.
17921
17922 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17923
17924         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17925         of ADR_EXPRs.
17926
17927 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17928
17929         PR middle-end/48601
17930         * tree-emutls.c (lower_emutls_function_body): Call
17931         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17932         result is non-NULL.
17933
17934 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17935
17936         * c-decl.c (detect_field_duplicates): Call
17937         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17938
17939 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17940
17941         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17942         * gimple.c (gimple_asm_clobbers_memory_p): Define.
17943         * ipa-pure-const.c (check_stmt): Call it.
17944         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17945
17946 2011-04-15  Richard Guenther  <rguenther@suse.de>
17947
17948         PR tree-optimization/48290
17949         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17950         Properly decide inhibiting propagation based on the valueized
17951         operand.  Do loop-closed SSA form preserving here ...
17952         (init_copy_prop): ... not here.
17953
17954 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17955
17956         PR target/48612
17957         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17958         (*ieee_smax<mode>3): Likewise.
17959
17960 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17961
17962         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17963         Replace match_operand with match_dup for the third operand in
17964         these expanders.
17965
17966 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17967
17968         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17969         to track processing of conditionals.  Update all callers.
17970         (try_combine, simplify_if_then_else): Update.
17971
17972 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17973
17974         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17975         -fsched-pressure.
17976
17977 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
17978
17979         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17980         instead of match_operand for operand 3.
17981
17982 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
17983
17984         * recog.h (insn_operand_data): Add an "allows_mem" field.
17985         * genoutput.c (output_operand_data): Initialize it.
17986         * optabs.c (maybe_legitimize_operand_same_code): New function.
17987         (maybe_legitimize_operand): Use it when matching the original
17988         op->value.
17989
17990 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17991
17992         * gimplify.c: Fix issues in comments throughout.
17993         (voidify_wrapper_expr): Fix long line.
17994         (build_stack_save_restore): Likewise.
17995         (gimplify_loop_expr): Likewise.
17996         (gimplify_compound_lval): Likewise.
17997         (gimplify_init_ctor_eval): Likewise.
17998         (gimplify_modify_expr_rhs): Likewise.
17999         (omp_notice_threadprivate_variable): Likewise.
18000
18001 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18002
18003         * cfgexpand.c (expand_call_stmt): Convert the function type to the
18004         original one if this is not a builtin function.
18005
18006 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
18007
18008         PR target/48605
18009         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18010         offset it as needed based on top 2 bits in operands[3], change
18011         MEM mode to SFmode and mask those 2 bits away from operands[3].
18012
18013 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18014
18015         * c-parser.c (c_parser_objc_protocol_definition): Updated for
18016         change from objc_declare_protocols() to objc_declare_protocol().
18017
18018 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
18019
18020         * config/i386/sse.md (sse4_1): New mode attribute.
18021         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18022         avx_blend<ssemodesuffix><avxmodesuffix> and
18023         sse4_1_blend<ssemodesuffix> using VF mode iterator.
18024         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18025         avx_blendv<ssemodesuffix><avxmodesuffix> and
18026         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18027         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18028         avx_dp<ssemodesuffix><avxmodesuffix> and
18029         sse4_1_dp<ssemodesuffix> using VF mode iterator.
18030         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18031         (sse4_1_packusdw): Merge with *avx_packusdw.
18032         (sse4_1_pblendvb): Merge with *avx_pblendvb.
18033         (sse4_1_pblendw): Merge with *avx_pblendw.
18034         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18035         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18036         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18037         VF mode iterator.
18038         (sse4_1_round<ssescalarmodesuffix>): Merge with
18039         *avx_round<ssescalarmodesuffix>.
18040         (aesenc): Merge with *avx_aesenc.
18041         (aesenclast): Merge with *avx_aesenclast.
18042         (aesdec): Merge with *avx_aesdec.
18043         (aesdeclast): Merge with *avx_aesdeclast.
18044         (pclmulqdq): Merge with *pclmulqdq.
18045         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18046         New predicate.
18047         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18048
18049 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
18050
18051         PR middle-end/48608
18052         * cfgexpand.c (get_decl_align_unit): Renamed to ...
18053         (align_local_variable): This.  Update DECL_ALIGN.
18054         (add_stack_var): Updated.
18055         (expand_one_stack_var): Likewise.
18056
18057 2011-04-14  Richard Guenther  <rguenther@suse.de>
18058
18059         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18060         Remove.
18061         (dse_initialize_block_local_data, dse_leave_block,
18062         record_voperand_set, get_stmt_uid): Likewise.
18063         (dse_possible_dead_store_p): Allow any kind of killing stmt.
18064         (dse_optimize_stmt): Remove voperand set handling code.
18065         Simplify and improve to handle any kind of killing stmt.
18066         (dse_record_phi): Remove.
18067         (dse_enter_block): Simplify.
18068         (tree_ssa_dse): Likewise.
18069         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18070
18071 2011-04-14  Jan Hubicka  <jh@suse.cz>
18072
18073         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18074         * cgraph.h (struct inline_summary): Move to ipa-inline.h
18075         (cgraph_local_info): Remove inline_summary.
18076         * ipa-cp.c: Include ipa-inline.h.
18077         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18078         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18079         accesor.
18080         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18081         (input_overwrite_node): Do not set inline summary.
18082         (input_node): Do not stream inline summary.
18083         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18084         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18085         growth; we do not have inline parameters computed for that anyway.
18086         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18087         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18088         (inline_summary_t): New type and VECtor.
18089         (debug_inline_summary, dump_inline_summaries): Declare.
18090         (inline_summary): Use VOCtor.
18091         (estimate_edge_growth): Kill hack computing call stmt size directly.
18092         * lto-section-in.c (lto_section_name): Add inline section.
18093         * ipa-inline-analysis.c: Include lto-streamer.h
18094         (node_removal_hook_holder, node_duplication_hook_holder): New holders
18095         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18096         (inline_summary_vec): Define.
18097         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18098         dump_inline_summaries): New functions.
18099         (estimate_function_body_sizes): Properly compute size/time of outgoing
18100         calls.
18101         (compute_inline_parameters): Alloc inline_summary; do not compute
18102         size/time of incomming calls.
18103         (estimate_edge_time): Avoid missing time summary hack.
18104         (inline_read_summary): Read inline summary info.
18105         (inline_write_summary): Write inline summary info.
18106         (inline_free_summary): Free all hooks and inline summary vector.
18107         * lto-streamer.h: Add LTO_section_inline_summary section.
18108         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18109         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18110
18111 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18112
18113         * tree-vectorizer.h (vect_strided_store_supported): Add a
18114         HOST_WIDE_INT argument.
18115         (vect_strided_load_supported): Likewise.
18116         (vect_permute_store_chain): Return void.
18117         (vect_transform_strided_load): Likewise.
18118         (vect_permute_load_chain): Delete.
18119         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18120         count argument.  Check that the count is a power of two.
18121         (vect_strided_load_supported): Likewise.
18122         (vect_permute_store_chain): Return void.  Update after above changes.
18123         Assert that the access is supported.
18124         (vect_permute_load_chain): Likewise.
18125         (vect_transform_strided_load): Return void.
18126         * tree-vect-stmts.c (vectorizable_store): Update calls after
18127         above interface changes.
18128         (vectorizable_load): Likewise.
18129         (vect_analyze_stmt): Don't check for strided powers of two here.
18130
18131 2011-04-14  Richard Guenther  <rguenther@suse.de>
18132
18133         PR tree-optimization/48590
18134         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18135         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18136         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18137         BUILT_IN_STACK_SAVE.
18138         * tree-ssa-dce.c (propagate_necessity): Handle
18139         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18140
18141 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18142
18143         * c-parser.c (c_parser_objc_class_declaration): Updated call to
18144         objc_declare_class.
18145
18146 2011-04-14  Richard Guenther  <rguenther@suse.de>
18147
18148         * tree.h (get_object_alignment_1): Declare.
18149         * builtins.c (get_object_alignment_1): Split out worker from ...
18150         (get_object_alignment): ... here.
18151         * fold-const.c (get_pointer_modulus_and_residue): Use
18152         get_object_alignment_1.
18153
18154 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18155
18156         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18157         type parameter.
18158         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18159         parameter.  Generalise code to handle arrays as well as vectors.
18160         (vect_setup_realignment): Update accordingly.
18161         * tree-vect-stmts.c (vectorizable_store): Likewise.
18162         (vectorizable_load): Likewise.
18163
18164 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18165
18166         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18167         within the per-copy loop.
18168
18169 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18170
18171         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18172         in the dump file.
18173
18174 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18175
18176         * doc/options.texi (Negative): Explicitly mention that the
18177         Negative chain must be circular.
18178
18179 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
18180
18181         * function.h (block_chainon): Declare.
18182         * function.c (block_chainon): Define.
18183
18184 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
18185             Eric Weddington  <eric.weddington@atmel.com>
18186             Georg-Johann Lay  <avr@gjlay.de>
18187
18188         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18189         New Includes
18190         (avr_init_builtins, avr_expand_builtin,
18191         avr_expand_delay_cycles, avr_expand_unop_builtin,
18192         avr_expand_binop_builtin ): New functions.
18193         (avr_builtin_id): New enum
18194         (struct avr_builtin_description): New struct
18195         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18196         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18197
18198         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18199         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18200         UNSPECV_DELAY_CYCLES): new enumeration values
18201         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18202         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18203         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18204         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18205         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18206         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18207         "fmulsu"): New insns
18208
18209         * config/avr/avr-c.c: fix line endings
18210         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18211         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18212         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18213         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18214         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18215
18216         * doc/extend.texi (AVR Built-in Functions): New node
18217         (Target Builtins): Add documentation of AVR
18218         built-in functions.
18219
18220 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
18221
18222         PR target/44643
18223         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18224         alone. Error if non-const data has attribute progmem.
18225
18226 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18227
18228         * tree.h (struct tree_constructor): Include tree_typed instead of
18229         tree_common.
18230         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18231         TS_TYPED instead of TS_COMMON.
18232
18233 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18234
18235         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18236         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18237         (sse2_psadbw): Merge with *avx_psadbw.
18238         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18239         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18240         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18241         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18242         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18243         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18244         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18245         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18246         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18247         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18248         (ssse3_palignrti): Merge with *avx_palignrti.
18249
18250 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18251
18252         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18253         * tree-ssanames.c (fini_ssanames): VEC_free it.
18254         (make_ssa_name_fn): Update for VECness of free_ssanames.
18255         (release_ssa_name, release_dead_ssa_names): Likewise.
18256         * tree.h (struct tree_ssa_name): Include tree_typed instead of
18257         tree_common.
18258         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18259         TS_TYPED instead of TS_COMMON.
18260
18261 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18262
18263         * postreload-gcse.c (gcse_after_reload_main): Add calls to
18264         statistics_counter_event.
18265         * tree-ssa-copyrename.c (stats): Define.
18266         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
18267         statistics_counter_event.
18268         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18269         (bswap_stats, widen_mul_stats): Define.
18270         (insert_reciprocals): Increment rdivs_inserted.
18271         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
18272         rfuncs_inserted.  Add calls to statistics_counter_event.
18273         (execute_cse_sincos_1): Increment inserted.
18274         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
18275         statistics_counter_event.
18276         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
18277         of bswap_stats.  Add calls to statistics_counter_event.
18278         (convert_mult_to_widen): Increment widen_mults_inserted.
18279         (convert_plusminus_to_widen): Increment maccs_inserted.
18280         (convert_mult_to_fma): Increment fmas_inserted.
18281         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
18282         calls to statistics_counter_event.
18283
18284 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
18285
18286         PR rtl-optimization/48455
18287         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18288         `temp_costs->mem_cost'.
18289
18290 2011-04-13  Jan Hubicka  <jh@suse.cz>
18291
18292         * ipa-inline.h: New file.
18293         * ipa-inline-analysis.c: New file. Broken out of ...
18294         * ipa-inline.c: ... this file; update toplevel comment;
18295         include ipa-inline.h
18296         (inline_summary): Move to ipa-inline.h
18297         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18298         ipa-inline-analysis.c.
18299         (cgraph_estimate_time_after_inlining): Rename to
18300         estiamte_time_after_inlining; move to ipa-inline-analysis.c
18301         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18302         to estimate_edge_growth.
18303         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18304         rename to estimate_size_after_inlining.
18305         (cgraph_mark_inline_edge): Update for new naming convention.
18306         (cgraph_check_inline_limits): Likewise.
18307         (cgraph_edge_badness): Likewise.
18308         (cgraph_decide_recursive_inlining): Likewise.
18309         (cgraph_decide_inlining_of_small_functions): Likewise.
18310         (cgraph_decide_inlining_incrementally): Likewise.
18311         (cgraph_estimate_growth): Rename to estimate_growth; move to
18312         ipa-inline-analysis.c.
18313         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18314         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18315         (compute_inline_parameters): Likewise.
18316         (compute_inline_parameters_for_current): Likewise.
18317         (pass_inline_parameters): Likewise.
18318         (inline_indirect_intraprocedural_analysis): Likewise.
18319         (analyze_function): Rename to inline_analyze_function; likewise.
18320         (add_new_function): Move to ipa-inline-analysis.c.
18321         (inline_generate_summary): Likewise.
18322         (inline_read_summary): Likewise.
18323         (inline_write_summary): Likewise.
18324         * Makefile.in (ipa-inline-analysis.c): New file.
18325
18326 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18327
18328         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18329         * configure: Regenerate.
18330
18331 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18332
18333         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18334         instead of tree_common.
18335         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18336         Likewise.
18337         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18338         TS_TYPED rather than TS_COMMON.
18339         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18340
18341 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
18342
18343         PR target/45263
18344         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18345         r20 around calls of __tablejump_elpm__
18346
18347 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18348
18349         PR middle-end/48591
18350         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18351         NULL.
18352         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18353
18354 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
18355
18356         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18357         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18358         (cfi_vec): New typedef.
18359         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18360         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18361         (cie_cfi_vec): New static variable.
18362         (cie_cfi_head): Delete.
18363         (add_cfi): Accept a cfi_vec * as first argument. All callers and
18364         declaration changed. Use vector rather than list operations.
18365         (new_cfi): Don't initialize the dw_cfi_next field.
18366         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18367         rather than list operations.
18368         (lookup_cfa): Use vector rather than list operations.
18369         (output_cfis): New argument upto. Accept a cfi_vec rather than
18370         a dw_cfi_ref list head as argument. All callers changed.
18371         Iterate over the vector using upto as a maximum index.
18372         (output_all_cfis): New static function.
18373         (output_fde): Use vector rather than list operations. Use the
18374         new upto argument for output_cfis rather than manipulating a
18375         list.
18376         (dwarf2out_begin_prologue): Change initializations to match
18377         new struct members.
18378         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18379         from the vector length rather than searching for the end of a list.
18380         Use output_all_cfis.
18381         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18382
18383 2011-04-13  Nick Clifton  <nickc@redhat.com>
18384
18385         * config/rx/rx.md (movmemsi): Do not use this pattern when
18386         volatile pointers are involved.
18387
18388 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18389
18390         * config/i386/sse.md (pinsrbits): Remove.
18391         (sse2_packsswb): Merge with *avx_packsswb.
18392         (sse2_packssdw): Merge with *avx_packssdw.
18393         (sse2_packuswb): Merge with *avx_packuswb.
18394         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18395         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18396         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18397         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18398         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18399         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18400         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18401         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18402         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18403         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18404         (sse2_loadld): Merge with *avx_loadld.
18405         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18406         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18407         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18408         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18409         (vec_concatv2di): Merge with *vec_concatv2di_avx.
18410
18411 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
18412
18413         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18414         calling TREE_CHAIN.
18415         * print-tree.c (print_node): Likewise.
18416         * tree-inline.c (copy_tree_r): Likewise.
18417         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18418         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18419         instead of TS_COMMON.
18420         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18421         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18422         (copy_node_stat): Zero TREE_CHAIN only if necessary.
18423         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18424         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18425         ...and these...
18426         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18427         * tree.h: ...here.
18428         (TREE_CHAIN): Check for a TS_COMMON structure.
18429         (TREE_TYPE): Check for a TS_TYPED structure.
18430
18431 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
18432
18433         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18434         cgraph_get_create_node instead of cgraph_node.
18435
18436 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18437
18438         * c-parser.c (c_parser_initelt): Updated call to
18439         objc_build_message_expr.
18440         (c_parser_postfix_expression): Likewise.
18441
18442 2011-04-12  Kai Tietz  <ktietz@redhat.com>
18443
18444         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18445         MASK_MS_BITFIELD_LAYOUT bit.
18446
18447 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18448
18449         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18450         assert it is always true.
18451         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18452         moves.
18453
18454 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18455
18456         * c-parser.c (c_lex_one_token): Rewritten conditional used when
18457         compiling Objective-C to be more efficient.
18458
18459 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
18460
18461         * opts-common.c (decode_cmdline_options_to_array): Remove variable
18462         argv_copied.
18463
18464 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18465
18466         * recog.h, genoutput.c, optabs.c: Revert last patch.
18467
18468 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18469
18470         PR target/48090
18471         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18472
18473 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18474
18475         * recog.h (insn_operand_data): Add an "allows_mem" field.
18476         * genoutput.c (output_operand_data): Initialize it.
18477         * optabs.c (maybe_legitimize_operand_same_code): New function.
18478         (maybe_legitimize_operand): Use it when matching the original
18479         op->value.
18480
18481 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18482
18483         * genpreds.c (process_define_predicate): Move most processing
18484         to gensupport.c.  Continue to validate the expression.
18485         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18486         (process_define_predicate): Move processing to gensupport.c.
18487         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18488         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18489         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
18490         argument.
18491         (valid_predicate_name_p): New function, split out from old
18492         genpreds.c:process_define_predicate.
18493         (process_define_predicate): New function, combining code from
18494         old genpreds.c and genrecog.c functions.
18495         (process_rtx): Call it for DEFINE_PREDICATE and
18496         DEFINE_SPECIAL_PREDICATE.
18497
18498 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18499
18500         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18501         size of a '%A' memory reference.
18502         (T_DREG, T_QREG): New neon_builtin_type_bits.
18503         (arm_init_neon_builtins): Assert that the load and store operands
18504         are neon_struct_operands.
18505         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18506         (NEON_ARG_MEMORY): New builtin_arg.
18507         (neon_dereference_pointer): New function.
18508         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18509         Handle NEON_ARG_MEMORY.
18510         (arm_expand_neon_builtin): Update after above interface changes.
18511         Use NEON_ARG_MEMORY for loads and stores.
18512         * config/arm/predicates.md (neon_struct_operand): New predicate.
18513         * config/arm/iterators.md (V_two_elem): Tweak formatting.
18514         (V_three_elem): Use BLKmode for accesses that have no associated mode.
18515         (V_four_elem): Tweak formatting.
18516         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18517         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18518         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18519         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18520         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18521         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18522         (neon_vst4<mode>): Replace pointer operand with a memory operand.
18523         Use %A in the output template.
18524         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18525         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18526         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18527         the width of the memory access.  Remove post-increment.
18528         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18529
18530 2011-04-12  Nick Clifton  <nickc@redhat.com>
18531
18532         * config/v850/v850.c (expand_prologue): Do not use the CALLT
18533         instruction for interrupt handlers if the target is the basic V850
18534         architecture.
18535         (expand_epilogue): Likewise.
18536
18537 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18538
18539         PR rtl-optimization/48549
18540         * combine.c (propagate_for_debug): Also stop after BB_END of
18541         this_basic_block.  Process LAST and just stop processing after it.
18542         (combine_instructions): If last_combined_insn has been deleted,
18543         set last_combined_insn to its PREV_INSN.
18544
18545 2011-04-12  Richard Guenther  <rguenther@suse.de>
18546
18547         PR tree-optimization/46076
18548         * gimple.h (struct gimple_statement_call): Add fntype field.
18549         (gimple_call_fntype): Adjust.
18550         (gimple_call_set_fntype): New function.
18551         * gimple.c (gimple_build_call_1): Set the call function type.
18552         * gimplify.c (gimplify_call_expr): Preserve the function
18553         type the frontend used for the call.
18554         (gimplify_modify_expr): Likewise.
18555         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18556         function type.
18557         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18558         function type.
18559         * tree-ssa.c (useless_type_conversion_p): Function pointer
18560         conversions are useless.
18561
18562 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18563
18564         * cgraph.h (cgraph_node): Remove function declaration.
18565         (cgraph_create_node): Declare.
18566         (cgraph_get_create_node): Likewise.
18567         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18568         Updated all callers.
18569         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18570         the decl does not already exist.  Call cgraph_get_create_node instead
18571         of cgraph_node.
18572         (cgraph_get_create_node): New function.
18573         (cgraph_same_body_alias): Update comment.
18574         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18575         assert it does not return NULL.
18576         (cgraph_update_edges_for_call_stmt): Likewise.
18577         (cgraph_clone_edge): Likewise.
18578         (cgraph_create_virtual_clone): Likewise.
18579         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18580         instead of cgraph_node.
18581         (cgraph_add_new_function): Call cgraph_create_node or
18582         cgraph_get_create_node instead of cgraph_node.
18583         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18584         instead of cgraph_node.
18585         (record_eh_tables): Likewise.
18586         (mark_address): Likewise.
18587         (mark_load): Likewise.
18588         (build_cgraph_edges): Call cgraph_get_create_node instead
18589         of cgraph_node.
18590         (rebuild_cgraph_edges): Likewise.
18591         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18592         instead of cgraph_node.
18593         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18594         cgraph_node.
18595         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18596         cgraph_create_node instead of cgraph_node.
18597         * c-decl.c (finish_function): Call cgraph_get_create_node instead
18598         of cgraph_node.
18599         * lto-cgraph.c (input_node): Likewise.
18600         * lto-streamer-in.c (input_function): Likewise.
18601         * varasm.c (mark_decl_referenced): Likewise.
18602         (assemble_alias): Likewise.
18603
18604 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18605
18606         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18607         instead of cgraph_node and assert it does not return NULL.
18608         * lto-streamer-in.c (lto_read_body): Likewise.
18609         * omp-low.c (new_omp_context): Likewise.
18610         (create_task_copyfn): Likewise.
18611         * tree-emutls.c (lower_emutls_function_body): Likewise.
18612         * matrix-reorg.c (transform_allocation_sites): Likewise.
18613
18614 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18615
18616         PR c/48552
18617         * c-typeck.c (build_asm_expr): Error out on attempts to use
18618         void type outputs or inputs for constraints that allow reg or
18619         don't allow memory.
18620
18621 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
18622             Richard Earnshaw  <rearnsha@arm.com>
18623
18624         PR target/48250
18625         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18626         to use sign-magnitude offsets. Reject unsupported unaligned
18627         cases. Add detailed description in comments.
18628         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18629         condition from TARGET_32BIT to TARGET_ARM.
18630
18631 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
18632
18633         * tree.h (struct typed_tree): New.
18634         (struct tree_common): Include it instead of tree_base.
18635         (TREE_TYPE): Update for new location of type field.
18636         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18637         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18638         (union tree_node): Add typed field.
18639         * treestruct.def (TS_TYPED): New.
18640         * lto-streamer.c (check_handled_ts_structures): Handle it.
18641         * tree.c (MARK_TS_TYPED): New macro.
18642         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18643
18644 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18645
18646         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18647         (force_nonfallthru): Do not alter the loop nest if no basic block
18648         was created.
18649
18650 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18651
18652         * config/i386/sse.md (VI): New mode iterator.
18653         (SSEMODEI): Remove.
18654         (AVX256MODEI): Ditto.
18655         (AVXMODEF4P): Ditto.
18656         (avxvecpsmode): Ditto.
18657         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18658         (sse2_andnot<mode>3): New expander.
18659         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18660         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18661         (<any_logic:code><mode>3): Use VI mode iterator.
18662         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18663         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18664         (*andnottf3): Handle AVX three-operand constraints.
18665         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18666
18667 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18668             Robert Millan  <rmh@gnu.org>
18669
18670         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18671         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18672         GNU_USER_DYNAMIC_LINKER64): Define.
18673         (REG_NAME): Don't undefine.
18674         (MD_UNWIND_SUPPORT): Undefine.
18675         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18676         (REG_NAME): Don't undefine.
18677         (MD_UNWIND_SUPPORT): Undefine.
18678         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18679
18680 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18681
18682         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18683         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18684
18685 2011-04-11  Xinliang David Li  <davidxl@google.com>
18686
18687         * value-profile.c (check_ic_target): New function.
18688         (gimple_ic_transform): Sanity check indirect call target.
18689         * gimple-low.c (gimple_check_call_args): Interface change.
18690         (gimple_check_call_matching_types): New function.
18691         * tree-inline.c (tree_can_inline_p): Call new function.
18692
18693 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18694
18695         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18696         tree-pretty-print.h & realmpfr.h.
18697
18698 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18699
18700         PR middle-end/48464
18701         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18702         (setup_allocno_and_important_classes): Ditto.
18703
18704 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18705
18706         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18707         GNU_USER_DYNAMIC_LINKER.
18708         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18709         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18710         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18711         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18712         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18713         GNU_USER_TARGET_OS_CPP_BUILTINS.
18714         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18716         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18717         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18718         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18719         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18720         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18721         GNU_USER_TARGET_OS_CPP_BUILTINS.
18722         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18723         GNU_USER_DYNAMIC_LINKER.
18724         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18725         GNU_USER_TARGET_OS_CPP_BUILTINS.
18726         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18727         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18728         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18729         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18730         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18731         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18732         GNU_USER_DYNAMIC_LINKER64): Remove.
18733         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18734         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18735         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18736         GNU_USER_DYNAMIC_LINKER.
18737         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18738         GNU_USER_TARGET_OS_CPP_BUILTINS.
18739         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18740         GNU_USER_TARGET_OS_CPP_BUILTINS.
18741         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18742         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18743         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18744         GNU_USER_TARGET_OS_CPP_BUILTINS.
18745         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18746         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18747         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18748         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18749         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18750         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18751         GNU_USER_DYNAMIC_LINKER.
18752         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18753         GNU_USER_TARGET_OS_CPP_BUILTINS.
18754         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18755         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18756         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18757         GNU_USER_DYNAMIC_LINKER.
18758         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18759         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18760         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18761         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18762         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18763         GNU_USER_DYNAMIC_LINKER.
18764         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18765         GNU_USER_DYNAMIC_LINKERN32.
18766         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18767         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18768         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18769         GNU_USER_DYNAMIC_LINKER32.
18770         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18771         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18772         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18773         GNU_USER_DYNAMIC_LINKER.
18774         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18775         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18776         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18777         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18778         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18779         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18780         GNU_USER_DYNAMIC_LINKER32.
18781         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18782         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18783         GNU_USER_DYNAMIC_LINKER.
18784         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18785         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18786         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18787         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18788         GNU_USER_DYNAMIC_LINKER64.
18789         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18790         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18791         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18792         GNU_USER_DYNAMIC_LINKER.
18793         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18794         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18795         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18796         GNU_USER_DYNAMIC_LINKER.
18797         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18798         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18799         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18800         GNU_USER_DYNAMIC_LINKER32.
18801         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18802         GNU_USER_DYNAMIC_LINKER64.
18803         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18804         GNU_USER_DYNAMIC_LINKER64.
18805         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18806         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18807         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18808         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18809         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18810
18811 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18812
18813         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18814         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18815         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18816         GNU_USER_DYNAMIC_LINKER.
18817         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18818         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18819         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18820         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18821         GNU_USER_DYNAMIC_LINKER64.
18822         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18823         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18824         GNU_USER_LINK_EMULATION.
18825         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18826         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18827         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18828         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18829         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18830         CPP_SPEC, CC1_SPEC): Remove.
18831         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18832         (GNU_USER_DYNAMIC_LINKER): Define.
18833         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18834         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18835         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18836         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18837         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18838         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18839         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18840         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18841         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18842         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18843         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18844         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18845         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18846         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18847         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18848         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18849         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18850         GNU_USER_DYNAMIC_LINKER.
18851         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18852         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18853         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18854         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18855         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18856         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18857         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18858         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18859         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18860         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18861
18862 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18863
18864         PR target/9601
18865         PR target/11772
18866         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18867         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18868         comment.
18869         (ix86_is_msabi_thiscall): Removed.
18870         (ix86_is_type_thiscall): Likewise.
18871         (ix86_get_callcvt): New function.
18872         (ix86_comp_type_attributes): Simplify check.
18873         (ix86_function_regparm): Use ix86_get_callcvt for calling
18874         convention attribute checks.
18875         (ix86_return_pops_args): Likewise.
18876         (ix86_static_chain): Likewise.
18877         (x86_this_parameter): Likewise.
18878         (x86_output_mi_thunk): Likewise.
18879         (ix86_function_type_abi): Optimize check for types without attributes.
18880         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18881         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18882         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18883         by flag-values.
18884         (IX86_BASE_CALLCVT): Helper macro.
18885         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18886         Use ix86_get_callcvt for calling convention attribute checks and avoid
18887         symbol-decoration for stdcall in TARGET_RTD case.
18888         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18889         Likewise.
18890         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18891         for declaration.
18892
18893 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18894
18895         * config/i386/sse.md (VI_128): New mode iterator.
18896         (VI12_128): Rename from SSEMODE12.
18897         (VI14_128): Rename from SSEMODE14.
18898         (VI124_128): New mode iterator.
18899         (VI24_128): Rename from SSEMODE248.
18900         (VI248_128): Rename from SSEMODE248.
18901         (SSEMODE124C8): Remove.
18902         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18903         (*sse2_<plusminus_insn><mode>3): Merge with
18904         *avx_<plusminus_insn><mode>3.
18905         (*mulv8hi3): Merge with *avx_mulv8hi3.
18906         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18907         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18908         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18909         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18910         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18911         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18912         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18913         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18914         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18915         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18916         (*<smaxmin:code>v8hi3): Ditto.
18917         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18918         (*<smaxmin:code>v16qi3): Ditto.
18919         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18920         (*sse2_eq<mode>3): Ditto.
18921         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18922         (*sse2_gt<mode>3): Ditto.
18923         (vcondv2di): Split out of vcond<mode>.
18924         (vconduv2di): Split out of vcondu<mode>.
18925
18926 2011-04-11  Richard Guenther  <rguenther@suse.de>
18927
18928         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18929         before calling tree_low_cst.
18930
18931 2011-04-11  Richard Guenther  <rguenther@suse.de>
18932
18933         * stor-layout.c (layout_type): Compute all array index size operations
18934         in the original type.
18935         (initialize_sizetypes): Add comment.
18936         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18937
18938 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18939
18940         * common.opt (Tbss=, Tdata=, Ttext=): New options.
18941
18942 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18943
18944         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18945         of cgraph_node, handle NULL return value.
18946         (cgraph_global_info): Likewise.
18947         (cgraph_rtl_info): Likewise.
18948         * tree-inline.c (estimate_num_insns): Likewise.
18949         * gimplify.c (unshare_body): Likewise.
18950         (unvisit_body): Likewise.
18951         (gimplify_body): Likewise.
18952         * predict.c (optimize_function_for_size_p): Likewise.
18953         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18954         (call_may_clobber_ref_p_1): Likewise.
18955         * varasm.c (function_section_1): Likewise.
18956         (assemble_start_function): Likewise.
18957
18958 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18959
18960         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18961         of cgraph_node.
18962         * final.c (rest_of_clean_state): Likewise.
18963         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18964         * passes.c (pass_init_dump_file): Likewise.
18965         (execute_all_ipa_transforms): Likewise.
18966         (function_called_by_processed_nodes_p): Likewise.
18967         * predict.c (maybe_hot_frequency_p): Likewise.
18968         (probably_never_executed_bb_p): Likewise.
18969         (compute_function_frequency): Likewise.
18970         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18971         (unnest_nesting_tree_1): Likewise.
18972         (lower_nested_functions): Likewise.
18973         * tree-optimize.c (execute_fixup_cfg): Likewise.
18974         (tree_rest_of_compilation): Likewise.
18975         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18976         * tree-sra.c (ipa_early_sra): Likewise.
18977         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18978         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18979         * ipa.c (record_cdtor_fn): Likewise.
18980         * ipa-inline.c (cgraph_early_inlining): Likewise.
18981         (compute_inline_parameters_for_current): Likewise.
18982         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18983         * ipa-pure-const.c (local_pure_const): Likewise.
18984         * ipa-split.c (split_function): Likewise.
18985         (execute_split_functions): Likewise.
18986         * cgraphbuild.c (build_cgraph_edges): Likewise.
18987         (rebuild_cgraph_edges): Likewise.
18988         (cgraph_rebuild_references): Likewise.
18989         (remove_cgraph_callee_edges): Likewise.
18990         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18991         (verify_cgraph_node): Likewise.
18992         (cgraph_analyze_functions): Likewise.
18993         (cgraph_preserve_function_body_p): Likewise.
18994         (save_inline_function_body): Likewise.
18995         (save_inline_function_body): Likewise.
18996         * tree-inline.c (copy_bb): Likewise.
18997         (optimize_inline_calls): Likewise.
18998
18999 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19000
19001         PR tree-optimization/48195
19002         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19003         ipa_check_create_edge_args.
19004         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19005         ipa_check_create_edge_args.
19006         * ipa-inline.c (inline_generate_summary): Do not call
19007         ipa_check_create_node_params and ipa_check_create_edge_args.
19008         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19009         ipa_check_create_edge_args.
19010
19011 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
19012
19013         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19014         instead of loop.
19015         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19016         * function.c (record_hard_reg_sets): Likewise.
19017         * ira.c (compute_regs_asm_clobbered): Likewise.
19018         * sched-deps.c (sched_analyze_1): Likewise.
19019         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19020
19021 2011-04-09  Xinliang David Li  <davidxl@google.com>
19022
19023         PR tree-optimization/PR48484
19024         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19025         has_valid_pred lazily
19026
19027 2011-04-09  Duncan Sands  <baldrick@free.fr>
19028
19029         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19030
19031 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19032
19033         * combine.c (combine_validate_cost): Adjust comments.  Set registered
19034         cost of I0 to zero at the end, if any.
19035
19036 2011-04-08  Xinliang David Li  <davidxl@google.com>
19037
19038         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19039         to insane profile data.
19040
19041 2011-04-08  Xinliang David Li  <davidxl@google.com>
19042
19043         * ipa-cp.c (ipcp_update_profiling): Correct
19044          negative scale factor due to insane profile data.
19045
19046 2011-04-08  Xinliang David Li  <davidxl@google.com>
19047
19048         * final.c (dump_basic_block_info): New function.
19049         (final): Dump basic block.
19050         (final_scan_insn): Remove old dump.
19051
19052 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19053
19054         PR target/47829
19055         * config.gcc (i386-*-freebsd): Disable unwind table generation for
19056         crtbegin/crtend.
19057
19058 2011-04-08  Michael Matz  <matz@suse.de>
19059
19060         PR middle-end/48389
19061         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19062         functions.
19063         (rebuild_jump_labels): Call rebuild_jump_labels_1.
19064         * rtl.h (rebuild_jump_labels_chain): Declare.
19065         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19066         insns inserted on edges.
19067
19068 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
19069
19070         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19071         * config/arm/arm-arches.def: New.
19072         * config/arm/arm-opts.h: New.
19073         * config/arm/genopt.sh: New.
19074         * config/arm/arm-tables.opt: New (generated).
19075         * config/arm/arm.c (arm_handle_option, arm_target_help,
19076         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19077         (all_architectures): Get most table contents from arm-arches.def.
19078         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19079         arm_selected_tune here.
19080         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19081         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19082         (march=, mcpu=, mtune=): Use Enum and Var.
19083         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19084         (arm.o): Update dependencies.
19085
19086 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
19087
19088         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19089         of header_file.
19090         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19091         (write_typed_alloc_defns): Likewise.
19092         (main): Calls write_typed_alloc_defns with output_header.
19093
19094 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
19095
19096         PR inline-asm/48435
19097         * ira-color.c (setup_profitable_hard_regs): Add comments.
19098         Don't take prohibited hard regs into account.
19099         (setup_conflict_profitable_regs): Rename to
19100         get_conflict_profitable_regs.
19101         (check_hard_reg_p): Check prohibited hard regs.
19102
19103 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
19104
19105         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19106         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19107         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19108
19109 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19110
19111         PR target/48366
19112         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19113         move from floating point to shift amount register.
19114         (emit_move_sequence): Remove secondary reload support for floating
19115         point to shift amount amount register copies.
19116         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19117         amount register copies.
19118         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19119         register, return false if mode isn't a scalar integer mode.
19120         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19121
19122 2011-04-08  Richard Guenther  <rguenther@suse.de>
19123
19124         * gimple.c (gimple_call_flags): Remove kludge.
19125
19126 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19127
19128         * sel-sched.c (sel_region_init): Move call to
19129         sel_setup_region_sched_flags after setup_current_loop_nest.
19130
19131 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
19132
19133         PR rtl-optimization/48272
19134         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19135         init_insn_reg_pressure_info.  Adjust a caller.
19136         * sched-int.h (init_insn_reg_pressure_info): Declare.
19137         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19138         when sched-pressure is enabled.
19139
19140 2011-04-08  Richard Guenther  <rguenther@suse.de>
19141
19142         * gimple.c (gimple_set_modified): Do not queue calls to
19143         MODIFIED_NORETURN_CALLS here ...
19144         * tree-ssa-operands.c (update_stmt_operands): ... but here.
19145
19146 2011-04-08  Richard Guenther  <rguenther@suse.de>
19147
19148         PR lto/48467
19149         * toplev.c (lang_dependent_init): Do not open asm_out_file
19150         in WPA mode, nor perform debug machinery initialization.
19151         (finalize): Do not unlink asm_out_file in WPA mode.
19152
19153 2011-04-08  Richard Guenther  <rguenther@suse.de>
19154
19155         * gimple.h (gimple_call_fntype): New function.
19156         (gimple_call_return_type): Use it.
19157         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19158         * gimple-low.c (gimple_check_call_args): Likewise.
19159         * gimple.c (gimple_call_flags): Likewise.
19160         (gimple_call_arg_flags): Likewise.
19161         (gimple_call_return_flags): Likewise.
19162         * tree-cfg.c (verify_gimple_call): Likewise.
19163         (do_warn_unused_result): Likewise.
19164         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19165         * value-prof.c (gimple_ic_transform): Fix fndecl check.
19166
19167 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
19168
19169         PR rtl-optimization/48235
19170         * sel-sched.c (code_motion_process_successors): Recompute the last
19171         insn in basic block if control flow changed.
19172         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
19173         Update condition for ilist_remove.
19174
19175 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19176
19177         PR rtl-optimization/48302
19178         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19179         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
19180         it to record added preheader blocks.
19181         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
19182         on to sel_add_loop_preheaders.
19183         (sel_region_init): Move call to setup_current_loop_nest after
19184         sel_init_bbs.
19185
19186 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19187
19188         PR target/48273
19189         * cfgloop.h (loop_has_exit_edges): New helper.
19190         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19191         non-clonable.
19192         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19193         that have no exit edges.
19194
19195 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19196
19197         PR rtl-optimization/48442
19198         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
19199         all callers.  Adjust assert.
19200
19201 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
19202
19203         PR tree-optimization/48377
19204         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19205         is_packed to true even for types with smaller TYPE_ALIGN than
19206         TYPE_SIZE.
19207
19208 2011-04-08  Richard Guenther  <rguenther@suse.de>
19209
19210         PR bootstrap/48513
19211         * doc/tm.texi: Re-generate.
19212
19213 2011-04-08  Wei Guozhi  <carrot@google.com>
19214
19215         PR target/47855
19216         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19217         * config/arm/arm.c (arm_attr_length_push_multi): New function.
19218         * config/arm/arm.md (*push_multi): Change the length computation to
19219         call a C function.
19220
19221 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
19222
19223         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19224         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19225         * doc/tm.texi: Regenerate.
19226         * system.h (ASM_OUTPUT_BSS): Poison.
19227         * varasm.c (asm_output_bss): Remove function.
19228         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19229
19230         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19231         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19232         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19233         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19234         Likewise.
19235         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19236         Likewise.
19237         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19238         Likewise.
19239         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19240
19241 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19242
19243         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19244         EnumValue lines.
19245
19246 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19247
19248         * config/m68k/m68k.c (m68k_handle_option): Don't handle
19249         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19250         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19251         OPT_mcpu32.
19252         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19253         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19254         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19255         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19256         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19257         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19258         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19259         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19260         options.  Don't map other m68k options manually.  Don't handle
19261         old-style options as canonical.
19262         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19263         * doc/install.texi (m68k-*-*): Document binutils version requirement.
19264
19265 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19266
19267         * basic-block.h (force_nonfallthru): Move to...
19268         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19269         (force_nonfallthru): ...here.
19270         * cfghooks.c (force_nonfallthru): New function.
19271         * cfgrtl.c (force_nonfallthru): Rename into...
19272         (rtl_force_nonfallthru): ...this.
19273         (commit_one_edge_insertion): Do not set AUX field.
19274         (commit_edge_insertions): Do not discover new basic blocks.
19275         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19276         (cfg_layout_rtl_cfg_hooks): Likewise.
19277         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19278         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
19279         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19280
19281 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
19282
19283         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19284         Remove macros.
19285
19286 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
19287
19288         * config/i386/sse.md: Update copyright year.
19289         (avxcvtvecmode): Remove.
19290         (sse_movhlps): Merge with *avx_movhlps.
19291         (sse_movlhps): Merge with *avx_movlhps.
19292         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19293         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19294         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19295         (sse_loadhps): Merge with *avx_loadhps.
19296         (sse_storelps): Merge with *avx_storelps.
19297         (sse_loadlps): Merge with *avx_loadlps.
19298         (sse_movss): Merge with *avx_movss.
19299         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19300         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19301         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19302         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19303         (vec_set<mode>_0): Ditto.
19304         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19305         (sse4_1_insertps): Merge with *avx_insertps.
19306         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19307         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19308         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19309         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19310         (sse2_storehpd): Merge with *avx_storehpd.
19311         (sse2_loadhpd): Merge with *avx_loadhpd.
19312         (sse2_loadlpd): Merge with *avx_loadlpd.
19313         (sse2_movsd): Merge with *avx_movsd.
19314         (*vec_concatv2df): Merge with *vec_concatv2df.
19315
19316 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
19317
19318         PR debug/48343
19319         * combine.c (combine_instructions): Add last_combined_insn,
19320         update it if insn is after it, pass it to all try_combine calls.
19321         (try_combine): Add last_combined_insn parameter, pass it instead of
19322         i3 to propagate_for_debug.
19323
19324 2011-04-07  Nick Clifton  <nickc@redhat.com>
19325
19326         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19327         to handle MDR <-> data register transfers.
19328         (movhi_internal): Likewise.
19329
19330 2011-04-07  Alan Modra  <amodra@gmail.com>
19331
19332         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19333         previous stack info.
19334
19335 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19336
19337         PR target/43920
19338         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
19339         flow_find_cross_jump.  Swap variables to implement backward replacement.
19340         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19341
19342 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19343
19344         PR target/43920
19345         * cfgcleanup.c (walk_to_nondebug_insn): New function.
19346         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
19347         and bb2.
19348         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19349         src1 or src2.  Redirect edges to the last basic block.  Update
19350         frequency and count on multiple basic blocks in case of fallthru.
19351
19352 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19353
19354         PR target/43920
19355         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19356         function.
19357         (old_insns_match_p): Change return type.  Replace return false/true
19358         with return dir_none/dir_both.  Use can_replace_by.
19359         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
19360         direction from dir_p.  Register replacement direction in dir, last_dir
19361         and afterlast_dir.  Handle new return type of old_insns_match_p using
19362         merge_dir.  Return replacement direction in dir_p.
19363         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19364         return type of old_insns_match_p.
19365         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19366         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19367         flow_find_cross_jump.
19368         * basic-block.h (enum replace_direction): New type.
19369         (flow_find_cross_jump): Add parameter to declaration.
19370
19371 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19372
19373         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19374         (AVXMODEDCVTPS2DQ): Ditto.
19375         (VEC_FLOAT_MODE): Ditto.
19376         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
19377         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19378         (<any_logic:code><mode>3): Use VF mode iterator.
19379         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19380         Use VF mode iterator.
19381         (copysign<mode>3): Use VF mode iterator.
19382         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
19383         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19384         (*<any_logic:code><MODEF:mode>3): Merge with
19385         *avx_<any_logic:code><MODEF:mode>3.
19386         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19387         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19388         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19389         (avx_cvtdq2ps<avxmodesuffix>): Remove.
19390         (sse2_cvtdq2ps): Use %v modifier.
19391         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19392         (avx_cvtps2dq<avxmodesuffix>): Remove.
19393         (sse2_cvtps2dq): Use %v modifier.
19394         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19395         (avx_cvttps2dq<avxmodesuffix>): Remove.
19396         (sse2_cvttps2dq): Use %v modifier.
19397         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19398         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19399         (sse2_cvtsd2siq): Fix insn template.
19400         (sse2_cvtsd2siq_2): Ditto.
19401         (sse2_cvttsd2siq): Ditto.
19402         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19403         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19404
19405 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19406
19407         * gcov-io.c: Use GCC Runtime Library Exception.
19408
19409 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
19410
19411         PR debug/48466
19412         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19413         as base_reg whatever register reg has been eliminated to, instead
19414         of hardcoding STACK_POINTER_REGNUM.
19415
19416 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19417
19418         * doc/tm.texi.in: Document C target hooks as separate from general
19419         target hooks.
19420         * doc/tm.texi: Regenerate.
19421         * genhooks.c (struct hook_desc): Add docname field.
19422         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
19423         docname field.
19424         (hook_array): Include c-target.def.
19425         (emit_documentation): Use docname field in output.
19426         (emit_init_macros): Take docname argument.  Only emit definitions
19427         for hooks matching docname.
19428         (main): Expect additional arguments in all cases.  Pass argument
19429         to emit_init_macros.
19430         * target.def: Move initial macro definitions and comments to
19431         target-hooks-macros.h.
19432         (gcc_targetcm): Move to c-family/c-target.def.
19433         * target.h (targetcm): Move declaration to c-family/c-target.h.
19434         * targhooks.c (default_handle_c_option): Move to
19435         c-family/c-opts.c.
19436         * targhooks.h (default_handle_c_option): Move declaration to
19437         c-family/c-common.h.
19438         * target-hooks-macros.h: New file.
19439         * config.gcc (target_has_targetcm): Define and use to add to
19440         c_target_objs and cxx_target_objs.
19441         * config/default-c.c: New file.
19442         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19443         of target.h and target-def.h.
19444         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19445         (darwin_objc_construct_string, darwin_cfstring_ref_p,
19446         darwin_check_cfstring_format_arg): Make static.
19447         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19448         TARGET_STRING_OBJECT_REF_TYPE_P,
19449         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19450         * config/darwin-protos.h (darwin_objc_construct_string,
19451         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19452         declare.
19453         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19454         TARGET_STRING_OBJECT_REF_TYPE_P,
19455         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19456         * config/t-darwin (darwin-c.o): Update dependencies.
19457         * system.h (TARGET_HAS_TARGETCM): Poison.
19458         * Makefile.in (TARGET_H): Update.
19459         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19460         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19461         (default-c.o): New target.
19462         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19463         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19464         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
19465         c-target.def.
19466         (build/genhooks.o): Update dependencies.
19467
19468 2011-04-06  Richard Guenther  <rguenther@suse.de>
19469
19470         * ipa-inline.c (enum inlining_mode): Remove.
19471         (cgraph_flatten): Use some other token.
19472         (cgraph_edge_early_inlinable_p): New function, split out from ...
19473         (cgraph_perform_always_inlining): New function, split out from ...
19474         (cgraph_decide_inlining_incrementally): ... here.
19475         (cgraph_mark_inline_edge): Adjust.
19476         (cgraph_early_inlining): Re-structure.
19477         (pass_early_inline): Require SSA form.
19478
19479 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
19480             Julian Brown  <julian@codesourcery.com>
19481             Mark Shinwell  <shinwell@codesourcery.com>
19482
19483         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19484         LO_REGS only for Thumb-1.
19485         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19486         be used in short instructions when optimising for size on Thumb-2.
19487
19488 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19489
19490         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19491         associated with user returns to be preserved.
19492
19493 2011-04-06  Tristan Gingold  <gingold@adacore.com>
19494
19495         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19496         symbol_queue_size, DBXOUT_DECR_NESTING,
19497         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19498         if XCOFF_DEBUGGING_INFO.
19499
19500 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19501
19502         * config/i386/i386.md (attribute isa): New.
19503         (attribute enabled): New.
19504         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19505         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19506         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19507         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19508         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19509         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19510         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19511         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19512
19513         * config/i386/sse.md (VF): New mode iterator.
19514         (VF1): Ditto.
19515         (VF2): Ditto.
19516         (VF_128): Ditto.
19517         (SSEMODEF4): Remove.
19518         (attribute sse): Handle V8SF and V4DF modes.
19519         (<absneg:code><mode>2): Use VF mode iterator.
19520         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
19521         mode iterator.
19522         (<plusminus_insn><mode>3): Use VF mode iterator.
19523         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19524         Use VF mode iterator.
19525         (<sse>_vm<plusminus_insn><mode>3): Merge with
19526         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
19527         (mul<mode>3): Use VF mode iterator.
19528         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
19529         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
19530         mode iterator.
19531         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19532         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19533         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
19534         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
19535         mode iterator.
19536         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19537         Use VF1 mode iterator.
19538         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19539         (sqrt<VF2:mode>2): New expander.
19540         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19541         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19542         and sqrtv2df2.  Use VF mode iterator.
19543         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
19544         mode iterator.
19545         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19546         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19547         Use VF1 mode iterator.
19548         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19549         (<smaxmin:code><mode>3): Use VF mode iterator.
19550         (*<smaxmin:code><mode>3_finite): Merge with
19551         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
19552         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19553         (<sse>_vm<smaxmin:code><mode>2): Merge with
19554         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
19555         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
19556         mode iterator.
19557         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
19558         mode iterator.
19559         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19560         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19561         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19562         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19563         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
19564         VF mode iterator.
19565         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19566         Use VF_128 mode iterator.
19567         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
19568         mode iterator.
19569         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
19570         VF_128 mode iterator.
19571         (vcond<mode>): Use VF mode iterator.
19572         * config/i386/predicates.md (sse_comparison_operator): Merge with
19573         avx_comparison_float_operator.  Do not declare as special_predicate.
19574         * config/i386/i386.c (struct builtin_description): Update for renamed
19575         compare patterns.
19576         (ix86_expand_args_builtin): Ditto.
19577         (ix86_expand_sse_compare_mask): Ditto.
19578
19579 2011-04-06  Richard Guenther  <rguenther@suse.de>
19580
19581         * tree-inline.c (estimate_num_insns): For calls simply account
19582         for all passed arguments and a used return value.
19583
19584 2011-04-06  Richard Guenther  <rguenther@suse.de>
19585
19586         PR tree-optimization/47663
19587         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19588         call_stmt_time fields.
19589         (cgraph_edge_inlinable_p): Declare.
19590         (cgraph_edge_recursive_p): New inline function.
19591         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19592         (cgraph_clone_edge): Copy it.
19593         * ipa-inline.c (cgraph_estimate_edge_time): New function.
19594         Account for call stmt time.
19595         (cgraph_estimate_time_after_inlining): Take edge argument.
19596         (cgraph_estimate_edge_growth): Account call stmt size.
19597         (cgraph_estimate_size_after_inlining): Take edge argument.
19598         (cgraph_mark_inline_edge): Adjust.
19599         (cgraph_check_inline_limits): Likewise.
19600         (cgraph_recursive_inlining_p): Remove.
19601         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19602         (cgraph_decide_recursive_inlining): Take edge argument and
19603         adjust.
19604         (cgraph_decide_inlining_of_small_functions): Do not avoid
19605         diags for recursive inlining here.
19606         (cgraph_flatten): Adjust.
19607         (cgraph_decide_inlining_incrementally): Likewise.
19608         (estimate_function_body_sizes): Remove call cost handling.
19609         (compute_inline_parameters): Initialize caller edge call costs.
19610         (cgraph_estimate_edge_growth): New function.
19611         (cgraph_estimate_growth): Use it.
19612         (cgraph_edge_badness): Likewise.
19613         (cgraph_check_inline_limits): Take an edge argument.
19614         (cgraph_decide_inlining_of_small_functions): Adjust.
19615         (cgraph_decide_inlining): Likewise.
19616         * tree-inline.c (estimate_num_insns): Only account for call
19617         return value if it is used.
19618         (expand_call_inline): Avoid diagnostics on recursive inline
19619         functions here.
19620         * lto-cgraph.c (lto_output_edge): Output edge call costs.
19621         (input_edge): Input edge call costs.
19622
19623 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19624
19625         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19626
19627 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
19628
19629         * doc/invoke.texi (Spec Files): Fix typo.
19630
19631 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19632
19633         * profile.c (branch_prob): Move declaration of local variable.  Remove
19634         obsolete ??? comment.  Expand the location explicitly instead of using
19635         the LOCATION_FILE and LOCATION_LINE macros.
19636
19637 2011-04-06  Wei Guozhi  <carrot@google.com>
19638
19639         PR target/47855
19640         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19641         (arm_cond_branch): Likewise.
19642         (arm_cond_branch_reversed): Likewise.
19643         (arm_jump): Likewise.
19644         (push_multi): Likewise.
19645         * config/arm/constraints.md (Py): New constraint.
19646
19647 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19648
19649         PR bootstrap/48471
19650         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19651         Move these...
19652         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19653         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19654         #ifdef DBX_DEBUGGING_INFO.
19655
19656 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19657
19658         PR bootstrap/48403
19659         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19660         if old and new states differ.
19661
19662 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19663
19664         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19665         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19666         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19667         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19668         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19669         mcfv4e): Use Alias.
19670         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19671         ColdFire options to -mcpu= options.
19672
19673 2011-04-05  Jeff Law  <law@redhat.com>
19674
19675         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19676         check if BB is a successor of LOOP->header and return
19677         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19678
19679 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19680
19681         * cprop.c (struct reg_use): Remove.
19682         (reg_use_table): Make an array of RTX.
19683         (find_used_regs, constprop_register, local_cprop_pass,
19684         bypass_block): Simplify users of reg_use_table.
19685         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19686         on one of the uses found by find_used_regs.
19687
19688 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19689
19690         PR bootstrap/48469
19691         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19692         declaration.
19693
19694 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19695
19696         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19697         as an rtx.
19698         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19699
19700 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19701
19702         PR middle-end/48441
19703         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19704
19705 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19706
19707         * combine.c: Include obstack.h.
19708         (struct insn_link): Define.
19709         (uid_log_links): Adjust type.
19710         (FOR_EACH_LOG_LINK): New macro.
19711         (insn_link_obstack): Declare.
19712         (alloc_insn_link): Define.
19713         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19714         type of link variables.
19715         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19716         (try_combine, record_promoted_values, distribute_notes): Likewise.
19717         (distribute_links): Likewise.  Tweak prototype.
19718         (clear_log_links): Delete.
19719         (adjust_for_new_dest): Call alloc_insn_link.
19720         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19721
19722 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19723
19724         * gcse.c (modify_mem_list): Convert to an array of VECs.
19725         (canon_modify_mem_list, compute_transp): Tweak formatting.
19726         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19727         (load_killed_in_block_p): Likewise.
19728         (record_last_mem_set_info): Likewise.
19729         (clear_modify_mem_tables): Likewise.
19730
19731 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19732
19733         PR middle-end/48461
19734         * function.c (emit_use_return_register_into_block): Only define if
19735         HAVE_return.
19736
19737 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19738
19739         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19740
19741 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19742
19743         * config/rx/rx-opts.h: New.
19744         * config/rx/rx.c (rx_cpu_type): Remove.
19745         (rx_handle_option): Don't assert that global structures are in
19746         use.  Access variables via opts pointer.  Defer most handling of
19747         OPT_mint_register_.  Use error_at.
19748         (rx_option_override): Handle deferred OPT_mint_register_ here.
19749         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19750         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19751         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19752         (rx_cpu_types): New Enum and EnumValue entries.
19753         (mint-register=): Use Defer and use Var accordingly.
19754
19755 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19756
19757         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19758         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19759         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19760         Move these...
19761         (debug_free_queue, debug_nesting, symbol_queue_index):
19762         ...and these...
19763         * dbxout.c: ...to here.  Make static.
19764
19765 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19766
19767         * gcse.c (modify_pair): Define.  Define a VEC of it.
19768         (canon_modify_mem_list): Convert to an array of VECs.
19769         (free_insn_expr_list_list): Delete.
19770         (clear_modify_mem_tables): Call VEC_free instead.
19771         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19772         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19773         (canon_list_insert, compute_transp): Likewise.
19774
19775 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19776
19777         PR target/43920
19778         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19779         for size.
19780
19781 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19782
19783         PR target/43920
19784         * function.c (emit_use_return_register_into_block): New function.
19785         (thread_prologue_and_epilogue_insns): Use
19786         emit_use_return_register_into_block.
19787
19788 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19789
19790         PR target/43920
19791         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19792         insn.
19793
19794 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19795
19796         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19797
19798 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19799
19800         * config/arm/arm.md (define_constants for unspec): Replace with
19801         define_c_enum.
19802         (define_constants for unspecv): Replace with define_c_enum.
19803         * config/arm/neon.md (define_constants for unspec): Replace with
19804         define_c_enum.
19805
19806 2011-04-04  Richard Henderson  <rth@redhat.com>
19807
19808         PR bootstrap/48400
19809         * dwarf2out.c (output_line_info): Always emit line info from
19810         at least one section.
19811         (dwarf2out_init): Create text_section_line_info here ...
19812         (set_cur_line_info_table): ... not here.
19813
19814 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19815
19816         PR target/48380
19817         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19818         not called.
19819
19820         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19821
19822 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19823
19824         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19825         (expr_equiv_p): Remove.
19826         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19827         (hash_scan_set): Update call to insert_set_in_table.
19828         (dump_hash_table): Dump <dest, src> pair.
19829         (lookup_set): Simplify.  Lookup <dest, src> pair.
19830         (compute_transp): Remove, fold heavily simplified code into...
19831         (compute_local_properties): ...here.  Expect COMP and TRANSP
19832         unconditionally.
19833         (find_avail_set): Take set directly from struct expr.
19834         (find_bypass-set): Likewise.
19835         (bypass_block): Likewise.
19836         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19837
19838         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19839         checks on form of COND from find_implicit_sets to here.
19840         (find_implicit_sets): Cleanup control flow. Split critical edges
19841         if it exposes implicit sets.  Allocate/resize implicit_sets as
19842         necessary.
19843         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19844         changed something.  Run df_analyze after find_implicit_sets if any
19845         edges were split.  Do not allocate implicit_sets here.
19846
19847         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19848         (gcse_obstack): Renamed to cprop_obstack.
19849         (GNEW, GNEWVEC, GNEWVAR): Remove.
19850         (gmalloc): Remove.
19851         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19852         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19853         (gcse_alloc): Likewise, and rename to cprop_alloc.
19854         (alloc_gcse_men, free_gcse_mem): Remove.
19855         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19856         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19857         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19858
19859         * cprop.c (oprs_not_set_p): Remove.
19860         (mark_set, mark_clobber): Remove.
19861         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19862         (reg_not_set_p): New function.
19863         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19864         (cprop_insn): Likewise.
19865         (cprop_jump): Use FOR_EACH_EDGE.
19866
19867 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19868
19869         PR bootstrap/48403
19870         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19871         (rank_for_schedule): Use scheduled_insns vector instead of
19872         last_scheduled_insn.
19873         (ok_for_early_queue_removal): Likewise.
19874         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19875         we have a dbg_cnt.
19876         (choose_ready): Likewise.
19877         (commit_schedule): Use VEC_iterate.
19878         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19879         a dbg_cnt, use it and ensure the first insn is in the ready list.
19880         (haifa_sched_init): Allocate scheduled_insns.
19881         (sched_extend_ready_list): Don't allocate it; reserve space.
19882         (haifa_sched_finish): Free it.
19883
19884 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19885
19886         * optc-gen.awk: Always remove type from Variable entry before
19887         recording in var_seen.
19888
19889 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19890
19891         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19892         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19893         call to tidy_fallthru_edges.
19894
19895 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19896
19897         * doc/options.texi (ToLower): Document.
19898         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19899         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19900         * opts.h (cl_option): Add cl_tolower field.
19901         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19902         arguments with lowercase strings.
19903         * config/rx/rx.opt (mcpu=): Add ToLower.
19904         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19905         argument.
19906
19907 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19908
19909         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19910
19911 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19912
19913         * config/vax/vax.c: Include reload.h.
19914
19915 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19916
19917         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19918         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19919         (sparc_preferred_reload_class): New function.
19920
19921 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19922
19923         PR debug/48401
19924         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19925         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19926
19927 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19928
19929         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19930         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19931
19932 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19933
19934         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19935         (ASM_OUTPUT_ALIGNED_BSS): Define.
19936
19937 2011-04-03  Michael Matz  <matz@suse.de>
19938
19939         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19940         and next_slot members.
19941         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19942         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19943         (lto_streamer_cache_append): Declare.
19944         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19945         unsigned index, remove offset parameter, ensure that we append
19946         or update existing entries.
19947         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19948         parameter, update next_slot for append.
19949         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19950         parameter.
19951         (lto_streamer_cache_insert_at): Likewise.
19952         (lto_streamer_cache_append): New function.
19953         (lto_streamer_cache_lookup): Use unsigned index.
19954         (lto_streamer_cache_get): Likewise.
19955         (lto_record_common_node): Don't test tree_node_can_be_shared.
19956         (preload_common_node): Adjust call to lto_streamer_cache_insert.
19957         (lto_streamer_cache_delete): Don't free offsets member.
19958         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19959         (lto_output_string_with_length): Use lto_output_data_stream.
19960         (lto_output_tree_header): Remove ix parameter, don't write it.
19961         (lto_output_builtin_tree): Likewise.
19962         (lto_write_tree): Adjust callers to above, don't track and write
19963         offset, write unsigned index.
19964         (output_unreferenced_globals): Don't emit all global vars.
19965         (write_global_references): Use unsigned indices.
19966         (lto_output_decl_state_refs): Likewise.
19967         (write_symbol): Likewise.
19968         * lto-streamer-in.c (lto_input_chain): Move earlier.
19969         (input_function): Use unsigned index.
19970         (input_alias_pairs): Don't read and then ignore all global vars.
19971         (lto_materialize_tree): Remove ix_p parameter, don't read index,
19972         don't pass it back, use lto_streamer_cache_append.
19973         (lto_register_var_decl_in_symtab): Use unsigned index.
19974         (lto_register_function_decl_in_symtab): Likewise.
19975         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19976         index.
19977         (lto_get_builtin_tree): Don't read index, use
19978         lto_streamer_cache_append.
19979         (lto_read_tree): Adjust call to lto_materialize_tree.
19980
19981         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19982         don't use function calls in arguments to MIN.
19983
19984         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19985         twice.
19986
19987         * gimple.c (gimple_type_leader_entry): Mark deletable.
19988
19989 2011-04-03  Alan Modra  <amodra@gmail.com>
19990
19991         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19992
19993 2011-04-03  Michael Matz  <matz@suse.de>
19994
19995         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19996         an integer.
19997         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19998
19999 2011-04-03  Michael Matz  <matz@suse.de>
20000
20001         * cgraphbuild.c (record_reference): Canonicalize constructor values.
20002         * gimple-fold.c (canonicalize_constructor_val): Accept being called
20003         without function context.
20004         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20005         current_function_decl and cfun.
20006
20007 2011-04-03  Michael Matz  <matz@suse.de>
20008
20009         * tree.c (decl_init_priority_insert): Don't create entry for
20010         default priority.
20011         (decl_fini_priority_insert): Ditto.
20012         (fields_compatible_p, find_compatible_field): Remove.
20013         * tree.h (fields_compatible_p, find_compatible_field): Remove.
20014         * gimple.c (gimple_compare_field_offset): Adjust block comment.
20015
20016 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
20017
20018         * combine.c (try_combine): Remove useless local variable.
20019
20020 2011-04-03  Richard Guenther  <rguenther@suse.de>
20021             Ira Rosen  <ira.rosen@linaro.org>
20022
20023         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20024         non-variable offsets and compare the remaining bases of the two
20025         accesses instead of looking for exact same data-ref.
20026
20027 2011-04-02  Kai Tietz  <ktietz@redhat.com>
20028
20029         PR target/48416
20030         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20031
20032         * i386.c (ix86_is_msabi_thiscall): New helper function.
20033         (ix86_is_type_thiscall): New helper function.
20034         (ix86_comp_type_attributes): Handle thiscall for method-functions
20035         special.
20036         (init_cumulative_args): Likewise.
20037         (find_drap_reg): Likewise.
20038         (ix86_static_chain): Likewise.
20039         (x86_this_parameter): Likewise.
20040         (x86_output_mi_thunk): Likewise.
20041
20042 2011-04-01  Olivier Hainque  <hainque@adacore.com>
20043             Nicolas Setton  <setton@adacore.com>
20044             Eric Botcazou  <ebotcazou@adacore.com>
20045
20046         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20047         (add_gnat_descriptive_type_attribute): New function.
20048         (gen_array_type_die): Call it.
20049         (gen_enumeration_type_die): Likewise.
20050         (gen_struct_or_union_type_die): Likewise.
20051         (modified_type_die): Likewise.
20052         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20053         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20054         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20055
20056 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20057
20058         PR bootstrap/48148
20059         * dwarf2out.c (resolve_addr): Don't call force_decl_die
20060         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20061
20062         Revert:
20063         2011-03-17  Richard Guenther  <rguenther@suse.de>
20064
20065         PR bootstrap/48148
20066         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20067         origin for decls in other ltrans units.
20068         (input_varpool_node): Likewise.
20069
20070 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20071
20072         PR middle-end/48335
20073         * expr.c (expand_assignment): Handle all possibilities
20074         if TO_RTX is CONCAT.
20075         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20076         (store_split_bit_field): If SUBREG_REG (op0) or
20077         op0 itself has smaller mode than word, return it
20078         for offset 0 and const0_rtx for out-of-bounds stores.
20079         If word is const0_rtx, skip it.
20080
20081 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
20082
20083         * config/h8300/h8300.c (print_operand_address): Rename to...
20084         (h8300_print_operand_address): ...this. Make static. Adjust comments.
20085         Call h8300_print_operand and h8300_print_operand_address instead of
20086         print_operand and print_operand_address. Declare.
20087         (print_operand): Renake to...
20088         (h8300_print_operand): ...this. Make static. Adjust comments.
20089         Call h8300_print_operand instead of print_operand. Declare.
20090         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20091         (h8300_register_move_cost): Likewise.
20092         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20093         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20094         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20095         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20096         * config/h8300/h8300-protos.h (print_operand): Delete.
20097         (print_operand_address): Delete.
20098
20099 2011-04-01  Richard Henderson  <rth@redhat.com>
20100
20101         PR 48400
20102         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20103         in strict mode before dwarf4.  Re-order tests to early out
20104         before switching sections.
20105
20106 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
20107
20108         * config/h8300/constraints.md: New file.
20109         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
20110         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20111         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20112         * config/h8300/predicates.md (bit_operand): Likewise.
20113         (incdec_operand): Use satisfies_constraint_M and
20114         satisfies_constraint_O.  Don't use C code block.
20115         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20116         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20117         (compute_mov_length): Use satisfies_constraint_G.
20118         (fix_bit_operand): Use satisfies_constraint_U.
20119         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20120         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20121         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20122         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20123         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20124         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20125         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20126         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20127         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20128         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20129         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20130         (EXTRA_MEMORY_CONSTRAINT): Delete.
20131
20132 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
20133             Michael Meissner  <meissner@linux.vnet.ibm.com>
20134
20135         PR target/48262
20136         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20137         operands, as per the specifications.
20138
20139         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20140         (vec_extract_evenv4sf): Ditto.
20141         (vec_extract_evenv8hi): Ditto.
20142         (vec_extract_evenv16qi): Ditto.
20143         (vec_extract_oddv4si): Ditto.
20144
20145 2011-03-31  Mark Wielaard  <mjw@redhat.com>
20146
20147         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20148         high_pc attribute if the CU has no associated code. Only output
20149         DW_AT_entry_pc for CU if not generating strict dwarf and
20150         dwarf_version < 4.
20151
20152 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
20153
20154         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20155         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20156         out of ...
20157         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20158         * final.c (final_start_function): Call the new function rather
20159         than using a NULL argument for dwarf2out_frame_debug.
20160
20161         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20162         that contains the prologue.
20163
20164         * haifa-sched.c (queue_insn): New arg REASON.  All callers
20165         changed.  Print it in debugging output.
20166
20167         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20168
20169         * sched-ebb.c (begin_schedule_ready): Remove second argument.
20170         Split most of the code into...
20171         (begin_move_insn): ... here.  New function.
20172         (ebb_sched_info): Add a pointer to it.
20173         * haifa-sched.c (scheduled_insns): New static variable.
20174         (sched_extend_ready_list): Allocate it.
20175         (schedule_block): Use it to record the order of scheduled insns.
20176         Perform RTL changes to move insns only after all scheduling
20177         decisions have been made.
20178         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20179         begin_move_insn field.
20180         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20181         * sched-int.h (struct haifa_sched_info): Remove second argument
20182         from begin_schedule_ready hook.  Add new member begin_move_insn.
20183         * sched-rgn.c (begin_schedule_ready): Remove second argument.
20184         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20185
20186         * haifa-sched.c (prune_ready_list): New function, broken out of
20187         schedule_block.
20188         (schedule_block): Use it.
20189
20190 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20191
20192         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20193
20194 2011-04-01  Kai Tietz  <ktietz@redhat.com>
20195
20196         * config.gcc (*-*-mingw*): Allow as option the
20197         posix threading model.
20198         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
20199         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20200         definition.
20201         (CPP_SPEC): Add pthread/no-pthread handling.
20202         (LIB_SPEC): Likewise.
20203         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20204         (LIB_SPEC): Likewise.
20205         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20206         flag to pass -pthread option for shared libgcc build.
20207         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20208         for shared libgcc build.
20209         * config/i386/t-mingw-pthread: New file.
20210         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20211         New define to enable use of library pthread by default.
20212         * config/i386/mingw.opt (pthread): New driver option.
20213         (no-pthread): New driver option.
20214         * config/i386/cygming.opt: Make sure trailing empty line is retained.
20215         * config/i386/mingw-w64.opt: Likewise.
20216
20217 2011-04-01  Gary Funck  <gary@intrepid.com>
20218
20219         * c-decl.c (grokdeclarator): Fix formatting.
20220
20221 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20222
20223         * expr.c (emit_block_move_via_movmem): Use n_generator_args
20224         instead of n_operands.
20225         (set_storage_via_setmem): Likewise.
20226         * optabs.c (maybe_gen_insn): Likewise.
20227         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20228         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20229         (mips_expand_builtin_direct): Likewise.
20230         * config/spu/spu.c (expand_builtin_args): Likewise.
20231
20232 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20233
20234         * recog.h (insn_data_d): Add n_generator_args.
20235         * genoutput.c (data): Likewise.
20236         (output_insn_data): Print it.
20237         (max_opno, num_dups): Delete.
20238         (scan_operands): Just fill in "d->operand[...]".
20239         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20240
20241 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20242
20243         * gensupport.h (pattern_stats): New structure.
20244         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20245         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20246         (max_operand_1, max_operand_vec): Delete.
20247         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20248
20249 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
20250
20251         * emit-rtl.c (emit_pattern_after_setloc): New function.
20252         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20253         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20254         (emit_pattern_after): New function.
20255         (emit_insn_after, emit_jump_insn_after): Call it.
20256         (emit_call_insn_after, emit_debug_insn_after): Likewise.
20257         (emit_pattern_before_setloc): New function.
20258         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20259         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20260         Likewise.
20261         (emit_pattern_before): New function.
20262         (emit_insn_before, emit_jump_insn_before): Call it.
20263         (emit_call_insn_before, emit_debug_insn_before): Likewise.
20264
20265 2011-03-31  Richard Henderson  <rth@redhat.com>
20266
20267         * dwarf2out.c (dw_separate_line_info_ref): Remove.
20268         (dw_separate_line_info_entry): Remove.
20269         (enum dw_line_info_opcode): New.
20270         (dw_line_info_entry): Use it.
20271         (dw_line_info_table, dw_line_info_table_p): New.
20272         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20273         (line_info_table, line_info_label_num): Remove.
20274         (line_info_table_in_use): Remove.
20275         (separate_line_info_table): Remove.
20276         (separate_line_info_table_allocated): Remove.
20277         (separate_line_info_table_in_use): Remove.
20278         (LINE_INFO_TABLE_INCREMENT): Remove.
20279         (line_info_label_num): New.
20280         (cur_line_info_table): New.
20281         (text_section_line_info, cold_text_section_line_info): New.
20282         (separate_line_info): New.
20283         (SEPARATE_LINE_CODE_LABEL): Remove.
20284         (print_dwarf_line_table): Remove.
20285         (debug_dwarf): Don't dump it.
20286         (output_one_line_info_table): New.
20287         (output_line_info): Use it.
20288         (new_line_info_table): New.
20289         (set_cur_line_info_table): New.
20290         (dwarf2out_switch_text_section): Use it.
20291         (dwarf2out_begin_function): Likewise.
20292         (push_dw_line_info_entry): New.
20293         (dwarf2out_source_line): Rewrite for new line info tables.
20294         (dwarf2out_init): Remove dead initailizations.
20295
20296 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20297
20298         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
20299         various flags.
20300         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20301         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20302         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20303         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20304         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20305         * opt-functions.awk (flag_init, switch_bit_fields): New.
20306         (switch_flags): Don't handle flags moved to bit-fields.  Don't
20307         generate CL_MISSING_OK or CL_SAVE.
20308         * optc-gen.awk: Update to generate bit-field output as well as
20309         flags field.
20310         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20311         bit-field instead of CL_REJECT_DRIVER flag.
20312         * opts-common.c (generate_canonical_option,
20313         decode_cmdline_option): Use bit-fields instead of CL_* flags.
20314         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20315         instead of CL_REJECT_NEGATIVE flag.
20316         * toplev.c (print_switch_values): Use cl_report bit-field instead
20317         of CL_REPORT flag.
20318
20319 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20320
20321         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20322         a zero minimum index only if it is redundant.
20323
20324 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
20325
20326         PR rtl-optimization/48381
20327         * ira-color.c (assign_hard_reg): Use hard reg set intersection
20328         instead of ira_class_hard_reg_index for calculating conflicting
20329         hard registers.
20330
20331 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
20332
20333         * cprop.c: Clean up hash table building.
20334         (reg_avail_info): Remove.
20335         (oprs_available_p): Remove.
20336         (record_last_reg_set_info): Remove.
20337         (record_last_set_info): Remove.
20338         (reg_available_p): New function.
20339         (gcse_constant_p): Do not treat unfolded conditions as constants.
20340         (make_set_regs_unavailable): New function.
20341         (hash_scan_set): Simplify with new reg_available_p.
20342         (compute_hash_table_work): Traverse insns stream only once.
20343         Do not compute reg_avail_info. Traverse insns in reverse order.
20344         Record implicit sets after recording explicit sets from the block.
20345
20346 2011-03-31  Michael Matz  <matz@suse.de>
20347
20348         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20349
20350 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
20351
20352         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20353         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20354         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20355         (h8300_mode_dependent_address_p): New function.
20356         (h8300_get_index): Make static.
20357
20358 2011-03-31  Jeff Law  <law@redhat.com>
20359
20360         * reload1.c (elimination_effects): Fix typo in recent change.
20361
20362         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20363         typo potentially leading to null pointer dereference.
20364
20365         * caller-save.c (new_saved_hard_reg): Eliminate return value.
20366         (setup_save_areas): Corresponding changes to avoid useless
20367         assignments.
20368
20369         * jump.c (reversed_comparison_code_parts): Avoid successive return
20370         statements when REVERSE_CONDITION is defined.
20371
20372         * expr.c (expand_assignment): Avoid useless assignments.
20373         (expand_expr_real_1): Likewise.
20374         (expand_expr_real_2): Avoid useless statements.
20375
20376         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20377
20378         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20379
20380         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20381         statements.
20382
20383         * stmt.c (expand_expr_stmt): Avoid useless assignment.
20384
20385 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20386
20387         PR target/47109
20388         * doc/tm.texi.in (TARGET_VERSION): Remove.
20389         * doc/tm.texi: Regenerate.
20390         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20391         * collect2.c (main): Don't use TARGET_VERSION.
20392         * mips-tdump.c (main): Don't use TARGET_VERSION.
20393         * mips-tfile.c (main): Don't use TARGET_VERSION.
20394         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20395         * config/rs6000/vxworksae.h: Remove.
20396         * config/alpha/alpha.h (TARGET_VERSION): Remove.
20397         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20398         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20399         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20400         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20401         * config/arm/arm.h (TARGET_VERSION): Remove.
20402         * config/arm/coff.h (TARGET_VERSION): Remove.
20403         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20404         * config/arm/elf.h (TARGET_VERSION): Remove.
20405         * config/arm/freebsd.h (TARGET_VERSION): Remove.
20406         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20407         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20408         * config/arm/pe.h (TARGET_VERSION): Remove.
20409         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20410         * config/arm/semi.h (TARGET_VERSION): Remove.
20411         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20412         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20413         * config/arm/vxworks.h (TARGET_VERSION): Remove.
20414         * config/avr/avr.h (TARGET_VERSION): Remove.
20415         * config/bfin/bfin.h (TARGET_VERSION): Remove.
20416         * config/fr30/fr30.h (TARGET_VERSION): Remove.
20417         * config/frv/frv.h (TARGET_VERSION): Remove.
20418         * config/h8300/h8300.h (TARGET_VERSION): Remove.
20419         * config/i386/cygwin.h (TARGET_VERSION): Remove.
20420         * config/i386/darwin.h (TARGET_VERSION): Remove.
20421         * config/i386/darwin64.h (TARGET_VERSION): Remove.
20422         * config/i386/djgpp.h (TARGET_VERSION): Remove.
20423         * config/i386/freebsd.h (TARGET_VERSION): Remove.
20424         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20425         * config/i386/gnu.h (TARGET_VERSION): Remove.
20426         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20427         * config/i386/i386elf.h (TARGET_VERSION): Remove.
20428         * config/i386/linux.h (TARGET_VERSION): Remove.
20429         * config/i386/linux64.h (TARGET_VERSION): Remove.
20430         * config/i386/lynx.h (TARGET_VERSION): Remove.
20431         * config/i386/mingw32.h (TARGET_VERSION): Remove.
20432         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20433         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20434         * config/i386/netware.h (TARGET_VERSION): Remove.
20435         * config/i386/nto.h (TARGET_VERSION): Remove.
20436         * config/i386/openbsd.h (TARGET_VERSION): Remove.
20437         * config/i386/vxworks.h (TARGET_VERSION): Remove.
20438         * config/ia64/elf.h (TARGET_VERSION): Remove.
20439         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20440         * config/ia64/hpux.h (TARGET_VERSION): Remove.
20441         * config/ia64/linux.h (TARGET_VERSION): Remove.
20442         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20443         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20444         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20445         * config/lm32/lm32.h (TARGET_VERSION): Remove.
20446         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20447         * config/m32c/m32c.h (TARGET_VERSION): Remove.
20448         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20449         * config/m32r/m32r.h (TARGET_VERSION): Remove.
20450         * config/m68k/linux.h (TARGET_VERSION): Remove.
20451         * config/m68k/m68k.h (TARGET_VERSION): Remove.
20452         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20453         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20454         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20455         * config/mep/mep.h (TARGET_VERSION): Remove.
20456         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20457         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20458         * config/mips/iris6.h (MACHINE_TYPE): Remove.
20459         * config/mips/linux.h (TARGET_VERSION): Remove.
20460         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20461         * config/mips/vxworks.h (TARGET_VERSION): Remove.
20462         * config/mmix/mmix.h (TARGET_VERSION): Remove.
20463         * config/mn10300/linux.h (TARGET_VERSION): Remove.
20464         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20465         * config/pa/pa.h (TARGET_VERSION): Remove.
20466         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20467         * config/picochip/picochip.h (TARGET_VERSION): Remove.
20468         * config/rs6000/aix.h (TARGET_VERSION): Remove.
20469         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20470         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20471         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20472         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20473         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20474         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20475         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20476         * config/rs6000/linux.h (TARGET_VERSION): Remove.
20477         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20478         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20479         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20480         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20481         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20482         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20483         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20484         * config/s390/linux.h (TARGET_VERSION): Remove.
20485         * config/s390/s390.h (TARGET_VERSION): Remove.
20486         * config/s390/tpf.h (TARGET_VERSION): Remove.
20487         * config/score/score.h (TARGET_VERSION): Remove.
20488         * config/sh/linux.h (TARGET_VERSION): Remove.
20489         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20490         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20491         * config/sh/sh.h (TARGET_VERSION): Remove.
20492         * config/sh/sh64.h (TARGET_VERSION): Remove.
20493         * config/sh/superh.h (TARGET_VERSION): Remove.
20494         * config/sh/vxworks.h (TARGET_VERSION): Remove.
20495         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20496         * config/sparc/linux.h (TARGET_VERSION): Remove.
20497         * config/sparc/linux64.h (TARGET_VERSION): Remove.
20498         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20499         TARGET_NAME32, TARGET_NAME): Remove.
20500         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20501         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20502         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20503         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20504         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20505         * config/spu/spu.h (TARGET_VERSION): Remove.
20506         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20507         * config/v850/v850.h (TARGET_VERSION): Remove.
20508         * config/vax/linux.h (TARGET_VERSION): Remove.
20509         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20510         * config/xtensa/elf.h (TARGET_VERSION): Remove.
20511         * config/xtensa/linux.h (TARGET_VERSION): Remove.
20512
20513 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20514
20515         PR target/48142
20516         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20517         frame-related from frame-unrelated adjustments to the stack pointer.
20518
20519 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
20520
20521         * common.opt (fdebug-types-section): Move earlier.
20522         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20523
20524 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
20525
20526         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20527         var.
20528
20529 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
20530
20531         * tree.h (CASE_CHAIN): Define.
20532         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20533         (gimple_redirect_edge_and_branch): Likewise.
20534
20535 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20536
20537         PR middle-end/48367
20538         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20539         calculation.
20540
20541 2011-03-30  Jeff Law  <law@redhat.com>
20542
20543         * PR bootstrap/48371
20544         * reload1.c (reload): Fix botch in last change.
20545
20546         * reload.h (struct reload): Fix typo introduced in last change.
20547
20548 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20549
20550         * config/arm/arm.opt (mhard-float, msoft-float): Mark
20551         Undocumented.  Remove help text.
20552         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20553         -mhard-float.
20554
20555 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20556
20557         * doc/options.texi (NegativeAlias): Document.
20558         (Alias): Mention NegativeAlias.
20559         * opt-functions.awk: Handle NegativeAlias.
20560         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20561         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20562         * opts.h (CL_NEGATIVE_ALIAS): Define.
20563         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20564         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20565         OPT_mspe_.
20566         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20567         Alias entries.
20568         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20569         mno-spe and mno-isel instead of mspe=no and -misel=no.
20570
20571 2011-03-29  Mark Wielaard  <mjw@redhat.com>
20572
20573         * common.opt (fdebug-types-section): New flag.
20574         * doc/invoke.texi: Document new -fno-debug-types-section flag.
20575         * dwarf2out.c (use_debug_types): New define.
20576         (struct die_struct): Mark die_id with GTY desc use_debug_types.
20577         (print_die): Guard output of type unit signatures using
20578         use_debug_types.
20579         (build_abbrev_table): Replace assert of dwarf_version >= 4
20580         with assert on use_debug_types.
20581         (size_of_die): Likewise.
20582         (unmark_dies): Likewise.
20583         (value_format): Decide AT_ref_external form on use_debug_types.
20584         (output_die): Replace dwarf_version version check guard with
20585         use_debug_types where appropriate.
20586         (modified_type_die): Likewise.
20587         (gen_reference_type_die): Likewise.
20588         (dwarf2out_start_source_file): Likewise.
20589         (dwarf2out_end_source_file): Likewise.
20590         (prune_unused_types_walk_attribs): Likewise.
20591         (dwarf2out_finish): Likewise.
20592
20593 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20594
20595         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20596
20597 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20598
20599         PR rtl-optimization/48332
20600         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20601         mode of input operand N and modeN to its actual mode.
20602
20603 2011-03-30  Jeff Law  <law@redhat.com>
20604
20605         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20606         define accessor macro.
20607         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20608         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20609         (reg_equiv_init): Likewise.
20610         (reg_equivs_size): New variable.
20611         (reg_equiv_init_size): Remove.
20612         (allocate_initial_values): Move prototype to here from....
20613         * integrate.h (allocate_initial_values): Remove prototype.
20614         * integrate.c: Include reload.h.
20615         (allocate_initial_values): Corresponding changes.
20616         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20617         (fix_reg_equiv_init, no_equiv): Corresponding changes.
20618         (update_equiv_regs): Corresponding changes.
20619         (ira): Corresponding changes.
20620         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20621         (push_secondary_reload): Corresponding changes.
20622         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20623         (make_memloc, find_reloads_address): Corresponding changes.
20624         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20625         (find_reloads_address_1): Corresponding changes.
20626         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20627         (refers_to_regno_for_reload_p): Corresponding changes.
20628         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20629         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20630         * reload1.c: Include ggc.h.
20631         (grow_reg_equivs): New function.
20632         (replace_pseudos_in, reload): Corresponding changes.
20633         (calculate_needs_all_insns, alter_regs): Corresponding changes.
20634         (eliminate_regs_1, elimination_effects): Corresponding changes.
20635         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20636         (delete_output_reload): Likewise.
20637         * caller-save.c (mark_referenced_regs): Corresponding changes.
20638         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20639         * frv/predicates.md (frv_load_operand): Corresponding changes.
20640         * microblaze/microblaze.c (double_memory_operand): Corresponding
20641         changes.
20642         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20643         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20644         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20645         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20646         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20647         changes.
20648         * pa/pa.c (emit_move_sequence): Corresponding changes.
20649         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20650
20651 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20652
20653         PR target/47551
20654         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20655         structure modes.  Don't check neon_vector_mem_operand for
20656         vector or structure modes.
20657
20658 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20659             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20660
20661         PR target/43590
20662         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20663         operand 1 and reshuffle the operands to match.
20664         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20665
20666 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20667
20668         PR driver/48208
20669         * config/c.opt (F): Added 'Driver' to -F option.
20670
20671         PR driver/48260
20672         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20673           handler function.
20674         * config/darwin.opt: Added '-arch' option.
20675
20676 2011-03-30  Nick Clifton  <nickc@redhat.com>
20677
20678         * config/rx/rx.md: Add peepholes and patterns to combine
20679         extending loads and simple arithmetic instructions.
20680         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20681         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20682         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20683         modes to use pre-decrement and post-increment addressing.
20684         (rx_is_restricted_memory_address): Add range checking of REG+INT
20685         addresses.
20686         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20687         (rx_memory_move_cost): Adjust cost of stores.
20688         (rx_adjust_insn_length): New function.
20689
20690 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20691
20692         PR c/48305
20693         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20694         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20695         matching arg00/arg01 types.
20696
20697 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20698
20699         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20700         last_location to UNKNOWN_LOCATION.
20701
20702 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20703
20704         PR target/48349
20705         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20706         FLOAT_SSE_REGS.
20707
20708 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20709             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20710
20711         PR bootstrap/48337
20712         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20713         Init(PROCESSOR_V7).
20714         (sparc_cpu): Likewise.
20715         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20716         PROCESSOR_V7.
20717
20718 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20719
20720         PR target/48336
20721         PR middle-end/48342
20722         PR rtl-optimization/48345
20723         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20724         hard regs for given mode from profitable regs when doing secondary
20725         allocation.
20726
20727 2011-03-29  Jeff Law  <law@redhat.com>
20728
20729         PR bootstrap/48327
20730         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20731         do_not_duplicate field.
20732         (lookup_redirection_data): Corresponding changes.
20733         (create_duplicates): Always create a template block.
20734         (redirect_edges): Remove code which reused the original block
20735         when it was going to become unreachable code.
20736         (thread_block): Don't set do_not_duplicate field.
20737
20738 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20739
20740         * lto-opts.c (register_user_option_p, lto_register_user_option):
20741         Make type argument unsigned.
20742         * lto-streamer.h (lto_register_user_option): Make type argument
20743         unsigned.
20744         * opth-gen.awk: Make CL_* macros unsigned.
20745         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20746         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20747         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20748         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20749         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20750         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20751         (find_opt): Make lang_mask argument unsigned.
20752
20753 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20754
20755         PR rtl-optimization/48331
20756         PR rtl-optimization/48334
20757         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20758         for any used algorithm.
20759
20760 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20761
20762         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20763         to parent_max.
20764
20765 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20766
20767         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20768         (alpha_option_override): Don't set alpha_sr_alias_set.
20769         (emit_frame_store_1): Use gen_frame_mem rather than calling
20770         set_mem_alias_set.
20771         (alpha_expand_epilogue): Ditto.
20772
20773 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20774
20775         PR tree-optimization/48290
20776         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20777         vectorization, check that relevant phis in the basic block after
20778         the inner loop are really inner loop's exit phis.
20779
20780 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20781
20782         PR debug/48190
20783         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20784         (cached_dw_loc_list_def): New structure.
20785         (cached_dw_loc_list): New typedef.
20786         (cached_dw_loc_list_table): New variable.
20787         (cached_dw_loc_list_table_hash): New function.
20788         (cached_dw_loc_list_table_eq): Likewise.
20789         (add_location_or_const_value_attribute): Take a bool cache_p.
20790         Cache the list when the parameter is true.
20791         (gen_formal_parameter_die): Update caller.
20792         (gen_variable_die): Likewise.
20793         (dwarf2out_finish): Likewise.
20794         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20795         while generating debug info for the decl.
20796         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20797         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20798         (resolve_addr): Cache the result of resolving a chain of
20799         location lists.
20800
20801 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20802
20803         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20804         conflict object hard regset nodes have intersecting hard reg sets.
20805
20806         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20807         after regstat_init_n_sets_and_refs.
20808
20809         * ira.c: Add more comments at the top.
20810         (setup_stack_reg_pressure_class, setup_pressure_classes):
20811         Add comments how we compute the register pressure classes.
20812         (setup_allocno_and_important_classes): Add more comments.
20813         (setup_class_translate_array, reorder_important_classes)
20814         (setup_reg_class_relations): Add comments.
20815
20816         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20817         start of the file.
20818
20819         * ira-color.c: Add 2011 to the Copyright line.
20820         (assign_hard_reg):  Add more comments.
20821         (improve_allocation): Ditto.
20822
20823         * ira-costs.c: Add 2011 to the Copyright line.
20824         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20825         comments.
20826         (setup_regno_cost_classes_by_mode): Ditto.
20827
20828         Initial patches from ira-improv branch:
20829
20830         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20831
20832         * ira-build.c (ira_create_object): Remove initialization of
20833         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20834         (ira_create_allocno): Remove initialization of
20835         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20836         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20837         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20838         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20839         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20840         Initialize ALLOCNO_ADD_DATA.
20841         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20842         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20843         ALLOCNO_REG.
20844         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20845         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20846
20847         * ira.c (ira_reallocate): Remove.
20848         (setup_pressure_classes): Call
20849         ira_init_register_move_cost_if_necessary.  Use
20850         ira_register_move_cost instead of ira_get_register_move_cost.
20851         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20852         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20853
20854         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20855         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20856         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20857         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20858         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20859         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20860         Fix formatting.
20861         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20862         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20863         (struct allocno_color_data): New.
20864         (allocno_color_data_t): New typedef.
20865         (allocno_color_data): New definition.
20866         (ALLOCNO_COLOR_DATA): New macro.
20867         (struct object_color_data): New.
20868         (object_color_data_t): New typedef.
20869         (object_color_data): New definition.
20870         (OBJECT_COLOR_DATA): New macro.
20871         (update_copy_costs, calculate_allocno_spill_cost): Call
20872         ira_init_register_move_cost_if_necessary.  Use
20873         ira_register_move_cost instead of ira_get_register_move_cost.
20874         (move_spill_restore, update_curr_costs): Ditto.
20875         (allocno_spill_priority): Make it inline.
20876         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20877         (struct coalesce_data, coalesce_data_t): New.
20878         (allocno_coalesce_data): New definition.
20879         (ALLOCNO_COALESCE_DATA): New macro.
20880         (merge_allocnos, coalesced_allocno_conflict_p): Use
20881         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20882         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20883         (coalesce_allocnos): Ditto.
20884         (setup_coalesced_allocno_costs_and_nums): Ditto.
20885         (collect_spilled_coalesced_allocnos): Ditto.
20886         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20887         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20888         (coalesce_spill_slots): Ditto.
20889         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20890         free allocno_coalesce_data.
20891
20892         * ira-conflicts.c: Fix formatting.
20893         (process_regs_for_copy): Call
20894         ira_init_register_move_cost_if_necessary.  Use
20895         ira_register_move_cost instead of ira_get_register_move_cost.
20896         (build_object_conflicts): Optimize.
20897
20898         * ira-costs.c (record_reg_classes): Optimize.  Call
20899         ira_init_register_move_cost_if_necessary.  Use
20900         ira_register_move_cost, ira_may_move_in_cost, and
20901         ira_may_move_out_cost instead of ira_get_register_move_cost and
20902         ira_get_may_move_cost.
20903         (record_address_regs): Ditto.
20904         (scan_one_insn): Optimize.
20905         (find_costs_and_classes): Optimize.
20906         (process_bb_node_for_hard_reg_moves): Call
20907         ira_init_register_move_cost_if_necessary.  Use
20908         ira_register_move_cost instead of ira_get_register_move_cost.
20909
20910         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20911         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20912         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20913         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20914         definitions.
20915         (ira_initiate_emit_data, ira_finish_emit_data)
20916         (create_new_allocno): New functions.
20917         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20918         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20919         Use ira_register_move_cost instead of ira_get_register_move_cost.
20920
20921         * ira-int.h: Fix some comments.
20922         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20923         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20924         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20925         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20926         add_data.
20927         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20928         bitfield after mode.  Make hard_regno a short int.  Make
20929         hard_regno short.  Remove first_coalesced_allocno and
20930         next_coalesced_allocno.  Move mem_optimized_dest_p,
20931         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20932         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20933         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20934         temp, colorable_p.  Add new member add_data.
20935         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20936         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20937         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20938         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20939         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20940         (ALLOCNO_ADD_DATA): New macro.
20941         (ira_emit_data_t): New typedef.
20942         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
20943         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20944         from struct ira_allocno.
20945         (ALLOCNO_EMIT_DATA): New macro.
20946         (ira_allocno_emit_data, allocno_emit_reg): New.
20947         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20948         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20949         (OBJECT_ADD_DATA): New macro.
20950         (ira_reallocate): Remove.
20951         (ira_initiate_emit_data, ira_finish_emit_data): New.
20952         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20953         (ira_init_register_move_cost_if_necessary): New.
20954         (ira_object_conflict_iter_next): Merge into
20955         ira_object_conflict_iter_cond.
20956         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20957
20958         * ira-live.c (process_single_reg_class_operands): Call
20959         ira_init_register_move_cost_if_necessary.  Use
20960         ira_register_move_cost instead of ira_get_register_move_cost.
20961
20962         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20963
20964         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20965
20966         * ira-costs.c: Fix formatting.
20967         (cost_classes, cost_classes_num): Remove.
20968         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20969         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20970         (cost_classes_del, cost_classes_htab): New.
20971         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20972         (initiate_regno_cost_classes, setup_cost_classes): New.
20973         (setup_regno_cost_classes_by_aclass): New.
20974         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20975         (record_reg_classes): Use regno_cost_classes instead of
20976         cost_classes.  Move checking opposite operand up.
20977         (record_address_regs): Use regno_cost_classes
20978         instead of cost_classes.
20979         (scan_one_insn): Ditto.  Use always general register.
20980         (print_allocno_costs): Use regno_cost_classes instead of
20981         cost_classes.
20982         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
20983         (find_costs_and_classes): Set up cost classes for each registers.
20984         Use also their mode for this.  Use regno_cost_classes instead of
20985         cost_classes.
20986         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20987         cost_classes.
20988         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20989         (ira_costs, ira_set_pseudo_classes): Call
20990         initiate_regno_cost_classes and finish_regno_cost_classes.
20991
20992         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20993
20994         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20995
20996         * target.def (ira_cover_classes): Remove.
20997
20998         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20999
21000         * doc/tm.texi.in: Ditto.
21001
21002         * ira-conflicts.c: Remove mentioning cover classes from the file.
21003         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
21004         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
21005
21006         * targhooks.c (default_ira_cover_classes): Remove.
21007
21008         * targhooks.h (default_ira_cover_classes): Ditto.
21009
21010         * haifa-sched.c: Remove mentioning cover classes from the file.
21011         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21012         ira_pressure_classes and ira_pressure_classes_num instead of
21013         ira_reg_class_cover_size and ira_reg_class_cover.  Use
21014         sched_regno_pressure_class instead of sched_regno_cover_class.
21015         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21016         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21017
21018         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
21019         classes from the file.
21020         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21021         (struct object_hard_regs, struct object_hard_regs_node): New.
21022         (struct ira_object): New members profitable_hard_regs,
21023         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21024         (struct ira_allocno): Rename cover_class to aclass.  Rename
21025         cover_class_cost and updated_cover_class_cost to class_cost and
21026         updated_class_cost.  Remove splay_removed_p and
21027         left_conflict_size.  Add new members colorable_p.
21028         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21029         (ALLOCNO_COLORABLE_P): New macro.
21030         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21031         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21032         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21033         (OBJECT_...): Rename parameter C to O.
21034         (OBJECT_PROFITABLE_HARD_REGS): New macro.
21035         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21036         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21037         (struct target_ira_int): New members x_ira_max_memory_move_cost,
21038         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21039         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21040         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21041         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
21042         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
21043         x_ira_reg_class_subunion.
21044         (ira_max_memory_move_cost, ira_max_register_move_cost)
21045         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21046         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21047         (ira_important_class_nums, ira_reg_class_superunion): New macros.
21048         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21049         (ira_reg_class_union): Rename to ira_reg_class_subunion.
21050         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21051         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21052         (ira_tune_allocno_costs_and_cover_classes): Rename to
21053         ira_tune_allocno_costs.
21054         (ira_debug_hard_regs_forest): New.
21055         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21056         (ira_object_conflict_iter_next): Fix comments.
21057         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21058         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21059         cover_class to aclass.
21060         (ira_allocate_and_accumulate_costs): Ditto.
21061         (ira_allocate_and_set_or_copy_costs): Ditto.
21062
21063         * opts.c (decode_options): Remove ira_cover_class check.
21064
21065         * ira-color.c: Remove mentioning cover classes from the file.  Use
21066         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21067         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21068         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21069         (splay-tree.h): Remove include.
21070         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21071         before copy_freq_compare_func.
21072         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21073         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21074         New definitions.
21075         (hard_regs_roots, hard_regs_node_vec): Ditto.
21076         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21077         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21078         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21079         (create_new_object_hard_regs_node): Ditto.
21080         (add_new_object_hard_regs_node_to_forest): Ditto.
21081         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21082         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21083         Ditto.
21084         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21085         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21086         (remove_unused_object_hard_regs_nodes): Ditto.
21087         (enumerate_object_hard_regs_nodes): Ditto.
21088         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21089         (object_hard_regs_subnode_t): Ditto.
21090         (struct object_hard_regs_subnode): Ditto.
21091         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21092         (setup_object_hard_regs_subnode_index): Ditto.
21093         (get_object_hard_regs_subnodes_num): Ditto.
21094         (form_object_hard_regs_nodes_forest): Ditto.
21095         (finish_object_hard_regs_nodes_tree): Ditto.
21096         (finish_object_hard_regs_nodes_forest): Ditto.
21097         (allocnos_have_intersected_live_ranges_p): Rename to
21098         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21099         (pseudos_have_intersected_live_ranges_p): Rename to
21100         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21101         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21102         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21103         (update_copy_costs): Remove assert.  Skip cost update if the hard
21104         reg does not belong the class.
21105         (assign_hard_reg): Process only profitable hard regs.
21106         (uncolorable_allocnos_num): Make it scalar.
21107         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21108         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21109         and ira_reg_class_max_nregs.
21110         (bucket_allocno_compare_func): Check frequency first.
21111         (sort_bucket): Add compare function as a parameter.
21112         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21113         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21114         (push_allocno_to_stack): Rewrite for checking new allocno
21115         colorability.
21116         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
21117         (push_only_colorable): Pass new parameter to sort_bucket.
21118         (push_allocno_to_spill): Remove.
21119         (allocno_spill_priority_compare): Make it inline and rewrite.
21120         (splay_tree_allocate, splay_tree_free): Remove.
21121         (allocno_spill_sort_compare): New function.
21122         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
21123         build and use splay tree.  Choose first allocno in uncolorable
21124         allocno bucket to spill.  Remove setting spill cost.
21125         (all_conflicting_hard_regs): Remove.
21126         (setup_allocno_available_regs_num): Check only profitable hard
21127         regs.  Print info about hard regs nodes.
21128         (setup_allocno_left_conflicts_size): Remove.
21129         (put_allocno_into_bucket): Don't call
21130         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
21131         (improve_allocation): New.
21132         (color_allocnos): Call setup_profitable_hard_regs,
21133         form_object_hard_regs_nodes_forest, improve_allocation,
21134         finish_object_hard_regs_nodes_forest.  Setup spill cost.
21135         (print_loop_title): Use pressure classes.
21136         (color_allocnso): Ditto.
21137         (do_coloring): Remove allocation and freeing splay_tree_node_pool
21138         and allocnos_for_spilling.
21139         (ira_sort_regnos_for_alter_reg): Don't setup members
21140         {first,next}_coalesced_allocno.
21141         (color): Remove allocating and freeing removed_splay_allocno_vec.
21142         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21143         prohibited_class_mode_regs.
21144
21145         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
21146         formatting.
21147         (update_allocno_pressure_excess_length): Use pressure classes.
21148         (inc_register_pressure, dec_register_pressure): Check for pressure
21149         class.
21150         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21151         pressure class.  Use ira_reg_class_nregs instead of
21152         ira_reg_class_max_nregs.
21153         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21154         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21155         (single_reg_class): Use ira_reg_class_nregs instead of
21156         ira_reg_class_max_nregs.
21157         (process_bb_node_lives): Use pressure classes.
21158
21159         * ira-emit.c: Remove mentioning cover classes from the file.  Use
21160         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21161         (change_loop): Use pressure classes.
21162         (modify_move_list): Call ira_set_allocno_class instead of
21163         ira_set_allocno_cover_class.
21164
21165         * ira-build.c: Remove mentioning cover classes from the file.  Use
21166         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21167         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
21168         ALLOCNO_UPDATED_CLASS_COST instead of
21169         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21170         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21171         (ira_create_allocno): Remove initialization of
21172         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
21173         ALLOCNO_COLORABLE_P.
21174         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21175         Update conflict regs for the objects.
21176         (create_cap_allocno): Remove assert.  Don't propagate
21177         ALLOCNO_AVAILABLE_REGS_NUM.
21178         (ira_free_allocno_costs): New function.
21179         (finish_allocno): Change a part of code into call of
21180         ira_free_allocno_costs.
21181         (low_pressure_loop_node_p): Use pressure classes.
21182         (object_range_compare_func): Don't compare classes.
21183         (setup_min_max_conflict_allocno_ids): Ditto.
21184
21185         * loop-invariant.c: Remove mentioning cover classes from the file.
21186         Use ira_pressure_classes and ira_pressure_classes_num instead of
21187         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
21188         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21189         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21190         Use reg_allocno_class instead of reg_cover_class.
21191         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21192         STACK_REG_COVER_CLASS.
21193         (get_regno_cover_class): Rename to get_regno_pressure_class.
21194         (move_loop_invariants): Initialize and finalize regstat.
21195
21196         * ira.c: Remove mentioning cover classes from the file.  Add
21197         comments about coloring without cover classes.  Use ALLOCNO_CLASS
21198         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21199         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21200         setup_class_subset_and_memory_move_costs.
21201         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21202         (setup_cover_and_important_classes): Rename to
21203         setup_allocno_and_important_classes.
21204         (setup_class_translate_array): New.
21205         (setup_class_translate): Call it for allocno and pressure classes.
21206         (cover_class_order): Rename to allocno_class_order.
21207         (comp_reg_classes_func): Use ira_allocno_class_translate instead
21208         of ira_class_translate.
21209         (reorder_important_classes): Set up ira_important_class_nums.
21210         (setup_reg_class_relations): Set up ira_reg_class_superunion.
21211         (print_class_cover): Rename to print_classes.  Add parameter.
21212         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21213         Print pressure classes too.
21214         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
21215         setup_reg_subclasses.
21216         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21217         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21218         (setup_prohibited_class_mode_regs): Use
21219         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21220         (clarify_prohibited_class_mode_regs): New function.
21221         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21222         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21223         (ira_init_once): Initialize them.
21224         (free_register_move_costs): Process them.
21225         (ira_init): Move calls of find_reg_classes and
21226         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21227         Call clarify_prohibited_class_mode_regs.
21228         (ira_no_alloc_reg): Remove.
21229         (too_high_register_pressure_p): Use pressure classes.
21230
21231         * sched-deps.c: Remove mentioning cover classes from the file.
21232         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21233         ira_pressure_classes and ira_pressure_classes_num instead of
21234         ira_reg_class_cover_size and ira_reg_class_cover.
21235         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21236         sched_regno_pressure_class instead of sched_regno_cover_class.
21237         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
21238         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21239
21240         * ira.h: Add 2010 to Copyright.
21241         (ira_no_alloc_reg): Remove external.
21242         (struct target_ira): Rename x_ira_hard_regno_cover_class,
21243         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21244         x_ira_class_translate to x_ira_hard_regno_allocno_class,
21245         x_ira_allocno_classes_num, x_ira_allocno_classes, and
21246         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
21247         x_ira_pressure_classes, x_ira_pressure_class_translate, and
21248         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
21249         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
21250         x_ira_no_alloc_regs.
21251         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21252         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21253         ira_allocno_classes_num and ira_allocno_classes.
21254         (ira_class_translate): Rename to ira_allocno_class_translate.
21255         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21256         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21257         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21258         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21259         (ira_no_alloc_regs): New.
21260
21261         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
21262         classes from the file.  Use ALLOCNO_CLASS instead of
21263         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
21264         ALLOCNO_COVER_CLASS_COST.
21265         (regno_cover_class): Rename to regno_aclass.
21266         (record_reg_classes): Use ira_reg_class_subunion instead of
21267         ira_reg_class_union.
21268         (record_address_regs): Check overflow.
21269         (scan_one_insn): Ditto.
21270         (print_allocno_costs): Print total mem cost fore regional allocation.
21271         (print_pseudo_costs): Use REG_N_REFS.
21272         (find_costs_and_classes): Use classes intersected with them on the
21273         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
21274         ira_reg_class_union.  Use ira_allocno_class_translate and
21275         regno_aclass instead of ira_class_translate and regno_cover_class.
21276         Modify code for finding regno_aclass.  Setup preferred classes for
21277         the next pass.
21278         (setup_allocno_cover_class_and_costs): Rename to
21279         setup_allocno_class_and_costs.  Use regno_aclass instead of
21280         regno_cover_class.  Use ira_set_allocno_class instead of
21281         ira_set_allocno_cover_class.
21282         (init_costs, finish_costs): Use regno_aclass instead of
21283         regno_cover_class.
21284         (ira_costs): Use setup_allocno_class_and_costs instead of
21285         setup_allocno_cover_class_and_costs.
21286         (ira_tune_allocno_costs_and_cover_classes): Rename to
21287         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
21288         by processing objects.  Use ira_reg_class_max_nregs instead of
21289         ira_reg_class_nregs.
21290
21291         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21292
21293         * sched-int.h: Remove mentioning cover classes from the file.
21294         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21295
21296         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
21297         classes from the file.
21298         (struct reg_pref): Rename coverclass into allocnoclass.
21299         (reg_cover_class): Rename to reg_allocno_class.
21300
21301         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21302
21303         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21304
21305         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21306
21307         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21308
21309         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21310
21311         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21312
21313         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21314
21315         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21316
21317         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21318
21319         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21320
21321         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21322         (i386_ira_cover_classes): Ditto.
21323
21324         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21325
21326         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21327
21328         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21329
21330         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21331
21332         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21333
21334         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21335
21336         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21337         (mips_ira_cover_classes): Ditto.
21338
21339         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21340
21341         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21342
21343         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21344
21345         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21346
21347         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21348
21349         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21350         (IRA_COVER_CLASSES_VSX): Ditto.
21351
21352         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21353         (rs6000_ira_cover_classes): Ditto.
21354
21355         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21356
21357         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21358
21359         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21360
21361         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21362
21363         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21364
21365         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21366
21367         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21368
21369         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21370
21371         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21372
21373         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21374
21375 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
21376
21377         PR debug/48253
21378         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21379         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21380         dw_fde_unlikely_section_end_label, cold_in_std_section,
21381         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21382         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21383         fields.
21384         (output_fde): Use dw_fde_second_{begin,end} if second is
21385         true, otherwise dw_fde_{begin,end}.
21386         (output_call_frame_info): Test dw_fde_second_begin != NULL
21387         instead of dw_fde_switched_sections.
21388         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21389         fields, initialize new fields.  Initialize in_std_section
21390         unconditionally from the first partition.
21391         (dwarf2out_end_epilogue): Don't override dw_fde_end when
21392         dw_fde_second_begin is non-NULL.
21393         (dwarf2out_switch_text_section): Stop initializing removed
21394         dw_fde_struct fields, initialize new fields, initialize
21395         also dw_fde_end here.  Set dw_fde_switch_cfi even when
21396         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
21397         (struct var_loc_list_def): Add last_before_switch field.
21398         (arange_table, arange_table_allocated, arange_table_in_use,
21399         ARANGE_TABLE_INCREMENT, add_arange): Removed.
21400         (size_of_aranges): Count !in_std_section and !second_in_std_section
21401         hunks in fdes, instead of looking at arange_table_in_use.
21402         (output_aranges): Add aranges_length argument, don't call
21403         size_of_aranges here.  Instead of using aranges_table*
21404         emit ranges for fdes when !in_std_section resp.
21405         !second_in_std_section.
21406         (dw_loc_list): Break ranges crossing section switch.
21407         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
21408         use dw_fde_second_end instead of dw_fde_end as end of last range.
21409         (gen_subprogram_die): Don't call add_arange.  Use
21410         dw_fde_{begin,end} for first partition and if switched
21411         section dw_fde_second_{begin,end} for the second.
21412         (var_location_switch_text_section_1,
21413         var_location_switch_text_section): New functions.
21414         (dwarf2out_begin_function): Initialize cold_text_section even
21415         when function_section () isn't text_section.
21416         (prune_unused_types): Don't walk arange_table.
21417         (dwarf2out_finish): Don't needlessly test
21418         flag_reorder_blocks_and_partition when testing cold_text_section_used.
21419         If info_section_emitted, call size_of_aranges and if it indicates
21420         non-empty .debug_aranges, call output_aranges with the computed
21421         size.  Stop using removed dw_fde_struct fields, use
21422         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21423         for second.
21424
21425         PR debug/48203
21426         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21427         create ENTRY_VALUE if incoming or address of incoming's MEM
21428         is a hard REG.
21429         * dwarf2out.c (mem_loc_descriptor): Don't emit
21430         DW_OP_GNU_entry_value of DW_OP_fbreg.
21431         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21432         on ENTRY_VALUE is able to find the canonical parameter VALUE.
21433         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21434         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21435         ENTRY_VALUE_EXPs.
21436         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21437         is a REG_P or MEM_P with REG_P address, compute hash directly
21438         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21439         (preserve_only_constants): Don't clear VALUES forwaring
21440         ENTRY_VALUE to some other VALUE.
21441
21442 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
21443
21444         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21445         instead of GEN_INT.
21446
21447 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21448
21449         * cfgexpand.c (expand_gimple_cond): Always set the source location and
21450         block before expanding the statement.
21451         (expand_gimple_stmt_1): Likewise.  Set them here...
21452         (expand_gimple_stmt): ...and not here.  Tidy.
21453         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21454         unknown.
21455
21456 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21457
21458         * Makefile.in: New rule for cprop.o.
21459         * gcse.c: Move constant/copy propagation to cprop.c.
21460         (compute_local_properties): Only handle expression tables.
21461         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21462         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21463         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21464         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21465         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21466         compute_cprop_data, find_used_regs, try_replace_reg,
21467         find_avail_set, cprop_jump, constprop_register, cprop_insn,
21468         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21469         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21470         find_bypass_set, reg_killed_on_edge, bypass_block,
21471         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21472         execute_rtl_cprop, pass_rtl_cprop): Move to...
21473         * cprop.c: ...here.  New file, constant/copy propagation for RTL
21474         moved from gcse.c to here with minor cleanups in duplicated code.
21475
21476 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21477
21478         * config/i386/i386.c (flag_opts): Fix a typo in
21479         -mavx256-split-unaligned-store.
21480
21481 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21482
21483         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21484         LIBCALL_VALUE): Remove macros.
21485         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21486         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21487         (h8300_function_value, h8300_libcall_value,
21488         h8300_function_value_regno_p): New functions.
21489
21490 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21491
21492         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21493
21494 2011-03-28  Jeff Law  <law@redhat.com>
21495
21496         * tree-ssa-threadupdate.c (redirect_edges): Call
21497         create_edge_and_update_destination_phis as needed.
21498         (create_edge_and_update_destination_phis): Accept new BB argument.
21499         All callers updated.
21500         (thread_block): Do not update the profile when threading around
21501         intermediate blocks.
21502         (thread_single_edge): Likewise.
21503         (determine_bb_domination_status): If BB is not a successor of the
21504         loop header, return NONDOMINATING.
21505         (register_jump_thread): Note when we register a jump thread around
21506         an intermediate block.
21507         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21508         (thread_across_edge): Use it.
21509
21510 2011-03-28  Tristan Gingold  <gingold@adacore.com>
21511
21512         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21513         when for_return is 2.
21514
21515 2011-03-28  Jeff Law  <law@redhat.com>
21516
21517         * var-tracking.c (canonicalize_values_mark): Delete unused
21518         lhs assignment.
21519         (canonicalize_values_star, set_variable_part): Likewise.
21520         (clobber_variable_part, delete_variable_part): Likewise.
21521
21522 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21523
21524         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21525
21526 2011-03-28  Martin Jambor  <mjambor@suse.cz>
21527
21528         * tree-inline.c (expand_call_inline): Do not check that destination
21529         node is analyzed.
21530         (optimize_inline_calls): Assert that destination node is analyzed.
21531         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21532         not call tree_lowering_passes.
21533         * cgraph.h (cgraph_analyze_function): Declare.
21534         * cgraphunit.c (cgraph_analyze_function): Make public.
21535
21536 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
21537
21538         * config/sparc/sparc-opts.h: New.
21539         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21540         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21541         (sparc_option_override): Store processor_type enumeration rather
21542         than string in cpu_default.  Remove name and enumeration from
21543         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
21544         without using sparc_select.  Use target_flags_explicit instead of
21545         fpu_option_set.
21546         * config/sparc/sparc.h (enum processor_type): Move to
21547         sparc-opts.h.
21548         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21549         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21550         HeaderInclude entry.
21551         (mcpu=, mtune=): Use Var and Enum.
21552         (sparc_processor_type): New Enum and EnumValue entries.
21553
21554 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21555             Iain Sandoe  <iains@gcc.gnu.org>
21556
21557         PR target/48245
21558         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21559
21560 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21561
21562         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21563         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21564         Insert new statements at it in lieu of STMT.
21565         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21566         * tree-vect-stmts.c (vectorizable_store): Likewise.
21567         (vectorizable_load): Likewise.
21568
21569 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
21570
21571         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21572         (divtf3): Ditto.
21573         (multf3): Ditto.
21574         (subtf3): Ditto.
21575
21576 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21577
21578         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21579         unaligned 256bit load/store.
21580         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21581         (*avx_movdqu<avxmodesuffix>): Likewise.
21582
21583 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21584
21585         PR target/48288
21586         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21587         * config/pa/pa.md (iordi3): Use new predicate in expander.
21588         (iorsi3): Likewise.
21589
21590 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
21591
21592         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21593         FUNCTION_VALUE_REGNO_P): Remove macros.
21594         * config/mips/mips-protos.h (mips_function_value): Remove.
21595         * config/mips/mips.c (mips_function_value): Rename to...
21596         (mips_function_value_1): ... this. Make static.  Handle receiving
21597         the function type in 'fn_decl_or_type' argument.
21598         (mips_function_value, mips_libcall_value,
21599         mips_function_value_regno_p): New function.
21600         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21601         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21602
21603 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21604
21605         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21606         and -mavx256-split-unaligned-store.
21607         (ix86_option_override_internal): Split 32-byte AVX unaligned
21608         load/store by default.
21609         (ix86_avx256_split_vector_move_misalign): New.
21610         (ix86_expand_vector_move_misalign): Use it.
21611
21612         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21613         -mavx256-split-unaligned-store.
21614
21615         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21616         256bit load/store.  Generate unaligned store on misaligned memory
21617         operand.
21618         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21619         256bit load/store.
21620         (*avx_movdqu<avxmodesuffix>): Likewise.
21621
21622         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21623         -mavx256-split-unaligned-store.
21624
21625 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21626
21627         PR target/38598
21628         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21629         Update commentary.
21630
21631 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21632
21633         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21634         opno arguments with an expand_operand.  Use create_input_operand.
21635         (mips_prepare_builtin_target): Delete.
21636         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21637         functions.
21638         (mips_expand_builtin_direct): Use create_output_operand and
21639         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21640         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21641         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21642
21643 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21644
21645         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21646         function.
21647         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21648
21649 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21650
21651         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21652         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21653         basic blocks and call commit_edge_insertions directly.
21654         (fixup_abnormal_edges): Move from here to...
21655         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21656         on the edges and return whether some have actually been inserted.
21657         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21658         compensation code.
21659
21660 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21661
21662         PR rtl-optimization/48144
21663         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21664         (merge_expr_data): ... here.
21665         (av_set_intersect): Rename to av_set_code_motion_filter.
21666         Update all callers.  Call merge_history_vect when an expression
21667         is found in both sets.
21668         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21669
21670 2011-03-26  Alan Modra  <amodra@gmail.com>
21671
21672         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21673         cmodel medium addresses.
21674         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21675         64-bit gpr loads and stores.
21676         (rs6000_secondary_reload_ppc64): New function.
21677         * config/rs6000/rs6000-protos.h: Declare it.
21678         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21679
21680 2011-03-26  Alan Modra  <amodra@gmail.com>
21681
21682         PR target/47487
21683         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21684         GNU Go in traceback table.
21685
21686 2011-03-25  Richard Henderson  <rth@redhat.com>
21687
21688         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21689         if there are exactly 6 operands.
21690         (set_storage_via_setmem): Similarly.
21691
21692 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21693
21694         * collect2.c (write_c_file_stat): Handle backslash
21695         as right-hand directory separator.
21696         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21697         checking just for slash.
21698         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21699         instead of checking for trailing slash.
21700         * gcc.c (record_temp_file): Use filename_cmp instead
21701         of strcmp.
21702         (do_spec_1): Likewise.
21703         (replace_outfile_spec_function): Likewise.
21704         (is_directory): Use filename_ncmp instead of strncmp.
21705         (print_multilib_info): Likewise.
21706         * gcov.c (find_source): Use filename_cmp instead
21707         instead of strcmp.
21708         (make_gcov_file_name): Fix order of slash/backslash
21709         checks.
21710         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21711         (add_standard_paths): Likewise.
21712         * mips-tfile.c (saber_stop): Handle backslash.
21713         * prefix.c (update_path): Use filename_ncmp instead of
21714         strncmp.
21715         * profile.c (output_location): Use filename_cmp instead
21716         of strcmp.
21717         * read-md.c (handle_toplevel_file): Handle backslash.
21718         * tlink.c (frob_extension):  Likewise.
21719         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21720         strcmp.
21721         * tree-dump.c (dequeue_and_dump): Handle backslash.
21722         * tree.c (get_file_function_name): Likewise.
21723         * gengtype.c (read_input_list): Likewise.
21724         (get_file_realbasename): Likewise.
21725         (get_output_file_with_visibility): Use filename_cmp
21726         instead of strcmp.
21727
21728 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21729
21730         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21731         case to VFPv1.
21732
21733 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21734
21735         * fold-const.c (expr_location_or): New function.
21736         (fold_truth_not_expr): Call it.
21737
21738 2011-03-25  Jeff Law  <law@redhat.com>
21739
21740         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21741         va_end.
21742         * c-family/c-common.c (def_fn_type): Likewise.
21743         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21744         * emit-rtl.c (gen_rtvec): Likewise.
21745         * lto/lto-lang.c (def_fn_type): Likewise.
21746
21747 2011-03-25  Richard Guenther  <rguenther@suse.de>
21748
21749         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21750         also generate copies.
21751         (fini_copy_prop): Handle constant values properly.
21752
21753 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21754
21755         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21756         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21757         (hash_loc_operands, compare_loc_operands): Handle
21758         DW_OP_GNU_entry_value.
21759
21760 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21761
21762         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21763         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21764         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21765         comment and use macro TARGET_64BIT_MS_ABI instead.
21766         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21767         and change default behavior for 32-bit MS_ABI.
21768         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21769         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21770         32-bit, too.
21771         (ix86_cfun_abi): Likewise.
21772         (ix86_maybe_switch_abi): Adjust comment.
21773         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21774         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21775         instead of checking for SYSV_ABI.
21776         (ix86_nsaved_sseregs): Likewise.
21777         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21778         to 16 bytes.
21779         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21780         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21781         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21782         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21783         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21784
21785 2011-03-25  Richard Guenther  <rguenther@suse.de>
21786
21787         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21788         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21789         (verify_gimple): Remove.
21790         * tree-cfg.c (verify_gimple_call): Merge verification
21791         from verify_stmts.
21792         (verify_gimple_phi): Merge verification from verify_stmts.
21793         (verify_gimple_label): New function.
21794         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21795         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21796         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21797         (verify_stmts): Rename to verify_gimple_in_cfg.
21798         (verify_gimple_in_cfg): New function.
21799         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21800         * tree-ssa.c (verify_ssa): Likewise.
21801         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21802
21803 2011-03-25  Richard Guenther  <rguenther@suse.de>
21804
21805         * passes.c (init_optimization_passes): Add FRE pass after
21806         early SRA.
21807
21808 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21809             Andrew Stubbs  <ams@codesourcery.com>
21810
21811         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21812         for Cortex-A8.
21813         (arm_movdi_vfp_cortexa8): New pattern.
21814         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21815         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21816         instructions when tuning for Cortex-A8.  Set attribute "arch".
21817         * config/arm/arm.md: Move include arm-tune.md up a bit.
21818         (define_attr "arch"): Add "onlya8" and "nota8" values.
21819         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21820
21821 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21822
21823         PR bootstrap/48282
21824         Revert:
21825         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21826
21827         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21828         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21829         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21830         * passes.c (init_optimization_passes): Move
21831         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21832
21833 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21834
21835         * c-typeck.c (comptypes_internal): Replace target
21836         hook call of comp_type_attributes by version in tree.c file.
21837         * gimple.c (gimple_types_compatible_p_1): Likewise.
21838         * tree-ssa.c (useless_type_conversion_p): Likewise.
21839         * tree.c (build_type_attribute_qual_variant): Likewise.
21840         (attribute_value_equal): New static helper function.
21841         (comp_type_attributes): New function.
21842         (merge_attributes): Use attribute_value_equal for comparison.
21843         (attribute_list_contained): Likewise.
21844         * tree.h (comp_type_attributes): New prototype.
21845
21846 2011-03-25  Richard Guenther  <rguenther@suse.de>
21847
21848         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21849         of complex types at -O0.
21850         (verify_gimple_assign_binary): Likewise.
21851         (verify_gimple_assign_ternary): Likewise.
21852
21853 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21854
21855         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21856         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21857
21858 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21859
21860         PR debug/48041
21861         * dwarf2out.c (output_abbrev_section): Only write table when
21862         abbrev_die_table_in_use > 1.
21863
21864 2011-02-24  Richard Henderson  <rth@redhat.com>
21865
21866         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21867         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21868         (alpha_expand_unaligned_load_words): Use extql.
21869         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21870         (emit_insxl): Handle all modes for consistency.
21871
21872 2011-02-24  Richard Henderson  <rth@redhat.com>
21873
21874         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21875         (alpha_expand_unaligned_load): Likewise.
21876         (alpha_expand_unaligned_store): Likewise.
21877         (alpha_expand_unaligned_load_words): Likewise.
21878         (alpha_expand_unaligned_store_words): Likewise.
21879         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21880         (alpha_split_lock_test_and_set_12): Likewise.
21881         (print_operand, alpha_fold_builtin_extxx): Likewise.
21882         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21883         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21884         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21885         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21886         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21887         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21888         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21889         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21890         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21891         (extwl, extll, extql): Similarly.
21892         (inswh, inslh, insqh): Similarly.
21893         (mskbl, mskwl, mskll, mskql): Similarly.
21894         (mskwh, msklh, mskqh): Similarly.
21895
21896 2011-02-24  Richard Henderson  <rth@redhat.com>
21897
21898         * config/alpha/alpha.md (attribute isa): Add er, ner.
21899         (attribute enabled): Handle them.
21900         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21901
21902 2011-02-24  Richard Henderson  <rth@redhat.com>
21903
21904         * config/alpha/alpha.md (attribute isa): Add vms.
21905         (attribute enabled): Handle it.
21906         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21907         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21908         (*movtf): Rename from *movtf_internal for consistency.
21909         (*movsi): Merge with *movsi_nt_vms.
21910         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21911         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21912         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21913         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21914
21915 2011-02-24  Richard Henderson  <rth@redhat.com>
21916
21917         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21918         (extendqisi2, extendhisi2): Likewise.
21919         (extendqidi2): Simplify BWX/non-BWX expansions.
21920         (extendhidi2): Similarly.
21921
21922 2011-02-24  Richard Henderson  <rth@redhat.com>
21923
21924         * config/alpha/alpha.md (attribute isa): New.
21925         (attribute enabled): New.
21926         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21927         (zero_extendqisi2, zero_extendqidi2): Similarly.
21928         (zero_extendhisi2, zero_extendhidi2): Similarly.
21929         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21930
21931 2011-02-24  Richard Henderson  <rth@redhat.com>
21932
21933         * config/alpha/predicates.md (input_operand): Revert last change;
21934         update comment to mention 32-bit VMS rather than Windows.
21935
21936 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21937
21938         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21939         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21940         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21941         * passes.c (init_optimization_passes): Move
21942         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21943
21944 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21945
21946         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21947
21948 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21949
21950         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21951         correctly.
21952
21953 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
21954
21955         PR debug/48204
21956         * simplify-rtx.c (simplify_const_unary_operation): Call
21957         real_convert when changing mode class with FLOAT_EXTEND.
21958
21959 2011-03-24  Nick Clifton  <nickc@redhat.com>
21960
21961         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21962         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21963         * config/rx/rx.c (rx_option_override): Set align_jumps,
21964         align_loops and align_labels if not set by the user.
21965         (rx_align_for_label): New function.
21966         (rx_max_skip_for_label): New function.
21967         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21968         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21969         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21970         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21971         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21972
21973 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21974
21975         PR rtl-optimization/48263
21976         * optabs.c (expand_binop_directly): Reinstate convert_modes code
21977         and original commutative_p handling.  Use maybe_gen_insn.
21978
21979 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21980
21981         * reload.c (find_reloads_subreg_address): Add address_reloaded
21982         parameter and return true there if the full address has been
21983         reloaded.
21984         (find_reloads_toplev): Pass address_reloaded flag.
21985         (find_reloads_address_1): Don't use address_reloaded parameter.
21986
21987 2011-03-24  Jeff Law  <law@redhat.com>
21988
21989         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21990         unused variable "ann".
21991         (remove_unused_locals): Likewise.
21992
21993         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21994         statement.
21995
21996         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21997         after it is freed.
21998
21999 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22000
22001         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22002         for invalid symbolic addresses.
22003         (s390_secondary_reload): Don't use s390_check_symref_alignment for
22004         larl operands.
22005
22006 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22007
22008         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22009         the argument in calls to fold_truth_not_expr.
22010
22011 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22012
22013         * tree.c (record_node_allocation_statistics): New function.
22014         (make_node_stat, copy_node_stat, build_string): Call it.
22015         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22016         (build1_stat, build_omp_clause): Likewise.
22017
22018 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22019
22020         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22021         last commit.
22022
22023 2011-03-24  Richard Guenther  <rguenther@suse.de>
22024
22025         PR tree-optimization/48271
22026         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22027         blocks that still exist.
22028
22029 2011-03-24  Richard Guenther  <rguenther@suse.de>
22030
22031         PR tree-optimization/48270
22032         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22033         not free datarefs before ddrs.
22034
22035 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22036
22037         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22038         from the address built for a reference with variable offset.
22039
22040 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22041
22042         PR target/48237
22043         * config/i386/i386.md (*movdf_internal_rex64): Do not split
22044         alternatives that can be handled with movq or movabsq insn.
22045         (*movdf_internal): Disable for !TARGET_64BIT.
22046         (*movdf_internal_nointeger): Ditto.
22047         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22048
22049 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22050
22051         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22052         (FUNCTION_ARG_ADVANCE): Likewise.
22053         * tm.texi.in: Change references to them to hook references.
22054         * tm.texi: Regenerate.
22055         * targhooks.c (default_function_arg): Eliminate check for target macro.
22056         (default_function_incoming_arg): Likewise.
22057         (default_function_arg_advance): Likewise.
22058         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22059         (function_arg_advance): Likewise.
22060         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22061
22062 2011-03-24  Richard Guenther  <rguenther@suse.de>
22063
22064         PR middle-end/48269
22065         * tree-object-size.c (addr_object_size): Do not double-account
22066         for MEM_REF offsets.
22067
22068 2011-03-24  Diego Novillo  <dnovillo@google.com>
22069
22070         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22071         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22072         (lto_input_data_block): Move from lto-opts.c.  Make extern.
22073         Update all users.
22074         (lto_input_string): Rename from input_string.  Make extern.
22075         Update all users.
22076         * lto-streamer-out.c (lto_output_string_with_length): Rename from
22077         output_string_with_length.
22078         Output 0 to indicate a non-NULL string.  Update all callers to
22079         not emit 0.
22080         (lto_output_string): Rename from output_string.  Make extern.
22081         Update all users.
22082         (lto_output_decl_state_streams): Make extern.
22083         (lto_output_decl_state_refs): Make extern.
22084         * lto-streamer.h (lto_input_string): Declare.
22085         (lto_input_data_block): Declare.
22086         (lto_output_string): Declare.
22087         (lto_output_string_with_length): Declare.
22088         (lto_output_decl_state_streams): Declare.
22089         (lto_output_decl_state_refs): Declare.
22090
22091 2011-03-24  Richard Guenther  <rguenther@suse.de>
22092
22093         PR tree-optimization/46562
22094         * tree.c (build_invariant_address): New function.
22095         * tree.h (build_invariant_address): Declare.
22096         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22097         a renamed function moved ...
22098         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22099         Take valueization callback parameter.
22100         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22101         * gimple-fold.h: New file.
22102         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22103         (ccp_fold, fold_const_aggregate_ref,
22104         fold_ctor_reference, fold_nonarray_ctor_reference,
22105         fold_array_ctor_reference, fold_string_cst_ctor_reference,
22106         get_base_constructor): Move ...
22107         * gimple-fold.c: ... here.
22108         (gimple_fold_stmt_to_constant_1): New function
22109         split out from ccp_fold.  Take a valueization callback parameter.
22110         Valueize all operands.
22111         (gimple_fold_stmt_to_constant): New wrapper function.
22112         (fold_const_aggregate_ref_1): New function split out from
22113         fold_const_aggregate_ref.  Take a valueization callback parameter.
22114         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22115         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22116         invariant POINTER_PLUS_EXPRs to invariant form.
22117         (vn_valueize): New function.
22118         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22119         * tree-vrp.c (vrp_valueize): New function.
22120         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22121         to fold statements to constants.
22122         * tree-ssa-pre.c (eliminate): Properly guard propagation of
22123         function declarations.
22124         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22125         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22126
22127 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22128
22129         * config/h8300/predicates.md (jump_address_operand): Fix register
22130         mode check.
22131
22132 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
22133
22134         * doc/invoke.texi (max-stores-to-sink): Document.
22135         * params.h (MAX_STORES_TO_SINK): Define.
22136         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22137         if either vectorization or if-conversion is disabled.
22138         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22139         tree-vect-data-refs.c vect_equal_offsets.
22140         (dr_equal_offsets_p): New function.
22141         (find_data_references_in_bb): Remove static.
22142         * tree-data-ref.h (find_data_references_in_bb): Declare.
22143         (dr_equal_offsets_p): Likewise.
22144         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22145         (vect_drs_dependent_in_basic_block): Update calls to
22146         vect_equal_offsets.
22147         (vect_check_interleaving): Likewise.
22148         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22149         (cond_if_else_store_replacement): Rename to...
22150         (cond_if_else_store_replacement_1): ... this.  Change arguments and
22151         documentation.
22152         (cond_if_else_store_replacement): New function.
22153         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22154         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22155
22156 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
22157
22158         PR target/46934
22159         * config/arm/arm.md (casesi): Use the gen_int_mode() function
22160         to subtract lower bound instead of GEN_INT().
22161
22162 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
22163
22164         PR other/48179
22165         PR other/48221
22166         PR other/48234
22167         * doc/extend.texi (Alignment): Move section to match order in TOC.
22168         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22169         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22170
22171 2011-03-23  Jeff Law  <law@redhat.com>
22172
22173         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22174         before removing the edge.
22175
22176         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22177         it may have been freed by redirect_branch_edge or
22178         redirect_edge_succ_nodup.
22179
22180 2011-03-23  Richard Guenther  <rguenther@suse.de>
22181
22182         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22183         (check_va_list_escapes): Likewise.
22184         (check_all_va_list_escapes): Likewise.
22185
22186 2011-03-23  Richard Guenther  <rguenther@suse.de>
22187
22188         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22189         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22190         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22191         (alias.o): Likewise.
22192         (ipa-type-escape.o): Remove.
22193         (ipa-struct-reorg.o): Likewise.
22194         (GTFILES): Remove ipa-struct-reorg.c.
22195         * alias.c: Do not include ipa-type-escape.h.
22196         * tree-ssa-alias.c: Likewise.
22197         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22198         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22199         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22200         and ipa-type-escape passes.
22201         * tree-pass.h (pass_ipa_type_escape): Remove.
22202         (pass_ipa_struct_reorg): Likewise.
22203         * ipa-struct-reorg.h: Remove.
22204         * ipa-struct-reorg.c: Likewise.
22205         * ipa-type-escape.h: Likewise.
22206         * ipa-type-escape.c: Likewise.
22207         * doc/invoke.texi (-fipa-struct-reorg): Remove.
22208         (--param struct-reorg-cold-struct-ratio): Likewise.
22209         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22210         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22211         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22212
22213 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22214
22215         * config/s390/2084.md: Enable all insn reservations also for z9_ec
22216         cpu attribute value.
22217         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22218         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22219         * config/s390/s390.c (processor_flags_table): New constant array.
22220         (s390_handle_arch_option): Remove.
22221         (s390_handle_option): Remove s390_handle_arch_option invocations
22222         and OPT_mwarn_framesize_ handling.
22223         (s390_option_override): Remove s390_handle_arch_option invocation.
22224         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22225         warnings.
22226         * config/s390/s390.md (cpu attribute): Add z9_ec value.
22227         * config/s390/s390.opt (s390_tune, s390_arch)
22228         (march=): Replace s390_arch_option enum and values with
22229         processor_type.  Set variable name to s390_arch.  Set
22230         initialization value.
22231         (mtune=): Replace s390_arch_option with processor_type.  Set
22232         variable name to s390_tune.  Set initialization value.
22233
22234 2011-03-23  Julian Brown  <julian@codesourcery.com>
22235
22236         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22237         accesses which are not naturally aligned.
22238
22239 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22240
22241         PR target/47553
22242         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22243
22244 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22245
22246         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22247         parameter from "int" to "enum insn_code".
22248         (expand_operand_type): New enum.
22249         (expand_operand): New structure.
22250         (create_expand_operand): New function.
22251         (create_fixed_operand, create_output_operand): Likewise
22252         (create_input_operand, create_convert_operand_to): Likewise.
22253         (create_convert_operand_from, create_address_operand): Likewise.
22254         (create_integer_operand): Likewise.
22255         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22256         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22257         (expand_insn, expand_jump_insn): Likewise.
22258         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22259         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22260         (expand_movstr, expand_builtin___clear_cache): Likewise.
22261         (expand_builtin_lock_release): Likewise.
22262         * explow.c (allocate_dynamic_stack_space): Likewise.
22263         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
22264         and use the default handling in that case.
22265         * expmed.c (check_predicate_volatile_ok): Delete.
22266         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22267         (emit_cstore): Likewise.
22268         * expr.c (emit_block_move_via_movmem): Likewise.
22269         (set_storage_via_setmem, expand_assignment): Likewise.
22270         (emit_storent_insn, try_casesi): Likewise.
22271         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
22272         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22273         (expand_vec_shift_expr, expand_binop_directly): Likewise.
22274         (expand_twoval_unop, expand_twoval_binop): Likewise.
22275         (expand_unop_direct, emit_indirect_jump): Likewise.
22276         (emit_conditional_move, vector_compare_rtx): Likewise.
22277         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22278         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22279         (expand_sync_lock_test_and_set): Likewise.
22280         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
22281         (emit_unop_insn): Likewise.
22282         (expand_copysign_absneg): Change icode to an insn_code.
22283         (create_convert_operand_from_type): New function.
22284         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22285         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22286         (expand_insn, expand_jump_insn): Likewise.
22287         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22288         than const_int_operand for operand 2.
22289
22290 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22291
22292         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22293         if possible.
22294
22295 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22296
22297         * emit-rtl.c (emit_pattern_before_noloc): New function.
22298         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22299         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22300         (emit_pattern_after_noloc): New function.
22301         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22302         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22303
22304 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22305
22306         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22307         (__ffsDI2): Likewise.
22308
22309 2011-03-22  Richard Henderson  <rth@redhat.com>
22310
22311         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22312         of !TARGET_ABI_OPEN_VMS.
22313         (alpha_trampoline_init, alpha_start_function): Likewise.
22314         (alpha_expand_epilogue, alpha_file_start): Likewise.
22315         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22316         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22317         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22318         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22319         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22320
22321 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22322
22323         * config/s390/s390-opts.h: New.
22324         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22325         s390_arch_flags, s390_warn_framesize, s390_stack_size,
22326         s390_stack_guard): Remove.
22327         (s390_handle_arch_option): Return void.  Take enum
22328         s390_arch_option value instead of string and searching array.
22329         (s390_handle_option): Don't assert that global structures are in
22330         use.  Access variables via opts pointer.  Use error_at.  Don't use
22331         sscanf for -mstack-guard= or -mstack-size=.  Update call to
22332         s390_handle_arch_option.
22333         (s390_option_override): Update call to s390_handle_arch_option.
22334         (s390_emit_prologue): Use %d format for s390_stack_size in
22335         diagnostic.  Use %wd for HOST_WIDE_INT.
22336         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22337         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22338         * config/s390/s390.opt (config/s390/s390-opts.h): New
22339         HeaderInclude entry.
22340         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22341         s390_arch_flags, s390_warn_framesize): New Variable entries.
22342         (s390_arch_option): New Enum and EnumValue entries.
22343         (march=): Use Enum instead of Var.
22344         (mstack-guard=, mstack-size=): Use UInteger and Var.
22345         (mtune=): Use Enum.
22346
22347 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22348
22349         * config/score/score.c (score_handle_option): Don't assert that
22350         global structures are in use.  Access target_flags via opts
22351         pointer.  Use value of -march= option to determine target_flags
22352         settings.
22353         * config/score/score.opt (march=): Use Enum.
22354         (score_arch): New Enum and EnumValue entries.
22355
22356 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22357
22358         * config/mep/mep.c (option_mtiny_specified): Remove.
22359         (mep_option_override): Move register handling for -mivc2 from
22360         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
22361         instead of option_mtiny_specified.
22362         (mep_handle_option): Access target_flags via opts pointer.  Don't
22363         assert that global structures are in use.  Defer part of -mivc2
22364         handling and move it to mep_option_override.
22365         * config/mep/mep.opt (IVC2): New Mask entry.
22366         (mivc2): Use Var and Defer instead of Mask.
22367
22368 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22369
22370         * config/v850/v850-opts.h: New.
22371         * config/v850/v850.c (small_memory): Replace with
22372         small_memory_physical_max array.  Make that array static const.
22373         (v850_handle_memory_option): Take integer value of argument.  Take
22374         gcc_options pointer, option text and location.  Return void.
22375         Update for changes to small memory structures.
22376         (v850_handle_option): Access target_flags via opts pointer.  Don't
22377         assert that global structures are in use.  Update calls to
22378         v850_handle_memory_option.
22379         (v850_encode_data_area): Update references to small memory settings.
22380         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22381         (enum small_memory_type): Move to v850-opts.h.
22382         * config/v850/v850.opt (config/v850/v850-opts.h): New
22383         HeaderInclude entry.
22384         (small_memory_max): New Variable entry.
22385         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
22386         (mtda, mzda): Likewise.
22387
22388 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22389
22390         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22391         pointer.  Don't assert that global structures are in use.
22392
22393 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22394
22395         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22396         via opts pointer.  Don't assert that global structures are in use.
22397
22398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22399
22400         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22401         (munix=93): Use Var.
22402         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22403         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22404         * config/pa/pa-opts.h: New.
22405         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22406         (pa_handle_option): Don't assert that global structures are in
22407         use.  Access target_flags via opts pointer.  Don't handle
22408         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22409         OPT_munix_98 here.
22410         (pa_option_override): Handle deferred OPT_mfixed_range_.
22411
22412 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22413
22414         * config/mn10300/mn10300-opts.h: New.
22415         * config/mn10300/mn10300.c (mn10300_processor,
22416         mn10300_tune_string): Remove.
22417         (mn10300_handle_option): Don't assert that global structures are
22418         in use.  Access mn10300_processor via opts pointer.  Don't handle
22419         OPT_mtune_ here.
22420         * config/mn10300/mn10300.h (enum processor_type): Move to
22421         mn10300-opts.h.
22422         (mn10300_processor): Remove.
22423         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22424         HeaderInclude entry.
22425         (mn10300_processor): New Variable entry.
22426         (mtune=): Use Var.
22427
22428 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22429
22430         * config/microblaze/microblaze.c: Don't include opts.h.
22431         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22432         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22433         (mno-clearbss): Use Var and Warn.
22434
22435 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22436
22437         * config/m32r/m32r-opts.h: New.
22438         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22439         (m32r_handle_option): Don't assert that global structures are in
22440         use.  Access target_flags and m32r_cache_flush_func via opts
22441         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
22442         OPT_mno_flush_trap here.
22443         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22444         include of m32r-opts.h.
22445         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22446         HeaderInclude entry.
22447         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22448         (mmodel=): Use Enum and Var.
22449         (m32r_model): New Enum and EnumValue entries.
22450         (mno-flush-trap): Use Var.
22451         (msdata=): Use Enum and Var.
22452         (m32r_sdata): New Enum and EnumValue entries.
22453
22454 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22455
22456         * config/m32c/m32c.c: Don't include opts.h.
22457         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22458         m32c_handle_option): Remove.
22459         (m32c_option_override): Check global_options_set.x_target_memregs
22460         instead of target_memregs_set.
22461         * config/m32c/m32c.h (target_memregs): Remove.
22462         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22463         variable.
22464
22465 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22466
22467         * config/iq2000/iq2000-opts.h: New.
22468         * config/iq2000/iq2000.c: Don't include opts.h.
22469         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22470         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22471         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22472         HeaderInclude entry.
22473         (iq2000_tune): New Variable entry.
22474         (march=): Add comment.  Use Enum.
22475         (iq2000_arch): New Enum and EnumValue entries.
22476         (mcpu=): Use Enum and Var.
22477         (iq2000_tune): New Enum and EnumValue entries.
22478
22479 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22480
22481         * config/ia64/ia64-opts.h: New.
22482         * config/ia64/ia64.c (ia64_tune): Remove.
22483         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22484         here.  Use error_at.
22485         (ia64_option_override): Handle deferred OPT_mfixed_range_.
22486         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22487         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22488         HeaderInclude entry.
22489         (ia64_tune): New Variable entry.
22490         (mfixed-range=): Use Defer and Var.
22491         (mtune=): Use Enum and Var.
22492         (ia64_tune): New Enum and EnumValue entries.
22493
22494 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22495
22496         * config/frv/frv-opts.h: New.
22497         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22498         frv-opts.h.
22499         (frv_cpu_type): Remove.
22500         * config/frv/frv.c: Don't include opts.h.
22501         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22502         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22503         (frv_cpu_type): New Variable entry.
22504         (frv_cpu): New Enum and EnumValue entries.
22505
22506 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22507
22508         * config/cris/cris.c (cris_handle_option): Access target_flags via
22509         opts pointer.  Don't assert that global structures are in use.
22510         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22511         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22512
22513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22514
22515         * config/bfin/bfin-opts.h: New.
22516         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22517         bfin_si_revision, bfin_workarounds): Remove.
22518         (bfin_cpus): Make static const.
22519         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22520         not bfin_lib_id_given.
22521         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
22522         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22523         pointer. Use error_at.  Don't assert that global structures are in use.
22524         * config/bfin/bfin.h: Include bfin-opts.h.
22525         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22526         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22527         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22528         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22529         entries.
22530
22531 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22532
22533         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22534         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22535         or -msoft-float here.
22536         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22537         -msoft-float and -mhard-float.
22538         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22539         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22540         msoft-float.
22541         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22542         -msoft-float.
22543         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22544         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22545         not mhard-float.
22546         (LIBGCC_SPEC): Don't handle -msoft-float.
22547         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22548         -mhard-float.
22549         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22550         msoft-float.
22551         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22552         -mfloat-abi=*, not -msoft-float and -mhard-float.
22553         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22554         -msoft-float.
22555         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22556         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22557         mhard-float and msoft-float.
22558         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22559         mfloat-abi=soft in comments, not mhard-float and msoft-float.
22560         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22561         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22562         mhard-float.
22563         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22564         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22565         msoft-float.
22566         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22567         not mhard-float.
22568         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22569         not msoft-float.
22570
22571 2011-03-22  Richard Henderson  <rth@redhat.com>
22572
22573         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22574         TARGET_ABI_WINDOWS_NT.
22575         (alpha_output_function_end_prologue): Likewise.
22576         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22577         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22578         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22579         (trap, *movsi_nt_vms): Likewise.
22580         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22581         (*tablejump_osf_nt_internal): Remove.
22582         * config/alpha/predicates.md (input_operand): Only test Pmode.
22583
22584 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22585
22586         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22587         via opts pointer.  Use error_at.  Don't assert that global
22588         structures are in use.
22589
22590 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22591
22592         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22593         (ix86_handle_option): Access ix86_isa_flags and
22594         ix86_isa_flags_explicit via opts pointer.  Don't assert that
22595         global structures are in use.
22596         (ix86_function_specific_save, ix86_function_specific_restore):
22597         Update ix86_isa_flags_explicit field name.
22598         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22599         (ix86_isa_flags_explicit): Rename TargetSave entry to
22600         x_ix86_isa_flags_explicit.
22601
22602 2011-03-22  Richard Henderson  <rth@redhat.com>
22603
22604         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22605         (alpha_option_override, direct_return): Likewise.
22606         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22607         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22608         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22609         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22610         (alpha_expand_epilogue, alpha_end_function): Likewise.
22611         (alpha_init_libfuncs): Likewise.
22612         (struct machine_function): Remove unicosmk members.
22613         (print_operand) ['t']: Remove.
22614         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22615         unicosmk_output_module_name, unicosmk_output_common,
22616         current_section_align, unicosmk_output_text_section_asm_op,
22617         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22618         unicosmk_section_type_flags, unicosmk_unique_section,
22619         unicosmk_asm_named_section, unicosmk_insert_attributes,
22620         unicosmk_output_align, unicosmk_defer_case_vector,
22621         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22622         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22623         unicosmk_output_ssib, unicosmk_add_call_info_word,
22624         unicosmk_extern_head, unicosmk_output_default_externs,
22625         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22626         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22627         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22628         * config/alpha/alpha-protos.h: Update.
22629         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22630         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22631         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22632         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22633         (*mulsi_se, mulvsi3): Likewise.
22634         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22635         (*divmodsi_internal, call, call_value, realign): Likewise.
22636         (moddi3, umoddi3): Likewise; remove duplicate expander.
22637         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22638         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22639         (*movdi_nofix): Remove r/U alternative.
22640         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22641         * config/alpha/constraints.md ("U"): Remove.
22642         * config/alpha/predicates.md (call_operand"): Don't test
22643         TARGET_ABI_UNICOSMK.
22644
22645 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22646
22647         * target.def (handle_option): Take gcc_options and
22648         cl_decoded_option pointers and location_t.
22649         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22650         * doc/tm.texi: Regenerate.
22651         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22652         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22653         * lto-opts.c (lto_reissue_options): Generate option structure for
22654         targetm.handle_option call.
22655         * opts.c (target_handle_option): Update call to
22656         targetm.handle_option.  Remove assertions about values now passed
22657         down to hook.
22658         * targhooks.c (default_target_handle_option): New.
22659         * targhooks.h (default_target_handle_option): Declare.
22660         * config/alpha/alpha.c: Include opts.h.
22661         (alpha_handle_option): Update to new hook interface.
22662         * config/arm/arm.c: Include opts.h.
22663         (arm_handle_option): Update to new hook interface.
22664         * config/arm/t-arm (arm.o): Update dependencies.
22665         * config/bfin/bfin.c: Include opts.h.
22666         (bfin_handle_option): Update to new hook interface.
22667         * config/cris/cris.c: Include opts.h.
22668         (cris_handle_option): Update to new hook interface.
22669         * config/frv/frv.c: Include opts.h.
22670         (frv_handle_option): Update to new hook interface.
22671         * config/i386/i386.c: Include opts.h.
22672         (ix86_handle_option): Update to new hook interface.
22673         (ix86_valid_target_attribute_inner_p): Generate option structure
22674         for call to ix86_handle_option.
22675         * config/i386/t-i386 (i386.o): Update dependencies.
22676         * config/ia64/ia64.c: Include opts.h.
22677         (ia64_handle_option): Update to new hook interface.
22678         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22679         * config/iq2000/iq2000.c: Include opts.h.
22680         (iq2000_handle_option): Update to new hook interface.
22681         * config/m32c/m32c.c: Include opts.h.
22682         (m32c_handle_option): Update to new hook interface.
22683         * config/m32r/m32r.c: Include opts.h.
22684         (m32r_handle_option): Update to new hook interface.
22685         * config/m68k/m68k.c: Include opts.h.
22686         (m68k_handle_option): Update to new hook interface.
22687         * config/mep/mep.c: Include opts.h.
22688         (mep_handle_option): Update to new hook interface.
22689         * config/microblaze/microblaze.c: Include opts.h.
22690         (microblaze_handle_option): Update to new hook interface.
22691         * config/mips/mips.c: Include opts.h.
22692         (mips_handle_option): Update to new hook interface.
22693         * config/mn10300/mn10300.c: Include opts.h.
22694         (mn10300_handle_option): Update to new hook interface.
22695         * config/pa/pa.c: Include opts.h.
22696         (pa_handle_option): Update to new hook interface.
22697         * config/pdp11/pdp11.c: Include opts.h.
22698         (pdp11_handle_option): Update to new hook interface.
22699         * config/rs6000/rs6000.c: Include opts.h.
22700         (rs6000_handle_option): Update to new hook interface.
22701         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22702         * config/rx/rx.c: Include opts.h.
22703         (rx_handle_option): Update to new hook interface.
22704         * config/s390/s390.c: Include opts.h.
22705         (s390_handle_option): Update to new hook interface.
22706         * config/score/score.c: Include opts.h.
22707         (score_handle_option): Update to new hook interface.
22708         * config/sh/sh.c: Include opts.h.
22709         (sh_handle_option): Update to new hook interface.
22710         * config/sparc/sparc.c: Include opts.h.
22711         (sparc_handle_option): Update to new hook interface.
22712         * config/v850/v850.c: Include opts.h.
22713         (v850_handle_option): Update to new hook interface.
22714
22715 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22716
22717         * gcc.c (driver_unknown_option_callback): Only permit and save
22718         unknown -Wno- options.
22719         (driver_wrong_lang_callback): Save options directly instead of via
22720         driver_unknown_option_callback.
22721
22722 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22723
22724         * combine.c (simplify_set): Try harder to find the best CC mode when
22725         simplifying a nested COMPARE on the RHS.
22726
22727 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22728
22729         * config/alpha/gnu.h: Remove.
22730         * config/arc: Remove directory.
22731         * config/arm/netbsd.h: Remove.
22732         * config/arm/t-pe: Remove.
22733         * config/crx: Remove directory.
22734         * config/i386/netbsd.h: Remove.
22735         * config/m68hc11: Remove directory.
22736         * config/m68k/uclinux-oldabi.h: Remove.
22737         * config/mcore/mcore-pe.h: Remove.
22738         * config/mcore/t-mcore-pe: Remove.
22739         * config/netbsd-aout.h: Remove.
22740         * config/rs6000/gnu.h: Remove.
22741         * config/sh/sh-symbian.h: Remove.
22742         * config/sh/symbian-base.c: Remove.
22743         * config/sh/symbian-c.c: Remove.
22744         * config/sh/symbian-cxx.c: Remove.
22745         * config/sh/symbian-post.h: Remove.
22746         * config/sh/symbian-pre.h: Remove.
22747         * config/sh/t-symbian: Remove.
22748         * config/svr3.h: Remove.
22749         * config/vax/netbsd.h: Remove.
22750         * config.build: Don't handle i[34567]86-*-pe.
22751         * config.gcc: Remove handling of deprecations for most deprecated
22752         targets.
22753         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22754         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22755         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22756         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22757         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22758         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22759         Remove cases.
22760         * config.host: Don't handle i[34567]86-*-pe.
22761         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22762         (ASM_SPEC32): Don't handle -mcall-gnu.
22763         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22764         -mcall-gnu.
22765         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22766         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22767         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22768         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22769         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22770         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22771         conditional on SYMBIAN.
22772         * configure.ac: Don't handle powerpc*-*-gnu*.
22773         * configure: Regenerate.
22774         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22775         * doc/install-old.texi (m6811, m6812): Don't mention.
22776         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22777         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22778         (m68k-uclinuxoldabi): Don't mention.
22779         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22780         Remove.
22781         (-mcall-gnu): Remove.
22782         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22783         families): Remove constraint documentation.
22784
22785 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22786
22787         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22788         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22789         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22790
22791 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22792
22793         PR target/48226
22794         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22795         vector when peeking at the next token for vector, don't expand the
22796         keywords.
22797
22798 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22799
22800         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22801         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22802         * config/avr/avr.c (init_cumulative_args)
22803         (avr_function_arg_advance): Use it.
22804         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22805         sibcall epilogues.
22806         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22807         (avr_function_ok_for_sibcall): ...this new function.
22808         (avr_lookup_function_attribute1): New static Function.
22809         (avr_naked_function_p, interrupt_function_p)
22810         (signal_function_p, avr_OS_task_function_p)
22811         (avr_OS_main_function_p): Use it.
22812         * config/avr/avr.md ("sibcall", "sibcall_value")
22813         ("sibcall_epilogue"): New expander.
22814         ("*call_insn", "*call_value_insn"): New insn.
22815         ("call_insn", "call_value_insn"): Remove
22816         ("call", "call_value", "epilogue"): Change expander to handle
22817         sibling calls.
22818
22819 2011-03-21  Nick Clifton  <nickc@redhat.com>
22820
22821         * doc/invoke.texi (Overall Options): Move closing brace to end of
22822         options list.
22823         (Optimization Options): Add missing @gol.
22824         (Directory Options): Likewise.
22825         (i386 and x86-64 Options): Likewise.
22826         (RS6000 and PowerPC Options): Likewise.
22827         (i386 and x86-64 Windows Options): Likewise.
22828         (V850 Options): Add text missing from descriptions.
22829
22830 2011-03-22  Richard Henderson  <rth@redhat.com>
22831
22832         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22833         (avr_incoming_return_addr_rtx): New.
22834         (emit_push_byte): New.
22835         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22836         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22837         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22838         (emit_pop_byte): New.
22839         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22840         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22841         (INCOMING_RETURN_ADDR_RTX): New.
22842         (INCOMING_FRAME_SP_OFFSET): New.
22843         (ARG_POINTER_CFA_OFFSET): New.
22844         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22845         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22846         (pophi): Remove.
22847
22848         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22849
22850 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22851
22852         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22853         (FUNCTION_ARG_ADVANCE): Likewise.
22854         * tm.texi.in: Change references to them to hook references.
22855         * tm.texi: Regenerate.
22856         * targhooks.c (default_function_arg): Eliminate check for target
22857         macro.
22858         (default_function_incoming_arg): Likewise.
22859         (default_function_arg_advance): Likewise.
22860         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22861         (function_arg_advance): Likewise.
22862         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22863
22864 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22865
22866         * tree.c (build_call_1): New function.
22867         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22868
22869 2011-03-22  Richard Guenther  <rguenther@suse.de>
22870
22871         PR tree-optimization/48228
22872         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22873         for single-arg PHIs.
22874
22875 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22876
22877         PR rtl-optimization/48143
22878         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22879         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22880         sse2_cvtps2pd): Likewise.
22881
22882 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22883
22884         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22885
22886 2011-03-22  Richard Guenther  <rguenther@suse.de>
22887
22888         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22889         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22890         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22891         and REALIGN_LOAD_EXPR.
22892         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22893         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22894         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22895         DOT_PROD_EXPR case ...
22896         (expand_expr_real_2): ... here.
22897         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22898         and REALIGN_LOAD_EXPR.
22899         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22900         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22901         (vect_create_epilog_for_reduction): Likewise.
22902         (vectorizable_reduction): Likewise.
22903         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22904         * tree-vect-stmts.c (vectorizable_load): Likewise.
22905
22906 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22907
22908         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22909
22910 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22911
22912         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22913         handling for PLTOFF/GOTOFF.
22914
22915 2011-03-22  Nick Clifton  <nickc@redhat.com>
22916
22917         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22918         trailing backslash from the end of the macro definition.
22919
22920 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22921
22922         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22923         and PLT unspecs.
22924
22925 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22926
22927         * expr.h (prepare_operand): Move to...
22928         * optabs.h (prepare_operand): ...here and change the insn code
22929         parameter from "int" to "enum insn_code".
22930         (insn_operand_matches): Declare.
22931         * expr.c (init_expr_target): Use insn_operand_matches.
22932         (compress_float_constant): Likewise.
22933         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22934         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22935         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22936         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22937         Likewise.
22938         (gen_cond_trap): Likewise.
22939         (prepare_operand): Likewise.  Change icode to an insn_code.
22940         (insn_operand_matches): New function.
22941         * reload.c (find_reloads_address_1): Use insn_operand_matches.
22942         * reload1.c (gen_reload): Likewise.
22943         * targhooks.c (default_secondary_reload): Likewise.
22944
22945 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22946
22947         * config/alpha/alpha.md (unspec): New define_c_enum.
22948         (unspecv): Ditto.
22949
22950 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22951
22952         PR debug/48214
22953         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22954         between a call and its CALL_ARG_LOCATION note.
22955
22956 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
22957
22958         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22959
22960 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22961
22962         PR c/42544
22963         PR c/48197
22964         * c-common.c (shorten_compare): If primopN is first sign-extended
22965         to opN and then zero-extended to result type, set primopN to opN.
22966
22967 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
22968
22969         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22970         for barrier handlers.
22971
22972 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22973
22974         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22975         UNSPEC constants to be in the unspec enumeration, and redefine
22976         all UNSPECV constants to be in the unspecv enumeration, so that
22977         dumps print which unspec/unspec_volatile this is.
22978         * config/rs6000/vector.md (UNSPEC_*): Ditto.
22979         * config/rs6000/paired.md (UNSPEC_*): Ditto.
22980         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22981         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22982         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22983
22984         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22985         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22986         UNSPECV_LWSYNC, since these are used as unspec_volatile.
22987         * config/rs6000/sync.md (isync, lwsync): Ditto.
22988
22989 2011-03-21  Richard Guenther  <rguenther@suse.de>
22990
22991         * params.def (lto-min-partition): Fix typo.
22992
22993 2011-03-21  Richard Guenther  <rguenther@suse.de>
22994
22995         PR c/47939
22996         * c-decl.c (grokdeclarator): Drop to the main variant only
22997         for array types.  Drop flag_gen_aux_info check.
22998
22999 2011-03-21  Richard Guenther  <rguenther@suse.de>
23000
23001         PR translation/47911
23002         * params.def (lto-partitions): Fix typo.
23003         (lto-min-partition): Fix wording.
23004
23005 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
23006
23007         * config/rs6000/t-freebsd: Remove duplication from file.
23008
23009 2011-03-21  Richard Guenther  <rguenther@suse.de>
23010
23011         PR middle-end/47661
23012         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23013
23014 2011-03-21  Richard Guenther  <rguenther@suse.de>
23015
23016         PR lto/48210
23017         * params.def (lto-partitions): Require at least 1 partition.
23018
23019 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23020
23021         * gthr-solaris.h: Remove.
23022         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23023         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23024         (LIB_SPEC): Likewise.
23025         * config/sol2.opt (threads): Remove.
23026         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23027         (sparc*-*-solaris2*): Likewise.
23028         * configure.ac (enable_threads): Enable solaris support.
23029         * configure: Regenerate.
23030         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23031         * doc/install.texi (Configuration, --enable-threads=lib): Remove
23032         solaris.
23033
23034 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23035
23036         * config.gcc: Obsolete *-*-solaris2.8*.
23037         * doc/install.texi (Specific, *-*-solaris2*): Document it.
23038
23039 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23040
23041         PR bootstrap/48135
23042         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23043         reference.  Solaris 8 perl works.
23044
23045 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23046
23047         PR bootstrap/48135
23048         * doc/install.texi (Prerequisites): Move jar etc. up.
23049         Explain support library version requirements.
23050
23051 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23052
23053         PR bootstrap/48135
23054         * doc/install.texi (Prerequisites): Move Perl to build
23055         requirements.  Always necessary on Solaris 2 with Sun ld.
23056
23057 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23058
23059         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23060         binutils 2.21.
23061         (Specific, i?86-*-solaris2.[89]): Likewise.
23062         (Specific, i?86-*-solaris2.10): Likewise.
23063         (Specific, mips-sgi-irix6): Likewise.
23064         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23065         Update for binutils 2.21.
23066
23067 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23068
23069         * configure.ac (gcc_cv_lto_plugin): Fix typo.
23070         Allow -fuse-linker-plugin for non-default plugin linker.
23071         * configure: Regenerate.
23072
23073 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
23074
23075         PR bootstrap/48167
23076         * gengtype.c (files_rules): Added rule for cp/parser.h.
23077
23078 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23079
23080         PR target/48213
23081         * config/s390/s390.c (s390_delegitimize_address): Don't call
23082         lowpart_subreg if orig_x has BLKmode.
23083
23084 2011-03-21  Kai Tietz  <ktietz@redhat.com>
23085
23086         PR target/12171
23087         * doc/plugins.texi: Adjust documentation for plugin register_callback.
23088         * tree.h (attribute_spec): Add new member affects_type_identity.
23089         * attribs.c (empty_attribute_table): Adjust attribute_spec
23090         initializers.
23091         * config/alpha/alpha.c: Likewise.
23092         * config/arc/arc.c: Likewise.
23093         * config/arm/arm.c: Likewise.
23094         * config/avr/avr.c: Likewise.
23095         * config/bfin/bfin.c: Likewise.
23096         * config/crx/crx.c: Likewise.
23097         * config/darwin.h: Likewise.
23098         * config/h8300/h8300.c: Likewise.
23099         * config/i386/cygming.h: Likewise.
23100         * config/i386/i386.c: Likewise.
23101         * config/ia64/ia64.c: Likewise.
23102         * config/m32c/m32c.c: Likewise.
23103         * config/m32r/m32r.c: Likewise.
23104         * config/m68hc11/m68hc11.c: Likewise.
23105         * config/m68k/m68k.c: Likewise.
23106         * config/mcore/mcore.c: Likewise.
23107         * config/mep/mep.c: Likewise.
23108         * config/microblaze/microblaze.c: Likewise.
23109         * config/mips/mips.c: Likewise.
23110         * config/rs6000/rs6000.c: Likewise.
23111         * config/rx/rx.c: Likewise.
23112         * config/sh/sh.c: Likewise.
23113         * config/sol2.h: Likewise.
23114         * config/sparc/sparc.c: Likewise.
23115         * config/spu/spu.c: Likewise.
23116         * config/stormy16/stormy16.c: Likewise.
23117         * config/v850/v850.c: Likewise.
23118
23119 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
23120
23121         * simplify-rtx.c (simplify_binary_operation_1): Handle
23122         (xor (and A B) C) case when B and C are both constants.
23123
23124 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
23125
23126         * tree-dfa.c (add_referenced_var): Fix typo in comment.
23127
23128 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23129
23130         PR bootstrap/48168
23131         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23132
23133 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
23134
23135         PR rtl-optimization/48156
23136         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23137         assume df and df_lr are not NULL.
23138
23139 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23140
23141         PR debug/48023
23142         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23143         between a call and its CALL_ARG_LOCATION note.
23144
23145 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23146
23147         PR debug/48178
23148         * config/sh/sh.c (find_barrier): Don't emit a constant pool
23149         between a call and its corresponding CALL_ARG_LOCATION note.
23150
23151 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
23152
23153         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23154         instead of loop. Use HARD_REGISTER_NUM_P predicate.
23155         * haifa-sched.c (setup_ref_regs): Ditto.
23156         * caller-save.c (add_used_regs_1): Ditto.
23157         * dse.c (look_for_hardregs): Ditto.
23158         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23159         * sched-rgn.c (check_live_1): Ditto.
23160
23161 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23162
23163         * c-decl.c (diagnose_mismatched_decls): Give an error for
23164         redefining a typedef with variably modified type.
23165
23166 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23167
23168         * c-decl.c (grokfield): Don't allow typedefs for structures or
23169         unions with no tag by default.
23170         * doc/extend.texi (Unnamed Fields): Update.
23171
23172 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
23173
23174         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23175         Rewrite using indirect functions.
23176         (lwp_slwpcb): Ditto.
23177         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23178         (avx_vinsertf128<mode>): Ditto.
23179
23180 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23181
23182         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23183         unspecs.
23184
23185 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23186
23187         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23188         splitting between a call and its corresponding CALL_ARG_LOCATION note.
23189
23190 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
23191
23192         PR rtl-optimization/48170
23193         * gcse.c (hoist_code): Remove bogus asserts.
23194
23195 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
23196
23197         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23198         computation for prologue/epilogue.
23199
23200 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23201
23202         * Makefile.in (check-consistency): Remove.
23203
23204 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
23205
23206         PR debug/48176
23207         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23208         arange_table_in_use is 0, but either text_section_used or
23209         cold_text_section_used is true.  Don't call it if
23210         !info_section_emitted.
23211
23212 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
23213
23214         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23215         FUNCTION_VALUE_REGNO_P): Remove.
23216         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23217         Remove.
23218         * config/avr/avr.c (avr_ret_register): Make static inline.
23219         (avr_function_value_regno_p): New function.
23220         (avr_libcall_value): Make static. Add 'func' argument.
23221         (avr_function_value): Make static. Rename 'func' argument to
23222         'fn_decl_or_type', forward it to avr_libcall_value. Call
23223         avr_ret_register function instead of RET_REGISTER macro.
23224         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23225
23226 2011-03-18  Jason Merrill  <jason@redhat.com>
23227
23228         PR c++/23372
23229         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23230
23231 2011-03-18  Richard Guenther  <rguenther@suse.de>
23232
23233         * doc/install.texi (--enable-gold): Remove.
23234         (--with-plugin-ld): Document.
23235         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23236
23237 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
23238
23239         PR middle-end/47790
23240         * expr.c (optimize_bitfield_assignment_op): Revamp to work
23241         again after expansion changes.
23242
23243 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
23244
23245         * combine.c (try_combine): Do simplification only call of
23246         subst() on i2 even when i1 is present. Update comments.
23247
23248 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23249
23250         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23251         and UNSPEC_PCREL_SYMOFF.
23252
23253 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23254
23255         * config/s390/s390.md: Use define_c_enum for the unspec constant
23256         definitions.
23257
23258 2011-03-18  Richard Henderson  <rth@redhat.com>
23259             Jakub Jelinek  <jakub@redhat.com>
23260
23261         PR bootstrap/48161
23262         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23263         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23264
23265 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
23266
23267         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23268         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23269         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23270         Change return type to bool.
23271         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23272
23273 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23274
23275         PR debug/48163
23276         * var-tracking.c (prepare_call_arguments): If CALL target
23277         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23278         pc instead of looking it up using cselib_lookup and use
23279         Pmode for it if x has VOIDmode.
23280         * dwarf2out.c (gen_subprogram_die): If also both first and
23281         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23282
23283         PR debug/48163
23284         * function.c (assign_parms): For data.passed_pointer parms
23285         use MEM of data.entry_parm instead of data.entry_parm itself
23286         as DECL_INCOMING_RTL.
23287         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23288         also when passed and declared mode is the same, DECL_RTL
23289         is a MEM with pseudo as address and DECL_INCOMING_RTL is
23290         a MEM too.
23291
23292 2011-03-16  Jeff Law  <law@redhat.com>
23293
23294         PR rtl-optimization/37273
23295         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23296         handle them like argument loads from stack slots.  Do not double
23297         count memory for memory constants and argument loads from stack slots.
23298
23299 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23300
23301         PR debug/48160
23302         * var-tracking.c (prepare_call_arguments): Check SUBREG.
23303
23304 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23305
23306         PR target/48171
23307         * config/i386/i386.opt: Add Save to -mavx and -mfma.
23308
23309 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23310
23311         PR bootstrap/48153
23312         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23313         if dwarf_strict.
23314         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23315         Clear call_arg_locations and call_arg_loc_last always.
23316
23317         PR middle-end/48152
23318         * var-tracking.c (prepare_call_arguments): If argument needs to be
23319         passed by reference, adjust argtype and mode.
23320
23321 2011-03-17  Richard Guenther  <rguenther@suse.de>
23322
23323         PR middle-end/48134
23324         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23325         a value make sure to fold the statement.
23326
23327 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
23328
23329         PR target/43872
23330         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23331         return condition with !cfun->calls_alloca.
23332
23333 2011-03-17  Richard Guenther  <rguenther@suse.de>
23334
23335         PR bootstrap/48148
23336         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23337         origin for decls in other ltrans units.
23338         (input_varpool_node): Likewise.
23339
23340 2011-03-17  Richard Guenther  <rguenther@suse.de>
23341
23342         PR middle-end/48165
23343         * tree-object-size.c (compute_object_offset): Properly return
23344         the offset operand of MEM_REFs as sizetype.
23345
23346 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23347
23348         PR rtl-optimization/48141
23349         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23350         * dse.c: Include params.h.
23351         (active_local_stores_len): New variable.
23352         (add_wild_read, dse_step1): Clear it when setting active_local_stores
23353         to NULL.
23354         (record_store, check_mem_read_rtx): Decrease it when removing
23355         from the chain.
23356         (scan_insn): Likewise.  Increase it when adding to chain, if it
23357         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23358         set active_local_stores to NULL before the addition.
23359         * Makefile.in (dse.o): Depend on $(PARAMS_H).
23360
23361         PR rtl-optimization/48141
23362         * dse.c (record_store): If no positions are needed in an insn
23363         that cannot be deleted, at least unchain it from active_local_stores.
23364
23365 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
23366
23367         PR debug/47510
23368         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23369         (lookup_type_die_strip_naming_typedef): ... here.
23370         (get_context_die): Use it.
23371         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23372         the anonymous struct named by the naming typedef.
23373
23374 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23375
23376         PR target/48154
23377         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23378         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23379
23380 2011-03-16  Jeff Law  <law@redhat.com>
23381
23382         * tree-vrp.c (identify_jump_threads): Slightly simplify type
23383         check for operands of conditional.  Allow type to be a pointer.
23384
23385 2011-03-16  Richard Guenther  <rguenther@suse.de>
23386
23387         PR tree-optimization/48149
23388         * fold-const.c (fold_binary_loc): Fold
23389         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23390
23391 2011-03-16  Richard Guenther  <rguenther@suse.de>
23392
23393         PR tree-optimization/26134
23394         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23395         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23396         (non_rewritable_mem_ref_base): Handle complex type component
23397         accesses, constrain offsets for vector and complex extracts
23398         more properly.
23399
23400 2011-03-16  Richard Guenther  <rguenther@suse.de>
23401
23402         PR tree-optimization/48146
23403         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23404         operands avoiding the need for renaming.
23405
23406 2011-03-16  Richard Guenther  <rguenther@suse.de>
23407
23408         * gimple-fold.c (maybe_fold_reference): Open-code relevant
23409         constant folding.  Move MEM_REF canonicalization first.
23410         Rely on fold_const_aggregate_ref for initializer folding.
23411         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23412
23413 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23414
23415         PR middle-end/48136
23416         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23417         arg0/arg1 or their arguments are always fold converted to matching
23418         types.
23419
23420         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23421         to nargs.
23422
23423 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23424
23425         PR lto/46944
23426         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23427         Handle in-tree gold.
23428         (ld_vers): Extract binutils version for gold.
23429         (gcc_cv_ld_hidden): Handle gold here.
23430         (gcc_cv_lto_plugin): Determine level of linker plugin support.
23431         * configure: Regenerate.
23432         * config.in: Regenerate.
23433         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23434         -fuse-linker-plugin otherwise.
23435         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
23436         (LINK_COMMAND_SPEC): Use it.
23437         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23438
23439 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23440
23441         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23442         * calls.c: Remove debug.h include.
23443         (emit_call_1): Don't call virtual_call_token debug hook.
23444         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23445         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23446         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23447         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23448         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23449         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23450         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23451         dwarf2out_virtual_call): Remove.
23452         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23453         copy_call_info and virtual_call hooks.
23454         (dwarf2out_init): Don't initialize vcall_insn_table,
23455         debug_dcall_section and debug_vcall_section.
23456         (prune_unused_types): Don't mark nodes from dcall_table.
23457         (dwarf2out_finish): Don't output dcall or vcall tables.
23458         * final.c (final_scan_insn): Don't call direct_call or
23459         virtual_call debug hooks.
23460         * debug.h (struct gcc_debug_hooks): Remove direct_call,
23461         virtual_call_token, copy_call_info and virtual_call hooks.
23462         (debug_nothing_uid): Remove prototype.
23463         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23464         copy_call_info and virtual_call hooks.
23465         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23466         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23467         * debug.c (do_nothing_debug_hooks): Likewise.
23468         (debug_nothing_uid): Remove.
23469         * doc/invoke.texi (-fenable-icf-debug): Remove.
23470         * common.opt (-fenable-icf-debug): Likewise.
23471
23472         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23473         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23474         call's MEM.  Handle functions returning aggregate through a hidden
23475         first pointer.  For virtual calls add clobbered pc to call arguments
23476         chain.
23477         * dwarf2out.c (gen_subprogram_die): Emit
23478         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23479         can't be emitted.
23480
23481         PR debug/45882
23482         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23483         * rtl.h (ENTRY_VALUE_EXP): Define.
23484         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23485         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23486         * print-rtl.c (print_rtx): Likewise.
23487         * gengtype.c (adjust_field_rtx_def): Likewise.
23488         * var-tracking.c (vt_add_function_parameter): Adjust
23489         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23490         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23491         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23492         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23493         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23494
23495         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23496         Call var_location debug hook even on CALL_INSNs.
23497         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23498         * rtl.def (ENTRY_VALUE): New.
23499         * dwarf2out.c: Include cfglayout.h.
23500         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23501         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23502         (struct call_arg_loc_node): New type.
23503         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23504         tail_call_site_count): New variables.
23505         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23506         DW_TAG_GNU_call_site_parameter.
23507         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23508         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23509         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23510         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23511         and DW_AT_GNU_all_source_call_sites.
23512         (mem_loc_descriptor): Handle ENTRY_VALUE.
23513         (add_src_coords_attributes): Don't add enything if
23514         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23515         (dwarf2out_abstract_function): Save and clear call_arg_location,
23516         call_site_count and tail_call_site_count around dwarf2out_decl call.
23517         (gen_call_site_die): New function.
23518         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23519         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23520         (dwarf2out_function_decl): Clear call_arg_locations,
23521         call_arg_loc_last, set call_site_count and tail_call_site_count
23522         to -1 and free block_map.
23523         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23524         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
23525         followed by any real instructions.
23526         (dwarf2out_begin_function): Set call_site_count and
23527         tail_call_site_count to 0.
23528         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23529         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23530         attempt to force a DIE for it and worst case remove the attribute.
23531         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23532         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23533         the decl itself.
23534         * var-tracking.c: Include tm_p.h.
23535         (vt_stack_adjustments): For calls call note_register_arguments.
23536         (argument_reg_set): New variable.
23537         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23538         ensure the VALUE is resolved.
23539         (call_arguments): New variable.
23540         (prepare_call_arguments): New function.
23541         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23542         (struct expand_loc_callback_data): Add ignore_cur_loc field.
23543         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23544         always use the best expression.
23545         (vt_expand_loc): Add ignore_cur_loc argument.
23546         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23547         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23548         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23549         note for all calls.
23550         (vt_add_function_parameter): Use cselib_lookup_from_insn.
23551         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23552         argument.  Don't call cselib_preserve_only_values and
23553         cselib_reset_table.
23554         (note_register_arguments): New function.
23555         (vt_initialize): Compute argument_reg_set.  Call
23556         vt_add_function_parameters before processing basic blocks instead of
23557         afterwards.  For calls call prepare_call_arguments before calling
23558         cselib_process_insn.
23559         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23560         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23561         (var-tracking.o): Depend on $(TM_P_H).
23562         * cfglayout.h (insn_scope): New prototype.
23563         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23564         * cfglayout.c (insn_scope): No longer static.
23565         * insn-notes.def (CALL_ARG_LOCATION): New.
23566         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23567         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23568         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23569         nothing for DECL_EXTERNAL BLOCK_VARS.
23570
23571 2011-03-16  Alan Modra  <amodra@gmail.com>
23572
23573         PR target/45844
23574         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23575         create invalid offset address for vsx splat insn.
23576         * config/rs6000/predicates.md (splat_input_operand): New.
23577         * config/rs6000/vsx.md (vsx_splat_*): Use it.
23578
23579 2011-03-15  Xinliang David Li  <davidxl@google.com>
23580
23581         PR c/47837
23582         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23583         (normalize_preds): New function.
23584         (is_use_properly_guarded): Normalize def predicates.
23585
23586 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23587
23588         PR target/46788
23589         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23590         in the output template.
23591
23592 2011-03-15  Richard Guenther  <rguenther@suse.de>
23593
23594         PR middle-end/47650
23595         * tree-pretty-print.c (dump_function_declaration): Properly
23596         dump unprototyped and varargs function types.
23597
23598 2011-03-15  Richard Guenther  <rguenther@suse.de>
23599
23600         PR tree-optimization/13954
23601         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23602         and friends.
23603
23604 2011-03-15  Richard Guenther  <rguenther@suse.de>
23605
23606         PR tree-optimization/48037
23607         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23608         selects into BIT_FIELD_REFs.
23609         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23610         vector select.
23611
23612 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
23613
23614         PR tree-optimization/48129
23615         * builtins.c (fold_builtin_snprintf): Convert to type of
23616         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23617         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23618
23619 2011-03-15  Richard Guenther  <rguenther@suse.de>
23620
23621         PR tree-optimization/41490
23622         * tree-ssa-dce.c (propagate_necessity): Handle returns without
23623         value but with VUSE.
23624         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23625         return statements.
23626         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23627         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23628         * tree-tailcall.c (find_tail_calls): Ignore returns.
23629
23630 2011-03-15  Richard Guenther  <rguenther@suse.de>
23631
23632         PR middle-end/48031
23633         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23634         or variable-indexed array accesses when in gimple form.
23635
23636 2011-03-15  Richard Guenther  <rguenther@suse.de>
23637
23638         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23639
23640 2011-03-15  Alan Modra  <amodra@gmail.com>
23641
23642         PR target/48032
23643         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23644         presume symbol_refs without a symbol_ref_decl are suitably
23645         aligned, nor other trees we may see here.  Handle anchor symbols.
23646         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23647         Check cmodel=medium addresses.  Adjust all calls.
23648         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23649         creating cmodel=medium optimized access to locals.
23650         * config/rs6000/constraints.md (R): Pass QImode to
23651         legitimate_constant_pool_address_p.
23652         * config/rs6000/predicates.md (input_operand): Pass mode to
23653         legitimate_constant_pool_address_p.
23654         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23655         Update prototype.
23656
23657 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23658
23659         PR target/48053
23660         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23661         64-bit constants being loaded into registers other than GPRs such
23662         as loading 0 into a VSX register.
23663
23664 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23665
23666         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23667
23668 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23669
23670         PR middle-end/47917
23671         * builtins.c (fold_builtin_snprintf): New function.
23672         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23673         (fold_builtin_4): Likewise.
23674
23675         PR middle-end/38878
23676         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23677         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23678         and C - X == X also strip nops from +/-/p+ operand.
23679         When optimizing -X == C, fold C to arg0's type.
23680
23681         PR debug/47946
23682         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23683         emit it as add_AT_int instead of add_AT_unsigned.
23684
23685 2011-03-14  Tom Tromey  <tromey@redhat.com>
23686
23687         * unwind-dw2.c: Include sys/sdt.h if it exists.
23688         (_Unwind_DebugHook): Use STAP_PROBE2.
23689         * config.in, configure: Rebuild.
23690         * configure.ac: Check for sys/sdt.h.
23691
23692 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23693
23694         * config/i386/i386.md (ROUND_FLOOR): New constant.
23695         (ROUND_CEIL): Ditto.
23696         (ROUND_TRUNC): Ditto.
23697         (ROUND_MXCSR): Ditto.
23698         (ROUND_NO_EXC): Ditto.
23699         (rint<mode>2): Use new defines instead of numerical constants.
23700         (floor<mode>2): Ditto.
23701         (ceil<mode>2): Ditto.
23702         (btrunc<mode>2): Ditto.
23703         * config/i386/i386-builtin-types.def: Define ROUND function type
23704         aliases.
23705         * config/i386/i386.c (enum ix86_builtins): Add
23706         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23707         (struct builtin_description): Add
23708         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23709         (ix86_expand_sse_round): New static function.
23710         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23711         function types.
23712         (ix86_builtin_vectorized_function): Handle
23713         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23714
23715 2011-03-14  Tom Tromey  <tromey@redhat.com>
23716
23717         * c-parser.c (c_parser_asm_string_literal): Clear
23718         warn_overlength_strings.
23719
23720 2011-03-14  Tom Tromey  <tromey@redhat.com>
23721
23722         * c-parser.c (disable_extension_diagnostics): Save
23723         warn_overlength_strings.
23724         (restore_extension_diagnostics): Restore warn_overlength_strings.
23725
23726 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23727
23728         * BASE-VER: Change to 4.7.0.
23729
23730 2011-03-14  Richard Guenther  <rguenther@suse.de>
23731
23732         PR middle-end/48098
23733         * tree.c (build_vector_from_val): Adjust assert to requirements
23734         and reality.
23735
23736 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23737
23738         PR bootstrap/48102
23739         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23740
23741 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23742
23743         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23744         terms of target_flags_explicit. Adjust copyright year.
23745
23746         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23747         * config/rs6000/t-freebsd: New file. Add override for
23748         LIB2FUNCS_EXTRA.
23749
23750 2011-03-13  Chris Demetriou  <cgd@google.com>
23751
23752         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23753         (-fno-diagnostics-show-option): this, to reflect current default.
23754         (-Werror=): Update text about -fno-diagnostics-show-option.
23755
23756 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23757
23758         PR target/48053
23759         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23760         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23761         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23762         mode is not V2DImode or V2DFmode.
23763         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23764         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23765         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23766         registers to 0.
23767         (movdi_internal64): Likewise.
23768
23769 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23770
23771         PR tree-optimization/47127
23772         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23773         parameter.
23774         (set_cloog_options): Same.
23775         (scop_to_clast): Same.
23776         (print_clast_stmt): Do not call cloog_state_malloc and
23777         cloog_state_free.
23778         (print_generated_program): Same.
23779         (gloog): Same.
23780         * graphite-clast-to-gimple.h (cloog_state): Declared.
23781         (scop_to_clast): Adjust declaration.
23782         * graphite.c (cloog_state): Defined here.
23783         (graphite_initialize): Call cloog_state_malloc.
23784         (graphite_finalize): Call cloog_state_free.
23785
23786 2011-03-11  Jason Merrill  <jason@redhat.com>
23787
23788         * attribs.c (lookup_attribute_spec): Take const_tree.
23789         * tree.h: Adjust.
23790
23791 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23792
23793         * config/sparc/sparc.c (sparc_option_override): Use
23794         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23795
23796 2011-03-11  Richard Guenther  <rguenther@suse.de>
23797
23798         PR tree-optimization/48067
23799         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23800         multiplication result will be only used once on the target
23801         stmt.
23802
23803 2011-03-11  Richard Guenther  <rguenther@suse.de>
23804
23805         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23806
23807 2011-03-11  Richard Guenther  <rguenther@suse.de>
23808
23809         PR lto/48073
23810         * tree.c (find_decls_types_r): Do not walk types only reachable
23811         from IDENTIFIER_NODEs.
23812
23813 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23814
23815         PR middle-end/48044
23816         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23817         all vnode->force_output nodes as needed.
23818
23819 2011-03-11  Jason Merrill  <jason@redhat.com>
23820
23821         PR c++/48069
23822         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23823         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23824
23825 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23826
23827         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23828         cgraph_node.
23829
23830 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23831
23832         PR tree-optimization/48063
23833         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23834         inline functions called once if !tree_can_inline_p (node->callers).
23835
23836 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23837
23838         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23839         extra_objs.
23840         * config/score/score3.c: Delete.
23841         * config/score/score3.h: Delete.
23842         * config/score/mul-div.S: Delete.
23843         * config/score/sfp-machine.h: Add new file.
23844         * config/score/constraints.md: Add new file.
23845         * config/score/t-score-softfp: Add new file.
23846         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23847         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23848         (score7_extra_constraint): Delete.
23849         (score7_option_override): Remove unused code.
23850         * config/score/score.c: Remove score3 and score5 define and code.
23851         * config/score/score.h: Remove score3 and score5 define and code.
23852         * config/score/score.md: Remove score3 template and unusual insn.
23853         * config/score/score.opt: Remove score3 and score5 options.
23854
23855 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23856
23857         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23858         when _HPUX_SOURCE is defined.
23859         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23860
23861 2011-03-10  Jason Merrill  <jason@redhat.com>
23862
23863         PR c++/48029
23864         * stor-layout.c (layout_type): Don't set structural equality
23865         on arrays of incomplete type.
23866         * tree.c (type_hash_eq): Handle comparing them properly.
23867
23868 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23869
23870         PR debug/48043
23871         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23872         result mode matches original rtl mode.
23873
23874 2011-03-10  Nick Clifton  <nickc@redhat.com>
23875
23876         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23877         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23878
23879 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23880
23881         PR rtl-optimization/47866
23882         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23883         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23884         if target wasn't scalar.
23885         * function.c (assign_stack_temp_for_type): Assert that neither
23886         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23887         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23888         macro.
23889         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23890
23891 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23892
23893         * config/s390/s390-protos.h (s390_label_align): New prototype.
23894         * config/s390/s390.c (s390_label_align): New function.
23895         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23896
23897 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23898
23899         PR target/47755
23900         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23901         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23902         (output_vec_const_move): Ditto.
23903
23904 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23905
23906         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23907         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23908         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23909         Change 'rclass' argument and result type to reg_class_t.
23910         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23911
23912 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23913
23914         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23915         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23916         (TARGET_MEMORY_MOVE_COST): Define.
23917         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23918
23919 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23920
23921         PR debug/47881
23922         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23923         removed anything.
23924
23925         PR tree-optimization/48022
23926         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23927         for EQ/NE_EXPR.
23928
23929 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23930
23931         PR debug/47991
23932         * var-tracking.c (find_use_val): Return NULL for
23933         cui->sets && cui->store_p BLKmode MEMs.
23934
23935 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23936
23937         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23938         Remove.
23939         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23940         xstormy16_print_operand_address): Remove.
23941         * config/stormy16/stormy16.c (xstormy16_print_operand,
23942         xstormy16_print_operand_address): Make static.
23943         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23944
23945 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
23946
23947         PR target/47862
23948         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23949         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23950         before definition.
23951
23952 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
23953
23954         PR bootstrap/48000
23955         * cfgloopmanip.c (fix_bb_placements): Return immediately
23956         if FROM is BASE_LOOP's header.
23957
23958 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
23959
23960         * gimplify.c (gimplify_function_tree): Fix building calls
23961         to __builtin_return_address.
23962
23963 2011-03-07  Alan Modra  <amodra@gmail.com>
23964
23965         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23966         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23967         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23968         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23969         return_mode args.
23970         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23971         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23972         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23973         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23974         * config/rs6000/rs6000.c
23975         (rs6000_elf_end_indicate_exec_stack): Rename to..
23976         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
23977         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
23978         (rs6000_file_start): ..here.
23979         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23980         file scope variables.
23981         (call_ABI_of_interest): New function.
23982         (init_cumulative_args): Set above vars when function return value
23983         is a float, vector, or small struct.
23984         (rs6000_function_arg_advance_1): Likewise for function args.
23985         (rs6000_va_start): Set rs6000_passes_float if variable arg function
23986         references float args.
23987
23988 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23989
23990         * doc/cfg.texi: Remove "See" before @ref.
23991         * doc/invoke.texi: Likewise.
23992
23993 2011-03-05  Jason Merrill  <jason@redhat.com>
23994
23995         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23996
23997 2011-03-05  Anthony Green  <green@moxielogic.com>
23998
23999         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24000
24001 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
24002
24003         PR rtl-optimization/47899
24004         * cfgloopmanip.c (fix_bb_placements): Fix first argument
24005         to flow_loop_nested_p when moving the loop upward.
24006
24007 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
24008
24009         PR target/47719
24010         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
24011
24012 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
24013
24014         PR tree-optimization/47967
24015         * ipa-cp.c (build_const_val): Return NULL instead of creating
24016         VIEW_CONVERT_EXPR for mismatching sizes.
24017         (ipcp_create_replace_map): Return NULL if build_const_val failed.
24018         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24019         give up on versioning.
24020
24021 2011-03-05  Alan Modra  <amodra@gmail.com>
24022
24023         PR target/47986
24024         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24025         full cmodel medium/large lo_sum + high addresses.
24026
24027 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24028
24029         * config/s390/s390.c (s390_decompose_address): Reject non-literal
24030         pool references in UNSPEC_LTREL_OFFSET.
24031
24032 2011-03-04  Jan Hubicka  <jh@suse.cz>
24033
24034         PR lto/47497
24035         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24036         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24037         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24038         Add node pointers.
24039         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24040         cgraph_add_thunk): Add node pointers.
24041         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24042         associated to right node.
24043         (input_node): Update use of cgraph_same_body_alias
24044         and cgraph_add_thunk.
24045
24046 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24047
24048         * config/i386/i386.opt (mprefer-avx128): New flag.
24049         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24050         modes when the flag -mprefer-avx128 is on.
24051
24052 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
24053
24054         * dwarf2out.c (compare_loc_operands): Fix address handling.
24055
24056 2011-03-04  Alan Modra  <amodra@gmail.com>
24057
24058         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24059
24060 2011-03-04  Richard Guenther  <rguenther@suse.de>
24061
24062         PR middle-end/47968
24063         * expmed.c (extract_bit_field_1): Prefer vector modes that
24064         vec_extract patterns can handle.
24065
24066 2011-03-04  Richard Guenther  <rguenther@suse.de>
24067
24068         PR middle-end/47975
24069         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24070
24071 2011-03-04  Richard Henderson  <rth@redhat.com>
24072
24073         * explow.c (emit_stack_save): Remove 'after' parameter.
24074         (emit_stack_restore): Likewise.
24075         * expr.h: Update to match.
24076         * builtins.c, calls.c, stmt.c: Likewise.
24077         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24078         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24079         * function.c (expand_function_end): Insert the emit_stack_save
24080         sequence before parm_birth_insn instead of after.
24081
24082 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
24083
24084         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24085         (ssse3_pmaddubsw128): Ditto.
24086         (ssse3_pmaddubsw): Ditto.
24087
24088 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
24089
24090         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24091
24092 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
24093
24094         PR c/47963
24095         * gimplify.c (omp_add_variable): Only call omp_notice_variable
24096         on TYPE_SIZE_UNIT if it is a DECL.
24097
24098         PR debug/47283
24099         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24100         first operand is not is_gimple_mem_ref_addr, try to fold it.
24101         If the operand still isn't is_gimple_mem_ref_addr, clear
24102         MEM_EXPR on op0.
24103
24104 2011-03-03  Richard Guenther  <rguenther@suse.de>
24105
24106         PR middle-end/47283
24107         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24108         match comment.
24109         (refs_may_alias_p_1): For release branches return true if
24110         we are confused by our input.
24111
24112 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24113
24114         * config/s390/s390.c (s390_function_value): Rename to ...
24115         (s390_function_and_libcall_value): ... this.
24116         (s390_function_value): New function.
24117         (s390_libcall_value): New function.
24118         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24119         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24120         target macro definitions.
24121         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24122
24123 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
24124
24125         * config/i386/freebsd64.h (CC1_SPEC): Define.
24126         * config/i386/linux64.h (CC1_SPEC): Define.
24127         * config/i386/x86-64.h (CC1_SPEC): Don't define.
24128
24129 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
24130
24131         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24132         Remove.
24133         * config/stormy16/stormy16.c: Include reload.h.
24134         (xstormy16_memory_move_cost): New function.
24135         (TARGET_MEMORY_MOVE_COST): Define.
24136
24137 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
24138
24139         PR rtl-optimization/47925
24140         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24141         with side effects.  Remove the more-specific check for volatile asms.
24142
24143 2011-03-02  Alan Modra  <amodra@gmail.com>
24144
24145         PR target/47935
24146         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24147         toc relative addresses for valid offsets.
24148
24149 2011-03-01  Richard Guenther  <rguenther@suse.de>
24150
24151         PR tree-optimization/47890
24152         * tree-vect-loop.c (get_initial_def_for_induction): Set
24153         related stmt properly.
24154
24155 2011-03-01  Richard Guenther  <rguenther@suse.de>
24156
24157         PR lto/47924
24158         * lto-streamer.c (lto_record_common_node): Also register
24159         the canonical type.
24160
24161 2011-03-01  Richard Guenther  <rguenther@suse.de>
24162
24163         PR lto/46911
24164         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24165         Do not stream DECL_ABSTRACT_ORIGIN.
24166         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24167         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24168         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24169         Do not stream DECL_ABSTRACT_ORIGIN.
24170         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24171         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24172
24173 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
24174
24175         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24176         FUNCTION_VALUE_REGNO_P): Remove.
24177         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24178         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24179         Add 'outgoing' argument.
24180         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24181         function.
24182         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24183         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24184
24185 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
24186
24187         PR debug/28047
24188         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24189         (lookup_filename): Likewise.
24190         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24191
24192 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
24193             Jakub Jelinek  <jakub@redhat.com>
24194
24195         PR middle-end/47893
24196         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24197         (assign_stack_local_1): Change last argument type to int.
24198         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24199         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
24200         don't record padding space into frame_space_list nor use those areas.
24201         (assign_stack_local): Adjust caller.
24202         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24203         of assign_stack_local, pass 0 as last argument.
24204         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24205         callers.
24206
24207 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
24208
24209         PR debug/47283
24210         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24211         Use target address_mode and pointer_mode hooks instead of hardcoded
24212         Pmode and ptr_mode.  Handle some simple cases of extending if
24213         POINTERS_EXTEND_UNSIGNED < 0.
24214         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24215         Call convert_debug_memory_address.
24216         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24217         convert_debug_memory_address.
24218
24219         PR middle-end/46790
24220         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24221         * configure: Regenerated.
24222         * config.in: Regenerated.
24223         * varasm.c (default_function_section): Return NULL
24224         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24225
24226 2011-02-28  Martin Jambor  <mjambor@suse.cz>
24227
24228         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24229         the description to match the printed values.
24230
24231 2011-02-28  Richard Guenther  <rguenther@suse.de>
24232
24233         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24234         of the copied scope tree.
24235
24236 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24237
24238         * doc/extend.texi (Function Attributes): Avoid deeply (and
24239         wrongly) nested tables.
24240
24241 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
24242
24243         PR middle-end/47903
24244         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24245         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24246         r isn't op0 nor op1.
24247
24248 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24249
24250         * config/avr/avr.md: Remove magic comment for emacs.
24251
24252 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24253
24254         PR target/45261
24255         * config/avr/avr.c (avr_option_override): Use error on bad options.
24256         (avr_help): New function.
24257         (TARGET_HELP): Define.
24258
24259 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
24260
24261         PR target/42240
24262         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24263         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24264
24265 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
24266
24267         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24268         (ARM Options): Ditto.
24269         (i386 and x86-64 Options): Ditto.
24270         (RX Options): Ditto.
24271         (SPARC Options): Ditto.
24272
24273 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
24274
24275         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24276         FreeBSD 6 and later.  Generally use cpu generic.
24277
24278 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24279
24280         * doc/cpp.texi: Update copyright years.
24281
24282 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24283
24284         PR target/46898
24285         * config/lm32/lm32.md (ashrsi3): Added needed variable.
24286
24287 2011-02-25  Jon Beniston  <jon@beniston.com>
24288
24289         PR target/46898
24290         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24291         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24292         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24293         (lm32_block_move_inline): Add type cast to remove warning.
24294         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24295         (gen_int_relational): Move declarations to start of function.
24296
24297 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
24298
24299         PR tree-optimization/45470
24300         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24301         can throw internally only.
24302         * tree-vect-stmts.c (vectorizable_call): Likewise.
24303
24304 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
24305
24306         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24307         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24308         * config/stormy16/stormy16-protos.h
24309         (xstormy16_preferred_reload_class): Remove.
24310         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24311         static. Change 'rclass' argument and return type to reg_class_t.
24312         (TARGET_PREFERRED_RELOAD_CLASS,
24313         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24314
24315 2011-02-24  Richard Guenther  <rguenther@suse.de>
24316
24317         * lto-streamer-in.c (input_bb): Do not find referenced vars
24318         in debug statements.
24319
24320 2011-02-23  Jason Merrill  <jason@redhat.com>
24321
24322         * common.opt (fabi-version): Document v5 and v6.
24323
24324 2011-02-23  Richard Guenther  <rguenther@suse.de>
24325
24326         PR tree-optimization/47849
24327         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24328
24329 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24330
24331         * opts-common.c (decode_cmdline_option): Print empty string
24332         argument as "" in decoded->orig_option_with_args_text.
24333         * gcc.c (execute): Print empty string argument as ""
24334         in the verbose output.
24335         (do_spec_1): Keep empty string argument.
24336
24337 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
24338
24339         * config.gcc: Declare score-* and crx-* obsolete.
24340
24341 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24342
24343         PR rtl-optimization/47763
24344         * web.c (web_main): Ignore naked clobber when replacing register.
24345
24346 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
24347
24348         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24349         Remove.
24350
24351 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24352
24353         PR doc/47848
24354         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24355
24356 2011-02-22  Mike Stump  <mikestump@comcast.net>
24357
24358         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24359         assembler.
24360         * configure: Regenerate.
24361
24362 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
24363
24364         PR rtl-optimization/46002
24365         * ira-color.c (update_copy_costs): Change class intersection
24366         test to reg_class_contents[] test of 'hard_regno'.
24367
24368 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
24369
24370         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24371         than Driver option.
24372         * config/hpux11.opt (mt): Likewise.
24373         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24374         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24375         * config/vax/elf.opt (mno-asm-pic): Likewise.
24376         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24377
24378 2011-02-21  Mike Stump  <mikestump@comcast.net>
24379
24380         PR target/47822
24381         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24382         tree so we can get save the type.
24383         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24384         for CFString instead of trying to use past the end of the builtins.
24385         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24386         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24387         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24388         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24389         Rename to darwin_builtin_cfstring.
24390         (darwin_init_cfstring_builtins): Return the built type.
24391
24392 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
24393
24394         PR target/47840
24395         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24396         (_mm256_insert_epi64): Use _mm_insert_epi64.
24397
24398 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
24399
24400         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24401         * config/stormy16/stormy16-protos.h
24402         (xstormy16_mode_dependent_address_p): Remove.
24403         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24404         Make static. Change return type to bool. Change argument type to
24405         const_rtx. Remove dead code.
24406         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24407
24408 2011-02-21  Richard Guenther  <rguenther@suse.de>
24409
24410         PR lto/47820
24411         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24412         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24413         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24414         TUs context.
24415         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24416         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24417
24418 2011-02-20  Richard Guenther  <rguenther@suse.de>
24419
24420         PR lto/47822
24421         * tree.c (free_lang_data_in_decl): Clean builtins from
24422         the TU decl BLOCK_VARS.
24423
24424 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
24425
24426         PR debug/47620
24427         PR debug/47630
24428         * haifa-sched.c (fix_tick_ready): Skip tick computation
24429         for debug insns.
24430
24431 2011-02-19  Richard Guenther  <rguenther@suse.de>
24432
24433         PR lto/47647
24434         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24435         Remove lazy BLOCK_VARS streaming.
24436         (lto_input_ts_block_tree_pointers): Likewise.
24437         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24438
24439 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24440
24441         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24442
24443 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24444
24445         * config/i386/biarch32.h, config/i386/mach.h,
24446         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24447
24448 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
24449
24450         PR target/47800
24451         * config/i386/i386.md (peephole2 for shift and plus): Use
24452         operands[1] original mode in the first insn.
24453
24454 2011-02-18  Mike Stump  <mikestump@comcast.net>
24455
24456         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24457
24458 2011-02-18  Jan Hubicka  <jh@suse.cz>
24459
24460         PR middle-end/47788
24461         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24462         to zero when the function is not inlinable at all.
24463
24464 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24465
24466         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24467         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24468         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24469         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24470         * config/pa/t-pa64: Likewise.
24471         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24472
24473 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24474
24475         PR driver/47787
24476         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24477
24478 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24479
24480         PR target/47792
24481         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24482
24483 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
24484
24485         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24486         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24487         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24488         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24489         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24490         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24491         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24492         m32r_load_postinc_p, m32r_store_preinc_predec_p,
24493         m32r_legitimate_address_p): New functions.
24494         * config/m32r/constraints.md (constraint "S"): Don't use
24495         STORE_PREINC_PREDEC_P.
24496         (constraint "U"): Don't use LOAD_POSTINC_P.
24497
24498 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
24499
24500         PR rtl-optimization/46178
24501         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24502         compute ira_hard_regno_cover_class[].
24503
24504 2011-02-18  Richard Guenther  <rguenther@suse.de>
24505
24506         PR lto/47798
24507         * lto-streamer.h (lto_global_var_decls): Declare.
24508         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24509         statics for global var processing.
24510
24511 2011-02-18  Richard Guenther  <rguenther@suse.de>
24512
24513         PR tree-optimization/47737
24514         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24515         edge dominance check.
24516
24517 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24518
24519         PR debug/47780
24520         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24521         avoid invalid rtx sharing.
24522
24523 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
24524
24525         * doc/cpp.texi (Obsolete Features): Add background on the
24526         origin of assertions.
24527
24528 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
24529
24530         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24531         objc_abi == 2.
24532         * config/darwin.c (output_objc_section_asm_op): Added support for
24533         ABI v1 and v2.
24534         (is_objc_metadata): New.
24535         (darwin_objc2_section): New.
24536         (darwin_objc1_section): New.
24537         (machopic_select_section): Added support for ABI v1 and v2.
24538         (darwin_emit_objc_zeroed): New.
24539         (darwin_output_aligned_bss): Detect objc metadata and treat it
24540         appropriately.
24541         (darwin_asm_output_aligned_decl_common): Same.
24542         (darwin_asm_output_aligned_decl_local): Same.
24543         * config/darwin-sections.def: Updated for ABI v1 and v2.
24544         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24545         compiling Objective-C code for the NeXT runtime, default to using
24546         ABI version 0 for 32-bit, and version 2 for 64-bit.
24547
24548 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24549
24550         * common.opt (optimize_fast): New Variable.
24551         * opts.c (default_options_optimization): Use opts->x_optimize_fast
24552         instead of local variable ofast.
24553
24554 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
24555
24556         * doc/invoke.texi (fobjc-abi-version): Documented.
24557         (fobjc-nilcheck): Documented.
24558         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24559         version.
24560
24561 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24562
24563         PR driver/47390
24564         * common.opt (export-dynamic): New Driver option.
24565         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24566
24567 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24568
24569         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24570
24571 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
24572             Jan Hubicka  <jh@suse.cz>
24573
24574         PR debug/47106
24575         PR debug/47402
24576         * cfgexpand.c (account_used_vars_for_block): Remove.
24577         (estimated_stack_frame_size): Use referenced vars.
24578         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24579         that were referenced in the original function.  Test src_fn
24580         rather than cfun.  Drop redundant get_var_ann.
24581         (setup_one_parameter): Drop redundant get_var_ann.
24582         (declare_return_variable): Likewise.
24583         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24584         (copy_arguments_for_versioning): Drop redundant get_var_ann.
24585         * ipa-inline.c (compute_inline_parameters): Do not compute
24586         disregard_inline_limits here.
24587         (compute_inlinable_for_current, pass_inlinable): New.
24588         (pass_inline_parameters): Require PROP_referenced_vars.
24589         * cgraphunit.c (cgraph_process_new_functions): Don't run
24590         compute_inline_parameters explicitly unless function is in SSA form.
24591         (cgraph_analyze_function): Set .disregard_inline_limits.
24592         * tree-sra.c (convert_callers): Compute inliner parameters
24593         only for functions already in SSA form.
24594
24595 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24596
24597         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24598         -mlittle-endian-data.
24599
24600 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24601
24602         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24603         -mno-fpu, not -fpu and -no-fpu.
24604         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24605         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24606
24607 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
24608
24609         PR target/43653
24610         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24611         input reload with PLUS RTX.
24612
24613 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24614
24615         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24616         of InverseVar(MDMX).
24617
24618 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24619
24620         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24621         --m4-340.
24622
24623 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24624
24625         * config/mn10300/mn10300.opt (mno-crt0): New.
24626
24627 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24628
24629         * config/m68k/uclinux.opt (static-libc): New Driver option.
24630
24631 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24632
24633         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24634
24635 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24636
24637         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24638         %{muser-extend-enabled}.
24639
24640 2011-02-16  Richard Guenther  <rguenther@suse.de>
24641
24642         PR tree-optimization/47738
24643         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24644         the TODO from tree_predictive_commoning.
24645
24646 2011-02-15  Jeff Law  <law@redhat.com>
24647
24648         Revert
24649         2011-01-25  Jeff Law  <law@redhat.com>
24650
24651         PR rtl-optimization/37273
24652         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24653         handle them like argument loads from stack slots.  Do not double
24654         count memory for memory constants and argument loads from stack slots.
24655
24656 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24657
24658         PR target/47755
24659         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24660         mode for vector constants.  Remove code that checks for TImode.
24661
24662 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24663
24664         PR debug/47106
24665         PR debug/47402
24666         * cgraph.h (compute_inline_parameters): Return void.
24667         * ipa-inline.c (compute_inline_parameters): Adjust.
24668
24669 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24670
24671         PR debug/47106
24672         PR debug/47402
24673         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24674         rather than decl.
24675         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24676         * ipa-inline.c (compute_inline_parameters): Adjust.
24677
24678 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24679
24680         PR debug/47106
24681         PR debug/47402
24682         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24683         Adjust all users.  Pass FN to...
24684         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24685         fn argument.
24686         * ipa-struct-reorg.c: Adjust.
24687         * tree-dfa.c: Adjust.
24688         * tree-into-ssa.c: Adjust.
24689         * tree-sra.c: Adjust.
24690         * tree-ssa-alias.c: Adjust.
24691         * tree-ssa-live.c: Adjust.
24692         * tree-ssa.c: Adjust.
24693         * tree-ssanames.c: Adjust.
24694         * tree-tailcall.c: Adjust.
24695
24696 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24697
24698         PR debug/47106
24699         PR debug/47402
24700         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24701         Adjust all callers.
24702         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24703         * tree-flow-inline.h: Adjust.
24704         * gimple-pretty-print.c: Adjust.
24705         * tree-into-ssa.c: Adjust.
24706         * tree-ssa.c: Adjust.
24707         * cfgexpand.c: Adjust.
24708
24709 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24710
24711         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24712         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24713         (EXTRA_CONSTRAINT): Delete.
24714         * config/iq2000/constraints.md: New file.
24715         * config/iq2000/iq2000.md: Include it.
24716         (define_insn ""): Delete.
24717         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24718         unsupported constraint letters from patterns.
24719         (call_value, call_value_internal1): Likewise.
24720         (call_value_multiple_internal1): Likewise.
24721
24722 2011-02-15  Nick Clifton  <nickc@redhat.com>
24723
24724         * config/mn10300/mn10300.c: Include tm-constrs.h.
24725         (struct liw_data): New data structure describing an LIW candidate
24726         instruction.
24727         (extract_bundle): Use struct liw_data.  Allow small integer
24728         operands for some instructions.
24729         (check_liw_constraints): Use struct liw_data.  Remove swapped
24730         parameter.  Add comments describing the checks.  Fix bug when
24731         assigning the source of liw1 to the source of liw2.
24732         (liw_candidate): Delete.  Code moved into extract_bundle.
24733         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24734         before swapping.
24735         * config/mn10300/predicates.md (liw_operand): New predicate.
24736         Allows registers and small integer constants.
24737         * config/mn10300/constraints.md (O): New constraint.  Accetps
24738         integers in the range -8 to +7 inclusive.
24739         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24740         for moving a small integer into a register.  Give this alternative
24741         LIW attributes.
24742         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24743         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24744         using the J,K,L and M constraints,
24745         (liw): Remove SI mode on second operands to allow for HI and QI
24746         mode values.
24747         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24748         instruction.
24749
24750 2011-02-15  Richard Guenther  <rguenther@suse.de>
24751
24752         PR tree-optimization/47743
24753         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24754         for a non-type-compatible VN lookup bail out.
24755
24756 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24757
24758         * config/fr30/constraints.md: New file.
24759         * config/fr30/fr30.md: Include it.
24760         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24761         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24762         (EXTRA_CONSTRAINT): Delete.
24763
24764 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24765
24766         * config/frv/constraints.md: New file.
24767         * config/frv/predicates.md: Include it.
24768         * config/frv/frv.c (reg_class_from_letter): Delete.
24769         (frv_option_override): Don't initialize it.
24770         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24771         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24772         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24773         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24774         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24775         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24776         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24777         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24778         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24779         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24780         (REG_CLASS_FROM_CONSTRAINT): Delete.
24781
24782 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24783
24784         PR middle-end/47581
24785         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24786         if frame size is 0 in a leaf function.
24787
24788 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24789
24790         PR pch/14940
24791         * config/alpha/host-osf.c: New file.
24792         * config/alpha/x-osf: New file.
24793         * config.host (alpha*-dec-osf*): Use it.
24794
24795 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24796
24797         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24798         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24799         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24800         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24801         type to const_rtx.
24802         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24803
24804 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24805
24806         * config/stormy16/constraints.md: New file.
24807         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24808         Use satisfies_constraint_Q and satisfies_constraint_R.
24809         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24810         Delete.
24811         (xstormy16_legitiamte_address_p): Declare.
24812         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24813         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24814         (EXTRA_CONSTRAINT): Delete.
24815         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24816         Un-staticize.
24817         (xstormy16_extra_constraint_p): Delete.
24818
24819 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24820
24821         PR tree-optimization/46494
24822         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24823         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24824         (pass_rtl_loop_done): Add TODO_verify_flow.
24825         * fwprop.c (pass_rtl_fwprop): Likewise.
24826         * modulo-sched.c (pass_sms): Likewise.
24827         * tree-ssa-dom.c (pass_dominator): Likewise.
24828         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24829         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24830         (pass_tree_loop_done): Likewise.
24831         * tree-ssa-pre.c (execute_pre): Likewise.
24832         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24833         * tree-ssa-sink.c (pass_sink_code): Likewise.
24834         * tree-vrp.c (pass_vrp): Likewise.
24835
24836 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24837
24838         * config/v850/constraints.md: New file.
24839         * config/v850/v850.md: Include it.
24840         * config/v850/predicates.md (reg_or_0_operand): Use
24841         satisfies_constraint_G.
24842         (special_symbolref_operand): Use satisfies_constraint_K.
24843         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24844         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24845         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24846         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24847         (EXTRA_CONSTRAINT): Delete.
24848         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24849         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24850         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24851
24852 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24853
24854         PR target/47696
24855         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24856         description.
24857
24858 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24859
24860         * config/mcore/constraints.md: New file.
24861         * config/mcore/mcore.md: Include it.
24862         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24863         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24864         (REG_CLASS_FROM_LETTER): Delete.
24865         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24866         insn_const_int_ok_for_constraint.
24867         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24868         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24869         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24870         (EXTRA_CONSTRAINT): Delete.
24871
24872 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24873
24874         PR ada/41929
24875         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24876         (IS_SIGHANDLER): Define.
24877         (sparc64_is_sighandler): New function, split off from
24878         sparc64_fallback_frame_state.
24879         (sparc_is_sighandler): New function, split off from
24880         sparc_fallback_frame_state.
24881         (sparc64_fallback_frame_state): Merge with ...
24882         (sparc_fallback_frame_state): ... this into ...
24883         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24884         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24885         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24886         stack instead of hardcoded offsets.
24887
24888 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24889
24890         PR target/45808
24891         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24892
24893 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24894
24895         * configure: Regenerate.
24896
24897 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24898
24899         PR driver/45731
24900         * gcc.c (asm_options): Correct spec matching --target-help.
24901
24902 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24903
24904         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24905         to gimple call error.
24906
24907 2011-02-12  Mike Stump  <mikestump@comcast.net>
24908
24909         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24910         comments in backslash regions.
24911
24912 2011-02-12  Mike Stump  <mikestump@comcast.net>
24913             Jakub Jelinek  <jakub@redhat.com>
24914             Iain Sandoe  <iains@gcc.gnu.org>
24915
24916         PR target/47324
24917         * dwarf2out.c (output_cfa_loc): When required, apply the
24918         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24919         (output_loc_sequence): Likewise.
24920         (output_loc_operands_raw): Likewise.
24921         (output_loc_sequence_raw): Likewise.
24922         (output_cfa_loc): Likewise.
24923         (output_loc_list): Suppress register number adjustment when
24924         calling output_loc_sequence()
24925         (output_die): Likewise.
24926
24927 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24928
24929         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24930         Remove macros.
24931         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24932         xtensa_memory_move_cost): New functions.
24933         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24934
24935 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24936
24937         PR lto/47225
24938         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24939         in the current directory.
24940         * configure: Rebuilt.
24941
24942 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24943
24944         * config/darwin.c (darwin_override_options): Add a hunk missed
24945         from the commit of r168571.  Trim comment line lengths and
24946         correct indents of the preceding block.
24947
24948 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24949
24950         * gcc.c (driver_handle_option): Concatenate the argument to -F with
24951         the switch.
24952
24953 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24954
24955         * common.opt (nostartfiles): New Driver option.
24956
24957 2011-02-11  Xinliang David Li  <davidxl@google.com>
24958
24959         PR tree-optimization/47707
24960         * tree-chrec.c (convert_affine_scev): Keep type precision.
24961
24962 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
24963
24964         PR tree-optimization/47420
24965         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24966
24967 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
24968
24969         PR rtl-optimization/47614
24970         * rtl.h (check_for_inc_dec): Declare.
24971         * dse.c (check_for_inc_dec): Externalize...
24972         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24973         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24974
24975 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24976
24977         PR driver/47678
24978         * gcc.c (main): Do not compile inputs if there were errors in
24979         option handling.
24980         * opts-common.c (read_cmdline_option): Check for wrong language
24981         after other error checks.
24982
24983 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
24984
24985         * cgraph.c: Fix comment typos.
24986         * cgraph.h: Likewise.
24987         * cgraphunit.c: Likewise.
24988         * ipa-cp.c: Likewise.
24989         * ipa-inline.c: Likewise.
24990         * ipa-prop.c: Likewise.
24991         * ipa-pure-const.c: Likewise.
24992         * ipa-ref.c: Likewise.
24993         * ipa-reference.c: Likewise.
24994
24995 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24996
24997         PR debug/47684
24998         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24999
25000 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25001
25002         PR testsuite/47400
25003         * doc/sourcebuild.texi (Require Support): Document
25004         dg-require-ascii-locale.
25005
25006 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
25007
25008         * doc/lto.texi (Write summary): Fix missing parentheses.
25009
25010 2011-02-10  DJ Delorie  <dj@redhat.com>
25011
25012         * config/m32c/m32c.c (m32c_option_override): Disable
25013         -fcombine-stack-adjustments until flag value tracking and compare
25014         optimization can be rewritten.
25015
25016 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
25017
25018         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25019         PROCESSOR_POWER7.
25020         (PROCESSOR_DEFAULT64): Likewise.
25021
25022 2011-02-10  Richard Henderson  <rth@redhat.com>
25023
25024         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25025         change from 2011-02-03.
25026         * config/rx/rx.c (flags_from_code): Likewise.
25027         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25028         is valid, n/pz otherwise.
25029         (rx_select_cc_mode): Return CCmode if Y is not zero.
25030
25031 2011-02-10  Richard Guenther  <rguenther@suse.de>
25032
25033         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25034
25035 2011-02-10  Richard Guenther  <rguenther@suse.de>
25036
25037         PR tree-optimization/47677
25038         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25039
25040 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
25041
25042         PR target/47665
25043         * combine.c (make_compound_operation): Only change shifts into
25044         multiplication for SCALAR_INT_MODE_P.
25045
25046 2011-02-10  Jie Zhang  <jie@codesourcery.com>
25047
25048         PR testsuite/47622
25049         Revert
25050         2011-02-05  Jie Zhang  <jie@codesourcery.com>
25051         PR debug/42631
25052         * web.c (entry_register): Don't clobber the number of the
25053         first uninitialized reference in used[].
25054
25055 2011-02-09  Richard Guenther  <rguenther@suse.de>
25056
25057         PR tree-optimization/47664
25058         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25059         all edges again.
25060
25061 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
25062
25063         PR target/46481
25064         PR target/47032
25065         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25066         PROCESSOR_POWER7.
25067         (PROCESSOR_DEFAULT64): Same.
25068         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25069
25070 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25071
25072         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25073
25074 2011-02-09  Martin Jambor  <mjambor@suse.cz>
25075
25076         PR middle-end/45505
25077         * tree-sra.c (struct access): New flags grp_scalar_read and
25078         grp_scalar_write.  Changed description of assignment read and write
25079         flags.
25080         (dump_access): Dump new flags, reorder all of them.
25081         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25082         to detect multiple scalar reads.
25083         (analyze_access_subtree): Use the new scalar read write flags instead
25084         of the old flags.  Adjusted comments.
25085
25086 2011-02-08  DJ Delorie  <dj@redhat.com>
25087
25088         PR target/47548
25089         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25090         patterns.
25091
25092 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25093
25094         * config/m68k/uclinux.opt: New.
25095         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25096
25097 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25098
25099         * config/cris/elf.opt (sim): New Driver option.
25100
25101 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25102
25103         * config/xtensa/elf.opt: New.
25104         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25105
25106 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25107
25108         * config/vax/elf.opt: New.
25109         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25110
25111 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25112
25113         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25114
25115 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25116
25117         * config/gnu-user.opt: New.
25118         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25119         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25120         *-*-uclinux*): Use gnu-user.opt.
25121
25122 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
25123
25124         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25125         * config/i386/gnu.h (CPP_SPEC): Likewise.
25126
25127 2011-02-08  Ian Lance Taylor  <iant@google.com>
25128
25129         * common.opt (fcx-limited-range): Add SetByCombined flag.
25130         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25131         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25132         (fassociative-math, freciprocal-math): Likewise.
25133         (funsafe-math-optimizations): Likewise.
25134         * opth-gen.awk: Handle SetByCombined.
25135         * optc-gen.awk: Likewise.
25136         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25137         (set_unsafe_math_optimizations_flags): Likewise.
25138         * doc/options.texi (Option properties): Document SetByCombined.
25139
25140 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25141
25142         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25143         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25144         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25145         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25146         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25147
25148 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
25149
25150         PR tree-optimization/46834
25151         PR tree-optimization/46994
25152         PR tree-optimization/46995
25153         * graphite-sese-to-poly.c (used_outside_reduction): New.
25154         (detect_commutative_reduction): Call used_outside_reduction.
25155         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25156         translate_scalar_reduction_to_array only when at least one
25157         loop-phi/close-phi tuple has been detected.
25158
25159 2011-02-08  Richard Guenther  <rguenther@suse.de>
25160
25161         PR middle-end/47639
25162         * tree-vect-generic.c (expand_vector_operations_1): Update
25163         stmts here ...
25164         (expand_vector_operations): ... not here.  Cleanup EH info
25165         and the CFG if required.
25166
25167 2011-02-08  Richard Guenther  <rguenther@suse.de>
25168
25169         PR tree-optimization/47641
25170         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25171         require type compatibility.
25172
25173 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25174
25175         * gimple-low.c (lower_function_body): Don't remove the location of
25176         the return statement here.
25177         (lower_gimple_return): Do it here instead but only if the return
25178         statement is actually used twice.
25179
25180 2011-02-08  Richard Guenther  <rguenther@suse.de>
25181
25182         PR tree-optimization/47632
25183         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25184         unused up_to_stmt parameter, return whether cfg-cleanup is
25185         necessary, remove EH info properly.
25186         (forward_propagate_into_gimple_cond): Adjust caller.
25187         (forward_propagate_into_cond): Likewise.
25188         (forward_propagate_comparison): Likewise.
25189         (tree_ssa_forward_propagate_single_use_vars): Make
25190         forward_propagate_comparison case similar to the two others.
25191
25192 2011-02-08  Nick Clifton  <nickc@redhat.com>
25193
25194         * config/mn10300/mn10300.opt (mliw): New command line option.
25195         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25196         (liw_bundling): New automaton.
25197         (liw): New attribute.
25198         (liw_op): New attribute.
25199         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25200         (movsi_internal): Add LIW attributes.
25201         (andsi3): Likewise.
25202         (iorsi3): Likewise.
25203         (xorsi3): Likewise.
25204         (addsi3): Separate register and immediate alternatives.
25205         Add LIW attributes.
25206         (subsi3): Likewise.
25207         (cmpsi): Likewise.
25208         (aslsi3): Likewise.
25209         (lshrsi3): Likewise.
25210         (ashrsi3): Likewise.
25211         (liw): New pattern.
25212         * config/mn10300/mn10300.c (liw_op_names): New
25213         (mn10300_print_operand): Handle 'W' operand descriptor.
25214         (extract_bundle): New function.
25215         (check_liw_constraints): New function.
25216         (liw_candidate): New function.
25217         (mn10300_bundle_liw): New function.
25218         (mn10300_reorg): New function.
25219         (TARGET_MACHINE_DEPENDENT_REORG): Define.
25220         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25221         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25222         __LIW__ or __NO_LIW__.
25223         * doc/invoke.texi: Describe the -mliw command line option.
25224
25225 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25226
25227         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25228         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25229         pthread_mutex_unlock): Remove.
25230         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25231         * config/pa/t-pa64: Likewise.
25232         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25233         shared libc if not linking against libpthread.
25234         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25235
25236 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
25237
25238         PR target/47558
25239         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25240         on 10.6 and later to ensure that we always use the unwinder from
25241         the system.  Only add -no_compact_unwind when tarteting darwin
25242         10.6 or later.
25243
25244 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
25245
25246         PR target/46997
25247         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25248         (vec_interleave_lowv2sf): Ditto.
25249         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25250         (vec_extract_oddv2sf): Ditto.
25251
25252 2011-02-07  Mike Stump  <mikestump@comcast.net>
25253
25254         PR target/42333
25255         Add __ieee_divdc3 entry point.
25256         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25257         entry point.
25258         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25259         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25260         * config/darwin.c (darwin_rename_builtins): Add.
25261         * config/darwin-protos.h (darwin_rename_builtins): Add.
25262
25263 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
25264
25265         PR target/47636
25266         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25267         for the condition.
25268
25269 2011-02-07  Mike Stump  <mikestump@comcast.net>
25270
25271         * config/darwin.opt (mmacosx-version-min): Update default OS version.
25272
25273 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
25274
25275         PR target/47534
25276         * config/avr/libgcc.S (exit): Move .endfunc
25277
25278 2011-02-07  Richard Guenther  <rguenther@suse.de>
25279
25280         PR tree-optimization/47615
25281         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25282         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25283         (run_scc_vn): Initialize it.
25284         (visit_reference_op_load): Use it.
25285         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25286
25287 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25288
25289         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25290         DImode trapping arithmetic libfuncs.
25291
25292 2011-02-07  Richard Guenther  <rguenther@suse.de>
25293
25294         PR tree-optimization/47621
25295         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25296         two duplicates ...
25297         (execute_update_addresses_taken): ... here.  Make it more
25298         conservative in what we accept.
25299
25300 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25301
25302         * config/sparc/freebsd.h (ASM_SPEC): Define.
25303         * config/sparc/vxworks.h (ASM_SPEC): Define.
25304
25305 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25306
25307         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25308
25309 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
25310
25311         * doc/invoke.texi: Remove reference to compiler internals from
25312         user documentation.
25313
25314         * reg-notes.def: Remove REG_VALUE_PROFILE.
25315         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25316
25317 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
25318
25319         PR middle-end/47610
25320         * varasm.c (default_section_type_flags): If decl is NULL,
25321         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25322
25323 2011-02-05  Jie Zhang  <jie@codesourcery.com>
25324
25325         PR debug/42631
25326         * web.c (entry_register): Don't clobber the number of the
25327         first uninitialized reference in used[].
25328
25329 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
25330
25331         PR tree-optimization/46194
25332         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25333         (build_classic_dist_vector_1): Do not represent classic distance
25334         vectors when the access functions are variating in different loops.
25335
25336 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25337
25338         * config/mips/iris6.opt: New.
25339         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25340
25341 2011-02-04  Richard Henderson  <rth@redhat.com>
25342             Steve Ellcey  <sje@cup.hp.com>
25343
25344         PR target/46997
25345         * config/ia64/predicates.md (mux1_brcst_element): New.
25346         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25347         * config/ia64/ia64.c (ia64_unpack_assemble): New.
25348         (ia64_unpack_sign): New.
25349         (ia64_expand_unpack): Rewrite using new routines.
25350         (ia64_expand_widen_sum): Ditto.
25351         (ia64_expand_dot_prod_v8qi): Ditto.
25352         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25353         routines, add endian check.
25354         (pmpy2_even): Rename from pmpy2_r, add endian check.
25355         (pmpy2_odd): Rename from pmpy2_l, add endian check.
25356         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25357         (vec_widen_smult_hi_v4hi): Ditto.
25358         (vec_widen_umult_lo_v4hi): Ditto.
25359         (vec_widen_umult_hi_v4hi): Ditto.
25360         (mulv2si3): Change endian checks.
25361         (sdot_prodv4hi): Rewrite with new calls.
25362         (udot_prodv4hi): New.
25363         (vec_pack_ssat_v4hi): Add endian check.
25364         (vec_pack_usat_v4hi): Ditto.
25365         (vec_pack_ssat_v2si): Ditto.
25366         (max1_even): Rename from max1_r, add endian check.
25367         (max1_odd): Rename from max1_l, add endian check.
25368         (*mux1_rev): Format change.
25369         (*mux1_mix): Ditto.
25370         (*mux1_shuf): Ditto.
25371         (*mux1_alt): Ditto.
25372         (*mux1_brcst_v8qi): Use new predicate.
25373         (vec_extract_evenv8qi): Remove endian check.
25374         (vec_extract_oddv8qi): Ditto.
25375         (vec_interleave_lowv4hi): Format change.
25376         (vec_interleave_highv4hi): Ditto.
25377         (mix2_even): Rename from mix2_r, add endian check.
25378         (mix2_odd): Rename from mux2_l, add endian check.
25379         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25380         (vec_extract_evenodd_helper): Format change.
25381         (vec_extract_evenv4hi): Remove endian check.
25382         (vec_extract_oddv4hi): Remove endian check.
25383         (vec_interleave_lowv2si): Format change.
25384         (vec_interleave_highv2si): Format change.
25385         (vec_initv2si): Remove endian check.
25386         (vecinit_v2si): Add endian check.
25387         (reduc_splus_v2sf): Add endian check.
25388         (reduc_smax_v2sf): Ditto.
25389         (reduc_smin_v2sf): Ditto.
25390         (vec_initv2sf): Remove endian check.
25391         (fpack): Add endian check.
25392         (fswap): Add endian check.
25393         (vec_interleave_highv2sf): Add endian check.
25394         (vec_interleave_lowv2sf): Add endian check.
25395         (fmix_lr): Add endian check.
25396         (vec_setv2sf): Format change.
25397         (*vec_extractv2sf_0_be): Use shift to extract operand.
25398         (*vec_extractv2sf_1_be): New.
25399         (vec_pack_trunc_v4hi): Add endian check.
25400         (vec_pack_trunc_v2si): Format change.
25401
25402 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
25403
25404         PR inline-asm/23200
25405         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
25406         do bb, locus and block comparison and disallow loads if it is not set.
25407         (stmt_is_replaceable_p): New function.
25408         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25409         callers.
25410         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25411         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25412         SSA_NAME_DEF_STMT.
25413         * tree-flow.h (stmt_is_replaceable_p): New prototype.
25414
25415 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25416
25417         * config/rs6000/xilinx.opt: New.
25418         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25419
25420 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25421
25422         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25423
25424 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
25425
25426         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25427         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25428         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25429         secondary_reload_info, xtensa_secondary_reload): Remove.
25430         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25431         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25432         (xtensa_preferred_reload_class): Make static. Change return and
25433         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25434         Use CONST_DOUBLE_P predicate.
25435         (xtensa_preferred_output_reload_class): New function.
25436         (xtensa_secondary_reload): Make static.
25437
25438 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
25439
25440         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25441         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25442         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25443
25444 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25445
25446         PR middle-end/31490
25447         * output.h (SECTION_RELRO): Define.
25448         (SECTION_MACH_DEP): Adjust.
25449         (get_variable_section): New prototype.
25450         * varpool.c (varpool_finalize_named_section_flags): New function.
25451         (varpool_assemble_pending_decls): Call it.
25452         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25453         * cgraphunit.c (cgraph_output_in_order): Call
25454         varpool_finalize_named_section_flags.
25455         * varasm.c (get_section): Allow section flags conflicts between
25456         relro and read-only sections if the section hasn't been declared yet.
25457         Set SECTION_OVERRIDE after diagnosing section type conflict.
25458         (get_variable_section): No longer static.
25459         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25460         readonly sections that need relocations.
25461         (decl_readonly_section_1): New function.
25462         (decl_readonly_section): Use it.
25463
25464         Revert:
25465         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
25466                     Steve Ellcey  <sje@cup.hp.com>
25467
25468         PR middle-end/31490
25469         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25470         if section attribute used.
25471
25472 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25473
25474         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25475         * config/darwin.c (SECTION_NO_ANCHOR): Define.
25476         (darwin_init_sections): Remove assertion.
25477
25478 2011-02-03  Nick Clifton  <nickc@redhat.com>
25479
25480         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25481         lt and ge.
25482         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25483         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25484         instead of "n" and "pz".
25485         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25486         CC_FLAG_S.
25487
25488 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25489
25490         PR target/47312
25491         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25492         fma, expand FMA_EXPR as fma{,f,l} call.
25493
25494         PR lto/47274
25495         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25496         copy them into a unsigned char variable and pass address of it to
25497         lto_output_data_stream.
25498
25499         PR target/47564
25500         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25501         around backend_init_target and lang_dependent_init_target calls.
25502         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25503         (verify_cgraph_node): Don't call set_cfun here.  Use
25504         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25505         Set error_found for incorrectly represented calls to thunks.
25506
25507 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25508
25509         PR debug/43092
25510         PR rtl-optimization/43494
25511         * rtl.h (for_each_inc_dec_fn): New type.
25512         (for_each_inc_dec): Declare.
25513         * rtlanal.c (struct for_each_inc_dec_ops): New type.
25514         (for_each_inc_dec_find_inc_dec): New fn.
25515         (for_each_inc_dec_find_mem): New fn.
25516         (for_each_inc_dec): New fn.
25517         * dse.c (struct insn_size): Remove.
25518         (replace_inc_dec, replace_inc_dec_mem): Remove.
25519         (emit_inc_dec_insn_before): New fn.
25520         (check_for_inc_dec): Use it, along with for_each_inc_dec.
25521         (canon_address): Pass mem modes to cselib_lookup.
25522         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
25523         (cselib_lookup_from_insn): Likewise.
25524         (cselib_subst_to_values): Likewise.
25525         * cselib.c (find_slot_memmode): New var.
25526         (cselib_find_slot): New fn.  Use it instead of
25527         htab_find_slot_with_hash everywhere.
25528         (entry_and_rtx_equal_p): Use find_slot_memmode.
25529         (autoinc_split): New fn.
25530         (rtx_equal_for_cselib_p): Rename and implement in terms of...
25531         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
25532         Deal with autoinc.  Special-case recursion into MEMs.
25533         (cselib_hash_rtx): Likewise.
25534         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
25535         address and MEM modes.
25536         (cselib_subst_to_values): Add memmode, pass it on.
25537         Deal with autoinc.
25538         (cselib_lookup): Add memmode argument, pass it on.
25539         (cselib_lookup_from_insn): Add memmode.
25540         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25541         (struct cselib_record_autoinc_data): New.
25542         (cselib_record_autoinc_cb): New fn.
25543         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
25544         mode to cselib_lookup.  Reset autoinced REGs here instead of...
25545         (cselib_process_insn): ... here.
25546         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25547         to cselib_lookup.
25548         (add_uses): Likewise, also to cselib_subst_to_values.
25549         (add_stores): Likewise.
25550         * sched-deps.c (add_insn_mem_dependence): Pass mode to
25551         cselib_subst_to_values.
25552         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
25553         * gcse.c (do_local_cprop): Adjusted.
25554         * postreload.c (reload_cse_simplify_set): Adjusted.
25555         (reload_cse_simplify_operands): Adjusted.
25556         * sel-sched-dump (debug_mem_addr_value): Pass mode.
25557
25558 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25559
25560         PR tree-optimization/45122
25561         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25562         unsafe assumptions when there's more than one loop exit.
25563
25564 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25565
25566         PR target/47272
25567         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25568         Document using vector double with the load/store builtins, and
25569         that the load/store builtins always use Altivec instructions.
25570
25571         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25572         to use altivec memory instructions, even on VSX.
25573         (vector_altivec_store_<mode>): Ditto.
25574
25575         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25576         function.
25577
25578         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25579         V2DF, V2DI support to load/store overloaded builtins.
25580
25581         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25582         altivec load/store builtins for V2DF/V2DI types.
25583
25584         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25585         set avoid indexed addresses on power6 if -maltivec.
25586         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25587         vector_altivec_load/vector_altivec_store builtins.
25588         (altivec_expand_st_builtin): Ditto.
25589         (altivec_expand_builtin): Add VSX memory builtins.
25590         (rs6000_init_builtins): Add V2DI types to internal types.
25591         (altivec_init_builtins): Add support for V2DF/V2DI altivec
25592         load/store builtins.
25593         (rs6000_address_for_altivec): Insure memory address is appropriate
25594         for Altivec.
25595
25596         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25597         vec_vsx_ld and vec_vsx_st.
25598         (vsx_store_<mode>): Ditto.
25599
25600         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25601         variables to hold long long types for VSX vector memory builtins.
25602         (RS6000_BTI_unsigned_long_long): Ditto.
25603         (long_long_integer_type_internal_node): Ditti.
25604         (long_long_unsigned_type_internal_node): Ditti.
25605
25606         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25607         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25608         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25609
25610         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25611         short cuts.
25612         (vec_vsx_st): Ditto.
25613
25614 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25615
25616         * config/pa/pa-hpux10.opt: New.
25617         * config/hpux11.opt (pthread): New Driver option.
25618         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25619         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25620
25621 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25622
25623         * config/ia64/vms.opt: New.
25624         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25625
25626 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25627
25628         PR target/47580
25629         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25630         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25631         generator functions.
25632         (vsx_floatuns<VSi><mode>2): Ditto.
25633         (vsx_fix_trunc<mode><VSi>2): Ditto.
25634         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25635
25636 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25637
25638         * config/i386/djgpp.opt (posix): New Driver option.
25639
25640 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25641
25642         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25643         Move to the unsupported targets list.
25644
25645 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25646
25647         PR rtl-optimization/47525
25648         * df-scan.c: Update copyright years.
25649         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25650         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25651
25652 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25653
25654         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25655         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25656         (ASM_OUTPUT_ASCII): Remove.
25657         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25658
25659 2011-02-02  Jeff Law  <law@redhat.com>
25660
25661         PR middle-end/47543
25662         * reload.c (find_reloads_address): Handle reg+d address where both
25663         components are invalid by reloading the entire address.
25664
25665 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25666             Richard Guenther  <rguenther@suse.de>
25667
25668         PR tree-optimization/40979
25669         PR bootstrap/47044
25670         * passes.c (init_optimization_passes): After LIM call copy_prop
25671         and DCE to clean up.
25672         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25673
25674 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25675
25676         PR tree-optimization/47576
25677         PR tree-optimization/47555
25678         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25679         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25680         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25681         * tree-scalar-evolution.c (follow_ssa_edge): Use
25682         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25683
25684 2011-02-02  Richard Guenther  <rguenther@suse.de>
25685
25686         PR tree-optimization/47566
25687         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25688
25689 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25690
25691         PR debug/47106
25692         PR debug/47402
25693         * tree-inline.c (declare_return_variable): Remove unused caller
25694         variable.
25695
25696         PR debug/47106
25697         PR debug/47402
25698         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25699         * cfgexpand.c (account_used_vars_for_block): Use them.
25700         * tree-nrv.c (tree_nrv): Likewise.
25701         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25702         (dump_scope_block): Likewise.
25703         (remove_unused_locals): Likewise.
25704
25705         PR debug/47106
25706         PR debug/47402
25707         * tree-inline.c (declare_return_variable): Add result decl to
25708         local decls only once.
25709         * gimple-low.c (record_vars_into): Mark newly-created variables
25710         as referenced.
25711
25712 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25713
25714         PR debug/47498
25715         PR debug/47501
25716         PR debug/45136
25717         PR debug/45130
25718         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25719         debug insns.
25720         (no_real_insns_p, schedule_block, set_priorities): Drop special
25721         treatment of boundary debug insns.
25722         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25723         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25724         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25725         (BOUNDARY_DEBUG_INSN_P): Likewise.
25726         (SCHEDULE_DEBUG_INSN_P): Likewise.
25727         * sched-rgn.c (init_ready_list): Drop special treatment of
25728         boundary debug insns.
25729         * final.c (rest_of_clean_state): Clear notes' BB.
25730
25731 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25732
25733         * config/openbsd.opt (assert=): New Driver option.
25734
25735 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25736
25737         * config/i386/nto.opt: New.
25738         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25739
25740 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25741
25742         * config/i386/netware.opt: New.
25743         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25744
25745 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25746
25747         * config/interix.opt (posix): New Driver option.
25748
25749 2011-02-01  DJ Delorie  <dj@redhat.com>
25750
25751         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25752
25753         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25754         class for A0/A1.
25755
25756 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25757
25758         PR tree-optimization/47561
25759         * toplev.c (process_options): Print the Graphite flags.  Add
25760         flag_loop_flatten to the list of options requiring Graphite.
25761
25762 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25763
25764         * config/i386/cygming.opt (posix): New Driver option.
25765
25766 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25767
25768         * config/arm/vxworks.opt: New.
25769         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25770
25771 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25772
25773         * config/alpha/elf.opt: New.
25774         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25775         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25776
25777 2011-02-01  Richard Guenther  <rguenther@suse.de>
25778
25779         PR tree-optimization/47559
25780         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25781         store-motion on references that can throw.
25782
25783 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25784
25785         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25786         * tree-pass.h (TDF_CSELIB): New macro.
25787         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25788         cselib_lookup): Check for it rather than for TDF_DETAILS.
25789
25790 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25791
25792         PR driver/47547
25793         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25794         is HOST_BIT_BUCKET.
25795
25796         * opts.c (finish_options): Don't add x_aux_base_name if it is
25797         HOST_BIT_BUCKET.
25798
25799 2011-02-01  Richard Guenther  <rguenther@suse.de>
25800
25801         PR tree-optimization/47555
25802         Revert
25803         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25804
25805         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25806
25807 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25808
25809         PR gcc/46692
25810         * config/lm32/t-lm32: Add multilib for all CPU options.
25811
25812 2011-02-01  Richard Guenther  <rguenther@suse.de>
25813
25814         PR tree-optimization/47541
25815         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25816         sure to have a field at offset zero.
25817
25818 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25819
25820         * config/arc/arc.opt (EB, EL): New Driver options.
25821
25822 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25823
25824         * config/alpha/osf5.opt: New.
25825         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25826
25827 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25828
25829         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25830
25831 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25832
25833         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25834         -floop-interchange.
25835         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25836         is an alias of -floop-interchange and that it requires the
25837         Graphite infrastructure.
25838         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25839         flag_loop_interchange based on the value of flag_tree_loop_linear.
25840
25841 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25842             Richard Guenther  <rguenther@suse.de>
25843
25844         PR tree-optimization/47538
25845         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25846         type instead of r1type, except for comparisons.  For right
25847         shifts and comparisons punt if there are mismatches in
25848         sizetype vs. non-sizetype types.
25849
25850 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25851
25852         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25853         avx_runtime.
25854
25855 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25856
25857         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25858         version number.
25859         * configure: Regenerate.
25860
25861 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25862
25863         * configure.ac (gcc_cv_ld_static_option): Define.
25864         (gcc_cv_ld_dynamic_option): Define.
25865         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25866         instead.
25867         (HAVE_LD_STATIC_DYNAMIC): Update message.
25868         (LD_STATIC_OPTION): Define.
25869         (LD_DYNAMIC_OPTION): Define.
25870         * configure: Regenerate.
25871         * config.in: Regenerate.
25872         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25873         HAVE_LD_STATIC_DYNAMIC]: Use them.
25874
25875 2011-01-31  Nick Clifton  <nickc@redhat.com>
25876
25877         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25878         registers inside interrupt handlers if the handler is not a leaf
25879         function.
25880
25881 2011-01-31  Nick Clifton  <nickc@redhat.com>
25882
25883         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25884         reg_renumber returning an INVALID_REGNUM.
25885
25886 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25887
25888         PR libgcj/44341
25889         * doc/install.texi: Document host options discarded when cross
25890         configuring target libraries.
25891
25892 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25893
25894         Reverted:
25895         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25896         PR debug/45136
25897         PR debug/45130
25898         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25899         debug insns.
25900         (no_real_insns_p, schedule_block, set_priorities): Drop special
25901         treatment of boundary debug insns.
25902         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25903         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25904         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25905         (BOUNDARY_DEBUG_INSN_P): Likewise.
25906         (SCHEDULE_DEBUG_INSN_P): Likewise.
25907         * sched-rgn.c (init_ready_list): Drop special treatment of
25908         boundary debug insns.
25909         * final.c (rest_of_clean-state): Clear notes' BB.
25910
25911 2011-01-31  Alan Modra  <amodra@gmail.com>
25912
25913         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25914         toc relative expressions as we do in print_operand_address.
25915
25916 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25917
25918         * doc/extend.texi: Follow spelling conventions.
25919         * doc/invoke.texi: Fix a typo.
25920
25921 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25922
25923         * config/hpux11.opt: New.
25924         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25925         ia64*-*-hpux*): Use hpux11.opt.
25926
25927 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25928
25929         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25930         to tmake_file.
25931
25932 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25933
25934         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25935         support sites.
25936
25937 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25938
25939         * doc/install.texi (Binaries): Remove outdated reference for
25940         Motorola 68HC11/68HC12 downloads.
25941
25942 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25943
25944         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25945         Drepper's paper.
25946
25947 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
25948
25949         PR bootstrap/47147
25950         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25951         used by NetBSD.
25952
25953 2011-01-28  Ahmad Sharif  <asharif@google.com>
25954
25955         * value-prof.c (check_counter): Corrected error message.
25956
25957 2011-01-29  Jie Zhang  <jie@codesourcery.com>
25958
25959         * config/arm/arm.c (arm_legitimize_reload_address): New.
25960         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25961         arm_legitimize_reload_address.
25962         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25963
25964 2011-01-28  Ian Lance Taylor  <iant@google.com>
25965
25966         * godump.c (go_define): Ignore macros whose definitions include
25967         two adjacent operands.
25968
25969 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
25970
25971         PR target/42894
25972         * varasm.c (force_const_mem): Store copy of x in desc->constant
25973         instead of x itself.
25974         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25975         itself into REG_EQUAL note.
25976
25977 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
25978
25979         * config/freebsd.opt (posix, rdynamic): New Driver options.
25980
25981 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25982
25983         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25984         -Bstatic/-Bdynamic.
25985         * configure: Regenerate.
25986
25987 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25988
25989         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25990         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25991
25992 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25993
25994         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25995         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25996         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25997         (s390_preferred_reload_class): Make static. Change return and
25998         'rclass' argument type to reg_class_t.
25999
26000 2011-01-27  Jan Hubicka  <jh@suse.cz>
26001
26002         PR middle-end/46949
26003         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26004         (process_function_and_variable_attributes): Check defined weakrefs.
26005
26006 2011-01-27  Martin Jambor  <mjambor@suse.cz>
26007
26008         PR tree-optimization/47228
26009         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26010         build_ref_for_offset.
26011
26012 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26013
26014         * config/spu/spu-elf.h (ASM_SPEC): Remove.
26015
26016 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
26017
26018         PR rtl-optimization/46856
26019         * postreload.c (reload_combine_recognize_const_pattern): Do not
26020         separate cc0 setter and user on cc0 targets.
26021
26022 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
26023
26024         PR c/43082
26025         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26026         passed a VOID_TYPE expression, immediately emit an error and
26027         return error_mark_node.
26028
26029 2011-01-26  Jeff Law  <law@redhat.com>
26030
26031         PR rtl-optimization/47464
26032         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26033         rather than may_trap_p as needed.
26034
26035 2011-01-26  DJ Delorie  <dj@redhat.com>
26036
26037         PR rtl-optimization/46878
26038         * combine.c (insn_a_feeds_b): Check for the implicit cc0
26039         setter/user dependency as well.
26040
26041 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26042
26043         PR rtl-optimization/44469
26044         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26045         after removing trivially dead basic blocks.
26046
26047 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26048
26049         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26050         * config/frv/frv.h (LINK_SPEC): Likewise.
26051         * config/i386/netware.h (LINK_SPEC): Likewise.
26052         * config/m68k/linux.h (ASM_SPEC): Likewise.
26053         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26054         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26055         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26056         * config/sparc/linux.h (ASM_SPEC): Likewise.
26057         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26058         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26059
26060 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26061
26062         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26063         * config/frv/frv.h (ASM_SPEC): Likewise.
26064         * config/m68k/linux.h (ASM_SPEC): Likewise.
26065         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26066         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26067         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26068         * config/sparc/linux.h (ASM_SPEC): Likewise.
26069         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26070         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26071
26072 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26073
26074         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26075         * config/frv/frv.h (LINK_SPEC): Likewise.
26076         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26077
26078 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26079
26080         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26081         * config/frv/frv.h (ASM_SPEC): Likewise.
26082         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26083         * config/m68k/linux.h (ASM_SPEC): Likewise.
26084         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26085         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26086         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26087         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26088         * config/sparc/linux.h (ASM_SPEC): Likewise.
26089         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26090         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26091         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26092
26093 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
26094
26095         PR target/46997
26096         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26097         (*mux2): Ditto.
26098         (vec_extract_evenodd_help): Ditto.
26099         (vec_extract_evenv4hi): Ditto.
26100         (vec_extract_oddv4hi): Ditto.
26101         (vec_interleave_lowv2si): Ditto.
26102         (vec_interleave_highv2si): Ditto.
26103         (vec_extract_evenv2si): Ditto.
26104         (vec_extract_oddv2si: Ditto.
26105         (vec_pack_trunc_v2si): Ditto.
26106
26107 2011-01-22  Jan Hubicka  <jh@suse.cz>
26108
26109         PR target/47237
26110         * cgraph.h (cgraph_local_info): New field can_change_signature.
26111         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26112         signature can change.
26113         (ipcp_estimate_growth): Call sequence simplify only if calle signature
26114         can change.
26115         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26116         (cgraph_function_versioning): We can not change signature of functions
26117         that don't allow that.
26118         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26119         (lto_input_node): Likewise.
26120         * ipa-inline.c (compute_inline_parameters): Compute
26121         local.can_change_signature.
26122         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26123         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26124         functions that can not change signature.
26125         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26126         init_cumulative_args): Do not use local calling conventions
26127         for functions that can not change signature.
26128
26129 2011-01-22  Jan Hubicka  <jh@suse.cz>
26130
26131         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26132
26133 2011-01-26  Richard Guenther  <rguenther@suse.de>
26134
26135         PR tree-optimization/47190
26136         * cgraphunit.c (process_common_attributes): New function.
26137         (process_function_and_variable_attributes): Use it.
26138
26139 2011-01-26  Richard Guenther  <rguenther@suse.de>
26140
26141         PR lto/47423
26142         * cgraphbuild.c (record_eh_tables): Record reference to personality
26143         function.
26144
26145 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
26146
26147         PR debug/45454
26148         * sel-sched.c (moveup_expr): Don't let debug insns prevent
26149         non-debug insns from moving up.
26150
26151 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26152
26153         PR target/40125
26154         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26155         t-dlldir{,-x} fragment for build and add it to tmake_file.
26156         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26157         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26158         * config/i386/t-dlldir: New file.
26159         (SHLIB_DLLDIR): Define.
26160         * config/i386/t-dlldir-x: New file.
26161         (SHLIB_DLLDIR): Define.
26162         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26163         (SHLIB_INSTALL): Use it.
26164
26165 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
26166
26167         PR target/47246
26168         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26169         lower bound of the allowed Thumb-2 coprocessor load/store
26170         index range to -256. Add explaining comment.
26171
26172 2011-01-25  Ian Lance Taylor  <iant@google.com>
26173
26174         * godump.c (go_define): Improve lexing of macro expansion to only
26175         accept expressions which match Go spec.
26176
26177 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26178
26179         PR c++/43601
26180         * tree.c (handle_dll_attribute): Handle it.
26181         * doc/extend.texi (@item dllexport): Mention it.
26182         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26183
26184 2011-01-25  Ian Lance Taylor  <iant@google.com>
26185
26186         PR tree-optimization/26854
26187         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26188         (decl_jump_unsafe): Move higher in file, with no other change.
26189         (bind): Set has_jump_unsafe_decl if appropriate.
26190         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26191         (check_earlier_gotos): Likewise.
26192         (c_check_switch_jump_warnings): Likewise.
26193
26194 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
26195
26196         * doc/invoke.texi (Warning Options): Add missing hyphen.
26197         (-fprofile-dir): Minor grammatical fixes.
26198         (-fbranch-probabilities): Likewise.
26199
26200 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
26201
26202         PR debug/45136
26203         PR debug/45130
26204         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26205         debug insns.
26206         (no_real_insns_p, schedule_block, set_priorities): Drop special
26207         treatment of boundary debug insns.
26208         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26209         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26210         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26211         (BOUNDARY_DEBUG_INSN_P): Likewise.
26212         (SCHEDULE_DEBUG_INSN_P): Likewise.
26213         * sched-rgn.c (init_ready_list): Drop special treatment of
26214         boundary debug insns.
26215         * final.c (rest_of_clean-state): Clear notes' BB.
26216
26217 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26218
26219         * Makefile.in (LAMBDA_H): Removed.
26220         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26221         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26222         lambda-trans.o, and tree-loop-linear.o.
26223         (lto-symtab.o): Remove dependence on LAMBDA_H.
26224         (tree-loop-linear.o): Remove rule.
26225         (lambda-mat.o): Same.
26226         (lambda-trans.o): Same.
26227         (lambda-code.o): Same.
26228         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26229         (tree-vect-slp.o): Same.
26230         * hwint.h (gcd): Moved here.
26231         (least_common_multiple): Same.
26232         * lambda-code.c: Removed.
26233         * lambda-mat.c: Removed.
26234         * lambda-trans.c: Removed.
26235         * lambda.h: Removed.
26236         * tree-loop-linear.c: Removed.
26237         * lto-symtab.c: Do not include lambda.h.
26238         * omega.c (gcd): Removed.
26239         * passes.c (init_optimization_passes): Remove pass_linear_transform.
26240         * tree-data-ref.c (print_lambda_vector): Moved here.
26241         (lambda_vector_copy): Same.
26242         (lambda_matrix_copy): Same.
26243         (lambda_matrix_id): Same.
26244         (lambda_vector_first_nz): Same.
26245         (lambda_matrix_row_add): Same.
26246         (lambda_matrix_row_exchange): Same.
26247         (lambda_vector_mult_const): Same.
26248         (lambda_vector_negate): Same.
26249         (lambda_matrix_row_negate): Same.
26250         (lambda_vector_equal): Same.
26251         (lambda_matrix_right_hermite): Same.
26252         * tree-data-ref.h: Do not include lambda.h.
26253         (lambda_vector): Moved here.
26254         (lambda_matrix): Same.
26255         (dependence_level): Same.
26256         (lambda_transform_legal_p): Removed declaration.
26257         (lambda_collect_parameters): Same.
26258         (lambda_compute_access_matrices): Same.
26259         (lambda_vector_gcd): Same.
26260         (lambda_vector_new): Same.
26261         (lambda_vector_clear): Same.
26262         (lambda_vector_lexico_pos): Same.
26263         (lambda_vector_zerop): Same.
26264         (lambda_matrix_new): Same.
26265         * tree-flow.h (least_common_multiple): Removed declaration.
26266         * tree-parloops.c (lambda_trans_matrix): Moved here.
26267         (LTM_MATRIX): Same.
26268         (LTM_ROWSIZE): Same.
26269         (LTM_COLSIZE): Same.
26270         (LTM_DENOMINATOR): Same.
26271         (lambda_trans_matrix_new): Same.
26272         (lambda_matrix_vector_mult): Same.
26273         (lambda_transform_legal_p): Same.
26274         * tree-pass.h (pass_linear_transform): Removed declaration.
26275         * tree-ssa-loop.c (tree_linear_transform): Removed.
26276         (gate_tree_linear_transform): Removed.
26277         (pass_linear_transform): Removed.
26278         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26279         flag_loop_interchange.
26280
26281 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26282
26283         PR tree-optimization/47265
26284         PR tree-optimization/47443
26285         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26286         if name still has some uses.
26287
26288 2011-01-25  Martin Jambor  <mjambor@suse.cz>
26289
26290         PR tree-optimization/47382
26291         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26292         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26293
26294 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
26295
26296         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26297         sjlj_except_unwind_info.
26298
26299 2011-01-25  Richard Guenther  <rguenther@suse.de>
26300
26301         PR tree-optimization/47426
26302         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26303         visible functions results escape.
26304
26305 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26306
26307         PR target/45701
26308         * config/arm/arm.c (any_sibcall_uses_r3): New function.
26309         (arm_get_frame_offsets): Use it.
26310
26311 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26312             Jakub Jelinek  <jakub@redhat.com>
26313
26314         PR tree-optimization/47271
26315         * tree-if-conv.c (bb_postdominates_preds): New.
26316         (if_convertible_bb_p): Call bb_postdominates_preds.
26317         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26318         (predicate_scalar_phi): Call bb_postdominates_preds.
26319
26320 2011-01-25  Nick Clifton  <nickc@redhat.com>
26321
26322         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26323         * config/rx/rx.c (rx_function_value): Likewise.
26324         (rx_promote_function_mode): Likewise.
26325         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26326         in order to make it legitimate.
26327         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26328         make sure that the first operand is the same as the result register.
26329         (addsi3_unspec): Delete.
26330         (subdi3): Do not accept immediate operands.
26331         (subdi3_internal): Likewise.
26332
26333 2011-01-25  Jeff Law  <law@redhat.com>
26334
26335         PR rtl-optimization/37273
26336         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26337         handle them like argument loads from stack slots.  Do not double
26338         count memory for memory constants and argument loads from stack slots.
26339
26340 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26341
26342         PR tree-optimization/47427
26343         PR tree-optimization/47428
26344         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26345         coalesce if the new root var would be TREE_READONLY.
26346
26347 2011-01-25  Richard Guenther  <rguenther@suse.de>
26348
26349         PR middle-end/47414
26350         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26351         correct type for TBAA.
26352
26353 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26354
26355         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26356         (close_phi_written_to_memory): Call for_each_index with
26357         dr_indices_valid_in_loop.
26358
26359 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26360
26361         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26362         when it is initialized.
26363
26364 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26365
26366         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26367         call to graphite_find_data_references_in_stmt.
26368         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26369         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
26370         call to graphite_find_data_references_in_stmt.
26371         (analyze_drs_in_stmts): Same.
26372         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26373         in which the scalar analysis of indices is performed.
26374         (create_data_ref): Same.  Update call to dr_analyze_indices.
26375         (find_data_references_in_stmt): Update call to create_data_ref.
26376         (graphite_find_data_references_in_stmt): Same.
26377         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26378         declaration.
26379         (create_data_ref): Same.
26380         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26381         call to create_data_ref.
26382
26383 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26384
26385         * graphite-sese-to-poly.c (build_poly_scop): Move
26386         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26387
26388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26389
26390         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26391         VAR_DECL, PARM_DECL, and RESULT_DECL.
26392
26393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26394
26395         * graphite-dependences.c (reduction_dr_1): Allow several reductions
26396         in a reduction PBB.
26397         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26398         that have already been marked as PBB_IS_REDUCTION.
26399
26400 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26401
26402         * graphite-scop-detection.c (same_close_phi_node): New.
26403         (remove_duplicate_close_phi): New.
26404         (make_close_phi_nodes_unique): New.
26405         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26406
26407 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26408
26409         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26410         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26411         of both data references to be the same.
26412
26413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26414
26415         * graphite-dependences.c (build_lexicographical_constraint): Remove
26416         the gdim parameter.
26417         (build_lexicographical_constraint): Adjust call to
26418         ppl_powerset_is_empty.
26419         (dependence_polyhedron): Same.
26420         (graphite_legal_transform_dr): Same.
26421         (graphite_carried_dependence_level_k): Same.
26422         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26423         parameter.
26424         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26425
26426 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26427
26428         * graphite-sese-to-poly.c
26429         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26430         (close_phi_written_to_memory): New.
26431         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26432         and unshare_expr.
26433
26434 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26435
26436         * doc/install.texi: Update the expected version number of PPL to 0.11.
26437         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26438         #if PPL_VERSION_MINOR < 11.
26439
26440 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26441
26442         * graphite-dependences.c: Include graphite-cloog-util.h.
26443         (new_poly_ddr): Inlined into dependence_polyhedron.
26444         (free_poly_ddr): Moved close by new_poly_ddr.
26445         (dependence_polyhedron_1): Renamed dependence_polyhedron.
26446         Early return NULL when ppl_powerset_is_empty returns true.
26447         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
26448         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
26449         (graphite_legal_transform_dr): Call new_poly_ddr.
26450         (graphite_carried_dependence_level_k): Same.
26451         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
26452         (dot_transformed_deps_stmt_1): Removed.
26453         (dot_deps_stmt_1): Call dot_deps_stmt_2.
26454         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
26455         (dot_deps_1): Call dot_deps_2.
26456         * Makefile.in (graphite-dependences.o): Add missing dependence on
26457         graphite-cloog-util.h.
26458
26459 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26460
26461         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26462         (build_lexicographical_constraint): Same.
26463         (dependence_polyhedron_1): Same.
26464         (graphite_legal_transform_dr): Same.
26465         (graphite_carried_dependence_level_k): Same.
26466         * graphite-ppl.c (ppl_powerset_is_empty): New.
26467         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26468         * tree-data-ref.c (dump_data_reference): Print the basic block index.
26469
26470 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26471
26472         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26473         the "a followed by b" relation and document it.
26474
26475 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26476
26477         * graphite-dependences.c (build_lexicographical_constraint): Stop the
26478         iteration when the bag of constraints is empty.
26479
26480 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26481
26482         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26483
26484 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26485
26486         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26487         nest and two loop depths as parameters.
26488         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26489         lst_perfect_nestify.
26490
26491 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26492
26493         * graphite-dependences.c (print_pddr): Call
26494         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26495
26496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26497
26498         * graphite-ppl.c (debug_gmp_value): New.
26499         * graphite-ppl.h (debug_gmp_value): Declared.
26500
26501 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
26502
26503         * doc/install.texi: Document availability of cloog-0.16.
26504
26505 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
26506
26507         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26508         invalid postdominance info.
26509
26510 2011-01-24  Jan Hubicka  <jh@suse.cz>
26511
26512         PR c/21659
26513         * doc/extend.texi (weak pragma): Drop claim that it must
26514         appear before definition.
26515         * varasm.c (merge_weak, declare_weak): Only sanity check
26516         that DECL is not output at a time it is declared weak.
26517
26518 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
26519
26520         * machmode.def: Fixed comments.
26521
26522 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
26523
26524         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26525
26526 2011-01-24  Paul Koning  <ni1d@arrl.net>
26527
26528         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26529         WORDS_BIG_ENDIAN.
26530
26531 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26532
26533         PR target/46519
26534         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26535         (block_info): Add scanned and prev.
26536         (move_or_delete_vzeroupper_2): Return if the basic block
26537         has been scanned and the upper 128bit state is unchanged
26538         from the last scan.
26539         (move_or_delete_vzeroupper_1): Return true if the exit
26540         state is changed.
26541         (move_or_delete_vzeroupper): Visit basic blocks using the
26542         work-list based algorithm based on vt_find_locations in
26543         var-tracking.c.
26544
26545         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26546
26547 2011-01-24  Nick Clifton  <nickc@redhat.com>
26548
26549         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26550         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26551         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
26552         then define __v850e1__.
26553         * doc/invoke.texi: Document -mv850es.
26554
26555 2011-01-24  Richard Henderson  <rth@redhat.com>
26556
26557         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26558         compound unordered comparisons.
26559         * config/rx/rx.c (rx_split_fp_compare): Remove.
26560         * config/rx/rx-protos.h: Update.
26561         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26562         (cbranchsf4): Don't call rx_split_fp_compare.
26563         (*cbranchsf4): Use rx_split_cbranch.
26564         (*cmpsf): Don't accept "i" constraint.
26565         (*conditional_branch): Only valid after reload.
26566         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
26567
26568 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26569
26570         PR target/47385
26571         * config/rs6000/altivec.md (vector constant splitters): Add
26572         support for creating vector single precision constants if -mvsx is
26573         used and we would create the constant using Altivec primitives.
26574
26575 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
26576             Richard Sandiford  <rdsandiford@googlemail.com>
26577
26578         PR rtl-optimization/47166
26579         * reload1.c (emit_reload_insns): Disable the spill_reg_store
26580         mechanism for PRE_MODIFY and POST_MODIFY.
26581         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26582         reloadreg.
26583
26584 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
26585
26586         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26587
26588 2011-01-22  Jan Hubicka  <jh@suse.cz>
26589
26590         PR lto/47333
26591         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26592
26593 2011-01-22  Jan Hubicka  <jh@suse.cz>
26594
26595         PR tree-optimization/43884
26596         PR lto/44334
26597         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26598         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26599
26600 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
26601
26602         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26603         * config/s390/s390.c (s390_register_move_cost,
26604         s390_memory_move_cost): New.
26605         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26606
26607 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26608
26609         PR middle-end/47401
26610         * except.c (sjlj_assign_call_site_values): Move setting the
26611         crtl->uses_eh_lsda flag to ...
26612         (sjlj_mark_call_sites): ... here.
26613         (sjlj_emit_function_enter): Support NULL dispatch label.
26614         (sjlj_build_landing_pads): In a function with no landing pads
26615         that still has must-not-throw regions, generate code to register
26616         a personality function with empty LSDA.
26617
26618 2011-01-21  Richard Henderson  <rth@redhat.com>
26619
26620         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26621
26622         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26623
26624         * compare-elim.c: New file.
26625         * Makefile.in (OBJS-common): Add it.
26626         (compare-elim.o): New.
26627         * common.opt (fcompare-elim): New.
26628         * opts.c (default_options_table): Add OPT_fcompare_elim.
26629         * tree-pass.h (pass_compare_elim_after_reload): New.
26630         * passes.c (init_optimization_passes): Add it.
26631         * recog.h: Protect against re-inclusion.
26632         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26633         * doc/invoke.texi (-fcompare-elim): Document it.
26634         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26635         * doc/tm.texi: Rebuild.
26636
26637 2011-01-22  Nick Clifton  <nickc@redhat.com>
26638
26639         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26640         rx_split_fp_compare.
26641
26642 2011-01-22  Nick Clifton  <nickc@redhat.com>
26643
26644         * config/rx/rx.md (UNSPEC_CONST): New.
26645         (deallocate_and_return): Wrap the amount popped off the stack in
26646         an UNSPEC_CONST in order to stop it being rejected by
26647         -mmax-constant-size.
26648         (pop_and_return): Add a "(return)" rtx.
26649         (call): Drop the immediate operand.
26650         (call_internal): Likewise.
26651         (call_value): Likewise.
26652         (call_value_internal): Likewise.
26653         (sibcall_internal): Likewise.
26654         (sibcall_value_internal): Likewise.
26655         (sibcall): Likewise.  Generate an explicit call using
26656         sibcall_internal.
26657         (sibcall_value): Likewise.
26658         (mov<>): FAIL if a constant operand is not legitimate.
26659         (addsi3_unpsec): New pattern.
26660
26661         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26662         (ok_for_max_constant): New function.
26663         (gen_safe_add): New function.
26664         (rx_expand_prologue): Use gen_safe_add.
26665         (rx_expand_epilogue): Likewise.
26666         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26667         UNSPEC CONSTs.
26668
26669 2011-01-21  Jeff Law  <law@redhat.com>
26670
26671         PR tree-optimization/47053
26672         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26673         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26674         statements are deleted.
26675         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26676         is nonempty, then purge dead edges and cleanup the CFG.
26677
26678 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26679
26680         PR debug/47402
26681         Temporarily revert:
26682         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26683         PR debug/47106
26684         * tree-dfa.c (create_var_ann): Mark variable as used.
26685
26686 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26687
26688         PR middle-end/45566
26689         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26690         notes from other section in hot/cold partitioning even if
26691         last_action is -3.  Increment call_site_base.
26692
26693         PR rtl-optimization/47366
26694         * fwprop.c (forward_propagate_into): Return bool.  If
26695         any changes are made, -fnon-call-exceptions is used and
26696         REG_EH_REGION note is present, call purge_dead_edges
26697         and return true if it purged anything.
26698         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26699         any EH edges were purged.
26700
26701 2011-01-21  Jeff Law  <law@redhat.com>
26702
26703         PR rtl-optimization/41619
26704         * caller-save.c (setup_save_areas): Break out code to determine
26705         which hard regs are live across calls by examining the reload chains
26706         so that it is always used.
26707         Eliminate code which checked REG_N_CALLS_CROSSED.
26708
26709 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26710
26711         PR tree-optimization/47355
26712         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26713         NOP has non-debug uses beyond PHIs in new_bb.
26714
26715 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26716
26717         PR debug/47106
26718         * cfgexpand.c (account_used_vars_for_block): Only account vars
26719         that are annotated as used.
26720         (estimated_stack_frame_size): Don't set TREE_USED.
26721         * tree-dfa.c (create_var_ann): Mark variable as used.
26722
26723 2011-01-21  Richard Guenther  <rguenther@suse.de>
26724
26725         PR middle-end/47395
26726         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26727
26728 2011-01-21  Richard Guenther  <rguenther@suse.de>
26729
26730         PR tree-optimization/47365
26731         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26732         (vn_reference_lookup_pieces): Adjust.
26733         (vn_reference_lookup): Likewise.
26734         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26735         (vn_reference_lookup_3): Only look through kills if in
26736         VN_WALKREWRITE mode.
26737         (vn_reference_lookup_pieces): Adjust.
26738         (vn_reference_lookup): Likewise.
26739         (visit_reference_op_load): Likewise.
26740         (visit_reference_op_store): Likewise.
26741         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26742         (compute_avail): Likewise.
26743         (eliminate): Likewise.
26744
26745 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26746
26747         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26748         DECL_IGNORED_P non-reg vars if they are used.
26749
26750         PR tree-optimization/47391
26751         * varpool.c (const_value_known_p): Return false if
26752         decl is volatile.
26753
26754 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26755
26756         PR bootstrap/47215
26757         * config/i386/i386.c (ix86_local_alignment): Handle
26758         case for va_list_type_node is nil.
26759         (ix86_canonical_va_list_type): Likewise.
26760
26761 2011-01-21  Alan Modra  <amodra@gmail.com>
26762
26763         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26764         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26765
26766 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26767
26768         * config/arm/arm.md (define_attr type): Rename f_load
26769         and f_store to f_fpa_load and f_fpa_store. Update.
26770         (write_conflict): Deal with rename fallout.
26771         (*push_fp_multi): Likewise.
26772         * config/arm/fpa.md (f_load): Use f_fpa_load.
26773         (f_store): Use f_fpa_store.
26774         (*movsf_fpa): Likewise.
26775         (*movdf_fpa): Likewise.
26776         (*movxf_fpa): Likewise.
26777         (*thumb2_movsf_fpa): Likewise.
26778         (*thumb2_movdf_fpa): Likewise.
26779         (*thumb2_movxf_fpa): Likewise.
26780         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26781         f_loadd and f_stored.
26782         (*thumb2_movdi_vfp): Likewise.
26783         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26784         (*thumb2_movsi_vfp): Likewise.
26785         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26786         Use f_loads instead of f_load.
26787         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26788
26789 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26790
26791         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26792         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26793         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26794         (xtensa_mode_dependent_address_p): New function.
26795         (constantpool_address_p): Make static. Change return type to bool.
26796         Change argument type to const_rtx. Use CONST_INT_P predicate.
26797
26798 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26799
26800         PR debug/46583
26801         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26802
26803 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26804
26805         PR debug/47283
26806         * cfgexpand.c (expand_debug_expr): Instead of generating
26807         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26808         etc. handling.
26809
26810 2011-01-20  Richard Guenther  <rguenther@suse.de>
26811
26812         PR middle-end/47370
26813         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26814         the pointer operand of MEM_REFs.
26815
26816 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26817
26818         PR tree-optimization/46130
26819         * ipa-split.c (consider_split): If return_bb contains non-virtual
26820         PHIs other than for retval or if split_function would not adjust it,
26821         refuse to split.
26822
26823 2011-01-20  Richard Guenther  <rguenther@suse.de>
26824
26825         PR tree-optimization/47167
26826         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26827         Revert previous change, only avoid enumeral type changes.
26828
26829 2011-01-19  Mike Stump  <mikestump@comcast.net>
26830
26831         * doc/tm.texi.in (BRANCH_COST): Englishify.
26832         * doc/tm.texi (BRANCH_COST): Likewise.
26833
26834 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26835
26836         PR c++/47291
26837         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26838         (gen_scheduled_generic_parms_dies): New functions.
26839         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26840         generation for the end of CU compilation.
26841         (dwarf2out_finish): Generate template parameters DIEs here.
26842
26843 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26844
26845         PR debug/46240
26846         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26847         debug bind stmt on merge edges.
26848
26849 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26850
26851         PR debug/47079
26852         PR debug/46724
26853         * function.c (instantiate_expr): Instantiate incoming rtl of
26854         implicit arguments, and recurse on VALUE_EXPRs.
26855         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26856         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26857
26858 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26859
26860         * c-parser.c (c_parser_for_statement): Initialize
26861         collection_expression.
26862
26863 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26864
26865         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26866
26867 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26868
26869         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26870         (LINK_SHLIB_SPEC): Don't use %(link_path).
26871         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26872
26873 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26876         (NO_SHARED_LIB_SUPPORT): Remove.
26877         (LINK_SHLIB_SPEC): Remove one conditional definition.
26878
26879 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26880
26881         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26882         %{call_shared}.
26883         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26884         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26885         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26886         %{call_shared} and conditionals on these options not being passed.
26887         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26888         %{call_shared}.
26889
26890 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26891
26892         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26893         simplify.
26894
26895         * ipa-split.c: Spelling fixes.
26896
26897 2011-01-19  Richard Henderson  <rth@redhat.com>
26898
26899         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26900         (*mulsi3): Likewise.
26901
26902         * longlong.h [__mn10300__] (count_leading_zeros): New.
26903         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26904         [__mn10300__] (add_ssaaaa, subddmmss): New.
26905         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26906         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26907
26908 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26909
26910         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26911
26912 2011-01-19  Richard Henderson  <rth@redhat.com>
26913
26914         * config/mn10300/mn10300.md (addsi3_flags): New.
26915         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26916         (subsi3_flags, subc_internal, subdi3): New.
26917         (subdi3_internal, *subdi3_degenerate): New.
26918         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26919
26920         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26921         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26922         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26923         * config/mn10300/mn10300-protos.h: Update.
26924         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26925         (return_ret): Likewise.  Rename from return_internal_regs.
26926         (return_internal): Remove.
26927
26928         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26929         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26930         (mn10300_legitimate_constant_p): Likewise.
26931         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26932         (mn10300_frame_size): New.
26933         (mn10300_expand_prologue): Use it.
26934         (mn10300_expand_epilogue): Likewise.
26935         (mn10300_initial_offset): Likewise.
26936         * config/mn10300/mn10300-protos.h: Update.
26937         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26938         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26939         (prologue, epilogue, return_internal): Tidy output code.
26940         (mn10300_store_multiple_operation, return): Likewise.
26941         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26942         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26943         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26944         (load_pic, am33_load_pic): New.
26945         (mn10300_load_pic0, mn10300_load_pic1): New.
26946
26947         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26948         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26949         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26950         (cc_flags_for_mode, cc_flags_for_code): New.
26951         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26952         overflow flag is not valid.  Validate that the flags we need
26953         for the comparison are valid.
26954         (mn10300_output_cmp): Remove.
26955         (mn10300_output_add): New.
26956         (mn10300_select_cc_mode): Use cc_flags_for_code.
26957         (mn10300_split_cbranch): New.
26958         (mn10300_match_ccmode): New.
26959         (mn10300_split_and_operand_count): New.
26960         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26961         to the function.
26962         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26963         (addsi3): ... here.  Use mn10300_output_add.
26964         (*addsi3_flags): New.
26965         (*am33_subsi3, *mn10300_subsi3): Merge...
26966         (subsi3): ... here.  Use attribute isa.
26967         (*subsi3_flags): New.
26968         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
26969         when possible.
26970         (*am33_andsi3, *mn10300_andsi3): Merge...
26971         (andsi3): ... here.
26972         (*andsi3_flags): New.
26973         (andsi3 splitters): New.
26974         (*am33_iorsi3, *mn10300_iorsi3): Merge...
26975         (iorsi3): ... here.
26976         (*iorsi3_flags): New.
26977         (*am33_xorsi3, *mn10300_xorsi3): Merge...
26978         (xorsi3): ... here.
26979         (*xorsi3_flags): New.
26980         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26981         (one_cmplsi2): ... here.
26982         (*one_cmplsi2_flags): New.
26983         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
26984         instead of "dax" in constraints.  Use mn10300_split_cbranch.
26985         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
26986         use matching constraints to eliminate a self-comparison.
26987         (*integer_conditional_branch): Rename from integer_conditional_branch.
26988         Use int_mode_flags to match CC_REG.
26989         (*cbranchsi4_btst, *btstsi): New.
26990         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26991         mn10300_split_cbranch.
26992         (*am33_cmpsf): Rename from am33_cmpsf.
26993         (*float_conditional_branch): Rename from float_conditional_branch.
26994         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26995         (zero_extendqisi2): ... here.
26996         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26997         (zero_extendhisi2): ... here.
26998         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26999         (extendqisi2): ... here.
27000         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27001         (extendhisi2): ... here.
27002         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27003         (ashlsi3): ... here.
27004         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27005         (lshrsi3): ... here.
27006         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27007         (ashrsi3): ... here.
27008         (consecutive add peephole): Remove.
27009         * config/mn10300/predicates.md (label_ref_operand): New.
27010         (int_mode_flags): New.
27011         (CCZN_comparison_operator): New.
27012
27013         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27014         (throughput_42_latency_43): New reservation.
27015         (mulsidi3, umulsidi3): New expanders.
27016         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
27017         the MDR register to allocation; separately allocate the low and
27018         high parts of the DImode result.
27019         (umulsidi3_internal): Similarly.
27020         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27021         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
27022         (udivsi3, umodsi3): Remove.
27023         (udivmodsi4, divmodsi4): New expanders.
27024         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
27025         (*divmodsi4): Simiarly.
27026         (ext_internal): New.
27027
27028         * config/mn10300/constraints.md ("z"): New constraint.
27029         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27030         (FIXED_REGISTERS): Don't fix MDR.
27031         (CALL_USED_REGSITERS): Reformat nicely.
27032         (REG_ALLOC_ORDER): Add MDR.
27033         (enum regclass): Add MDR_REGS.
27034         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27035         (IRA_COVER_CLASSES): Add MDR_REGS.
27036         (REGNO_REG_CLASS): Handle MDR_REG.
27037         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27038         (mn10300_register_move_cost): Likewise.
27039         * config/mn10300/mn10300.md (MDR_REG): New.
27040         (*movsi_internal): Handle moves to/from MDR_REGS.
27041
27042         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27043         POST_MODIFY.
27044         (mn10300_secondary_reload): Tidy combination reload classes.
27045         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27046         addresses for AM33.  Allow symbolic offsets for reg+imm.
27047         (mn10300_regno_in_class_p): New.
27048         (mn10300_legitimize_reload_address): New.
27049         * config/mn10300/mn10300.h (enum reg_class): Remove
27050         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27051         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
27052         SP_OR_GENERAL_REGS.
27053         (REG_CLASS_NAMES): Update to match.
27054         (REG_CLASS_CONTENTS): Likewise.
27055         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27056         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27057         (REGNO_IN_RANGE_P): Remove.
27058         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27059         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27060         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27061         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27062         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27063         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27064         (REGNO_GENERAL_P): New.
27065         (HAVE_POST_MODIFY_DISP): New.
27066         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27067         (LEGITIMIZE_RELOAD_ADDRESS): New.
27068         * config/mn10300/mn10300-protos.h: Update.
27069
27070         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27071         DATA_REGS for AM33 stack-pointer destination.
27072         (mn10300_preferred_output_reload_class): Likewise.
27073         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27074         into a form appropriate for ...
27075         (TARGET_SECONDARY_RELOAD): New.
27076         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27077         * config/mn10300/mn10300-protos.h: Update.
27078         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27079         reload_insi; use the "A" constraint for the scratch; handle AM33
27080         moves of sp to non-address registers.
27081
27082         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27083         (*movqi_internal): ... here.
27084         (*am33_movhi, *mn10300_movhi): Merge into...
27085         (*movhi_internal): ... here.
27086         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
27087         as the source/destination of moves from/to SP.
27088         (movsf): Only allow for AM33-2.
27089         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27090         any integer constant constraint.  Only allow for AM33-2.  Tidy
27091         all of the alternative outputs.
27092         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27093         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
27094         for MN103.
27095         (udivsi3, umodsi3): New patterns for MN103 only.
27096
27097 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
27098
27099         * doc/tm.texi.in: Spell out that a lack of register class unions
27100         can lead to ICEs.
27101         * doc/tm.texi: Regenerate.
27102
27103 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
27104
27105         PR rtl-optimization/47337
27106         * dce.c (check_argument_store): New function.
27107         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
27108
27109         PR tree-optimization/47290
27110         * tree-eh.c (infinite_empty_loop_p): New function.
27111         (cleanup_empty_eh): Use it.
27112
27113 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
27114
27115         PR target/46997
27116         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27117         (a64_expand_widen_sum): Ditto.
27118         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27119         (vec_extract_evenodd_help): Ditto.
27120         (vec_extract_evenv4hi): Ditto.
27121         (vec_extract_oddv4hi): Ditto.
27122         (vec_extract_evenv2si): Ditto.
27123         (vec_extract_oddv2si): Ditto.
27124         (vec_extract_evenv2sf): Ditto.
27125         (vec_extract_oddv2sf): Ditto.
27126         (vec_pack_trunc_v4hi: Ditto.
27127         (vec_pack_trunc_v2si): Ditto.
27128         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27129         (vec_interleave_highv8qi): Ditto.
27130         (mix1_r): Ditto.
27131         (vec_extract_oddv8qi): Ditto.
27132         (vec_interleave_lowv4hi): Ditto.
27133         (vec_interleave_highv4hi): Ditto.
27134         (vec_interleave_lowv2si): Ditto.
27135         (vec_interleave_highv2si): Ditto.
27136
27137 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27138
27139         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27140         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27141         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
27142         (pa_c_mode_for_suffix): New.
27143         (TARGET_EXPAND_BUILTIN): Define.
27144         (TARGET_C_MODE_FOR_SUFFIX): Define.
27145         (pa_builtins): Define.
27146         (pa_init_builtins): Register __float128 type and init new support
27147         builtins.
27148         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27149         * config/pa/quadlib.c (_U_Qfcopysign): New.
27150
27151 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
27152
27153         PR middle-end/46894
27154         * explow.c (allocate_dynamic_stack_space): Do not assume more than
27155         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27156         are defined.
27157
27158 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27159
27160         PR tree-optimization/47179
27161         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27162         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27163
27164 2011-01-18  Richard Guenther  <rguenther@suse.de>
27165
27166         PR rtl-optimization/47216
27167         * emit-rtl.c: Include tree-flow.h.
27168         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27169         of replicating it with different semantics.
27170         * Makefile.in (emit-rtl.o): Adjust.
27171
27172 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27173
27174         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27175         (cortex_a9_dp): Handle neon types correctly.
27176
27177 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
27178
27179         PR rtl-optimization/47299
27180         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27181         subtarget.  Use normal multiplication if both operands are constants.
27182         * expmed.c (expand_widening_mult): Don't try to optimize constant
27183         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
27184         before using it.
27185
27186 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27187
27188         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
27189         spacing after 'e.g.', typos, comma, hyphenation.
27190
27191 2011-01-17  Richard Henderson  <rth@redhat.com>
27192
27193         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27194         (rx_restricted_mem_operand): New.
27195         (rx_shift_operand): Use register_operand.
27196         (rx_source_operand, rx_compare_operand): Likewise.
27197         * config/rx/rx.md (addsi3_flags): New expander.
27198         (adddi3): Rewrite as expander.
27199         (adc_internal, *adc_flags, adddi3_internal): New patterns.
27200         (subsi3_flags): New expander.
27201         (subdi3): Rewrite as expander.
27202         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27203
27204         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27205         (rx_init_builtins): Remove sat builtin.
27206         (rx_expand_builtin): Likewise.
27207         * config/rx/rx.md (ssaddsi3): New.
27208         (*sat): Rename from sat.  Represent the CC_REG input.
27209
27210         * config/rx/predicates.md (rshift_operator): New.
27211         * config/rx/rx.c (rx_expand_insv): Remove.
27212         * config/rx/rx-protos.h: Update.
27213         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
27214         operand to the canonical position.
27215         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27216         (*bitclr, *bitclr_in_memory): Similarly.
27217         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27218         (insv): Retain the zero_extract in the expansion.
27219
27220         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27221         (bswaphi2, bitinvert, revw): Likewise.
27222
27223         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27224         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27225         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27226         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27227         (bitset, bitset_in_memory): Likewise.
27228         (bitinvert, bitinvert_in_memory): Likewise.
27229         (bitclr, bitclr_in_memory): Likewise.
27230         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27231         (rx_strend, rx_cmpstrn): Likewise.
27232         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
27233         (bitop peep2 patterns): Remove.
27234
27235         * config/rx/rx.c (rx_match_ccmode): New.
27236         * config/rx/rx-protos.h: Update.
27237         * config/rx/rx.md (abssi2): Clobber, don't set flags.
27238         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27239         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27240         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27241         (fix_truncsfsi2, floatsisf2): Likewise.
27242         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27243         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27244         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27245         (*subsi3_flags, *xorsi3_flags): New.
27246
27247         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27248
27249         * config/rx/rx.c (rx_print_operand): Remove workaround for
27250         unsplit comparison operations.
27251
27252         * config/rx/rx.md (movsicc): Split after reload.
27253         (*movsicc): Merge *movsieq and *movsine via match_operator.
27254         (*stcc): New pattern.
27255
27256         * config/rx/rx.c (rx_float_compare_mode): Remove.
27257         * config/rx/rx.h (rx_float_compare_mode): Remove.
27258         * config/rx/rx.md (cstoresi4): Split after reload.
27259         (*sccc): New pattern.
27260
27261         * config/rx/predicates.md (label_ref_operand): New.
27262         (rx_z_comparison_operator): New.
27263         (rx_zs_comparison_operator): New.
27264         (rx_fp_comparison_operator): New.
27265         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27266         Validate that the flags are set properly for the comparison.
27267         (rx_gen_cond_branch_template): Remove.
27268         (rx_cc_modes_compatible): Remove.
27269         (mode_from_flags): New.
27270         (flags_from_code): Rename from flags_needed_for_conditional.
27271         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27272         (rx_select_cc_mode): Likewise.
27273         (rx_split_fp_compare): New.
27274         (rx_split_cbranch): New.
27275         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27276         (*cbranchsi4): Use match_operator and rx_split_cbranch.
27277         (*cbranchsf4): Similarly.
27278         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
27279         match_operator and rx_split_cbranch.
27280         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27281         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
27282         (*cmpsi): Rename from cmpsi.
27283         (*tstsi): Rename from tstsi.
27284         (*cmpsf): Rename from cmpsf; use CC_Fmode.
27285         (*conditional_branch): Rename from conditional_branch.
27286         (*reveresed_conditional_branch): Remove.
27287         (b<code>): Remove expander.
27288         * config/rx/rx-protos.h: Update.
27289
27290         * config/rx/rx.c (rx_compare_redundant): Remove.
27291         * config/rx/rx.md (cmpsi): Don't use it.
27292         * config/rx/rx-protos.h: Update.
27293
27294         * config/rx/rx-modes.def (CC_F): New mode.
27295         * config/rx/rx.c (rx_select_cc_mode): New.
27296         * config/rx/rx.h (SELECT_CC_MODE): Use it.
27297         * config/rx/rx-protos.h: Update.
27298
27299 2011-01-17  Richard Henderson  <rth@redhat.com>
27300
27301         * except.c (dump_eh_tree): Fix stray ; after for statement.
27302
27303 2011-01-17  Richard Guenther  <rguenther@suse.de>
27304
27305         PR tree-optimization/47313
27306         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27307         handling before copying the body.  Properly deal with
27308         by-reference result in SSA form.
27309
27310 2011-01-17  Ian Lance Taylor  <iant@google.com>
27311
27312         PR target/47219
27313         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27314         (struct_value_alias_set): Don't define.
27315         (sparc_option_override): Don't set sparc_sr_alias_set and
27316         struct_value_alias_set.
27317         (save_or_restore_regs): Use gen_frame_mem rather than calling
27318         set_mem_alias_set.
27319         (sparc_struct_value_rtx): Likewise.
27320
27321 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27322
27323         PR target/47318
27324         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27325         (_mm_maskstore_pd): Likewise.
27326         (_mm_maskload_ps): Likewise.
27327         (_mm_maskstore_ps): Likewise.
27328         (_mm256_maskload_pd): Change mask to __m256i.
27329         (_mm256_maskstore_pd): Likewise.
27330         (_mm256_maskload_ps): Likewise.
27331         (_mm256_maskstore_ps): Likewise.
27332
27333         * config/i386/i386-builtin-types.def: Updated.
27334         (ix86_expand_special_args_builtin): Likewise.
27335
27336         * config/i386/i386.c (bdesc_special_args): Update
27337         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27338         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27339         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27340         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27341
27342         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27343         Use <avxpermvecmode> on mask register.
27344         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27345
27346 2011-01-17  Olivier Hainque  <hainque@adacore.com>
27347             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27348             Eric Botcazou  <ebotcazou@adacore.com>
27349
27350         PR target/46655
27351         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27352         if <= USHRT_MAX in 32-bit mode.
27353
27354 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27355
27356         * doc/install.texi (Configuration, Specific): Wrap long
27357         lines in examples.  Allow line wrapping in long options
27358         and URLs where beneficial for PDF output.
27359
27360 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
27361
27362         * config/mips/mips.c (mips_classify_symbol): Don't return
27363         SYMBOL_PC_RELATIVE for nonlocal labels.
27364
27365 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27366
27367         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27368
27369 2011-01-15  Jan Hubicka  <jh@suse.cz>
27370
27371         PR tree-optimization/47276
27372         * ipa.c (function_and_variable_visibility): Do not try to mark alias
27373         declarations as needed.
27374
27375 2011-01-15  Martin Jambor  <mjambor@suse.cz>
27376
27377         * common.opt (fdevirtualize): New flag.
27378         * doc/invoke.texi (Option Summary): Document it.
27379         * opts.c (default_options_table): Add devirtualize flag.
27380         * ipa-prop.c (detect_type_change): Return immediately if
27381         devirtualize flag is not set.
27382         (detect_type_change_ssa): Likewise.
27383         (compute_known_type_jump_func): Likewise.
27384         (ipa_analyze_virtual_call_uses): Likewise.
27385
27386 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27387
27388         PR tree-optimization/45934
27389         PR tree-optimization/46302
27390         * ipa-prop.c (type_change_info): New type.
27391         (stmt_may_be_vtbl_ptr_store): New function.
27392         (check_stmt_for_type_change): Likewise.
27393         (detect_type_change): Likewise.
27394         (detect_type_change_ssa): Likewise.
27395         (compute_complex_assign_jump_func): Check for dynamic type change.
27396         (compute_complex_ancestor_jump_func): Likewise.
27397         (compute_known_type_jump_func): Likewise.
27398         (compute_scalar_jump_functions): Likewise.
27399         (ipa_analyze_virtual_call_uses): Likewise.
27400         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27401
27402 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27403
27404         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27405         * config/i386/i386.opt (msse5): New Alias.
27406
27407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27408
27409         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27410         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27411         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27412         * config/sparc/sparc.h (CC1_SPEC): Likewise.
27413
27414 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27415
27416         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27417         -mcpu options.
27418         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27419         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27420         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27421         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27422         Likewise.
27423         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27424
27425 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27426
27427         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27428
27429 2011-01-14  Mike Stump  <mikestump@comcast.net>
27430
27431         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27432         * config/fr30/fr30.md: Likweise
27433         (movsi_push): Likewise.
27434         (movsi_pop): Likewise.
27435         (enter_func): Likewise.
27436         * config/moxie/moxie.md (movsi_push): Likewise.
27437         (movsi_pop): Likewise.
27438
27439 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27440
27441         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27442         %{no_archive} %{exact_version}.
27443         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27444         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27445         %{no_archive} %{exact_version}.
27446         * config/mips/openbsd.h (LINK_SPEC): Likewise.
27447         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27448         * config/mips/vxworks.h: Likewise.
27449
27450 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27451
27452         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27453
27454 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27455
27456         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27457         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27458
27459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27460
27461         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27462         -nodefaultlib.
27463
27464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27465
27466         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27467         for mcpu not cpu.
27468         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27469         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27470         not cpu.
27471         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27472         Don't handle -shlib.
27473
27474 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27475
27476         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27477         (CC1_SPEC): Don't handle -profile.
27478
27479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27480
27481         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27482         * config/mips/mips.h (CC1_SPEC): Likewise.
27483
27484 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27485
27486         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27487         * config/mips/mips.h (CC1_SPEC): Likewise.
27488
27489 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27490
27491         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27492         * config/m32r/linux.h (LINK_SPEC): Likewise.
27493         * config/mips/linux.h (LINK_SPEC): Likewise.
27494         * config/mips/linux64.h (LINK_SPEC): Likewise.
27495         * config/sparc/linux.h (LINK_SPEC): Likewise.
27496         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27497         LINK_SPEC): Likewise.
27498         * config/xtensa/linux.h (LINK_SPEC): Likewise.
27499
27500 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27501
27502         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27503         %{version:-v}.
27504         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27505
27506 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27507
27508         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27509         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27510
27511 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27512
27513         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27514
27515 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27516
27517         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27518         supports -Bstatic/-Bdynamic.
27519         * configure: Regenerate.
27520
27521 2011-01-14  Jan Hubicka  <jh@suse.cz>
27522             Jack Howarth  <howarth@bromo.med.uc.edu>
27523
27524         PR target/46037
27525         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27526         when checking debug_info_level. Test write_symbols instead of
27527         debug_hooks->var_location when setting flag_var_tracking_uninit.
27528
27529 2011-01-14  Richard Guenther  <rguenther@suse.de>
27530
27531         PR tree-optimization/47179
27532         * target.def (ref_may_alias_errno): New target hook.
27533         * targhooks.h (default_ref_may_alias_errno): Declare.
27534         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27535         (default_ref_may_alias_errno): New function.
27536         * target.h (struct ao_ref_s): Declare.
27537         * tree-ssa-alias.c: Include target.h.
27538         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27539         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27540         (targhooks.o): Likewise.
27541         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27542         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27543
27544 2011-01-14  Richard Guenther  <rguenther@suse.de>
27545
27546         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
27547
27548 2011-01-14  Richard Guenther  <rguenther@suse.de>
27549
27550         PR tree-optimization/47280
27551         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27552         return CFG changes.
27553         (tree_ssa_forward_propagate_single_use_vars): Deal with
27554         CFG changes from associate_plusminus.
27555
27556 2011-01-14  Richard Guenther  <rguenther@suse.de>
27557
27558         PR middle-end/47281
27559         Revert
27560         2011-01-11  Richard Guenther  <rguenther@suse.de>
27561
27562         PR tree-optimization/46076
27563         * tree-ssa.c (useless_type_conversion_p): Conversions from
27564         unprototyped to empty argument list function types are useless.
27565
27566 2011-01-14  Richard Guenther  <rguenther@suse.de>
27567
27568         PR tree-optimization/47286
27569         * tree-ssa-structalias.c (new_var_info): Register variables are global.
27570
27571 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27572
27573         PR middle-end/46823
27574         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27575
27576 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
27577
27578         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27579         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27580         * config/xtensa/xtensa.c (xtensa_libcall_value,
27581         xtensa_function_value_regno_p): New functions.
27582         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27583
27584 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
27585
27586         PR c++/47213
27587         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27588         PE specific hook.
27589         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27590         New function prototype.
27591         * config/i386/winnt.c (i386_pe_assemble_visibility):
27592         Warn only if attribute was specified by user.
27593
27594 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27595
27596         PR target/47251
27597         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27598         floating point.
27599         (floatunsdidf2_fcfidu): Ditto.
27600
27601 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27602
27603         * config/s390/s390.c (print_operand_address): Replace 'error' with
27604         'output_operand_lossage'.
27605         (print_operand): Likewise.
27606
27607 2011-01-13  Jeff Law  <law@redhat.com>
27608
27609         PR rtl-optimization/39077
27610         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27611         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27612         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27613         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27614         * gcse.c (prune_insertions_deletions): New function.
27615         (compute_pre_data): Use it.
27616
27617 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
27618
27619         PR debug/PR46973
27620         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27621         static function.
27622         (prune_unused_types_mark): Use it.
27623
27624 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
27625
27626         PR rtl-optimization/45352
27627         * sel-sched.c: Update copyright years.
27628         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27629         in the advancing loop when we have issued issue_rate insns.
27630
27631 2011-01-12  Richard Henderson  <rth@redhat.com>
27632
27633         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27634         (TARGET_MD_ASM_CLOBBERS): New.
27635
27636         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27637         (TARGET_DELEGITIMIZE_ADDRESS): New.
27638
27639         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27640         (clzsi2, *bsch): New patterns.
27641
27642         * config/mn10300/mn10300.md (INT): New mode iterator.
27643         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27644
27645         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27646         flag_split_wide_types.
27647
27648         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27649         (mn10300_trampoline_init): Rewrite without a template, an immediate
27650         load and a direct branch.
27651         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27652
27653 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27654
27655         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27656         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27657         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27658         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27659
27660 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27661
27662         PR debug/47209
27663         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27664         of type.
27665
27666 2011-01-12  Jan Hubicka  <jh@suse.cz>
27667
27668         PR driver/47244
27669         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27670         (PLUGIN_COND_CLOSE): New macro.
27671         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27672
27673 2011-01-12  Richard Guenther  <rguenther@suse.de>
27674
27675         PR lto/47259
27676         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27677         register variables in a MEM_REF.
27678
27679 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27680
27681         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27682         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27683         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27684         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27685         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27686         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27687         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27688         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27689         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27690         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27691         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27692         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27693         * config/gnu-user.h: New.  Copied from linux.h.
27694         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27695         GNU_USER_TARGET_STARTFILE_SPEC.
27696         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27697         GNU_USER_TARGET_ENDFILE_SPEC.
27698         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27699         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27700         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27701         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27702         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27703         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27704         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27705         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27706         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27707         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27708         * config/arm/linux-eabi.h (CC1_SPEC): Use
27709         GNU_USER_TARGET_CC1_SPEC.
27710         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27711         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27712         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27713         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27714         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27715         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27716         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27717         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27718
27719 2011-01-12  Richard Guenther  <rguenther@suse.de>
27720
27721         PR other/46946
27722         * doc/invoke.texi (ffast-math): Document it is turned on
27723         with -Ofast.
27724
27725 2011-01-12  Jan Hubicka  <jh@suse.cz>
27726
27727         PR tree-optimization/47233
27728         * opts.c (common_handle_option): Disable ipa-reference with profile
27729         feedback.
27730
27731 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27732
27733         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27734         error message.
27735
27736 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27737
27738         * c-parser.c (c_lex_one_token): Updated and reindented some
27739         comments.  No changes in code.
27740
27741 2011-01-11  Ian Lance Taylor  <iant@google.com>
27742
27743         * godump.c (go_output_var): Don't output the variable if there is
27744         already a type with the same name.
27745
27746 2011-01-11  Ian Lance Taylor  <iant@google.com>
27747
27748         * godump.c (go_format_type): Don't generate float80.
27749
27750 2011-01-11  Richard Henderson  <rth@redhat.com>
27751
27752         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27753         declaration.  Rewrite for both speed and size.
27754         (mn10300_address_cost_1): Remove.
27755         (mn10300_register_move_cost): New.
27756         (mn10300_memory_move_cost): New.
27757         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27758         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27759         extensions, shifts, BSWAP, CLZ.
27760         (mn10300_wide_const_load_uses_clr): Remove.
27761         (TARGET_REGISTER_MOVE_COST): New.
27762         (TARGET_MEMORY_MOVE_COST): New.
27763         * config/mn10300/mn10300-protos.h: Update.
27764         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27765
27766         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27767         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27768         * config/mn10300/mn10300-protos.h: Update.
27769         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27770         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27771         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27772         (*test_int_bitfield, *test_byte_bitfield): Remove.
27773         (*bit_test, *subreg_bit_test): Remove.
27774         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27775
27776         * config/mn10300/constraints.md ("c"): Rename from "A".
27777         ("A", "D"): New constraint letters.
27778         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27779         (fmssf4, fnmasf4, fnmssf4): Likewise.
27780
27781         * config/mn10300/mn10300.md (isa): New attribute.
27782         (enabled): New attribute.
27783
27784         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27785         (abssf2, negsf2): Define only for hardware fp.
27786         (sqrtsf2): Reformat.
27787         (addsf3, subsf3, mulsf3): Merge expander and insn.
27788
27789         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27790         (DEBUGGER_AUTO_OFFSET): Remove.
27791         (DEBUGGER_ARG_OFFSET): Remove.
27792
27793         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27794         Emit register stores with the same offsets as the hardware.
27795         (mn10300_store_multiple_operation): Don't check that the register
27796         save offsets are monotonic.
27797         * config/mn10300/mn10300-protos.h: Update.
27798
27799         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27800
27801         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27802         in terms of the value on the stack, not the MDR register.
27803
27804 2011-01-11  Jan Hubicka  <jh@suse.cz>
27805
27806         PR lto/45721
27807         PR lto/45375
27808         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27809         (symbol_alias_set_destroy, symbol_alias_set_contains,
27810         propagate_aliases_backward): Declare.
27811         * lto-streamer-out.c (struct sets): New sturcture.
27812         (trivally_defined_alias): New function.
27813         (output_alias_pair_p): Rewrite.
27814         (output_unreferenced_globals): Fix output of alias pairs.
27815         (produce_symtab): Likewise.
27816         * ipa.c (function_and_variable_visibility): Set weak alias destination
27817         as needed in lto.
27818         * varasm.c (symbol_alias_set_t): Remove.
27819         (symbol_alias_set_destroy): Export.
27820         (propagate_aliases_forward, propagate_aliases_backward): New functions
27821         based on ...
27822         (compute_visible_aliases): ... this one; remove.
27823         (trivially_visible_alias): New
27824         (trivially_defined_alias): New.
27825         (remove_unreachable_alias_pairs): Rewrite.
27826         (finish_aliases_1): Reorganize code checking if alias is defined.
27827         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27828         in LTO mode.
27829
27830 2011-01-11  Richard Guenther  <rguenther@suse.de>
27831
27832         PR tree-optimization/46076
27833         * tree-ssa.c (useless_type_conversion_p): Conversions from
27834         unprototyped to empty argument list function types are useless.
27835
27836 2011-01-11  Richard Guenther  <rguenther@suse.de>
27837
27838         PR middle-end/45235
27839         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27840         volatile MEMs as MEM_READONLY_P.
27841
27842 2011-01-11  Richard Guenther  <rguenther@suse.de>
27843
27844         PR tree-optimization/47239
27845         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27846
27847 2011-01-11  Jeff Law  <law@redhat.com>
27848
27849         PR tree-optimization/47086
27850         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27851         IVs from statements that might throw.
27852
27853 2011-01-10  Jan Hubicka  <jh@suse.cz>
27854
27855         PR lto/45375
27856         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27857
27858 2011-01-10  Jan Hubicka  <jh@suse.cz>
27859
27860         PR lto/45375
27861         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27862         when correcting profile.
27863
27864 2011-01-10  Jan Hubicka  <jh@suse.cz>
27865
27866         PR lto/46083
27867         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27868         DECL_FINI_PRIORITY.
27869         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27870         Restore DECL_FINI_PRIORITY.
27871
27872 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27873
27874         * doc/gimple.texi: Fix quoting of multi-word return values in
27875         @deftypefn statements.  Ensure presence of return value.  Wrap
27876         overlong @deftypefn lines.
27877         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27878         descriptions of removed functions.
27879         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27880         of multi-word return value in @deftypefn statement.
27881
27882 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27883
27884         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27885         (Conditional Expressions, Logical Operators)
27886         (Statement and operand traversals): Do not indent smallexample
27887         code.  Fix duplicate function argument in example.
27888
27889 2011-01-10  Jeff Law  <law@redhat.com>
27890
27891         PR tree-optimization/47141
27892         * ipa-split.c (split_function): Handle case where we are
27893         returning a value and the return block has a virtual operand phi.
27894
27895 2011-01-10  Jan Hubicka  <jh@suse.cz>
27896
27897         PR tree-optimization/47234
27898         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27899         (pass_feedback_split_functions): Declare.
27900         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27901         tree-profile.
27902         * ipa-split.c (gate_split_functions): Update comments; disable
27903         split-functions for profile_arc_flag and branch_probabilities.
27904         (gate_feedback_split_functions): New function.
27905         (execute_feedback_split_functions): New function.
27906         (pass_feedback_split_functions): New global var.
27907
27908 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27909
27910         PR lto/46760
27911         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27912         calling gimple_call_set_cannot_inline.
27913
27914 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27915
27916         * config/darwin-sections.def: Remove unused section.
27917
27918 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27919
27920         PR c++/47218
27921         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27922
27923 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27924
27925         PR objc/47232
27926         * c-parser.c (c_parser_declaration_or_fndef): Improved
27927         error message.
27928
27929 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27930
27931         * config/i386/winnt.c (i386_pe_start_function): Make sure
27932         to switch back to function's section.
27933
27934 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27935
27936         PR gcc/46902
27937         PR testsuite/46912
27938         * plugin.c: Move include of dlfcn.h from here...
27939         * system.h: ... to here.
27940
27941 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27942
27943         * doc/cpp.texi (C++ Named Operators): Fix markup for header
27944         file name.
27945         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27946         two extra empty pages in PDF output.
27947
27948 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
27949
27950         PR objc/47078
27951         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27952         for error recovery purposes behave as if it was not specified so
27953         that the default type is usd.
27954
27955 2011-01-07  Jan Hubicka  <jh@suse.cz>
27956
27957         PR tree-optmization/46469
27958         * ipa.c (function_and_variable_visibility): Clear needed flags on
27959         nodes with external decls; handle weakrefs merging correctly.
27960
27961 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
27962
27963         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27964         not false.
27965
27966 2011-01-07  Jan Hubicka  <jh@suse.cz>
27967
27968         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27969         and no longer claim that gold is required for linker plugin.
27970         * configure: Regenerate.
27971         * gcc.c (PLUGIN_COND): New macro.
27972         (LINK_COMMAND_SPEC): Use it.
27973         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27974         * config.in (HAVE_LTO_PLUGIN): New.
27975         * configure.ac (--with-lto-plugin): New parameter; autodetect
27976         HAVE_LTO_PLUGIN.
27977
27978 2011-01-07  Jan Hubicka  <jh@suse.cz>
27979
27980         PR tree-optimization/46367
27981         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27982         when we can update original.
27983         (cgraph_mark_inline_edge): Sanity check.
27984         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27985
27986 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27987
27988         * config/spu/spu.h (ASM_COMMENT_START): Define.
27989
27990 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27991
27992         PR driver/42445
27993         * gcc.c (%>S): New.
27994         (SWITCH_KEEP_FOR_GCC): Likewise.
27995         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27996         (do_spec_1): Handle "%>".
27997
27998         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27999
28000 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
28001
28002         PR target/47201
28003         * config/i386/i386.c (ix86_delegitimize_address): If
28004         simplify_gen_subreg fails, return orig_x.
28005
28006         PR bootstrap/47187
28007         * value-prof.c (gimple_stringop_fixed_value): Handle
28008         lhs of the call properly.
28009
28010 2011-01-07  Jan Hubicka  <jh@suse.cz>
28011
28012         PR lto/45375
28013         * lto-opt.c (lto_reissue_options): Set flag_shlib.
28014
28015 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28016
28017         * target.def (function_switched_text_sections): New hook.
28018         * doc/tm.texi: Regenerated.
28019         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28020         * final.c (default_function_switched_text_sections): New.
28021         (final_scan_insn): Call function_switched_text_sections when a
28022         mid-function section change occurs.
28023         * output.h (default_function_switched_text_sections): Declare.
28024         * config/darwin-protos.h (darwin_function_switched_text_sections):
28025         Likewise.
28026         * config/darwin.c (darwin_function_switched_text_sections): New.
28027         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28028
28029 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28030
28031         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
28032         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
28033         the secondary code fragment when outputting for DWARF == 2.
28034
28035 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
28036
28037         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28038         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28039         Remove.
28040         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28041         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28042
28043 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28044
28045         PR debug/46704
28046         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28047         when it is not empty.
28048
28049 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
28050
28051         Bobcat Enablement
28052         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28053         (case ${target}): Add btver1.
28054         * config/i386/driver-i386.c (host_detect_local_cpu): Let
28055         -march=native recognize btver1 processors.
28056         * config/i386/i386-c.c (ix86_target_macros_internal): Add
28057         btver1 def_and_undef
28058         * config/i386/i386.c (struct processor_costs btver1_cost): New
28059         btver1 cost table.
28060         (m_BTVER1): New definition.
28061         (m_AMD_MULTIPLE): Includes m_BTVER1.
28062         (initial_ix86_tune_features): Add btver1 tune.
28063         (processor_target_table): Add btver1 entry.
28064         (static const char *const cpu_names): Add btver1 entry.
28065         (software_prefetching_beneficial_p): Add btver1.
28066         (ix86_option_override_internal): Add btver1 instruction sets.
28067         (ix86_issue_rate): Add btver1.
28068         (ix86_adjust_cost): Add btver1.
28069         * config/i386/i386.h (TARGET_BTVER1): New definition.
28070         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28071         (enum processor_type): Add PROCESSOR_BTVER1.
28072         * config/i386/i386.md (define_attr "cpu"): Add btver1.
28073
28074 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28075
28076         PR target/43309
28077         * config/i386/i386.c (legitimize_tls_address)
28078         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28079         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28080         (tls_initial_exec_64_sun): New pattern.
28081
28082 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28083
28084         * doc/invoke.texi (Overall Options): Improve wording and markup
28085         of the description of -wrapper.
28086
28087 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28088
28089         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28090         rdynamic, threads): New Driver options.
28091
28092 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28093
28094         PR target/38118
28095         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28096         if coming from .tdata.
28097         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28098
28099 2011-01-06  Jan Hubicka  <jh@suse.cz>
28100
28101         PR lto/47188
28102         * collect2.c (main): Do not enable LTOmode when plugin is active.
28103
28104 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28105
28106         PR other/45915
28107         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28108         --version output if supported.
28109         * configure: Regenerate.
28110
28111 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28112
28113         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28114         Driver options.
28115
28116 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
28117
28118         PR c/47150
28119         * c-convert.c (convert): When converting a complex expression
28120         other than COMPLEX_EXPR to a different complex type, ensure
28121         c_save_expr is called instead of save_expr, unless in_late_binary_op.
28122         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28123         when converting COMPLEX_TYPE.
28124
28125 2011-01-06  Ira Rosen  <irar@il.ibm.com>
28126
28127         PR tree-optimization/47139
28128         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28129         only the last reduction value is used outside the loop.  Update
28130         documentation.
28131
28132 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
28133
28134         * config/rtems.opt: New.
28135         * config.gcc (*-*-rtems*): Use rtems.opt.
28136
28137 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
28138
28139         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28140         processors do not support 3DNow instructions.
28141
28142 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28143
28144         * config/spu/spu.c (spu_option_override): Set parameter
28145         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28146
28147 2011-01-05  Jan Hubicka  <jh@suse.cz>
28148
28149         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28150         at the command line.
28151
28152 2011-01-05  Martin Jambor  <mjambor@suse.cz>
28153
28154         PR lto/47162
28155         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28156         deltas on streamed outgoing edges.
28157         (output_node_opt_summary): Output info for outgoing edges only when
28158         the node is in new parameter set.
28159         (output_cgraph_opt_summary): New parameter set, passed to the two
28160         aforementioned functions.  Update its forward declaration and its
28161         callee too.
28162
28163 2011-01-05  Tom Tromey  <tromey@redhat.com>
28164
28165         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28166         operator to c_finish_omp_atomic.
28167         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28168         (build_unary_op): Update.
28169         (build_modify_expr): Update.
28170         (build_asm_expr): Update.
28171
28172 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28173
28174         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28175         newly inserted insns.
28176         (pad_bb): Likewise.
28177         (spu_emit_branch_hint): Likewise.
28178         (insert_hbrp_for_ilb_runout): Likewise.
28179         (spu_machine_dependent_reorg): Call df_finish_pass after
28180         schedule_insns returns.
28181
28182 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28183
28184         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28185
28186 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28187
28188         PR tree-optimization/47005
28189         * tree-sra.c (struct access): Add 'non_addressable' bit.
28190         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28191         (decide_one_param_reduction): Return 0 if the parameter is passed by
28192         reference and one of the accesses in the group is non_addressable.
28193
28194 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28195
28196         PR tree-optimization/47056
28197         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28198         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
28199         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
28200
28201 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28202
28203         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28204         initializer.  Skip view conversions from aggregate types.
28205
28206 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
28207
28208         PR bootstrap/47055
28209         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28210
28211 2011-01-04  Philipp Thomas  <pth@suse.de>
28212
28213         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28214         obvious typo.
28215
28216 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28217
28218         * function.c (thread_prologue_and_epilogue_insns): Do not crash
28219         on empty epilogue sequences.
28220
28221 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
28222
28223         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28224         non-static): New Driver options.
28225
28226 2011-01-04  Jie Zhang  <jie@codesourcery.com>
28227
28228         PR driver/47137
28229         * gcc.c (default_compilers[]): Set combinable field to 0
28230         for all assembly languages.
28231
28232 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
28233
28234         * config/mips/loongson3a.md: New file.
28235         * config/mips/mips.md: Include loongson3a.md.
28236         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28237         TUNE_LOONGSON_3A.
28238
28239 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28240
28241         PR middle-end/47017
28242         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28243         instead of convert_memory_address_addr_space on the base expression.
28244
28245 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28246
28247         * config/spu/spu.c (spu_option_override): Update error text
28248         for bad -march= / -mtune= values.
28249
28250 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28251
28252         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28253         if branch-hint optimization will be performed.
28254
28255 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28256
28257         PR tree-optimization/47148
28258         * ipa-split.c (split_function): Convert arguments to
28259         DECL_ARG_TYPE if possible.
28260
28261         PR tree-optimization/47155
28262         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28263         when computing uns.
28264
28265         PR rtl-optimization/47157
28266         * combine.c (try_combine): If undobuf.other_insn becomes
28267         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28268         and set *new_direct_jump_p too.
28269
28270 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
28271
28272         PR tree-optimization/47021
28273         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28274
28275 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28276
28277         * gcc.c (process_command): Update copyright notice dates.
28278         * gcov.c (print_version): Likewise.
28279         * gcov-dump.c (print_version): Likewise.
28280         * mips-tfile.c (main): Likewise.
28281         * mips-tdump.c (main): Likewise.
28282
28283 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28284
28285         PR tree-optimization/46801
28286         * tree-sra.c (type_internals_preclude_sra_p): Check whether
28287         aggregate fields start at byte boundary instead of the bit-field flag.
28288
28289 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28290
28291         PR driver/47137
28292         * gcc.c (main): Revert revision 168407.
28293
28294 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28295
28296         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28297
28298 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28299
28300         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28301         vector optab to expand vector/scalar shift, update gimple to vector.
28302
28303 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28304
28305         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28306         a thunk.
28307
28308 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28309
28310         PR tree-optimization/46984
28311         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28312         HOST_WIDE_INT.
28313         (cgraph_create_indirect_edge): Fixed line length.
28314         (cgraph_indirect_call_info): Declare.
28315         (cgraph_make_edge_direct) Update declaration.
28316         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28317         (cgraph_create_indirect_edge): Use it.
28318         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
28319         callees.
28320         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28321         the new thunk_delta representation.
28322         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28323         HOST_WIDE_INT.
28324         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28325         (ipa_read_indirect_edge_info): Likewise.
28326         * lto-cgraph.c (output_edge_opt_summary): New function.
28327         (output_node_opt_summary): Call it on all outgoing edges.
28328         (input_edge_opt_summary): New function.
28329         (input_node_opt_summary): Call it on all outgoing edges.
28330
28331 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
28332
28333         PR driver/47137
28334         * gcc.c (main): Don't check have_o when settting combine_inputs.
28335
28336 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
28337
28338         * regrename.c: Add general comment describing the pass.
28339         (struct du_head): Remove 'length' field.
28340         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28341         (regrename_optimize): Do not sort chains.  Rework comments, add others.
28342         Force renaming to the preferred class (if any) in the first pass and do
28343         not consider registers that belong to it in the second pass.
28344         (create_new_chain): Do not set 'length' field.
28345         (scan_rtx_reg): Likewise.
28346
28347 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
28348
28349         PR tree-optimization/47140
28350         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28351         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28352         to bit_value_binop.
28353
28354         PR rtl-optimization/47028
28355         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28356         parm_birth_insn instead of at the beginning of first bb.
28357
28358 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
28359
28360         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28361         Remove the word "see" before "@pxref".
28362         * doc/rtl.texi: Remove the word "see" before "@pxref".
28363
28364 2011-01-01  Jan Hubicka  <jh@suse.cz>
28365
28366         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28367         memory.
28368
28369 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
28370
28371         PR target/38662
28372         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28373
28374 \f
28375 Copyright (C) 2011 Free Software Foundation, Inc.
28376
28377 Copying and distribution of this file, with or without modification,
28378 are permitted in any medium without royalty provided the copyright
28379 notice and this notice are preserved.