OSDN Git Service

PR other/49533
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-13  Jan Hubicka  <jh@suse.cz>
2
3         PR other/49533
4         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
5
6 2011-09-13  Jan Hubicka  <jh@suse.cz>
7
8         PR other/49533
9         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
10
11 2011-09-13  Paul Brook  <paul@codesourcery.com>
12  
13         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
15         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
16         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
17         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
18         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
19         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
20         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
21         enabling unwind tables.
22         (c6x_debug_unwind_info): New function.
23         (TARGET_ARM_EABI_UNWINDER): Define.
24         (TARGET_DEBUG_UNWIND_INFO): Define.
25         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
26         (TARGET_EXTRA_CFI_SECTION): Remove.
27         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
28         * ginclude/unwind-arm-common.h: New file.
29
30 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
31         
32         PR target/50358
33         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
34         * config/avr/avr.md: (extend_s): New code attribute.
35         (mul_r_d): New code attribute.
36         (*maddqihi4, *umaddqihi4): New insns.
37         (*msubqihi4, *umsubqihi4): New insns.
38         (*usmaddqihi4, *sumaddqihi4): New insns.
39         (*usmsubqihi4, *susubdqihi4): New insns.
40         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
41         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
42         (*umsubqihi4.uconst.ashift): New insn-and-split.
43         (*msubqihi4.sconst.ashift): New insn-and-split.
44         (*sumaddqihi4.uconst): New insn-and-split.
45         (*sumsubqihi4.uconst): New insn-and-split.
46         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
47         PLUS:HI and MINUS:HI.
48
49 2011-09-13  Revital Eres  <revital.eres@linaro.org>
50
51         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
52         (optimize_sc): Adjust call to remove_node_from_ps.
53         (sms_schedule): Add print info.
54
55 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
56
57         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
58         flags specially.
59
60 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
61
62         PR bootstrap/50010
63         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
64         NOTE_INSN_CFI notes, with the exception of
65         NOTE_INSN_SWITCH_TEXT_SECTIONS.
66
67 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
68             Richard Sandiford  <rdsandiford@googlemail.com>
69
70         * config/mips/mips.c (mips_epilogue): New structure.
71         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
72         restoring registers.
73         (mips_epilogue_emit_cfa_restores): New function.
74         (mips_epilogue_set_cfa): Likewise.
75         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
76         the current CFA register from the stack, redefine the CFA in terms
77         of the stack pointer.
78         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
79         to the epilogue instructions.
80
81 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
82
83         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
84         argument.
85         (mips16e_build_save_restore): Update accordingly.
86
87 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
88
89         PR rtl-optimization/50212
90         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
91         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
92
93         PR debug/50299
94         * calls.c (load_register_parameters): Use use_reg_mode instead
95         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
96         entry.
97         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
98         for stack CALL_INSN_FUNCTION_USAGE uses.
99         * expr.h (use_reg_mode): New prototype.
100         (use_reg): Changed into inline around use_reg_mode.
101         * expr.c (use_reg): Renamed to...
102         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
103         mode to that mode instead of VOIDmode.
104         * var-tracking.c (prepare_call_arguments): Don't track parameters
105         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
106         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
107         EXPR_LIST mode.
108
109 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
110
111         PR target/43746
112         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
113         (progmem_section): New Variable.
114         (avr_asm_init_sections): Initialize it.
115         (TARGET_ASM_SELECT_SECTION): Define to...
116         (avr_asm_select_section): ... this new Function.
117         (avr_replace_prefix): New Function.
118         (avr_asm_function_rodata_section): Use it.
119         (avr_insert_attributes): Don't add section attribute for PROGMEM.
120         (avr_section_type_flags): Use avr_progmem_p instead of section
121         name to detect if object is in PROGMEM.
122         (avr_asm_named_section): Set section name prefix for objects in
123         PROGMEM.
124
125 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
126
127         PR bootstrap/50352
128         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
129         sprintf format string.
130
131 2011-09-12  Richard Guenther  <rguenther@suse.de>
132
133         PR tree-optimization/50343
134         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
135         that the reduction is over an SSA name before checking its
136         definition.
137
138 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
139
140         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
141         throughout file.
142
143 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
144
145         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
146         throughout file.
147         * config/mips/sb1.md: Likewise.
148         * config/mips/predicates.md: Replace (match_test "!...")
149         with (not (match_test "..."))
150         * config/mips/constraints.md: Likewise.
151
152 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
153
154         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
155         * config/arm/arm-tables.opt: Regenerate.
156         * config/arm/arm-tune.md: Regenerate.
157         * config/arm/arm.c (arm_file_start): Output .arch directive when
158         user passes -mcpu=generic-*.
159         (arm_issue_rate): Add genericv7a support.
160         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
161         (ASM_CPU_SPEC): New define.
162         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
163         * config/arm/semi.h (ASM_SPEC): Likewise.
164         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
165         and -mtune=generic-*.
166
167 2011-09-09  Richard Guenther  <rguenther@suse.de>
168
169         PR tree-optimization/50328
170         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
171         constant or default-def operand.
172
173 2011-09-09  Richard Guenther  <rguenther@suse.de>
174
175         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
176         last statement.
177
178 2011-09-09  Richard Guenther  <rguenther@suse.de>
179
180         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
181         instead of a statement.
182         * gimple-fold.c (fold_stmt_inplace): Likewise.
183         * sese.c (graphite_copy_stmts_from_block): Adjust.
184         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
185         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
186         fold_stmt.
187         (forward_propagate_addr_into_variable_array_index): Likewise.
188         (forward_propagate_addr_expr_1): adjust.
189         (associate_plusminus): Likewise.
190         (ssa_forward_propagate_and_combine): Likewise.
191         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
192         (execute_cse_reciprocals): Likewise.
193         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
194
195 2011-09-09  Nick Clifton  <nickc@redhat.com>
196
197         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
198         Return a positive value to indicate that the bits at the
199         bottom of the register should be cleared.
200
201 2011-09-09  Richard Guenther  <rguenther@suse.de>
202
203         * tree-ssa-operands.c (swap_tree_operands): Always adjust
204         existing operand positions.
205
206 2011-09-09  Richard Guenther  <rguenther@suse.de>
207
208         PR middle-end/50333
209         * tree-data-ref.c (split_constant_offset): Do not try to handle
210         ternary ops.
211
212 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
213
214         PR tree-optimization/50318
215         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
216         typo in use of mult_rhs1 and mult_rhs2.
217
218 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
219
220         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
221         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
222
223 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
224
225         * config/arm/arm.md (push_multi): Emit predicates.
226         (push_fp_multi): Likewise.
227         * config/arm/arm.c (vfp_output_fstmd): Likewise.
228
229 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
230
231         PR c++/33255 - Support -Wunused-local-typedefs warning
232         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
233         (pushdecl): Use the new record_locally_defined_typedef.
234         (store_parm_decls): Allocate cfun->language.
235         (finish_function): Use the new maybe_warn_unused_local_typedefs,
236         and free cfun->language.
237         (c_push_function_context): Allocate cfun->language here only if needed.
238         (c_pop_function_context): Likewise, mark cfun->language
239         for collection only when it should be done.
240         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
241         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
242         maybe_record_local_typedef_use.
243         * doc/invoke.texi: Update documentation for
244         -Wunused-local-typedefs.
245
246 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
247
248         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
249         (ix86_avoid_lea_for_add): Likewise.
250         (ix86_avoid_lea_for_addr): Likewise.
251         (ix86_split_lea_for_addr): Likewise.
252
253         * config/i386/i386.c (LEA_MAX_STALL): New.
254         (increase_distance): Likewise.
255         (insn_defines_reg): Likewise.
256         (insn_uses_reg_mem): Likewise.
257         (distance_non_agu_define_in_bb): Likewise.
258         (distance_agu_use_in_bb): Likewise.
259         (ix86_lea_outperforms): Likewise.
260         (ix86_ok_to_clobber_flags): Likewise.
261         (ix86_avoid_lea_for_add): Likewise.
262         (ix86_avoid_lea_for_addr): Likewise.
263         (ix86_split_lea_for_addr): Likewise.
264         (distance_non_agu_define): Search in pred BBs added.
265         (distance_agu_use): Search in succ BBs added.
266         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
267         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
268         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
269
270         * config/i386/i386.md: Split added to transform non destructive
271         add into move and add.
272         (lea_1): transformed into insn_and_split to avoid AGU stalls.
273         (lea<mode>_2): Likewise.
274
275 2011-09-08  Martin Jambor  <mjambor@suse.cz>
276
277         PR tree-optimization/50287
278         * ipa-split.c (split_function): Do not create SSA names for
279         non-gimple-registers.
280
281 2011-09-08  Richard Guenther  <rguenther@suse.de>
282
283         PR tree-optimization/19831
284         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
285         skip builtins with vdefs that do not really store something.
286         (propagate_necessity): For calls to free that we can associate
287         with an allocation function do not mark the freed pointer
288         definition necessary.
289         (eliminate_unnecessary_stmts): Remove a call to free if
290         the associated call to an allocation function is not necessary.
291
292 2011-09-08  Richard Guenther  <rguenther@suse.de>
293
294         PR tree-optimization/19831
295         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
296         allocation functions as necessary.
297
298 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
299
300         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
301         cut from ...
302         (darwin_default_min_version): Amended to provide defaults
303         for the cross directory case.
304         (darwin_driver_init): call darwin_default_min_version unconditionally.
305         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
306         * config/darwin9.h: Likewise.
307         * config/darwin10.h: Likewise.
308         * config/rs6000/darwin7.h: Likewise.
309
310 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
311
312         PR target/50310
313         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
314         code early if TARGET_AVX.
315         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
316
317 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
318
319         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
320         duplicates.
321
322         PR target/50310
323         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
324         "mode" attribute computation.
325
326 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
327
328         * regrename.c (struct du_head): Make nregs signed.
329         (closed_chains): Remove.
330         (create_new_chain): Return the new chain.
331         (chain_from_id): New static function.
332         (dump_def_use_chain): Change argument to be an int, indicating
333         the first ID to print.  All callers changed.
334         (merge_overlapping_regs): Use chain_from_id.  Assert that
335         chains don't conflict with themselves.
336         (rename_chains): Take no argument.  Iterate over id_to_chain
337         rather to find chains to rename.  Clear tick before the main loop.
338         (struct incoming_reg_info): New struct.
339         (struct bb_rename_info): New struct.
340         (init_rename_info, set_incoming_from_chain, merge_chains): New
341         static functions.
342         (regrename_analyze): New static function, broken out of
343         regrename_optimize.  Record and make use of open chain information
344         at basic block boundaries, and merge chains where possible.
345         (scan_rtx_reg): Make this_nregs signed.  Don't update
346         closed_chains.
347         (build_def_use): Return a bool to indicate success.  All callers
348         changed.  Don't initialize global data here.
349         (regrename_optimize): Move most code out of here into
350         regrename_analyze.
351         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
352         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
353         static inline functions.
354         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
355
356         * bb-reorder.c (insert_section_boundary_note): Don't check
357         optimize_function_for_speed_p.
358         (gate_handle_partition_blocks): Do it here instead.
359         (gate_handle_reorder_blocks): Move preliminary checks here ...
360         (rest_of_handle_reorder_blocks): ... from here.
361
362 2011-09-07  Martin Jambor  <mjambor@suse.cz>
363
364         PR middle-end/50301
365         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
366         function index bounds.
367         (perhaps_add_new_callers): Likewise.
368
369 2011-09-07  Martin Jambor  <mjambor@suse.cz>
370
371         PR tree-optimization/49911
372         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
373         enumerations to the corresponding plain integer type.
374
375 2011-09-07  Richard Guenther  <rguenther@suse.de>
376
377         PR tree-optimization/50319
378         * tree-if-conv.c (set_bb_predicate): Assert we only set
379         canonical predicates.
380         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
381         around canonical predicates.
382         (predicate_bbs): Do not re-gimplify already canonical
383         predicates.  Properly unshare them though.
384         (find_phi_replacement_condition): Simplify.
385
386 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
387
388         PR target/49030
389         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
390         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
391         reusing the old code from get_arm_condition_code.  Return ARM_NV
392         for invalid comparison codes.
393         (get_arm_condition_code): Redefine in terms of
394         maybe_get_arm_condition_code.
395         * config/arm/predicates.md (arm_comparison_operator): Use
396         maybe_get_arm_condition_code.
397
398 2011-09-07  Richard Guenther  <rguenther@suse.de>
399
400         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
401         Canonicalize negated predicates by swapping edges.
402         (forward_propagate_into_cond): Likewise.
403
404 2011-09-07  Richard Guenther  <rguenther@suse.de>
405
406         PR tree-optimization/50213
407         * tree-flow.h (simple_iv_increment_p): Declare.
408         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
409         POINTER_PLUS_EXPR.
410         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
411         not propagate simple IV counter increments.
412
413 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
414             Iain Sandoe  <iains@gcc.gnu.org>
415
416         * config/rs6000/rs6000.c (compute_save_world_info): Test
417         cfun->has_nonlocal_label to determine if the out-of-line save
418         world call may be used.
419
420 2011-09-07  Nick Clifton  <nickc@redhat.com>
421
422         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
423         label on the parallel part of the insn.
424
425 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
426
427         PR debug/50191
428         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
429         avoid_constant_pool_reference first instead of last.
430
431 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
432
433         * doc/configfiles.texi (Configuration Files): Update documentation
434         about tm_p.h and remove FIXME comment.
435
436 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
437
438         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
439         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
440
441 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
442
443         * config/darwin10.h Remove duplicate LIB_SPEC.
444
445 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
446
447         PR middle-end/44382
448         * target.def (reassociation_width): New hook.
449
450         * doc/tm.texi.in (reassociation_width): Likewise.
451
452         * doc/tm.texi (reassociation_width): Likewise.
453
454         * doc/invoke.texi (tree-reassoc-width): New param documented.
455
456         * hooks.h (hook_int_uint_mode_1): New default hook.
457
458         * hooks.c (hook_int_uint_mode_1): Likewise.
459
460         * config/i386/i386.h (ix86_tune_indices): Add
461         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
462
463         (TARGET_REASSOC_INT_TO_PARALLEL): New.
464         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
465
466         * config/i386/i386.c (initial_ix86_tune_features): Add
467         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
468
469         (ix86_reassociation_width): New function.
470
471         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
472
473         * tree-ssa-reassoc.c (get_required_cycles): New function.
474         (get_reassociation_width): Likewise.
475         (swap_ops_for_binary_stmt): Likewise.
476         (rewrite_expr_tree_parallel): Likewise.
477
478         (rewrite_expr_tree): Refactored.  Part of code moved into
479         swap_ops_for_binary_stmt.
480
481         (reassociate_bb): Now checks reassociation width to be used and
482         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
483
484 2011-09-06  Richard Guenther  <rguenther@suse.de>
485
486         PR tree-optimization/47025
487         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
488         uses nothing.
489         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
490         BUILT_IN_FREE.
491         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
492         definitely points to.
493         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
494         BUILT_IN_VA_START doesn't let its va_list argument escape.
495         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
496         not make any previous stores necessary.
497
498 2011-09-06  Martin Jambor  <mjambor@suse.cz>
499
500         * ipa-inline.h (struct inline_summary): Move versionable flag...
501         * cgraph.h (struct cgraph_local_info): ...here
502         * ipa-cp.c (determine_versionability): Use the new versionable flag.
503         (determine_versionability): Likewise.
504         (ipcp_versionable_function_p): Likewise.
505         (ipcp_generate_summary): Likewise.
506         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
507         versionable flag.
508         (compute_inline_parameters): Do not clear the versionable flag.
509         (inline_read_section): Do not stream the versionable flag.
510         (inline_write_summary): Likewise.
511         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
512         (input_overwrite_node): Likewise.
513
514 2011-09-06  Richard Guenther  <rguenther@suse.de>
515
516         PR tree-optimization/48149
517         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
518         (vn_valueize): Move earlier.
519         (valueize_expr): Use vn_valueize.
520         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
521         operands.
522         (simplify_unary_expression): Simplify.
523
524 2011-09-06  Richard Guenther  <rguenther@suse.de>
525
526         PR tree-optimization/48317
527         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
528         trailing array.
529         (sizeof_vn_nary_op): New inline function.
530         (vn_nary_op_lookup_pieces): Adjust.
531         (vn_nary_op_insert_pieces): Likewise.
532         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
533         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
534         any number of operands.
535         (vn_nary_length_from_stmt): New function.
536         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
537         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
538         sized temporary.
539         (vn_nary_op_lookup): Likewise.
540         (vn_nary_op_lookup_stmt): Likewise.
541         (vn_nary_op_insert_into): Likewise.
542         (vn_nary_op_insert_stmt): Likewise.
543         (visit_use): Handle CONSTRUCTOR as nary.
544         * tree-ssa-pre.c (phi_translate_1): Adjust.
545         (create_expression_by_pieces): Likewise.
546         (compute_avail): Likewise.
547
548 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
549
550          * config/arm/arm.c (arm_preferred_simd_mode): Check
551         TARGET_NEON_VECTORIZE_DOUBLE instead of
552         TARGET_NEON_VECTORIZE_QUAD.
553         (arm_autovectorize_vector_sizes): Likewise.
554         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
555         mask of mvectorize-with-neon-double.  Add RejectNegative.
556         (mvectorize-with-neon-double): New.
557
558 2011-09-06  Richard Guenther  <rguenther@suse.de>
559
560         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
561
562 2011-09-06  Tom de Vries  <tom@codesourcery.com>
563
564         * recog.c (asm_labels_ok): New function.
565         (check_asm_operands): Use asm_labels_ok.
566
567 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
568
569         PR target/49606
570         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
571         (PMODE_INSN): New macro.
572         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
573         (mips_got_load, mips_expand_synci_loop): Likewise.
574         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
575         cprestore patterns.
576         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
577         copygp_mips16 patterns.
578         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
579         and use_cprestore patterns.
580         (mips_override_options): Check for incompatible -mabi and -mlong
581         combinations.
582         * config/mips/mips.md (unspec_got<mode>): Rename to...
583         (unspec_got_<mode>): ...this.
584         (copygp_mips16): Use the Pmode iterator.
585         (potential_cprestore, cprestore, use_cprestore): Likewise.
586         (clear_cache, indirect_jump): Use PMODE_INSN.
587         (indirect_jump<mode>): Rename to...
588         (indirect_jump_<mode>): ...this.
589         (tablejump): Use PMODE_INSN.
590         (tablejump<mode>): Rename to...
591         (tablejump_<mode>): ...this.
592         (exception_receiver): Handle restore_gp_si and restore_gp_di.
593         (restore_gp): Use the Pmode iterator.
594         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
595         PMODE_INSN.
596
597 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
598
599         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
600         Fix the type of the BIT_AND_EXPR.
601
602 2011-09-05  David S. Miller  <davem@davemloft.net>
603
604         * config.host: Add driver-sparc.o and sparc/x-sparc on
605         native sparc*-*-linux* builds.
606         * config/sparc/driver-sparc.c: Correct Linux strings.
607         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
608         * config/sparc/linux64.h: Likewise.
609         * doc/invoke.texi: Document that Linux also supports
610         -mcpu=native and -mtune=native on sparc.
611
612         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
613         PROCESSOR_NIAGARA4): New.
614         * config/sparc/sparc.opt: Handle new processor types.
615         * config/sparc/sparc.md: Add to "cpu" attribute.
616         * config/sparc/sparc.h (TARGET_CPU_niagara3,
617         TARGET_CPU_niagara4): New, treat as niagara2.
618         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
619         * config/sparc/sol2.h: Likewise.
620         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
621         * config/sparc/sparc.c (sparc_option_override): Add
622         niagara3 and niagara4 handling.
623         (sparc32_initialize_trampoline): Likewise.
624         (sparc64_initialize_trampoline): Likewise.
625         (sparc_use_sched_lookahead): Likewise.
626         (sparc_issue_rate): Likewise.
627         (sparc_register_move_cost): Likewise.
628         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
629         and niagara4 as appropriate.
630         * doc/invoke.texi: Document new processor types.
631         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
632         and --with-tune options.
633
634         * config/sparc/sol2-64.h: Move ...
635         * config/sparc/default-64.h: ... to here.  Update comment.
636         * config.gcc: Update Solaris sparc to use default-64.h, also
637         prefix this header into the list on sparc64-*-linux.
638         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
639         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
640         to MASK_HARD_QUAD.
641
642 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
643
644         PR target/50289
645         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
646         that contain global register variable.
647
648 2011-09-05  Richard Guenther  <rguenther@suse.de>
649
650         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
651
652 2011-09-05  Richard Guenther  <rguenther@suse.de>
653
654         * stor-layout.c (layout_type): Use size_binop for array size
655         calculations.
656
657 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
658
659         * config/avr/avr.h (progmem_section): Remove Declaration.
660         * config/avr/avr.c (progmem_section): Make static and rename to
661         progmem_swtable_section.
662         (avr_output_addr_vec_elt): No need to switch sections.
663         (avr_asm_init_sections): Use output_section_asm_op as section
664         callback for progmem_swtable_section.
665         (avr_output_progmem_section_asm_op): Remove Function.
666         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
667         (avr_asm_function_rodata_section): New static Function.
668         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
669         alignment 2**1 for jump tables.
670
671 2011-09-04  Jan Hubicka  <jh@suse.cz>
672
673         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
674         parameter is SSA name.
675
676 2011-09-04  Richard Guenther  <rguenther@suse.de>
677
678         Revert
679         2011-08-31  Richard Guenther  <rguenther@suse.de>
680
681         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
682         special-casing.
683
684 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
685
686         PR debug/49901
687         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
688
689 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
690             Ira Rosen  <ira.rosen@linaro.org>
691
692         PR tree-optimization/50208
693         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
694         argument.  Check that def_stmt is inside the loop.
695         (vect_recog_widen_mult_pattern): Update calls to
696         vect_handle_widen_mult_by_cons.
697         (vect_operation_fits_smaller_type): Check that def_stmt is
698         inside the loop.
699
700 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
701
702         * tree-vectorizer.c (vect_print_dump_info): Print line
703         number when dumping to a file.
704         (vectorize_loops): Add new messages to dump file.
705
706 2011-09-03  Martin Jambor  <mjambor@suse.cz>
707
708         * ipa-prop.h (ipa_jump_func_t): New typedef.
709         (struct ipa_edge_args): Removed field argument_count, field
710         jump_functions turned into a vector.
711         (ipa_set_cs_argument_count): Removed.
712         (ipa_get_cs_argument_count): Updated to work on vectors.
713         (ipa_get_ith_jump_func): Likewise.
714         * ipa-prop.c (ipa_count_arguments): Removed.
715         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
716         jump functions.  Update caller.
717         (compute_pass_through_member_ptrs): Likewise.
718         (compute_cst_member_ptr_arguments): Likewise.
719         (ipa_compute_jump_functions_for_edge): Get number of arguments from
720         the statement, allocate vector.
721         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
722         (duplicate_ipa_jump_func_array): Removed.
723         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
724         (ipa_read_node_info): Allocate vector.
725
726 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
727
728         PR middle-end/50232
729         * config/pa/pa.md (return): Define "return" insn pattern.
730         (epilogue): Use it when no epilogue is needed.
731         * config/pa/pa.c (pa_can_use_return_insn): New function.
732         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
733
734 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
735
736         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
737         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
738         Force at least BITS_PER_UNIT alignment on the new variable.
739
740 2011-09-02  Gary Funck <gary@intrepid.com>
741
742         * opts.c (print_specific_help): Fix off-by-one compare in
743         assertion check.
744         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
745         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
746         Increase by +5 to allow for more languages.
747         * optc-gen.awk: Generate #if that ensures that the number of
748         languages is within the implementation-defined limit.
749
750 2011-09-02  Michael Matz  <matz@suse.de>
751
752         PR middle-end/50260
753         * ipa-split.c (split_function): Call add_referenced_var.
754
755         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
756         (cond_if_else_store_replacement_1): Ditto.
757         * tree-ssa-pre.c (get_representative_for): Ditto.
758         (create_expression_by_pieces): Ditto.
759         (insert_into_preds_of_block): Ditto.
760         * tree-sra.c (create_access_replacement): Ditto.
761         (get_replaced_param_substitute): Ditto.
762
763 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
764
765         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
766         automata_options.
767         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
768         (l1w, s1w, l2w, s2w): Define in the main automaton.
769         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
770         units.
771         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
772         (c6x_unit_names): Add the new units.
773         (c6x_unit_codes): New static array.
774         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
775         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
776         UNIT_QID_SIDE_OFFSET): New macros.
777         (RESERVATION_S2): Adjust value.
778         (c6x_option_override): Compute c6x_unit_codes.
779         (assign_reservations): Take the unit_mask of the last instruction
780         into account.  Detect floating point reservations by looking for
781         the new units.  Don't assign reservations if the field is already
782         nonzero.
783         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
784         (init_sched_state): Initialize it.
785         (c6x_clear_sched_context): Free it.
786         (insn_set_clock): Clear reservation.
787         (prev_cycle_state): New static variable.
788         (c6x_init_sched_context): Save it.
789         (c6x_sched_init): Allocate space for it and clear it.
790         (c6x_sched_dfa_pre_cycle_insn): New static function.
791         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
792         (c6x_variable_issue): Only record units in the unit_mask that
793         were not set at the start of the cycle.
794         (c6x_variable_issue): Compute and store the unit_mask from the
795         current state.
796         (reorg_split_calls): Ensure the new information remains correct.
797         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
798         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
799         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
800         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
801         Add special reservations.
802         * config/c6x/c6x-sched.md: Regenerate.
803
804 2011-09-02  Martin Jambor  <mjambor@suse.cz>
805
806         * ipa-prop.h (ipa_node_params): Removed fields
807         called_with_var_arguments and node_versionable.
808         (ipa_set_called_with_variable_arg): Removed.
809         (ipa_is_called_with_var_arguments): Likewise.
810         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
811         (determine_versionability): Do not check for type attributes and va
812         builtins.  Record versionability into inline summary.
813         (initialize_node_lattices): Do not check
814         ipa_is_called_with_var_arguments.
815         (propagate_constants_accross_call): Likewise, ignore arguments we do
816         not have PARM_DECLs for, set variable flag for parameters that were
817         not passed a value.
818         (create_specialized_node): Dump info that we cannot change signature.
819         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
820         number of arguments.
821         (ipa_make_edge_direct_to_target): Likewise.
822         (ipa_update_after_lto_read): Likewise.
823         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
824         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
825         they were remapped.
826
827 2011-09-02  Richard Guenther  <rguenther@suse.de>
828
829         PR tree-optimization/27460
830         PR middle-end/29269
831         * doc/md.texi (vcond): Document.
832         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
833         optab with two modes.
834         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
835         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
836         (vcond_optab): Adjust.
837         (vcondu_optab): Likewise.
838         (expand_vec_cond_expr_p): Adjust prototype.
839         * optabs.c (get_vcond_icode): Adjust.
840         (expand_vec_cond_expr_p): Likewise.
841         (expand_vec_cond_expr): Likewise.
842         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
843         vector type.
844         (vectorizable_condition): Allow differing types for comparison
845         and result.
846         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
847         for the comparison.
848         * config/i386/sse.md (vcond<mode>): Split to
849         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
850         vcond<V_128:mode><VI124_128:mode> and
851         vcondu<V_128:mode><VI124_128:mode>.
852         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
853         (vconduv2di): Likewise.
854         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
855         (vcondu<mode>): Likewise.
856         * config/ia64/vect.md (vcond<mode>): Likewise.
857         (vcondu<mode>): Likewise.
858         (vcondv2sf): Likewise.
859         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
860         * config/rs6000/paired.md (vcondv2sf): Likewise.
861         * config/rs6000/vector.md (vcond<mode>): Likewise.
862         (vcondu<mode>): Likewise.
863         * config/spu/spu.md (vcond<mode>): Likewise.
864         (vcondu<mode>): Likewise.
865
866 2011-09-02  Richard Guenther  <rguenther@suse.de>
867
868         * pretty-print.h (pp_unsigned_wide_integer): New.
869         * tree-pretty-print.c (dump_generic_node): Print unsigned
870         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
871
872 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
873
874         PR target/49987
875         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
876         valid CONST_VECTOR operands.
877         (rs6000_expand_vector_init): Likewise.
878
879 2011-09-02  Martin Jambor  <mjambor@suse.cz>
880
881         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
882         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
883         BINFO_VTABLE.  Parameter delta removed, all callers updated.
884         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
885         BINFO_VTABLE.
886         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
887         all calls.
888         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
889         handling of thunk_delta.
890         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
891         (devirtualization_time_bonus): Do not handle thunk deltas.
892         (ipcp_discover_new_direct_edges): Likewise.
893         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
894         (try_make_edge_direct_simple_call): Likewise.
895         (try_make_edge_direct_virtual_call): Likewise.
896         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
897         parameter set as unused.
898         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
899         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
900         parameter set as unused.
901         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
902         (input_edge_opt_summary): Likewise.
903         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
904         BINFO_VIRTUALS at all.
905         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
906
907 2011-09-02  Richard Guenther  <rguenther@suse.de>
908
909         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
910         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
911
912 2011-08-31  Richard Guenther  <rguenther@suse.de>
913
914         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
915         handling here, from ...
916         (expand_expr_real_1): ... here.
917         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
918         and VEC_COND_EXPR.
919         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
920         a GIMPLE_TERNARY_RHS.
921         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
922         and VEC_COND_EXPR here ...
923         (verify_gimple_assign_single): ... not here.
924         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
925         * tree-object-size.c (cond_expr_object_size): Adjust.
926         (collect_object_sizes_for): Likewise.
927         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
928         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
929         (ssa_forward_propagate_and_combine): Adjust.
930         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
931         as ternary.
932         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
933         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
934         * tree-vect-stmt.c (vectorizable_condition): Likewise.
935         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
936         (extract_range_from_assignment): Likewise.
937
938 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
939
940         * config/i386/i386.md: Use (match_test ...) for attribute tests.
941         * config/i386/mmx.md: Likewise.
942         * config/i386/sse.md: Likewise.
943         * config/i386/predicates.md (call_insn_operand): Use
944         (not (match_test "...")) instead of (match_test "!...")
945         * config/i386/constraints.md (w): Likewise.
946
947 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
948
949         * doc/md.texi: Describe the use of match_tests in attribute tests.
950         * rtl.def (MATCH_TEST): Update commentary.
951         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
952         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
953
954 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
955
956         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
957         (attr_string): Use copy_md_ptr_loc.
958
959 2011-08-31  Martin Jambor  <mjambor@suse.cz>
960
961         PR middle-end/49886
962         * ipa-inline-analysis.c (compute_inline_parameters): Set
963         can_change_signature of noes with typde attributes.
964         * ipa-split.c (split_function): Do not skip any arguments if
965         can_change_signature is set.
966
967 2011-08-31  Martin Jambor  <mjambor@suse.cz>
968
969         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
970         check removed.
971
972 2011-08-31  Richard Guenther  <rguenther@suse.de>
973
974         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
975         special-casing.
976
977 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
978
979         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
980
981 2011-08-31  Tom de Vries  <tom@codesourcery.com>
982
983         PR middle-end/43513
984         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
985         * tree-ssa-ccp.c (params.h): Include.
986         (fold_builtin_alloca_for_var): New function.
987         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
988
989 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
990
991         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
992         Handle FMA option.
993
994 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
995
996         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
997         b3 and b4 unsigned.
998
999 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1000
1001         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1002         when code is SET.
1003
1004 2011-08-30  Richard Guenther  <rguenther@suse.de>
1005
1006         PR middle-end/48571
1007         * gimple.h (maybe_fold_offset_to_address): Remove.
1008         (maybe_fold_offset_to_reference): Likewise.
1009         (maybe_fold_stmt_addition): Likewise.
1010         (may_propagate_address_into_dereference): Likewise.
1011         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1012         array references.
1013         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1014         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1015         addresses instead.
1016         (may_propagate_address_into_dereference): Remove.
1017         (maybe_fold_offset_to_array_ref): Likewise.
1018         (maybe_fold_offset_to_reference): Likewise.
1019         (maybe_fold_offset_to_address): Likewise.
1020         (maybe_fold_stmt_addition): Likewise.
1021         (fold_gimple_assign): Do not reconstruct array references but
1022         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1023         MEM_REF addresses.
1024         (gimple_fold_stmt_to_constant_1): Likewise.
1025         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1026         * gimplify.c (gimplify_conversion): Likewise.
1027         (gimplify_expr): Likewise.
1028
1029 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
1030
1031         * config/i386/fmaintrin.h: New.
1032         * config.gcc: Add fmaintrin.h.
1033         * config/i386/i386.c
1034         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1035         <IX86_BUILTIN_VFMADDSD3>: Likewise.
1036         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1037         (*fmai_fmadd_<mode>): Likewise.
1038         (*fmai_fmsub_<mode>): Likewise.
1039         (*fmai_fnmadd_<mode>): Likewise.
1040         (*fmai_fnmsub_<mode>): Likewise.
1041         * config/i386/immintrin.h: Add fmaintrin.h.
1042
1043 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
1044
1045         * genautomata.c (NO_COMB_OPTION): New macro.
1046         (no_comb_flag): New static variable.
1047         (gen_automata_option): Handle NO_COMB_OPTION.
1048         (comb_vect_p): False if no_comb_flag.
1049         (add_vect): Move computation of min/max values.  Return early if
1050         no_comb_flag.
1051         * doc/md.texi (automata_option): Document no-comb-vect.
1052
1053         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1054         "__x86.get_pc_thunk".
1055
1056         * bb-reorder.c (insert_section_boundary_note): Only do it if
1057         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1058
1059 2011-08-30  Christian Bruel  <christian.bruel@st.com>
1060
1061         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1062         flag_profile_use.
1063
1064 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1065
1066         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1067         to off.  Document switch.
1068         * doc/invoke.texi (-msave-toc-indirect): Ditto.
1069
1070 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1071
1072         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1073         conditionals and comments inside macro arguments.
1074
1075 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1076             Richard Guenther  <rguenther@suse.de>
1077
1078         * tree.h (constant_boolean_node): Adjust prototype.
1079         * fold-const.c (fold_convert_loc): Move aggregate conversion
1080         leeway down.
1081         (constant_boolean_node): Make value parameter boolean, add
1082         vector type handling.
1083         (fold_unary_loc): Use constant_boolean_node.
1084         (fold_binary_loc): Preserve types properly when folding
1085         COMPLEX_EXPR <__real x, __imag x>.
1086         * gimplify.c (gimplify_expr): Handle vector comparison.
1087         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1088         comparison.
1089         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1090         comparisons.
1091
1092 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1093
1094         PR middle-end/48722
1095         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1096         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1097         (verify_rtl_sharing): Likewise and verify_rtx_sharing
1098         in there too.
1099         (unshare_all_rtl_in_chain): For CALL_INSNs
1100         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1101
1102 2011-08-29  Richard Guenther  <rguenther@suse.de>
1103
1104         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1105         on the built ADDR_EXPR.
1106
1107 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR debug/50215
1110         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1111         before adding ENTRY_VALUE to val->locs.
1112
1113 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
1114
1115         PR bootstrap/50218
1116         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1117         comp.
1118
1119 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
1120
1121         * doc/rtl.texi (simple_return): Document.
1122         (parallel, PATTERN): Here too.
1123         * doc/md.texi (return): Mention it's allowed to expand to simple_return
1124         in some cases.
1125         (simple_return): Document standard pattern.
1126         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1127         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1128         * reorg.c (function_return_label, function_simple_return_label):
1129         New static variables, replacing...
1130         (end_of_function_label): ... this.
1131         (simplejump_or_return_p): New static function.
1132         (optimize_skip, steal_delay_list_from_fallthrough,
1133         fill_slots_from_thread): Use it.
1134         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
1135         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1136         (find_end_label): Take a new arg which is one of the two return
1137         rtxs.  Depending on which, set either function_return_label or
1138         function_simple_return_label.  All callers changed.
1139         (make_return_insns): Make both kinds.
1140         (dbr_schedule): Adjust for two kinds of end labels.
1141         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1142         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1143         (gen_expand, gen_split): Use ANY_RETURN_P.
1144         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1145         * rtl.def (SIMPLE_RETURN): New code.
1146         * ifcvt.c (find_if_case_1): Be more careful about
1147         redirecting jumps to the EXIT_BLOCK.
1148         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1149         returnjump_p_1): Handle SIMPLE_RETURNs.
1150         * print-rtl.c (print_rtx): Likewise.
1151         * rtl.c (copy_rtx): Likewise.
1152         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1153         * combine.c (simplify_set): Likewise.
1154         * resource.c (find_dead_or_set_registers, mark_set_resources):
1155         Likewise.
1156         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1157         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1158         (init_emit_regs): Initialize simple_return_rtx.
1159         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1160         force_nonfallthru_and_redirect.
1161         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1162         (GR_SIMPLE_RETURN): New enum value.
1163         (simple_return_rtx): New macro.
1164         * basic-block.h (force_nonfallthru_and_redirect): Adjust
1165         declaration.
1166         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1167         argument.  All callers changed.  Be careful about what kinds of
1168         returnjumps to generate.
1169         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1170         ix86_pad_short_function): Likewise.
1171         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1172         of return.
1173         * config/mips/mips.md (any_return): New code_iterator.
1174         (optab): Add cases for return and simple_return.
1175         (return): Expand to a simple_return.
1176         (simple_return): New pattern.
1177         (*<optab>, *<optab>_internal for any_return): New patterns.
1178         (return_internal): Remove.
1179         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1180         a simple_return_internal.
1181
1182 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1183
1184         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1185         (vec_extract_lo_<mode>): Prevent both operands in memory.
1186         (vec_extract_lo_v16hi): Ditto.
1187         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1188
1189 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1190
1191         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1192         (*sse2_mulv4si3): Ditto.
1193         (mulv2di3): Ditto.
1194         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1195         notes to REG_EQUAL.
1196
1197 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
1198
1199         PR target/50202
1200         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1201         when all outputs are unused.
1202         (sse4_2_pcmpistr): Ditto.
1203
1204 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1205
1206         * config/i386/i386.md (round<mode>2): New expander.
1207         * config/i386/i386.c (enum ix86_builtins): Add
1208         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1209         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1210         descriptions.
1211         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1212         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1213
1214 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
1215
1216         PR middle-end/50083
1217         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1218         only when TARGET_C99_FUNCTIONS.
1219         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1220         <BUILT_IN_RINT{,F,L}>: Ditto.
1221
1222 2011-08-26  Michael Matz  <matz@suse.de>
1223             Jakub Jelinek  <jakub@redhat.com>
1224
1225         PR lto/50165
1226         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1227         don't call strlen twice, use memcpy.
1228
1229 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1230
1231         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1232         * config/i386/bmiintrin.h: Likewise.
1233         * config/i386/lzcntintrin.h: Likewise.
1234
1235         * config/i386/immintrin.h: Include <lzcntintrin.h>,
1236         <bmiintrin.h> and <bmi2intrin.h>.
1237
1238 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1239
1240         PR target/50166
1241         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1242         * configure: Regenerate.
1243
1244 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1245
1246         PR c/50179
1247         * c-typeck.c (c_process_expr_stmt): Skip over nops and
1248         call mark_exp_read even if exprv is ADDR_EXPR.
1249
1250 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
1251
1252         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1253         to df_set_dead_notes_for_mw.
1254
1255 2011-08-26  Richard Guenther  <rguenther@suse.de>
1256
1257         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1258
1259 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
1260             Tom de Vries  <tom@codesourcery.com>
1261
1262         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1263         (struct ivopts_data): Add loop_single_exit_p field.
1264         (niter_for_exit): Change parameter desc_p into return value.  Return
1265         desc if desc->may_be_zero.  Free desc if unused.
1266         (niter_for_single_dom_exit): Change return type.
1267         (find_induction_variables): Handle changed return type of
1268         niter_for_single_dom_exit.  Dump may_be_zero.
1269         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1270         (set_use_iv_cost): Add and handle comp parameter.
1271         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1272         comp argument to set_use_iv_cost.
1273         (strip_wrap_conserving_type_conversions, expr_equal_p)
1274         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1275         (may_eliminate_iv): Add comp parameter.  Handle new return type of
1276         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
1277         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1278         and may_eliminate_iv.
1279         (rewrite_use_compare): Move call to iv_elimination_compare to ...
1280         (may_eliminate_iv): Here.
1281         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1282
1283 2011-08-26  Tom de Vries  <tom@codesourcery.com>
1284
1285         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1286         accessing TREE_TYPE.
1287
1288 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
1289
1290         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1291         (*ior_scc_scc_cmp): Likewise
1292         (*and_scc_scc): Likewise.
1293         (*and_scc_scc_cmp): Likewise.
1294         (*and_scc_scc_nodom): Likewise.
1295         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1296
1297 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1298
1299         * rtlanal.c (nonzero_bits1): Handle CLRSB.
1300
1301 2011-08-26  Richard Guenther  <rguenther@suse.de>
1302
1303         * expr.c (string_constant): Handle &MEM_REF.
1304
1305 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1306
1307         * config/arm/arm.c (struct four_ints): New type.
1308         (count_insns_for_constant): Delete function.
1309         (find_best_start): Delete function.
1310         (optimal_immediate_sequence): New function.
1311         (optimal_immediate_sequence_1): New function.
1312         (arm_gen_constant): Move constant splitting code to
1313         optimal_immediate_sequence.
1314         Rewrite constant negation/invertion code.
1315
1316 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
1317
1318         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1319         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1320         Remove prototype. Remove static function type.
1321         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1322         Add arch attribute.
1323         * config/arm/constraints.md (Pj, PJ): New constraints.
1324
1325 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1326
1327         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1328         ("cortex_a9_multiply_long"): New and use above.  Handle all
1329         long multiply cases.
1330         ("cortex_a9_multiply"): Handle smmul and smmulr.
1331         ("cortex_a9_mac"): Handle smmla.
1332
1333 2011-08-25  Richard Henderson  <rth@redhat.com>
1334
1335         PR 50132
1336         PR 49864
1337         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1338         non-constant stack adjutment.
1339         * expr.c (find_args_size_adjust): Break out from ...
1340         (fixup_args_size_notes): ... here.
1341         * rtl.h (find_args_size_adjust): Declare.
1342
1343 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
1344
1345         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1346         sse4 and sse4_noavx.
1347         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1348         (*pushdf_rex64): Change Y2 register constraint to x.
1349         (*movdf_internal_rex64): Ditto.
1350         (*zero_extendsidi2_rex64): Ditto.
1351         (*movdi_internal): Change Y2 register constraint to x
1352         and update "isa" attribute.
1353         (*pushdf): Ditto.
1354         (*movdf internal): Ditto.
1355         (zero_extendsidi2_1): Ditto.
1356         (*truncdfdf_mixed): Ditto.
1357         (*truncxfdf2_mixed): Ditto.
1358         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1359         register constraint to x.
1360         (*movv2sf_internal_rex64): Ditto.
1361         (*mov<mode>_internal): Change Y2 register constraint to x
1362         and add "isa" attribute.
1363         (*movv2sf_internal): Ditto.
1364         (*vec_extractv2si_1): Ditto.
1365         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1366         constraints to x and update "isa" attribute.
1367         (*vec_interleave_highv2df): Change Y3 registerconstraint
1368         to x and update "isa" attribute.
1369         (*vec_interleave_lowv2df): Ditto.
1370         (*vec_concatv2df): Change Y2 register constraint to x and
1371         update "isa" attribute.
1372         (sse2_loadld): Ditto.
1373         (*vec_extractv2di_1): Ditto.
1374         (*vec_dupv4si): Ditto.
1375         (*vec_dupv2di): Ditto.
1376         (*vec_concatv4si): Ditto.
1377         (vec_concatv2di): Ditto.
1378         * config/i386/constraints.md (Y2): Remove.
1379         (Y3): Ditto.
1380         (Y4): Ditto.
1381
1382 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1383
1384         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1385         dump_def_use_chain): Don't declare.
1386         (mark_conflict, create_new_chain): Move before users.
1387         (regrename_optimize): Move to near end of file.
1388
1389 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1390
1391         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1392         (secondary_input_reload_class): Remove Prototype.
1393         * config/avr/avr.c (byte_immediate_operand): Remove Function.
1394         * config/avr/avr.md (setmemhi): Use u8_operand.
1395         (strlenhi): Use const0_rtx for comparison.
1396         * config/avr/avr.h (avr_reg_order): Remove Declaration.
1397
1398 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1399
1400         * config/avr/avr.c (reg_class_tab): Make local to
1401         avr_regno_reg_class.  Return smallest register class available.
1402
1403 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1404
1405         * config/avr/avr.c (STR_PREFIX_P): New Define.
1406         (avr_asm_declare_function_name): Use it.
1407         (avr_asm_named_section): Use it.
1408         (avr_section_type_flags): Use it.
1409
1410 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1411
1412         * doc/md.texi (automata_option): Document collapse-ndfa.
1413         * genautomata.c (COLLAPSE_OPTION): New macro.
1414         (collapse_flag): New static variable.
1415         (struct description): New member normal_decls_num.
1416         (struct automaton): New members advance_ainsn and collapse_ainsn.
1417         (gen_automata_option): Check for COLLAPSE_OPTION.
1418         (collapse_ndfa_insn_decl): New static variable.
1419         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1420         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1421         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1422         necessary.  Use normal_decls_num rather than decls_num, remove
1423         test for special decls.
1424         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1425         (make_automaton); Likewise.  Use the new advance_cycle_insn member
1426         of struct automaton.
1427         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1428         is set.
1429         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1430         transition.  Create the necessary transitions for it.
1431         (create_ainsns): Return void.  Take an automaton_t argument, and
1432         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
1433         callers changed.
1434         (COLLAPSE_NDFA_VALUE_NAME): New macro.
1435         (output_tables): Output code to define it.
1436         (output_internal_insn_code_evaluation): Output code to accept
1437         const0_rtx as collapse-ndfa transition.
1438         (output_default_latencies, output_print_reservation_func,
1439         output_print_description): Reorganize loops to use normal_decls_num
1440         as loop bound; remove special case for advance_cycle_insn_decl.
1441         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1442         (check_automata_insn_issues): Check for collapse_ainsn.
1443         (expand_automate): Allocate sufficient space.  Initialize
1444         normal_decls_num.
1445
1446 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
1447
1448         * config/avr/avr.md: Fix indentation from r177991.
1449
1450 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1451
1452         * regrename.c (struct du_head): Remove member terminated.
1453         (create_new_chain): Don't initialize it.
1454         (scan_rtx_reg): Don't set or test it, test the open_chains_set
1455         bitmap instead.
1456         (tick, this_tick): New global variables, moved out of
1457         regrename_optimize.
1458         (current_id, open_chains, closed_chains, open_chains_set,
1459         live_in_chains, live_hard_regs): Reorder declarations.
1460         (dump_def_use_chain): Move function earlier in the file.
1461         (rename_chains): New static function, broken out of
1462         regrename_optimize.
1463         (regrename_optimize): Use it.  Remove #if 0'ed code.
1464
1465 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1466
1467         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1468
1469 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         PR target/50172
1472         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1473
1474 2011-08-24  Richard Guenther  <rguenther@suse.de>
1475
1476         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1477         ref in the basic-block case.  Move stripping array-refs
1478         to the place we create an access-function for it.  Remove
1479         bogus stripping down a MEM_REF to its base.
1480
1481 2011-08-24  Richard Guenther  <rguenther@suse.de>
1482
1483         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1484         with -fno-strict-overflow.
1485
1486 2011-08-24  Richard Guenther  <rguenther@suse.de>
1487
1488         * tree-vectorizer.c (vect_print_dump_info): Avoid the
1489         file and location clutter when dumping to dump files.
1490
1491 2011-08-24  Simon Baldwin  <simonb@google.com>
1492
1493         * gengtype-state.c (write_state): Remove timestamped header line.
1494
1495 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1496
1497         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1498         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1499         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1500         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1501         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1502         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1503         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1504         rules.
1505         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1506
1507 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
1508
1509         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1510
1511 2011-08-24  Richard Guenther  <rguenther@suse.de>
1512
1513         PR tree-optimization/50067
1514         * tree-data-ref.c (dr_analyze_indices): Do not add an access
1515         function for a MEM_REF base that has no evolution in the loop
1516         nest or that is not analyzable.
1517
1518 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
1519
1520         * ira.c (ira_init_register_move_cost): Check small subclasses
1521         through ira_reg_class_max_nregs and ira_available_class_regs.
1522
1523 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1524
1525         * config/i386/constraints.md (Yp): New register constraint.
1526         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1527         Yp register constraint.
1528         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1529         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1530         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1531
1532 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1533
1534         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1535
1536 2011-08-23  Mark Heffernan  <meheff@google.com>
1537
1538         PR middle-end/38509
1539         * common.opt (Wfree-nonheap-object): New option.
1540         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1541         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1542         to warning.
1543         (expand_builtin): Make warning conditional.
1544
1545 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
1546
1547         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1548         (length_immediate): Handle imulx, ishiftx and rotatex.
1549         (imm_disp): Ditto.
1550         (isa): Add bmi2.
1551         (enabled): Handle bmi2.
1552         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1553         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
1554         (*bmi2_umulditi3_1): New insn pattern.
1555         (*bmi2_umulsidi3_1): Ditto.
1556         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1557         (*bmi2_ashl<mode>3_1): New insn pattern.
1558         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1559         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1560         (*bmi2_ashlsi3_1_zext): New insn pattern.
1561         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1562         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1563         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1564         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1565         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1566         flags dependency.
1567         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1568         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1569         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1570         flags dependency.
1571         (*bmi2_rorx<mode>3_1): New insn pattern.
1572         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1573         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1574         (*rotatert<mode>3_1 splitter): Ditto.
1575         (*bmi2_rorxsi3_1_zext): New insn pattern.
1576         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1577         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1578         (*rotatertsi3_1_zext splitter): Ditto.
1579
1580 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
1581
1582         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1583         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1584         (ix86_handle_option): Handle OPT_mbmi2 case.
1585         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1586         (x86_64-*-*): Likewise.
1587         * config/i386/bmi2intrin.h: New file.
1588         * config/i386/cpuid.h (bit_BMI2): New.
1589         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1590         BMI2 feature.
1591         * config/i386/i386-c.c (ix86_target_macros_internal):
1592         Conditionally define __BMI2__.
1593         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1594         Handle BMI2 option.
1595         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1596         (print_reg): New code.
1597         (ix86_print_operand): Likewise.
1598         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1599         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1600         IX86_BUILTIN_PEXT64.
1601         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1602         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1603         IX86_BUILTIN_PEXT64.
1604         * config/i386/i386.h (TARGET_BMI2): New.
1605         * config/i386/i386.md (UNSPEC_PDEP): New.
1606         (UNSPEC_PEXT): Likewise.
1607         (*bmi2_bzhi_<mode>3): Likewise.
1608         (*bmi2_pdep_<mode>3): Likewise.
1609         (*bmi2_pext_<mode>3): Likewise.
1610         * config/i386/i386.opt (mbmi2): New.
1611         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1612         is defined.
1613         * doc/extend.texi: Document BMI2 built-in functions.
1614         * doc/invoke.texi: Document -mbmi2.
1615
1616 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
1617
1618         PR middle-end/50161
1619         * simplify-rtx.c (simplify_const_unary_operation): If
1620         op is CONST_INT, don't look at op_mode, but use instead mode.
1621         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1622         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1623         operation and TRUNCATE/ZERO_EXTEND if needed.
1624         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1625         Document that operand mode must be same as operation mode,
1626         or VOIDmode.
1627         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1628         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1629         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1630         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1631         use the mode of operand for the operation and add truncate
1632         or zero_extend around if needed.
1633         * config/c6x/c6x.md (ctzdi2): Likewise.
1634         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1635
1636 2011-08-12  Michael Matz  <matz@suse.de>
1637
1638         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1639         (gimple_expand_cfg): Merge alignment info for coalesced pointer
1640         SSA names.
1641
1642 2011-08-23  Richard Guenther  <rguenther@suse.de>
1643
1644         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1645         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1646         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1647         from ...
1648         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1649         (mem_refs_may_alias_p): Adjust.
1650         * tree-data-ref.h (dr_may_alias_p): Adjust.
1651         * tree-data-ref.c: Include tree-affine.h.
1652         (dr_analyze_indices): Do nothing for the non-loop case.
1653         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
1654         more cases in the non-loop case.
1655         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1656         calls to dr_may_alias_p.
1657         (write_alias_graph_to_ascii_ecc): Likewise.
1658         (write_alias_graph_to_ascii_dot): Likewise.
1659         (build_alias_set_optimal_p): Likewise.
1660
1661 2011-08-23  Richard Guenther  <rguenther@suse.de>
1662
1663         PR tree-optimization/50162
1664         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1665
1666 2011-08-23  Richard Guenther  <rguenther@suse.de>
1667
1668         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1669         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1670         (create_data_ref): Also dump access functions for the created data-ref.
1671
1672 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
1673             Kirill Yukhin  <kirill.yukhin@intel.com>
1674
1675         PR target/50155
1676         * config/i386/sse.md (VI_AVX2): New.
1677         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1678         (*<plusminus_insn><mode>3): Ditto.
1679         (<sse2_avx2>_andnot<mode>3): Ditto.
1680         (*andnot<mode>3): Fix order of cond operands.
1681         Add asserts for correct TARGET_xxx.
1682         (*<any_logic:code><mode>3): Ditto.
1683
1684 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
1685
1686         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1687         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1688         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1689         regclass argument type to reg_class_t. Change 'max' and 'v' vars
1690         and return types to unsigned char. Use reg_class_contents instead
1691         of class_contents.
1692         (TARGET_CLASS_MAX_NREGS): Define.
1693
1694 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
1695
1696         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1697         to make computed_jump_p return true.
1698
1699 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1700
1701         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1702         (PICFLAG_FOR_TARGET): Substitute.
1703         * aclocal.m4: Regenerate.
1704         * configure: Regenerate.
1705
1706 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
1707
1708         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1709         after reading in the pch.
1710
1711 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1712
1713         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1714         * configure: Regenerated.
1715
1716 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
1717
1718         PR tree-optimization/50133
1719         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1720         from stmt instead of some statement around gsi.
1721
1722         PR middle-end/50141
1723         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1724         innerdecl is a VAR_DECL.
1725
1726 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1727
1728         * config/i386/avx2intrin.h: New file.
1729         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1730         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1731         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1732         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1733         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1734         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1735         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1736         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1737         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1738         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1739         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1740         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1741         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1742         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1743         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1744         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1745         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1746         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1747         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1748         VOID_FTYPE_PV8SI_V8SI_V8SI,
1749         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1750         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1751         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1752         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1753         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1754         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1755         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1756         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1757         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1758         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1759         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1760         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1761         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1762         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1763         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1764         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1765         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1766         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1767         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1768         V4DI_FTYPE_V4DI_INT_CONVERT,
1769         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1770         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1771         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1772         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1773         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1774         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1775         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1776         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1777         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1778         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1779         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1780         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1781         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1782         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1783         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1784         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1785         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1786         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1787         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1788         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1789         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1790         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1791         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1792         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1793         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1794         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1795         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1796         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1797         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1798         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1799         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1800         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1801         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1802         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1803         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1804         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1805         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1806         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1807         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1808         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1809         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1810         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1811         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1812         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1813         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1814         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1815         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1816         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1817         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1818         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1819         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1820         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1821         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1822         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1823         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1824         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1825         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1826         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1827         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1828         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1829         IX86_BUILTIN_VBROADCASTSS_PS256,
1830         IX86_BUILTIN_VBROADCASTSD_PD256,
1831         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1832         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1833         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1834         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1835         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1836         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1837         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1838         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1839         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1840         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1841         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1842         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1843         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1844         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1845         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1846         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1847         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1848         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1849         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1850         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1851         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1852         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1853         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1854         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1855         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1856         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1857         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1858         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1859         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1860         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1861         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1862         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
1863         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1864         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1865         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1866         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1867         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1868         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1869         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1870         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1871         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1872         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1873         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1874         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1875         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1876         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1877         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1878         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1879         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1880         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1881         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1882         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1883         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1884         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1885         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1886         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1887         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1888         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1889         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1890         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1891         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1892         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1893         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1894         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1895         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1896         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1897         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1898         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1899         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1900         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1901         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1902         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1903         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1904         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1905         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1906         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1907         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1908         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1909         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1910         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1911         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1912         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1913         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1914         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1915         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1916         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1917         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1918         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1919         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1920         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1921         IX86_BUILTIN_VBROADCASTSD_PD256,
1922         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1923         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1924         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1925         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1926         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1927         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1928         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1929         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1930         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1931         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1932         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1933         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1934         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1935         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1936         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1937         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1938         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1939         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1940         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1941         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1942         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1943         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1944         IX86_BUILTIN_GATHERDIV8SI.
1945         (ix86_preferred_simd_mode): Support AVX2 modes.
1946         (ix86_expand_args_builtin): Support AVX2 builtins.
1947         (ix86_expand_special_args_builtin): Likewise.
1948         (ix86_expand_builtin): Likewise.
1949         * config/i386/i386.md (UNSPEC_VPERMSI): New.
1950         (UNSPEC_VPERMDF): Likewise.
1951         (UNSPEC_VPERMSF): Likewise.
1952         (UNSPEC_VPERMDI): Likewise.
1953         (UNSPEC_VPERMTI): Likewise.
1954         (UNSPEC_GATHER): Likewise.
1955         (ssemodesuffix): Extend.
1956         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1957         is defined.
1958         * config/i386/predicates.md (const1248_operand): New.
1959         * config/i386/sse.md (VI1_AVX2): New mode iterator.
1960         (VI2_AVX2): Likewise.
1961         (VI4_AVX2): Likewise.
1962         (VI8_AVX2): Likewise.
1963         (VIMAX_AVX2): Likewise.
1964         (SSESCALARMODE): Likewise.
1965         (VI12_AVX2): Likewise.
1966         (VI24_AVX2): Likewise.
1967         (VI124_AVX2): Likewise.
1968         (VI248_AVX2): Likewise.
1969         (VI48_AVX2): Likewise.
1970         (VI4SD_AVX2): Likewise.
1971         (V48_AVX2): Likewise.
1972         (AVX256MODE2P): Likewise.
1973         (AVXMODE48P_DI): Likewise.
1974         (sse2_avx2): New mode attribute.
1975         (ssse3_avx2): Likewise.
1976         (sse4_1_avx2): Likewise.
1977         (avx_avx2): Likewise.
1978         (ssebytemode): Likewise.
1979         (AVXTOSSEMODE): Likewise.
1980         (AVXMODE48P_DI): Likewise.
1981         (gthrfirstp): Likewise.
1982         (gthrlastp): Likewise.
1983         (lshift): New code_iterator
1984         (lshift): New code attribute.
1985         (lshift): Likewise.
1986         (ssescalarmodesuffix): Update.
1987         (sseunpackmode): Likewise.
1988         (ssepackmode): Likewise.
1989         (avx2_vec_dupv4sf): New insn pattern.
1990         (avx2_vec_dupv8sf): Likewise.
1991         (avx2_interleave_highv4di): Likewise.
1992         (avx2_interleave_lowv4di): Likewise.
1993         (avx2_umulv4siv4di3): Likewise
1994         (*avx2_umulv4siv4di3): Likewise
1995         (avx2_pmaddwd): Likewise.
1996         (*avx2_pmaddwd): Likewise.
1997         (avx2_lshrqv4di3): Likewise.
1998         (avx2_lshlqv4di3): Likewise.
1999         (avx2_lshl<mode>3): Likewise.
2000         (avx2_<umaxmin:code><mode>3): Likewise.
2001         (*avx2_<umaxmin:code><mode>3): Likewise.
2002         (avx2_<smaxmin:code><mode>3): Likewise.
2003         (*avx2_<smaxmin:code><mode>3): Likewise.
2004         (avx2_eq<mode>3): Likewise.
2005         (*avx2_eq<mode>3): Likewise.
2006         (avx2_gt<mode>3): Likewise.
2007         (avx2_interleave_highv32qi): New.
2008         (avx2_interleave_lowv32qi): Likewise.
2009         (avx2_interleave_highv16hi): Likewise.
2010         (avx2_interleave_lowv16hi): Likewise.
2011         (avx2_interleave_highv8si): Likewise.
2012         (avx2_interleave_lowv8si): Likewise.
2013         (avx2_pshufd): Likewise.
2014         (avx2_pshufd_1): Likewise.
2015         (avx2_pshuflwv3): Likewise.
2016         (avx2_pshuflw_1): Likewise.
2017         (avx2_pshufhwv3): Likewise.
2018         (avx2_pshufhw_1): Likewise.
2019         (avx2_uavgv32qi3): Likewise.
2020         (*avx2_uavgv32qi3): Likewise.
2021         (avx2_uavgv16hi3): Likewise.
2022         (*avx2_uavgv16hi3): Likewise.
2023         (avx2_pmovmskb): Likewise.
2024         (avx2_phaddwv16hi3): Likewise.
2025         (avx2_phadddv8si3): Likewise.
2026         (avx2_phaddswv16hi3): Likewise.
2027         (avx2_phsubwv16hi3): Likewise.
2028         (avx2_phsubdv8si3): Likewise.
2029         (avx2_phsubswv16hi3): Likewise.
2030         (avx2_pmaddubsw256): Likewise.
2031         (avx2_umulhrswv16hi3): Likewise.
2032         (*avx2_umulhrswv16hi3): Likewise.
2033         (avx2_packusdw): Likewise.
2034         (avx2_pblendd<mode>): Likewise.
2035         (avx2_<code>v16qiv16hi2): Likewise.
2036         (avx2_<code>v8qiv8si2): Likewise.
2037         (avx2_<code>v8hiv8si2): Likewise.
2038         (avx2_<code>v4qiv4di2): Likewise.
2039         (avx2_<code>v4hiv4di2): Likewise.
2040         (avx2_<code>v4siv4di2): Likewise.
2041         (avx2_pbroadcast<mode>): Likewise.
2042         (avx2_permvarv8si): Likewise.
2043         (avx2_permv4df): Likewise.
2044         (avx2_permvarv8sf): Likewise.
2045         (avx2_permv4di): Likewise.
2046         (avx2_permv2ti): Likewise.
2047         (avx2_vec_dupv4df): Likewise.
2048         (avx2_vbroadcasti128_<mode>): Likewise.
2049         (avx2_vec_set_lo_v4di): Likewise.
2050         (avx2_vec_set_hi_v4di): Likewise.
2051         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2052         (avx2_extracti128): Likewise.
2053         (avx2_inserti128): Likewise.
2054         (avx2_ashrvv8si): Likewise.
2055         (avx2_ashrvv4si): Likewise.
2056         (avx2_<lshift>vv8si): Likewise.
2057         (avx2_<lshift>v<mode>): Likewise.
2058         (avx2_<lshift>vv2di): Likewise.
2059         (avx2_gathersi<mode>): Likewise.
2060         (*avx2_gathersi<mode>): Likewise.
2061         (avx2_gatherdi<mode>): Likewise.
2062         (*avx2_gatherdi<mode>): Likewise.
2063         (avx2_gatherdi<mode>256): Likewise.
2064         (*avx2_gatherdi<mode>256): Likewise.
2065         (<plusminus_insn><mode>3): Use VI mode iterator.
2066         (*<plusminus_insn><mode>3): Use VI mode iterator.
2067         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2068         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2069         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2070         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2071         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
2072         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
2073         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2074         Use VI2_AVX2 mode iterator.
2075         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2076         Use VI2_AVX2 mode iterator.
2077         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
2078         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
2079         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2080         Use VI4_AVX2 mode iterator.
2081         (ashr<mode>3): Use VI24_AVX2 mode iterator.
2082         (lshr<mode>3): Use VI248_AVX2 mode iterator.
2083         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2084         Use VIMAX_AVX2 mode iterator.
2085         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2086         Use VI mode iterator.
2087         (*andnot<mode>3): Update for AVX2.
2088         (*<any_logic:code><mode>3): Likewise.
2089         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2090         Use VI1_AVX mode iterator.
2091         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
2092         Use VI2_AVX mode iterator.
2093         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2094         Use VI1_AVX mode iterator.
2095         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2096         Use VI8_AVX2 mode iterator.
2097         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2098         Use VI1_AVX2 mode iterator.
2099         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2100         Use VI124_AVX2 mode iterator.
2101         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2102         Use SSESCALARMODE mode iterator.
2103         (abs<mode>2): Use VI124_AVX2 mode iterator.
2104         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2105         Use VI8_AVX2 mode iterator.
2106         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2107         Use VI1_AVX2 mode iterator.
2108         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2109         Use VI1_AVX2 mode iterator.
2110         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2111         Use VI2_AVX2 mode iterator.
2112         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2113         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2114         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2115         avx_maskstore<ssemodesuffix><avxsizesuffix>.
2116         Use V48_AVX2 mode iterator.
2117         * doc/extend.texi: Document AVX2 built-in functions.
2118         * doc/invoke.texi: Document -mavx2.
2119
2120 2011-08-22  Matthias Klose <doko@debian.org>
2121
2122         Revert:
2123         2011-07-11  Arthur Loiret  <aloiret@debian.org>
2124                     Matthias Klose <doko@debian.org>
2125         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2126         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2127         convention.
2128         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2129
2130 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
2131
2132         PR bootstrap/50146
2133         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2134         to #ifndef HONOR_REG_ALLOC_ORDER block.
2135
2136 2011-08-21  Richard Henderson  <rth@redhat.com>
2137
2138         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2139         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2140         * resource.c (next_insn_no_annul): Likewise.
2141         (mark_set_resources): Likewise.
2142         * reorg.c (delete_from_delay_slot): Likewise.
2143         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2144         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2145
2146 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
2147
2148         * config/i386/i386.md (any_div): Remove.
2149         (sgnprefix): Update for removal.
2150         (u): Ditto.
2151
2152 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
2153
2154         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2155         for ira_reg_class_max_nregs.  Increase pressure by 1.
2156         (mark_pseudo_regno_subword_dead): Use allocno class
2157         for ira_reg_class_max_nregs.
2158
2159 2011-08-20  Richard Henderson  <rth@redhat.com>
2160
2161         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2162         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2163         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2164         config/c6x/ltf.c: Adjust include path for soft-fp.
2165
2166 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2167
2168         PR other/46770
2169         * config.gcc (tm_file): Add initfini-array.h if
2170         .init_arrary/.fini_array are supported.
2171
2172         * crtstuff.c: Don't generate .ctors nor .dtors sections if
2173         USE_INITFINI_ARRAY is defined.
2174
2175         * output.h (default_elf_init_array_asm_out_constructor): New.
2176         (default_elf_fini_array_asm_out_destructor): Likewise.
2177         * varasm.c (elf_init_array_section): Likewise.
2178         (elf_fini_array_section): Likewise.
2179         (get_elf_initfini_array_priority_section): Likewise.
2180         (default_elf_init_array_asm_out_constructor): Likewise.
2181         (default_elf_fini_array_asm_out_destructor): Likewise.
2182
2183         * config/initfini-array.h: New.
2184
2185 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2186
2187         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2188         OK for ST_REGS and FP_REGS before taking those classes into account.
2189
2190 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
2191
2192         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2193         before checking for annulled branches.
2194
2195 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2196
2197         * config/i386/i386.c (ix86_binary_operator_ok): Use
2198         satisfies_constraint_L.
2199
2200 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
2201             Michael Matz  <matz@suse.de>
2202
2203         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2204         trunc (a + copysign (nextafter (0.5, 0.0), a)).
2205
2206 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
2207
2208         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2209         * doc/tm.texi: Regenerate.
2210         * targhooks.c (default_preferred_output_reload_class): Don't use
2211         PREFERRED_OUTPUT_RELOAD_CLASS macro.
2212         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2213
2214 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
2215
2216         PR tree-optimization/48739
2217         * tree-ssa.c: Include cfgloop.h.
2218         (execute_update_addresses_taken): When updating ssa, if in loop closed
2219         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2220         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2221
2222 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
2223
2224         PR rtl-optimization/49936
2225         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2226         for calculation of max register move costs.
2227
2228 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2229
2230         * c-parser.c (c_parser_postfix_expression): Convert operands of
2231         __builtin_complex to their semantic types.
2232
2233 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2234
2235         PR middle-end/49721
2236         * explow.c (convert_memory_address_addr_space): Also permute the
2237         conversion and addition of constant for zero-extend.
2238
2239 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2240
2241         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2242         * doc/extend.texi (__builtin_complex): Document.
2243
2244 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2245
2246         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2247         beyond conversions.
2248         (convert_mult_to_widen): Convert constant inputs to the right type.
2249         (convert_plusminus_to_widen): Don't automatically reject inputs that
2250         are not an SSA_NAME.
2251         Convert constant inputs to the right type.
2252
2253 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2254
2255         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2256         to the correct type.
2257
2258 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2259
2260         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2261         unsigned inputs of different modes.
2262         (convert_plusminus_to_widen): Likewise.
2263
2264 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2265
2266         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2267         'type'.
2268         Use 'type' from caller, not inferred from 'rhs'.
2269         Don't reject non-conversion statements. Do return lhs in this case.
2270         (is_widening_mult_p): Add new argument 'type'.
2271         Use 'type' from caller, not inferred from 'stmt'.
2272         Pass type to is_widening_mult_rhs_p.
2273         (convert_mult_to_widen): Pass type to is_widening_mult_p.
2274         (convert_plusminus_to_widen): Likewise.
2275
2276 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2277
2278         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2279         Ensure the the larger type is the first operand.
2280
2281 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2282
2283         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2284         unsupported unsigned multiplies to signed.
2285         (convert_plusminus_to_widen): Likewise.
2286
2287 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2288
2289         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2290         conversion statement separating multiply-and-accumulate.
2291
2292 2011-08-19  Richard Guenther  <rguenther@suse.de>
2293
2294         PR tree-optimization/50067
2295         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2296         offset only if we accounted for it.
2297
2298 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2299
2300         * config/arm/arm.md (maddhidi4): Remove '*' from name.
2301         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2302         * optabs.c (find_widening_optab_handler_and_mode): New function.
2303         (expand_widen_pattern_expr): Use find_widening_optab_handler.
2304         (expand_binop_directly): Likewise.
2305         (expand_binop): Likewise.
2306         * optabs.h (find_widening_optab_handler): New macro define.
2307         (find_widening_optab_handler_and_mode): New prototype.
2308         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2309         type precision rules.
2310         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2311         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2312         (is_widening_mult_rhs_p): Allow widening by more than one mode.
2313         Explicitly disallow mis-matched input types.
2314         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2315         input types to fit the new handler.
2316         (convert_plusminus_to_widen): Likewise.
2317
2318 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
2319
2320         * expr.c (expand_expr_real_2): Use widening_optab_handler.
2321         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2322         (gen_insn): $N now means $a must be wider than $b, not consecutive.
2323         * optabs.c (widened_mode): New function.
2324         (expand_widen_pattern_expr): Use widening_optab_handler.
2325         (expand_binop_directly): Likewise.
2326         (expand_binop): Likewise.
2327         * optabs.h (widening_optab_handlers): New struct.
2328         (optab_d): New member, 'widening'.
2329         (widening_optab_handler): New function.
2330         (set_widening_optab_handler): New function.
2331         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2332         widening_optab_handler.
2333         (convert_plusminus_to_widen): Likewise.
2334
2335 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2336
2337         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2338         pedantic.
2339         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2340         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2341
2342 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2343
2344         * opth-gen.awk: Do not declare target save/restore structures and
2345         functions if IN_RTS defined.
2346
2347 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2348
2349         PR target/49437
2350         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2351         when stack was realigned in interrupt handler prologue.
2352
2353 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2354
2355         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2356         (quals_from_declspecs): Assert _Noreturn not present.
2357         (grokdeclarator): Handle _Noreturn.
2358         (build_null_declspecs): Initialize noreturn_p.
2359         (declspecs_add_scspec): Handle RID_NORETURN.
2360         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2361         (c_parser_attributes): Handle RID_NORETURN.
2362         * c-tree.h (struct c_declspecs): Add noreturn_p.
2363         * ginclude/stdnoreturn.h: New.
2364         * Makefile.in (USER_H): Add stdnoreturn.h.
2365
2366 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2367
2368         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2369         (OPTION_MASK_ISA_AVX_UNSET): Update.
2370         (OPTION_MASK_ISA_AVX2_UNSET): New.
2371         (ix86_handle_option): Handle OPT_mavx2 case.
2372         * config/i386/cpuid.h (bit_AVX2): New.
2373         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2374         AVX2 feature.
2375         * config/i386/i386-c.c (ix86_target_macros_internal):
2376         Conditionally define __AVX2__.
2377         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2378         Define "core-avx2" processor alias.  Handle avx2 option.
2379         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2380         * config/i386/i386.h (TARGET_AVX2): New.
2381         * config/i386/i386.opt (mavx2): New.
2382         * doc/invoke.texi: Document -mavx2.
2383
2384 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
2385
2386         PR rtl-optimization/49890
2387         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2388         subclasses of class which is superset of a pressure class.
2389
2390 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2391             Igor Zamyatin <igor.zamyatin@intel.com>
2392
2393         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2394         with HOST_WIDE_INT for isa_flag.
2395         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2396         isa variables.
2397
2398         * config/i386/i386.c (ix86_target_string): Replace int with
2399         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
2400         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2401         (pta_flags): Removed.
2402         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2403         (pta): Use HOST_WIDE_INT on flags.
2404         (builtin_isa): Use HOST_WIDE_INT on isa.
2405         (ix86_add_new_builtins): Likewise.
2406         (def_builtin): Use HOST_WIDE_INT on mask.
2407         (def_builtin_const): Likewise.
2408         (builtin_description): Likewise.
2409
2410         * config/i386/i386.opt (ix86_isa_flags): Replace int with
2411         HOST_WIDE_INT.
2412         (ix86_isa_flags_explicit): Likewise.
2413         (x_ix86_isa_flags_explicit): Likewise.
2414
2415 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
2416
2417         PR rtl-optimization/50107
2418         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2419         (ira_hard_reg_in_set_p): New.
2420
2421         * ira-color.c (calculate_saved_nregs): New.
2422         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
2423         hard regs.
2424         (allocno_reload_assign, fast_allocation): Use
2425         ira_hard_reg_set_intersection_p instead of
2426         ira_hard_reg_not_in_set_p.
2427
2428         * ira.c (setup_reg_renumber): Use
2429         ira_hard_reg_set_intersection_p instead of
2430         ira_hard_reg_not_in_set_p.
2431         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2432         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2433
2434         * ira-costs.c (ira_tune_allocno_costs): Use
2435         ira_hard_reg_set_intersection_p instead of
2436         ira_hard_reg_not_in_set_p.
2437
2438 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2439             Igor Zamyatin <igor.zamyatin@intel.com>
2440
2441         * hwint.h (HOST_WIDE_INT_1): New.
2442
2443         * opt-functions.awk (switch_bit_fields): Initialize the
2444         host_wide_int field.
2445         (host_wide_int_var_name): New.
2446         (var_type_struct): Check and return HOST_WIDE_INT.
2447
2448         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2449
2450         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2451
2452         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
2453         check masks for HOST_WIDE_INT.
2454
2455         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2456         (option_enabled): Likewise.
2457         (get_option_state): Likewise.
2458
2459         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
2460         to HOST_WIDE_INT.
2461
2462 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2463             Marc Glisse  <marc.glisse@normalesup.org>
2464
2465         PR libstdc++-v3/1773
2466         * target.def (decl_mangling_context): New C++ hook.
2467         * doc/tm.texi: Regenerate.
2468         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2469         * config/sol2-protos.h: Group by source file.
2470         (solaris_cxx_decl_mangling_context): Declare.
2471         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2472         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2473         Use $<.
2474         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2475         Add sol2-stubs.o to extra_objs.
2476
2477 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
2478
2479         PR target/50009
2480         * stor-layout.c (update_alignment_for_field): Don't ICE on
2481         packed flexible array members if ms_bitfield_layout_p.
2482
2483         PR target/50092
2484         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2485         on the result before returning it.
2486
2487         PR debug/50017
2488         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2489         is a debug stmt, use location of the first non-debug stmt after it.
2490
2491 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2492
2493         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2494         (arm_size_rtx_costs): Likewise.
2495
2496 2011-08-18  Richard Guenther  <rguenther@suse.de>
2497
2498         * tree.h (tree_int_cst_msb): Remove.
2499         * tree.c (tree_int_cst_msb): Likewise.
2500         (tree_int_cst_sign_bit): Move from ...
2501         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2502
2503 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2504
2505         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2506         * doc/tm.texi: Regenerate.
2507         * target.def (rtx_costs): Add an opno parameter.
2508         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2509         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2510         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2511         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2512         * cse.c (COST_IN): Add an opno parameter.
2513         (notreg_cost): Likewise.  Update call to rtx_cost.
2514         (COST, fold_rtx): Update accordingly.
2515         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2516         * expmed.c (emit_store_flag): Likewise.
2517         * optabs.c (avoid_expensive_constant): Add an opno parameter.
2518         Update call to rtx_cost.
2519         (expand_binop_directly, expand_binop): Likewise.
2520         (expand_twoval_binop, prepare_cmp_insn): Likewise.
2521         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2522         (set_src_cost, get_full_set_src_cost): Update accordingly.
2523         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
2524         to target hook.
2525         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
2526         (default_adress_cost): Update calls to rtx_cost.
2527
2528         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2529         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2530         (arm_rtx_costs): Add an opno parameter.
2531         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2532         adjust any recursive rtx-cost calls.
2533         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2534         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2535         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2536         * config/cris/cris.c (cris_rtx_costs): Likewise.
2537         * config/frv/frv.c (frv_rtx_costs): Likewise.
2538         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2539         * config/i386/i386.c (ix86_rtx_costs): Likewise.
2540         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2541         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2542         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2543         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2544         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2545         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2546         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2547         * config/mep/mep.c (mep_rtx_cost): Likewise.
2548         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2549         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2550         (mips_zero_extend_cost): Add an opno parameter.
2551         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2552         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2553         to rtx_cost.
2554         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2555         rtx-cost calls.
2556         * config/pa/pa.c (hppa_rtx_costs): Likewise.
2557         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2558         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2559         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2560         (rs6000_debug_rtx_costs): Likewise.
2561         * config/s390/s390.c (s390_rtx_costs): Likewise.
2562         * config/score/score-protos.h (score_rtx_costs): Likewise.
2563         * config/score/score.c (score_rtx_costs): Likewise.
2564         * config/sh/sh.c (andcosts): Update call to rtx_cost.
2565         (sh_rtx_costs): Add an opno parameter.
2566         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2567         * config/spu/spu.c (spu_rtx_costs): Likewise.
2568         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2569         * config/v850/v850.c (v850_rtx_costs): Likewise.
2570         * config/vax/vax.c (vax_rtx_costs): Likewise.
2571         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2572
2573 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2574
2575         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2576         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2577         rtx_cost.
2578         * calls.c (precompute_register_parameters): Likewise.
2579         * combine.c (expand_compound_operation, make_extraction): Likewise.
2580         (force_to_mode, distribute_and_simplify_rtx): Likewise.
2581         * dse.c (find_shift_sequence): Likewise.
2582         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2583         * expr.c (compress_float_constant): Likewise.
2584         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2585         * gcse.c (want_to_gcse_p): Likewise.
2586         * ifcvt.c (noce_try_sign_mask): Likewise.
2587         * loop-doloop.c (doloop_optimize): Likewise.
2588         * loop-invariant.c (create_new_invariant): Likewise.
2589         * optabs.c (avoid_expensive_constant): Likewise.
2590         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2591         (try_replace_in_use, reload_cse_move2add): Likewise.
2592         * reload1.c (calculate_elim_costs_all_insns): Likewise.
2593         (note_reg_elim_costly): Likewise.
2594         * rtlanal.c (insn_rtx_cost): Likewise.
2595         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2596         * stmt.c (lshift_cheap_p): Likewise.
2597         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2598         * config/avr/avr.c (final_prescan_insn): Likewise.
2599         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2600         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2601
2602 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
2603
2604         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2605         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2606         * cfgloopanal.c (seq_cost): Likewise.
2607         * loop-invariant.c (create_new_invariant): Likewise.
2608         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2609         (reload_cse_move2add): Use get_full_set_rtx_cost.
2610
2611 2011-08-18  Richard Guenther  <rguenther@suse.de>
2612
2613         * expr.c (get_inner_reference): Fix typo in last change.
2614
2615 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2616             Joseph Myers  <joseph@codesourcery.com>
2617
2618         PR tree-optimization/49963
2619         * hwint.c (absu_hwi): Define.
2620         * hwint.h (absu_hwi): Declare.
2621         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2622         of abs_hwi.
2623         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2624         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2625
2626 2011-08-18  Richard Guenther  <rguenther@suse.de>
2627
2628         * expr.c (get_inner_reference): Sign-extend the constant
2629         twos-complement offset before doing arbitrary precision
2630         arithmetic on it.
2631         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2632         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2633         to get_constraint_for_ptr_offset.
2634
2635 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2636
2637         PR target/50068
2638         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2639
2640 2011-08-17  Richard Guenther  <rguenther@suse.de>
2641
2642         * tree.h (convert_to_ptrofftype_loc): New function.
2643         (convert_to_ptrofftype): Define.
2644         * builtins.c (expand_builtin_bzero): Use size_type_node.
2645         (fold_builtin_bzero): Likewise.
2646         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2647         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2648         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2649         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2650         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2651         * fold-const.c (build_range_check): Negate using the original type.
2652         (fold_unary_loc): Use fold_build_pointer_plus_loc.
2653         * gimple-fold.c (gimple_adjust_this_by_delta): Use
2654         convert_to_ptrofftype.
2655         * gimplify.c (gimplify_self_mod_expr): Likewise.
2656         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2657         (graphite_create_new_loop_guard): Likewise.
2658         * graphite-sese-to-poly.c (my_long_long): Remove.
2659         (scop_ivs_can_be_represented): Adjust.
2660         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2661         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2662         * tree-loop-distribution.c (build_size_arg_loc): Use
2663         size_type_node.
2664         (generate_memset_zero): Simplify.
2665         * tree-mudflap.c: Use fold_convert, not convert.
2666         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2667         its own type.
2668         (determine_offset): Likewise for DR_STEP.
2669         (valid_initializer_p): Likewise.
2670         * tree-profile.c (prepare_instrumented_value): Convert the pointer
2671         to an integer type of same size.
2672         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2673         to sizetype without need.
2674         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2675         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2676         * tree-ssa-loop-manip.c (create_iv): Likewise.
2677         (determine_exit_conditions): Adjust comment.
2678         * tree-ssa-pre.c (create_expression_by_pieces): Use
2679         convert_to_ptrofftype.
2680         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2681         * varasm.c (array_size_for_constructor): Compute using double_ints.
2682
2683 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2684
2685         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2686         when generating an integer result where possible.  Short-cut
2687         comparison against 0 also for QImode.
2688
2689 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2690
2691         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2692         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2693         prototype.
2694         * config/spu/spu.c (spu_legitimize_reload_address): New function.
2695         (spu_legitimate_address_p): Do not check displacement if the base
2696         is an eliminable stack register.
2697
2698 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
2699
2700         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2701         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2702         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2703         m32c_preferred_output_reload_class): Remove.
2704         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2705         Change rclass argument and return types to reg_class_t. Use
2706         reg_class_subset_p instead of class_sizes.
2707         (m32c_preferred_output_reload_class): Make static. Change rclass
2708         argument and return types to reg_class_t.
2709         (TARGET_PREFERRED_RELOAD_CLASS,
2710         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2711
2712 2011-08-16  Kai Tietz  <ktietz@redhat.com>
2713
2714         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2715
2716 2011-08-16  Richard GUenther  <rguenther@suse.de>
2717
2718         PR tree-optimization/50082
2719         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2720         warnings here, instead of ...
2721         (ssa_forward_propagate_and_combine): ... here.
2722         (forward_propagate_into_comparison_1): Adjust.
2723         (forward_propagate_into_comparison): Likewise.
2724         (forward_propagate_into_gimple_cond): Likewise.
2725         (forward_propagate_into_cond): Likewise.
2726
2727 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2728
2729         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2730         instead of ggc_alloc_zone_vec_rtvec_def.
2731
2732 2011-08-16  Richard Guenther  <rguenther@suse.de>
2733
2734         * tree.h (ptrofftype_p): New helper function.
2735         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2736         offset verification.
2737         (verify_gimple_assign_binary): Likewise.
2738         * tree.c (build2_stat): Likewise.
2739         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2740         (reset_evolution_in_loop): Likewise.
2741         * tree-chrec.h (build_polynomial_chrec): Likewise.
2742
2743 2011-08-16  Liang Wang  <lwang1@marvell.com>
2744
2745         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2746         ggc_alloc_zone_vec_rtvec_def.
2747
2748 2011-08-16  Richard Guenther  <rguenther@suse.de>
2749
2750         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2751         helper factored out from ...
2752         (extract_range_from_binary_expr_1): ... here.  Re-structure
2753         to not glob handling too different tree codes.
2754
2755 2011-08-15  Richard Henderson  <rth@redhat.com>
2756
2757         PR middle-end/50006
2758         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2759         setting out to include allocate_stack named pattern as well.
2760         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2761         * stmt.c (expand_stack_restore): Likewise.
2762
2763 2011-08-15  Richard Guenther  <rguenther@suse.de>
2764
2765         PR middle-end/50082
2766         * fold-const.c (maybe_canonicalize_comparison_1): Properly
2767         convert the modified operand to the other operand type.
2768         (fold_comparison): Call maybe_canonicalize_comparison_1 with
2769         useless conversions stripped from comparison operands.
2770
2771 2011-08-15  Richard Guenther  <rguenther@suse.de>
2772
2773         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2774         (extract_range_from_unary_expr_1): Restructure.
2775
2776 2011-08-15  Richard Guenther  <rguenther@suse.de>
2777
2778         PR tree-optimization/50058
2779         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2780         copy matching.
2781
2782 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2783
2784         PR target/50022
2785         * config/arm/arm.c (output_move_double): Add 2 parameters
2786         to count the number of insns emitted and whether to emit or not.
2787         Use the flag to decide when to emit and count number of instructions
2788         that will be emitted.
2789         Handle case where output_move_double might be called for calculating
2790         lengths with an invalid constant.
2791         (arm_count_output_move_double_insns): Define.
2792         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2793         (output_move_double): Adjust prototype.
2794         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2795         output_move_double.
2796         ("*movdi_vfp_cortexa8"): Likewise and add attribute
2797         for ce_count.
2798         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2799         ("*movdf_soft_insn"): Likewise.
2800         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2801         ("*cirrus_thumb2_movdi"): Likewise.
2802         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2803         ("*cirrus_movdf_hard_insn"): Likewise.
2804         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2805         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2806         ("mov<mode>_internal VMMX"): Likewise.
2807         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2808
2809 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
2810
2811         * config/i386/i386.c (ix86_expand_round_sse4): New function.
2812         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2813         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2814         for TARGET_ROUND.
2815
2816         (rint<mode>2): Simplify TARGET_ROUND check.
2817         (floor<mode>2): Ditto.
2818         (ceil<mode>2): Ditto.
2819         (btrunc<mode>2): Ditto.
2820
2821 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
2822
2823         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2824         as mmix_preferred_output_reload_class.
2825
2826 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
2827
2828         * PR target/49903
2829         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2830         (branch_unspec): New insn.
2831         (branch): Beauty farm.
2832         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
2833         to be IF_THEN_ELSE.
2834         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2835         New static functions.
2836         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
2837         Use CONST_INT_P.  Beauty.
2838
2839 2011-08-12  Richard Henderson  <rth@redhat.com>
2840
2841         PR rtl-opt/49994
2842         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2843         * sched-deps.c (init_deps): Clear it.
2844         (deps_analyze_insn): Consume it.
2845         (sched_analyze_insn): Fill it.
2846
2847 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2848
2849         PR target/48328
2850         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2851         for tbh instructions.
2852
2853 2011-08-12  Diego Novillo  <dnovillo@google.com>
2854
2855         * data-streamer.h (streamer_write_zero): Rename from output_zero.
2856         (streamer_write_uhwi): Rename from lto_output_uleb128.
2857         (streamer_write_hwi): Rename from output_sleb128.
2858         (streamer_write_string): Rename from lto_output_string.
2859         (streamer_string_index): Rename from lto_string_index.
2860         (streamer_write_string_with_length): Rename from
2861         lto_output_string_with_length.
2862         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2863         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2864         (streamer_read_string): Rename from lto_input_string.
2865         (streamer_read_indexed_string): Rename from input_string_internal.
2866         (streamer_read_uhwi): Rename from lto_input_uleb128.
2867         (streamer_read_hwi): Rename from lto_input_sleb128.
2868         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2869         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2870         (streamer_write_enum): Rename from lto_output_enum.
2871         (streamer_read_enum): Rename from lto_input_enum.
2872         (streamer_write_record_start): Rename from output_record_start.
2873         (streamer_read_record_start): Rename from input_record_start.
2874         (streamer_write_bitpack): Rename from lto_output_bitpack.
2875         (streamer_read_bitpack): Rename from lto_input_bitpack.
2876         (streamer_write_char_stream): Rename from lto_output_1_stream.
2877         (streamer_read_uchar): Rename from lto_input_1_unsigned.
2878         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2879         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2880         (streamer_read_string_cst): Rename from input_string_cst.
2881         (streamer_read_chain): Rename from lto_input_chain.
2882         (streamer_alloc_tree): Rename from lto_materialize_tree.
2883         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2884         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2885         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2886         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2887         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2888         (streamer_write_chain): Rename from lto_output_chain.
2889         (streamer_write_tree_header): Rename from lto_output_tree_header.
2890         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2891         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2892         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2893         (streamer_write_builtin): Rename from lto_output_builtin_tree.
2894         (streamer_check_handled_ts_structures): Rename from
2895         check_handled_ts_structures.
2896         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2897         (streamer_tree_cache_insert_at): Rename from
2898         lto_streamer_cache_insert_at.
2899         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2900         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2901         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2902         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2903         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2904         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2905         (write_identifier): Rename from output_identifier.
2906         (write_ts_common_tree_pointers): Rename from
2907         lto_output_ts_common_tree_pointers.
2908         (write_ts_vector_tree_pointers): Rename from
2909         lto_output_ts_vector_tree_pointers.
2910         (write_ts_complex_tree_pointers): Rename from
2911         lto_output_ts_complex_tree_pointers.
2912         (write_ts_decl_minimal_tree_pointers): Rename from
2913         lto_output_ts_decl_minimal_tree_pointers.
2914         (write_ts_decl_common_tree_pointers): Rename from
2915         lto_output_ts_decl_common_tree_pointers.
2916         (write_ts_decl_non_common_tree_pointers): Rename from
2917         lto_output_ts_decl_non_common_tree_pointers.
2918         (write_ts_decl_with_vis_tree_pointers): Rename from
2919         lto_output_ts_decl_with_vis_tree_pointers.
2920         (write_ts_field_decl_tree_pointers): Rename from
2921         lto_output_ts_field_decl_tree_pointers.
2922         (write_ts_function_decl_tree_pointers): Rename from
2923         lto_output_ts_function_decl_tree_pointers.
2924         (write_ts_type_common_tree_pointers): Rename from
2925         lto_output_ts_type_common_tree_pointers.
2926         (write_ts_type_non_common_tree_pointers): Rename from
2927         lto_output_ts_type_non_common_tree_pointers.
2928         (write_ts_list_tree_pointers): Rename from
2929         lto_output_ts_list_tree_pointers.
2930         (write_ts_vec_tree_pointers): Rename from
2931         lto_output_ts_vec_tree_pointers.
2932         (write_ts_exp_tree_pointers): Rename from
2933         lto_output_ts_exp_tree_pointers.
2934         (write_ts_block_tree_pointers): Rename from
2935         lto_output_ts_block_tree_pointers.
2936         (write_ts_binfo_tree_pointers): Rename from
2937         lto_output_ts_binfo_tree_pointers.
2938         (write_ts_constructor_tree_pointers): Rename from
2939         lto_output_ts_constructor_tree_pointers.
2940         (write_ts_target_option): Rename from lto_output_ts_target_option.
2941         (write_ts_translation_unit_decl_tree_pointers): Rename from
2942         lto_output_ts_translation_unit_decl_tree_pointers.
2943         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2944         Rename from lto_streamer_cache_add_to_node_array.
2945         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2946         (record_common_node): Rename from lto_record_common_node.
2947
2948         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2949         declarations.
2950         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2951         function.
2952         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2953         unused function.
2954         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2955         (ipa-reference.o): Likewise.
2956         * lto-section-out.c: Include data-streamer.h.
2957         * ipa-reference.c: Include data-streamer.h.
2958
2959 2011-08-12  Nick Clifton  <nickc@redhat.com>
2960
2961         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2962         * doc/md.texi (cmpstrn): Note that the comparison stops if both
2963         fetched bytes are zero.
2964         (cmpstr): Likewise.
2965         (cmpmem): Note that the comparison does not stop if both of the
2966         fetched bytes are zero.
2967
2968 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
2969
2970         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2971         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2972         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2973         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2974         to integer_type_node.
2975         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2976         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2977         * builtins.c (expand_builtin_in): Ditto.
2978         (mathfn_built_in_1): Ditto.
2979         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2980         BUILT_IN_IFLOOR.
2981         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2982         BUILT_IN_IROUND.
2983         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2984         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2985         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2986
2987 2011-08-12  Richard Guenther  <rguenther@suse.de>
2988
2989         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2990
2991 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
2992
2993         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2994
2995 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2996
2997         * config/arm/arm.c (get_label_padding): New function.
2998         (create_fix_barrier, arm_reorg): Use it.
2999
3000 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
3001
3002         PR target/49781
3003         * config/i386/i386.md (*lea_5_zext): New.
3004         (*lea_6_zext): Ditto.
3005         * config/i386/predicates.md (const_32bit_mask): New predicate.
3006         (lea_address_operand): Reject AND.
3007         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3008         const_32bit_mask immediate.
3009         (ix86_print_operand_address): Handle AND.
3010         (memory_address_length): Ditto.
3011
3012 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
3013             Brian Hackett  <bhackett1024@gmail.com>
3014
3015         * plugin.def: Add event for finish_decl.
3016         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3017         * c-decl.c (finish_decl): Invoke callbacks on above event.
3018         * doc/plugins.texi: Document above event.
3019
3020 2011-08-11  Richard Guenther  <rguenther@suse.de>
3021
3022         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3023         lookups, make looking through aggregate copies stronger.
3024
3025 2011-08-11  Richard Henderson  <rth@redhat.com>
3026
3027         PR bootstrap/50018
3028         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3029
3030 2011-08-11  Richard Guenther  <rguenther@suse.de>
3031
3032         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3033         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3034         (vrp_visit_stmt): Likewise.
3035
3036 2011-08-11  Richard Guenther  <rguenther@suse.de>
3037
3038         PR middle-end/50040
3039         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3040         load of the other piece with TREE_NO_WARNING.
3041         * tree-flow.h (warn_uninit): Adjust prototype.
3042         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3043         the base variable and the expression that is used separately.
3044         Properly query all TREE_NO_WARNING flags.
3045         (struct walk_data): Remove.
3046         (warn_uninitialized_var): Likewise.
3047         (warn_uninitialized_vars): Do not walk gimple pieces but simply
3048         look at all SSA uses of the statement.  Handle unused memory
3049         separately.
3050         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3051
3052 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3053
3054         * config/rx/rx.md (movsicc): Allow register to register transfers.
3055         (*movsicc): Likewise.
3056         (*stcc): Restrict this pattern to EQ and NE compares.
3057         (*stcc_reg): New pattern.  Works for any comparison but only for
3058         register transfers.
3059
3060 2011-08-11   Diego Novillo  <dnovillo@google.com>
3061
3062         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3063         Call stream_write_tree instead of output_record_start.
3064         (lto_output_ts_binfo_tree_pointers): Likewise.
3065
3066         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3067         Convert it to a macro.
3068         (stream_read_tree): Likewise.
3069
3070         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3071         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3072
3073         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3074         and tree_read_bitfields.
3075         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3076         (lto_write_tree): Call it.
3077         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3078         * streamer-hooks.h (struct streamer_hooks): Remove fields
3079         name, is_streamable and alloc_tree. Update all users.
3080         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3081         (lto_materialize_tree): ... here.
3082         Handle CALL_EXPR codes.
3083         Remove call to lto_streamer_cache_append.
3084         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3085         * tree-streamer.h (tree_read_bitfields): Declare.
3086
3087         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3088         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3089         * tree-streamer.h (stream_read_tree): New.  Replace all calls
3090         to lto_input_tree with it.
3091         (stream_write_tree): New.  Replace all calls to lto_output_tree,
3092         lto_output_tree_ref and lto_output_tree_or_ref with it.
3093         * lto-streamer-in.c (lto_read_tree): Inline code from
3094         lto_streamer_read_tree.
3095         (lto_input_tree): Move from tree-streamer-in.c.
3096         * lto-streamer-out.c (lto_output_tree_ref): Make static.
3097         Remove handling of NULL values for EXPR.
3098         Do not handle EXPRs that are not indexable.
3099         (lto_write_tree): Move from tree-streamer-out.c.
3100         Inline lto_streamer_write_tree.
3101         (lto_output_tree): Move from tree-streamer-out.c.
3102         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3103         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3104         (lto_preload_common_nodes): Likewise.
3105         Remove assertions and adjustments for nodes
3106         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3107         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3108         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3109         * lto-streamer.h (lto_input_tree): Declare.
3110         (lto_output_tree_ref): Remove.
3111         * streamer-hooks.h (struct streamer_hooks): Remove fields
3112         preload_common_nodes, indexable_with_decls_p,
3113         pack_value_fields, unpack_value_fields and output_tree_header.
3114         Update all users.
3115         * tree-streamer-in.c (lto_materialize_tree): Make extern.
3116         (lto_input_tree_pointers): Likewise.
3117         (lto_read_tree): Move to lto-streamer-in.c.
3118         (lto_input_integer_cst): Make extern.
3119         (lto_get_pickled_tree): Likewise.
3120         (lto_get_builtin_tree): Likewise.
3121         (lto_input_tree): Move to lto-streamer-in.c.
3122         * tree-streamer-out.c (pack_value_fields): Make extern.
3123         (lto_output_tree_or_ref): Remove.  Replace all callers with
3124         calls to stream_write_tree.
3125         (lto_output_builtin_tree): Make extern.
3126         (lto_streamer_write_tree): Inline into lto_write_tree.
3127         (lto_output_tree_pointers): Make extern.
3128         (lto_output_tree_header): Likewise.
3129         (lto_output_integer_cst): Likewise.
3130         (lto_write_tree): Move to lto-streamer-out.c.
3131         (lto_output_tree): Likewise.
3132         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3133         (preload_common_nodes): Likewise.
3134         (lto_streamer_cache_create): Call it.
3135         * tree-streamer.h: Include streamer-hooks.h.
3136         (stream_write_tree): New.
3137         (stream_read_tree): New.
3138         (lto_input_tree): Remove.
3139         (lto_materialize_tree): Declare.
3140         (lto_input_tree_pointers): Declare.
3141         (lto_get_pickled_tree): Declare.
3142         (lto_get_builtin_tree): Declare.
3143         (lto_input_integer_cst): Declare.
3144         (lto_output_tree_header): Declare.
3145         (pack_value_fields): Declare.
3146         (lto_output_tree_pointers): Declare.
3147         (lto_output_integer_cst): Declare.
3148         (lto_output_builtin_tree): Declare.
3149
3150 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3151
3152         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3153         only if producer writes to the register given by regno.
3154
3155 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3156             Alexander Monakov  <amonakov@ispras.ru>
3157
3158         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3159         (sched_get_condition_with_rev_uncached): ... this.  Factor out
3160         condition caching logic into ...
3161         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
3162         attempt to use cache for instructions with zero luid.
3163         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3164         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3165
3166 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3167
3168         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3169         get_seqno_for_a_jump.  Update the caller.
3170         (get_seqno_by_succs): New.  Use it ...
3171         (get_seqno_for_a_jump): ... here to find a seqno if looking at
3172         predecessors was not sufficient.
3173         (get_seqno_by_preds): Include head in iteration range, exclude insn.
3174
3175 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3176
3177         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3178
3179 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3180
3181         * sel-sched-ir.h (register_unavailable_p): Declare.
3182         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
3183         (set_unavailable_target_for_expr): ... here to properly test
3184         availability of a register.
3185         (speculate_expr): Ditto.
3186         * sel-sched.c (substitute_reg_in_expr): Ditto.
3187         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3188
3189 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
3190
3191         * sel-sched.c (verify_target_availability): Fix usage of
3192         hard_regno_nregs.
3193
3194 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3195
3196         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3197         recognized by cannot_copy_insn_p hook and volatile instructions.
3198
3199 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
3200
3201         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3202
3203 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
3204
3205         * doc/md.texi (define_bypass): Say that the instruction names can
3206         be filename-style globs.
3207         * Makefile.in (FNMATCH_H): Define.
3208         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3209         * genattrtab.c: Include fnmatch.h.
3210         (bypass_list): Change field name from "insn" to "pattern".
3211         (gen_bypass_1): Update accordingly.
3212         (process_bypasses): Use fnmatch to check for matches between
3213         insn reservations and define_bypasses.
3214         * genautomata.c: Include fnmatch.h.
3215         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3216         and out_pattern respectively.
3217         (gen_bypass, insert_bypass): Update accordingly.
3218         (for_each_matching_insn, process_bypass_2, process_bypass_1)
3219         (process_bypass): New functions.
3220         (process_decls): Use process_bypass.  Update after field name changes.
3221
3222 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
3223
3224         PR target/49687
3225         * config/avr/avr.md (smulqi3_highpart): New insn.
3226         (umulqi3_highpart): New insn.
3227         (*subqi3.ashiftrt7): New insn.
3228         (smulhi3_highpart): New expander.
3229         (umulhi3_highpart): Nex expander.
3230         (*smulhi3_highpart_call): New insn.
3231         (*umulhi3_highpart_call): New insn.
3232         (extend_u): New code attribute.
3233         (extend_prefix): Rename code attribute to extend_su.
3234         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3235         widening QI/HI multiply.
3236
3237 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
3238
3239         PR tree-optimization/50039
3240         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3241         that DEF_STMT has a stmt_vec_info.
3242
3243 2011-08-10  Richard Guenther  <rguenther@suse.de>
3244
3245         * tree.h (can_trust_pointer_alignment): Remove.
3246         * builtins.c (can_trust_pointer_alignment): Remove.
3247
3248 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3249
3250         * c-typeck.c (scalar_to_vector): New function. Try scalar to
3251         vector conversion.
3252         (stv_conv): New enum for scalar_to_vector return type.
3253         (build_binary_op): Adjust.
3254         * doc/extend.texi: Description of scalar to vector expansion.
3255
3256 2011-08-10  Richard Guenther  <rguenther@suse.de>
3257
3258         * tree.h (get_pointer_alignment): Remove max-align argument.
3259         (get_object_alignment): Likewise.
3260         * builtins.c (get_object_alignment_1): Adjust.
3261         (get_object_alignment): Remove max-align argument.
3262         (get_pointer_alignment): Likewise.
3263         (expand_builtin_strlen): Adjust.
3264         (expand_builtin_memcpy): Likewise.
3265         (expand_builtin_mempcpy_args): Likewise.
3266         (expand_builtin_strncpy): Likewise.
3267         (expand_builtin_memset_args): Likewise.
3268         (expand_builtin_memcmp): Likewise.
3269         (expand_builtin_strcmp): Likewise.
3270         (expand_builtin_strncmp): Likewise.
3271         (get_builtin_sync_mem): Likewise.
3272         (fold_builtin_memset): Likewise.
3273         (fold_builtin_memory_op): Likewise.
3274         (expand_builtin_memory_chk): Likewise.
3275         * emit-rtl.c (get_mem_align_offset): Likewise.
3276         (set_mem_attributes_minus_bitpos): Likewise.
3277         * expr.c (expand_assignment): Likewise.
3278         (expand_expr_real_1): Likewise.
3279         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3280         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3281         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3282         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3283         * value-prof.c (gimple_stringops_transform): Likewise.
3284
3285 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
3286
3287         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3288         * doc/tm.texi: Regenerate.
3289
3290 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
3291
3292         PR target/29560
3293         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3294         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3295         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3296         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3297         shift target is unused.
3298
3299 2011-08-10  Richard Guenther  <rguenther@suse.de>
3300
3301         PR tree-optimization/49937
3302         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3303         using get_object_alignment_1.
3304
3305 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3306
3307         * config/i386/i386.c (ix86_emit_i387_round): New function.
3308         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3309         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3310         Use ix86_emit_i387_round to expand round function for i387 math.
3311         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3312         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3313
3314 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3315
3316         * config/sync.c: Move to ../libgcc.
3317         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3318         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3319         Remove.
3320
3321 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3322
3323         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3324         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3325         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3326         Change 'from' and 'to' arguments type to reg_class_t.
3327         (TARGET_REGISTER_MOVE_COST): Define.
3328
3329 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
3330
3331         PR target/50026
3332         Revert:
3333         PR rtl-optimization/49990
3334         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3335         ignore classes which can not change mode.
3336         (find_costs_and_classes): Ditto.
3337
3338 2011-08-09  Richard Guenther  <rguenther@suse.de>
3339
3340         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3341         information for ranges with only negative values.
3342         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3343         BIT_AND_EXPR handling to handle ranges with negative values.
3344
3345 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
3346
3347         * config/i386/i386.c: Remove traling spaces.
3348         * config/i386/sse.md: Likewise.
3349         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3350         (*fma_fmsub_<mode>): Likewise.
3351         (*fma_fnmadd_<mode>): Likewise.
3352         (*fma_fnmsub_<mode>): Likewise.
3353
3354 2011-08-09  Nick Clifton  <nickc@redhat.com>
3355
3356         * config/rx/rx.md: Disable extender peepholes at -O3.
3357
3358 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
3359
3360         PR target/49781
3361         * config/i386/i386.md (reload_noff_load): New.
3362         (reload_noff_store): Ditto.
3363         * config/i386/i386.c (ix86_secondary_reload): Use
3364         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3365         double-word moves from/to non-offsetable addresses instead of
3366         generating XMM temporary.
3367
3368 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
3369
3370         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3371
3372 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
3373
3374         PR tree-optimization/50014
3375         * tree-vect-loop.c (vectorizable_reduction): Get def type before
3376         calling vect_get_vec_def_for_stmt_copy ().
3377
3378 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
3379
3380         PR rtl-optimization/49990
3381         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3382         ignore classes which can not change mode.
3383         (find_costs_and_classes): Ditto.
3384
3385 2011-08-08  Richard Henderson  <rth@redhat.com>
3386
3387         PR middle-end/49990
3388         * config/i386/i386.c (ix86_expand_prologue): Call
3389         for SEH target gen_prologue_use instead of gen_blockage
3390         at prologue's end.
3391
3392 2011-08-08  Martin Jambor  <mjambor@suse.cz>
3393
3394         PR middle-end/49923
3395         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3396         memory alignment.
3397
3398 2011-08-08   Diego Novillo  <dnovillo@google.com>
3399
3400         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3401         (DATA_STREAMER_H): New.
3402         (GIMPLE_STREAMER_H): New.
3403         (TREE_STREAMER_H): New.
3404         (STREAMER_HOOKS_H): New.
3405         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3406         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3407         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3408         (data-streamer.o): New.
3409         (data-streamer-in.o): New.
3410         (data-streamer-out.o): New.
3411         (gimple-streamer-in.o): New.
3412         (gimple-streamer-out.o): New.
3413         (streamer-hooks.o): New.
3414         (tree-streamer.o): New.
3415         (tree-streamer-in.o): New.
3416         (tree-streamer-out.o): New.
3417         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3418         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3419         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3420         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3421         GIMPLE_STREAMER_H and TREE_STREAMER_H.
3422         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3423         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3424         (ipa-inline-analysis.o): Likewise.
3425         (ipa-pure-const.o): Likewise.
3426         * data-streamer-in.c: New.
3427         * data-streamer-out.c: New.
3428         * data-streamer.c: New.
3429         * data-streamer.h: New.
3430         * gimple-streamer-in.c: New.
3431         * gimple-streamer-out.c: New.
3432         * gimple-streamer.h: New.
3433         * ipa-inline-analysis.c: Include data-streamer.h.
3434         * ipa-prop.c: Include data-streamer.h.
3435         * ipa-pure-const.c: Include data-streamer.h.
3436         * lto-cgraph.c: Include data-streamer.h.
3437         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3438         (lto_input_widest_uint_uleb128): Likewise.
3439         (lto_input_sleb128): Likewise.
3440         (bp_unpack_var_len_unsigned): Likewise.
3441         (bp_unpack_var_len_int): Likewise.
3442         * lto-section-out.c (lto_output_uleb128_stream): Move to
3443         data-streamer-out.c.
3444         (lto_output_widest_uint_uleb128_stream): Likewise.
3445         (lto_output_sleb128_stream): Likewise.
3446         (bp_pack_var_len_unsigned): Likewise.
3447         (bp_pack_var_len_int): Likewise.
3448         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3449         (struct string_slot): Remove.  Update all users.
3450         (lto_tag_check_set): Make extern.
3451         (lto_tag_check_range): Move to lto-streamer.h.
3452         (lto_tag_check): Likewise.
3453         (hash_string_slot_node): Remove.  Update all users.
3454         (eq_string_slot_node): Remove.  Update all users.
3455         (string_for_index): Move to data-streamer-in.c
3456         (input_string_internal): Likewise.
3457         (input_string_cst): Move to tree-streamer-in.c.
3458         (input_identifier): Likewise.
3459         (lto_input_string): Move to data-streamer-in.c
3460         (input_record_start): Move to data-streamer.h
3461         (canon_file_name): Use new definition of struct string_slot
3462         from data-streamer.h.  Set S_SLOT.LEN.
3463         (lto_input_location): Make extern.
3464         (lto_input_chain): Move to tree-streamer-in.c.
3465         (lto_init_eh): Make extern.
3466         (input_phi): Move to gimple-streamer-in.c.
3467         (input_gimple_stmt): Likewise.
3468         (input_bb): Likewise.
3469         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3470         (unpack_ts_real_cst_value_fields): Likewise.
3471         (unpack_ts_fixed_cst_value_fields): Likewise.
3472         (unpack_ts_decl_common_value_fields): Likewise.
3473         (unpack_ts_decl_wrtl_value_fields): Likewise.
3474         (unpack_ts_decl_with_vis_value_fields): Likewise.
3475         (unpack_ts_function_decl_value_fields): Likewise.
3476         (unpack_ts_type_common_value_fields): Likewise.
3477         (unpack_ts_block_value_fields): Likewise.
3478         (unpack_ts_translation_unit_decl_value_fields): Likewise.
3479         (unpack_value_fields): Likewise.
3480         (lto_materialize_tree): Likewise.
3481         (lto_input_ts_common_tree_pointers): Likewise.
3482         (lto_input_ts_vector_tree_pointers): Likewise.
3483         (lto_input_ts_complex_tree_pointers): Likewise.
3484         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3485         (lto_input_ts_decl_common_tree_pointers): Likewise.
3486         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3487         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3488         (lto_input_ts_field_decl_tree_pointers): Likewise.
3489         (lto_input_ts_function_decl_tree_pointers): Likewise.
3490         (lto_input_ts_type_common_tree_pointers): Likewise.
3491         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3492         (lto_input_ts_list_tree_pointers): Likewise.
3493         (lto_input_ts_vec_tree_pointers): Likewise.
3494         (lto_input_ts_exp_tree_pointers): Likewise.
3495         (lto_input_ts_block_tree_pointers): Likewise.
3496         (lto_input_ts_binfo_tree_pointers): Likewise.
3497         (lto_input_ts_constructor_tree_pointers): Likewise.
3498         (lto_input_ts_target_option): Likewise.
3499         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3500         (lto_input_tree_pointers): Likewise.
3501         (lto_get_pickled_tree): Likewise.
3502         (lto_get_builtin_tree): Likewise.
3503         (lto_read_tree): Likewise.
3504         (lto_input_integer_cst): Likewise.
3505         (lto_input_tree): Likewise.
3506         * lto-streamer-out.c: Include data-streamer.h,
3507         gimple-streamer.h and streamer-hooks.h.
3508         (struct string_slot): Move to data-streamer.h.
3509         (hash_string_slot_node): Likewise.
3510         (eq_string_slot_node): Likewise.
3511         (lto_string_index): Move to data-streamer-out.c.
3512         (lto_output_string_with_length): Likewise.
3513         (lto_output_string): Likewise.
3514         (output_string_cst): Move to tree-streamer-out.c.
3515         (output_identifier): Likewise.
3516         (output_zero): Move to data-streamer-out.c
3517         (output_uleb128): Likewise.
3518         (output_sleb128): Likewise.
3519         (output_record_start): Move to data-streamer.h
3520         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3521         (pack_ts_real_cst_value_fields): Likewise.
3522         (pack_ts_fixed_cst_value_fields): Likewise.
3523         (pack_ts_decl_common_value_fields): Likewise.
3524         (pack_ts_decl_wrtl_value_fields): Likewise.
3525         (pack_ts_decl_with_vis_value_fields): Likewise.
3526         (pack_ts_function_decl_value_fields): Likewise.
3527         (pack_ts_type_common_value_fields): Likewise.
3528         (pack_ts_block_value_fields): Likewise.
3529         (pack_ts_translation_unit_decl_value_fields): Likewise.
3530         (pack_value_fields): Likewise.
3531         (lto_output_chain): Likewise.
3532         (lto_output_ts_common_tree_pointers): Likewise.
3533         (lto_output_ts_vector_tree_pointers): Likewise.
3534         (lto_output_ts_complex_tree_pointers): Likewise.
3535         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3536         (lto_output_ts_decl_common_tree_pointers): Likewise.
3537         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3538         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3539         (lto_output_ts_field_decl_tree_pointers): Likewise.
3540         (lto_output_ts_function_decl_tree_pointers): Likewise.
3541         (lto_output_ts_type_common_tree_pointers): Likewise.
3542         (lto_output_ts_type_non_common_tree_pointers): Likewise.
3543         (lto_output_ts_list_tree_pointers): Likewise.
3544         (lto_output_ts_vec_tree_pointers): Likewise.
3545         (lto_output_ts_exp_tree_pointers): Likewise.
3546         (lto_output_ts_block_tree_pointers): Likewise.
3547         (lto_output_ts_binfo_tree_pointers): Likewise.
3548         (lto_output_ts_constructor_tree_pointers): Likewise.
3549         (lto_output_ts_target_option): Likewise.
3550         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3551         (lto_output_tree_pointers): Likewise.
3552         (lto_output_tree_header): Likewise.
3553         (lto_output_builtin_tree): Likewise.
3554         (lto_write_tree): Likewise.
3555         (lto_output_integer_cst): Likewise.
3556         (lto_output_tree): Likewise.
3557         (output_phi): Move to gimple-streamer-out.c.
3558         (output_gimple_stmt): Likewise.
3559         (output_bb): Likewise.
3560         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3561         (streamer_hooks): Move to streamer-hooks.c.
3562         (check_handled_ts_structures): Move to tree-streamer.c
3563         (lto_streamer_cache_add_to_node_array): Likewise.
3564         (lto_streamer_cache_insert_1): Likewise.
3565         (lto_streamer_cache_insert): Likewise.
3566         (lto_streamer_cache_insert_at): Likewise.
3567         (lto_streamer_cache_append): Likewise.
3568         (lto_streamer_cache_lookup): Likewise.
3569         (lto_streamer_cache_get): Likewise.
3570         (lto_record_common_node): Likewise.
3571         (lto_preload_common_nodes): Likewise.
3572         (lto_streamer_cache_create): Likewise.
3573         (lto_streamer_cache_delete): Likewise.
3574         (streamer_hooks_init): Move to streamer-hooks.c.
3575         * lto-streamer.h: Include diagnostic.h
3576         (struct output_block, struct lto_input_block,
3577         struct data_in, struct bitpack_d): Remove forward declarations.
3578         (struct bitpack_d): Move to data-streamer.h.
3579         (struct lto_streamer_cache_d): Move to tree-streamer.h.
3580         (struct streamer_hooks): Move to streamer-hooks.h.
3581         (bp_pack_var_len_unsigned): Move to data-streamer.h.
3582         (bp_pack_var_len_int): Likewise.
3583         (bp_unpack_var_len_unsigned): Likewise.
3584         (bp_unpack_var_len_int): Likewise.
3585         (lto_input_location): Declare.
3586         (lto_tag_check_set): Declare.
3587         (lto_init_eh): Declare.
3588         (lto_output_tree_ref): Declare.
3589         (lto_output_location): Declare.
3590         (bitpack_create): Move to data-streamer.h.
3591         (bp_pack_value): Likewise.
3592         (lto_output_bitpack): Likewise.
3593         (lto_input_bitpack): Likewise.
3594         (bp_unpack_value): Likewise.
3595         (lto_output_1_stream): Likewise.
3596         (lto_input_1_unsigned): Likewise.
3597         (lto_output_int_in_range): Likewise.
3598         (lto_input_int_in_range): Likewise.
3599         (bp_pack_int_in_range): Likewise.
3600         (bp_unpack_int_in_range): Likewise.
3601         (lto_output_enum): Likewise.
3602         (lto_input_enum): Likewise.
3603         (bp_pack_enum): Likewise.
3604         (bp_unpack_enum): Likewise.
3605         * streamer-hooks.c: New.
3606         * streamer-hooks.h: New.
3607         * tree-streamer-in.c: New.
3608         * tree-streamer-out.c: New.
3609         * tree-streamer.c: New.
3610         * tree-streamer.h: New.
3611
3612 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3613
3614         * gthr-posix95.h: Remove.
3615         * gthr.h [_PTHREADS95]: Remove.
3616         * configure.ac (enable_threads): Remove posix95.
3617         * configure: Regenerate.
3618         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3619
3620 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
3621
3622         PR target/49781
3623         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3624         SImode addresses.
3625         (ix86_print_operand_address): Handle zero-extended addresses.
3626         (memory_address_length): Add length of addr32 prefix for
3627         zero-extended addresses.
3628         (ix86_secondary_reload): Handle moves to/from double-word general
3629         registers from/to zero-extended addresses.
3630         * config/i386/predicates.md (lea_address_operand): Reject
3631         zero-extended operands.
3632
3633 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3634
3635         PR other/48007
3636         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3637
3638         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3639         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3640
3641         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3642         (_Unwind_Context_Reg_Val): Likewise.
3643         (_Unwind_Get_Unwind_Word): Likewise.
3644         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3645         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3646         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3647         for EXTENDED_CONTEXT_BIT.
3648         (__frame_state_for): Likewise.
3649         (uw_init_context_1): Likewise.
3650         (_Unwind_GetGR): Updated.
3651         (_Unwind_SetGR): Likewise.
3652         (_Unwind_GetGRPtr): Likewise.
3653         (_Unwind_SetGRPtr): Likewise.
3654         (_Unwind_SetGRValue): Likewise.
3655         (_Unwind_GRByValue): Likewise.
3656         (uw_install_context_1): Likewise.
3657
3658         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3659         ASSUME_EXTENDED_UNWIND_CONTEXT.
3660         * doc/tm.texi: Regenerated.
3661
3662 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3663
3664         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3665
3666 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3667
3668         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3669         Linux/GNU-specific.
3670         (DEC Alpha Options, -mtune): Likewise.
3671         (MIPS Options, -march): native is supported on IRIX.
3672
3673 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3674
3675         * config/sparc/driver-sparc.c: New file.
3676         * config/sparc/x-sparc: New file.
3677         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3678         * config/sparc/sparc.opt (native): New value for enum processor_type.
3679         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3680         * config/sparc/sparc.c (sparc_option_override): Abort if
3681         PROCESSOR_NATIVE gets here.
3682         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3683         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3684         DRIVER_SELF_SPECS): Define.
3685         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3686         (SPARC Options, -mtune): Likewise.
3687         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3688         Substitute result.
3689         * configure: Regenerate.
3690         * Makefile.in (EXTRA_GCC_LIBS): Set.
3691         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3692         (cpp$(exeext)): Likewise.
3693
3694 2011-08-08  Richard Guenther  <rguenther@suse.de>
3695
3696         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3697         split out from ...
3698         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
3699         by composition.
3700
3701 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
3702
3703         PR tree-optimization/50005
3704         * ipa-inline-analysis (remap_predicate): Add cast to
3705         silence signed/unsigned comparison warning.
3706
3707 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3708
3709         * modulo-sched.c (get_sched_window): Use a table for the debug output.
3710         Print the current ii.
3711         (sms_schedule_by_order): Reduce whitespace in dump line.
3712
3713 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
3714
3715         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3716         and one loop for successors.  Fix upper bound of memory range.
3717
3718 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3719
3720         PR target/50001
3721         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3722         (TARGET_INSTANTIATE_DECLS): New define.
3723
3724 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
3725             Mikael Morin   <mikael.morin@sfr.fr>
3726
3727         * Makefile.in (INCLUDES_FOR_TARGET): New.
3728         (LIBGCC2_CFLAGS): Use it.
3729         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3730
3731 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3732
3733         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3734         frame->save_regs_using_mov calculation.
3735
3736 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
3737
3738         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3739         * config/i386/sse.md (castmode): New mode attribute.
3740         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3741         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3742
3743 2011-08-05  Jan Hubicka  <jh@suse.cz>
3744
3745         PR middle-end/49494
3746         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3747
3748 2011-08-05  Jan Hubicka  <jh@suse.cz>
3749
3750         PR middle-end/49500
3751         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3752         handle aliases.
3753         (create_emultls_var):New function.
3754         (ipa_lower_emutls): Handle aliases correctly.
3755
3756 2011-08-05  Jan Hubicka  <jh@suse.cz>
3757
3758         PR middle-end/49735
3759         * ipa-inline.c (recursive_inlining): Look through aliases.
3760
3761 2011-08-05  Jason Merrill  <jason@redhat.com>
3762
3763         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3764         declarations to beginning of function.
3765
3766 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3767
3768         PR rtl-optimization/49900
3769         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3770         ensure basic blocks stay in the same order.
3771
3772 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
3773
3774         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3775         store_bit_field.
3776         (s390_expand_atomic): Same.
3777
3778 2011-08-05  Richard Henderson  <rth@redhat.com>
3779
3780         PR rtl-opt/49977
3781         * dwarf2cfi.c (scan_insn_after): Split out of ...
3782         (scan_trace): ... here.  Correctly place notes wrt sequences.
3783
3784 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3785             Richard Henderson  <rth@redhat.com>
3786
3787         PR rtl-opt/49982
3788         * expr.c (fixup_args_size_notes): Look through no-op moves.
3789
3790 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3791
3792         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3793         of "m" for operand 0.  Add type and mode attribute.
3794         (*pushxf_nointeger"): Use "<" constraint for operand 0.
3795         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
3796         constraint instead of "o" for opreand 1.
3797         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
3798         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3799         operand 0, alternative 4.
3800         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3801
3802 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3803
3804         * config/i386/predicates.md (lea_address_operand): Rename from
3805         no_seg_address_operand.
3806         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3807         (*lea_1_zext): Ditto.
3808         (*lea_2): Ditto.
3809         (*lea_2_zext): Ditto.
3810
3811 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
3812
3813         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3814         parts.base and parts.index.
3815         * config/i386/predicates.md (aligned_operand): Ditto.
3816         (cmpxchg8b_pic_memory_operand): Ditto.
3817
3818 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3819
3820         * config/soft-fp: Move to ../libgcc.
3821         * Makefile.in (SFP_MACHINE): Remove.
3822         (libgcc-support): Remove $(SFP_MACHINE) dependency.
3823         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3824         * config/arm/t-arm-softfp: Move to
3825         ../libgcc/config/arm/t-softfp.
3826         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3827         * config/c6x/t-c6x-softfp: Remove.
3828         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3829         * config/i386/t-fprules-softfp: Move to
3830         ../libgcc/config/t-softfp-tf.
3831         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3832         * config/ia64/t-fprules-softfp: Remove.
3833         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3834         * config/lm32/t-fprules-softfp: Remove.
3835         * config/moxie/sfp-machine.h: Remove.
3836         * config/moxie/t-moxie-softfp: Remove.
3837         * config/rs6000/darwin-ldouble-format: Move to
3838         ../libgcc/config/rs6000/ibm-ldouble-format.
3839         * config/rs6000/darwin-ldouble.c: Move to
3840         ../libgcc/config/rs6000/ibm-ldouble.c
3841         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3842         * config/rs6000/libgcc-ppc64.ver: Likewise.
3843         * config/rs6000/sfp-machine.h: Likewise.
3844         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3845         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3846         (LIB2FUNCS_EXTRA): Remove.
3847         (TARGET_LIBGCC2_CFLAGS): Remove.
3848         * config/rs6000/t-aix52: Likewise
3849         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3850         $(srcdir)/config/rs6000/darwin-ldouble.c.
3851         (SHLIB_MAPFILES): Remove.
3852         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3853         $(srcdir)/config/rs6000/darwin-ldouble.c.
3854         * config/rs6000/t-fprules-softfp: Move to
3855         ../libgcc/config/t-softfp-sfdf.
3856         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3857         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3858         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3859         $(srcdir)/config/rs6000/darwin-ldouble.c.
3860         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3861         * config/score/t-score-softfp: Remove.
3862         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3863         soft-fp/t-softfp from tmake_file.
3864         (arm*-*-uclinux*): Likewise.
3865         (arm*-*-ecos-elf): Likewise.
3866         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3867         (arm*-*-rtems*): Likewise.
3868         (arm*-*-elf): Likewise.
3869         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3870         tmake_file.
3871         (moxie-*-uclinux*): Likewise.
3872         (moxie-*-rtems*): Likewise.
3873         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3874         tmake_file.
3875         (lm32-*-rtems*): Likewise.
3876         (lm32-*-uclinux*): Likewise.
3877         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3878         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3879         (powerpc-*-linux*, powerpc64-*-linux*): Remove
3880         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3881         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3882         tmake_file.
3883         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3884         tmake_file.
3885         (tic6x-*-uclinux): Likewise.
3886         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3887         soft-fp/t-softfp from tmake_file.
3888         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3889         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3890         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3891         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3892         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3893
3894 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3895
3896         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3897         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3898         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3899         TPBIT, TPBIT_FUNCS.
3900         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3901         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3902         Remove.
3903         * config/arm/t-vxworks: Likewise.
3904         * config/arm/t-wince-pe: Likewise.
3905         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3906         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3907         * config/bfin/t-bfin-elf: Likewise.
3908         * config/bfin/t-bfin-linux: Likewise.
3909         * config/bfin/t-bfin-uclinux: Likewise.
3910         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3911         Remove.
3912         * config/fr30/t-fr30: Likewise.
3913         * config/frv/t-frv: Likewise.
3914         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3915         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3916         * config/m32c/t-m32c: Likewise.
3917         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3918         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3919         * config/mcore/t-mcore: Likewise.
3920         * config/mep/t-mep: Likewise.
3921         * config/microblaze/t-microblaze: Likewise.
3922         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3923         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3924         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3925         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3926         * config/mn10300/t-linux: Remove.
3927         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3928         * config/pdp11/t-pdp11: Likewise.
3929         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3930         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3931         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3932         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3933         * config/rs6000/t-aix52: Likewise.
3934         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3935         $(srcdir)/config/rs6000/ppc64-fp.c.
3936         * config/rs6000/t-fprules-fpbit: Remove.
3937         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3938         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3939         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3940         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3941         * config/sparc/t-elf: Likewise.
3942         * config/sparc/t-leon: Likewise.
3943         * config/sparc/t-leon3: Likewise.
3944         * config/spu/t-spu-elf: Likewise.
3945         (DPBIT_FUNCS): Remove.
3946         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3947         * config/v850/t-v850: Likewise.
3948         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3949         (avr-*-*): Likewise.
3950         (h8300-*-rtems*): Set libgcc_tm_file.
3951         (h8300-*-elf*): Likewise.
3952         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3953         tmake_file.
3954         (powerpc-*-eabisim*): Likewise.
3955         (powerpc-*-elf*): Likewise.
3956         (powerpc-*-eabialtivec*): Likewise.
3957         (powerpc-xilinx-eabi*): Likewise.
3958         (powerpc-*-eabi*): Likewise.
3959         (powerpc-*-rtems*): Likewise.
3960         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3961         (powerpcle-*-elf*): Likewise.
3962         (powerpcle-*-eabisim*): Likewise.
3963         (powerpcle-*-eabi*): Likewise.
3964         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3965         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3966         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3967         Remove.
3968
3969 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3970
3971         * Makefile.in (UNWIND_H): Remove.
3972         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3973         ../libgcc/Makefile.in.
3974         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3975         (LIBUNWINDDEP): Remove.
3976         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3977         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3978         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3979         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3980         Don't copy $(UNWIND_H).
3981         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3982         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3983         * aclocal.m4: Regenerate.
3984         * configure: Regenerate.
3985         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3986         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3987         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3988         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3989         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3990         * config/arm/libunwind.S, config/arm/pr-support.c,
3991         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3992         ../libgcc/config/arm.
3993         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3994         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3995         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3996         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3997         ($(T)frvend$(objext)): Likewise.
3998         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3999         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4000         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4001         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4002         ../libgcc/config/ia64.
4003         * config/ia64/t-hpux (LIB2ADDEH): Remove.
4004         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4005         * config/ia64/t-vms (LIB2ADDEH): Remove.
4006         * config/ia64/vms.h (UNW_IVMS_MODE,
4007         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4008         * config/picochip/t-picochip (LIB2ADDEH): Remove.
4009         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4010         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4011         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4012         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4013         $(srcdir)/../libgcc to refer to unwinder sources.
4014         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4015         * config/t-darwin (LIB2ADDEH): Remove.
4016         * config/t-freebsd (LIB2ADDEH): Remove.
4017         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4018         * config/t-libunwind-elf: Move to ../libgcc/config.
4019         * config/t-linux (LIB2ADDEH): Remove.
4020         * config/t-sol2 (LIB2ADDEH): Remove.
4021         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4022         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4023
4024 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
4025
4026         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4027
4028         * doc/invoke.texi: Document core-avx-i.
4029
4030 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4031
4032         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4033
4034 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
4035
4036         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4037         result of multiple results reduction when extracting the final
4038         value using scalar code.
4039
4040 2011-08-05  Richard Guenther  <rguenther@suse.de>
4041
4042         PR tree-optimization/49984
4043         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4044
4045 2011-08-05  Richard Guenther  <rguenther@suse.de>
4046
4047         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4048         return true for constant integer ranges.
4049         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4050         BIT_IOR_EXPR handling.
4051
4052 2011-08-04  Kai Tietz  <ktietz@redhat.com>
4053
4054         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4055         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4056
4057 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
4058
4059         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4060         pattern def statement, and its access macro.
4061         (NUM_PATTERNS): Set to 5.
4062         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4063         pattern def statement.
4064         (vect_transform_loop): Likewise.
4065         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4066         function vect_recog_over_widening_pattern ().
4067         (vect_operation_fits_smaller_type): New function.
4068         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4069         Likewise.
4070         (vect_pattern_recog_1): Move the code that marks pattern
4071         statements to vect_mark_pattern_stmts (), and call it.  Update
4072         documentation.
4073         * tree-vect-stmts.c (vect_supportable_shift): New function.
4074         (vect_analyze_stmt): Handle pattern def statement.
4075         (new_stmt_vec_info): Initialize pattern def statement.
4076
4077 2011-08-04  Richard Henderson  <rth@redhat.com>
4078
4079         PR target/49964
4080         * config/i386/i386.c (ix86_expand_call): Don't create nested
4081         PARALLELs for TARGET_VZEROUPPER.
4082         (ix86_split_call_vzeroupper): Fix extraction of the original call.
4083         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4084         recognize nested PARALLELs.
4085         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4086         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4087         *sibcall_value_pop_vzeroupper): Likewise.
4088
4089 2011-08-04  Richard Henderson  <rth@redhat.com>
4090
4091         PR middle-end/49968
4092         * calls.c (expand_call): Use fixup_args_size_notes for
4093         emit_stack_restore.
4094         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4095         in non-standard modes.
4096
4097 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4098
4099         * gcc.c (self_spec): New variable.
4100         (static_specs): Add self_spec.
4101         (main): Call do_self_spec on "self_spec" specs after reading
4102         user specs files.  Move compare_debug handling right after that.
4103
4104 2011-08-04  Richard Guenther  <rguenther@suse.de>
4105
4106         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4107         (value_range_nonnegative_p): New function.
4108         (ssa_name_nonnegative_p): Use it.
4109         (value_range_constant_singleton): New function.
4110         (op_with_constant_singleton_value_range): Use it.
4111         (extract_range_from_binary_expr_1): New function, split out from ...
4112         (extract_range_from_binary_expr): ... this.  Remove fallback
4113         constant folding done here.
4114
4115 2011-08-04  Richard Guenther  <rguenther@suse.de>
4116
4117         PR tree-optimization/49806
4118         * tree-vrp.c (op_with_boolean_value_range_p): New function.
4119         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
4120         a new statement for a final conversion to bool.
4121
4122 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
4123
4124         * gengtype-state.c: Include "bconfig.h" if
4125         GENERATOR_FILE is defined, "config.h" otherwise.
4126         * gengtype.c: Likewise.
4127         * gengtype-lex.l: Likewise.
4128         * gengtype-parse.c: Likewise.
4129         * Makefile.in (gengtype-lex.o-warn): New variable.
4130         (plugin_resourcesdir): Likewise.
4131         (plugin_bindir): Likewise.
4132         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4133         (MOSTLYCLEANFILES): Add gengtype$(exeext).
4134         (native): Depend on gengtype$(exeext) is $enable_plugin
4135         is set to "yes".
4136         (gtype.state): Depend on s-gtype. Use temporary file.
4137         (gengtype-lex.o): New rule.
4138         (gengtype-parse.o): Likewise.
4139         (gengtype-state.o): Likewise.
4140         (gengtype$(exeext)): Likewise.
4141         (install-gengtype): Likewise.
4142         (gengtype.o): Likewise.
4143         (build/gengtype.o): Depend on version.h.
4144         (build/gengtype-state): Depend on double-int.h, version.h,
4145         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4146         (install-plugin): Depend on install-gengtype.
4147
4148 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
4149
4150         PR middle-end/49905
4151         * tree.h (init_attributes): New prototype.
4152         * attribs.c (init_attributes): No longer static.
4153
4154 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4155
4156         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4157         maybe_suffix.
4158
4159 2011-08-03   David Li  <davidxl@google.com>
4160
4161         * tree-optimize.c (execute_fixup_cfg): Fix up entry
4162         outgoing edge counts after inlining.
4163
4164 2011-08-03   David Li  <davidxl@google.com>
4165
4166         * profile.c (compute_branch_probabilities): Compute
4167         function frequency after profile annotation.
4168
4169 2011-08-04  Alan Modra  <amodra@gmail.com>
4170
4171         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4172         use_backchain_to_restore_sp initialisation.
4173         (rs6000_legitimate_offset_address_p): Simplify offset test.
4174
4175 2011-08-03  Richard Henderson  <rth@redhat.com>
4176
4177         * config/spu/spu.md: Use define_c_enum instead of define_constants.
4178         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4179         (UNSPECV_NOP): New.
4180
4181 2011-08-03  Richard Henderson  <rth@redhat.com>
4182
4183         PR target/34888
4184         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4185
4186 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
4187
4188         PR tree-optimization/49948
4189         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4190
4191 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
4192
4193         * config/m32c/m32c.c (class_sizes): Remove.
4194         (reduce_class): Change arguments and return type to reg_class_t.
4195         Change type cc var to HARD_REG_SET. Change type best var to
4196         reg_class_t. Change type best_size var to unsigned int. Remove
4197         initialization class_sizes var. Use reg_class_size array instead
4198         of class_sizes. Use reg_class_contents array instead
4199         of class_contents.
4200
4201 2011-08-03  Richard Guenther  <rguenther@suse.de>
4202
4203         PR middle-end/49958
4204         * fold-const.c (fold_binary_loc): Only associate
4205         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4206         overflow wraps.
4207
4208 2011-08-03  Alan Modra  <amodra@gmail.com>
4209
4210         PR rtl-optimization/49941
4211         * jump.c (mark_jump_label): Comment.
4212         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4213         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4214         (mark_used_flags): Don't mark RETURN.
4215
4216 2011-08-03  Richard Guenther  <rguenther@suse.de>
4217
4218         PR tree-optimization/49938
4219         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4220         deal with a POLYNOMIAL_CHREC.
4221
4222 2011-08-03  Revital Eres  <revital.eres@linaro.org>
4223
4224         * modulo-sched.c (calculate_stage_count,
4225         calculate_must_precede_follow, get_sched_window,
4226         try_scheduling_node_in_cycle, remove_node_from_ps): Add
4227         declaration.
4228         (update_node_sched_params, set_must_precede_follow, optimize_sc):
4229         New functions.
4230         (reset_sched_times): Call update_node_sched_params.
4231         (sms_schedule): Call optimize_sc.
4232         (get_sched_window): Change function arguments.
4233         (sms_schedule_by_order): Update call to get_sched_window.
4234         Call set_must_precede_follow.
4235         (calculate_stage_count): Add function argument.
4236
4237 2011-08-02  Richard Henderson  <rth@redhat.com>
4238
4239         PR target/49864
4240         PR target/49879
4241         * reg-notes.def (REG_ARGS_SIZE): New.
4242         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4243         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4244         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4245         different stack levels.
4246         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4247         (maybe_move_args_size_note): New.
4248         (combine_stack_adjustments_for_block): Use it.
4249         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4250         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4251         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4252         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4253         (cur_cfa): New.
4254         (queued_args_size): Remove.
4255         (add_cfi_args_size): Assert size is non-negative.
4256         (stack_adjust_offset, dwarf2out_args_size): Remove.
4257         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4258         (notice_args_size, notice_eh_throw): New.
4259         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4260         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4261         (dwarf2out_frame_debug_cfa_offset): Likewise.
4262         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
4263         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4264         (change_cfi_row): Don't emit args_size.
4265         (maybe_record_trace_start_abnormal): Split out from ...
4266         (maybe_record_trace_start): Here.  Set args_size_undefined.
4267         (create_trace_edges): Update to match.
4268         (scan_trace): Handle REG_ARGS_SIZE.
4269         (connect_traces): Connect args_size between EH insns.
4270         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4271         * explow.c (suppress_reg_args_size): New.
4272         (adjust_stack_1): Split out from ...
4273         (adjust_stack): ... here.
4274         (anti_adjust_stack): Use it.
4275         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4276         * expr.c (mem_autoinc_base): New.
4277         (fixup_args_size_notes): New.
4278         (emit_single_push_insn_1): Rename from emit_single_push_insn.
4279         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
4280         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4281         * reload1.c (reload_as_needed): Likewise.
4282         * rtl.h (fixup_args_size_notes): Declare.
4283
4284 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
4285
4286         PR bootstrap/49914
4287         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4288         of abs.
4289         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4290         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4291
4292 2011-08-02  Richard Henderson  <rth@redhat.com>
4293
4294         * config/h8300/h8300.c (push, pop): Return the insn.
4295         (h8300_swap_into_er6): Generate correct unwind info.
4296         (h8300_swap_out_of_er6): Likewise.
4297         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4298         complex cfa expression.
4299         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4300
4301 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
4302
4303         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4304
4305 2011-08-02  Richard Henderson  <rth@redhat.com>
4306
4307         PR target/49878
4308         * config/h8300/h8300.c (h8300_move_ok): New.
4309         * config/h8300/h8300-protos.h: Declare it.
4310         * config/h8300/h8300.md (P): New mode iterator.
4311         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4312         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4313         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4314         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4315         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4316         and pushqi1_h8300hs_normal; use PRE_MODIFY and
4317         register_no_sp_elim_operand.
4318         (*pushhi1_h8300hs_<P>): Similarly.
4319         (pushqi1, pushhi1, pushhi1_h8300): Remove.
4320         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4321
4322 2011-08-02  Richard Henderson  <rth@redhat.com>
4323
4324         PR target/49881
4325         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4326
4327 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
4328
4329         * c-parser.c (enum c_parser_prec): New enum, moved from within
4330         c_parser_binary_expression.
4331         (c_parser_binary_expression): Add PREC argument.  Stop parsing
4332         if operator has lower or equal precedence than PREC.
4333         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4334         callers.
4335         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4336         Adjust c_finish_omp_atomic caller.
4337         (c_parser_omp_taskyield): New function.
4338         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4339         (c_parser_omp_clause_name): Handle final and mergeable clauses.
4340         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4341         functions.
4342         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4343         and PRAGMA_OMP_CLAUSE_MERGEABLE.
4344         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4345         (c_parser_omp_clause_reduction): Handle min and max.
4346         * c-typeck.c (c_finish_omp_clauses): Don't complain about
4347         const qualified predetermined vars in firstprivate clause.
4348         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4349         Handle MIN_EXPR and MAX_EXPR.
4350         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4351         and OMP_CLAUSE_MERGEABLE.
4352         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4353         and OMP_ATOMIC_CAPTURE_NEW.
4354         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4355         OMP_CLAUSE_MERGEABLE.
4356         (omp_clause_code_name): Likewise.
4357         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4358         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4359         and OMP_CLAUSE_MERGEABLE.
4360         (OMP_CLAUSE_FINAL_EXPR): Define.
4361         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4362         OMP_CLAUSE_MERGEABLE.
4363         (expand_task_call): Likewise.
4364         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4365         (expand_omp_atomic_fetch_op): Handle cases where old or new
4366         value is needed afterwards.
4367         (expand_omp_atomic): Call expand_omp_atomic_load resp.
4368         expand_omp_atomic_store.
4369         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4370         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4371         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4372         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4373         * tree-nested.c (convert_nonlocal_omp_clauses,
4374         convert_local_omp_clauses): Likewise.
4375         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4376         OMP_ATOMIC_CAPTURE_NEW): New.
4377         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4378         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4379         New inlines.
4380         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4381         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4382         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4383
4384 2011-08-02  Kai Tietz  <ktietz@redhat.com>
4385
4386         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4387         boolean-type.
4388         (ssa_forward_propagate_and_combine): Interprete result of
4389         forward_propagate_comparison.
4390         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4391         boolean-typed operands for comparisons.
4392
4393 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
4394
4395         * config/avr/libgcc.S: Gather related function in the
4396         same input section.
4397         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4398         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4399         references.
4400         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4401         __udivmodsi4, __divmodsi4, __prologue_saves__,
4402         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4403         __do_copy_data, __do_clear_bss, __do_global_ctors,
4404         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4405
4406 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
4407
4408         PR target/47766
4409         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4410         (stack_protect_test): The pattern compares ptr_mode value.
4411
4412 2011-08-02  Alan Modra  <amodra@gmail.com>
4413
4414         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4415         note for save_LR_around_toc_setup sequence.
4416
4417 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4418
4419         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4420
4421 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4422             Joseph Myers  <joseph@codesourcery.com>
4423
4424         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4425         * hwint.c: Include diagnostic-core.h.
4426         (abs_hwi): New.
4427         (gcd): Moved here...
4428         (pos_mul_hwi): New.
4429         (mul_hwi): New.
4430         (least_common_multiple): Moved here...
4431         * hwint.h (gcd): ... from here.
4432         (least_common_multiple): ... from here.
4433         (HOST_WIDE_INT_MIN): New.
4434         (HOST_WIDE_INT_MAX): New.
4435         (abs_hwi): Declared.
4436         (gcd): Declared.
4437         (pos_mul_hwi): Declared.
4438         (mul_hwi): Declared.
4439         (least_common_multiple): Declared.
4440         * omega.c (check_pos_mul): Removed.
4441         (check_mul): Removed.
4442         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4443         mul_hwi instead of check_mul.
4444
4445 2011-08-01  Richard Henderson  <rth@redhat.com>
4446
4447         PR target/49881
4448         * config/avr/avr.h (PUSH_ROUNDING): New.
4449         * config/avr/avr.md (pushqi1): Rename from *pushqi.
4450         (*pushhi, *pushsi, *pushsf): Remove.
4451         (MPUSH): New mode iterator.
4452         (push<MPUSH>1): New expander.
4453
4454 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
4455
4456         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4457         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4458         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4459         mmix_preferred_output_reload_class): Remove.
4460         * config/mmix/mmix.c (mmix_preferred_reload_class,
4461         mmix_preferred_output_reload_class): Make static. Change rclass
4462         argument and return type to reg_class_t.
4463         (TARGET_PREFERRED_RELOAD_CLASS,
4464         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4465
4466 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4467
4468         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4469         handling.
4470
4471 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4472
4473         PR target/47766
4474         * config/i386/i386.md (PTR): New.
4475         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4476         (stack_protect_test): Likewise.
4477         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4478         (stack_tls_protect_set_<mode>): Likewise.
4479         (stack_tls_protect_test_<mode>): Likewise.
4480
4481 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
4482
4483         PR target/49927
4484         * config/i386/i386.c (ix86_address_subreg_operand): New.
4485         (ix86_decompose_address): Use ix86_address_subreg_operand.
4486         (ix86_legitimate_address_p): Do not assert that subregs satisfy
4487         register_no_elim_operand in DImode.
4488
4489 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
4490
4491         PR tree-optimization/49926
4492         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4493         in a chain doesn't have uses both inside and outside the loop.
4494
4495 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4496
4497         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4498         * config/avr/avr-devices.c (avr_mcu_types): Use it.
4499         * config/avr/avr-mcus.def (AVR_MCU): Use it.
4500         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4501         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4502         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4503         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4504         to detect if XJMP must not be skipped.
4505
4506 2011-08-02  Alan Modra  <amodra@gmail.com>
4507
4508         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4509         Delete.
4510         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4511         (rs6000_emit_prologue): Don't prematurely return when
4512         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
4513         save_toc_in_prologue case.
4514         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4515         calls_alloca.
4516
4517 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
4518
4519         * config/avr/avr-devices.c: Delete SVN property svn:executable.
4520         * config/avr/predicates.md: Ditto.
4521         * config/avr/driver-avr.c: Ditto.
4522         * config/avr/genopt.sh: Set SVN property svn:executable to *.
4523
4524 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4525
4526         * calls.c (emit_library_call_value_1): Declare size only if
4527         BLOCK_REG_PADDING is defined.
4528
4529 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
4530
4531         PR target/49547
4532         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4533         (x86_64-*-*): Likewise.
4534         * config/i386/i386.opt (mlzcnt): New.
4535         * config/i386/abmintrin.h: File removed.
4536         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4537         * config/i386/lzcntintrin.h: ... here.  New file.
4538         (__lzcnt): Rename to ...
4539         (__lzcnt32): ... this.
4540         * config/i386/bmiintrin.h (head): Update copyright year.
4541         (__lzcnt_u16): Removed.
4542         (__lzcnt_u32): Likewise.
4543         (__lzcnt_u64): Likewise.
4544         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4545         is defined, remove abmintrin.h.
4546         * config/i386/cpuid.h (bit_LZCNT): New.
4547         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4548         LZCNT feature.
4549         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4550         __LZCNT__ if needed.
4551         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4552         (ix86_option_override_internal): Handle LZCNT option.
4553         (ix86_valid_target_attribute_inner_p): Likewise.
4554         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4555         * config/i386/i386.h (TARGET_LZCNT): New.
4556         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4557         * config/i386/i386.md (clz<mode>2): Update insn constraint.
4558         (clz<mode>2_lzcnt): Likewise.
4559         * doc/invoke.texi: Mention -mlzcnt option.
4560         * doc/extend.texi: Likewise.
4561
4562 2011-08-01  Julian Brown  <julian@codesourcery.com>
4563
4564         * configure.ac (fixed-point): Add ARM support.
4565         * configure: Regenerate.
4566         * config/arm/arm.c (arm_fixed_mode_set): New struct.
4567         (arm_set_fixed_optab_libfunc): New.
4568         (arm_set_fixed_conv_libfunc): New.
4569         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4570         ARM-specific names.
4571         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4572         return values in SImode.
4573         (arm_return_in_msb): Return fixed-point types in the msb.
4574         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4575         upwards.
4576         (arm_scalar_mode_supported_p): Support fixed-point modes.
4577         (arm_vector_mode_supported_p): Support vector fixed-point modes.
4578         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4579         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4580         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4581         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4582         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4583         New mode iterators.
4584         (qaddsub_suf): New mode attribute.
4585         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4586         vector modes.
4587         * config/arm/predicates.md (sat_shift_operator): New predicate.
4588         * config/arm/arm-fixed.md: New.
4589         * config/arm/arm.md: Include arm-fixed.md.
4590         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4591
4592 2011-08-01  Julian Brown  <julian@codesourcery.com>
4593
4594         * calls.c (emit_library_call_value_1): Support padding for libcall
4595         arguments and return values.
4596         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4597         downwards in big-endian mode.
4598
4599 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4600
4601         PR debug/49887
4602         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4603         * config/sol2-protos.h: Likewise.
4604         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4605         solaris_code_end.
4606         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4607         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4608         solaris_file_end.
4609         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4610
4611 2011-08-01  Julian Brown  <julian@codesourcery.com>
4612
4613         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4614
4615 2011-08-01  Julian Brown  <julian@codesourcery.com>
4616
4617         * final.c (output_addr_const): Print fixed-point constants as
4618         decimal not hex.
4619
4620 2011-08-01  Richard Guenther  <rguenther@suse.de>
4621
4622         * stor-layout.c (initialize_sizetypes): Properly sign-extend
4623         bitsiztype TYPE_MAX_VALUE.
4624
4625 2011-08-01  Julian Brown  <julian@codesourcery.com>
4626
4627         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4628         comparison helpers.
4629
4630 2011-07-31  Richard Henderson  <rth@redhat.com>
4631
4632         * config/h8300/crti.asm: Add flags to .section directive.
4633         * config/h8300/crtn.asm: Likewise.
4634
4635 2011-07-31  Richard Henderson  <rth@redhat.com>
4636
4637         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4638         * tree.c (build_common_tree_nodes): Likewise.
4639
4640 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4641
4642         PR target/49880
4643         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4644         (divsi3_i1): Likewise.
4645
4646 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4647
4648         PR tree-optimization/49749
4649         * tree-ssa-reassoc.c (get_rank): New forward declaration.
4650         (PHI_LOOP_BIAS): New macro.
4651         (phi_rank): New function.
4652         (loop_carried_phi): Likewise.
4653         (propagate_rank): Likewise.
4654         (get_rank): Add calls to phi_rank and propagate_rank.
4655
4656 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4657
4658         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4659         of TARGET_64BIT.
4660         (PTRDIFF_TYPE): Likewise.
4661
4662 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
4663
4664         PR target/49920
4665         * config/i386/i386.md (strset): Do not expand strset_singleop
4666         when %eax or $edi are fixed.
4667         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4668         (*strsetsi_1): Ditto.
4669         (*strsethi_1): Ditto.
4670         (*strsetqi_1): Ditto.
4671         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4672         (*rep_stossi): Ditto.
4673         (*rep_stosqi): Ditto.
4674         (*strlenqi_1): Ditto.
4675         (cmpstrnsi): Also fail when %ecx is fixed.
4676         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4677         (*cmpstrnqi_1): Ditto.
4678         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4679         (*strmovsi_1): Ditto.
4680         (*strmovhi_1): Ditto.
4681         (*strmovqi_1): Ditto.
4682         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4683         (*rep_movsi): Ditto.
4684         (*rep_movqi): Ditto.
4685
4686 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
4687
4688         PR target/47908
4689         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4690         Disable instruction scheduling for non-ColdFire targets.
4691         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4692
4693 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4694
4695         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4696         of anti-dep edge from a branch.
4697         (add_cross_iteration_register_deps): Create anti-dep edge from
4698         a branch.
4699
4700 2011-07-31  Revital Eres  <revital.eres@linaro.org>
4701
4702         * modulo-sched.c: Change comment.
4703         (reset_sched_times): Fix print message.
4704         (print_partial_schedule): Add print info.
4705
4706 2011-07-31  Tom de Vries  <tom@codesourcery.com>
4707
4708         PR middle-end/43513
4709         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4710         get_object_alignment and TYPE_ALIGN.
4711
4712 2011-07-30  Tom de Vries  <tom@codesourcery.com>
4713
4714         PR middle-end/43513
4715         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4716         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4717
4718 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4719
4720         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4721         <sys/sbd.h>.
4722         (cpu_types): New array.
4723         (cputype): New function.
4724         (host_detect_local_cpu): Only define buf, f if !__sgi__.
4725         Use scaninvent instead of /proc/cpuinfo if __sgi__.
4726         * config.host: Also use driver-native.o, mips/x-native on
4727         mips-sgi-irix*.
4728         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4729         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4730         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4731
4732 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
4733
4734         PR middle-end/49897
4735         PR middle-end/49898
4736         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4737         in nested parallel and outer is a gimple_reg, mark it as addressable
4738         and set its bit in task_shared_vars bitmap too.
4739
4740 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4741
4742         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4743
4744 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4745
4746         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4747         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4748         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4749         AMASK_LOCKPFTCHOK): Define.
4750         (host_detect_local_cpu): Remove buf, f, cpu_names.
4751         Define cpu_types, implver, amask.
4752         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4753         native CPU.
4754         * config.host: Also use driver-alpha.o, alpha/x-alpha on
4755         alpha*-dec-osf*.
4756         * config/alpha/osf5.h [__alpha__ || __alpha]
4757         (host_detect_local_cpu): Declare.
4758         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4759         (DRIVER_SELF_SPECS): Define.
4760
4761 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
4762
4763         PR target/47715
4764         * config/i386/i386.md (*load_tp_x32): New.
4765         (*load_tp_x32_zext): Ditto.
4766         (*add_tp_x32): Ditto.
4767         (*add_tp_x32_zext): Ditto.
4768         (*load_tp_<mode>): Disable for TARGET_X32 targets.
4769         (*add_tp_<mode>): Ditto.
4770         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4771         ptr_mode and convert to Pmode if needed.
4772
4773 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4774
4775         PR target/49687
4776         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4777         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4778         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4779         Add X to register footprint: Clobber r26/r27.
4780
4781 2011-07-29  Richard Guenther  <rguenther@suse.de>
4782
4783         * builtins.c (fold_builtin_signbit): Build the comparison
4784         with a proper type.
4785
4786 2011-07-29  Richard Guenther  <rguenther@suse.de>
4787
4788         PR tree-optimization/49893
4789         * tree-predcom.c (suitable_reference_p): Volatile references
4790         are not suitable.
4791
4792 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
4793
4794         PR target/49313
4795         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4796         (__ctzsi2): Result for 0 may be undefined.
4797         (__ctzhi2): Result for 0 may be undefined.
4798         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4799         (__popcountsi2): Ditto. And don't clobber r26.
4800         (__popcountdi2): Ditto. And don't clobber r27.
4801         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4802         (parityhi2): New expand.
4803         (paritysi2): New expand.
4804         (popcounthi2): New expand.
4805         (popcountsi2): New expand.
4806         (clzhi2): New expand.
4807         (clzsi2): New expand.
4808         (ctzhi2): New expand.
4809         (ctzsi2): New expand.
4810         (ffshi2): New expand.
4811         (ffssi2): New expand.
4812         (copysignsf3): New insn.
4813         (bswapsi2): New expand.
4814         (*parityhi2.libgcc): New insn.
4815         (*parityqihi2.libgcc): New insn.
4816         (*paritysihi2.libgcc): New insn.
4817         (*popcounthi2.libgcc): New insn.
4818         (*popcountsi2.libgcc): New insn.
4819         (*popcountqi2.libgcc): New insn.
4820         (*popcountqihi2.libgcc): New insn-and-split.
4821         (*clzhi2.libgcc): New insn.
4822         (*clzsihi2.libgcc): New insn.
4823         (*ctzhi2.libgcc): New insn.
4824         (*ctzsihi2.libgcc): New insn.
4825         (*ffshi2.libgcc): New insn.
4826         (*ffssihi2.libgcc): New insn.
4827         (*bswapsi2.libgcc): New insn.
4828
4829 2011-07-29  Richard Guenther  <rguenther@suse.de>
4830
4831         * tree-vrp.c (get_value_range): Only set parameter default
4832         definitions to varying, leave others at undefined.
4833         (extract_range_from_binary_expr): Fix undefined handling.
4834         (vrp_visit_phi_node): Handle merged undefined state.
4835
4836 2011-07-29  Wei Guozhi  <carrot@google.com>
4837
4838         PR rtl-optimization/49799
4839         * combine.c (make_compound_operation): Check if the bit field is valid
4840         before change it to bit field extraction.
4841
4842 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4843
4844         PR rtl-optimization/49891
4845         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4846         newly created returnjumps.
4847
4848 2011-07-28  DJ Delorie  <dj@redhat.com>
4849
4850         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4851         local frame in a naked function, and produce a suitable error for
4852         that specific case.
4853
4854         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4855         registers to be reloaded in HI classes when the target is HI.
4856
4857 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4858
4859         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4860         bound_one, bound_two.
4861
4862 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4863
4864         PR middle-end/48648
4865         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4866         CLAST assignments.
4867         (translate_clast): Same.
4868         (translate_clast_assignment): New.
4869
4870 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
4871
4872         PR tree-optimization/49876
4873         * sese.c (rename_uses): Do not return false on gloog_error: set
4874         the new_expr to integer_zero_node and continue code generation.
4875         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4876
4877 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4878
4879         PR debug/49846
4880         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4881         arguments also check if they aren't initialized with a MODE_INT
4882         mode of the same size.
4883
4884 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
4885
4886         * expr.c (get_bit_range): Handle *MEM_REF's.
4887
4888 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
4889
4890         * rtlanal.c (tablejump_p): False for returns.
4891         * reorg.c (first_active_target_insn): New static function.
4892         (find_end_label): Set JUMP_LABEL for a new returnjump.
4893         (optimize_skip, get_jump_flags, rare_destination,
4894         mostly_true_jump, get_branch_condition,
4895         steal_delay_list_from_target, own_thread_p,
4896         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4897         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4898         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4899         * jump.c (delete_related_insns): Likewise.
4900         (jump_to_label_p): New function.
4901         (redirect_target): New static function.
4902         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
4903         (redirect_jump_1): Assert that the new label is nonnull.
4904         (redirect_jump): Likewise.
4905         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4906         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4907         exit block.
4908         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
4909         changed.  Ensure that the right label is passed to redirect_jump.
4910         * function.c (emit_return_into_block,
4911         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4912         ret_rtx in their JUMP_LABEL.
4913         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4914         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4915         pass ret_rtx as label.
4916         * cfglayout.c (fixup_reorder_chain): Use
4917         force_nonfallthru_and_redirect rather than force_nonfallthru.
4918         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4919         * rtl.h (ANY_RETURN_P): New macro.
4920         (jump_to_label_p): Declare.
4921         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4922         JUMP_LABELs.
4923         (mark_target_live_regs): Likewise.
4924         * basic-block.h (force_nonfallthru_and_redirect): Declare.
4925         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4926         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4927         alpha_tablejump_best_label): Remove functions.
4928         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4929         alpha_tablejump_best_label): Remove declarations.
4930         * config/sh/sh.c (barrier_align, split_branches): Adjust for
4931         ret_rtx in JUMP_LABELs.
4932         * config/arm/arm.c (is_jump_table): Likewise.
4933
4934 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4935
4936         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4937         special predicate.  Remove explicit mode checks.
4938
4939 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
4940
4941         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4942         DW_AT_data_member_location containing just DW_OP_plus_uconst.
4943
4944         PR debug/49871
4945         * dwarf2out.c (size_of_die, value_format, output_die): Use
4946         DW_FORM_udata instead of DW_FORM_data[48] for
4947         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4948
4949 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4950
4951         * config/i386/i386.md (*tls_global_dynamic_64): Update
4952         length attribute.
4953
4954 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4955
4956         PR target/47715
4957         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4958         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
4959         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4960         (tls_dynamic_gnu2_64): Ditto.
4961         (*tls_dynamic_gnu2_lea_64): Ditto.
4962         (*tls_dynamic_gnu2_call_64): Ditto.
4963         (*tls_dynamic_gnu2_combine_64): Ditto.
4964
4965 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4966
4967         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4968
4969 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
4970
4971         PR target/47364
4972         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4973
4974 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4975
4976         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4977         before the core constraints. Adjust attributes.
4978         ("*thumb2_movdf_vfp"): Likewise.
4979
4980 2011-07-28  Kai Tietz  <ktietz@redhat.com>
4981
4982         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4983         (simplify_truth_ops_using_ranges): Likewise.
4984         (build_assert_expr_for): Likewise.
4985         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4986         and handle BIT_NOT_EXPR for truth-operation.
4987
4988 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4989
4990         PR target/49313
4991         Undo r176835 from trunk
4992         2011-07-27  Georg-Johann Lay
4993
4994 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4995
4996         PR target/49687
4997         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4998         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4999         * config/avr/libgcc.S (__mulsi3): Rewrite.
5000         (__mulhisi3): Rewrite.
5001         (__umulhisi3): Rewrite.
5002         (__usmulhisi3): New.
5003         (__muluhisi3): New.
5004         (__mulshisi3): New.
5005         (__mulohisi3): New.
5006         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5007         declare.
5008         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5009         (pseudo_register_or_const_int_operand): New.
5010         (combine_pseudo_register_operand): New.
5011         (u16_operand): New.
5012         (s16_operand): New.
5013         (o16_operand): New.
5014         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5015         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5016         (any_extend, any_extend2): New code iterators.
5017         (extend_prefix): New code attribute.
5018         (mulsi3): Rewrite. Turn insn to expander.
5019         (mulhisi3): Ditto.
5020         (umulhisi3): Ditto.
5021         (usmulhisi3): New expander.
5022         (*mulsi3): New insn-and-split.
5023         (mulu<mode>si3): New insn-and-split.
5024         (muls<mode>si3): New insn-and-split.
5025         (mulohisi3): New insn-and-split.
5026         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5027         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5028         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5029         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5030         insn-and-split.
5031         (*mulsi3_call): Rewrite.
5032         (*mulhisi3_call): Rewrite.
5033         (*umulhisi3_call): Rewrite.
5034         (*usmulhisi3_call): New insn.
5035         (*muluhisi3_call): New insn.
5036         (*mulshisi3_call): New insn.
5037         (*mulohisi3_call): New insn.
5038         (extendqihi2): Use combine_pseudo_register_operand as predicate
5039         for operand 1.
5040         (extendqisi2): Ditto.
5041         (zero_extendqihi2): Ditto.
5042         (zero_extendqisi2): Ditto.
5043         (zero_extendhisi2): Ditto.
5044         (extendhisi2): Ditto. Don't early-clobber operand 0.
5045
5046 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5047
5048         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5049
5050 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5051
5052         PR tree-optimization/49471
5053         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5054         iv only when the largest type is unsigned.  Do not call
5055         lang_hooks.types.type_for_size.
5056
5057 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5058
5059         PR middle-end/45450
5060         * graphite-poly.c (apply_poly_transforms): Disable legality check
5061         after an openscop read.
5062
5063 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5064
5065         PR middle-end/47691
5066         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5067         copy_bb_and_scalar_dependences.
5068         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
5069         (graphite_copy_stmts_from_block): Update call to rename_uses.
5070         (copy_bb_and_scalar_dependences): Update call to
5071         graphite_copy_stmts_from_block.
5072         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5073
5074 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
5075
5076         PR target/49313
5077         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5078         (__ctzsi2): Result for 0 may be undefined.
5079         (__ctzhi2): Result for 0 may be undefined.
5080         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5081         (__popcountsi2): Ditto. And don't clobber r26.
5082         (__popcountdi2): Ditto. And don't clobber r27.
5083         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5084         (parityhi2): New expand.
5085         (paritysi2): New expand.
5086         (popcounthi2): New expand.
5087         (popcountsi2): New expand.
5088         (clzhi2): New expand.
5089         (clzsi2): New expand.
5090         (ctzhi2): New expand.
5091         (ctzsi2): New expand.
5092         (ffshi2): New expand.
5093         (ffssi2): New expand.
5094         (copysignsf3): New insn.
5095         (bswapsi2): New expand.
5096         (*parityhi2.libgcc): New insn.
5097         (*parityqihi2.libgcc): New insn.
5098         (*paritysihi2.libgcc): New insn.
5099         (*popcounthi2.libgcc): New insn.
5100         (*popcountsi2.libgcc): New insn.
5101         (*popcountqi2.libgcc): New insn.
5102         (*popcountqihi2.libgcc): New insn-and-split.
5103         (*clzhi2.libgcc): New insn.
5104         (*clzsihi2.libgcc): New insn.
5105         (*ctzhi2.libgcc): New insn.
5106         (*ctzsihi2.libgcc): New insn.
5107         (*ffshi2.libgcc): New insn.
5108         (*ffssihi2.libgcc): New insn.
5109         (*bswapsi2.libgcc): New insn.
5110
5111 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5112
5113         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5114         the mode of symbolic_opreand RTXes.
5115
5116 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
5117
5118         * config/i386/predicates.md (x86_64_movabs_operand): Return false
5119         for pic_32bit_operand RTXes.
5120         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5121         in DImode.
5122
5123 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5124
5125         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5126         for 32-bit, too.
5127         (ix86_handle_abi_attribute): Allow function attributes
5128         ms_abi/sysv_abi in 32-bit mode, too.
5129         * doc/extend.texi: Adjust attribute documentation.
5130
5131         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5132         expression handling.
5133         (and_var_with_comparison_1): Likewise.
5134
5135 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
5136
5137         * params.h (ALLOW_STORE_DATA_RACES): New.
5138         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5139         * Makefile.in (expr.o): Depend on PARAMS_H.
5140         * machmode.h (get_best_mode): Add argument.
5141         * fold-const.c (optimize_bit_field_compare): Add argument to
5142         get_best_mode.
5143         (fold_truthop): Same.
5144         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5145         * expr.c (emit_group_store): Same.
5146         (copy_blkmode_from_reg): Same.
5147         (write_complex_part): Same.
5148         (optimize_bitfield_assignment_op): Add argument.
5149         Add argument to get_best_mode.
5150         (get_bit_range): New.
5151         (expand_assignment): Calculate maxbits and pass it down accordingly.
5152         (store_field): New argument.
5153         (expand_expr_real_2): New argument to store_field.  Include params.h.
5154         * expr.h (store_bit_field): New argument.
5155         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5156         into account maxbits.
5157         * calls.c (store_unaligned_arguments_into_pseudos): New argument
5158         to store_bit_field.
5159         * expmed.c (store_bit_field_1): New argument.  Use it.
5160         (store_bit_field): Same.
5161         (store_fixed_bit_field): Same.
5162         (store_split_bit_field): Same.
5163         (extract_bit_field_1): Pass new argument to get_best_mode.
5164         (extract_bit_field): Same.
5165         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5166         * doc/invoke.texi: Document parameter allow-store-data-races.
5167
5168 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
5169
5170         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5171
5172 2011-07-27  Kai Tietz  <ktietz@redhat.com>
5173
5174         * tree-vrp.c (extract_range_from_binary_expr): Remove
5175         TRUTH-binary cases and add new bitwise-cases.
5176         (extract_range_from_assignment): Likewise.
5177         (register_edge_assert_for_1): Likeiwise.
5178         (register_edge_assert_for): Likewise.
5179         (simplify_truth_ops_using_ranges): Likewise.
5180         (simplify_stmt_using_ranges): Likewise.
5181
5182 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
5183
5184         PR target/47372
5185         * config/i386/i386.c (ix86_delegitimize_address): Call
5186         simplify_gen_subreg for PIC with mode of x only if modes of
5187         x and orig_x are different.
5188
5189 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
5190
5191         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5192         to GC allocated copy of the string.
5193         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5194         before .debug_line, not after it.
5195
5196 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5197
5198         PR middle-end/47046
5199         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5200         evolution_function_is_affine_p on CHREC_RIGHT.
5201
5202 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5203
5204         * tree-data-ref.c (max_stmt_executions_tree): Do not call
5205         lang_hooks.types.type_for_size.
5206
5207 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5208
5209         PR middle-end/47653
5210         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5211         loops using wrapping semantics.
5212
5213 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
5214
5215         PR middle-end/48805
5216         * tree-scalar-evolution.c (instantiate_scev_r): Return
5217         chrec_dont_know for ADDR_EXPR.
5218
5219 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5220             H.J. Lu  <hongjiu.lu@intel.com>
5221
5222         PR target/47369
5223         PR target/49853
5224         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5225         if legitimize_tls_address returned operand in wrong mode. Allow
5226         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
5227         if legitimize_pic_address returned operand in wrong mode.
5228
5229 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5230
5231         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5232         return false for invariants.
5233
5234 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5235
5236         * config/i386/i386.md (add->lea splitter): Implement using SWI
5237         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
5238         (add->lea zext splitter): Change operand 2 predicate to
5239         x86_64_nonmemory_operand.
5240
5241 2011-07-26  Richard Guenther  <rguenther@suse.de>
5242
5243         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5244         frequency makes everything hot.
5245
5246 2011-07-26  Richard Guenther  <rguenther@suse.de>
5247
5248         PR tree-optimization/49840
5249         * tree-vrp.c (range_fits_type_p): Properly handle full
5250         double-int precision.
5251
5252 2011-07-26  Martin Jambor  <mjambor@suse.cz>
5253
5254         PR bootstrap/49786
5255         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5256         counts.
5257         (update_specialized_profile): Likewise.
5258
5259 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
5260             H.J. Lu  <hongjiu.lu@intel.com>
5261
5262         PR target/47381
5263         PR target/49832
5264         PR target/49833
5265         * config/i386/i386.md (i): Change SImode attribute to "e".
5266         (g): Change SImode attribute to "rme".
5267         (di): Change SImode attribute to "nF".
5268         (general_operand): Change SImode attribute to x86_64_general_operand.
5269         (general_szext_operand): Change SImode attribute to
5270         x86_64_szext_general_operand.
5271         (immediate_operand): Change SImode attribute to
5272         x86_64_immediate_operand.
5273         (nonmemory_operand): Change SImode attribute to
5274         x86_64_nonmemory_operand.
5275         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5276         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
5277         (*lea_1): Use SWI48 mode iterator.
5278         (*lea_1_zext): New insn pattern.
5279         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5280         (*bt<mode>): Ditto.
5281         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5282         Update operand constraints.
5283         (addsi_1_zext): Ditto.
5284         (*add<mode>2): Ditto.
5285         (*addsi_3_zext): Ditto.
5286         (*subsi_1_zext): Ditto.
5287         (*subsi_2_zext): Ditto.
5288         (*subsi_3_zext): Ditto.
5289         (*addsi3_carry_zext): Ditto.
5290         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5291         (*mulsi3_1_zext): Ditto.
5292         (*andsi_1): Ditto.
5293         (*andsi_1_zext): Ditto.
5294         (*andsi_2_zext): Ditto.
5295         (*<any_or:code>si_1_zext): Ditto.
5296         (*<any_or:code>si_2_zext): Ditto.
5297         (*test<mode>_1): Use <general_operand> predicate for operand 1.
5298         (*and<mode>_2): Ditto.
5299         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
5300         (add->lea splitter): Check operand modes in insn constraint.  Extend
5301         operands less than SImode wide to SImode.
5302         (add->lea zext splitter): Do not extend input operands to DImode.
5303         (*lea_general_1): Handle only QImode and HImode operands.
5304         (*lea_general_2): Ditto.
5305         (*lea_general_3): Ditto.
5306         (*lea_general_1_zext): Remove.
5307         (*lea_general_2_zext): Ditto.
5308         (*lea_general_3_zext): Ditto.
5309         (*lea_general_4): Check operand modes in insn constraint.  Extend
5310         operands less than SImode wide to SImode.
5311         (ashift->lea splitter): Ditto.
5312         * config/i386/i386.c (ix86_print_operand_address): Print address
5313         registers with 'q' modifier on 64bit targets.
5314         * config/i386/predicates.md (pic_32bit_opreand): Define as special
5315         predicate.  Reject non-SI and non-DI modes.
5316
5317 2011-07-25  Andrew Pinski  <apinski@cavium.com>
5318
5319         PR tree-opt/49671
5320         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5321         TREE_THIS_NOTRAP into the inner most MEM_REF.
5322         Always copy TREE_THIS_VOLATILE.
5323         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5324         arguments are not volatile references.
5325
5326 2011-07-25  Richard Henderson  <rth@redhat.com>
5327
5328         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5329         * final.c (final_scan_insn): Don't test for it.
5330         (rest_of_clean_state): Likewise.
5331
5332 2011-07-25  Richard Henderson  <rth@redhat.com>
5333
5334         PR debug/49841
5335         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5336         (emit_frame_save): Likewise.
5337         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5338         insn onto a dummy blockage insn after the join label.
5339
5340 2011-07-25  Richard Henderson  <rth@redhat.com>
5341
5342         * dwarf2cfi.c (dw_trace_info): Add ID member.
5343         (get_trace_index): Remove.  Change users to use ID member.
5344         (before_next_cfi_note): New.
5345         (connect_traces): Remove unreachable traces before the main loop.
5346         Look across one trace and generate remember/restore_state if needed.
5347
5348 2011-07-25  Richard Henderson  <rth@redhat.com>
5349
5350         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5351
5352 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
5353
5354         * genattr.c (write_upcase, gen_attr <enum definition writing>):
5355         Move to ...
5356         * genattr-common.c ... here.
5357         (main): Call gen_attr.
5358         * optc-gen.awk: Make generated program include insn-attr-common.h .
5359         * Makefile.in (oprions.o): Depend on insn-attr-common.h
5360
5361 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5362
5363         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5364         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5365         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5366         m32c_print_operand, m32c_print_operand_address): Remove.
5367         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5368         Change return type to bool. Change argument type to bool.
5369         (m32c_print_operand, m32c_print_operand_address): Make static.
5370         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5371         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5372
5373 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5374
5375         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5376         attributes): Document mmap.
5377
5378 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
5379
5380         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5381         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5382         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5383         mmix_print_operand, mmix_print_operand_address): Remove.
5384         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5385         Change return type to bool. Change argument type to bool.
5386         (mmix_print_operand, mmix_print_operand_address): Make static.
5387         (mmix_intval, mmix_output_condition): Change 'x' argument type
5388         to const_rtx.
5389         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5390         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5391
5392 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
5393
5394         PR target/39386
5395         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5396         shift counter for x << x and x >> x shifts.
5397
5398 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5399
5400         PR target/47124
5401         * config.gcc: Reject *-*-solaris2 configuration.
5402
5403 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
5404
5405         PR tree-optimization/49809
5406         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5407         gimple_get_lhs instead of gimple_assign_lhs.
5408
5409 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5410
5411         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5412
5413 2011-07-25  Richard Guenther  <rguenther@suse.de>
5414
5415         PR tree-optimization/49822
5416         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5417         more.  Make sure to preserve stmts with side-effects.  Properly
5418         handle virtual defs, follow a longer def chain.
5419
5420 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
5421
5422         PR plugins/45348
5423         PR plugins/48425
5424         PR plugins/46577
5425         * Makefile.in: Do not flatten c-family directory when installing
5426         plugin headers.
5427
5428 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5429
5430         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5431         original nodes if we are dealing with virtual clones.
5432
5433 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
5434
5435         * common/config/c6x/c6x-common.c: New file.
5436
5437 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
5438
5439         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5440
5441 2011-07-25  Richard Guenther  <rguenther@suse.de>
5442
5443         PR tree-optimization/49715
5444         * tree-vrp.c: Include expr.h and optabs.h.
5445         (range_fits_type_): New function.
5446         (simplify_float_conversion_using_ranges): Likewise.
5447         (simplify_stmt_using_ranges): Call it.
5448         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5449         * optabs.c (can_float_p): Export.
5450         * optabs.h (can_float_p): Declare.
5451
5452 2011-07-25  Richard Guenther  <rguenther@suse.de>
5453
5454         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5455         (get_value_range): For out-of-range SSA names or names created
5456         after propagation return a read-only varying range.
5457         (dump_all_value_ranges): Adjust.
5458         (vrp_initialize): Likewise.
5459         (vrp_finalize): Likewise.
5460
5461 2011-07-24  Richard Henderson  <rth@redhat.com>
5462
5463         PR debug/49831
5464         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
5465         them entirely.
5466
5467 2011-07-24  Richard Henderson  <rth@redhat.com>
5468
5469         PR debug/49825
5470         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5471         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5472
5473 2011-07-24  Richard Henderson  <rth@redhat.com>
5474
5475         PR debug/49827
5476         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5477
5478 2011-07-24  Richard Henderson  <rth@redhat.com>
5479
5480         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5481         Zero args_size for abnormal edges.  Adjust all callers.
5482
5483 2011-07-24  Richard Henderson  <rth@redhat.com>
5484
5485         PR debug/49825
5486         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5487
5488 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
5489
5490         PR bootstrap/49835
5491         * collect2.c (demangle_flag): Removed.
5492
5493 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
5494
5495         * configure.ac (demangler_in_ld): Default to yes.
5496         * configure: Regenerated.
5497         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5498         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5499         --no-demangle options straight through to ld.  When
5500         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5501         way that has the intended effect on Windows.
5502
5503 2011-07-23  Richard Henderson  <rth@redhat.com>
5504
5505         * dwarf2cfi.c: Include basic-block.h.
5506         (dw_label_info): Remove.
5507         (trace_work_list, trace_index): New.
5508         (remember_row, emit_cfa_remember): Remove.
5509         (dw_trace_info_hash, dw_trace_info_eq): New.
5510         (get_trace_index, get_trace_info): New.
5511         (save_point_p): New.
5512         (free_cfi_row): Remove.
5513         (add_cfi): Do not emit DW_CFA_remember_state.
5514         (cfa_row_equal_p): New.
5515         (barrier_args_size): Remove.
5516         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5517         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5518         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5519         (dwarf2out_cfi_begin_epilogue): Remove.
5520         (dwarf2out_frame_debug_restore_state): Remove.
5521         (connect_traces, create_pseudo_cfg): New.
5522         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5523         * Makefile.in (dwarf2cfi.o): Update.
5524
5525 2011-07-23  Richard Henderson  <rth@redhat.com>
5526
5527         * dwarf2cfi.c (dw_trace_info): New.
5528         (dw_label_info): New.
5529         (cie_return_save): New.
5530         (cur_trace): New.
5531         (queued_args_size): Rename from args_size.  Update all users.
5532         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5533         (def_cfa_1): Use cur_trace instead of cfa_*.
5534         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5535         (clobbers_queued_reg_save, reg_saved_in): Likewise.
5536         (dwarf2out_frame_debug_expr): Likewise.
5537         (create_cie_data): Split out from ...
5538         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
5539
5540 2011-07-23  Richard Henderson  <rth@redhat.com>
5541
5542         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5543         Update all users to match.
5544         (execute_dwarf2_frame): Free reg_saved_in_data.
5545
5546 2011-07-23  Richard Henderson  <rth@redhat.com>
5547
5548         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
5549         (queued_reg_saves): Don't GTY.  Change to a VEC.
5550         (queue_reg_save): Update to match.
5551         (dwarf2out_flush_queued_reg_saves): Likewise.
5552         (clobbers_queued_reg_save): Likewise.
5553         (reg_saved_in): Likewise.
5554         (execute_dwarf2_frame): Free queued_reg_saves.
5555
5556 2011-07-23  Richard Henderson  <rth@redhat.com>
5557
5558         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
5559
5560 2011-07-23  Richard Henderson  <rth@redhat.com>
5561
5562         * dwarf2cfi.c (add_cfi_args_size): Split out from...
5563         (dwarf2out_args_size): ... here.
5564         (add_cfi_restore): Split out from ...
5565         (dwarf2out_frame_debug_cfa_restore): ... here.
5566         (def_cfa_0): Split out from ...
5567         (def_cfa_1): ... here.
5568         (cfi_oprnd_equal_p, cfi_equal_p): New.
5569         (change_cfi_row): New.
5570         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5571         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5572         (output_cfis): Remove.
5573         * dwarf2out.c (output_fde): Simplify output_cfi loop.
5574         (dwarf2out_switch_text_section): Don't call output_cfis.
5575         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5576         * dwarf2out.h: Update decls.
5577         (enum dw_val_class): Add dw_val_class_none.
5578
5579 2011-07-23  Richard Henderson  <rth@redhat.com>
5580
5581         * dwarf2cfi.c (update_row_reg_save): New.
5582         (dwarf2out_frame_debug_cfa_expression): Use it.
5583         (dwarf2out_frame_debug_cfa_restore): Likewise.
5584         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
5585
5586 2011-07-23  Richard Henderson  <rth@redhat.com>
5587
5588         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
5589
5590 2011-07-23  Richard Henderson  <rth@redhat.com>
5591
5592         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5593         (cie_cfi_row): New.
5594         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5595         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5596         (cur_row, remember_row): New.
5597         (def_cfa_1): Use cur_row instead of the old_* variables.
5598         (dwarf2out_frame_debug_restore_state): Similarly.
5599         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5600         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5601         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5602         (dwarf2out_frame_debug_cfa_offset): Likewise.
5603         (dwarf2out_frame_debug_expr): Likewise.
5604         (execute_dwarf2_frame): Set up cur_row.
5605         * dwarf2out.h (struct cfa_loc): Mark for GTY.
5606
5607 2011-07-23  Richard Henderson  <rth@redhat.com>
5608
5609         * basic-block.h (EDGE_PRESERVE): New.
5610         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5611         * bb-reorder.c: Include except.h.
5612         (fix_up_crossing_landing_pad): New.
5613         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5614         landing pads in the right partition.  Duplicate as necessary.
5615         (partition_hot_cold_basic_blocks): Fix up DF info after
5616         duplicating landing pads.
5617         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5618         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5619         is set properly.  Validate that EH edges are not CROSSING.
5620         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5621         (dw2_build_landing_pads): ... here.
5622         (convert_to_eh_region_ranges): Remove code to fixup crossing
5623         landing pads.
5624         * except.h (expand_dw2_landing_pad_for_region): Declare.
5625         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5626
5627 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
5628
5629         PR target/49816
5630         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5631
5632 2011-07-22  Jason Merrill  <jason@redhat.com>
5633
5634         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5635
5636 2011-07-22  Richard Henderson  <rth@redhat.com>
5637
5638         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5639
5640 2011-07-22  Richard Henderson  <rth@redhat.com>
5641
5642         * jump.c (maybe_propagate_label_ref): Split out of...
5643         (mark_all_labels): ... here.  Do not attempt label_ref
5644         propagation while in cfglayout mode.
5645
5646 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5649         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5650         (dwarf_attr_name): Handle DW_AT_GNU_macros.
5651         (dwarf2out_define): If the vector is empty and
5652         lineno is 0, emit a dummy entry first.
5653         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
5654         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5655         optimize_macinfo_range): New functions.
5656         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
5657         mergeable, optimize longer strings using
5658         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5659         optimize longer sequences of define/undef ops from headers
5660         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
5661         emit a section headers.
5662         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5663         and macinfo_section_label to DEBUG_MACRO_SECTION
5664         resp. DEBUG_MACRO_SECTION_LABEL.
5665         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5666         instead of DW_AT_macro_info.
5667
5668         PR other/32998
5669         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5670         options.
5671         * dwarf2out.c: Include opts.h.
5672         (dchar_p): New typedef.  Define heap VEC for it.
5673         (producer_string): New variable.
5674         (gen_producer_string): New function.
5675         (gen_compile_unit_die): Use it.
5676         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5677         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5678         * doc/invoke.texi: Document -grecord-gcc-switches and
5679         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5680         to -frecord-gcc-switches description.
5681
5682 2011-07-22  Jason Merrill  <jason@redhat.com>
5683
5684         PR c++/30112
5685         * c-decl.c (c_linkage_bindings): Define.
5686
5687 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5688
5689         PR debug/49815
5690         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5691
5692 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
5693
5694         * config/i386/i386.c (ix86_option_override_internal): Disallow
5695         MS ABI in x32 mode.
5696         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5697         only for TARGET_LP64.
5698         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5699
5700 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5701
5702         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5703         avoid warnings when GCC is built with a C++ compiler.
5704
5705 2011-07-22  Martin Jambor  <mjambor@suse.cz>
5706
5707         PR lto/49796
5708         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5709         if decl node is in another partition, call cgraph_get_node only once.
5710
5711 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
5712
5713         * config.gcc (x86_64-*-linux*): Set
5714         default_gnu_indirect_function to yes.
5715
5716 2011-07-22  Richard Guenther  <rguenther@suse.de>
5717
5718         PR tree-optimization/45819
5719         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5720         preserve volatile and notrap flags.
5721
5722 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5723             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5724
5725         PR bootstrap/49794
5726         * configure.ac: Test AM_ICONV with CXX.
5727         * configure: Regenerate.
5728         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5729
5730 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5731
5732         PR bootstrap/49797
5733         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5734         (set_cloog_options): Use it.
5735
5736 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
5737
5738         PR c++/49756
5739         * gcc.c (main): Call stack_limit_increase (64MB).
5740         * toplev.c (toplev_main): Likewise.
5741
5742 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5745         instead of force_reg.
5746
5747 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5748
5749         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5750         needed and use force_reg after convert.
5751         (ix86_expand_call): Likewise.
5752         (ix86_expand_special_args_builtin): Likewise.
5753         (ix86_expand_builtin): Likewise.
5754
5755 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5756
5757         PR middle-end/47654
5758         PR middle-end/49649
5759         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5760         in parameter.  Initialize v1 and v2 based on the values returned
5761         by clast_name_to_lb_ub.
5762         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5763         values.
5764         (type_for_clast_bin): Same.
5765         (type_for_clast_expr): Same.
5766         (type_for_clast_eq): Update calls to type_for_clast_expr.
5767         (type_for_clast_for): Same.
5768         (build_iv_mapping): Same.
5769         * graphite-ppl.h (value_min): New.
5770
5771 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5772
5773         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5774         types whenever possible.
5775
5776 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5777
5778         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5779         and ub fields.
5780         (new_clast_name_index): Add lb and ub parameters.
5781         (free_clast_name_index): New.
5782         (clast_name_to_lb_ub): New.
5783         (save_clast_name_index): Add lb and ub parameters.
5784         (compute_bounds_for_param): New.
5785         (type_for_level): Removed.
5786         (type_for_clast_for): Removed level parameter.  Do not call
5787         type_for_level.
5788         (graphite_create_new_loop): Store the lb and ub for the clast_name
5789         of the iterator of the loop that has been generated.
5790         (graphite_create_new_loop_guard): Remove parameter level.
5791         (create_params_index): Store the lb and ub of each parameter.
5792         (gloog): Use free_clast_name_index.  Pass to create_params_index
5793         the current scop.
5794
5795 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5796
5797         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5798         (max_precision_type): Inline max_signed_precision_type.
5799         (type_for_clast_red): Use max_precision_type.
5800         (type_for_clast_bin): Same.
5801         (type_for_clast_for): Same.
5802
5803 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5804
5805         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5806         type_for_interval.
5807         (gcc_type_for_value): Renamed type_for_value.
5808         (gcc_type_for_clast_term): Renamed type_for_clast_term.
5809         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5810         (gcc_type_for_clast_red): Renamed type_for_clast_red.
5811         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5812         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5813         (graphite_translate_clast_equation): Update calls.
5814         (compute_type_for_level): Renamed type_for_level.
5815         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5816         (build_iv_mapping): Update calls.
5817         (graphite_create_new_loop_guard): Same.
5818
5819 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5820
5821         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5822         comment.
5823
5824 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5825
5826         * graphite-clast-to-gimple.c (struct ivs_params): New.
5827         (clast_name_to_gcc): Use ivs_params to pass around parameters.
5828         (clast_to_gcc_expression): Same.
5829         (clast_to_gcc_expression_red): Same.
5830         (gcc_type_for_clast_term): Same.
5831         (gcc_type_for_clast_expr): Same.
5832         (gcc_type_for_clast_red): Same.
5833         (gcc_type_for_clast_bin): Same.
5834         (gcc_type_for_clast_eq): Same.
5835         (graphite_translate_clast_equation): Same.
5836         (graphite_create_guard_cond_expr): Same.
5837         (graphite_create_new_guard): Same.
5838         (graphite_create_new_loop): Same.
5839         (build_iv_mapping): Same.
5840         (translate_clast_user): Same.
5841         (graphite_create_new_loop_guard): Same.
5842         (translate_clast): Same.
5843         (translate_clast_for_loop): Same.
5844         (translate_clast_for): Same.
5845         (translate_clast_guard): Same.
5846         (initialize_cloog_names): Fix typo.
5847         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5848
5849 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5850
5851         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5852         (new_clast_name_index): Add level parameter.
5853         (clast_name_to_level): New.
5854         (save_clast_name_index): Add level parameter.
5855         (newivs_to_depth_to_newiv): Removed.
5856         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5857         (graphite_create_new_loop): Add level parameter.  Pass level to
5858         save_clast_name_index.
5859         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5860         (create_params_index): Pass level to save_clast_name_index.
5861
5862 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5863
5864         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5865         recompute type, lb, and ub.  Get them from...
5866         (graphite_create_new_loop_guard): ...here.  Pass in parameter
5867         pointers to type, lb, and ub.
5868         (translate_clast_for_loop): Update function calls.
5869         (translate_clast_for): Same.
5870
5871 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
5872
5873         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5874         psct_dynamic_dim.
5875         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5876         (gcc_type_for_iv_of_clast_loop): Update use of level.
5877         (gloog): Start counting nesting level from 0.
5878         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5879         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5880         psct_dynamic_dim on level.
5881
5882 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         * config/i386/i386.c (ix86_legitimize_address): Convert to
5885         Pmode if needed.
5886
5887 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
5888
5889         * config/i386/i386.c (function_value_64): Always return pointers
5890         in Pmode.
5891         (ix86_promote_function_mode): New.
5892         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5893
5894 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5895
5896         PR tree-optimization/49749
5897         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5898         remove no-longer-used maxrank variable.
5899
5900 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5901
5902         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5903
5904 2011-07-21  Jason Merrill  <jason@redhat.com>
5905
5906         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5907         * recog.h (struct insn_data_d): Check it instead of
5908         HAVE_DESIGNATED_INITIALIZERS.
5909         * genoutput.c (output_insn_data): Likewise.
5910
5911 2011-07-21  Richard Guenther  <rguenther@suse.de>
5912
5913         PR tree-optimization/49770
5914         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5915         valueized any operand.  Renamed from ...
5916         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
5917         (valueize_shared_reference_ops_from_ref): Return whether we
5918         valueized any operand.
5919         (vn_reference_lookup): Only when we valueized any operand
5920         use the valueized reference for alias analysis.  Do not preserve
5921         the original reference tree in this case.
5922
5923 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
5924
5925         * config/i386/i386.c (ix86_decompose_address): Reject all but
5926         register operands and subregs of DImode hard registers in index.
5927
5928 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5929
5930         * fold-const.c (fold_unary_loc): Preserve indirect
5931         comparison cast to none-boolean type.
5932         * tree-ssa.c (useless_type_conversion_p): Preserve cast
5933         from/to boolean-type.
5934         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5935         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5936         * tree-cfg.c (verify_gimple_comparison): Check result
5937         type of comparison expression.
5938         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5939         of condition result and disallow type-cast sinking into comparison.
5940
5941 2011-07-21  Richard Guenther  <rguenther@suse.de>
5942
5943         * tree-ssa-forwprop.c (combine_conversions): Return whether
5944         we have to run cfg-cleanup.  Properly remove dead stmts.
5945         (ssa_forward_propagate_and_combine): Adjust.
5946
5947 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
5948
5949         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5950
5951 2011-07-21  Kai Tietz  <ktietz@redhat.com>
5952
5953         * tree-ssa-propagate.c (substitute_and_fold): Use
5954         do_dce flag to deside, if BB's statements are scanned
5955         in last to first, or first to last order.
5956
5957 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
5958
5959         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5960
5961 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
5962             Uros Bizjak  <ubizjak@gmail.com>
5963             Richard Henderson  <rth@redhat.com>
5964
5965         * config/i386/constraints.md (w): New.
5966
5967         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5968         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5969
5970         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5971         instead of TARGET_64BIT.
5972
5973         * config/i386/i386.md (indirect_jump): Replace
5974         nonimmediate_operand with indirect_branch_operand.
5975         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
5976         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5977         Convert operand 0 to Pmode for x32 if not PIC.
5978         (*tablejump_1): Replace nonimmediate_operand with
5979         indirect_branch_operand.  Replace constraint "m" with "w".
5980         (*call_vzeroupper): Replace constraint "m" with "w".
5981         (*call): Likewise.
5982         (*call_rex64_ms_sysv_vzeroupper): Likewise.
5983         (*call_rex64_ms_sysv): Likewise.
5984         (*call_value_vzeroupper): Likewise.
5985         (*call_value): Likewise.
5986         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5987         (*call_value_rex64_ms_sysv): Likewise.
5988         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5989
5990         * config/i386/predicates.md (indirect_branch_operand): New.
5991         (call_insn_operand): Support x32.
5992
5993 2011-07-20  Michael Eager  <eager@eagercon.com>
5994
5995         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5996
5997 2011-07-20  Richard Henderson  <rth@redhat.com>
5998
5999         * cfg.c (dump_bb_info): Dump basic_block->flags.
6000         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6001
6002 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6003
6004         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6005         of DImode hard registers in index.
6006         (ix86_legitimate_address_p): Allow subregs of base and index to span
6007         more than a word.  Assert that subregs of base and index satisfy
6008         register_no_elim_operand predicates.  Reject addresses where
6009         base and index have different modes.
6010
6011 2011-07-20  Robert Millan  <rmh@gnu.org>
6012
6013         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6014
6015 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6016
6017         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6018         removing now-unnecessary assignment.
6019
6020 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6021
6022         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6023         memory address space to the type's address space.
6024
6025 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6026
6027         PR target/36467
6028         PR target/49687
6029         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6030         and expand appropriately if there is a CONST_INT in operand2.
6031         (usmulqihi3): New insn.
6032         (*sumulqihi3): New insn.
6033         (*osmulqihi3): New insn.
6034         (*oumulqihi3): New insn.
6035         (*muluqihi3.uconst): New insn_and_split.
6036         (*muluqihi3.sconst): New insn_and_split.
6037         (*mulsqihi3.sconst): New insn_and_split.
6038         (*mulsqihi3.uconst): New insn_and_split.
6039         (*mulsqihi3.oconst): New insn_and_split.
6040         (*ashifthi3.signx.const): New insn_and_split.
6041         (*ashifthi3.signx.const7): New insn_and_split.
6042         (*ashifthi3.zerox.const): New insn_and_split.
6043         (mulsqihi3): New insn.
6044         (muluqihi3): New insn.
6045         (muloqihi3): New insn.
6046         * config/avr/predicates.md (const_2_to_7_operand): New.
6047         (const_2_to_6_operand): New.
6048         (u8_operand): New.
6049         (s8_operand): New.
6050         (o8_operand): New.
6051         (s9_operand): New.
6052         (register_or_s9_operand): New.
6053
6054 2011-07-20  Kai Tietz  <ktietz@redhat.com>
6055
6056         * builtins.c (fold_builtin_expect): See through the cast
6057         from truthvalue_type_node to long.
6058
6059 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6060
6061         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6062         where we can use them from the standard and altivec instruction
6063         sets, instead of always using the 3 operand VSX forms that require
6064         the destination to overlap one of the inputs.
6065         (vsx_fms*): Ditto.
6066         (vsx_fnma*): Ditto.
6067         (vsx_fnms*): Ditto.
6068
6069         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6070         for DF types.
6071         (fmsdf4_fpr): Ditto.
6072         (nfmadf4_fpr): Ditto.
6073         (nfmsdf4_fpr): Ditto.
6074
6075 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
6076
6077         * genrecog.c (make_insn_sequence): Correct position numbering
6078         when filtering out match_scratch and match_dup.
6079
6080 2011-07-20  Richard Guenther  <rguenther@suse.de>
6081
6082         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6083         against already removed statements.
6084         (forward_propagate_into_comparison): Remove dead defining stmts.
6085         (forward_propagate_into_gimple_cond): Likewise.
6086         (forward_propagate_into_cond): Simplify.
6087         (ssa_forward_propagate_and_combine): Handle changed cfg from
6088         forward_propagate_into_comparison.
6089         * tree-ssa-phiopt.c (conditional_replacement): Use proper
6090         locations for newly built statements.
6091
6092 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6093
6094         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6095
6096 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6097
6098         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6099         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6100
6101 2011-07-20  Richard Guenther  <rguenther@suse.de>
6102
6103         PR middle-end/18908
6104         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6105         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6106         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
6107
6108 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
6109
6110         * config/frv/frv.c (frv_register_move_cost): Define explicitly
6111         costs for subclasses of GR_REGS.
6112
6113 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6114
6115         PR target/49780
6116         * config/i386/predicates.md (no_seg_addres_operand): No more special.
6117         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6118         of DImode hard registers in base.
6119         (ix86_legitimate_address_p): Allow SImode and DImode base and index
6120         registers.
6121
6122 2011-07-20  Richard Guenther  <rguenther@suse.de>
6123
6124         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6125         (unify_nodes): Deal with that.
6126         (solve_graph): Likewise.
6127
6128 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
6129
6130         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6131         canonicalize left operand from ZERO_EXTEND to AND.
6132
6133 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
6134
6135         * target.def (class_max_nregs): New hook.
6136         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6137         * doc/tm.texi: Regenerate.
6138         * targhooks.c (default_class_max_nregs): New function.
6139         * targhooks.h (default_class_max_nregs): Declare.
6140         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6141         x_ira_reg_class_min_nregs arrays to unsigned char.
6142         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6143         hook instead of CLASS_MAX_NREGS macro.
6144         * reginfo.c (restore_register_info): Ditto.
6145         * ira-conflicts.c (process_regs_for_copy): Use
6146         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6147         Change type rclass and aclass vars to reg_class_t.
6148         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6149         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6150         reg_class_t.
6151         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6152         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6153
6154         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6155         * config/i386/i386.c (ix86_class_max_nregs): New function.
6156         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6157         instead of CLASS_MAX_NREGS macro.
6158         (TARGET_CLASS_MAX_NREGS): Define.
6159         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6160         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6161         * config/avr/avr.c (class_max_nregs): Remove function.
6162         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6163         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6164         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6165         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6166         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6167         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6168         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6169         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6170         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6171         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6172         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6173         * config/score/score.h (CLASS_MAX_NREGS): Remove.
6174         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6175         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6176         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6177
6178 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
6179
6180         * cif-code.def (OVERWRITABLE): Fix typo and move around.
6181         (TARGET_OPTIMIZATION_MISMATCH): Delete.
6182         (EH_PERSONALITY): Fix typo.
6183         (NON_CALL_EXCEPTIONS): Fix message.
6184         (OPTIMIZATION_MISMATCH): Adjust message.
6185         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6186
6187 2011-07-19  Ian Lance Taylor  <iant@google.com>
6188
6189         * doc/install.texi (Configuration): Document
6190         --enable-build-poststage1-with-cxx.
6191
6192 2011-07-19  Robert Millan  <rmh@gnu.org>
6193
6194         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
6195         (GLIBC_DYNAMIC_LINKER): Remove.
6196
6197         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
6198         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6199         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6200         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6201         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6202         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6203
6204         * config/mips/linux.h: Remove everything except for ...
6205         (GLIBC_DYNAMIC_LINKER): ... this macro.
6206
6207         * config/mips/linux64.h: Remove everything except for ...
6208         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6209         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6210         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6211         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6212         (GNU_USER_LINK_EMULATIONN32): New macros.
6213
6214         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6215         Use the new headers.
6216
6217 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6218
6219         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6220         Add offset_known_p and size_known_p fields.
6221         (MEM_OFFSET_KNOWN_P): Update accordingly.
6222         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6223         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6224         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6225         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6226         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6227         (init_emit_regs): Likewise.
6228
6229 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6230
6231         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6232         (MEM_OFFSET): Change from returning an rtx to returning a
6233         HOST_WIDE_INT.
6234         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6235         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6236         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6237         (clear_mem_offset): Declare.
6238         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6239         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6240         MEM_OFFSET to get a HOST_WIDE_INT offset.
6241         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
6242         (adjust_offset_for_component_ref): Take a bool "known_p"
6243         parameter and a HOST_WIDE_INT "offset" parameter.
6244         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6245         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6246         than an rtx.  Use clear_mem_offset to clear the offset.
6247         * cfgcleanup.c (merge_memattrs): Likewise.
6248         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6249         * function.c (assign_parm_find_stack_rtl): Likewise.
6250         (assign_parm_setup_stack): Likewise.
6251         * print-rtl.c (print_rtx): Likewise.
6252         * reload.c (find_reloads_subreg_address): Likewise.
6253         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6254         * var-tracking.c (INT_MEM_OFFSET): Likewise.
6255         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6256         (get_mem_align_offset): Likewise.
6257         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6258         (clear_mem_offset): New function.
6259         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6260         offset rather than an rtx.  Assume both the expressio and offset
6261         are available.
6262         (r10k_needs_protection_p_1): Update accordingly, checking the
6263         expression and offset availability here instead.
6264
6265 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6266
6267         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6268         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6269         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6270         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6271         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6272         (clear_mem_size): Declare.
6273         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6274         (clear_mem_size): New function.
6275         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6276         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6277         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
6278         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
6279         to clear the size.
6280         (nonoverlapping_memrefs_p): Likewise.
6281         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6282         (expand_builtin_init_trampoline): Likewise.
6283         * calls.c (compute_argument_addresses): Likewise.
6284         * cfgcleanup.c (merge_memattrs): Likewise.
6285         * dce.c (find_call_stack_args): Likewise.
6286         * dse.c (record_store, scan_insn): Likewise.
6287         * dwarf2out.c (dw_sra_loc_expr): Likewise.
6288         * expr.c (emit_block_move_hints): Likewise.
6289         * function.c (assign_parm_find_stack_rtl): Likewise.
6290         * print-rtl.c (print_rtx): Likewise.
6291         * reload.c (find_reloads_subreg_address): Likewise.
6292         * rtlanal.c (may_trap_p_1): Likewise.
6293         * var-tracking.c (track_expr_p): Likewise.
6294         * varasm.c (assemble_trampoline_template): Likewise.
6295         * config/arm/arm.c (arm_print_operand): Likewise.
6296         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6297         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6298         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6299         (expand_constant_setmem_prologue): Likewise.
6300         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6301         * config/rs6000/rs6000.c (expand_block_move): Likewise.
6302         (adjacent_mem_locations): Likewise.
6303         * config/s390/s390.c (s390_expand_setmem): Likewise.
6304         (s390_expand_insv): Likewise.
6305         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6306         (*extendqi<mode>2_short_displ): Likewise.
6307         * config/sh/sh.c (expand_block_move): Likewise.
6308         * config/sh/sh.md (extv, extzv): Likewise.
6309
6310 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6311
6312         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6313         (mem_attrs_htab_eq): ...here.
6314         (find_mem_attrs): Replace with...
6315         (set_mem_attrs): ...this function.  Take a mem_attrs structure
6316         rather than individual fields.
6317         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6318         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6319         (set_mem_size, change_address, adjust_address_1, offset_address)
6320         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6321         Update accordingly.
6322
6323 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6324
6325         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6326         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6327         Provide a dummy definition of MEM_ADDR_SPACE for generators.
6328         (target_rtl): Add x_mode_mem_attrs.
6329         (mode_mem_attrs): New macro.
6330         (get_mem_attrs): New function.
6331         * emit-rtl.c (get_mem_attrs): Rename to...
6332         (find_mem_attrs): ...this.
6333         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6334         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6335         (set_mem_size, change_address, adjust_address_1, offset_address)
6336         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6337         Update accordingly.
6338         (init_emit_regs): Initialize mode_mem_attrs.
6339
6340 2011-07-19  Richard Guenther  <rguenther@suse.de>
6341
6342         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6343         TRUTH_*_EXPR handling.
6344         * tree-ssa-operands.c (get_expr_operands): Likewise.
6345         * tree-ssa-pre.c (fully_constant_expression): Likewise.
6346         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6347         Likewise.
6348         (is_and_or_or): Likewise.
6349         (is_norm_cond_subset_of): Likewise.
6350
6351 2011-07-19  Richard Guenther  <rguenther@suse.de>
6352
6353         * tree.h (fold_build_pointer_plus_loc): New helper function.
6354         (fold_build_pointer_plus_hwi_loc): Likewise.
6355         (fold_build_pointer_plus): Define.
6356         (fold_build_pointer_plus_hwi): Likewise.
6357         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6358         (fold_builtin_memory_op): Likewise.
6359         (fold_builtin_stpcpy): Likewise.
6360         (fold_builtin_memchr): Likewise.
6361         (fold_builtin_strstr): Likewise.
6362         (fold_builtin_strchr): Likewise.
6363         (fold_builtin_strrchr): Likewise.
6364         (fold_builtin_strpbrk): Likewise.
6365         (fold_builtin_strcat): Likewise.
6366         (expand_builtin_memory_chk): Likewise.
6367         (fold_builtin_memory_chk): Likewise.
6368         * c-typeck.c (build_unary_op): Likewise.
6369         * cgraphunit.c (thunk_adjust): Likewise.
6370         * fold-const.c (build_range_check): Likewise.
6371         (fold_binary_loc): Likewise.
6372         * omp-low.c (extract_omp_for_data): Likewise.
6373         (expand_omp_for_generic): Likewise.
6374         (expand_omp_for_static_nochunk): Likewise.
6375         (expand_omp_for_static_chunk): Likewise.
6376         * tree-affine.c (add_elt_to_tree): Likewise.
6377         * tree-data-ref.c (split_constant_offset_1): Likewise.
6378         * tree-loop-distribution.c (generate_memset_zero): Likewise.
6379         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6380         * tree-predcom.c (ref_at_iteration): Likewise.
6381         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6382         (add_to_parts): Likewise.
6383         (create_mem_ref): Likewise.
6384         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6385         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6386         (number_of_iterations_le): Likewise.
6387         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6388         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6389         (vect_create_addr_base_for_vector_ref): Likewise.
6390         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6391         (vect_create_cond_for_alias_checks): Likewise.
6392         * tree-vrp.c (extract_range_from_assert): Likewise.
6393         * config/alpha/alpha.c (alpha_va_start): Likewise.
6394         (alpha_gimplify_va_arg_1): Likewise.
6395         * config/i386/i386.c (ix86_va_start): Likewise.
6396         (ix86_gimplify_va_arg): Likewise.
6397         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6398         * config/mep/mep.c (mep_expand_va_start): Likewise.
6399         (mep_gimplify_va_arg_expr): Likewise.
6400         * config/mips/mips.c (mips_va_start): Likewise.
6401         (mips_gimplify_va_arg_expr): Likewise.
6402         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6403         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6404         (rs6000_gimplify_va_arg): Likewise.
6405         * config/s390/s390.c (s390_va_start): Likewise.
6406         (s390_gimplify_va_arg): Likewise.
6407         * config/sh/sh.c (sh_va_start): Likewise.
6408         (sh_gimplify_va_arg_expr): Likewise.
6409         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6410         * config/spu/spu.c (spu_va_start): Likewise.
6411         (spu_gimplify_va_arg_expr): Likewise.
6412         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6413         Likewise.
6414         (xstormy16_gimplify_va_arg_expr): Likewise.
6415         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6416         (xtensa_gimplify_va_arg_expr): Likewise.
6417
6418 2011-07-19  Richard Guenther  <rguenther@suse.de>
6419
6420         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6421         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6422         handling.
6423
6424         PR middle-end/18908
6425         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6426         result of BIT_*_EXPR to bitfield precision.
6427
6428 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
6429
6430         PR tree-optimization/49742
6431         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6432         as a potential write.
6433
6434 2011-07-19  Richard Guenther  <rguenther@suse.de>
6435
6436         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6437         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6438         (forward_propagate_comparison): Simplify, remove obsolete code.
6439
6440 2011-07-19  Richard Guenther  <rguenther@suse.de>
6441
6442         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6443         BIT_XOR_EXPR, same as the RTL expander does.
6444         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6445         (verify_gimple_assign_unary): Likewise.
6446         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6447         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6448         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6449
6450 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
6451
6452         PR tree-optimization/49768
6453         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6454         if offset is smaller than bitoffset, but offset+size is bigger
6455         than bitoffset.
6456
6457 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
6458
6459         PR tree-optimization/49771
6460         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6461         zero step, set segment length to the size of the data-ref's type.
6462
6463 2011-07-18  Martin Jambor  <mjambor@suse.cz>
6464
6465         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6466         comments.
6467         (ipcp_values_pool): Declare.
6468         (ipcp_sources_pool): Likewise.
6469         (ipcp_lattice): Changed to forward declaration.
6470         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6471         cannot_devirtualize.
6472         (ipa_node_params): New fields descriptors, lattices, known_vals,
6473         clone_for_all_contexts and node dead, removed fields params and
6474         count_scale.
6475         (ipa_set_param_count): Removed.
6476         (ipa_get_param_count): Made to work with descriptors vector.
6477         (ipa_get_param): Updated.
6478         (ipa_param_cannot_devirtualize_p): Removed.
6479         (ipa_param_types_vec_empty): Likewise.
6480         (ipa_set_param_used): New function.
6481         (ipa_get_param_used): Updated to use descriptors vector.
6482         (ipa_func_list): Removed.
6483         (ipa_init_func_list): Removed declaration.
6484         (ipa_push_func_to_list_1): Likewise.
6485         (ipa_pop_func_from_list): Likewise.
6486         (ipa_push_func_to_list): Removed.
6487         (ipa_lattice_from_jfunc): Remove declaration.
6488         (ipa_get_jf_pass_through_result): Declare.
6489         (ipa_get_jf_ancestor_result): Likewise.
6490         (ipa_value_from_jfunc): Likewise.
6491         (ipa_get_lattice): Update.
6492         (ipa_lat_is_single_const): New function.
6493         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6494         (ipa_init_func_list): Likewise.
6495         (ipa_pop_func_from_list): Likewise.
6496         (ipa_get_param_decl_index): Fix coding style.
6497         (count_formal_params): Removed.
6498         (count_formal_params_1): Renamed to count_formal_params.
6499         (ipa_populate_param_decls): Update to use descriptors vector.
6500         (ipa_initialize_node_params): Likewise.
6501         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6502         (ipa_analyze_params_uses): Likewise.
6503         (ipa_free_node_params_substructures): Likewise and free also lattices
6504         and known values.
6505         (duplicate_array): Removed.
6506         (ipa_edge_duplication_hook): Add the new edge to the list of edge
6507         clones.
6508         (ipa_node_duplication_hook): Update to use new lattices.
6509         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6510         (ipa_free_all_structures_after_iinln): Likewise.
6511         (ipa_write_node_info): Update to use new lattices.
6512         (ipa_read_node_info): Likewise.
6513         (ipa_get_jf_pass_through_result): New function.
6514         (ipa_get_jf_ancestor_result): Likewise.
6515         (ipa_value_from_jfunc): Likewise.
6516         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6517         * ipa-cp.c: Reimplemented.
6518         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6519         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6520         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6521         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6522         * doc/invoke.texi (devirt-type-list-size): Removed description.
6523         (ipa-cp-value-list-size): Added description.
6524
6525 2011-07-18  Richard Henderson  <rth@redhat.com>
6526
6527         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6528         before calling create_basic_block.
6529
6530 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
6531
6532         PR middle-end/49675
6533         * tree.c (build_common_builtin_nodes): Register
6534         __builtin_return_address, __cyg_profile_func_enter
6535         and __cyg_profile_func_exit.
6536
6537 2011-07-18  Richard Henderson  <rth@redhat.com>
6538
6539         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6540         (add_labels_and_missing_jumps): ... here.
6541         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6542
6543 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
6544
6545         PR target/47744
6546         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6547         of DImode hard registers in PLUS address chains.
6548
6549 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6550
6551         PR bootstrap/49769
6552         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6553         (alpha*-*-freebsd*): Likewise.
6554         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6555         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6556         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6557         crtprec80.o, crtfastmath.o to extra_parts for all targets.
6558         (ia64*-*-elf*): Remove extra_parts.
6559         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6560         (sparc64-*-linux*): Likewise.
6561         (sparc64-*-freebsd*): Likewise.
6562
6563         Revert:
6564         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6565         (ia64*-*-linux*): Likewise.
6566         (mips64*-*-linux*): Likewise.
6567         (mips*-*-linux*): Likewise.
6568
6569 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
6570
6571         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6572
6573 2011-07-18  Richard Guenther  <rguenther@suse.de>
6574
6575         * gimplify.c (gimplify_expr): Use input_location, not saved_location
6576         when building new trees.
6577
6578 2011-07-18  Richard Guenther  <rguenther@suse.de>
6579
6580         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6581         expansion result to bitfield precision if required.
6582
6583 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6584
6585         * config.gcc (i[3456x]86-*-netware*): Remove.
6586
6587         * gthr-nks.h: Remove.
6588         * configure.ac (enable_threads): Remove nks.
6589         * configure: Regenerate.
6590
6591         * config/i386/i386.c (ix86_encode_section_info): Remove netware
6592         reference.
6593         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6594         <netware.h> reference.
6595
6596         * config/i386/netware-libgcc.c,
6597         gcc/config/i386/netware-libgcc.def,
6598         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6599         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6600         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6601         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6602
6603         * doc/extend.texi (Function Attributes,
6604         callee_pop_aggregate_return): Remove i?86-netware reference.
6605         * doc/install.texi (Configuration, --enable-threads): Remove nks.
6606
6607 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6608
6609         PR target/49746
6610         Revert:
6611         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6612
6613         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6614         patterns.
6615
6616 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
6617
6618         PR middle-end/49732
6619         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6620
6621 2011-07-16  Matthias Klose  <doko@ubuntu.com>
6622
6623         * doc/install.texi: Document --enable-static-libjava.
6624
6625 2011-07-15  Richard Henderson  <rth@redhat.com>
6626
6627         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6628         Replace all three arguments by returning a VEC of edges.
6629         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6630         pointers and counts.
6631         (fix_edges_for_rarely_executed_code): Merge ...
6632         (rest_of_handle_partition_blocks): ... into...
6633         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
6634         any work was performed.
6635         (pass_partition_blocks): Clear todo_flags_finish.
6636
6637 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
6638             Jakub Jelinek  <jakub@redhat.com>
6639             Jonathan Wakely  <jwakely.gcc@gmail.com>
6640
6641         PR libstdc++/49745
6642         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6643         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6644
6645 2011-07-15  Jason Merrill  <jason@redhat.com>
6646
6647         PR testsuite/49741
6648         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6649         rather than --tool_opts.
6650
6651 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
6652
6653         * doc/plugins.texi (Building GCC plugins): gengtype needs its
6654         corresponding gtype.state.
6655
6656 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6657
6658         PR target/49723
6659         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6660
6661 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
6662
6663         PR target/48220
6664         * doc/md.texi (Standard Names): Document window_save.
6665         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6666         expand_debug_expr and expand_debug_source_expr.  If the target has
6667         a window_save instruction, adjust the ENTRY_VALUE_EXP.
6668         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6669         SSA_NAME_VAR is a parameter.
6670         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6671         * var-tracking.c (parm_reg_t): New type and associated vector type.
6672         (windowed_parm_regs): New variable.
6673         (adjust_insn): If the target has a window_save instruction and this
6674         is the instruction, make its effect on parameter registers explicit.
6675         (next_non_note_insn_var_location): New function.
6676         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6677         (vt_add_function_parameter): If the target has a window_save insn,
6678         adjust the incoming RTL and record that in windowed_parm_regs.
6679         (vt_finalize): Free windowed_parm_regs.
6680
6681 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6682
6683         * doc/invoke.texi (C6X Options): New section.
6684         * doc/md.texi (TI C6X family): New section.
6685         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6686         tic6x-*-uclinux.
6687         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6688         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6689         Provide C6X definitions.
6690         * config/c6x/c6x.md: New file.
6691         * config/c6x/constraints.md: New file.
6692         * config/c6x/predicates.md: New file.
6693         * config/c6x/c6x-sched.md.in: New file.
6694         * config/c6x/c6x-sched.md: New file.
6695         * config/c6x/gensched.sh: New file.
6696         * config/c6x/c6x-mult.md.in: New file.
6697         * config/c6x/genmult.sh: New file.
6698         * config/c6x/c6x-mult.md: New file.
6699         * config/c6x/sync.md: New file.
6700         * config/c6x/c6x-protos.h: New file.
6701         * config/c6x/sfp-machine.h: New file.
6702         * config/c6x/c6x.c: New file.
6703         * config/c6x/c6x.h: New file.
6704         * config/c6x/crti.s: New file.
6705         * config/c6x/crtn.s: New file.
6706         * config/c6x/lib1funcs.asm: New file.
6707         * config/c6x/c6x-modes.def: New file.
6708         * config/c6x/genopt.sh: New file.
6709         * config/c6x/c6x.opt: New file.
6710         * config/c6x/c6x-tables.opt: New file.
6711         * config/c6x/c6x-opts.h: New file.
6712         * config/c6x/c6x-isas.def: New file.
6713         * config/c6x/elf.h: New file.
6714         * config/c6x/elf-common.h: New file.
6715         * config/c6x/uclinux-elf.h: New file.
6716         * config/c6x/t-c6x: New file.
6717         * config/c6x/t-c6x-elf: New file.
6718         * config/c6x/t-c6x-uclinux: New file.
6719         * config/c6x/t-c6x-softfp: New file.
6720         * config/c6x/gtd.c: New file.
6721         * config/c6x/gtf.c: New file.
6722         * config/c6x/ltd.c: New file.
6723         * config/c6x/ltf.c: New file.
6724         * config/c6x/ged.c: New file.
6725         * config/c6x/gef.c: New file.
6726         * config/c6x/led.c: New file.
6727         * config/c6x/lef.c: New file.
6728         * config/c6x/eqd.c: New file.
6729         * config/c6x/eqf.c: New file.
6730         * config/c6x/libgcc-c6xeabi.ver: New file.
6731
6732         Revert
6733         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6734         PR rtl-optimization/11320
6735         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6736         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6737         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6738         current_sched_info->compute_jump_reg_dependencies. Record which
6739         registers are used and which registers are set by the jump.
6740         Clear deps->reg_conditional_sets after a barrier.
6741         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6742         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6743         (init_deps): Initialize reg_conditional_sets.
6744         (free_deps): Clear reg_conditional_sets.
6745         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6746         Mark registers live on entry of the fallthrough block and conditionally
6747         set as set by the jump. Mark registers live on entry of non-fallthrough
6748         blocks as used by the jump.
6749         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6750         Mark new parameters as unused.
6751
6752 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
6753
6754         PR tree-opt/49309
6755         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6756         Use fold_build2_loc instead of build2.
6757         Use the correct type for the new tree.
6758
6759 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6760
6761         PR rtl-optimization/11320
6762         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6763         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6764
6765 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6766
6767         PR target/49487
6768         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6769         of REG.
6770         (*rotw<mode>): Use const_int_operand for operand2.
6771         Use match_scatch for operand3.
6772         (*rotb<mode>): Ditto
6773         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6774
6775 2011-07-14  Richard Guenther  <rguenther@suse.de>
6776
6777         PR tree-optimization/49651
6778         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6779         handle dereferences with subvariables.
6780
6781 2011-07-14  Richard Guenther  <rguenther@suse.de>
6782
6783         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6784         (fold_stmt_1): Do it here directly on gimple and as a first thing.
6785
6786 2011-07-14  Richard Guenther  <rguenther@suse.de>
6787
6788         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6789         not bool_var when folding bool_var != 1 or bool_var == 0.
6790
6791 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6792
6793         * haifa-sched.c (schedule_insns): Remove outdated comment.
6794         (schedule_block): When computing a known value for TODO_SPEC,
6795         just set it rather than using logical operations.
6796         (try_ready): Likewise.  Use a local variable rather than a
6797         pointer to TODO_SPEC.  Reorder an if statement to move the
6798         easy case to the then block.
6799         * sched-deps.c (dep_spec_p): New static function.
6800         (update_dep): Use it to decide whether to call
6801         change_spec_dep_to_hard.
6802         (get_back_and_forw_lists): Use it.
6803         (sd_resolve_dep): Likewise.
6804         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6805         (haifa_note_mem_dep): Likewise.
6806         (check_dep): Likewise.
6807         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6808         (sched_free_deps): Free in two passes.
6809
6810 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
6811
6812         PR middle-end/49736
6813         * expr.c (all_zeros_p): Undo bogus part of last change.
6814
6815 2011-07-14  Matthias Klose <doko@ubuntu.com>
6816
6817         * doc/extend.texi (optimize attribute): Fix typo.
6818
6819 2011-07-14  Richard Guenther  <rguenther@suse.de>
6820
6821         * gimplify.c (gimplify_expr): Only do required conversions.
6822
6823 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
6824
6825         PR target/43746
6826         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6827         i.e. use default_elf_select_section.
6828         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6829         (READONLY_DATA_SECTION_ASM_OP): Remove.
6830         (TARGET_ASM_NAMED_SECTION): Move from here...
6831         * config/avr/avr.c: ...to here.
6832         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6833         (avr_asm_named_section): Make static.
6834
6835 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6836
6837         PR bootstrap/49739
6838         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6839         and crtfastmath.o for Linux/x86.
6840
6841 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6842
6843         * haifa-sched.c: Include "hashtab.h"
6844         (sched_no_dce): New global variable.
6845         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6846         SHADOW_P): New macros.
6847         (last_clock_var, cycle_issued_insns): Move declarations.
6848         (must_backtrack): New static variable.
6849         (struct delay_pair): New structure.
6850         (delay_htab, delay_htab_i2): New static variables.
6851         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6852         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6853         functions.
6854         (dep_cost_1): If delay pairs exist, try to look up the insns and
6855         use the correct pair delay if we find them.
6856         (rank-for_schedule): Tweak priority for insns that must be scheduled
6857         soon to avoid backtracking.
6858         (queue_insn): Detect conditions which force backtracking.
6859         (ready_add): Likewise.
6860         (struct sched_block_state): Add member shadows_only_p.
6861         (struct haifa_save_data): New structure.
6862         (backtrack_queue): New static variable.
6863         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6864         unschedule_insns_until, restore_last_backtrack_point,
6865         free_topmost_backtrack_point, free_backtrack_queue,
6866         estimate_insn_tick, estimate_shadow_tick): New functions.
6867         (prune_ready_list): New arg shadows_only_p.  All callers changed.
6868         If true, remove everything that isn't SHADOW_P.  Look up delay
6869         pairs and estimate ticks to avoid scheduling the first insn too early.
6870         (verify_shadows): New function.
6871         (schedule_block): Add machinery to enable backtracking.
6872         (sched_init): Take sched_no_dce into account when setting
6873         DF_LR_RUN_DCE.
6874         (free_delay_pairs): New function.
6875         (init_h_i_d): Initialize INSN_EXACT_TICK.
6876         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6877         * sched-deps.c (sd_unresolve_dep): New function.
6878         * sched-int. (struct haifa_sched_info): New fields save_state
6879         and restore_state.
6880         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6881         feeds_backtrack_insn and shadow_p.
6882         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6883         (sched_no_dce): Declare variable.
6884         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6885         sd_unresolve_dep): Declare functions.
6886         * modulo-sched.c (sms_sched_info): Clear the two new fields.
6887         * sched-rgn.c (rgn_const_sched_info): Likewise.
6888         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6889         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6890         (ebb_sched_info): Add them for the two new fields.
6891         (add_deps_for_risky_insns): Call add_delay_dependencies.
6892
6893 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6894
6895         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6896         Rename -mr11.
6897         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6898         (rs6000_call_indirect_aix): Ditto.
6899         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6900         (call_indirect_aix<ptrsize>_internal): Ditto.
6901         (call_indirect_aix<ptrsize>_nor11): Ditto.
6902         (call_indirect_aix<ptrsize>_internal2): Ditto.
6903         (call_value_indirect_aix<ptrsize>): Ditto.
6904         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6905         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6906         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6907         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6908
6909 2011-07-13  Jason Merrill  <jason@redhat.com>
6910
6911         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6912
6913 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6914
6915         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6916         * config/spu/spu.md ("clrsb<mode>2"): New expander.
6917
6918 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
6919
6920         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6921         * configure: Regenerate.
6922
6923 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6924
6925         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6926         (asm_file_start): Remove.
6927         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6928         free_bb_for_insn around code that modifies insns before
6929         restarting df analysis.
6930
6931 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6932
6933         PR target/49541
6934         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
6935         (LINK_SPEC): ... here.
6936
6937 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6938
6939         * haifa-sched.c (struct sched_block_state): New.
6940         (schedule_block): Move some local variables into such a structure.
6941
6942 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6943
6944         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6945         * config/i386/t-crtpc: Remove.
6946         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6947         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6948         tmake_file.
6949         (x86_64-*-darwin*): Likewise.
6950         (i[34567]86-*-linux*): Likewise.
6951         (x86_64-*-linux*): Likewise.
6952
6953         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6954         Handle -mpc32, -mpc64, -mpc80.
6955
6956 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6957
6958         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6959         * config/alpha/t-crtfm: Remove.
6960         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6961         * config/i386/t-crtfm: Remove.
6962         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6963         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6964         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6965         * config/sparc/t-crtfm: Remove.
6966
6967         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6968         (alpha*-*-freebsd*): Likewise.
6969         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6970         (x86_64-*-darwin*): Likewise.
6971         (i[34567]86-*-linux*): Likewise.
6972         (x86_64-*-linux*): Likewise.
6973         (x86_64-*-mingw*): Likewise.
6974         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6975         (ia64*-*-freebsd*): Likewise.
6976         (ia64*-*-linux*): Likewise.
6977         (mips64*-*-linux*): Likewise.
6978         (mips*-*-linux*): Likewise.
6979         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6980         (sparc64-*-linux*): Likewise.
6981         (sparc64-*-freebsd*): Likewise.
6982
6983 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6984
6985         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6986         * config/darwin-crt3.c: Move to ../libgcc/config.
6987         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6988         ($(T)crt3$(objext)): Remove.
6989         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6990         ($(T)crt2$(objext)): Remove.
6991         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6992         (powerpc64-*-darwin*): Likewise.
6993
6994 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6995
6996         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6997
6998         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6999         (addsi_1_zext): This.
7000
7001 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7002
7003         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7004         * doc/tm.texi: Regenerate.
7005         * target.def (mergeable_rodata_prefix): New defhookpod.
7006         * varasm.c (mergeable_string_section, mergeable_constant_section):
7007         Use it. Allocate name with alloca.
7008
7009 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7010
7011         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7012
7013 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7014
7015         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7016         overlap check.
7017
7018 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7019
7020         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
7021         (count_type_elements): Delete.
7022         (complete_ctor_at_level_p): Declare.
7023         * expr.c (flexible_array_member_p): New function, split out from...
7024         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
7025         parameter with for_ctor_p.  When for_ctor_p is true, return the
7026         number of elements that should appear in the top-level constructor,
7027         otherwise return an estimate of the number of scalars.
7028         (categorize_ctor_elements): Replace p_must_clear with p_complete.
7029         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
7030         (complete_ctor_at_level_p): New function, borrowing union logic
7031         from old categorize_ctor_elements_1.
7032         (mostly_zeros_p): Return true if the constructor is not complete.
7033         (all_zeros_p): Update call to categorize_ctor_elements.
7034         * gimplify.c (gimplify_init_constructor): Update call to
7035         categorize_ctor_elements.  Don't call count_type_elements.
7036         Unconditionally prevent clearing for variable-sized types,
7037         otherwise rely on categorize_ctor_elements to detect
7038         incomplete initializers.
7039
7040 2011-07-13  Richard Guenther  <rguenther@suse.de>
7041
7042         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7043         the final type is integral.
7044
7045 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7046
7047         * sched-int.h (struct _dep): Add member cost.
7048         (DEP_COST, UNKNOWN_DEP_COST): New macros.
7049         * sched-deps.c (init_dep_1): Initialize DEP_COST.
7050         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7051         (sched_change_pattern): Reset it for dependent insns.
7052
7053 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7054
7055         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7056         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7057         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7058         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7059         (CRT0_S, MCRT0_S): Remove.
7060         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7061         Remove.
7062         (s-crt0): Remove.
7063         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7064
7065 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7066
7067         * cse.c (insert_with_costs): Put semi-colon after empty loop body
7068         on the next line.
7069         * emit-rtl.c (push_to_sequence): Likewise.
7070         * haifa-sched.c (max_issue): Likewise.
7071         * matrix-reorg.c (add_allocation_site): Likewise.
7072         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7073         * reload.c (alternative_allows_const_pool_ref): Likewise.
7074         * sched-rgn.c (rgn_add_block): Likewise.
7075         (rgn_fix_recovery_cfg): Likewise.
7076         * tree.c (attribute_list_contained): Likewise.
7077
7078 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
7079
7080         * config/i386/i386.c: Tidy processor feature bitmasks.
7081         (m_P4_NOCONA): New.
7082
7083 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
7084
7085         PR rtl-opt/49474
7086         * cprop.c (find_implicit_sets): Correct the condition.
7087
7088 2011-07-12  Richard Henderson  <rth@redhat.com>
7089
7090         PR target/49713
7091         * dwarf2out.h (dwarf_frame_regnum): Remove.
7092         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
7093         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
7094         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7095         (execute_dwarf2_frame): Initialize them.
7096         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7097         users of the macros with the variables.
7098         (expand_builtin_dwarf_sp_column): Revert last change.
7099         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
7100         result of DWARF_FRAME_REGNUM into a local variable.
7101
7102 2011-07-12  Richard Henderson  <rth@redhat.com>
7103
7104         PR target/49714
7105         * config/i386/i386.c (x86_output_mi_thunk): Use
7106         machopic_indirect_call_target instead of machopic_indirection_name
7107         directly.
7108
7109 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
7110             Eric Botcazou  <ebotcazou@adacore.com>
7111
7112         * prefix.h: Wrap up in extern "C" block.
7113
7114 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
7115
7116         AMD bdver2 Enablement
7117         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7118         (case ${target}): Add bdver2.
7119         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7120         -march=native recognize bdver2 processors.
7121         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7122         bdver2 def_and_undef
7123         * config/i386/i386.c (struct processor_costs bdver2_cost): New
7124         bdver2 cost table.
7125         (m_BDVER2): New definition.
7126         (m_AMD_MULTIPLE): Includes m_BDVER2.
7127         (initial_ix86_tune_features): Add bdver2 tuning.
7128         (processor_target_table): Add bdver2 entry.
7129         (static const char *const cpu_names): Add bdver2 entry.
7130         (ix86_option_override_internal): Add bdver2 instruction sets.
7131         (ix86_issue_rate): Add bdver2.
7132         (ix86_adjust_cost): Add bdver2.
7133         (has_dispatch): Add bdver2.
7134         * config/i386/i386.h (TARGET_BDVER2): New definition.
7135         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7136         (enum processor_type): Add PROCESSOR_BDVER2.
7137         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7138         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7139         description.
7140
7141 2011-07-12  Richard Henderson  <rth@redhat.com>
7142
7143         PR target/49714
7144         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7145         destination address in memory on some paths.
7146
7147 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
7148
7149         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7150         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7151         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7152         * function.c (locate_and_pad_parm): Take it into account.
7153         * target.def (function_arg_round_boundary): New hook.
7154         * targhooks.c (default_function_arg_round_boundary): New function.
7155         * targhooks.h (default_function_arg_round_boundary): Declare.
7156         * doc/tm.texi: Regenerate.
7157
7158 2011-07-12  Richard Guenther  <rguenther@suse.de>
7159
7160         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7161         Do not perform no-op changes.
7162
7163 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
7164
7165         * config/arm/predicates.md (neon_struct_operand): Make a normal
7166         predicate.
7167         (neon_struct_or_register_operand): New predicate.
7168         * config/arm/neon.md (movmisalign<mode>): Replace predicates
7169         with neon_struct_or_register_operand.
7170         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7171         neon_struct_operand instead of memory_operand.
7172
7173 2011-07-12  Martin Jambor  <mjambor@suse.cz>
7174
7175         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7176         * cgraph.c (cgraph_get_node_or_alias): Removed.
7177         (change_decl_assembler_name): Changed all calls to
7178         cgraph_get_node_or_alias to a call to cgraph_get_node.
7179         (cgraph_make_decl_local): Likewise.
7180         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7181         * varasm.c (default_binds_local_p_1): Likewise.
7182         (decl_binds_to_current_def_p): Likewise.
7183
7184 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
7185
7186         PR tree-optimization/49712
7187         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7188
7189 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
7190
7191         * genautomata.c (add_arc): Return void.  All callers changed.
7192         (make_automaton): Remove dead code.
7193
7194 2011-07-11  Richard Henderson  <rth@redhat.com>
7195
7196         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7197         (DW_FRAME_POINTER_REGNUM): New.
7198         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7199         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7200         (dwf_regno): New.
7201         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7202         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7203         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7204         Use it.
7205         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7206         * dwarf2out.h (dwarf_frame_regnum): New.
7207         (struct cfa_loc): Document the domain of the reg member.
7208
7209 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
7210
7211         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7212         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
7213
7214 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
7215
7216         PR debug/49676
7217         * dwarf2out.c (int_shift_loc_descriptor): New function.
7218         (int_loc_descriptor): If shorter, emit i as
7219         (i >> shift), shift, DW_OP_shl for suitable shift value.
7220         Similarly, try to optimize large negative values using
7221         DW_OP_neg of a positive value if shorter.
7222         (size_of_int_shift_loc_descriptor): New function.
7223         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7224         changes.
7225         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7226         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7227         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7228         is shorter.
7229         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7230         addend as added DW_OP_plus if it is shorter.
7231
7232 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7233
7234         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7235         (DTORS_SECTION_ASM_OP): Define.
7236
7237 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7238
7239         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7240         * config/t-dfprules: Move to ../libgcc/config.
7241         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7242         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7243         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7244         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7245         Likewise.
7246         (i[34567]86-*-cygwin*): Likewise.
7247         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
7248         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7249         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7250         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7251         D64PBIT_FUNCS, D128PBIT_FUNCS.
7252
7253 2011-07-11  Richard Guenther  <rguenther@suse.de>
7254
7255         * tree-vrp.c (simplify_conversion_using_ranges): Manually
7256         translate the source value-range through the conversion chain.
7257
7258 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
7259
7260         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7261
7262 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7263
7264         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7265         a bi-arch compiler defaulting to 31-bit. In this case:
7266         (tmake_file): Add s390/t-linux64.
7267         * doc/install.texi: Add s390-linux to the list of targets supporting
7268         --enable-targets=all.
7269
7270 2011-07-11  Arthur Loiret  <aloiret@debian.org>
7271             Matthias Klose <doko@debian.org>
7272
7273         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7274         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7275         (tm_file): Add mips/linux64.h.
7276         (tmake_file): Add mips/t-linux64.
7277         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7278         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7279         instead of hardcoded mabi=n32.
7280         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7281         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7282         convention.
7283
7284 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7285
7286         * passes.c (init_optimization_passes): Add invariant motion pass
7287         after induction variable optimization.
7288
7289 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
7290
7291         PR target/39633
7292         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7293         offsets 1..5 set cc0 in a usable way.
7294
7295 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
7296
7297         * tree.h (call_expr_arg): Remove.
7298         (call_expr_argp): Likewise.
7299
7300 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
7301
7302         * config/sparc/sparc.md (save_register_window_1): Rename to...
7303         (window_save): ...this.
7304         * config/sparc/sparc.c (emit_save_register_window): Rename to...
7305         (emit_window_save): ...this.
7306         (sparc_expand_prologue): Adjust to above renaming.
7307
7308 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7309
7310         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7311         of movabs for x32.
7312
7313 2011-07-10  Richard Henderson  <rth@redhat.com>
7314
7315         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7316         run final, instead of emitting text directly.
7317
7318 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7319
7320         * config/i386/i386.c (ix86_option_override_internal): Turn on
7321         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
7322         small PIC models for TARGET_X32.
7323
7324 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
7325
7326         PR target/49684
7327         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7328         $(LIBGCC2_CFLAGS).
7329
7330         PR bootstrap/49680
7331         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7332         stray notes and debug insns by using prev_nonnote_nondebug_insn
7333         instead of PREV_INSN.
7334
7335 2011-07-09  Richard Henderson  <rth@redhat.com>
7336
7337         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7338         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7339         * dwarf2out.c: ... here.
7340         (output_all_cfis): Remove.
7341         (dwarf2out_switch_text_section): Use output_cfis directly.
7342         (size_of_locs): Export.
7343         (output_loc_sequence, output_loc_sequence_raw): Export.
7344         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7345         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7346         output_cfa_loc_raw): Move to ...
7347         * dwarfcfi.c: ... here.
7348         * dwarf2out.h: Update decls.
7349
7350 2011-07-09  Richard Henderson  <rth@redhat.com>
7351
7352         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7353         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7354         * dwarf2cfi.c: ... here.
7355         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7356         (DWARF_ROUND, DWARF_CIE_ID): Remove.
7357         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7358         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7359         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7360
7361 2011-07-09  Richard Henderson  <rth@redhat.com>
7362
7363         * dwarf2cfi.c (cie_return_save): New.
7364         (queue_reg_save): Use compare_reg_or_pc.
7365         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7366         (dwarf2out_frame_debug_expr): Likewise.
7367         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7368         (initial_return_save): Likewise.
7369         (execute_dwarf2_frame): Save and restore initial return save from
7370         the cie to the fde.
7371         * config/mips/mips.c (mips_frame_set): Remove special case for
7372         DWARF_FRAME_RETURN_COLUMN.
7373
7374 2011-07-09  Richard Henderson  <rth@redhat.com>
7375
7376         * dwarf2cfi.c (lookup_cfa): Remove.
7377         (execute_dwarf2_frame): Assert queues are empty on entry.
7378         Setup initial cfa directly, not via lookup_cfa.
7379         Don't clear args_size state here.
7380
7381 2011-07-09  Richard Henderson  <rth@redhat.com>
7382
7383         * dwarf2cfi.c (add_cfi_vec): New.
7384         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
7385         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
7386         (execute_dwarf2_frame): Set add_cfi_vec.
7387
7388 2011-07-09  Richard Henderson  <rth@redhat.com>
7389
7390         * defaults.h (ASM_COMMENT_START): Move here...
7391         * dwarf2asm.c: ... from here.
7392         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7393         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7394         * varasm.c: Likewise.
7395
7396 2011-07-09  Richard Henderson  <rth@redhat.com>
7397
7398         PR debug/49686
7399         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7400         (create_cfi_notes): ... do it here instead.
7401
7402 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
7403
7404         PR debug/49676
7405         * dwarf2out.c (size_of_int_loc_descriptor): New function.
7406         (address_of_int_loc_descriptor): Use it.
7407         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7408
7409 2011-07-09  Richard Henderson  <rth@redhat.com>
7410
7411         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7412         (prologue, epilogue): New.
7413         (return, *rts): New.
7414         (blockage, setd, seti): New.
7415         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7416         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7417         (pdp11_saved_regno): New.
7418         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7419         generate rtl instead of text.
7420         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7421         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
7422         * config/pdp11/pdp11-protos.h: Update.
7423
7424 2011-07-09  Richard Henderson  <rth@redhat.com>
7425
7426         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7427         try to insert an rtl prologue here.
7428         (rs6000_output_function_epilogue): Similarly.
7429         * config/rs6000/rs6000.md (prologue): Emit a barrier to
7430         satisfy !TARGET_SCHED_PROLOG.
7431         (epilogue, sibcall_epilogue): Likewise.
7432
7433 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
7434
7435         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7436         (FP_REG_P): Delete.
7437         (IN_OR_GLOBAL_P): Likewise.
7438
7439 2011-07-08  Jason Merrill  <jason@redhat.com>
7440
7441         PR c++/45437
7442         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7443         compound assignment.
7444
7445         * cgraph.c (cgraph_add_to_same_comdat_group): New.
7446         * cgraph.h: Declare it.
7447         * ipa.c (function_and_variable_visibility): Make sure thunks
7448         have the right visibility.
7449
7450 2011-07-08  Richard Henderson  <rth@redhat.com>
7451
7452         PR bootstrap/49680
7453         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7454         any tablejump vector.
7455
7456         PR bootstrap/49680
7457         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7458         end of the prologue.
7459
7460 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
7461
7462         PR target/49621
7463         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7464         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7465         * config/rs6000/vector.md (vector_select_<mode>,
7466         vector_select_<mode>_uns): Change second operand of NE to
7467         CONST0_RTX (<MODE>mode) instead of const0_rtx.
7468         * config/rs6000/altivec.md (*altivec_vsel<mode>,
7469         *altivec_vsel<mode>_uns): Expect second operand of NE to be
7470         zero_constant of the corresponding vector mode.
7471         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7472         Likewise.
7473
7474 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7475
7476         * graphite-dependences.c (build_alias_set_powerset): Remove
7477         continue from loop, add one more assert.
7478
7479 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7480
7481         PR target/46779
7482         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7483         In particular, allow 8-bit values in r28 and r29.
7484         (avr_hard_regno_scratch_ok): Disallow any register that might be
7485         part of the frame pointer.
7486         (avr_hard_regno_rename_ok): Same.
7487         (avr_legitimate_address_p): Don't allow SUBREGs.
7488
7489 2011-07-08  Julian Brown  <julian@codesourcery.com>
7490
7491         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7492         big-endian mode.
7493         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7494         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7495         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7496         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7497         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7498         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7499         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7500         registers in big-endian mode.
7501
7502 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7503
7504         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7505         in terms of another.
7506         (write_attr_value): Write a cast if necessary.
7507
7508         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7509         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7510         (REG_WORDS_BIG_ENDIAN): Document.
7511         * doc/tm.texi: Regenerate.
7512         * reload.c (operands_match_p): Take it into account.
7513         (reload_adjust_reg_for_mode): Likewise.
7514         * rtlanal.c (subreg_get_info): Likewise.
7515
7516 2011-07-08  Richard Guenther  <rguenther@suse.de>
7517
7518         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7519         folding.
7520
7521 2011-07-08  Kai Tietz  <ktietz@redhat.com>
7522
7523         * fold-const.c (fold_truth_andor): Factored out truth_andor
7524         label from fold_binary as function.
7525         (fold_binary_loc): Replace truth_andor lable
7526         by function fold_truth_andor.
7527
7528 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
7529
7530         PR middle-end/49519
7531         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7532         check if address is stored in register. If so - give up.
7533         (check_sibcall_argument_overlap_1): Do not perform check of
7534         overlapping when it is call to address.
7535
7536 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
7537
7538         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7539         of magic '31'.
7540
7541 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
7542
7543         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7544         GET_MODE_BITSIZE where appropriate.
7545         (widen_leading, expand_parity, expand_ctz, expand_ffs,
7546         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7547         expand_float, expand_fix): Likewise.
7548         * expr.c (convert_move, convert_modes, expand_expr_real_2,
7549         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7550         * stor-layout.c (get_mode_bounds): Likewise.
7551         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7552         Likewise.
7553         * convert.c (convert_to_integer): Likewise.
7554         * expmed.c (expand_shift_1): Likewise.
7555
7556         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7557         a bitsize.
7558
7559         * optabs.c (expand_binop): Tighten conditions for doubleword
7560         expansions.
7561         (widen_bswap): Assert that mode bitsize and precision are the same.
7562         * stor-layout.c (get_best_mode): Skip modes that have lower
7563         precision than bitsize.
7564         * recog.c (simplify_while_replacing): Assert that bitsize and
7565         precision are the same.
7566
7567 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7568
7569         * Makefile.in (LIBGCOV): Remove.
7570         (libgcc.mvars): Remove LIBGCOV.
7571         * libgov.c: Move to ../libgcc.
7572
7573 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7574
7575         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7576
7577 2011-07-08  Martin Jambor  <mjambor@suse.cz>
7578
7579         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7580         is too big for total scalarization.
7581
7582 2011-07-07  Richard Henderson  <rth@redhat.com>
7583
7584         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7585         (DBX_DEBUGGING_INFO): Undef.
7586
7587 2011-07-07  Richard Henderson  <rth@redhat.com>
7588
7589         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
7590         Handle some opcodes specially for debugging.
7591         * print-rtl.c: Include dwarf2out.h
7592         (print_rtx): Handle NOTE_INSN_CFI.
7593         * Makefile.in (print-rtl.o): Update.
7594
7595 2011-07-07  Richard Henderson  <rth@redhat.com>
7596
7597         * tree-pass.h (pass_dwarf2_frame): Declare.
7598         * passes.c (init_optimization_passes): Add it.
7599         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7600         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7601         make static, do not call add_cfis_to_fde.
7602         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7603         dwarf2out_frame_init): Merge into...
7604         (execute_dwarf2_frame): ... here.  New function.
7605         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
7606         saved_do_cfi_asm to a tri-state variable.
7607         (gate_dwarf2_frame, pass_dwarf2_frame): New.
7608         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7609         if it has yet to be done.  Don't call dwarf2cfi_function_init.
7610         * dwarf2out.h, debug.h: Update decls.
7611         * final.c (final_start_function): Don't call
7612         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7613         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7614         * toplev.c (lang_dependent_init): Likewise.
7615
7616 2011-07-07  Richard Henderson  <rth@redhat.com>
7617
7618         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7619         FDE_TABLE_INCREMENT): Replace with...
7620         (fde_vec): ... this, a new vector.
7621         (current_fde): Remove.  Replace all users with cfun->fde.
7622         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7623         (size_of_aranges, dwarf2out_finish): Likewise.
7624         (dwarf2out_alloc_current_fde): Break out from ...
7625         (dwarf2out_begin_prologue): ... here.
7626         (dwarf2out_frame_init): Remove.
7627         * dwarf2cfi.c: Update all users of current_fde.
7628         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7629         * dwarf2out.h: Update decls.
7630         (dw_fde_node): Add fde_index member.
7631         * function.h (struct function): Add fde member.
7632
7633 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7634             Richard Henderson  <rth@redhat.com>
7635
7636         * dwarf2cfi.c (add_cfi): Remove.
7637         (dwarf2out_cfi_label): Remove force argument.  Only generate the
7638         label name.
7639         (add_fde_cfi): Simplify the different code paths.
7640         (add_cie_cfi): New.
7641         (old_cfa, old_cfa_remember): New.
7642         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7643         (last_reg_save_label): Remove.
7644         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7645         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7646         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7647         dwarf2out_frame_debug_cfa_expression,
7648         dwarf2out_frame_debug_cfa_restore,
7649         dwarf2out_frame_debug_cfa_window_save,
7650         dwarf2out_frame_debug_expr): Remove label parameter.
7651         (cfi_label_required_p, add_cfis_to_fde): New.
7652         (dwarf2out_frame_debug_after_prologue): New.
7653         (dwarf2cfi_frame_init): Initialize old_cfa.
7654         (dwarf2out_frame_debug_restore_state): Likewise.
7655         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7656         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7657         * final.c (final_start_function): Call
7658         dwarf2out_frame_debug_after_prologue.
7659
7660 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7661             Richard Henderson  <rth@redhat.com>
7662
7663         * dwarf2cfi.c (cfi_insn): New.
7664         (dwarf2out_cfi_label): Don't emit cfi label here.
7665         (add_fde_cfi): Create a NOTE_INSN_CFI.
7666         (dwarf2out_frame_debug): Setup cfi_insn.
7667         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7668         (dwarf2out_cfi_begin_epilogue): Make static.
7669         (dwarf2out_frame_debug_restore_state): Make static.
7670         * dwarf2out.c (output_cfi_directive): Make static.
7671         (dwarf2out_emit_cfi): New.
7672         * dwarf2out.h: Update.
7673         * final.c (final): Remove CFI notes.
7674         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7675         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7676         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7677         * insn-notes.def (NOTE_INSN_CFI): New.
7678         (NOTE_INSN_CFI_LABEL): New.
7679         * rtl.h (union rtunion_def): Add rt_cfi member.
7680         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7681
7682 2011-07-07  Richard Henderson  <rth@redhat.com>
7683
7684         * dwarf2cfi.c: New file.
7685         * Makefile.in (OBJS): Add it.
7686         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7687         * gengtype.c (open_base_files): Include dwarf2out.h.
7688         * coretypes.h (enum var_init_status): Move from ...
7689         * rtl.h: ... here.
7690         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7691         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7692         expand_builtin_dwarf_sp_column, init_return_column_size,
7693         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7694         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7695         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7696         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7697         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7698         compute_barrier_args_size, dwarf2out_args_size,
7699         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7700         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7701         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7702         queue_reg_save, dwarf2out_flush_queued_reg_saves,
7703         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7704         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7705         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7706         dwarf2out_frame_debug_cfa_expression,
7707         dwarf2out_frame_debug_cfa_restore,
7708         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7709         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7710         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7711         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7712         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7713         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7714         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7715         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7716         dw_loc_descr_node): Move to dwarf2out.h.
7717         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7718         mem_loc_descriptor): Export.
7719         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
7720         (dwarf2out_frame_init): Extract CIE generation code to
7721         dwarf2cfi_frame_init.
7722
7723 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
7724
7725         PR target/49660
7726         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7727         MASK_V8PLUS, remove commented out flag and reorder.
7728
7729 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7730
7731         PR c/49644
7732         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7733         one non-complex and one complex argument, call c_save_expr on both
7734         operands.
7735
7736 2011-07-07  Martin Jambor  <mjambor@suse.cz>
7737
7738         PR middle-end/49495
7739         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7740         (verify_cgraph_node): Some functinality moved to
7741         verify_edge_corresponds_to_fndecl, call it.
7742
7743 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7744
7745         * config.gcc (*local*): Remove.
7746         * doc/install-old.texi: Don't mention local configurations.
7747
7748 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7749
7750         PR debug/49522
7751         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7752         referencing debug insns that have been reset.
7753         (dead_debug_insert_before): Don't assert reg is non-NULL,
7754         instead return immediately if it is NULL.
7755
7756 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7757
7758         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7759
7760 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7761
7762         * hw-doloop.c: New file.
7763         * hw-doloop.h: New file.
7764         * Makefile.in (OBJS): Add hw-doloop.o.
7765         (hw-doloop.o): New rule.
7766         ($(obj_out_file)): Add hw-doloop.h dependency.
7767         * config/bfin/bfin.c: Include "hw-doloop.h".
7768         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7769         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7770         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
7771         type changed to hwloop_info.  Return bool, true if the loop was
7772         successfully optimized.  Remove code that was moved to
7773         hw-doloop.c, and adjust other parts.
7774         (hwloop_fail): New static function, containing parts that used
7775         to be in bfin_optimize_loop.
7776         (bfin_discover_loop, bfin_discover_loops, free_loops,
7777         bfin_reorder_loops): Remove.
7778         (hwloop_pattern_reg): New static function.
7779         (bfin_doloop_hooks): New variable.
7780         (bfin_reorg_loops): Remove most code, call reorg_loops.
7781         * config/bfin/bfin.md (doloop_end splitter): Also enable if
7782         loop counter is a memory_operand.
7783
7784 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7785
7786         * config.gcc: Support --with-multilib-list for x86 Linux targets.
7787
7788         * configure.ac: Mention x86-64 for --with-multilib-list.
7789         * configure: Regenerated.
7790
7791         * config/i386/gnu-user64.h (SPEC_64): Support x32.
7792         (SPEC_32): Likewise.
7793         (ASM_SPEC): Likewise.
7794         (LINK_SPEC): Likewise.
7795         (TARGET_THREAD_SSP_OFFSET): Likewise.
7796         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7797         (SPEC_X32): New.
7798
7799         * config/i386/i386.h (TARGET_X32): New.
7800         (TARGET_LP64): New.
7801         (LONG_TYPE_SIZE): Likewise.
7802         (POINTER_SIZE): Likewise.
7803         (POINTERS_EXTEND_UNSIGNED): Likewise.
7804         (OPT_ARCH64): Support x32.
7805         (OPT_ARCH32): Likewise.
7806
7807         * config/i386/i386.opt (mx32): New.
7808
7809         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7810         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7811         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7812         (GLIBC_DYNAMIC_LINKERX32): Likewise.
7813
7814         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7815         (BIONIC_DYNAMIC_LINKERX32): Likewise.
7816         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7817
7818         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7819
7820         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7821
7822         * doc/invoke.texi: Document -mx32.
7823
7824 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7825
7826         * doc/invoke.texi (mwords-little-endian): Deprecate.
7827         * config/arm/arm.opt (mwords-little-endian): Likewise.
7828         * config/arm/arm.c (arm_option_override): Warn about the deprecation
7829         of -mwords-little-endian.
7830
7831 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
7832
7833         * reload1.c (choose_reload_regs): Use mode sizes to check whether
7834         an old reload register completely defines the required value.
7835
7836 2011-07-07  Richard Guenther  <rguenther@suse.de>
7837
7838         * fold-const.c (fold_unary_loc): Do not strip sign-changes
7839         for NEGATE_EXPR.
7840
7841 2011-07-07  Richard Guenther  <rguenther@suse.de>
7842
7843         * tree-vrp.c (simplify_conversion_using_ranges): New function.
7844         (simplify_stmt_using_ranges): Call it.
7845
7846 2011-07-07  Kai Tietz  <ktietz@redhat.com>
7847
7848         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7849         (lookup_logical_inverted_value): Likewise.
7850         (simplify_bitwise_binary_1): Likewise.
7851         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7852
7853 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7854
7855         * gcc.c (%[Spec]): Don't document.
7856         (struct spec_list): Update comment.
7857         (do_spec_1): Don't handle %[Spec].
7858         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7859
7860 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
7861
7862         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7863         default based on TARGET_ASM_NAMED_SECTION.
7864         * common/common-target.def (have_named_sections): Default to true.
7865         * common/config/default-common.c: Don't include tm.h.
7866         * common/config/picochip/picochip-common.c
7867         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7868         * common/config/m32c/m32c-common.c: Remove.
7869         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7870         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7871         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7872         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7873         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7874         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7875         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7876
7877 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
7878
7879         PR middle-end/49640
7880         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7881         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7882
7883 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7884
7885         PR libmudflap/49550
7886         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7887
7888 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7889
7890         PR target/39150
7891         * configure.ac (gcc_cv_as_hidden): Also accept
7892         x86_64-*-solaris2.1[0-9]*.
7893         (gcc_cv_as_cfi_directive): Likewise.
7894         (gcc_cv_as_comdat_group_group): Likewise.
7895         (set_have_as_tls): Likewise.
7896         * configure: Regenerate.
7897         * config.gcc (i[34567]86-*-solaris2*): Also handle
7898         x86_64-*-solaris2.1[0-9]*.
7899         * config.host (i[34567]86-*-solaris2*): Likewise.
7900         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7901         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7902         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7903         (TARGET_LD_EMULATION): Use it.
7904         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7905         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7906         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7907         (ASM_CPU64_DEFAULT_SPEC): Define.
7908         (ASM_CPU_SPEC): Use %(asm_cpu_default).
7909         (ASM_SPEC): Redefine.
7910         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7911         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7912         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7913         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7914         configuration.
7915         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7916
7917 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7918
7919         * config/sol2.h (ASM_SPEC): Split into ...
7920         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7921         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7922         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7923         (ASM_SPEC): Use ASM_SPEC_BASE.
7924         * config/sparc/sol2.h (ASM_SPEC): Redefine.
7925
7926 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
7927
7928         * config/avr/avr.md (*reload_insi): Change predicate #1 to
7929         const_int_operand.  Ditto for peep2 producing this insn.
7930         Add argument to output_reload_insisf call.
7931         (*movsi,*movsf): Add argument to output_movsisf call.
7932         (*reload_insf): New insn and new peep2 to produce it.
7933         * config/avr/avr-protos.h (output_movsisf): Change prototype.
7934         (output_reload_insisf): Change prototype.
7935         * config/avr/avr.c (avr_asm_len): New function.
7936         (output_reload_insisf): Rewrite.
7937         (output_movsisf): Change prototype.  output_reload_insisf for
7938         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
7939         (adjust_insn_length): Add argument to output_movsisf and
7940         output_reload_insisf call.
7941
7942 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7943
7944         * emit-rtl.c (paradoxical_subreg_p): New function.
7945         * rtl.h (paradoxical_subreg_p): Declare.
7946         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7947         apply_distributive_law, simplify_comparison, simplify_set): Use it.
7948         * cse.c (record_jump_cond, cse_insn): Likewise.
7949         * expr.c (force_operand): Likewise.
7950         * rtlanal.c (num_sign_bit_copies1): Likewise.
7951         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7952         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7953         (push_reload): Use precision to check for paradoxical subregs.
7954         * expmed.c (extract_bit_field_1): Likewise.
7955
7956         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7957         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7958         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7959         simplify_set, simplify_logical, expand_compound_operation,
7960         make_extraction, force_to_mode, if_then_else_cond, extended_count,
7961         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7962         record_value_for_reg): Likewise.
7963         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7964         * simplify-rtx. c (simplify_unary_operation_1,
7965         simplify_binary_operation_1, simplify_const_relational_operation):
7966         Likewise.
7967
7968         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7969         instead of GET_MODE_BITSIZE where appropriate.
7970         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7971         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7972         init_num_sign_bit_copies_in_rep): Likewise.
7973         * cse.c (fold_rtx, cse_insn): Likewise.
7974         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7975         * simplify-rtx.c (simplify_unary_operation_1,
7976         simplify_const_unary_operation, simplify_binary_operation_1,
7977         simplify_const_binary_operation, simplify_ternary_operation,
7978         simplify_const_relational_operation, simplify_subreg): Likewise.
7979         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7980         simplify_if_then_else, simplify_set, expand_compound_operation,
7981         expand_field_assignment, make_extraction, if_then_else_cond,
7982         make_compound_operation, force_to_mode, make_field_assignment,
7983         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7984         extended_count, try_widen_shift_mode, simplify_shift_const_1,
7985         simplify_comparison, record_promoted_value, simplify_compare_const,
7986         record_dead_and_set_regs_1): Likewise.
7987
7988         Revert:
7989         * simplify-rtx.c (simplify_const_binary_operation): Use the
7990         shift_truncation_mask hook instead of performing modulo by width.
7991         Compare against mode precision, not bitsize.
7992         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7993         Use shift_truncation_mask instead of constructing the value manually.
7994
7995 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7996
7997         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7998         declaration.
7999         (rs6000_save_toc_in_prologue_p): Ditto.
8000
8001         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8002         up the static chain (r11) during indirect function calls.
8003         (-msave-toc-indirect): New undocumented debug switch.
8004
8005         * config/rs6000/rs6000.c (struct machine_function): Add
8006         save_toc_in_prologue field to note whether the prologue needs to
8007         save the TOC value in the reserved stack location.
8008         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
8009         to save the TOC in the prologue, do so.
8010         (rs6000_trampoline_init): Don't allow creating AIX style
8011         trampolines if -mno-r11 is in effect.
8012         (rs6000_call_indirect_aix): New function to create AIX style
8013         indirect calls, adding support for -mno-r11 to suppress loading
8014         the static chain, and saving the TOC in the prologue instead of
8015         the call body.
8016         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8017         TOC in the prologue.
8018
8019         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8020         register numbers.
8021         (TOC_REGNUM): Ditto.
8022         (STATIC_CHAIN_REGNUM): Ditto.
8023         (ARG_POINTER_REGNUM): Ditto.
8024         (SFP_REGNO): Delete, unused.
8025         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8026         function descriptor offsets.
8027         (TOC_SAVE_OFFSET_64BIT): Ditto.
8028         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8029         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8030         (AIX_FUNC_DESC_SC_32BIT): Ditto.
8031         (AIX_FUNC_DESC_SC_64BIT): Ditto.
8032         (ptrload): New mode attribute for the appropriate load of a pointer.
8033         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8034         (call_indirect_aix64): Ditto.
8035         (call_value_indirect_aix32): Ditto.
8036         (call_value_indirect_aix64): Ditto.
8037         (call_indirect_nonlocal_aix32_internal): Ditto.
8038         (call_indirect_nonlocal_aix32): Ditto.
8039         (call_indirect_nonlocal_aix64_internal): Ditto.
8040         (call_indirect_nonlocal_aix64): Ditto.
8041         (call): Rewrite AIX indirect function calls.  Add support for
8042         eliminating the static chain, and for moving the save of the TOC
8043         to the function prologue.
8044         (call_value): Ditto.
8045         (call_indirect_aix<ptrsize>): Ditto.
8046         (call_indirect_aix<ptrsize>_internal): Ditto.
8047         (call_indirect_aix<ptrsize>_internal2): Ditto.
8048         (call_indirect_aix<ptrsize>_nor11): Ditto.
8049         (call_value_indirect_aix<ptrsize>): Ditto.
8050         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8051         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8052         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8053         (call_nonlocal_aix32): Relocate in the rs6000.md file.
8054         (call_nonlocal_aix64): Ditto.
8055
8056         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8057         -mno-r11 documentation.
8058
8059 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8060
8061         PR other/49658
8062         * doc/extend.texi (Compound Literals): Fix typo.
8063
8064 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
8065
8066         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8067
8068 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
8069
8070         * configure.ac (plugin-version.h): Generate
8071         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8072         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8073         macros.
8074
8075         * configure: Regenerate.
8076
8077         * doc/plugins.texi (Building GCC plugins): Mention
8078         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8079
8080 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8081
8082         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8083         * combine.c (make_extraction, gen_lowpart_or_truncate,
8084         apply_distributive_law, simplify_comparison,
8085         reg_truncated_to_mode, record_truncated_value): Use it.
8086         * cse.c (notreg_cost): Likewise.
8087         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8088         * expr.c (convert_move, convert_modes): Likewise.
8089         * optabs.c (expand_binop, expand_unop): Likewise.
8090         * postreload.c (move2add_last_label): Likewise.
8091         * regmove.c (optimize_reg_copy_3): Likewise.
8092         * rtlhooks.c (gen_lowpart_general): Likewise.
8093         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8094
8095 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
8096
8097         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8098
8099 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8100
8101         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8102         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8103         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8104         (simplify_const_unary_operation, simplify_binary_operation_1,
8105         simplify_const_binary_operation, simplify_const_relational_operation):
8106         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
8107         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8108         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8109         simplify_shift_const_1, simplify_comparison): Likewise.
8110         * expr.c (convert_modes): Likewise.
8111         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8112         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8113         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8114
8115         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8116
8117 2011-07-06  Richard Guenther  <rguenther@suse.de>
8118
8119         PR tree-optimization/49645
8120         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8121         register variables.
8122         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8123         in type qualification here ...
8124         (copy_reference_ops_from_ref): ... not here.
8125         (vn_reference_lookup_3): ... or here.
8126         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8127         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8128
8129 2011-07-06  Ian Lance Taylor  <iant@google.com>
8130
8131         * doc/install.texi (Configuration): It's
8132         --enable-gnu-indirect-function, not --enable-indirect-function.
8133
8134 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8135
8136         * simplify-rtx.c (simplify_const_binary_operation): Use the
8137         shift_truncation_mask hook instead of performing modulo by width.
8138         Compare against mode precision, not bitsize.
8139         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8140         Use shift_truncation_mask instead of constructing the value manually.
8141
8142 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8143
8144         PR middle-end/47383
8145         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8146         address computation and convert to address_mode if needed.
8147
8148 2011-07-06  Richard Guenther  <rguenther@suse.de>
8149
8150         * tree.c (build_common_tree_nodes_2): Merge with
8151         build_common_tree_nodes.
8152         * tree.h (build_common_tree_nodes): Adjust prototype.
8153         (build_common_tree_nodes_2): Remove.
8154         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8155         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8156
8157 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
8158
8159         PR tree-optimization/49618
8160         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8161         t recurse on the decl.
8162         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8163         return true if expr isn't known to be defined in current
8164         TU or some other LTO partition.
8165
8166 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8167
8168         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8169         override CASE_VALUES_THRESHOLD.
8170
8171         * stmt.c (toplevel): Include params.h.
8172         (case_values_threshold): Use the --param case-values-threshold
8173         value if non-zero, otherwise use machine dependent value.
8174         (expand_case): Use case_values_threshold.
8175
8176         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8177
8178         * doc/invoke.texi (--param case-values-threshold): Document.
8179
8180 2011-07-05  Richard Henderson  <rth@redhat.com>
8181
8182         * dwarf2out.c (dwarf2out_cfi_label): Make static.
8183         (dwarf2out_flush_queued_reg_saves): Make static.
8184         (dwarf2out_reg_save): Remove.
8185         (dwarf2out_return_save): Remove.
8186         (dwarf2out_return_reg): Remove.
8187         (dwarf2out_reg_save_reg): Remove.
8188         (dwarf2out_def_cfa): Merge into ...
8189         (dwarf2out_frame_init): ... here.
8190         * dwarf2out.h, tree.h: Remove declarations as necessary.
8191
8192 2011-07-05  Richard Henderson  <rth@redhat.com>
8193
8194         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8195         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8196         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8197         the alloc insn.
8198
8199         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8200         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8201         (process_epilogue): Don't call dwarf2out_def_cfa.
8202
8203         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8204         indicate the return address save.
8205         (process_cfa_register): Likewise.
8206
8207         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8208         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8209
8210         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8211         for ar.pfs save at alloc insn.
8212
8213 2011-07-05  Richard Henderson  <rth@redhat.com>
8214
8215         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8216         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8217         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8218         stack pointer save.
8219         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8220         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
8221         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8222         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8223
8224 2011-07-05  Richard Henderson  <rth@redhat.com>
8225
8226         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
8227         VUNSPEC_* constants here instead of via define_constants.
8228         (VUNSPEC_PEM): New constant.
8229         (procedure_entry_mask): New insn.
8230         (prologue): New expander.
8231         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8232         (vax_expand_prologue): Rename from vax_output_function_prologue;
8233         emit rtl instead of text.
8234         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8235         (print_operand): Add 'x' prefix.
8236
8237 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8238
8239         PR middle-end/47715
8240         * calls.c (precompute_register_parameters): Promote the function
8241         argument before checking non-legitimate constant.
8242
8243 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8244
8245         PR tree-optimization/47654
8246         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8247         (lst_do_strip_mine_loop): Return an int.
8248         (lst_do_strip_mine): Same.
8249         (scop_do_strip_mine): Same.
8250         (scop_do_block): Loop blocking should strip-mine at least two loops.
8251         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8252         (scop_do_interchange): Same.
8253         * graphite-poly.h (scop_do_interchange): Update declaration.
8254         (scop_do_strip_mine): Same.
8255
8256 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8257
8258         * graphite-clast-to-gimple.c (precision_for_value): Removed.
8259         (precision_for_interval): Removed.
8260         (gcc_type_for_interval): Use mpz_sizeinbase.
8261
8262 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8263
8264         * graphite-ppl.h (value_max): Correct computation of max.
8265
8266 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
8267
8268         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8269
8270 2011-07-05  Richard Guenther  <rguenther@suse.de>
8271
8272         * c-decl.c (c_init_decl_processing): Defer building common
8273         tree nodes to c_common_nodes_and_builtins.
8274
8275 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
8276
8277         PR tree-optimization/49580
8278         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8279         the loop's number of iterations.
8280         * tree-parloops.c (transform_to_exit_first_loop): Add the
8281         handling of the loop's number of iterations before the call
8282         to gimple_duplicate_sese_tail.
8283         Insert the stmt caclculating the new rhs of the loop's
8284         condition stmt to the preheader instead of iters_bb.
8285
8286 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8287
8288         PR rtl-optimization/47449
8289         * fwprop.c (forward_propagate_subreg): Don't propagate hard
8290         register nor zero/sign extended hard register.
8291
8292 2011-07-05  Richard Guenther  <rguenther@suse.de>
8293
8294         PR tree-optimization/49518
8295         PR tree-optimization/49628
8296         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8297         irrelevant and invariant data-references.
8298         (vect_analyze_data_ref_access): For invariant loads clear the
8299         group association.
8300
8301 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
8302
8303         PR rtl-optimization/49619
8304         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8305         pass VOIDmode as op0_mode to recursive call, and return temp even
8306         when different from tor, just if it is not IOR of the original
8307         PLUS arguments.
8308
8309         PR rtl-optimization/49472
8310         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8311         negating MULT, negate the second operand instead of first.
8312         (simplify_binary_operation_1) <case MULT>: If one operand is
8313         a NEG and the other is MULT, don't attempt to optimize by negation
8314         of the MULT operand if it only moves the NEG operation around.
8315
8316         PR debug/49602
8317         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8318         get_current_def return value if it can't be trusted to be
8319         the current value of the variable in the current bb.
8320
8321 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
8322
8323         PR target/49600
8324         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8325         general register to memory for !TARGET_INTER_UNIT_MOVES.
8326
8327 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8328
8329         PR target/44643
8330         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8331         instead of TREE_READONLY.
8332
8333 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8334
8335         * doc/extend.texi (AVR Built-in Functions): Update documentation
8336         of __builtin_avr_fmul*.
8337         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8338         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8339         * config/avr/avr.md (fmul): Rename to fmul_insn.
8340         (fmuls): Rename to fmuls_insn.
8341         (fmulsu): Rename to fmulsu_insn.
8342         (fmul,fmuls,fmulsu): New expander.
8343         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8344         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8345         * config/avr/libgcc.S (__fmul): New function.
8346         (__fmuls): New function.
8347         (__fmulsu,__fmulsu_exit): New function.
8348
8349 2011-07-04  Richard Guenther  <rguenther@suse.de>
8350
8351         PR tree-optimization/49615
8352         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8353         basic-block index check.
8354
8355 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
8356
8357         * longlong.h (count_leading_zeros, count_trailing_zeros,
8358         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8359         resp. 64.
8360
8361 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
8362
8363         PR tree-optimization/49610
8364         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8365         a basic block.
8366
8367 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8368             Olivier Hainque  <hainque@adacore.com>
8369             Nicolas Setton  <setton@adacore.com>
8370
8371         * tree.h (TYPE_ARTIFICIAL): New flag.
8372         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8373         the DIE of the type if it is artificial.
8374         (gen_array_type_die): Likewise.
8375         (gen_enumeration_type_die): Likewise.
8376         (gen_struct_or_union_type_die): Likewise.
8377         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8378         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8379
8380 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8381
8382         * tree-object-size.c (pass_through_call): Handle
8383         BUILT_IN_ASSUME_ALIGNED.
8384
8385 2011-07-01  Martin Jambor  <mjambor@suse.cz>
8386
8387         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8388
8389 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
8390
8391         PR middle-end/48016
8392         * explow.c (update_nonlocal_goto_save_area): Use proper mode
8393         for stack save area.
8394         * function.c (expand_function_start): Likewise.
8395
8396 2011-07-01  Richard Guenther  <rguenther@suse.de>
8397
8398         PR middle-end/49596
8399         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8400         may have unknown refs.
8401
8402 2011-07-01  Kai Tietz  <ktietz@redhat.com>
8403
8404         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8405
8406 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8407
8408         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8409         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8410         (Specific, mips-sgi-irix6): Likewise.
8411
8412 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8413
8414         PR libmudflap/49549
8415         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8416
8417 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
8418
8419         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8420         [idx]= and [idx1 ... idx2]= before initializers if needed for
8421         array initializers.
8422
8423 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
8424
8425         * config.gcc (score-*-elf): Remove score7.o.
8426         * config/score/t-score-elf: Likewise.
8427         * config/score/score.c: Merge score7 to score.c and
8428         remove forwarding functions.
8429         * config/score/score7.c: Deleted.
8430         * config/score/score7.h: Deleted.
8431
8432 2011-07-01  Richard Guenther  <rguenther@suse.de>
8433
8434         PR tree-optimization/49603
8435         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8436
8437 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8438
8439         * tree-sra.c (struct access): Rename total_scalarization to
8440         grp_total_scalarization
8441         (completely_scalarize_var): New function.
8442         (sort_and_splice_var_accesses): Set total_scalarization in the
8443         representative access.
8444         (analyze_access_subtree): Propagate total scalarization accross the
8445         tree, no holes in totally scalarized trees, simplify coverage
8446         computation.
8447         (analyze_all_variable_accesses): Call completely_scalarize_var instead
8448         of completely_scalarize_record.
8449
8450 2011-06-30  Richard Henderson  <rth@redhat.com>
8451
8452         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8453         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8454         * config/i386/i386.c: Don't include dwarf2out.h.
8455         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8456         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8457         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
8458         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8459         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8460
8461 2011-06-30  Richard Henderson  <rth@redhat.com>
8462
8463         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8464         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8465         * final.c (final_scan_insn): Look for it, and invoke
8466         dwarf2out_frame_debug before the insn if found.
8467
8468 2011-06-30  Richard Henderson  <rth@redhat.com>
8469
8470         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8471         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8472
8473 2011-06-30  Richard Henderson  <rth@redhat.com>
8474
8475         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8476         Define a vector of this type.
8477         (regs_saved_in_regs): Use a VEC.
8478         (num_regs_saved_in_regs): Remove.
8479         (compare_reg_or_pc): New.
8480         (record_reg_saved_in_reg): Split out from...
8481         (dwarf2out_flush_queued_reg_saves): ... here.
8482         (clobbers_queued_reg_save): Update for VEC.
8483         (reg_saved_in): Likewise.
8484         (dwarf2out_frame_debug_init): Likewise.
8485         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8486         (dwarf2out_frame_debug_cfa_register): Likewise.
8487
8488 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8489
8490         PR tree-optimization/49572
8491         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8492         type of the RHS instead of that of the LHS for the expression type.
8493
8494 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8495
8496         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8497         unconditionally.
8498
8499 2011-06-30  Richard Guenther  <rguenther@suse.de>
8500
8501         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8502         * tree-ssa-structalias.c (create_variable_info_for): Do not
8503         add initial constraints for non-var-decls.  Properly handle
8504         globals in other ltrans partitions.
8505         (intra_create_variable_infos): Manually create constraints for
8506         the fake no-alias parameter.
8507         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8508         and assert there are no clones.
8509
8510 2011-06-30  Richard Guenther  <rguenther@suse.de>
8511
8512         PR tree-optimization/46787
8513         * tree-data-ref.c (dr_address_invariant_p): Remove.
8514         (find_data_references_in_stmt): Invariant accesses are ok now.
8515         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8516         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8517         invariant loads.
8518
8519 2011-06-30  Martin Jambor  <mjambor@suse.cz>
8520
8521         PR tree-optimization/49094
8522         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8523         (build_accesses_from_assign): Use it.
8524
8525 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8526
8527         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8528         handling of BUILT_IN_ASSUME_ALIGNED.
8529
8530         PR debug/49364
8531         * dwarf2out.c (output_abbrev_section): Don't return early
8532         if abbrev_die_table_in_use is 1.
8533         (dwarf2out_finish): Instead don't call output_abbrev_section
8534         nor emit abbrev_section_label in that case.
8535
8536 2011-06-30  Nick Clifton  <nickc@redhat.com>
8537
8538         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8539         for the V850E.
8540
8541 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
8542
8543         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8544         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8545
8546 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
8547
8548         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8549         both pattern and original statements if necessary.
8550         (vect_transform_loop): Likewise.
8551         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8552         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8553         Mark the pattern statement only if the original statement doesn't
8554         have its own uses.
8555         (process_use): Call vect_mark_relevant with additional parameter.
8556         (vect_mark_stmts_to_be_vectorized): Likewise.
8557         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8558         (vect_analyze_stmt): Handle both pattern and original statements
8559         if necessary.
8560         (vect_transform_stmt): Don't store vectorized pattern statement
8561         in the original statement.
8562         (vect_is_simple_use_1): Use related pattern statement only if the
8563         original statement is irrelevant.
8564         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8565
8566 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
8567
8568         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8569         option.
8570         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8571         entry.
8572         (TARGET_AVX128_OPTIMAL): New definition.
8573         * config/i386/i386.c (initial_ix86_tune_features): Initialize
8574         X86_TUNE_AVX128_OPTIMAL entry.
8575         (ix86_option_override_internal): Enable the generation
8576         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8577         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8578         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8579
8580 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8581
8582         PR tree-optimization/49539
8583         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8584         names by means of stmt_references_abnormal_ssa_name.
8585         (associate_plusminus): Call can_propagate_from before propagating
8586         from definition statements.
8587         (ssa_forward_propagate_and_combine): Remove superfluous newline.
8588
8589 2011-06-29  Richard Guenther  <rguenther@suse.de>
8590
8591         * doc/invoke.texi: Document -scev dump modifier.
8592         * tree-pass.h (TDF_SCEV): New dump flag.
8593         * tree-dump.c (dump_option_value_in): Add scev.
8594         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8595         * tree-scalar-evolution.c: Likewise.
8596
8597 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8598
8599         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8600         (cxa_type_match): Correct declaration.
8601         (__gnu_unwind_pr_common): Reconstruct additional indirection
8602         when __cxa_type_match returns succeeded_with_ptr_to_base.
8603
8604 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8605
8606         PR rtl-optimization/49114
8607         * reload.c (struct replacement): Remove SUBREG_LOC member.
8608         (push_reload): Do not set it.
8609         (push_replacement): Likewise.
8610         (subst_reload): Remove dead code.
8611         (copy_replacements): Remove assertion.
8612         (copy_replacements_1): Do not handle SUBREG_LOC.
8613         (move_replacements): Likewise.
8614         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
8615         Detect subregs via recursive descent instead of via SUBREG_LOC.
8616
8617 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8618
8619         * config/avr/avr.c (avr_encode_section_info): Dispatch to
8620         default_encode_section_info.
8621
8622 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
8623
8624         PR tree-optimization/49545
8625         * builtins.c (get_object_alignment_1): Update function comment.
8626         Do not use DECL_ALIGN for functions, but test
8627         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8628         * fold-const.c (get_pointer_modulus_and_residue): Don't check
8629         for functions here.
8630         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8631
8632 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
8633
8634         PR debug/49567
8635         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8636         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8637
8638 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8639
8640         PR target/34734
8641         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8642         about uninitialized data attributed 'progmem' from here...
8643         (avr_encode_section_info): ...to this new function.
8644         (TARGET_ENCODE_SECTION_INFO): New define.
8645         (avr_section_type_flags): For data in ".progmem.data", remove
8646         section flag SECTION_WRITE.
8647
8648 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
8649
8650         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8651         _xmulhisi3_exit.
8652         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8653         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
8654         (__umulhisi3): Ditto.
8655         * config/avr/avr.md (mulhisi3): New insn expender.
8656         (umulhisi3): New insn expender.
8657         (*mulhisi3_call): New insn.
8658         (*umulhisi3_call): New insn.
8659
8660 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8661
8662         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8663
8664 2011-06-28  Richard Henderson  <rth@redhat.com>
8665
8666         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
8667         all code and arguments that handled pushes.  Update all callers.
8668
8669 2011-06-28  Richard Henderson  <rth@redhat.com>
8670
8671         * config/arm/arm.c (arm_output_function_prologue): Don't call
8672         thumb1_output_function_prologue.
8673         (arm_expand_prologue): Avoid dead store.
8674         (number_of_first_bit_set): Use ctz_hwi.
8675         (thumb1_emit_multi_reg_push): New.
8676         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8677         to emit the entire prologue as rtl.
8678         (thumb1_output_interwork): Split out from
8679         thumb1_output_function_prologue.
8680         (thumb1_output_function_prologue): Remove.
8681         (arm_attr_length_push_multi): Handle thumb1.
8682         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8683         (prologue_thumb1_interwork): New.
8684         (*push_multi): Allow thumb1; use push_mult_memory_operand.
8685         * config/arm/predicates.md (push_mult_memory_operand): New.
8686
8687 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8688
8689         * config/sparc/sync.md (*stbar): Delete.
8690         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8691
8692 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
8693
8694         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8695
8696 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8697
8698         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8699         (TARGET_64BIT_DEFAULT): Define.
8700         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8701         of tm_file.
8702         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8703
8704 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8705
8706         * common.opt (in_lto_p): New Variable entry.
8707         * flags.h (in_lto_p): Move to common.opt.
8708         * gcc.c: Include params.h.
8709         (set_option_handlers): Also use common_handle_option and
8710         target_handle_option.
8711         (main): Call global_init_params, finish_params and init_options_struct.
8712         * opts.c (debug_type_names): Move from toplev.c.
8713         (print_filtered_help): Access quiet_flag through opts pointer.
8714         (common_handle_option): Return early in the driver for some options.
8715         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8716         opts pointer.
8717         * toplev.c (in_lto_p): Move to common.opt.
8718         (debug_type_names): Move to opts.c.
8719         * Makefile.in (OBJS): Remove opts.o.
8720         (OBJS-libcommon-target): Add opts.o.
8721         (gcc.o): Update dependencies.
8722
8723 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8724
8725         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8726
8727 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8728
8729         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8730         with '=' constraint modifier.
8731         (*divdf3_vfp): Likewise.
8732         ("*mulsf3_vfp"): Likewise.
8733         ("*muldf3_vfp"): Likewise.
8734         ("*mulsf3negsf_vfp"): Likewise.
8735         ("*muldf3negdf_vfp"): Likewise.
8736
8737 2011-06-28  Nick Clifton  <nickc@redhat.com>
8738
8739         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8740         relaxation when performing an incremental link.
8741
8742 2011-06-28  Kai Tietz  <ktietz@redhat.com>
8743
8744         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8745         within BB from last to first.
8746
8747 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * genattr-common.c: New.  Based on genattr.c.
8750         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8751         (MOSTLYCLEANFILES): Add insn-attr-common.h.
8752         (opts.o): Update dependencies.
8753         (.PRECIOUS): Add insn-attr-common.h.
8754         (simple_rtl_generated_h): Add insn-attr-common.h.
8755         (build/genattr-common.o): New.
8756         (genprogrtl): Add attr-common.
8757         * genattr.c (main): Include insn-attr-common.h.  Don't generate
8758         definitions of DELAY_SLOTS or INSN_SCHEDULING.
8759         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8760
8761 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
8762
8763         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8764         avr-*-* and avr-*-rtems* targets.
8765
8766         * config/avr/elf.h: New file.
8767         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8768         (TARGET_ASM_SELECT_SECTION): Define.
8769         (INIT_SECTION_ASM_OP): Undefine.
8770         (FINI_SECTION_ASM_OP): Undefine.
8771         (READONLY_DATA_SECTION_ASM_OP): Undefine.
8772         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8773         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8774         * config/avr/avr.h:
8775         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8776         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8777         (MAX_OFILE_ALIGNMENT): Move to elf.h.
8778         (STRING_LIMIT): Move to elf.h.
8779         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8780         (ASM_DECLARE_OBJECT_NAME): Remove.
8781         (ESCAPES): Remove.
8782         (ASM_OUTPUT_SKIP): Remove.
8783         (DWARF2_DEBUGGING_INFO): Remove.
8784         (OBJECT_FORMAT_ELF): Remove.
8785         (USER_LABEL_PREFIX): Remove.
8786         (ASM_OUTPUT_EXTERNAL): Remove.
8787         (ASM_OUTPUT_ASCII): Remove.
8788         (TYPE_ASM_OP): Remove.
8789         (SIZE_ASM_OP): Remove.
8790         (WEAK_ASM_OP): Remove.
8791         (STRING_ASM_OP): Remove.
8792         (SET_ASM_OP): Remove.
8793         (ASM_WEAKEN_LABEL): Remove.
8794         (TYPE_OPERAND_FMT): Remove.
8795         (ASM_DECLARE_FUNCTION_SIZE): Remove.
8796         (ASM_FINISH_DECLARE_OBJECT): Remove.
8797         (NO_DOLLAR_IN_LABEL): Remove.
8798         (ASM_GENERATE_INTERNAL_LABEL): Remove.
8799         (ASM_OUTPUT_CASE_LABEL): Remove.
8800         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8801         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8802         (gas_output_ascii): Remove.
8803         (gas_output_limited_string): Remove.
8804         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8805         * config/avr/avr-protos.h
8806         (gas_output_ascii): Remove prototye.
8807         (gas_output_limited_string): Remove prototype.
8808
8809 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
8810
8811         PR target/48637
8812         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
8813         asm operands.
8814
8815 2011-06-27  Jan Hubicka  <jh@suse.cz>
8816
8817         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8818         node instead of references in node.
8819
8820 2011-06-27  Richard Henderson  <rth@redhat.com>
8821
8822         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8823         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8824         inside ifdef.
8825
8826 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
8827
8828         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8829
8830         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8831         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8832         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8833         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8834         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8835         (evaluate_stmt, execute_fold_all_builtins): Handle
8836         BUILT_IN_ASSUME_ALIGNED.
8837         * tree-ssa-dce.c (propagate_necessity): Likewise.
8838         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8839         call_may_clobber_ref_p_1): Likewise.
8840         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8841         (expand_builtin_assume_aligned): New function.
8842         * doc/extend.texi (__builtin_assume_aligned): Document.
8843
8844         PR debug/49544
8845         * cselib.c (promote_debug_loc): If cselib_preserve_constants
8846         and l has two DEBUG_INSN owned locs instead of just one, adjust
8847         the second location's setting_insn too.
8848
8849 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8850
8851         PR libmudflap/38738
8852         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8853
8854 2011-06-27  Nick Clifton  <nickc@redhat.com>
8855
8856         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8857         bit position of highest bit set into a count of the high zero bits.
8858
8859 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8860
8861         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8862
8863 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8864
8865         PR lto/48492
8866         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8867         to a NULL parent.
8868
8869 2011-06-27  Richard Guenther  <rguenther@suse.de>
8870
8871         PR tree-optimization/49394
8872         * passes.c (execute_one_pass): Restore current_pass after
8873         applying IPA transforms.
8874
8875 2011-06-27  Kai Tietz  <ktietz@redhat.com>
8876
8877         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8878         out of type precision after operation.
8879         (find_bswap): Take for limit value the integer auto-promotion
8880         into account.
8881
8882 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8883
8884         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8885         forward scan as well.
8886
8887 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8888
8889         PR target/44241
8890         * config/vms/vms-protos.h: New file.
8891         * config/vms/vms-crtlmap.map: New file.
8892         * config/vms/vms.c: New file.
8893         * config/vms/make-crtlmap.awk: New file.
8894         * config/vms/vms-crtl.h: File removed.
8895         * config/vms/vms-crtl-64.h: File removed.
8896         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8897         * config/alpha/vms64.h: Do not include vms-crtl-64.h
8898         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8899         clear some builtins on VMS.  Calls vms_patch_builtins.
8900         (avms_asm_output_external): Remove.
8901         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8902         (struct crtl_name_spec): Remove
8903         (DO_CTRL_NAMES): Remove.
8904         * config/ia64/vms.h (struct crtl_name_spec): Remove
8905         (DO_CTRL_NAMES): Remove.
8906         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8907         clear some builtins on VMS.  Calls vms_patch_builtins.
8908         (ia64_asm_output_external): Remove DO_CRTL_NAME.
8909         * config/ia64/vms64.h: Do not include vms-crtl-64.h
8910         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8911
8912 2011-06-27  Tristan Gingold  <gingold@adacore.com>
8913
8914         * config/alpha/alpha.c (alpha_end_function): Always generate .end
8915         directive on VMS.
8916
8917 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
8918
8919         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8920         the function receives nonlocal gotos.
8921
8922 2011-06-27  Richard Guenther  <rguenther@suse.de>
8923
8924         PR tree-optimization/49536
8925         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8926         For non-scalar inner types use a scalar type according to
8927         the scalar inner mode.
8928
8929 2011-06-27  Richard Guenther  <rguenther@suse.de>
8930
8931         PR tree-optimization/49365
8932         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8933
8934 2011-06-27  Richard Guenther  <rguenther@suse.de>
8935
8936         PR tree-optimization/49169
8937         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8938         the alignment of function decls.
8939
8940 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
8941
8942         PR target/47997
8943         * config/darwin.c (darwin_mergeable_string_section): Place string
8944         constants in '.cstring' rather than '.const' when CF/NSStrings are
8945         active.
8946
8947 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8948
8949         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8950         (emit_save_register_window): Likewise.
8951         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8952         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
8953         Swap back %o7/%i7 in register naming.
8954
8955 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
8956
8957         PR driver/49371
8958         * config/darwin.c (darwin_override_options): Improve warning when
8959         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8960         is given with fpie/fPIE.
8961         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8962         * config/darwin9.h (PIE_SPEC): New.
8963
8964 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
8965
8966         * timevar.c (timevar_print): Increase width for display of timevar
8967         name.
8968
8969 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
8970
8971         PR c++/46400
8972         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8973         instead of TYPE_CHAIN for chain_next for types.
8974
8975 2011-06-24  Richard Henderson  <rth@redhat.com>
8976
8977         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8978         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8979         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8980         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8981         (sparc_flat_expand_prologue): Emit individual instructions
8982         instead of one of the above.
8983
8984 2011-06-24  Easwaran Raman  <eraman@google.com>
8985
8986         PR rtl-optimization/49429
8987         PR target/49454
8988         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
8989         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8990         used to copy y into x.
8991         * calls.c (initialize_argument_information): Mark
8992         an argument addressable if it is passed by invisible reference.
8993         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8994         if it is passed by reference.
8995
8996 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8997
8998         PR rtl-optimization/49504
8999         * rtlanal.c (nonzero_bits1): Properly handle addition or
9000         subtraction of a pointer in Pmode if pointers extend unsigned.
9001         (num_sign_bit_copies1): Likewise.
9002
9003 2011-06-24  Martin Jambor  <mjambor@suse.cz>
9004
9005         PR tree-optimizations/49516
9006         * tree-sra.c (sra_modify_assign): Choose the safe path for
9007         aggregate copies if we also did scalar replacements.
9008
9009 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9010
9011         PR target/49335
9012         * config/arm/predicates.md (add_operator): New.
9013         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9014
9015 2011-06-24  Andi Kleen  <ak@linux.intel.com>
9016
9017         * tree-sra.c (type_internals_preclude_sra_p): Add msg
9018         parameter. Split up ifs and report reason in *msg.
9019         (reject): Add.
9020         (find_var_candiate): Add msg variable.
9021         Split up ifs and report reason to reject.
9022         (find_param_candidates): Add msg variable.
9023         Pass msg to type_internals_preclude_sra_p.
9024
9025 2011-06-23  Jeff Law  <law@redhat.com>
9026
9027         PR middle-end/48770
9028         * reload.h (reload): Change to return a bool.
9029         * ira.c (ira): If requested by reload, run a fast DCE pass after
9030         reload has completed.  Fix comment typo.
9031         * reload1.c (need_dce): New file scoped static.
9032         (reload): Set reload_completed here.  Return whether or not a DCE
9033         pass after reload is needed.
9034         (delete_dead_insn): Set need_dce as needed.
9035
9036         PR middle-end/49465
9037         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9038         to detect threading through joiner block.  If there was already
9039         an edge to the new target, then do not change the PHI nodes.
9040
9041 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
9042
9043         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9044         get_pointer_alignment to see if base isn't sufficiently aligned.
9045
9046 2011-06-23  Jan Hubicka  <jh@suse.cz>
9047
9048         PR tree-optimize/49373
9049         * tree-pass.h (all_late_ipa_passes): Declare.
9050         * cgraphunit.c (init_lowered_empty_function): Fix properties.
9051         (cgraph_optimize): Execute late passes; remove unreachable funcions
9052         after materialization.
9053         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9054         LTOing.
9055         * passes.c (all_late_ipa_passes): Declare.
9056         (dump_passes, register_pass): Handle late ipa passes.
9057         (init_optimization_passes): Move ipa_pta to late passes; schedule
9058         fixup_cfg at beggining of all_passes.
9059         (apply_ipa_transforms): New function.
9060         (execute_one_pass): When doing simple ipa pass, apply all transforms.
9061
9062 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
9063
9064         * params.c: Include common/common-target.h.  Don't include tm.h.
9065         (lang_independent_params): Move from toplev.c.
9066         (global_init_params): New.
9067         * params.h (global_init_params): Declare.
9068         * target.def (default_params): Move to common-target.def.
9069         * toplev.c (lang_independent_options): Remove.
9070         (lang_independent_params): Move to params.c.
9071         (general_init): Use global_init_params.
9072         * common/common-target.def (option_default_params): Move from
9073         target.def.
9074         * common/config/ia64/ia64-common.c: Include params.h.
9075         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9076         from ia64.c.
9077         * common/config/rs6000/rs6000-common.c: Include params.h.
9078         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9079         from rs6000.c.
9080         * common/config/sh/sh-common.c: Include params.h.
9081         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9082         from sh.c.
9083         * common/config/spu/spu-common.c: Include params.h.
9084         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9085         from spu.c.
9086         * config/ia64/ia64.c (ia64_option_default_params,
9087         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9088         * config/rs6000/rs6000.c (rs6000_option_default_params,
9089         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9090         * config/sh/sh.c (sh_option_default_params,
9091         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9092         * config/spu/spu.c (spu_option_default_params,
9093         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9094         * Makefile.in (OBJS): Remove params.o.
9095         (OBJS-libcommon-target): Add params.o.
9096         (params.o, $(common_out_object_file)): Update dependencies.
9097         * doc/tm.texi: Regenerate.
9098
9099 2011-06-23  Alan Modra  <amodra@gmail.com>
9100
9101         PR bootstrap/49383
9102         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9103         invocation for 2011-06-09 changes.
9104
9105 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9106
9107         PR libgomp/49490
9108         * omp-low.c (expand_omp_for_static_nochunk): Only
9109         use n ceil/ nthreads size for the first n % nthreads threads in the
9110         team instead of all threads except for the last few ones which
9111         get less work or none at all.
9112
9113         PR debug/49496
9114         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9115         uses.
9116
9117 2011-06-22  Richard Guenther  <rguenther@suse.de>
9118
9119         PR tree-optimization/49493
9120         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9121         Refer to the alias target of variables.
9122         (associate_varinfo_to_alias_1): Remove.
9123         (ipa_pta_execute): Do not associate aliases with anything.
9124         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9125         (cgraph_function_node): Likewise.
9126         (cgraph_function_or_thunk_node): Likewise.
9127         (varpool_variable_node): Likewise.
9128
9129 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9130
9131         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9132         * config.gcc (arm*-*-linux*): Default to gnu tls.
9133         (arm*-*-*): Add --with-tls option.
9134         (all_defaults): Add 'tls'.
9135
9136 2011-06-22  Richard Henderson  <rth@redhat.com>
9137
9138         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9139         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9140         (dwarf2out_frame_debug_cfa_window_save): Rename from
9141         dwarf2out_window_save; make static.
9142         * tree.h (dwarf2out_window_save): Don't declare.
9143
9144         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9145         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9146         (emit_save_register_window): Rename from gen_save_register_window;
9147         emit the insn and add REG_CFA_* notes.
9148         (sparc_expand_prologue): Update to match.
9149         * config/sparc/sparc.md (save_register_window_1): Simplify from
9150         save_register_window<P:mode>.
9151
9152 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         PR target/49497
9155         * config/i386/i386.md (*lea_general_2): Always allow SImode.
9156         (*lea_general_2_zext): Likewise.
9157         (imul to lea peepholes): Use const359_operand and check
9158         TARGET_PARTIAL_REG_STALL.
9159
9160         * config/i386/predicates.md (const359_operand): New.
9161
9162 2011-06-22  Michael Matz  <matz@suse.de>
9163
9164         * cgraphunit.c (assemble_thunk): Use correct return type.
9165
9166 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
9167             Dmitry Melnik  <dm@ispras.ru>
9168
9169         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9170         (neon_output_shift_immediate): Ditto.
9171         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9172         prototype.
9173         (neon_output_shift_immediate): Ditto.
9174         * config/arm/neon.md (vashl<mode>3): Modified constraint.
9175         (vashr<mode>3_imm): New insn pattern.
9176         (vlshr<mode>3_imm): Ditto.
9177         (vashr<mode>3): Modified constraint.
9178         (vlshr<mode>3): Ditto.
9179         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9180         predicate.
9181         (imm_for_neon_rshift_operand): Ditto.
9182         (imm_lshift_or_reg_neon): Ditto.
9183         (imm_rshift_or_reg_neon): Ditto.
9184
9185         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9186
9187 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
9188
9189         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9190         builtin calls even if likelyvalue is not CONSTANT.
9191         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9192         Return get_value_for_expr of first operand
9193         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9194         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9195         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9196         their non-checking counterparts.
9197         (call_may_clobber_ref_p_1): Likewise.
9198         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9199         like their non-checking counterparts.
9200         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9201         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9202         like their non-checking counterparts.
9203         (find_func_clobbers): Likewise.
9204         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9205         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9206
9207         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9208         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9209         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9210         of base type reference as argument.
9211         (resolve_addr_in_expr): Likewise.  Fix keep computation.
9212         (convert_descriptor_to_signed): Renamed to...
9213         (convert_descriptor_to_mode): ... this.  For wider types convert to
9214         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9215         (typed_binop): New function.
9216         (scompare_loc_descriptor, ucompare_loc_descriptor,
9217         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9218         default to unsigned type instead of signed.
9219
9220         PR debug/47858
9221         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9222         (gimple_build_debug_source_bind_stat): New prototype.
9223         (gimple_build_debug_source_bind): Define.
9224         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9225         gimple_debug_source_bind_get_value,
9226         gimple_debug_source_bind_get_value_ptr,
9227         gimple_debug_source_bind_set_var,
9228         gimple_debug_source_bind_set_value): New inlines.
9229         * gimple.c (gimple_build_debug_source_bind_stat): New function.
9230         * gimple-pretty-print.c (dump_gimple_debug): Handle
9231         GIMPLE_DEBUG_SOURCE_BIND.
9232         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9233         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9234         * tree-parloops.c (eliminate_local_variables,
9235         separate_decls_in_region): Likewise.
9236         (separate_decls_in_region_debug): Renamed from
9237         separate_decls_in_region_debug_bind.  Handle
9238         gimple_debug_source_bind_p.
9239         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9240         prototypes.
9241         (DECL_HAS_DEBUG_ARGS_P): Define.
9242         (struct tree_function_decl): Add has_debug_args_flag field.
9243         * tree.c (debug_args_for_decl): New variable.
9244         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9245         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9246         (rewrite_debug_stmt_uses): New function.
9247         (rewrite_stmt): Use it to rewrite debug stmt uses.
9248         * rtl.def (DEBUG_PARAMETER_REF): New.
9249         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9250         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9251         DEBUG_PARAMETER_REF.
9252         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9253         * print-rtl.c (print_rtx): Likewise.
9254         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9255         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9256         debug stmts in the first bb.
9257         * tree-inline.c (remap_ssa_name): If remapping default def
9258         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9259         a source bind debug stmt.
9260         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9261         (maybe_move_debug_stmts_to_successors): Likewise.
9262         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
9263         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9264         debug args vector from old_decl to new_decl.
9265         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9266         or modified parameters, add debug bind stmts before call
9267         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9268         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9269         on DECL_DEBUG_EXPRs from debug args vector.
9270         (expand_debug_source_expr): New function.
9271         (expand_debug_locations): Use it for source bind insns.
9272         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9273         * var-tracking.c (prepare_call_arguments): Add debug args
9274         to call_arguments if any.
9275         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9276         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9277         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9278         (get_ref_die_offset, parameter_ref_descriptor): New functions.
9279         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9280         (gen_subprogram_die): Handle parameters identified by
9281         DEBUG_PARAMETER_REF.
9282
9283 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
9284
9285         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9286         * doc/install.texi (Configuration): Document --with-tls.
9287         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9288         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9289         (arm_tls_descseq_addr): New.
9290         (legitimize_tls_address): Add tlsdesc support.
9291         (arm_cannot_copy_insn_p): Check for tlscall.
9292         (arm_emit_tls_decoration): Likewise.
9293         * config/arm/arm.h (TARGET_GNU2_TLS): New.
9294         (OPTION_DEFAULT_SPECS): Add with-tls support.
9295         * config/arm/arm.md (R1_REGNUM): Define.
9296         (tlscall): New.
9297         * config/arm/arm.opt (tls_type): New enumeration type and values.
9298         (mtls-dialect): New switch.
9299         * config/arm/arm-opts.h (enum tls_type): New.
9300
9301 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9302
9303         * attribs.c (register_attribute): Added assert to check that all
9304         attribute specs are registered with a name that is not empty and
9305         does not start with '_'.
9306         (decl_attributes): Avoid the lookup of the "naked" attribute spec
9307         if the function has no attributes.
9308         * tree.c (is_attribute_with_length_p): Removed.
9309         (is_attribute_p): Removed.
9310         (private_is_attribute_p): New.
9311         (private_lookup_attribute): New.
9312         (lookup_attribute): Removed.
9313         (lookup_ident_attribute): New.
9314         (remove_attribute): Require the first argument to be in the form
9315         'text', not '__text__'.  Updated asserts.
9316         (merge_attributes): Use lookup_ident_attributes instead of
9317         lookup_attribute.
9318         (merge_dllimport_decl_attributes): Use remove_attribute.
9319         (attribute_list_contained): Likewise.
9320         (attribute_list_equal): Immediately return 1 if the arguments are
9321         identical pointers.
9322         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
9323         'int'.  Require the first argument to be in the form 'text', not
9324         '__text__'.  Require the second argument to be an identifier.
9325         (lookup_attribute): Made inline.  Require the first argument to be
9326         in the form 'text', not '__text__'.
9327         (private_is_attribute_p, private_lookup_attribute): New.
9328         Updated comments.
9329
9330 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
9331
9332         * builtins.c: Add sync_ or SYNC__ to builtin names.
9333         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9334         * omp-low.c: Add sync_ or SYNC__ to builtin names.
9335
9336 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9337
9338         PR target/33049
9339         * config/avr/avr.md (extzv): New expander.
9340         (*extzv): New insn.
9341         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9342         * config/avr/constraints.md (C04): New constraint.
9343         * doc/md.texi (Machine Constraints): Document it.
9344
9345 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9346
9347         PR middle-end/49489
9348         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9349         unsignedp argument instead of 1 for clrsb_optab.
9350         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9351         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
9352         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9353         * optabs.c (widen_leading): Call widen_operand and expand_unop
9354         with 0 as unsignedp argument instead of 1 for clrsb_optab.
9355         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9356
9357 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
9358
9359         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9360
9361 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
9362
9363         * gensupport.c (add_define_attr): New static function.
9364         (is_predicable): Allow multi-alternative lists for the "predicable"
9365         attribute.
9366         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9367         (process_one_cond_exec): Call alter_attrs_for_insn.
9368         * doc/md.texi (Defining Attributes): Mention some standard names.
9369         (Conditional Execution): Update documentation for "predicable".
9370
9371         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9372         __builtin_clrsbll): Document.
9373         * doc/rtl.texi (clrsb): New entry.
9374         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
9375         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
9376         (expand_unop): Handle clrsb_optab.
9377         (init_optabs): Initialize it.
9378         * optabs.h (enum optab_index): New entry OTI_clrsb.
9379         (clrsb_optab): Define.
9380         * genopinit.c (optabs): Add an entry for it.
9381         * builtins.c (expand_builtin): Handle clrsb builtin functions.
9382         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9383         BUILT_IN_CLRSBLL): New.
9384         * rtl.def (CLRSB): New code.
9385         * dwarf2out.c (mem_loc_descriptor): Handle it.
9386         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9387         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9388         and popcount.
9389         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9390         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9391         (__ctzDI2): Move declaration.
9392         * config/bfin/bfin.md (clrsbsi2): New expander.
9393         (signbitssi2): Use the CLRSB rtx.
9394         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
9395         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9396
9397 2011-06-21  Richard Guenther  <rguenther@suse.de>
9398
9399         * ipa-inline-transform.c (inline_transform): Fix previous change.
9400
9401 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
9402
9403         PR tree-optimization/49478
9404         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9405         with constant operand.
9406
9407 2011-06-21  Richard Guenther  <rguenther@suse.de>
9408
9409         * ipa-inline-transform.c (inline_transform): Fix typo.
9410
9411 2011-06-21  Richard Guenther  <rguenther@suse.de>
9412
9413         PR tree-optimization/49483
9414         * tree-vect-stmts.c (vectorizable_assignment): Also handle
9415         VIEW_CONVERT_EXPR conversions.
9416
9417 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
9418
9419         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9420         * config/avr/avr-tables.opt: New file (generated).
9421         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9422         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9423         avr-mcus.def.
9424         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9425         (avr_option_override): Don't process -mmcu= argument here.  Set
9426         avr_current_device using avr_mcu_index.
9427         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9428         * config/avr/avr.opt (mmcu=): Use Enum.
9429         * config/avr/t-avr (avr-devices.o): Update dependencies.
9430         ($(srcdir)/config/avr/avr-tables.opt): New.
9431         * target.def (help): Remove.
9432         * doc/tm.texi.in (TARGET_HELP): Remove.
9433         * doc/tm.texi: Regenerate.
9434         * opts.c: Don't include target.h.
9435         (common_handle_option): Don't call targetm.help.
9436         * system.h (TARGET_HELP): Poison.
9437         * Makefile.in (opts.o): Update dependencies.
9438
9439 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9440
9441         * config/usegld.h: New file.
9442         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9443         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9444         (LIB_SPEC): Likewise.  Search /lib.
9445         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9446         (RDYNAMIC_SPEC): Handle GNU ld.
9447         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9448         Define.
9449         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9450         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9451         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9452         (STACK_CHECK_STATIC_BUILTIN): Define.
9453         * config/sol2.opt (compat-bsd): Remove.
9454         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9455         * config/sol2-bi.h: New file.
9456         * config/sol2-gld.h: Remove.
9457         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9458         (NO_DBX_BNSYM_ENSYM): Remove.
9459         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9460         (STACK_CHECK_STATIC_BUILTIN): Remove.
9461         Test USE_GLD instead of TARGET_GNU_LD.
9462         * config/i386/sol2-10.h: Rename to ...
9463         * config/i386/sol2-bi.h .. this.
9464         (SUBTARGET_EXTRA_SPECS): Redefine.
9465         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9466         (MULTILIB_DEFAULTS): Remove.
9467         (DEFAULT_ARCH32_P): Define.
9468         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9469         (ARCH64_SUBDIR): Define.
9470         Test USE_GLD instead of TARGET_GNU_LD.
9471         (I386_EMULATION): Rename to ...
9472         (ARCH32_EMULATION): ... this.
9473         (X86_64_EMULATION): Rename to ...
9474         (ARCH64_EMULATION): ... this.
9475         (TARGET_LD_EMULATION): Remove.
9476         (LINK_ARCH_SPEC): Remove.
9477         * config/i386/sol2-gas.h: Remove.
9478         * config/i386/t-sol2-10: Rename to ...
9479         * config/i386/t-sol2-64: ... this.
9480         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9481         (AS_SPARC64_FLAG): Define.
9482         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9483         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9484         depending on TARGET_CPU_DEFAULT.
9485         (CPP_CPU_SPEC): Redefine.
9486         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9487         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9488         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9489         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9490         ASM_ARCH_DEFAULT_SPEC): Redefine.
9491         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9492         LINK_ARCH_DEFAULT_SPEC.
9493         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9494         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9495         (ARCH64_SUBDIR): Define.
9496         (LINK_ARCH64_SPEC): Redefine.
9497         (CC1_SPEC): Redefine.
9498         (OPTION_DEFAULT_SPECS): Redefine.
9499         (MULTILIB_DEFAULTS): Define.
9500         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9501         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9502         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9503         (NO_DBX_BNSYM_ENSYM): Remove.
9504         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9505         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9506         (TARGET_ASM_NAMED_SECTION): Likewise.
9507         (STACK_CHECK_STATIC_BUILTIN): Remove.
9508         * config/sparc/sol2-bi.h: Remove.
9509         * config/sparc/sol2-gas-bi.h: Remove.
9510         * config/sparc/sol2-gas.h: Remove.
9511         * config/sparc/sol2-gld-bi.h: Remove.
9512         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9513         common parts ...
9514         (*-*-solaris2*): ... here.
9515
9516 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9517
9518         PR other/43564
9519         * ipa-inline.c (can_inline_edge_p): Check
9520         !DECL_DISREGARD_INLINE_LIMITS.
9521
9522 2011-06-21  Christian Bruel  <christian.bruel@st.com>
9523
9524         PR middle-end/49139
9525         * cgraphunit.c (process_function_and_variable_attributes): warn when
9526         always_inline functions that are not inline.
9527         * ipa-inline-transform.c (inline_transform): Always call
9528         optimize_inline.
9529         * tree-inline.c (tree_inlinable_function_p): Use error instead
9530         of sorry.
9531         (expand_call_inline): Likewise.
9532
9533 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
9534
9535         * Makefile.in (dg_target_exps): Set.
9536         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9537         instead of 7, try to divide it more evenly.
9538
9539 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
9540
9541         PR target/49089
9542         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9543         (avx256_split_unaligned_store): New definition.
9544         (ix86_option_override_internal): Enable avx256 unaligned load/store
9545         splitting only when avx256_split_unaligned_load/store is set.
9546
9547 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9548
9549         * regrename.c (scan_rtx_reg): Handle the case where we write to an
9550         open chain in a smaller mode without failing the entire block.
9551
9552 2011-06-21  Alan Modra  <amodra@gmail.com>
9553
9554         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9555         CONST high part large-toc address.
9556         (rs6000_tls_referenced_p): Make static.
9557         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9558
9559 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9560
9561         PR target/49385
9562         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9563         one of the operands is a register.
9564
9565 2011-06-20  Kai Tietz  <ktietz@redhat.com>
9566
9567         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9568         operations in combination with binary and.
9569
9570 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
9571
9572         * regrename.c (do_replace): Don't update notes.
9573
9574 2011-06-20  Alan Modra  <amodra@gmail.com>
9575
9576         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9577         of toc-relative address in CONST.
9578         (rs6000_delegitimize_address): Recognize changed address.
9579         (rs6000_legitimize_reload_address): Likewise.
9580         (rs6000_emit_move): Don't force these constants to memory.
9581         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9582         toc-relative address in CONST.
9583         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9584         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9585
9586 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9587
9588         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9589         (count_trailing_zeros): Likewise.
9590
9591 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9592
9593         PR other/49325
9594         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9595         .init_array can be used with .ctors on targets.
9596         * configure: Regenerated.
9597
9598 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9599
9600         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9601         if the element type is volatile.
9602
9603 2011-06-18  Jan Hubicka  <jh@suse.cz>
9604
9605         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9606         extra name aliases.
9607         (lto_symtab_resolve_can_prevail_p): Likewise.
9608         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9609         * cgraphbuild.c (record_reference): Remove extra body alias code.
9610         (mark_load): Likewise.
9611         (mark_store): Likewise.
9612         * cgraph.h (varpool_node): Remove extra_name filed;
9613         add alias_of and extraname_alias.
9614         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9615         (varpool_alias_aliased_node): New inline function.
9616         (varpool_variable_node): New function.
9617         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9618         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9619         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9620         (input_varpool_node): Likewise.
9621         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9622         (varpool_externally_visible_p): Remove extra body alias code.
9623         (function_and_variable_visibility): Likewise.
9624         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9625         (ipa_pta_execute): Use it.
9626         * varpool.c (varpool_remove_node): Remove extra name alias code.
9627         (varpool_mark_needed_node): Likewise.
9628         (varpool_analyze_pending_decls): Analyze aliases.
9629         (assemble_aliases): New functoin.
9630         (varpool_assemble_decl): Use it.
9631         (varpool_create_variable_alias): New function.
9632         (varpool_extra_name_alias): Rewrite.
9633         (varpool_for_node_and_aliases): New function.
9634
9635 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
9636
9637         PR target/49411
9638         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9639         last_arg_constant and last argument doesn't match its predicate,
9640         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9641         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9642         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9643         spelling of error message.
9644         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9645         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9646         const_0_to_255_operand instead of const_int_operand.
9647
9648         Revert:
9649         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
9650
9651         * config/i386/sse.md (blendbits): Remove mode attribute.
9652         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9653         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9654         Check integer value of operand 3 in insn constraint.
9655
9656 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
9657
9658         PR rtl-optimization/48542
9659         * reload.c (find_equiv_reg): Stop looking when finding a
9660         setjmp-type call.
9661         * reload1.c (reload_as_needed): Invalidate all reload
9662         registers when crossing a setjmp-type call.
9663
9664 2011-06-16  Jeff Law  <law@redhat.com>
9665
9666         * tree-ssa-threadupdate.c (struct redirection_data): New field
9667         intermediate_edge.
9668         (THREAD_TARGET2): Define.
9669         (redirection_data_eq): Also check that the intermediate edge is equal.
9670         (lookup_redirection_data): Drop useless argument.  Extract the
9671         outgoing_edge and intermediate edge from E.  Callers updated.
9672         (copy_phi_args, update_destination_phis): New functions.
9673         (fix_duplicate_block_edges): Likewise.
9674         (create_edge_and_update_destination_phis): Duplicate all the edges
9675         hung off e->aux.  Use copy_phi_args.
9676         (create_duplicates): Use fix_duplicate_block_edges.
9677         (fixup_template_block): Likewise.
9678         (redirect_edges): If necessary, redirect the joiner block's incoming
9679         edge to the duplicate of the joiner block.
9680         (thread_block): Don't muck up loops when threading through a joiner
9681         block.
9682         (thread_through_loop_header): Handle threading through a joiner block.
9683         (mark_threaded_blocks, register_jump_thread): Likewise.
9684         * tree-flow.h (register_jump_thread): Add new argument.  Callers
9685         updated.
9686         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9687         (thread_across_edge): Handle threading through a joiner block.
9688
9689 2011-06-16  Martin Jambor  <mjambor@suse.cz>
9690
9691         PR tree-optimization/49343
9692         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9693         calculate offset, provide 2nd operand for the new COMPONENT_REF.
9694
9695 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
9696
9697         * config/darwin-protos.h (machopic_select_rtx_section): Move to
9698         inside RTX_CODE ifdef.
9699
9700 2011-06-16  Tom de Vries  <tom@codesourcery.com>
9701
9702         PR target/45098
9703         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9704         Disallow NULL pointer for pointer arithmetic.
9705
9706 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9707
9708         PR target/49398
9709         Revert.
9710         2011-06-10  Wei Guozhi  <carrot@google.com>
9711
9712         PR target/45335
9713         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9714         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9715         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9716         related peephole2.
9717         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9718         related peephole2.
9719         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9720         (arm_legitimate_ldrd_p): New prototype.
9721         (arm_output_ldrd): New prototype.
9722         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9723         (arm_legitimate_ldrd_p): New function.
9724         (arm_output_ldrd): New function.
9725
9726 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9727
9728         PR middle-end/46500
9729         * doc/tm.texi.in: Update Copyright date.
9730         * doc/tm.texi: Regenerate.
9731         * targhooks.c (default_setup_incoming_varargs): Replace
9732         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9733         (default_pretend_outgoing_varargs_named): Likewise.
9734         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9735         (hook_callee_copies_named): Likewise.
9736         (default_function_arg_advance): Likewise.
9737         (default_function_arg): Likewise.
9738         (default_function_incoming_arg): Likewise.
9739         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9740         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9741         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9742         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9743         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9744         * targhooks.h (default_setup_incoming_varargs): Likewise.
9745         (default_pretend_outgoing_varargs_named): Likewise.
9746         (hook_pass_by_reference_must_pass_in_stack): Likewise.
9747         (hook_callee_copies_named): Likewise.
9748         (default_function_arg_advance): Likewise.
9749         (default_function_arg): Likewise.
9750         (default_function_incoming_arg): Likewise.
9751         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9752         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9753         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9754         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9755         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9756         * target.def (pass_by_reference): Likewise.
9757         (setup_incoming_varargs, strict_argument_naming): Likewise.
9758         (pretend_outgoing_varargs_named, callee_copies): Likewise.
9759         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9760         (function_incoming_arg): Likewise.
9761         * target.h: Don't include "tm.h" .
9762         (cumulative_args_t): New typedef.
9763         [GCC_TM_H] (get_cumulative_args): New static inline function.
9764         [GCC_TM_H] (pack_cumulative_args): Likewise.
9765         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9766         argument type with cumulative_args_t.
9767         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9768         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9769         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9770         (frv_arg_partial_bytes, frv_function_arg): Likewise.
9771         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9772         (frv_function_arg_1): Likewise.
9773         * config/s390/s390.c (s390_pass_by_reference): Likewise.
9774         (s390_function_arg_advance, s390_function_arg): Likewise.
9775         * config/m32c/m32c.c (m32c_function_arg): Likewise.
9776         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9777         (m32c_strict_argument_naming): Likewise.
9778         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9779         (spu_function_arg_advance): Likewise.
9780         (spu_setup_incoming_varargs): Likewise.  Make static.
9781         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9782         Remove prototype.
9783         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9784         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9785         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9786         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9787         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9788         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9789         (mep_pass_by_reference, mep_function_arg): Likewise.
9790         (mep_function_arg_advance): Likewise.
9791         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9792         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9793         (m32r_function_arg, m32r_function_arg_advance): Likewise.
9794         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9795         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9796         (ix86_function_arg, ix86_pass_by_reference): Likewise.
9797         (ix86_setup_incoming_varargs): Likewise.
9798         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9799         (sh_strict_argument_naming): Likewise.
9800         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9801         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9802         (sh_function_arg_advance, sh_function_arg): Likewise.
9803         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9804         (pdp11_function_arg_advance): Likewise.
9805         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9806         Likewise.
9807         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9808         * config/avr/avr.c (avr_function_arg): Likewise.
9809         (avr_function_arg_advance): Likewise.
9810         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9811         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9812         (xtensa_function_arg_1): Likewise.
9813         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9814         Likewise.
9815         (xstormy16_function_arg): Likewise.
9816         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9817         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9818         (fr30_function_arg_advance): Likewise.
9819         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9820         (lm32_function_arg, lm32_function_arg_advance): Likewise.
9821         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9822         (moxie_function_arg, moxie_function_arg_advance): Likewise.
9823         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9824         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9825         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9826         (cris_function_arg, cris_function_incoming_arg): Likewise.
9827         (cris_function_arg_advance, cris_function_arg_1): Likewise.
9828         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9829         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9830         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9831         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9832         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9833         (mn10300_arg_partial_bytes): Likewise.
9834         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9835         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9836         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9837         (ia64_function_arg_1): Likewise.
9838         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9839         (m68k_function_arg): Likewise.
9840         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9841         (rs6000_function_arg, setup_incoming_varargs): Likewise.
9842         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9843         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9844         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9845         (picochip_arg_advance): Likewise.
9846         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9847         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9848         (mcore_function_arg_advance): Likewise.
9849         * config/score/score.c (score_pass_by_reference): Likewise.
9850         (score_function_arg_advance): Likewise.
9851         (score_arg_partial_bytes): Likewise.  Make static.
9852         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9853         * config/arm/arm.c (arm_arg_partial_bytes): Replace
9854         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9855         (arm_function_arg, arm_function_arg_advance): Likewise.
9856         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9857         * config/pa/pa.c (pa_pass_by_reference): Likewise.
9858         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9859         (pa_function_arg): Likewise.
9860         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9861         (mips_function_arg, mips_function_arg_advance): Likewise.
9862         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9863         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9864         * config/vax/vax.c (vax_function_arg): Likewise.
9865         (vax_function_arg_advance): Likewise.
9866         * config/h8300/h8300.c (h8300_function_arg): Likewise.
9867         (h8300_function_arg_advance): Likewise.
9868         * config/v850/v850.c (v850_pass_by_reference): Likewise.
9869         (v850_strict_argument_naming, v850_function_arg): Likewise.
9870         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9871         (v850_setup_incoming_varargs): Likewise.
9872         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9873         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9874         (mmix_function_arg, mmix_pass_by_reference): Likewise.
9875         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9876         with const void *.
9877         * config/bfin/bfin.c (setup_incoming_varargs): Replace
9878         CUMULATIVE_ARGS* argument type with cumulative_args_t.
9879         (bfin_function_arg_advance, bfin_function_arg): Likewise.
9880         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9881         * calls.c (emit_call_1): Change type of args_so_far to
9882         cumulative_args_t.  Changed all callers.
9883         (initialize_argument_information): Likewise.
9884         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9885         * dse.c (get_call_args): Likewise.
9886         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9887         * function.c (pass_by_reference, reference_callee_copied): Likewise.
9888         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9889         New member args_so_far_v.  Changed all users.
9890         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9891         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9892         * config/mips/mips.c (mips_output_args_xfer): Likewise.
9893         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9894         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9895         * config/microblaze/microblaze.c (microblaze_expand_prologue):
9896         Likewise.
9897         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9898         m32r_pass_by_reference.
9899
9900 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
9901
9902         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9903         argument to be a VEC of statements.
9904         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9905         assert that pattern statements have to have their vector type set.
9906         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9907         Change the first argument to be a VEC of statements.  Update
9908         documentation.
9909         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9910         (vect_handle_widen_mult_by_const): New function.
9911         (vect_recog_widen_mult_pattern):  Change the first argument to be a
9912         VEC of statements.  Update documentation.  Check that the constant is
9913         INTEGER_CST.  Support multiplication by a constant that fits an
9914         intermediate type - call vect_handle_widen_mult_by_const.
9915         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9916         call.  Handle additional pattern statements if necessary.
9917
9918 2011-06-16  Nick Clifton  <nickc@redhat.com>
9919
9920         PR target/49427
9921         * config.gcc: Set cpu_type to v850 for any V850 architecture.
9922         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9923         md_file, extra_modes, out_file and extra_options are these are all
9924         deduced from cpu_type.
9925
9926 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9927
9928         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9929         truncation mask to 63.
9930
9931 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
9932
9933         PR target/49313
9934         PR target/29524
9935         * longlong.h: Add AVR support:
9936         (count_leading_zeros): New macro.
9937         (count_trailing_zeros): New macro.
9938         (COUNT_LEADING_ZEROS_0): New macro.
9939         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9940         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9941         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9942         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9943         (LIB2FUNCS_EXCLUDE): Add _clz.
9944         * config/avr/libgcc.S (XCALL): Move up in file.
9945         (XJMP): New C Macro.
9946         (DEFUN): New asm macro.
9947         (ENDF): New asm macro.
9948         (__ffssi2): New function.
9949         (__ffshi2): New function.
9950         (__loop_ffsqi2): New function.
9951         (__ctzsi2): New function.
9952         (__ctzhi2): New function.
9953         (__clzdi2): New function.
9954         (__clzsi2): New function.
9955         (__clzhi2): New function.
9956         (__paritydi2): New function.
9957         (__paritysi2): New function.
9958         (__parityhi2): New function.
9959         (__parityqi2): New function.
9960         (__popcounthi2): New function.
9961         (__popcountsi2): New function.
9962         (__popcountdi2): New function.
9963         (__popcountqi2): New function.
9964         (__bswapsi2): New function.
9965         (__bswapdi2): New function.
9966         (__ashldi3): New function.
9967         (__ashrdi3): New function.
9968         (__lshrdi3): New function.
9969         Fix suspicous lines.
9970
9971 2011-06-16  Richard Guenther  <rguenther@suse.de>
9972
9973         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9974         the same as x != 0.
9975         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9976         to (bool) X & 1.
9977         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9978         equality compares against zero for the lower bit.
9979
9980 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
9981
9982         PR tree-optimization/49419
9983         * tree-vrp.c (execute_vrp): Call init_range_assertions
9984         before estimate_numbers_of_iterations, call
9985         free_number_of_iterations_estimates before calling
9986         remove_range_assertions.
9987
9988 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9989
9990         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9991         (struct partial_schedule): Add rows_length field.
9992         (verify_partial_schedule): Check rows_length.
9993         (ps_insert_empty_row): Handle rows_length.
9994         (create_partial_schedule): Likewise.
9995         (free_partial_schedule): Likewise.
9996         (reset_partial_schedule): Likewise.
9997         (create_ps_insn): Remove rest_count argument.
9998         (remove_node_from_ps): Update rows_length.
9999         (add_node_to_ps): Update rows_length and call create_ps_insn
10000         without passing row_rest_count.
10001         (rotate_partial_schedule): Update rows_length.
10002
10003 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10004
10005         * ddg.c (add_intra_loop_mem_dep): New function.
10006         (build_intra_loop_deps): Call it.
10007
10008 2011-06-13  Jeff Law  <law@redhat.com>
10009
10010         * df-problems.c (df_lr_local_compute): Manually CSE
10011         PIC_OFFSET_TABLE_REGNUM.
10012         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10013         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10014
10015 2011-06-13  Jan Hubicka  <jh@suse.cz>
10016
10017         * cgraphunit.c (handle_alias_pairs): New function.
10018         (cgraph_finalize_compilation_unit): Use it.
10019         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10020         as externally visible.
10021
10022 2011-06-15  Richard Guenther  <rguenther@suse.de>
10023
10024         * expr.c (expand_expr_real_2): Reduce all integral types to
10025         bitfield precision.
10026         (expand_expr_real_1): Likewise.
10027
10028 2011-06-15  Martin Jambor  <mjambor@suse.cz>
10029
10030         PR tree-optimization/48613
10031         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10032         ipa_node_params_vector is NULL.
10033
10034 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
10035
10036         PR debug/49382
10037         * dwarf2out.c (dw_loc_list_node): Add force field.
10038         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10039         location in the list, even if it is modified before first real insn.
10040         (output_loc_list): Emit empty ranges with force flag set.
10041         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10042
10043 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
10044
10045         PR target/49349
10046         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10047         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
10048         above a fence.  Update comments.
10049         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10050         placed just above it.  Do not allow NULL place_to_insert.
10051
10052 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
10053
10054         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10055         (slpeel_tree_peel_loop_to_edge): Don't call
10056         remove_dead_stmts_from_loop.
10057         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10058         remove irrelevant pattern statements.  For irrelevant statements
10059         check if it is the last statement of a detected pattern, use
10060         corresponding pattern statement instead.
10061         (destroy_loop_vec_info): No need to remove pattern statements,
10062         only free stmt_vec_info.
10063         (vect_transform_loop): For irrelevant statements check if it is
10064         the last statement of a detected pattern, use corresponding
10065         pattern statement instead.
10066         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10067         pattern statements.  Set basic block for the new statement.
10068         (vect_pattern_recog): Update documentation.
10069         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10070         operands of pattern statements.
10071         (vectorizable_call): Fix printing.  In case of a pattern statement
10072         use the lhs of the original statement when creating a dummy
10073         statement to replace the original call.
10074         (vect_analyze_stmt): For irrelevant statements check if it is
10075         the last statement of a detected pattern, use corresponding
10076         pattern statement instead.
10077         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10078         statements use gsi of the original statement.
10079
10080 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10081
10082         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10083         common/common-target-def.h.
10084         * target.def (default_target_flags, handle_option,
10085         supports_split_stack, optimization_table, init_struct,
10086         except_unwind_info, unwind_tables_default, have_named_sections):
10087         Move to common/common-target.def.
10088         * target.h (enum opt_levels, struct default_options): Move to
10089         common/common-target.h.
10090         * targhooks.c (default_except_unwind_info,
10091         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10092         default_target_handle_option, empty_optimization_table): Move to
10093         common/common-targhooks.c.
10094         * targhooks.h (default_except_unwind_info,
10095         dwarf2_except_unwind_info, sjlj_except_unwind_info,
10096         default_target_handle_option, empty_optimization_table): Move to
10097         common/common-targhooks.h.
10098         * common/common-target-def.h: Include common/common-targhooks.h.
10099         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10100         defined.
10101         * common/common-target.def (handle_option, option_init_struct,
10102         option_optimization_table, default_target_flags,
10103         except_unwind_info, supports_split_stack, unwind_tables_default,
10104         have_named_sections): Move from target.def.
10105         (HOOK_PREFIX): Undefine at end of file.
10106         * common/common-target.h: Include input.h.
10107         (enum opt_levels, struct default_options): Move from target.h.
10108         * common/common-targhooks.c, common/common-targhooks.h: New.
10109         * config.gcc (target_has_targetm_common): Default to yes.
10110         (moxie*): Set target_has_targetm_common=no.
10111         (hppa*-*-*): Don't set target_has_targetm_common=yes.
10112         * doc/tm.texi: Regenerate.
10113         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10114         (C_TARGET_DEF_H): Add common/common-targhooks.h.
10115         (GCC_OBJS): Remove vec.o.
10116         (OBJS): Remove hooks.o and vec.o.
10117         (OBJS-libcommon-target): Add vec.o, hooks.o and
10118         common/common-targhooks.o.
10119         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10120         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10121         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10122         cfglayout.o, $(out_object_file), $(common_out_object_file)):
10123         Update dependencies.
10124         (common/common-targhooks.o): New.
10125         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
10126         * common/config/pa/pa-common.c: Include more headers.  Take
10127         copyright dates from pa.c.
10128         (pa_option_optimization_table, pa_handle_option,
10129         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10130         TARGET_HANDLE_OPTION): Move from pa.c.
10131         * common/config/alpha/alpha-common.c,
10132         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10133         common/config/bfin/bfin-common.c,
10134         common/config/cris/cris-common.c,
10135         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10136         common/config/h8300/h8300-common.c,
10137         common/config/i386/i386-common.c,
10138         common/config/ia64/ia64-common.c,
10139         common/config/iq2000/iq2000-common.c,
10140         common/config/lm32/lm32-common.c,
10141         common/config/m32c/m32c-common.c,
10142         common/config/m32r/m32r-common.c,
10143         common/config/m68k/m68k-common.c,
10144         common/config/mcore/mcore-common.c,
10145         common/config/mep/mep-common.c,
10146         common/config/microblaze/microblaze-common.c,
10147         common/config/mips/mips-common.c,
10148         common/config/mmix/mmix-common.c,
10149         common/config/mn10300/mn10300-common.c,
10150         common/config/pdp11/pdp11-common.c,
10151         common/config/picochip/picochip-common.c,
10152         common/config/rs6000/rs6000-common.c,
10153         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10154         common/config/score/score-common.c, common/config/sh/sh-common.c,
10155         common/config/sparc/sparc-common.c,
10156         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10157         common/config/vax/vax-common.c,
10158         common/config/xstormy16/xstormy16-common.c,
10159         common/config/xtensa/xtensa-common.c: New.
10160         * config/alpha/alpha.c: Include common/common-target.h.
10161         (alpha_option_optimization_table, alpha_handle_option,
10162         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10163         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10164         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10165         * config/arm/arm.c (arm_option_optimization_table,
10166         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10167         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10168         arm-common.c.
10169         * config/avr/avr.c (avr_option_optimization_table,
10170         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10171         to avr-common.c.
10172         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10173         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10174         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10175         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10176         * config/cris/cris.c (cris_option_optimization_table,
10177         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10178         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10179         cris-common.c.
10180         * config/fr30/fr30.c (fr30_option_optimization_table,
10181         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10182         to fr30-common.c.
10183         * config/frv/frv.c (frv_option_optimization_table,
10184         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10185         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10186         * config/h8300/h8300.c (h8300_option_optimization_table,
10187         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10188         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10189         * config/i386/i386-protos.h (ix86_handle_option): Declare.
10190         * config/i386/i386.c: Include common/common-target.h.
10191         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10192         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10193         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10194         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10195         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10196         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10197         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10198         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10199         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10200         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10201         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10202         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10203         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10204         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10205         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10206         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10207         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10208         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10209         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10210         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10211         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10212         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10213         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10214         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10215         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10216         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10217         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10218         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10219         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10220         ix86_option_optimization_table, ix86_option_init_struct,
10221         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10222         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10223         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10224         i386-common.c.
10225         * config/i386/t-i386 (i386.o): Update dependencies.
10226         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10227         * config/ia64/ia64.c (ia64_option_optimization_table,
10228         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10229         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10230         ia64_handle_option): Move to ia64-common.c.
10231         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10232         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10233         * config/lm32/lm32.c (lm32_option_optimization_table,
10234         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10235         to lm32-common.c.
10236         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10237         m32c-common.c.
10238         * config/m32r/m32r.c (m32r_option_optimization_table,
10239         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10240         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10241         m32r_handle_option): Move to m32r-common.c.
10242         (m32r_memory_move_cost): Remove comment referring to
10243         TARGET_HANDLE_OPTION.
10244         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10245         Move to m68k-common.c.
10246         * config/mcore/mcore.c (mcore_option_optimization_table,
10247         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10248         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10249         * config/mep/mep.c (mep_option_optimization_table,
10250         mep_handle_option, TARGET_HANDLE_OPTION,
10251         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10252         Move to mep-common.c.
10253         * config/microblaze/microblaze.c
10254         (microblaze_option_optimization_table,
10255         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10256         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10257         * config/mips/mips.c (mips_handle_option,
10258         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10259         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10260         mips-common.c.
10261         * config/mmix/mmix.c (mmix_option_optimization_table,
10262         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10263         Move to mmix-common.c.
10264         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10265         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10266         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10267         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10268         * config/pa/pa.c: Include common/common-target.h.
10269         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10270         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10271         pa_handle_option): Move to pa-common.c.
10272         (pa_option_override): Use targetm_common.except_unwind_info.
10273         (pa_asm_output_mi_thunk, pa_function_section): Use
10274         targetm_common.have_named_sections.
10275         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10276         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10277         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10278         pdp11_handle_option, pdp11_option_init_struct): Move to
10279         pdp11-common.c.
10280         * config/picochip/picochip.c (picochip_option_optimization_table,
10281         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10282         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10283         * config/rs6000/rs6000.c: Include common/common-target.h.
10284         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10285         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10286         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10287         rs6000_handle_option): Move to rs6000-common.c.
10288         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10289         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10290         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10291         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10292         * config/s390/s390.c (processor_flags_table,
10293         s390_option_optimization_table, s390_option_init_struct,
10294         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10295         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10296         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10297         * config/s390/s390.h (processor_flags_table): Declare.
10298         * config/score/score.c (score_option_optimization_table,
10299         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10300         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10301         score_handle_option): Move to score-common.c.
10302         * config/sh/sh.c (sh_option_optimization_table,
10303         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10304         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10305         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10306         * config/sparc/sparc.c: Include common/common-target.h.
10307         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10308         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10309         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10310         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10311         spu_option_init_struct): Move to spu-common.c.
10312         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10313         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10314         * config/v850/v850.c (small_memory_physical_max,
10315         v850_handle_memory_optionn v850_handle_option,
10316         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10317         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10318         v850-common.c.
10319         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10320         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10321         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10322         Move to xtensa-common.c.
10323         * cfglayout.c: Include common/common-target.h.
10324         (fixup_reorder_chain): Use targetm_common.have_named_sections.
10325         * cfgrtl.c: Include common/common-target.h.
10326         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10327         targetm_common.have_named_sections.
10328         * dbxout.c: Include common/common-target.h.
10329         (dbxout_function_end): Use targetm_common.have_named_sections.
10330         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10331         targetm_common.except_unwind_info.
10332         * dwarf2out.c: Include common/common-target.h.
10333         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10334         dwarf2out_begin_prologue, dwarf2out_frame_init,
10335         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10336         targetm_common.except_unwind_info.
10337         * except.c: Include common/common-target.h.
10338         (init_eh, finish_eh_generation,
10339         output_one_function_exception_table): Use
10340         targetm_common.except_unwind_info.
10341         (switch_to_exception_section): Use targetm_common.have_named_sections.
10342         * explow.c: Include common/common-target.h.
10343         * expr.c: Include common/common-target.h.
10344         (build_personality_function): Use targetm_common.except_unwind_info.
10345         * function.c: Include common/common-target.h.
10346         (expand_function_end): Use targetm_common.except_unwind_info.
10347         * haifa-sched.c: Include common/common-target.h.
10348         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10349         * lto-opts.c: Include common/common-target.h instead of target.h.
10350         (lto_reissue_options): Use targetm_common.handle_option.
10351         * opts.c: Include common/common-target.h.
10352         (target_handle_option): Use targetm_common.handle_option.
10353         (init_options_struct): Update comment referring to
10354         targetm.target_option.optimization.  Use
10355         targetm_common.default_target_flags,
10356         targetm_common.unwind_tables_default and
10357         targetm_common.option_init_struct.
10358         (default_options_optimization): Use
10359         targetm_common.option_optimization_table.
10360         (finish_options): Use targetm_common.except_unwind_info,
10361         targetm_common.unwind_tables_default,
10362         targetm_common.have_named_sections and
10363         targetm_common.supports_split_stack.
10364         * toplev.c: Include common/common-target.h.
10365         (process_options): Use targetm_common.have_named_sections.
10366         * tree-tailcall.c: Include common/common-target.h.
10367         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10368         * tree.c: Include common/common-target.h.
10369         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10370         * varasm.c: Include common/common-target.h.
10371         (resolve_unique_section, hot_function_section,
10372         default_function_section): Use targetm_common.have_named_sections.
10373
10374 2011-06-14  Easwaran Raman  <eraman@google.com>
10375
10376         PR rtl-optimization/44194
10377         * dse.c: Include tree-flow.h
10378         (insn_info): Add new field non_frame_wild_read.
10379         (group_info): Add new fields escaped_n and escaped_p.
10380         (kill_on_calls): New variable.
10381         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10382         (dse_step0): Initialize kill_on_calls.
10383         (can_escape): New function.
10384         (set_usage_bits): Add additional parameter; record information
10385         about escaped locations.
10386         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10387         (dse_step2_nospill): Set kill_on_calls based on
10388         group->escaped_n and group->escaped_n.
10389         (add_wild_read): Refactor into...
10390         (reset_active_stores): ... New function, and
10391         (free_read_records): ... New function.
10392         (add_non_frame_wild_read): New function.
10393         (scan_insn): Call add_non_frame_wild_read on non-const calls.
10394         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10395         (dse_step5_nospill): Call scan_reads_nospill for instructions
10396         marked as non_frame_wild_read.
10397         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10398
10399 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10400
10401         * common/common-target-def.h, common/common-target.def,
10402         common/common-target.h, common/config/default-common.c,
10403         common/config/pa/pa-common.c: New files.
10404         * Makefile.in (common_out_file, common_out_object_file,
10405         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10406         (OBJS-libcommon-target): Include $(common_out_object_file).
10407         (prefix.o): Update dependencies.
10408         ($(common_out_object_file), common/common-target-hooks-def.h,
10409         s-common-target-hooks-def-h): New.
10410         (s-tm-texi): Also check timestamp on common-target.def.
10411         (build/genhooks.o): Update dependencies.
10412         * config.gcc (common_out_file, target_has_targetm_common): Define.
10413         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10414         TARGET_ALWAYS_STRIP_DOTDOT.
10415         * configure.ac (common_out_object_file): Define.
10416         (common_out_file, common_out_object_file): Substitute.
10417         (common): Create directory.
10418         * configure: Regenerate.
10419         * doc/tm.texi.in (targetm_common): Document.
10420         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10421         * doc/tm.texi: Regenerate.
10422         * genhooks.c (hook_array): Also include common/common-target.def.
10423         * prefix.c (tm.h): Don't include.
10424         (common/common-target.h): Include.
10425         (ALWAYS_STRIP_DOTDOT): Don't define.
10426         (update_path): Use targetm_common.always_strip_dotdot instead of
10427         ALWAYS_STRIP_DOTDOT.
10428         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10429
10430 2011-06-14  David Li  <davidxl@google.com>
10431
10432         * passes.c (execute_function_todo): Remove TODO_dump_func.
10433         (execute_one_pass): Remove TODO_dump_func.
10434         (execute_function_dump): New function.
10435         * tree-vrp.c: Remove TODO_dump_func.
10436         * regrename.c: Remove TODO_dump_func.
10437         * fwprop.c: Remove TODO_dump_func.
10438         * tree-into-ssa.c: Remove TODO_dump_func.
10439         * tree-complex.c: Remove TODO_dump_func.
10440         * tracer.c: Remove TODO_dump_func.
10441         * tree-loop-distribution.c: Remove TODO_dump_func.
10442         * postreload-gcse.c: Remove TODO_dump_func.
10443         * postreload.c: Remove TODO_dump_func.
10444         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10445         * tree-tailcall.c: Remove TODO_dump_func.
10446         * ipa-cp.c: Remove TODO_dump_func.
10447         * final.c: Remove TODO_dump_func.
10448         * tree-emutls.c: Remove TODO_dump_func.
10449         * omp-low.c: Remove TODO_dump_func.
10450         * tree-ssa-dse.c: Remove TODO_dump_func.
10451         * tree-ssa-uncprop.c: Remove TODO_dump_func.
10452         * auto-inc-dec.c: Remove TODO_dump_func.
10453         * reorg.c: Remove TODO_dump_func.
10454         * tree-ssa-copyrename.c: Remove TODO_dump_func.
10455         * tree-ssa-ccp.c: Remove TODO_dump_func.
10456         * compare-elim.c: Remove TODO_dump_func.
10457         * mode-switching.c: Remove TODO_dump_func.
10458         * modulo-sched.c: Remove TODO_dump_func.
10459         * tree-call-cdce.c: Remove TODO_dump_func.
10460         * cse.c: Remove TODO_dump_func.
10461         * web.c: Remove TODO_dump_func.
10462         * tree-stdarg.c: Remove TODO_dump_func.
10463         * lto-streamer-out.c: Remove TODO_dump_func.
10464         * tree-ssa-math-opts.c: Remove TODO_dump_func.
10465         * tree-ssa-dom.c: Remove TODO_dump_func.
10466         * tree-nrv.c: Remove TODO_dump_func.
10467         * loop-init.c: Remove TODO_dump_func.
10468         * gimple-low.c: Remove TODO_dump_func.
10469         * ipa-inline.c: Remove TODO_dump_func.
10470         * tree-ssa-sink.c: Remove TODO_dump_func.
10471         * jump.c: Remove TODO_dump_func.
10472         * ifcvt.c: Remove TODO_dump_func.
10473         * tree-ssa-loop.c: Remove TODO_dump_func.
10474         * recog.c: Remove TODO_dump_func.
10475         * dse.c: Remove TODO_dump_func.
10476         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10477         * matrix-reorg.c: Remove TODO_dump_func.
10478         * tree-eh.c: Remove TODO_dump_func.
10479         * regmove.c: Remove TODO_dump_func.
10480         * function.c: Remove TODO_dump_func.
10481         * tree-vectorizer.c: Remove TODO_dump_func.
10482         * ipa-split.c: Remove TODO_dump_func.
10483         * gcse.c: Remove TODO_dump_func.
10484         * tree-if-conv.c: Remove TODO_dump_func.
10485         * init-regs.c: Remove TODO_dump_func.
10486         * tree-ssa-phiopt.c: Remove TODO_dump_func.
10487         * implicit-zee.c: Remove TODO_dump_func.
10488         * lower-subreg.c: Remove TODO_dump_func.
10489         * bt-load.c: Remove TODO_dump_func.
10490         * tree-dfa.c: Remove TODO_dump_func.
10491         * except.c: Remove TODO_dump_func.
10492         * emit-rtl.c: Remove TODO_dump_func.
10493         * store-motion.c: Remove TODO_dump_func.
10494         * cfgexpand.c: Remove TODO_dump_func.
10495         * tree-cfgcleanup.c: Remove TODO_dump_func.
10496         * cfgcleanup.c: Remove TODO_dump_func.
10497         * tree-ssa-pre.c: Remove TODO_dump_func.
10498         * tree-sra.c: Remove TODO_dump_func.
10499         * tree-mudflap.c: Remove TODO_dump_func.
10500         * tree-ssa-copy.c: Remove TODO_dump_func.
10501         * cfglayout.c: Remove TODO_dump_func.
10502         * tree-ssa-forwprop.c: Remove TODO_dump_func.
10503         * tree-ssa-dce.c: Remove TODO_dump_func.
10504         * ira.c: Remove TODO_dump_func.
10505         * tree-ssa.c: Remove TODO_dump_func.
10506         * integrate.c: Remove TODO_dump_func.
10507         * tree-optimize.c: Remove TODO_dump_func.
10508         * tree-ssa-phiprop.c: Remove TODO_dump_func.
10509         * tree-object-size.c: Remove TODO_dump_func.
10510         * combine.c: Remove TODO_dump_func.
10511         * bb-reorder.c: Remove TODO_dump_func.
10512         * cprop.c: Remove TODO_dump_func.
10513         * var-tracking.c: Remove TODO_dump_func.
10514         * tree-profile.c: Remove TODO_dump_func.
10515         * tree-vect-generic.c: Remove TODO_dump_func.
10516         * reg-stack.c: Remove TODO_dump_func.
10517         * sched-rgn.c: Remove TODO_dump_func.
10518         * tree-ssa-structalias.c: Remove TODO_dump_func.
10519         * tree-switch-conversion.c: Remove TODO_dump_func.
10520         * tree-cfg.c: Remove TODO_dump_func.
10521         * tree-ssa-reassoc.c: Remove TODO_dump_func.
10522         * combine-stack-adj.c: Remove TODO_dump_func.
10523         * dce.c: Remove TODO_dump_func.
10524         * tree-ssanames.c: Remove TODO_dump_func.
10525         * regcprop.c: Remove TODO_dump_func.
10526
10527 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10528
10529         PR middle-end/47364
10530         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10531         and properly handle result not in Pmode.
10532
10533 2011-06-14  Robert Millan  <rmh@gnu.org>
10534
10535         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10536         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10537         `config/linux.h'.
10538
10539         * config/i386/kfreebsd-gnu64.h: New file.
10540         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10541         with `i386/kfreebsd-gnu64.h'.
10542
10543         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10544         (GNU_USER_LINK_EMULATION64): New macros.
10545         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10546         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10547         of hardcoding `elf_i386' and `elf_x86_64'.
10548
10549 2011-06-14  Nick Clifton  <nickc@redhat.com>
10550
10551         PR target/49403
10552         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10553
10554         PR target/49402
10555         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10556
10557 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
10558
10559         PR fortran/49103
10560         * tree.h (DECL_NONSHAREABLE): Define.
10561         (struct tree_decl_common): Change decl_common_unused to
10562         decl_nonshareable_flag.
10563         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10564         Ignore vars with DECL_NONSHAREABLE bit set.
10565         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10566         on stores to automatic aggregate vars.
10567
10568         PR rtl-optimization/49390
10569         Revert:
10570         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10571
10572         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10573         MEM_ALIAS_SET.
10574
10575 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
10576             Tom de Vries  <tom@codesourcery.com>
10577
10578         PR target/45098
10579         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10580         Document changed semantics.
10581         (max_stmt_executions, max_stmt_executions_int): Declare.
10582         * tree-data-ref.c (estimated_loop_iterations)
10583         (estimated_loop_iterations_int): Move functions...
10584         * tree-ssa-loop-niter.c (estimated_loop_iterations)
10585         (estimated_loop_iterations_int): here.
10586         (record_estimate): Change nb_iterations_upper_bound and
10587         nb_iterations_estimate semantics.
10588         (max_stmt_executions, max_stmt_executions_int): New function.
10589         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10590         (max_stmt_executions_tree): this.
10591         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10592         estimated_loop_iterations_tree.
10593         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10594         max_stmt_executions_int instead of estimated_loop_iterations_int.
10595         * predict.c (predict_loops): Idem.
10596         * tree-parloops.c (parallelize_loops): Idem.
10597         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10598         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10599         (init_omega_for_ddr_1): Idem.
10600         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10601         (loop_prefetch_arrays): Idem
10602         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10603         max_stmt_executions instead of estimated_loop_iterations.
10604         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10605         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10606         instead of nb_iterations_upper_bound.
10607
10608 2011-06-13  Jan Hubicka  <jh@suse.cz>
10609
10610         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10611
10612 2011-06-14  Richard Henderson  <rth@redhat.com>
10613
10614         PR debug/48459
10615         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10616         (based_loc_descr): Assert it's true.
10617         (compute_frame_pointer_to_fb_displacement): Set it, rather than
10618         aborting immediately.
10619
10620 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
10621             Mingfeng Wu  <mingfeng@faraday-tech.com>
10622
10623         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10624
10625 2011-06-13  Jan Hubicka  <jh@suse.cz>
10626
10627         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10628
10629 2011-06-13  Jan Hubicka  <jh@suse.cz>
10630
10631         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10632         similarly to DECL_COMDAT.
10633         * cgraphunit.c (cgraph_analyze_function): Likewise.
10634         * ipa.c (function_and_variable_visibility): Likewise.
10635
10636 2011-06-13  Jan Hubicka  <jh@suse.cz>
10637
10638         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10639         BINFO_VIRTUALS when streaming for ltrans unit.
10640
10641 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
10642
10643         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10644         (movdi_internal64): Same.
10645
10646 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
10647
10648         PR target/44618
10649         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10650         a set of similar patterns, where the MATCH_OPERAND for the function
10651         argument is replaced with individual references to hardware registers.
10652         (save_fpregs_<mode>): Ditto
10653         (restore_gpregs_<mode>): Ditto
10654         (return_and_restore_gpregs_<mode>): Ditto
10655         (return_and_restore_fpregs_<mode>): Ditto
10656         (return_and_restore_fpregs_aix_<mode>): Ditto
10657
10658 2011-06-13  Jan Hubicka  <jh@suse.cz>
10659
10660         * ipa-utils.c (postorder_stack): New structure.
10661         (ipa_reverse_postorder): Handle aliases.
10662
10663 2011-06-13  Jan Hubicka  <jh@suse.cz>
10664
10665         * ipa-inline.c (reset_edge_caches): Walk aliases.
10666         (update_caller_keys): Do not test inlinability of aliases.
10667         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10668         (do_estimate_growth): Fix typo.
10669
10670 2011-06-13  Jan Hubicka  <jh@suse.cz>
10671
10672         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10673         (can_remove_node_now_p): ... here; handle same comdat groups.
10674         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10675         (inline_call): Update use of can_remove_node_now_p.
10676
10677 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10678
10679         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10680         condition to disallow non-identical memory locations.
10681         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10682         preference to bit manipulation instructions.
10683
10684 2011-06-13  Jan Hubicka  <jh@suse.cz>
10685
10686         * cgraph.c (cgraph_for_node_thunks_and_aliases,
10687         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10688         (nonremovable_p): New function.
10689         (cgraph_can_remove_if_no_direct_calls_p): New function.
10690         (used_from_object_file_p): New functoin.
10691         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10692         references from aliases.
10693         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10694         * ipa-inline.c (check_caller_edge): New function.
10695         (want_inline_function_called_once_p): Use it; accept aliases called
10696         once, too.
10697         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10698
10699 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10700
10701         PR target/48454
10702         * config/arm/neon.md (vec_pack_trunc): Set the lengths
10703         correctly for the case with Quad vectors.
10704
10705 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
10706            Ira Rosen  <ira.rosen@linaro.org>
10707
10708         PR tree-optimization/49352
10709         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10710         all, make sure loop_use_stmt after the loop is a def stmt of a used
10711         SSA_NAME that is the only one defined inside of the loop.  Don't
10712         check for COND_EXPR and GIMPLE_BINARY_RHS.
10713         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10714         check_reduction is true.
10715
10716 2011-06-11  Jan Hubicka  <jh@suse.cz>
10717
10718         PR middle-end/49373
10719         * ipa.c (cgraph_externally_visible_p): Check resolution info.
10720
10721 2011-06-11  Jan Hubicka  <jh@suse.cz>
10722
10723         PR middle-end/48836
10724         * ipa-inline-transform.c: Include tree-pass.h
10725         (inline_transform): Set TODO_update_ssa_only_virtuals.
10726         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10727
10728 2011-06-11  Jan Hubicka  <jh@suse.cz>
10729
10730         PR middle-end/49378
10731         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10732         aliases and thunks.
10733
10734 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
10735
10736         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10737         Take number of iterations to peel into account for equally frequent
10738         misalignment values.
10739
10740 2011-06-11  Jan Hubicka  <jh@suse.cz>
10741
10742         * lto-streamer-out.c (produce_symtab): Stream out the newly
10743         represented aliases.
10744
10745 2011-06-11  Jan Hubicka  <jh@suse.cz>
10746
10747         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10748         varying args.
10749         (ipa_update_after_lto_read): Likewise.
10750         (ipa_write_node_info): Do not sream call_with_var_arguments.
10751         (ipa_read_node_info): Likewise.
10752
10753 2011-06-11  Jan Hubicka  <jh@suse.cz>
10754
10755         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10756
10757 2011-06-11  Jan Hubicka  <jh@suse.cz>
10758
10759         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10760         (lto_symtab_resolve_can_prevail_p): Likewise.
10761         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10762         * cgraph.c (same_body_aliases_done): New global var.
10763         (cgraph_same_body_alias_1): Rename to ...
10764         (cgraph_create_function_alias): ... this one; reorg to new
10765         representation.
10766         (cgraph_same_body_alias): Use cgraph_create_function_alias;
10767         record references when asked to.
10768         (cgraph_add_thunk): Fix formating.
10769         (cgraph_get_node): Kill same body alias code.
10770         (cgraph_node_for_asm): Likewise.
10771         (cgraph_remove_same_body_alias): Remove.
10772         (cgraph_remove_node): Kill same body alias code.
10773         (cgraph_mark_address_taken_node): Mark also the aliased function
10774         as having address taken.
10775         (dump_cgraph_node): Dump same body aliases.
10776         (cgraph_for_node_thunks_and_aliases): Update for new alias
10777         representation.
10778         (cgraph_for_node_and_aliases): Likewise.
10779         * cgraph.h (same_body): Kll pointer.
10780         (same_body_alias): Update comment.
10781         (same_body_aliases_done): Declare.
10782         (cgraph_remove_same_body_alias): Remove declaration.
10783         (cgraph_create_function_alias): Declare.
10784         (cgraph_process_same_body_aliases): Declare.
10785         (cgraph_function_with_gimple_body_p): Check for alias.
10786         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10787         (cgraph_alias_aliased_node): New function.
10788         (cgraph_function_node): Update for new aliases.
10789         (cgraph_function_or_thunk_node): Likewise.
10790         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10791         (inline_call): Remove dead aliases.
10792         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10793         name hack for same body aliases.
10794         (clone_of_p): Look through aliases.
10795         (verify_cgraph_node): Verify aliases.
10796         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10797         (cgraph_process_same_body_aliases): New function.
10798         (process_function_and_variable_attributes): Disable weakref warning on
10799         alias.
10800         (cgraph_analyze_functions): Handle aliases.
10801         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10802         (assemble_thunks): Rename to ...
10803         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10804         (cgraph_expand_function): Remove alias output code.
10805         (cgraph_output_in_order): Skip aliases.
10806         (cgraph_preserve_function_body_p): Aliases don't need preserving.
10807         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10808         (ipa_record_reference): Do not assert on alias references.
10809         (ipa_ref_has_aliases_p): New function.
10810         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10811         (ipa_ref_has_aliases_p): Declare.
10812         * lto-cgraph.c (lto_output_node): Handle aliases.
10813         (input_node): Likewise.
10814         * lto-streamer-out.c (lto_output): Skip aliases.
10815         (produce_symtab): Kill same_body_alias code.
10816         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10817         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10818         * ipa-inline.c (update_caller_keys): Walk aliases.
10819         (inline_small_functions): Fix thinko in previous patch.
10820         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10821         (function_and_variable_visibility): Do not walk same body aliases.
10822         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10823         (ipa_pta_execute): Use it.
10824
10825 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10826
10827         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10828         (*vec_dupv2df): Rename from vec_dupv2df.
10829         (vec_dupv2df): New expander.
10830
10831 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10832
10833         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10834
10835 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
10836
10837         * config/i386/i386.md: Use default value in "isa" attribute.
10838         * config/i386/sse.md: Ditto.
10839         * config/i386/mmx.md: Ditto.
10840
10841 2011-06-10  Wei Guozhi  <carrot@google.com>
10842
10843         PR target/45335
10844         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10845         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10846         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10847         related peephole2.
10848         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10849         related peephole2.
10850         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10851         (arm_legitimate_ldrd_p): New prototype.
10852         (arm_output_ldrd): New prototype.
10853         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10854         (arm_legitimate_ldrd_p): New function.
10855         (arm_output_ldrd): New function.
10856
10857 2011-06-10  David Li  <davidxl@google.com>
10858
10859         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10860         * passes.c (passr_eq): New function.
10861         (create_pass_tab): New function.
10862         (pass_traverse): New function.
10863         (dump_one_pass): New function.
10864         (dump_pass_list): New function.
10865         (dump_passes): New function.
10866
10867 2011-06-10  Jan Hubicka  <jh@suse.cz>
10868
10869         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10870         setting the nothrow flag.
10871         * ipa-reference.c (propagate): Skip aliases.
10872         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10873         (propagate_nothrow): Skip aliases; do not update cgraph.
10874         (local_pure_const): Do not update cgraph.
10875         * tree-profile.c (tree_profiling): Do fixup_cfg.
10876
10877 2011-06-10  Jan Hubicka  <jh@suse.cz>
10878
10879         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10880         (cgraph_local_node_p): ... here; handle aliases.
10881         (has_addr_references_p): Break out from ...;
10882         (cgraph_remove_unreachable_nodes) ... here.
10883
10884 2011-06-10  Jan Hubicka  <jh@suse.cz>
10885
10886         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10887         * common.opt (flag_inline_functions_called_once): Do not
10888         initialize to 1.
10889
10890 2011-06-10  Jan Hubicka  <jh@suse.cz>
10891
10892         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10893         (ipcp_initialize_node_lattices): Do not deal with aliases;
10894         Do not try to propagate through thunks.
10895         (ipcp_change_tops_to_bottom): Do not deal with aliases.
10896
10897 2011-06-10  Jan Hubicka  <jh@suse.cz>
10898
10899         * ipa-prop.c (ipa_write_node_info): Stream jump functions
10900         for indirect calls.
10901         (ipa_read_node_info): Likewise.
10902
10903 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10904
10905         PR lto/49302
10906         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10907         (build_and_insert_call): Likewise.
10908         (build_and_insert_ref): New.
10909         (gimple_expand_builtin_pow): Minor cleanup.
10910         (gimple_expand_builtin_cabs): New.
10911         (execute_cse_sincos): Add case for BUILT_IN_CABS.
10912
10913 2011-06-10  Jan Hubicka  <jh@suse.cz>
10914
10915         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10916         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10917         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10918         (ipcp_propagate_stage): Skip aliases when propagating.
10919         (ipcp_need_redirect_p): Skip aliases.
10920         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10921         collect_callers_of_node.
10922         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10923         for aliases.
10924         (ipa_compute_jump_functions): Look through aliases.
10925
10926 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10927
10928         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10929
10930 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10931
10932         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10933         Adjust comments.
10934         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10935
10936 2011-06-10  Jan Hubicka  <jh@suse.cz>
10937
10938         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10939         Update call of gimple_get_virt_method_for_binfo.
10940         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10941         refuse_thunks parameter.
10942         (gimple_fold_call): Update.
10943         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10944
10945 2011-06-10  Jan Hubicka  <jh@suse.cz>
10946
10947         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10948         (not_all_callers_have_enough_arguments_p): ... this one; turn into
10949         worker for cgraph_for_node_and_aliases.
10950         (convert_callers_for_node): Break out from ...
10951         (convert_callers): ... here.
10952         (modify_function): Use collect_callers_of_node.
10953         (ipa_early_sra): Use cgraph_for_node_and_aliases.
10954
10955 2011-06-10  Richard Guenther  <rguenther@suse.de>
10956
10957         PR tree-optimization/49361
10958         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10959         when not already in gimple form.
10960
10961 2011-06-10  Richard Guenther  <rguenther@suse.de>
10962
10963         PR bootstrap/49344
10964         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10965         FOR_EACH_PHI_OR_STMT_USE.
10966
10967 2011-06-10  Jan Hubicka  <jh@suse.cz>
10968
10969         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10970         (clone_inlined_nodes): ... here.
10971         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10972         to real destination prior inlining.
10973         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10974         can_early_inline_edge_p, want_early_inline_function_p,
10975         want_early_inline_function_p, want_inline_small_function_p,
10976         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10977         edge_badness, update_all_callee_keys, lookup_recursive_calls,
10978         add_new_edges_to_heap, inline_small_functions, flatten_function,
10979         inline_always_inline_functions, early_inline_small_functions): Use
10980         cgraph_function_or_thunk_node.
10981         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10982         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10983         (do_estimate_edge_growth_1): Break out from ...
10984         (do_estimate_growth) ... here; walk aliases.
10985         (inline_generate_summary): Skip aliases.
10986
10987 2011-06-10  Richard Guenther  <rguenther@suse.de>
10988
10989         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10990         forward when combining, visit inserted stmts when a stmt was changed.
10991
10992 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10993
10994         * tree.h (error_operand_p): Add.
10995         * dbxout.c (dbxout_type_fields): Use the latter.
10996         * c-decl.c (add_stmt): Likewise.
10997         * gimplify.c (omp_add_variable, omp_notice_variable,
10998         gimplify_scan_omp_clauses): Likewise.
10999
11000 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
11001
11002         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11003         when a value is actually passed in regs.
11004
11005 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
11006             Laurent Rougé  <laurent.rouge@menta.fr>
11007
11008         * doc/invoke.texi (SPARC options): Add -mflat.
11009         * config/sparc/sparc.opt: Likewise.
11010         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11011         (sparc_flat_expand_prologue): Declare.
11012         (sparc_flat_expand_epilogue): Likewise.
11013         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11014         (CPP_ENDIAN_SPEC): Replace with...
11015         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
11016         (CPP_SPEC): Adjust to above change.
11017         (EXTRA_SPECS): Likewise.
11018         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11019         (INCOMING_REGNO): Likewise.
11020         (OUTGOING_REGNO): Likewise.
11021         (LOCAL_REGNO): Likewise.
11022         (SETUP_FRAME_ADDRESSES): Likewise.
11023         (FIXED_REGISTERS): Set 0 for %fp.
11024         (CALL_USED_REGISTERS): Likewise.
11025         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11026         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11027         (RETURN_ADDR_REGNUM): Define.
11028         (RETURN_ADDR_RTX): Use it.
11029         (INCOMING_RETURN_ADDR_REGNUM): Define.
11030         (INCOMING_RETURN_ADDR_RTX): Use it.
11031         (DWARF_FRAME_RETURN_COLUMN): Likewise.
11032         (EH_RETURN_REGNUM): Define.
11033         (EH_RETURN_STACKADJ_RTX): Use it.
11034         (EH_RETURN_HANDLER_RTX): Delete.
11035         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11036         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11037         Delete.
11038         (struct machine_function): Add frame_size, apparent_frame_size,
11039         frame_base_reg, frame_base_offset, n_global_fp_regs and
11040         save_local_in_regs_p fields.
11041         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11042         sparc_frame_base_offset, sparc_n_global_fp_regs,
11043         sparc_save_local_in_regs_p): New macros.
11044         (sparc_option_override): Error out if -fcall-saved-REG is specified
11045         for Out registers.
11046         (eligible_for_restore_insn): Fix formatting.
11047         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
11048         (eligible_for_sibcall_delay): Likewise.
11049         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11050         (sparc_legitimate_address_p): Adjust to above change.
11051         (save_global_or_fp_reg_p): New predicate.
11052         (return_addr_reg_needed_p): Likewise.
11053         (save_local_or_in_reg_p): Likewise.
11054         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
11055         (SORR_SAVE, SORR_RESTORE): Delete.
11056         (sorr_pred_t): New typedef.
11057         (sorr_act_t): New enum.
11058         (save_or_restore_regs): Rename to...
11059         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
11060         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11061         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
11062         mechanism.  Add CFI information for double-word saves in 32-bit mode.
11063         (emit_adjust_base_to_offset): New function extracted from...
11064         (emit_save_or_restore_regs): ...this.  Rename the rest to...
11065         (emit_save_or_restore_regs_global_fp_regs): ...this.
11066         (emit_save_or_restore_regs_local_in_regs): New function.
11067         (gen_create_flat_frame_[123]): New functions.
11068         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
11069         (sparc_flat_expand_prologue): New function.
11070         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11071         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
11072         (sparc_flat_expand_epilogue): New function.
11073         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11074         (output_return): Likewise.
11075         (output_sibcall): Likewise.
11076         (sparc_output_mi_thunk): Likewise.
11077         (sparc_frame_pointer_required): Likewise.
11078         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11079         function optimization.
11080         * config/sparc/sparc.md (flat): New attribute.
11081         (prologue): Add TARGET_FLAT handling.
11082         (save_register_window): Disable if TARGET_FLAT.
11083         (create_flat_frame_[123]): New patterns.
11084         (epilogue): Add TARGET_FLAT handling.
11085         (sibcall_epilogue): Likewise.
11086         (eh_return): New expander.
11087         (eh_return_internal): New insn and splitter.
11088         (return_internal): Add TARGET_FLAT handling.
11089         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11090         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11091         (nonlocal_goto): Add TARGET_FLAT handling.
11092         * config/sparc/t-elf: Add -mflat multilib.
11093         * config/sparc/t-leon: Likewise.
11094
11095 2011-06-10  Jan Hubicka  <jh@suse.cz>
11096
11097         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11098         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11099         (self_recursive_p): Use cgraph_function_node.
11100         (propagate_pure_const): Likewise.
11101         (propagate_nothrow): Likewise.
11102         * ipa-reference.c (ipa_reference_get_not_read_global): Use
11103         cgraph_function_node.
11104         (propagate_bits): Likewise.
11105         (propagate): Likewise.
11106
11107 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11108             Richard Earnshaw  <rearnsha@arm.com>
11109
11110         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11111         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11112         (*thumb2_movdi_vfp): Delete.
11113         (*arm_movdi_vfp_cortexa8): Delete.
11114         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11115         (*movdi_vfp_cortexa8): Likewise.
11116
11117 2011-06-10  Richard Guenther  <rguenther@suse.de>
11118
11119         * stor-layout.c (initialize_sizetypes): Give names to all
11120         sizetype kinds.
11121
11122 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
11123
11124         PR tree-optimization/49318
11125         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11126         irrelevant pattern statements.
11127
11128 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11129
11130         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11131
11132         PR bootstrap/49354
11133         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11134         to last assignment.
11135
11136 2011-06-09  Jan Hubicka  <jh@suse.cz>
11137
11138         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11139         do not recompute reachable flag.
11140         (cgraph_finalize_function, cgraph_analyze_functions): Set
11141         redefined_extern_inline here.
11142
11143 2011-06-09  Jan Hubicka  <jh@suse.cz>
11144
11145         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11146         (cgraph_only_called_directly_p): ... this one; bring offline.
11147         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11148         varpool_used_from_object_file_p): Drop names from the declaratoin.
11149         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11150         collect_callers_of_node): New.
11151         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11152         (cgraph_edge_recursive_p): Use cgraph_function_node.
11153         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11154         (cgraph_node_cannot_be_local_p_1): Break out from ...
11155         (cgraph_node_can_be_local_p): ... here; walk aliases.
11156         (cgraph_for_node_thunks_and_aliases): New function.
11157         (cgraph_for_node_and_aliases): New function.
11158         (cgraph_make_node_local_1): Break out from ...
11159         (cgraph_make_node_local) ... here; use
11160         cgraph_for_node_thunks_and_aliases.
11161         (cgraph_set_nothrow_flag_1): Break out from ...
11162         (cgraph_set_nothrow_flag) ... here;
11163         use cgraph_for_node_thunks_and_aliases.
11164         (cgraph_set_const_flag_1): Break out from ...
11165         (cgraph_set_const_flag) ... here;
11166         use cgraph_for_node_thunks_and_aliases.
11167         (cgraph_set_pure_flag_1): Break out from ...
11168         (cgraph_set_pure_flag) ... here;
11169         use cgraph_for_node_thunks_and_aliases.
11170         (cgraph_propagate_frequency_1): Break out from ...
11171         (cgraph_propagate_frequency) ... here; use
11172         cgraph_for_node_thunks_and_aliases.
11173         (cgraph_used_from_object_file_p): Do not care about aliases.
11174         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11175         New functions.
11176         (collect_callers_of_node_1, collect_callers_of_node): New functions.
11177
11178 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11179
11180         PR rtl-optimization/49154
11181         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11182         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11183         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11184         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11185         * config/cris/cris.h (cris_register_move_cost): Remove
11186         !TARGET_V32 code.  Tweak comments.
11187
11188 2011-06-09  Jan Hubicka  <jh@suse.cz>
11189
11190         * cgraphbuild.c (record_eh_tables): Mark personality function as having
11191         address taken.
11192
11193 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11194
11195         PR rtl-optimization/49154
11196         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11197         is a matching slot in the hashtable, assign it to classes_ptr.
11198
11199         PR rtl-optimization/49154
11200         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11201         register classes.
11202         * doc/tm.texi: Regenerate.
11203
11204 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11205
11206         PR target/49307
11207         * config/sh/sh.md (UNSPEC_CHKADD): New.
11208         (chk_guard_add): New define_insn_and_split.
11209         (symGOT_load): Use chk_guard_add instead of blockage.
11210
11211 2011-06-09  Kai Tietz  <ktietz@redhat.com>
11212
11213         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11214
11215 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11216
11217         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11218
11219 2011-06-09  Wei Guozhi  <carrot@google.com>
11220
11221         PR target/46975
11222         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11223         (peephole2 for conditional move): Generate 16 bit instructions.
11224
11225 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
11226
11227         * config/i386/i386.md (*movdi_internal_rex64): Merge
11228         alternatives 6 and 8.
11229
11230 2011-06-09  David Li  <davidxl@google.com>
11231
11232         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11233         * passes.c (passr_eq): New function.
11234         (create_pass_tab): New function.
11235         (pass_traverse): New function.
11236         (dump_one_pass): New function.
11237         (dump_pass_list): New function.
11238         (dump_passes): New function.
11239
11240 2011-06-09  David Li  <davidxl@google.com>
11241
11242         * tree-complex.c (tree_lower_complex): Gate cleanup.
11243         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11244         (execute_optimize_stdarg): Ditto.
11245         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11246         (execute_cleanup_eh_1): Ditto.
11247         (execute_cleanup_eh): Ditto.
11248         * gcse.c (gate_rtl_pre): Ditto.
11249         (execute_rtl_pre): Ditto.
11250         * except.c (finish_eh_generation): Ditto.
11251         (convert_to_eh_region_ranges): Ditto.
11252         * cprop.c (one_cprop_pass): Ditto.
11253
11254 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11255
11256         PR target/48673
11257         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11258         in all basic blocks.
11259
11260 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11261
11262         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11263         (HAVE_ENABLE_EXECUTE_STACK): Define.
11264         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11265         (HAVE_ENABLE_EXECUTE_STACK): Define.
11266         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11267         (HAVE_ENABLE_EXECUTE_STACK): Define.
11268         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11269         (ENABLE_EXECUTE_STACK): Remove.
11270         (HAVE_ENABLE_EXECUTE_STACK): Define.
11271         [IN_LIBGCC2]: Don't include <windows.h>.
11272         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11273         (HAVE_ENABLE_EXECUTE_STACK): Define.
11274         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11275         (HAVE_ENABLE_EXECUTE_STACK): Define.
11276         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11277         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11278         (HAVE_ENABLE_EXECUTE_STACK): Define.
11279         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11280         (HAVE_ENABLE_EXECUTE_STACK): Define.
11281         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11282         (HAVE_ENABLE_EXECUTE_STACK): Define.
11283         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11284         (HAVE_ENABLE_EXECUTE_STACK): Define.
11285         * config/alpha/alpha.c (alpha_trampoline_init): Test
11286         HAVE_ENABLE_EXECUTE_STACK.
11287         * config/i386/i386.c (ix86_trampoline_init): Likewise.
11288         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11289         (sparc64_initialize_trampoline): Likewise.
11290         * libgcc2.c [L_enable_execute_stack]: Remove.
11291         * system.h (ENABLE_EXECUTE_STACK): Poison.
11292         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11293         * doc/tm.texi: Regenerate.
11294         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11295
11296 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
11297
11298         PR middle-end/49308
11299         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11300         variable.  After resetting and rescanning insn continue with previous
11301         statement.
11302
11303 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11304
11305         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11306         (gcc_cv_ld_hidden): Likewise.
11307         * configure: Regenerate.
11308         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11309         (ix86_stack_protect_fail): Mark unused.
11310         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11311         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11312         [TARGET_MACHO]: Don't define.
11313         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11314         (TARGET_STACK_PROTECT_FAIL): Likewise.
11315         (rs6000_stack_protect_fail): Mark unused.
11316         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11317         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
11318
11319 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11320
11321         * varasm.c (get_section): Print location of other conflict
11322         for section conflicts.
11323
11324 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11325
11326         * config/i386/driver-i386.c (host_detect_local_cpu):
11327         Add model 0x2d Intel CPU.
11328
11329 2011-06-08  Andi Kleen  <ak@linux.intel.com>
11330
11331         * reginfo.c (global_regs_decl): Add.
11332         (globalize_reg): Add decl parameter. Compute location.  Pass location
11333         to warnings and add inform. Store decl in global_regs_decl.
11334         * rtl.h (globalize_reg): Update prototype.
11335         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11336
11337 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
11338
11339         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11340
11341 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11342
11343         PR target/49305
11344         * config/sh/predicates.md (general_movsrc_operand): Check
11345         mode for memory with indexed address for QI and HImode.
11346         (general_movdst_operand): Likewise.
11347
11348 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11349
11350         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11351
11352 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
11353
11354         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11355         (num_ssa_operands): Likewise.
11356         (op_iter_init_phiuse): Forward-declare.
11357         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11358
11359 2011-06-08  Nick Clifton  <nickc@redhat.com>
11360
11361         * doc/invoke.texi (ARM Options): Update description of
11362         -mthumb-interwork.
11363
11364 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11365
11366         * config/i386/driver-i386.c (host_detect_local_cpu): Support
11367         unknown Intel family 0x6 CPUs.
11368
11369 2011-06-08  Martin Jambor  <mjambor@suse.cz>
11370
11371         * tree-sra.c (mark_rw_status): Removed.
11372         (analyze_access_subtree): New parameter parent instead of
11373         mark_read and mark_write, propagate from that.
11374
11375 2011-06-08  Julian Brown  <julian@codesourcery.com>
11376
11377         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11378         for double-precision helper functions in hard-float mode if only
11379         single-precision arithmetic is supported in hardware.
11380
11381 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
11382
11383         PR rtl-optimization/49303
11384         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
11385         code_motion_path_driver returned 0 or 1.
11386         (sel_region_finish): Clear h_d_i_d.
11387
11388 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11389
11390         * config/sh/sh.c (prepare_move_operands): Set pic register
11391         appropriately for global and local dynamic tls models even
11392         if flag_pic is unset.
11393
11394 2011-06-07  Jason Merrill  <jason@redhat.com>
11395
11396         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11397
11398 2011-06-07  Xinliang David Li  <davidxl@google.com>
11399         * passes.c (enable_disable_pass): Handle assembler name.
11400         (is_pass_explicitly_enabled_or_disabled): Ditto.
11401
11402 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11403
11404         PR tree-optimization/48497
11405         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11406
11407 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11408
11409         PR tree-optimization/46728
11410         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11411         to use gimple_val_nonnegative_real_p.
11412         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11413         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11414
11415 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
11416
11417         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11418
11419 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
11420
11421         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11422         constant vectors.
11423
11424 2011-06-07  Richard Guenther  <rguenther@suse.de>
11425
11426         * stor-layout.c (initialize_sizetypes): Initialize all
11427         sizetypes based on target definitions.
11428         (set_sizetype): Remove.
11429         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11430         * tree.h (set_sizetype): Remove.
11431
11432 2011-06-07  Nick Clifton  <nickc@redhat.com>
11433
11434         * config.gcc: Unify V850 architecture options and add support for
11435         newer V850 architectures.
11436         * config/v850/t-v850e: Delete.
11437
11438 2011-06-07  Richard Guenther  <rguenther@suse.de>
11439
11440         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11441         Call set_sizetype from here.
11442
11443 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
11444
11445         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11446         (*maddhisi4tb, *maddhisi4tt): New define_insns.
11447
11448 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
11449             Andrew Stubbs  <ams@codesourcery.com>
11450
11451         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11452         multiplies.
11453         * doc/md.texi (Canonicalization of Instructions): Document widening
11454         multiply canonicalization.
11455
11456 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
11457
11458         PR gcov-profile/49299
11459         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11460
11461 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
11462
11463         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11464         a pointer.
11465         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11466         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11467         vect_recog_pow_pattern): Likewise.
11468         (vect_pattern_recog_1): Remove declaration.
11469         (widened_name_p): Remove declaration.  Add new argument to specify
11470         whether to check that both types are either signed or unsigned.
11471         (vect_recog_widen_mult_pattern): Update documentation.  Handle
11472         unsigned patterns and multiplication by constants.
11473         (vect_pattern_recog_1): Update vect_recog_func references.  Use
11474         statement information from the statement returned from pattern
11475         detection functions.
11476         (vect_pattern_recog): Update vect_recog_func reference.
11477         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11478         multiplication by a constant use the type of the other operand.
11479
11480 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
11481
11482         PR rtl-optimization/49145
11483         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11484
11485 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
11486
11487         PR debug/49262
11488         * dwarf2out.c (native_encode_initializer): Decrement count in each
11489         iteration.
11490
11491         PR debug/49294
11492         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11493         non-MODE_INT modes.
11494
11495         PR c++/49264
11496         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11497         if stmt folded into nothing.
11498         * tree-inline.c (fold_marked_statements): If a builtin at the end of
11499         a bb folded into nothing, just update cgraph edges and move to next bb.
11500         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11501         to be NULL.  Don't compute count and frequency if new_call is NULL.
11502
11503 2011-06-04  Diego Novillo  <dnovillo@google.com>
11504
11505         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11506         (cgraph.o): Likewise.
11507         (cgraphunit.o): Likewise.
11508         * cgraphunit.c: Include lto-streamer.h
11509         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11510         if LTO is enabled.
11511         * lto-streamer-in.c (unpack_value_fields): Call
11512         streamer_hooks.unpack_value_fields if set.
11513         (lto_materialize_tree): For unhandled nodes, first try to
11514         call lto_streamer_hooks.alloc_tree, if it exists.
11515         (lto_input_ts_decl_common_tree_pointers): Move reading of
11516         DECL_INITIAL to lto_streamer_read_tree.
11517         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11518         (lto_streamer_read_tree): New.
11519         (lto_reader_init): Rename from lto_init_reader.
11520         Move initialization code to lto/lto.c.
11521         * lto-streamer-out.c (pack_value_fields): Call
11522         streamer_hooks.pack_value_fields if set.
11523         (lto_output_tree_ref): For tree nodes that are not normally indexable,
11524         call streamer_hooks.indexable_with_decls_p before giving up.
11525         (lto_output_ts_decl_common_tree_pointers): Move handling
11526         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11527         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11528         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
11529         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11530         (lto_streamer_write_tree): New.
11531         (lto_output): Call lto_streamer_init directly.
11532         (lto_writer_init): Remove.
11533         * lto-streamer.c (streamer_hooks): New.
11534         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11535         instead of lto_preload_common_nodes.
11536         (lto_is_streamable): Move from lto-streamer.h
11537         (lto_streamer_hooks_init): New.
11538         (streamer_hooks): New.
11539         (streamer_hooks_init): New.
11540         * lto-streamer.h (struct output_block): Forward declare.
11541         (struct lto_input_block): Likewise.
11542         (struct data_in): Likewise.
11543         (struct bitpack_d): Likewise.
11544         (struct streamer_hooks): Declare.
11545         (streamer_hooks): Declare.
11546         (lto_streamer_hooks_init): Declare.
11547         (lto_streamer_write_tree): Declare.
11548         (lto_streamer_read_tree): Declare.
11549         (streamer_hooks_init): Declare.
11550         (lto_is_streamable): Move to lto-streamer.c
11551
11552 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11553
11554         * longlong.h (smul_ppmm): The resulting register pair contains the
11555         higher order word first.
11556
11557 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11558
11559         PR tree-optimization/46728
11560         * builtins.c (powi_table): Remove.
11561         (powi_lookup_cost): Remove.
11562         (powi_cost): Remove.
11563         (expand_powi_1): Remove.
11564         (expand_powi): Remove.
11565         (expand_builtin_pow_root): Remove.
11566         (expand_builtin_pow): Remove.
11567         (expand_builtin_powi): Eliminate handling of constant exponent.
11568         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11569
11570 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11571
11572         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11573
11574 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11575
11576         * dce.c (reset_unmarked_insns_debug_uses): New.
11577         (delete_unmarked_insns): Skip debug insns.
11578         (prescan_insns_for_dce): Likewise.
11579         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11580         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11581         active reg can be found.
11582         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
11583         (convert_regs_1): Use it.
11584
11585 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11586
11587         * tree-pretty-print.c (dump_function_header): Add flags.
11588         Don't dump decl_uid with nouid.
11589         * tree-pretty-print.h (dump_function_header): Adjust.
11590         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11591         * passes.c (pass_init_dump_file): Pass dump_flags on.
11592         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11593
11594 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
11595
11596         PR bootstrap/49270
11597         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11598
11599 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
11600
11601         PR tree-optimization/49243
11602         * calls.c (setjmp_call_p): Also check if fndecl has the
11603         returns_twice attribute.
11604
11605 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11606
11607         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11608         -ffast-math etc.
11609
11610 2011-06-06  Richard Henderson  <rth@redhat.com>
11611             Georg-Johann Lay  <avr@gjlay.de>
11612
11613         PR target/42210
11614         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11615         New predicates.
11616         * config/avr/avr.md ("insv"): New insn expander.
11617         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11618         "*insv.not.io", "*insv.reg"): New insns.
11619
11620 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
11621
11622         PR target/49285
11623         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11624         to nonimmediate_operand from memory_operand for the operand that is to
11625         be forced to memory by the expander.  Lose the constraints.
11626
11627 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11628
11629         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11630         EH return when delayed branches are disabled.
11631
11632 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
11633
11634         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11635         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
11636         calculation.
11637         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11638         Simplify MODE_V1DF and MODE_V2SF handling.
11639         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11640         Simplify MODE_SF handling.
11641
11642 2011-06-04  Jan Hubicka  <jh@suse.cz>
11643
11644         PR tree-optimization/48893
11645         PR tree-optimization/49091
11646         PR tree-optimization/49179
11647         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11648         Bounds check.
11649
11650 2011-06-04  Jan Hubicka  <jh@suse.cz>
11651
11652         PR lto/48954
11653         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11654         bitmaps.
11655
11656 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11657
11658         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11659
11660 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
11661
11662         PR target/49281
11663         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11664         to be strictly smaller than 1 << shiftcount.
11665
11666 2011-06-04  Jan Hubicka  <jh@suse.cz>
11667
11668         PR tree-optimize/48929
11669         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11670         of empty predicate.
11671
11672 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
11673
11674         PR debug/48333
11675         * calls.c (emit_call_1): Prefer the __builtin declaration of
11676         builtin functions.
11677
11678 2011-06-03   Diego Novillo  <dnovillo@google.com>
11679
11680         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11681         (lto_input_tree_pointers): Likewise.
11682         * lto-streamer-out.c (pack_value_fields): Likewise.
11683         (lto_output_tree_pointers): Likewise.
11684         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11685         and OPTIMIZATION_NODE.
11686
11687 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11688
11689         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11690         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11691         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11692         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11693         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11694         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11695         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11696         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11697         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11698         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11699         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11700         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11701         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11702         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11703         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11704         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11705         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11706         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11707         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11708         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11709         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11710         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11711         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11712         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11713         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11714         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11715         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11716         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11717         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11718         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11719         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11720         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11721         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11722         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11723         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11724         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11725         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11726         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11727         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11728         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11729         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11730         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11731         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11732         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11733         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11734         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11735         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11736         * system.h (MD_UNWIND_SUPPORT): Poison.
11737         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11738         * doc/tm.texi: Regenerate.
11739         * unwind-dw2.c: Include md-unwind-support.h instead of
11740         MD_UNWIND_SUPPORT.
11741         * config/ia64/unwind-ia64.c: Likewise.
11742         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11743
11744 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
11745
11746         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11747
11748 2011-06-03  Richard Henderson  <rth@redhat.com>
11749             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11750
11751         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11752         (sigill_hdlr): Correct insn, insn size.
11753         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11754
11755 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11756
11757         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11758         t-slibgcc-dummy.
11759         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11760         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11761         * config/mips/t-iris: Remove.
11762         * config/mips/t-irix6: New file.
11763         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11764
11765 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11766
11767         * Makefile.in (LIB2ADDEHDEP): Remove.
11768         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11769         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11770         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11771         * config/t-darwin (LIB2ADDEHDEP): Remove.
11772         * config/t-freebsd (LIB2ADDEHDEP): Remove.
11773         * config/t-linux (LIB2ADDEHDEP): Remove.
11774
11775 2011-06-03  Diego Novillo  <dnovillo@google.com>
11776
11777         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11778         (lto_register_var_decl_in_symtab): Likewise.
11779         (lto_register_function_decl_in_symtab): Likewise.
11780         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11781         logic to uniquify_nodes.
11782
11783 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11784
11785         * config/alpha/t-osf5: Remove.
11786         * config/alpha/t-osf-pthread: Remove.
11787         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11788         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11789
11790 2011-06-03  Julian Brown  <julian@codesourcery.com>
11791
11792         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11793         (strongarm1110): Use strongarm tuning.
11794         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11795         * config/arm/arm.c (arm_strongarm_tune): New.
11796         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11797         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11798         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11799         setting, using previous defaults or 1 for Cortex-A5.
11800         (arm_option_override): Set max_insns_skipped from current tuning.
11801
11802 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
11803
11804         * doc/install.texi (Options specification): Document --with-specs.
11805
11806 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11807
11808         * config/arm/neon.md (orndi3_neon): Actually split it.
11809
11810 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11811
11812         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11813         * var-tracking.c (reverse_op): Limite recurse depth to 5.
11814
11815 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11816
11817         PR debug/47590
11818         * target.def (delay_sched2, delay_vartrack): New.
11819         * doc/tm.texi.in: Update.
11820         * doc/tm.texi: Rebuild.
11821         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11822         * var-tracking.c (gate_handle_var_tracking): Likewise.
11823         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11824         (bfin_flag_var_tracking): Drop.
11825         (output_file_start): Don't save and override flag_var_tracking.
11826         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11827         (bfin_reorg): Test original variables.
11828         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11829         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11830         (ia64_flag_var_tracking): Drop.
11831         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11832         (ia64_file_start): Don't save and override flag_var_tracking.
11833         (ia64_override_options_after_change): Ditto
11834         flag_schedule_insns_after_reload.
11835         (ia64_reorg): Test original variables.
11836         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11837         (picochip_flag_var_tracking): Drop.
11838         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11839         (picochip_option_override): Don't save and override
11840         flag_schedule_insns_after_reload.
11841         (picochip_asm_file_start): Ditto flag_var_tracking.
11842         (picochip_reorg): Test original variables.
11843         * config/spu/spu.c (spu_flag_var_tracking): Drop.
11844         (TARGET_DELAY_VARTRACK): Define.
11845         (spu_var_tracking): New.
11846         (spu_machine_dependent_reorg): Call it.
11847         (asm_file_start): Don't save and override flag_var_tracking.
11848
11849 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
11850
11851         PR target/49163
11852         * config/sh/predicates.md (general_movsrc_operand): Return 0
11853         for memory and memory subreg of which address is an invalid
11854         indexed address for QI and HImode.
11855         (general_movdst_operand): Likewise.
11856
11857 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11858
11859         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11860         edges only, when there is a non-local label in the function.
11861         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11862
11863 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11864
11865         * config/i386/constraints.md (Y3): New register constraint.
11866         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11867         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11868         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11869         *sse2_interleave_lowv2df.
11870
11871 2011-06-02  Julian Brown  <julian@codesourcery.com>
11872
11873         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11874         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11875         (arm_cortex_a5_tune): New.
11876
11877 2011-06-02  Julian Brown  <julian@codesourcery.com>
11878
11879         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11880         * config/arm/arm.c (arm_default_branch_cost): New.
11881         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11882         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11883         (arm_fa726_tune): Set branch_cost field using
11884         arm_default_branch_cost.
11885         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11886         current_tune structure.
11887         * dojump.c (tm_p.h): Include file.
11888
11889 2011-06-02  Julian Brown  <julian@codesourcery.com>
11890
11891         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11892         tuning.
11893         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11894         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11895         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11896         field.
11897         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11898         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11899         (arm_fa726te_tune): Add prefer_constant_pool setting.
11900         (arm_v6t2_tune, arm_cortex_tune): New.
11901         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11902         prefer_constant_pool setting.
11903
11904 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
11905
11906         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11907         switch statement.
11908         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11909         (*movdf_internal) <case 6,7,8>: Ditto.
11910
11911         * config/i386/constraints.md (Y4): New register constraint.
11912         * config/i386/sse.md (vec_set<mode>_0): Merge with
11913         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11914         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11915         *vec_extractv2di_1_sse.
11916         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11917         and *vec_concatv2di_rex64_sse.
11918
11919 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
11920
11921         PR target/48807
11922         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11923         of cgraph_local_info for null before attempting to use it.
11924
11925 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
11926
11927         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11928         (current_function_dynamic_alloc_count): Delete.
11929         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11930         (expand_builtin_nonlocal_goto): Remove obsolete comment.
11931         (expand_builtin_update_setjmp_buf): Remove dead code.
11932         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11933         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11934         support.
11935         * function.c (instantiate_virtual_regs): Likewise.
11936         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11937         for a block with a single abnormal incoming edge.
11938         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11939         (SETJMP_VIA_SAVE_AREA): Delete.
11940         * config/sparc/sparc-protos.h (load_got_register): Declare.
11941         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11942         (load_got_register): Make global.
11943         (sparc_frame_pointer_required): Add 'static'.
11944         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
11945         (sparc_builtin_setjmp_frame_value): New function.
11946         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11947         (save_stack_nonlocal): New expander.
11948         (restore_stack_nonlocal): Likewise.
11949         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11950         (nonlocal_goto_internal): New insn.
11951         (goto_handler_and_restore): Delete.
11952         (builtin_setjmp_setup): Likewise.
11953         (do_builtin_setjmp_setup): Likewise.
11954         (setjmp): Likewise.
11955         (builtin_setjmp_receiver): New expander.
11956
11957 2011-06-01  David Li  <davidxl@google.com>
11958
11959         PR middle-end/49261
11960         * tree-pretty-print.c (dump_function_header): Format cleanup.
11961
11962 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
11963
11964         PR target/49238
11965         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11966         needed when original operands are used for msw_skip comparison.
11967
11968 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11969
11970         PR debug/49250
11971         * var-tracking.c (add_uses, add_stores): Don't call
11972         cselib_subst_to_values on ENTRY_VALUE.
11973
11974 2011-06-01  Diego Novillo  <dnovillo@google.com>
11975
11976         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11977         output_record_start with LTO_null instead of output_zero.
11978         (lto_output_ts_binfo_tree_pointers): Likewise.
11979         (lto_output_tree): Likewise.
11980         (output_eh_try_list): Likewise.
11981         (output_eh_region): Likewise.
11982         (output_eh_lp): Likewise.
11983         (output_eh_regions): Likewise.
11984         (output_bb): Likewise.
11985         (output_function): Likewise.
11986         (output_unreferenced_globals): Likewise.
11987         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11988         instead of NUM_TREE_CODES.
11989         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11990         (lto_output_int_in_range): Change << to >> when shifting VAL.
11991
11992 2011-06-01  Diego Novillo  <dnovillo@google.com>
11993
11994         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11995         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11996
11997 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11998
11999         PR target/45074
12000         * optabs.h (valid_multiword_target_p): Declare.
12001         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12002         doing multi-word operations.
12003         * optabs.c (expand_binop): Likewise.
12004         (expand_doubleword_bswap): Likewise.
12005         (expand_absneg_bit): Likewise.
12006         (expand_unop): Likewise.
12007         (expand_copysign_bit): Likewise.
12008         (multiword_target_p): New function.
12009
12010 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12011
12012         PR rtl-optimization/48830
12013         PR rtl-optimization/48808
12014         PR rtl-optimization/48792
12015         * reload.c (push_reload): Check contains_reg_of_mode.
12016         * reload1.c (strip_paradoxical_subreg): New function.
12017         (gen_reload_chain_without_interm_reg_p): Use it to handle
12018         paradoxical subregs.
12019         (emit_output_reload_insns, gen_reload): Likewise.
12020
12021 2011-06-01  David Li  <davidxl@google.com>
12022
12023         * predict.c : Change pass name
12024         * ipa.c: Ditto.
12025         * dce.c: Ditto.
12026         * tree-profile.c: Ditto.
12027         * except.c: Ditto.
12028
12029 2011-06-01  David Li  <davidxl@google.com>
12030
12031         * tree-pretty-print.c (dump_function_header): New function.
12032         * final.c (rest_of_clean_state): Use header dumper.
12033         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12034         * passes.c (pass_init_dump_file): Use header dumper.
12035
12036 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12037
12038         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12039         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12040         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12041         New functions.
12042         (mem_loc_descriptor): Use them.
12043
12044         * var-tracking.c (create_entry_value): New function.
12045         (vt_add_function_parameter): Use it.
12046
12047 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12048
12049         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12050         Include <signal.h>, <ucontext.h>.
12051         (sigill_caught): Define.
12052         (sigill_hdlr): New function.
12053         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12054         insns can be executed.
12055         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12056         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12057
12058 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12059
12060         * config/t-slibgcc-darwin: Move to ...
12061         * config/t-slibgcc-dummy: ... this.  Clarify comments.
12062         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12063         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12064         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12065         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
12066         Remove i386/t-crtstuff from tmake_file.
12067         (i[34567]86-*-solaris2*): Remove t-svr4,
12068         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12069         t-slibgcc-dummy.
12070         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12071         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12072         sparc/t-crtfm from tmake_file.
12073         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12074         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12075         Remove extra_parts.
12076         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12077         * config/i386/t-nwld (SHLIB_LINK): Remove.
12078         * config/i386/t-rtems-i386: Rename to ...
12079         * config/i386/t-rtems: ... this.
12080         ($(T)crti.o, $(T)crtn.o): Remove.
12081         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12082         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12083         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12084         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12085         EXTRA_MULTILIB_PARTS): Remove.
12086         * config/sparc/t-sol2-64: Likewise.
12087         * config/sparc/t-sol2: Remove.
12088         * config/sparc/t-crtin: Remove.
12089         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12090         * config/i386/gmon-sol2.c: Remove.
12091         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12092         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12093         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12094         * config/i386/sol2-gc1.asm: Remove.
12095         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12096         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12097         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12098         * config/t-slibgcc-sld: Remove.
12099
12100 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12101
12102         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12103         base_type_for_mode with op_mode instead of mode.
12104
12105 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
12106
12107         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
12108         Cortex-A15.
12109         * config/arm/arm-tune.md: Regenerate.
12110         * config/arm/arm-tables.opt: Regenerate.
12111         * config/arm/arm.c (FL_DIV): Rename...
12112         (FL_THUMB_DIV): ... to this.
12113         (FL_ARM_DIV): Define.
12114         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12115         (arm_arch_hwdiv): Remove.
12116         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12117         (arm_issue_rate): Add cortexr5.
12118         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12119         __ARM_ARCH_EXT_IDIV__.
12120         (TARGET_IDIV): Define.
12121         (arm_arch_hwdiv): Remove.
12122         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12123         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12124         (divsi3, udivsi3): New patterns.
12125         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12126         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12127
12128 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12129
12130         * ipa-utils.c (ipa_dfs_info): New field scc_no.
12131         * ipa-utils.c (searchc): Set scc_no.
12132
12133 2011-06-01  Martin Jambor  <mjambor@suse.cz>
12134
12135         * ipa-utils.c (searchc_env): New field allow_overwritable.
12136         (searchc): do not ignore edges to overwritable nodes if indicated
12137         by env->allow_overwritable.
12138         (ipa_reduced_postorder): Set env.allow_overwritable.
12139
12140 2011-06-01  Richard Guenther  <rguenther@suse.de>
12141
12142         * tree.c (free_lang_data): Do not reset boolean_type_node nor
12143         char_type_node.
12144         * lto-streamer.c (lto_record_common_node): Take node pointer,
12145         do not register types.
12146         (lto_preload_common_nodes): Explicitly skip preloading nodes
12147         that differ between frontends.
12148
12149 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12150
12151         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12152         NON_FLOAT_REGS.
12153
12154 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
12155
12156         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12157         parameter value for dump. Dump cost on outermost call only.
12158         (rs6000_memory_move_cost): Dump cost on outermost call only.
12159
12160 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12161
12162         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12163         DW_OP_GNU_convert ops.
12164
12165         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12166         cselib_preserve_constants.
12167         (cselib_lookup_1): If cselib_preserve_constants,
12168         a new VALUE is being created for REG and there is a VALUE for the
12169         same register in wider mode, add another loc with lowpart SUBREG of
12170         the wider VALUE.
12171         (cselib_subst_to_values): Handle ENTRY_VALUE.
12172         * var-tracking.c  (replace_expr_with_values): Return NULL for
12173         ENTRY_VALUE too.
12174         * dwarf2out.c (convert_descriptor_to_signed): New function.
12175         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12176         instead of two shifts.
12177         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12178         the right mode if needed.
12179         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12180         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12181         convert_descriptor_to_signed.
12182         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12183         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12184
12185         PR target/48688
12186         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12187
12188 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12189
12190         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12191         of X87MODEI12 and SWI48x instead of SSEMODEI24.
12192         (SWI248x): New mode iterator, rename from X87MODEI.
12193         (X87MODEI): Remove mode iterator.
12194         (X87MODEI12): Ditto.
12195         (SSEMODEI24): Ditto.
12196
12197 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12198
12199         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12200         * doc/invoke.texi: Document max-vartrack-expr-depth.
12201         * var-tracking.c (EXPR_DEPTH): New.
12202         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12203
12204 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12205
12206         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12207         * config/i386/sse.md: Add n to negated FMA pattern names.
12208
12209 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12210
12211         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12212
12213 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
12214
12215         * gengtype-state.c (read_state_params_structs): Initialize previous.
12216
12217 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12218
12219         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12220         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12221
12222 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
12223
12224         * config/i386/i386.md (*movtf_internal): Avoid allocating general
12225         registers.  Penalize F*r->o alternative to prevent partial memory
12226         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
12227         CONST_DOUBLE immediates when optimizing function for size.  Do not move
12228         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12229         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12230         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12231         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12232         alternatives.
12233         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12234
12235         (fp_register_operand splitters): Use fp_register_operand
12236         constraint.  Do not use FP_REG_P in insn condition.
12237         (any_fp_register_operand splitters): Use any_fp_register_operand
12238         constraint.  Do not use ANY_FP_REG_P in insn condition.
12239
12240 2011-05-31  Jan Hubicka  <jh@suse.cz>
12241
12242         * cgraph.h (cgraph_inline_failed_t): Give enum a name
12243         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12244         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12245         (lto_output_edge): Use output_enum and var_len_unsigned.
12246         (lto_output_varpool_node): Likewise.
12247         (input_overwrite_node): Do not take resolution parameter;
12248         extract it from a bitpack.
12249         (input_node): Do not read resolution; use input_enum and
12250         var_len_unsigned.
12251         (input_varpool_node): Likewise.
12252         (input_edge): Likewise.
12253         (input_cgraph_1): Likewise.
12254
12255 2011-05-31  Richard Guenther  <rguenther@suse.de>
12256
12257         * gimple.c (gimple_register_canonical_type): Do not register
12258         any types via gimple_register_type.
12259
12260 2011-05-31  Jan Hubicka  <jh@suse.cz>
12261
12262         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12263         of thunks.
12264
12265 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
12266
12267         PR rtl-optimization/49235
12268         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12269         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12270
12271 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
12272
12273         PR tree-optimization/49093
12274         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12275         data references.
12276
12277 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
12278
12279         PR debug/49047
12280         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12281         for concrete functions containing the code of cloned functions.
12282
12283 2011-05-31  Richard Guenther  <rguenther@suse.de>
12284
12285         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12286         to ...
12287         (forward_propagate_into_comparison_1): ... this.
12288         (forward_propagate_comparison): Rename to ...
12289         (forward_propagate_into_comparison): ... this.  Split out
12290         real forward propagation code to ...
12291         (forward_propagate_comparison): ... this.
12292         (forward_propagate_into_gimple_cond): Remove looping.
12293         (forward_propagate_into_cond): Likewise.
12294         (simplify_not_neg_expr): Return whether we have done something.
12295         (simplify_gimple_switch): Likewise.
12296         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12297         (ssa_forward_propagate_and_combine): ... this.  Re-structure
12298         to do a forward forward-propagation walk on BBs and a backward
12299         stmt combining walk on BBs.  Consistently re-scan changed statements.
12300         (pass_forwprop): Adjust.
12301
12302 2011-05-30  Ian Lance Taylor  <iant@google.com>
12303
12304         * godump.c (go_format_type): Correct length of name added to
12305         obstack for anonymous field.
12306
12307 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12308
12309         PR target/49186
12310         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12311         part of the second operand is 0.
12312
12313 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
12314
12315         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12316         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
12317         to memory for !TARGET_MEMORY_MISMATCH_STALL.
12318         (*movdf_internal_rex64): Do not penalize F->r alternative.
12319         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12320         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
12321         when optimizing function for size.  Do not move CONST_DOUBLEs
12322         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12323         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
12324         SUBREGs.  Do not check for MEM_P operands in the insn condition,
12325         check for ANY_FP_REGNO_P instead.
12326         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12327         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12328         function for speed.
12329         * config/i386/i386.c (ix86_option_override_internal): Do not
12330         set TARGET_INTEGER_DFMODE_MOVES here.
12331
12332 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12333
12334         PR target/49168
12335         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12336
12337 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12338
12339         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12340         DW_TAG_rvalue_reference_type even for
12341         -gdwarf-4 -fno-debug-types-section.
12342
12343 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12344
12345         PR tree-optimization/46728
12346         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12347         (build_and_insert_binop): New.
12348         (gimple_expand_builtin_pow): Reorder args for
12349         build_and_insert_call; use build_and_insert_binop; add more
12350         optimizations for fractional exponents.
12351
12352 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
12353
12354         PR bootstrap/49190
12355
12356         Revert:
12357         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12358
12359         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12360         tree_common.
12361         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12362         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12363         TS_BASE instead of TS_COMMON.
12364         * varasm.c (assemble_name): Remove assert.
12365
12366 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
12367
12368         * config.gcc: Keep obselete list sorted.
12369
12370 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
12371             Eric Botcazou  <ebotcazou@adacore.com>
12372
12373         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12374         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12375         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12376         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12377         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12378
12379 2011-05-30  Richard Guenther  <rguenther@suse.de>
12380
12381         * gimple.c (gimple_types_compatible_p_1): Compare record
12382         and union type members properly.
12383
12384 2011-05-30  Richard Guenther  <rguenther@suse.de>
12385
12386         PR tree-optimization/49210
12387         * ipa-split.c (split_function): Care for the case where the call
12388         result is not trivially convertible to the result holding variable.
12389
12390 2011-05-30  Richard Guenther  <rguenther@suse.de>
12391
12392         PR tree-optimization/49218
12393         * tree-vrp.c (adjust_range_with_scev): Properly check whether
12394         overflow occured.
12395
12396 2011-05-30  Richard Guenther  <rguenther@suse.de>
12397
12398         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12399         New function split out from ...
12400         (forward_propagate_into_gimple_cond): ... here.  Adjust.
12401         (forward_propagate_into_cond): Likewise.
12402         (forward_propagate_comparison): Also propagate into
12403         comparisons on assignment RHS.  Change return value to
12404         behave similar to forward_propagate_into_cond.
12405         (tree_ssa_forward_propagate_single_use_vars): Handle
12406         strict-overflow warnings properly for forward_propagate_comparison.
12407
12408 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12409
12410         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12411         from plugin linker.
12412         * configure: Regenerate.
12413
12414 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
12415
12416         PR tree-optimization/49199
12417         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12418         non-reduction operands are either defined in the loop or by induction.
12419
12420 2011-05-29  Xinliang David Li  <davidxl@google.com>
12421
12422         * opts-global.c (handle_common_deferred_options): Handle new options.
12423         * passes.c (register_one_dump_file): Call register_pass_name.
12424         (execute_one_pass): Check explicit enable/disable flag.
12425         (passr_hash): New function.
12426         (passr_eq): Ditto.
12427         (register_pass_name): Ditto.
12428         (get_pass_by_name): Ditto.
12429         (pass_hash): Ditto.
12430         (pass_eq): Ditto.
12431         (enable_pass): Ditto.
12432         (disable_pass): Ditto.
12433         (is_pass_explicitly_enabled_or_disabled): Ditto.
12434
12435 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
12436
12437         * config/i386/i386.md (*movoi_internal_avx): Use
12438         standard_sse_constant_opcode for alternative 0.
12439         (*movti_internal_sse): Ditto.
12440         (*movti_internal_rex64): Use standard_sse_constant_opcode for
12441         alternative 2.
12442         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12443         sselog1 type moves.
12444         (*movsi_internal): Ditto.
12445         (*movdi_internal): Ditto.  Add ssecvt type moves.
12446
12447 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12448
12449         PR target/48830
12450         * rtlanal.c (simplify_subreg_regno): Adjust comment.
12451
12452 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
12453
12454         PR rtl-optimization/49095
12455         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12456         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12457
12458 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12459
12460         PR target/43995
12461         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12462         recurse_p argument.  Only follow register copies if it is set,
12463         and prevent mips_find_pic_call_symbol from recursing.
12464         (mips_find_pic_call_symbol): Add a recurse_p argument.
12465         Pass it to mips_pic_call_symbol_from_set.
12466         (mips_annotate_pic_calls): Update accordingly.
12467
12468 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
12469
12470         * emit-rtl.c (try_split): Use a loop to search for
12471         NOTE_INSN_CALL_ARG_LOCATIONs.
12472
12473 2011-05-29  Richard Guenther  <rguenther@suse.de>
12474
12475         PR tree-optimization/49217
12476         * ipa-pure-const.c (propagate_pure_const): Fix typos.
12477
12478 2011-05-28  Jan Hubicka  <jh@suse.cz>
12479
12480         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12481         length.
12482         (string_slot_free): Remove
12483         (create_output_block): Initialize obstack.
12484         (destroy_output_block): Free obstack.
12485         (lto_string_index): Add PERSISTENT parameter; do not duplicate
12486         the string unless it needs to be added into the hash.
12487         (lto_output_string_with_length): Add persistent attribute;
12488         handle NULL strings.
12489         (lto_output_string): Add PERSISTENT parameter.
12490         (output_string_cst, output_identifier): Simplify.
12491         (lto_output_location_bitpack): Update.
12492         (lto_output_builtin_tree): Update.
12493         * lto-streamer.h (struct output_block): Add obstack.
12494         (lto_output_string, lto_output_string_with_length): Remove
12495         declarations; functions are static now.
12496
12497 2011-05-28  Jan Hubicka  <jh@suse.cz>
12498
12499         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12500         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12501         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12502         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12503         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12504         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12505         unpack_ts_decl_with_vis_value_fields,
12506         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12507         lto_get_builtin_tree): Use enum and variable length i/o.
12508         * basic-block.h (profile_status_d): Add PROFILE_LAST.
12509         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12510         New functions.
12511         (bp_pack_enum, bp_unpack_enum): New macros.
12512
12513 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12514
12515         * genrecog.c: Remove redundant forward declarations.
12516
12517 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12518
12519         * config.gcc: Deprecate mips*-*-openbsd*.
12520
12521 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
12522
12523         PR bootstrap/49195
12524         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12525         for match_op_dup.
12526
12527 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
12528
12529         PR middle-end/48981
12530         * gengtype.c (vec_prefix_type): New function.
12531         (note_def_vec): Use vec_prefix_type and change the length
12532         attribute to be based on the prefix.
12533         * vec.c: Include coretypes.h before vec.h.
12534         (struct vec_prefix): Remove.
12535         (vec_gc_p_reserve): Change the offsetof to sizeof.
12536         (vec_gc_p_reserve_exact): Likewise.
12537         (vec_heap_p_reserve): Likewise.
12538         (vec_heap_p_reserve_exact): Likewise.
12539         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12540         (vec_stack_p_reserve): Change the offsetof to sizeof.
12541         (vec_stack_p_reserve_exact): Likewise.
12542         * vec.h (struct vec_prefix): New struct definition.
12543         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12544         (VEC_T_GTY(T,B)): Likewise.
12545         (DEF_VEC_FUNC_P(T)): Use prefix field.
12546         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12547         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12548
12549 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12550
12551         PR tree-optimization/46728
12552         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12553         (powi_as_mults): Add gimple_set_location.
12554         (build_and_insert_call): New.
12555         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12556         0.5, 0.25, 0.75, 1./3., or 1./6.
12557
12558 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
12559
12560         * doc/contrib.texi: Update copyright years.
12561         (Contributors): Add Zdenek Sojka.
12562
12563 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
12564
12565         * c-decl.c (c_push_function_context): Copy the current statement
12566         list stack.
12567         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12568         (finish_struct): Call building_stmt_list_p instead of checking
12569         cur_stmt_list.
12570         * c-parser.c (c_parser_postfix_expression): Likewise.
12571         * c-typeck.c (c_end_compound_stmt): Likewise.
12572         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12573         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12574         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12575         (free_stmt_list): Likewise.
12576         * tree.h (struct tree_statement_list): Include typed_tree instead
12577         of tree_common.
12578         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12579         as TS_TYPED instead of TS_COMMON.
12580
12581 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12582             Uros Bizjak  <ubizjak@gmail.com>
12583
12584         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12585         (HAVE_AS_IX86_TLSGDPTL): Define.
12586         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12587         (HAVE_AS_IX86_TLSLDMPLT): Define.
12588         * configure: Regenerate.
12589         * config.in: Regenerate.
12590         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12591         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12592         TARGET_SUN_TLS, use @tlsgdplt or @plt.
12593         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12594         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12595         @tlsldmplt or @plt.
12596         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12597
12598 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12599
12600         * sched-int.h (struct _haifa_deps_insn_data): New members cond
12601         and reverse_cond.
12602         (INSN_COND, INSN_REVERSE_COND): New macros.
12603         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12604         once.
12605         (sched_get_condition_with_rev): Cache the results, and look them up
12606         if possible.
12607         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12608         are clobbered by the current insn.
12609         * target.def (exposed_pipline): New sched data hook.
12610         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12611         * doc/tm.texi: Regenerate.
12612
12613 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12614
12615         PR tree-optimization/49170
12616         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
12617         sincos or cexp.
12618
12619 2011-05-27  Richard Guenther  <rguenther@suse.de>
12620
12621         PR middle-end/49189
12622         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12623         of comparisons.
12624
12625 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
12626
12627         * haifa-sched.c (sched_scan_info): Remove.
12628         (schedule_block): Call sched_extend_luids rather than sched_init_luids
12629         with NULL args.
12630         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12631         Remove functions.
12632         (sched_scan): Remove.
12633         (sched_extend_luids): Renamed from luids_extend_insn and no longer
12634         static.  All callers changed.
12635         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12636         static.  All callers changed.
12637         (sched_init_luids): Remove all arguments except the first.  All
12638         callers changed.  Don't use sched_scan.
12639         (haifa_init_h_i_d): Likewise.
12640         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12641         manually rather than using sched_init_luids.  Likewise with
12642         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12643         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12644         rather than sched_init_luids with NULL args.
12645         * sel-sched-ir.c (new_insns): Remove variable.
12646         (sched_scan): New static function, previously in haifa-sched.c.  Remove
12647         all arguments but the first two; all callers changed.
12648         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12649         rather than sched_init_luids.
12650         (sel_init_bbs): Remove second argument.  All callers changed.
12651         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12652         with NULL arguments.
12653         (create_insn_rtx_from_pattern): Likewise.
12654         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12655         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12656         (sched_init_insn_luid, sched_extend_luids): Declare.
12657         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12658         declarations.
12659
12660 2011-05-27  Richard Guenther  <rguenther@suse.de>
12661
12662         PR middle-end/49177
12663         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12664         A CMP B ? (T) true : (T) false for non-integral types T again.
12665
12666 2011-05-27  Jan Hubicka  <jh@suse.cz>
12667
12668         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12669         so 0 means NULL string.
12670         (lto_output_string_with_length): ... here.
12671         (lto_output_string, output_string_cst, output_identifier): Update
12672         handling of NULL strings.
12673         (lto_output_location_bitpack): New function.
12674         (lto_output_location): Use it.
12675         (lto_output_tree_ref): Use output_record_start.
12676         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12677         len values.
12678         * lto-streamer-in.c (string_for_index): Break out from ...; offset
12679         values by 1.
12680         (input_string_internal): ... here;
12681         (input_string_cst, input_identifier, lto_input_string): Update handling
12682         of NULL strings.
12683         (lto_input_location_bitpack): New function
12684         (lto_input_location): Use it.
12685         (unpack_ts_type_common_value_fields): Pack align & alias in var len
12686         values.
12687         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12688         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12689         (bp_pack_value): Sanity check the value range.
12690         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12691         New functions.
12692         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12693         New functions.
12694
12695 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
12696
12697         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12698         call_arg_location instructions down the floor.
12699
12700 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
12701
12702         PR rtl-optimization/49154
12703         * ira.c (setup_pressure_classes): Process class without sublcasses
12704         as a candidate for pressure classes.
12705
12706 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
12707
12708         PR rtl-optimization/48575
12709         * genrecog.c (position_type): New enum.
12710         (position): New structure.
12711         (decision): Use position structure instead of a string.
12712         (root_pos, peep2_insn_pos_list): New variables.
12713         (next_position, compare_positions): New functions.
12714         (new_decision): Use position structures instead of strings.
12715         (maybe_both_true): Likewise.
12716         (change_state): Likewise.
12717         (write_tree): Likewise.
12718         (make_insn_sequence): Likewise.
12719
12720 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12721
12722         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12723         TS_BASE instead of TS_COMMON.
12724         (find_decls_types_r): Check for TS_TYPED structure before looking at
12725         TREE_TYPE.
12726         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12727         Add chain field.
12728         (BLOCK_CHAIN): Use new chain field.
12729
12730 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
12731
12732         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12733         moves expensive on Power7 also.
12734
12735 2011-05-26  Richard Guenther  <rguenther@suse.de>
12736
12737         * fold-const.c (fold_unary_loc): Remove bogus code.
12738
12739 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
12740
12741         * tree.h (struct tree_identifier): Inherit from tree_typed, not
12742         tree_common.
12743         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12744         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12745         TS_BASE instead of TS_COMMON.
12746         * varasm.c (assemble_name): Remove assert.
12747
12748 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12749
12750         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12751         substituted first.
12752         * libgcc-std.ver: Delete file.
12753
12754 2011-05-26  Richard Guenther  <rguenther@suse.de>
12755
12756         PR tree-optimization/48702
12757         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12758         only when we know the base address is within bounds.
12759         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12760         assume the base address of TARGET_MEM_REFs is in bounds.
12761
12762 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12763
12764         PR target/49099
12765         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12766         declaration in TARGET_SOLARIS.
12767
12768 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
12769
12770         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12771         The instruction is then expanded explicitly.
12772         (supported_compare): Callable instruction.
12773         (compare): Likewise.
12774
12775 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12776
12777         PR c++/49165
12778         * gimplify.c (shortcut_cond_r): Don't special case
12779         COND_EXPRs if they have void type on one of their arms.
12780
12781 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
12782
12783         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12784         to reduce duplication, and to achieve a slightly more logical order
12785         of operations.
12786
12787 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
12788
12789         PR tree-optimization/49161
12790         * tree-vrp.c (struct case_info): New type.
12791         (compare_case_labels): Sort case_info structs instead of
12792         trees, and not primarily by CASE_LABEL uids but by
12793         label_for_block indexes.
12794         (find_switch_asserts): Put case labels into struct case_info
12795         array instead of TREE_VEC, adjust sorting, compare label_for_block
12796         values instead of CASE_LABELs.
12797
12798 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12799
12800         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12801         ("orndi3_neon"): Likewise.
12802         ("bic<mode>3_neon"): Likewise.
12803
12804 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
12805
12806         PR tree-optimization/49038
12807         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12808         Ensure at least one epilogue iteration if required by data
12809         accesses with gaps.
12810         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12811         to mark loops that require peeling for gaps.
12812         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12813         (vect_get_known_peeling_cost): Take peeling for gaps into
12814         account.
12815         (vect_transform_loop): Generate epilogue if required by data
12816         access with gaps.
12817         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12818         loop as requiring an epilogue if there are gaps in the end of
12819         the strided group.
12820
12821 2011-05-25  Ian Lance Taylor  <iant@google.com>
12822
12823         * godump.c (go_format_type): Output the first field with a usable
12824         Go type, if any.
12825
12826 2011-05-25  Ian Lance Taylor  <iant@google.com>
12827
12828         * godump.c (go_format_type): Check for invalid type names, pointer
12829         target types, and struct field types.
12830
12831 2011-05-25  Jason Merrill  <jason@redhat.com>
12832
12833         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12834
12835 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
12836
12837         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12838
12839 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12840
12841         * config/i386/i386.md (*movqi_extv_1)): Put back
12842         "register_operand" check in "type" calculation.
12843         (*movqi_extzv_2): Likewise.
12844
12845 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12846
12847         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12848
12849 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12850
12851         PR bootstrap/49160
12852         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12853         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12854         __divxc3, __divtc3): Wrap definitions in #ifndef.
12855
12856 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12857
12858         PR target/49142
12859         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12860         "register_operand" check and replace q_regs_operand with
12861         QIreg_operand in "type" calculation.
12862         (*movqi_extv_1): Likewise.
12863         (*movqi_extzv_2_rex64): Likewise.
12864         (*movqi_extzv_2): Likewise.
12865
12866         * config/i386/predicates.md (QIreg_operand): New.
12867
12868 2011-05-25  Richard Guenther  <rguenther@suse.de>
12869
12870         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12871         type-based offset disambiguation, streamline MEM_REF and
12872         TARGET_MEM_REF handling.
12873
12874 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12875
12876         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12877         (bdesc_special_args): Add pause intrinsic.
12878
12879         * config/i386/i386.md (UNSPEC_PAUSE): New.
12880         (pause): Likewise.
12881         (*pause): Likewise.
12882         * config/i386/ia32intrin.h (__pause): Likewise.
12883
12884         * doc/extend.texi (X86 Built-in Functions): Add documentation for
12885         pause intrinsic.
12886
12887 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12888
12889         PR tree-optimization/46728
12890         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12891         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12892
12893 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
12894
12895         * tree.h (struct tree_exp): Inherit from struct tree_typed.
12896         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12897         instead of TS_COMMON.
12898
12899 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
12900
12901         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12902         LIBGCC2_GNU_PREFIX is defined.
12903         (__N): New macro.
12904         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12905         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12906         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12907         __clz_tab): Define using __N.
12908         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12909         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12910         * target.def (libfunc_gnu_prefix): New hook.
12911         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12912         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12913         * doc/tm.texi: Regenerate.
12914         * system.h (LIBGCC2_GNU_PREFIX): Poison.
12915         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12916         account.
12917         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12918         (init_optabs): Likewise for the bswap libfuncs.
12919         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12920         and divide.
12921         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12922         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12923         * libgcc-std.ver: Remove.
12924         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12925         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12926         libgcc-std.ver.
12927         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12928         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12929         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12930         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12931         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12932         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12933         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12934         * config/fixed-bit.h (FIXED_OP): Define differently depending on
12935         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12936         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12937
12938 2011-05-25  Jan Hubicka  <jh@suse.cz>
12939
12940         * lto-streamer-out.c (output_record_start): Use lto_output_enum
12941         (lto_output_tree): Use output_record_start.
12942         * lto-streamer-in.c (input_record_start): Use lto_input_enum
12943         (lto_get_pickled_tree): Use input_record_start.
12944         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12945         (lto_value_range_error): New function.
12946         * lto-streamer.h (lto_value_range_error): Declare.
12947         (lto_output_int_in_range, lto_input_int_in_range): New functions.
12948         (lto_output_enum, lto_input_enum): New macros.
12949
12950 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12951
12952         * common.opt (flag_stack_usage_info): New variable.
12953         (-Wstack-usage): New option.
12954         * doc/invoke.texi (Warning options): Document -Wstack-usage.
12955         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12956         <OPT_fstack_usage>: Likewise.
12957         * toplev.c (output_stack_usage): Handle -Wstack-usage.
12958         * calls.c (expand_call): Test flag_stack_usage_info variable instead
12959         of flag_stack_usage.
12960         (emit_library_call_value_1): Likewise.
12961         * explow.c (allocate_dynamic_stack_space): Likewise.
12962         * function.c (instantiate_virtual_regs ): Likewise.
12963         (prepare_function_start): Likewise.
12964         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12965         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12966         * config/arm/arm.c (arm_expand_prologue): Likewise.
12967         (thumb1_expand_prologue): Likewise.
12968         * config/avr/avr.c (expand_prologue): Likewise.
12969         * config/i386/i386.c (ix86_expand_prologue): Likewise.
12970         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12971         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12972         * config/mips/mips.c (mips_expand_prologue): Likewise.
12973         * config/pa/pa.c (hppa_expand_prologue): Likewise.
12974         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12975         * config/s390/s390.c (s390_emit_prologue): Likewise.
12976         * config/sh/sh.c (sh_expand_prologue): Likewise.
12977         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12978         * config/spu/spu.c (spu_expand_prologue): Likewise.
12979
12980 2011-05-25  Richard Guenther  <rguenther@suse.de>
12981
12982         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12983         (gimple_canonical_types_compatible_p): Likewise.
12984
12985 2011-05-25  Jan Hubicka  <jh@suse.cz>
12986
12987         PR middle-end/49062
12988         * ipa.c (function_and_variable_visibility): Only add to same
12989         comdat group list if DECL_ONE_ONLY.
12990
12991 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
12992
12993         PR rtl-optimization/49014
12994         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12995
12996 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12997
12998         PR target/49128
12999         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13000
13001 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13002
13003         PR rtl-optimization/48757
13004         * ira-build.c (loop_with_eh_edge_p): Rename to
13005         loop_with_complex_edge_p, check edges on complexity, make function
13006         conditional.
13007         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13008         conditional.
13009
13010 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13011
13012         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13013         force flag_ira_share_save_slots to 0.
13014
13015 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13016
13017         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13018         (vt_initialize): Set PROLOGUE_BB unconditionally.
13019         Add block comment about CFA_BASE_RTX machinery.
13020         Reset FP_CFA_OFFSET to -1 on all invalid paths.
13021         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13022
13023 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
13024
13025         PR objc/48187
13026         * c-parser.c (c_parser_objc_class_instance_variables): More robust
13027         parsing of syntax error in ObjC instance variable lists.  In
13028         particular, avoid an infinite loop if there is a stray ']'.
13029         Updated error message.
13030
13031 2011-05-24  Ian Lance Taylor  <iant@google.com>
13032
13033         * godump.c (go_define): Don't accept a string immediately after
13034         another operand.
13035
13036 2011-05-24  Ian Lance Taylor  <iant@google.com>
13037
13038         * godump.c (struct godump_container): Add invalid_hash field.
13039         (go_format_type): Return false if type is found in invalid_hash.
13040         (go_output_typedef): Add invalid type to invalid_hash.
13041         (go_finish): Create and delete invalid_hash.
13042
13043 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13044
13045         PR tree-optimization/46728
13046         * tree-ssa-math-opts.c (powi_table): New.
13047         (powi_lookup_cost): New.
13048         (powi_cost): New.
13049         (powi_as_mults_1): New.
13050         (powi_as_mults): New.
13051         (gimple_expand_builtin_powi): New.
13052         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13053         (gate_cse_sincos): Remove sincos/cexp restriction.
13054
13055 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13056
13057         PR target/3746
13058         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13059         mips-tdump native.
13060         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13061         * mips-tdump.c: Likewise.
13062
13063 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13064
13065         PR target/49128
13066         * config/i386/driver-i386.c (host_detect_local_cpu): Always
13067         add -mno-XXX.  Handle FMA.
13068
13069 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13070
13071         PR rtl-optimization/48633
13072         * ira-build.c (loop_with_eh_edge_p): New function.
13073         (mark_loops_for_removal): Use it.
13074
13075 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13076
13077         PR rtl-optimization/48971
13078         * ira.c (setup_pressure_classes): Don't check register move cost
13079         for classes with one registers.  Don't add pressure class if there
13080         is a pressure class with the same available hard registers.
13081         Check contains_reg_of_mode.  Fix a typo in collecting
13082         temp_hard_regset.  Ignore hard registers not belonging to a class.
13083
13084 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
13085
13086         PR target/49133
13087         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13088
13089 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13090             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13091
13092         PR gcov-profile/48845
13093         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13094
13095 2011-05-24  Richard Guenther  <rguenther@suse.de>
13096
13097         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13098         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13099         (gimple_types_compatible_p_1): Adjust.
13100         (iterative_hash_canonical_type): Do not bother about complete vs.
13101         incomplete types.
13102         (gimple_canonical_types_compatible_p): Likewise.
13103
13104 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13105
13106         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13107
13108 2011-05-24  Richard Guenther  <rguenther@suse.de>
13109
13110         PR bootstrap/49078
13111         * gimple.c (gimple_register_canonical_type): Revert
13112         previous change.
13113         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13114         does not for a tree for the case where it matters.  Cache
13115         pointer-type alias-sets.
13116
13117 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
13118
13119         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13120         (OBJS): Remove options.o, opts-common.o and prefix.o.
13121         (OBJS-libcommon-target): New.
13122         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13123         (BACKEND): Include libcommon-target.a.
13124         (MOSTLYCLEANFILES): Include libcommon-target.a.
13125         (libcommon-target.a): New.
13126         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13127         prefix.o.
13128
13129 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
13130
13131         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
13132         parts of output shared with the driver.
13133         * optc-gen.awk: Don't generate parts of output not shared with the
13134         driver.
13135         * opth-gen.awk: Remove GCC_DRIVER conditionals.
13136         * doc/options.texi (SourcerInclude): Mention options-save.c.
13137         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13138         (OBJS): Add options-save.o.
13139         (options-save.c, options-save.o): New.
13140         (options.o): Update dependencies.
13141         (gcc-options.o): Remove.
13142         (mostlyclean): Remove options-save.c.
13143
13144 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13145
13146         PR debug/49032
13147         * dbxout.c: Include cgraph.h.
13148         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13149         and without value expr, return NULL if no varpool node exists for
13150         it or if it is not needed.
13151         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13152
13153         PR c/49120
13154         * c-decl.c (start_decl): Convert expr to void_type_node.
13155
13156 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
13157
13158         PR rtl-optimization/48826
13159         * emit-rtl.c (try_split): When splitting a call that is followed
13160         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13161
13162 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13163
13164         * cfgexpand.c (expand_debug_expr): For unused non-addressable
13165         parameters passed in memory prefer using DECL_INCOMING_RTL over
13166         the pseudos it will be copied into.
13167
13168 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13169
13170         PR target/47315
13171         * config/i386/i386.c (ix86_option_override_internal): Save the
13172         initial options after checking vzeroupper.
13173
13174 2011-05-23  David Li  <davidxl@google.com>
13175
13176         PR tree-optimization/48988
13177         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13178         Initialize has_valid_pred for each pred chain.
13179
13180 2011-05-23  Richard Guenther  <rguenther@suse.de>
13181
13182         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13183         (iterative_hash_gimple_type): Always hash type names.
13184
13185 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
13186
13187         * c-typeck.c (build_function_call_vec): Tweak call to
13188         check_function_arguments.
13189
13190 2011-05-23  Richard Guenther  <rguenther@suse.de>
13191
13192         PR tree-optimization/49115
13193         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13194         is not necessarily carried out, do not claim it kills the ref.
13195         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13196
13197 2011-05-23  Richard Guenther  <rguenther@suse.de>
13198
13199         PR middle-end/15419
13200         * builtins.c (fold_builtin_memory_op): Be less restrictive about
13201         what pointer types we accept for folding.
13202
13203 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13204
13205         * gthr-gnat.c: Remove.
13206         * gthr-gnat.h: Remove.
13207         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13208         * config/t-freebsd (LIB2ADDEH): Likewise.
13209         * config/t-linux (LIB2ADDEH): Likewise.
13210         * config/t-sol2 (LIB2ADDEH): Likewise.
13211         * config/ia64/t-vms (LIB2ADDEH): Likewise.
13212         * configure.ac (target_thread_file): Remove gnat handling.
13213         * configure: Regenerate.
13214         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13215
13216 2011-05-23  Tristan Gingold  <gingold@adacore.com>
13217             Eric Botcazou  <ebotcazou@adacore.com>
13218
13219         * gcov.c (create_file_names): If no object directory is specified,
13220         keep the directory of the file.
13221
13222 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13223
13224         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13225         * configure: Regenerate.
13226
13227 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
13228
13229         PR middle-end/48973
13230         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13231         failed and the comparison has a single bit signed type, use
13232         constm1_rtx instead of const1_rtx for true value.
13233         (do_store_flag): If ops->type is single bit signed type, disable
13234         signel bit test optimization and pass -1 instead of 1 as last
13235         parameter to emit_store_flag_force.
13236
13237 2011-05-23  Tom de Vries  <tom@codesourcery.com>
13238
13239         PR target/45098
13240         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13241         function.
13242         (infer_loop_bounds_from_undefined): Use new function.
13243
13244 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13245
13246         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13247         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
13248         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13249         and -O0 otherwise.
13250         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13251
13252 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13253
13254         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13255         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13256         returns true.
13257
13258 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
13259
13260         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13261
13262 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13263
13264         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13265         UNSPEC_MOVE_PIC pattern.
13266
13267 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
13268
13269         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13270         (sparc-*-rtems*): Likewise.
13271         (sparc64-*-elf*): Likewise.
13272         (sparc64-*-rtems*): Likewise.
13273         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
13274         * config/sparc/t-crtin: New file.
13275         * config/sparc/t-sol2 (crti.o): Delete rule.
13276         (crtn.o): Likewise.
13277         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13278         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13279         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13280         (ENDFILE_SPEC): Add crtn.o.
13281
13282 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13283
13284         PR middle-end/48689
13285         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13286         CODE_CONTAINS_STRUCT (TS_COMMON).
13287
13288 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
13289
13290         PR middle-end/49029
13291         * expmed.c (extract_fixed_bit_field): Test whether target can be used
13292         only after deciding which mode to use.
13293
13294 2011-05-22  Tom de Vries  <tom@codesourcery.com>
13295
13296         PR target/45098
13297         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13298         for call to get_shiftadd_cost.
13299
13300 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
13301
13302         PR target/49104
13303         * config/i386/cpuid.h (bit_MMXEXT): New define.
13304
13305 2011-05-22  Nick Clifton  <nickc@redhat.com>
13306
13307         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13308         initialisation of non-existant args[2] element.  Use args[] array
13309         not arg[] array to pass arguments to build_function_type_list.
13310
13311 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
13312
13313         PR tree-optimization/49087
13314         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13315
13316 2011-05-21  Jason Merrill  <jason@redhat.com>
13317
13318         PR c++/49092
13319         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13320         static storage duration.
13321
13322 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13323
13324         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13325         frame pointer.
13326
13327 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13328
13329         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13330         false if there are call-saved registers here...
13331         (sparc_can_use_return_insn_p): ...but here instead.
13332         (save_or_restore_regs): Fix thinko.
13333         (sparc_expand_prologue): Use current_function_is_leaf.
13334         (sparc_frame_pointer_required): Likewise.
13335
13336 2011-05-21  Nick Clifton  <nickc@redhat.com>
13337
13338         PR target/49098
13339         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13340
13341 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13342
13343         * gengtype.c (walk_type): Implemented "atomic" GTY option.
13344         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13345
13346 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
13347
13348         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
13349         * optc-gen.awk: Move common code to opt-read.awk.
13350         * opth-gen.awk: Likewise.
13351         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13352
13353 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
13354
13355         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13356
13357 2011-05-20  Tom de Vries  <tom@codesourcery.com>
13358
13359         PR target/45098
13360         * tree-ssa-loop-ivopts.c: Include expmed.h.
13361         (get_shiftadd_cost): New function.
13362         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
13363
13364 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13365
13366         PR bootstrap/49086
13367         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13368         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13369
13370 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13371
13372         * Makefile.in: Update comment referring to $(OBJS-common).
13373
13374 2011-05-20  Ian Lance Taylor  <iant@google.com>
13375
13376         * godump.c (go_output_typedef): Put enum constants in the macro
13377         hash table to avoid duplicate Go const definitions.
13378
13379 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
13380
13381         * Makefile.in (LIBDEPS): Add libcommon.a.
13382         (LIBS): Likewise.
13383         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13384         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13385         pretty-print.o and version.o.
13386         (OBJS-libcommon): New.
13387         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13388         (BACKEND): Add libcommon.a.
13389         (MOSTLYCLEANFILES): Likewise.
13390         (libcommon.a): New.
13391         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13392         (cpp$(exeext)): Likewise.
13393         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13394         pretty-print.o and input.o.
13395         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13396         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13397         (errors.o): Remove.
13398         (mips-tfile): Don't explicitly use version.o.
13399         (mips-tdump): Likewise.
13400         (gcov.o): Depend on $(DIAGNOSTIC_H).
13401         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13402         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13403         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13404         * gcov-dump.c: Include intl.h and diagnostic.h.
13405         (main): Initialize diagnostics.
13406         * gcov.c: Include diagnostic.h.
13407         (fnotice): Remove.
13408         (main): Initialize diagnostics.
13409         * lto-wrapper.c: Include diagnostic.h.
13410         (main): Initialize diagnostics.
13411
13412 2011-05-20  Michael Matz  <matz@suse.de>
13413
13414         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13415
13416 2011-05-20  Michael Matz  <matz@suse.de>
13417             Richard Guenther  <rguenther@suse.de>
13418
13419         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13420         use lto_streamer_cache_append directly instead of returning a VEC.
13421         (preload_common_node): Remove.
13422         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13423         track seen nodes.
13424         (lto_streamer_cache_create): Call lto_preload_common_nodes.
13425
13426 2011-05-20  Richard Guenther  <rguenther@suse.de>
13427
13428         PR tree-optimization/49079
13429         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13430         MEM_REFs correctly for the trailing array access detection.
13431         Special case constants the same way as decls for overall size
13432         constraining.
13433
13434 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
13435
13436         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13437         argument expansion.
13438
13439 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
13440
13441         PR tree-optimization/49073
13442         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13443         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13444         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13445
13446 2011-05-20  Richard Guenther  <rguenther@suse.de>
13447
13448         PR middle-end/48849
13449         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13450         of pointer types the same way the middle-end does.
13451
13452 2011-05-20  Richard Guenther  <rguenther@suse.de>
13453
13454         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13455         or pointer-to chains.  Delay all fixup to uniquify_nodes.
13456
13457 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
13458
13459         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13460         (fma4_fmaddsub): Likewise
13461
13462 2011-05-19  Jan Hubicka  <jh@suse.cz>
13463
13464         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13465         (GIMPLE_TYPE_PAIR_SIZE): New macro.
13466         (type_pair_cache): New static var.
13467         (lookup_type_pair): Use fixed sized custom hash; make inline.
13468         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13469         calls of lookup_type_pair.
13470         (print_gimple_types_stats): Remove cache stats.
13471         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13472         and gtc_ob.
13473
13474 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
13475
13476         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13477         when TARGET_RDRND is active.
13478         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13479         Generate dummy SImode target register when target is NULL.
13480
13481 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13482
13483         * config/arm/arm-fpus.def: New.
13484         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13485         arm-fpus.def.
13486         * config/arm/arm-tables.opt: Regenerate.
13487         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13488         (arm_option_override): Don't decode FPU name to string here.
13489         * config/arm/arm.opt (mfpu=): Use Enum.
13490         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13491         Update dependencies.
13492
13493 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
13494
13495         * collect2.c: Include diagnostic.h.
13496         (fatal_perror, fatal, error, fancy_abort): Remove.
13497         (main): Set progname.  Call xmalloc_set_program_name and
13498         diagnostic_initialize.
13499         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13500         scan_libraries, resolve_lib_name): Call fatal_error instead of
13501         fatal and fatal_perror.
13502         * collect2.h (error, fatal, fatal_perror): Don't declare.
13503         * tlink.c: Include diagnostic-core.h.
13504         (recompile_files): Call fatal_error instead of fatal_perror.
13505         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13506         pretty-print.o and input.o.
13507         (collect2.o, tlink.o): Update dependencies.
13508
13509 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13510
13511         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13512
13513 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13514
13515         PR target/40483
13516         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13517         COMDAT group syntax, both SPARC and x86 variants.
13518         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13519         * configure: Regenerate.
13520         * config/sol2.h (TARGET_SOLARIS): Define.
13521         (PUSHSECTION_FORMAT): Remove.
13522         (SECTION_NAME_FORMAT): Define.
13523         * config/sol2.c: Include hashtab.h.
13524         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13525         expansion, using SECTION_NAME_FORMAT.
13526         (solaris_comdat_htab): New variable.
13527         (struct comdat_entry): Define.
13528         (comdat_hash): New function.
13529         (comdat_eq): New function.
13530         (solaris_elf_asm_comdat_section): New function.
13531         (solaris_define_comdat_signature): New function.
13532         (solaris_code_end): New function.
13533         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13534         (solaris_code_end): Declare.
13535         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13536         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13537         solaris_code_end.
13538         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13539         Remove ATTRIBUTE_UNUSED.
13540         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13541         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13542         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13543         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13544         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13545         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13546         (PUSHSECTION_FORMAT): Remove.
13547         (SECTION_NAME_FORMAT): Redefine.
13548
13549 2011-05-19  Kai Tietz  <ktietz@redhat.com>
13550
13551         * tree-cfg.c (verify_gimple_assign_binary): Barf on
13552         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13553         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13554
13555 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
13556             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13557
13558         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13559
13560 2011-05-19  Richard Guenther  <rguenther@suse.de>
13561
13562         PR middle-end/48985
13563         * tree-object-size.c (addr_object_size): If the pointed-to
13564         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13565
13566 2011-05-19  Richard Guenther  <rguenther@suse.de>
13567
13568         * gimple.c (gimple_types_compatible_p_1): Compare names of
13569         the types themselves.
13570         (iterative_hash_gimple_type): And hash them that way.
13571         (gimple_register_type_1): If we register a main variant properly
13572         initialize the leader to ourselves.
13573
13574 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13575
13576         PR target/45098
13577         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13578         get_loop_invariant_expr_id.
13579         (get_loop_invariant_expr_id): Use get_expr_id.
13580         (parm_decl_cost): New function.
13581         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13582         Improve bound cost estimation.  Use different inv_expr_id for elim and
13583         express cases.
13584
13585 2011-05-19  Tom de Vries  <tom@codesourcery.com>
13586
13587         PR target/45098
13588         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13589         cost_base.cost == 0.
13590
13591 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13592
13593         PR target/49002
13594         * config/i386/sse.md
13595         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13596         load cast.
13597
13598 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13599
13600         PR tree-optimization/49039
13601         * tree-vrp.c (extract_range_from_binary_expr): For
13602         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13603         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13604
13605 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13606
13607         PR target/45098
13608         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13609
13610 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
13611
13612         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13613         (*tls_global_dynamic_64): Ditto.
13614         (*tls_local_dynamic_base_32_gnu): Ditto.
13615         (*tls_local_dynamic_base_64): Ditto.
13616         (tls_initial_exec_64_sun): Ditto.
13617
13618 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
13619
13620         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13621         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13622         bf592-none.
13623         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13624         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13625         * config/bfin/bfin.c (bfin_cpus): Add bf592.
13626         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13627         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13628         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13629         * config/bfin/elf.h (LIB_SPEC): Add bf592.
13630
13631 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
13632
13633         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13634         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13635         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13636         target_thread_pointer, arm_structure_size_boundary, struct
13637         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13638         struct abi_name, arm_all_abis): Remove.
13639         (arm_option_override) Don't process most enumerated option values here.
13640         Don't process target_fpe_name here.  Work with integer not string for
13641         structure size boundary; use separate diagnostics for each case.
13642         * config/arm/arm.h (enum float_abi_type, enum
13643         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13644         to arm-opts.h.
13645         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13646         arm_structure_size_boundary): Remove.
13647         * config/arm/arm.opt (mabi=): Use Enum and Init.
13648         (arm_abi_type): New Enum and EnumValue entries.
13649         (mfloat-abi=): Use Enum and Init.
13650         (float_abi_type): New Enum and EnumValue entries.
13651         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13652         (mfp16-format=): Use Enum and Init.
13653         (arm_fp16_format_type): New Enum and EnumValue entries.
13654         (mstructure-size-boundary=): Use UInteger and Init.
13655         (mtp=): Use Enum and Init.
13656         (arm_tp_type): New Enum and EnumValue entries.
13657
13658 2011-05-18  Richard Guenther  <rguenther@suse.de>
13659
13660         PR tree-optimization/49018
13661         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13662         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13663         gimple_has_side_effects.
13664
13665 2011-05-18  Richard Guenther  <rguenther@suse.de>
13666
13667         * gimple.c (gimple_register_type_1): New function, split out from ...
13668         (gimple_register_type): ... here.  Avoid infinite recursion.
13669
13670 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13671
13672         PR tree-optimization/41881
13673         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13674         reduction_chains along with a macro for its access.
13675         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13676         (destroy_loop_vec_info): Free reduction chains.
13677         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13678         (vect_is_slp_reduction): New function.
13679         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13680         (vect_create_epilog_for_reduction): Support SLP reduction chains.
13681         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13682         definition types for reduction chains.
13683         (vect_supported_load_permutation_p): Don't allow permutations for
13684         reduction chains.
13685         (vect_analyze_slp_instance): Support reduction chains.
13686         (vect_analyze_slp): Try to build SLP instance from reduction chains.
13687         (vect_get_constant_vectors):  Handle reduction chains.
13688         (vect_schedule_slp_instance): Mark the first statement of the
13689         reduction chain as reduction.
13690
13691 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
13692
13693         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13694         names for group elements access.
13695         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13696         reduction chains as well.  Remove data reference and interleaving
13697         related words from the fields names.
13698         * tree-vect-loop.c (vect_transform_loop): Use new names for group
13699         elements access.
13700         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13701         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13702         vect_update_interleaving_chain, vect_same_range_drs,
13703         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13704         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13705         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13706         vect_analyze_group_access, vect_analyze_data_ref_access,
13707         vect_create_data_ref_ptr, vect_transform_strided_load,
13708         vect_record_strided_load_vectors): Likewise.
13709         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13710         vect_model_load_cost, vectorizable_store, vectorizable_load,
13711         vect_remove_stores, new_stmt_vec_info): Likewise.
13712         * tree-vect-slp.c (vect_build_slp_tree,
13713         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13714
13715 2011-05-18  Richard Guenther  <rguenther@suse.de>
13716
13717         PR middle-end/48989
13718         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13719         operand verification.
13720         (verify_gimple_assign_binary): Likewise.
13721         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13722         to non-1-precision BOOLEAN_TYPEs.
13723
13724 2011-05-18  Tom de Vries  <tom@codesourcery.com>
13725
13726         PR target/45098
13727         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13728
13729 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
13730
13731         PR tree-optimization/49000
13732         * tree-ssa.c (execute_update_addresses_taken): Call
13733         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
13734         be rewritten and decl has been marked for renaming, reset
13735         the debug stmt.
13736
13737 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13740         enum_opts_set when testing if attributes have set -mfpmath=.
13741
13742 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
13743
13744         * config/mips/mips.c (mips_handle_option): Remove unused variable.
13745
13746 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13747
13748         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13749         info->entry with 0
13750         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
13751         id.transform_lang_insert_block with NULL.
13752
13753 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
13754
13755         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13756         (output_fp_compare): Change args 3 and 4 to bool.
13757         (ix86_expand_call): Change arg 6 to bool.
13758         (ix86_attr_length_immediate_default): Change arg 2 to bool.
13759         (ix86_attr_length_vex_default): Change arg 3 to bool.
13760         * config/i386/i386.md: Update all uses.
13761         * config/i386/i386.c: Ditto.
13762         (ix86_flags_dependent): Change return type to bool.
13763
13764 2011-05-17  Richard Guenther  <rguenther@suse.de>
13765
13766         * gimple.c (type_hash_pair_compare): Fix comparison.
13767
13768 2011-05-17  Richard Guenther  <rguenther@suse.de>
13769
13770         * gimple.c (iterative_hash_gimple_type): Simplify singleton
13771         case some more, fix final hash value of the non-singleton case.
13772
13773 2011-05-17  Richard Guenther  <rguenther@suse.de>
13774
13775         PR bootstrap/49013
13776         Revert
13777         2011-05-16  Richard Guenther  <rguenther@suse.de>
13778
13779         * gimple.c (gimple_types_compatible_p_1): Use names of the
13780         type itself, not its main variant.
13781         (iterative_hash_gimple_type): Likewise.
13782
13783 2011-05-17  Richard Guenther  <rguenther@suse.de>
13784
13785         * gimple.c (gimple_register_canonical_type): Use the main-variant
13786         leader for computing the canonical type.
13787
13788 2011-05-17  Nick Clifton  <nickc@redhat.com>
13789
13790         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13791         moves.
13792
13793         * config/rx/rx.md: Add peephole to remove redundant extensions
13794         after loads.
13795         (bitset_in_memory): Use rx_restricted_mem_operand.
13796         (bitinvert_in_memory): Likewise.
13797         (bitclr_in_memory): Likewise.
13798
13799 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
13800             Nick Clifton  <nickc@redhat.com>
13801
13802         * config/rx/rx.md: Add peepholes to match a register move followed
13803         by a comparison of the moved register.  Replace these with an
13804         addition of zero that does both actions in one instruction.
13805
13806 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
13807
13808         PR target/48986
13809         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13810         predicate to allow CONST_INT.
13811         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13812
13813 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13814
13815         * opts-common.c (opt_enum_arg_to_value): New.
13816         * opts.h (opt_enum_arg_to_value): Declare.
13817         * config/i386/i386.opt (fpmath): Remove.
13818         (mfpmath=): Use Enum, Init and Save.
13819         (fpmath_unit): New Enum and EnumValue entries.
13820         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13821         name for function fpmath state.
13822         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13823         * config/i386/i386.c: Include diagnostic.h.
13824         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13825         (ix86_target_string): Take enum fpmath_unit value instead of string.
13826         (ix86_debug_options): Update call to ix86_target_string.
13827         (ix86_option_override_internal): Don't process fpmath strings here.
13828         (x86_function_specific_save, ix86_function_specific_restore):
13829         Don't handle fpmath state specially.
13830         (ix86_function_specific_print): Pass fpmath state to
13831         ix86_target_string instead of printing in this function.
13832         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13833         Handle enum attributes.
13834         (IX86_ATTR_ENUM, ix86_opt_enum): New.
13835         (ix86_valid_target_attribute_tree): Update option_strings
13836         handling.  Handle fpmath as enum option.
13837         (ix86_can_inline_p): Update field names for function fpmath state.
13838         (ix86_expand_builtin): Update call to ix86_target_string.
13839         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13840         (ix86_fpmath): Remove.
13841         * config/i386/t-i386 (i386.o): Update dependencies.
13842
13843 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
13844
13845         PR preprocessor/48677
13846         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13847         from decoded_options[0], not from itself.
13848
13849 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
13850
13851         * config/i386/constraints.md (z): New constraint.
13852         * config/i386/i386.c (c): New mode attribute.
13853         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13854         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13855         constraint for operand 0.
13856         (*call_vzeroupper): Ditto.
13857         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
13858         (*call_rex64_ms_sysv_vzeroupper): Ditto.
13859         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13860         Use "lzm" constraint for operand 0.
13861         (*call_pop_vzeroupper): Ditto.
13862         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13863         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
13864         constraint for operand 0.
13865         (*sibcall_vzeroupper): Ditto.
13866         (*sibcall_rex64_ms_sysv): Ditto.
13867         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13868         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13869         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
13870         (*sibcall_pop_vzeroupper): Ditto.
13871         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13872         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13873         mode iterator.  Use "<c>zm" constraint for operand 1.
13874         (*call_value_vzeroupper): Ditto.
13875         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
13876         for operand 1.
13877         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13878         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13879         *call_value_pop_1.  Use "lzm" constraint for operand 1.
13880         (*call_value_pop_vzeroupper): Ditto.
13881         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13882         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13883         mode iterator.  Use "Uz" constraint for operand 1.
13884         (*sibcall_value_vzeroupper): Ditto.
13885         (*sibcall_value_rex64_ms_sysv): Ditto.
13886         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13887         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
13888         constraint for operand 1.
13889         (*sibcall_value_pop_vzeroupper): Ditto.
13890         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13891         and "z" constraint for operand 2.
13892         (*tls_global_dynamic_32_gnu): Ditto.
13893         (*tls_local_dynamic_base_32_gnu): Ditto.
13894         (*tls_local_dynamic_base_64): Ditto.
13895         (*tls_local_dynamic_32_once): Ditto.
13896         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13897         Update all callers.
13898         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13899
13900 2011-05-16  Richard Guenther  <rguenther@suse.de>
13901
13902         * gimple.c (gimple_types_compatible_p_1): Use names of the
13903         type itself, not its main variant.
13904         (iterative_hash_gimple_type): Likewise.
13905
13906 2011-05-16  Richard Guenther  <rguenther@suse.de>
13907
13908         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13909         always visit pointer target and function result and argument types.
13910
13911 2011-05-16  Jason Merrill  <jason@redhat.com>
13912
13913         PR c++/48999
13914         * tree-inline.c (copy_statement_list): Put back recursion.
13915
13916 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13917
13918         PR target/27663
13919         PR target/41076
13920         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13921         * config/avr/avr.md ("*ior<mode>qi.byte0",
13922         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13923
13924 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
13925
13926         PR target/45099
13927         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13928         register is needed for a function argument.
13929
13930 2011-05-16  Richard Guenther  <rguenther@suse.de>
13931
13932         * gimple.c (struct type_hash_pair): New type.
13933         (type_hash_pair_compare): New function.
13934         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13935
13936 2011-05-16  Revital Eres  <revital.eres@linaro.org>
13937
13938         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13939
13940 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13941
13942         * config/i386/i386.md (floating point move splitters): Fix
13943         usage of standard_80387_constant_p.
13944         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13945
13946 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13947
13948         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13949
13950 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13951
13952         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13953         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13954         (tree_ssa_lim_finalize): Likewise.
13955
13956 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
13957
13958         * config/i386/constraint.md (Yd, Yx): New register constraints.
13959         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
13960         Yd conditional register constraint.
13961         (*movtf_internal): Use standard_sse_constant_opcode.
13962         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
13963         Yx conditional register constraint.
13964         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
13965         Yd conditional register constraint.  Use standard_sse_constant_p to
13966         check for valid SSE constants and call standard_sse_constant_opcode to
13967         output SSE insn.
13968         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13969         constants and call standard_sse_constant_opcode to output SSE insn.
13970         * config/i386/i386.c (ix86_option_ovverride_internal): Set
13971         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
13972         optimize_size is set.
13973         (standard_sse_constant_opcode): Output conditional AVX insn templates.
13974
13975 2011-05-14  Tobias Burnus  <burnus@net-b.de>
13976
13977         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13978
13979 2011-05-13  Martin Jambor  <mjambor@suse.cz>
13980
13981         * ipa-prop.c (ipa_cst_from_jfunc): New function.
13982         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13983         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13984         (evaluate_conditions_for_ipcp_clone): Removed.
13985         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13986         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13987         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13988
13989 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13990
13991         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13992         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13993         lieu of MAY_HAVE_DEBUG_STMTS.
13994         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13995         debug statements if !MAY_HAVE_DEBUG_STMTS.
13996
13997 2011-05-13  Martin Thuresson  <martint@google.com>
13998
13999         PR gcov-profile/47793
14000         * libgcov.c (gcov_exit): Support relative profile paths.
14001         * doc/invoke.texi (-fprofile-dir): Update for above change.
14002
14003 2011-05-13  Richard Guenther  <rguenther@suse.de>
14004
14005         * gimple.c (gimple_canonical_types_compatible_p): Do not use
14006         type-pair caching, do not compare hashes.
14007
14008 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
14009
14010         PR middle-end/48965
14011         * tree-cfg.c (edge_to_cases_cleanup): Return true.
14012         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14013
14014 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14015
14016         * gimplify.c (gimplify_expr): Make sure operand is boolified.
14017         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14018         compatible type for TRUTH_NOT_EXPR.
14019
14020 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14021
14022         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14023         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
14024         can_create_pseudo_p ().
14025
14026 2011-05-13  Richard Guenther  <rguenther@suse.de>
14027
14028         PR lto/48978
14029         * gimple.c (iterative_hash_gimple_type): Revert change in
14030         pointer target and function result and argument hashing.
14031
14032 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
14033
14034         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14035         (*movxf_internal_nointeger): Ditto.
14036         (*movdf_internal_rex64): Ditto.
14037         (*movdf_internal): Ditto.
14038         (*movdf_internal_nointeger): Ditto.
14039         (*movsf_internal): Ditto.
14040         (sincos splitters): Use can_create_pseudo ().
14041
14042 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
14043
14044         * config/i386/i386-opts.h: New.
14045         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14046         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14047         ix86_section_threshold): Remove.
14048         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
14049         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14050         OPT_mbranch_cost_.
14051         (ix86_option_override_internal): Don't decode strings for options
14052         other than -march=, -mtune= and -mfpmath=.  Don't allow for
14053         __attribute__ uses in remaining diagnostics for options with
14054         string arguments.  Don't check for integer arguments being negative.
14055         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14056         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14057         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14058         ix86_branch_cost, ix86_section_threshold): Remove.
14059         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14060         HeaderInclude.
14061         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14062         but not Var.
14063         (masm=): Use Enum and Init.
14064         (asm_dialect): New Enum and EnumValue entries.
14065         (mbranch-cost=): Use UInteger.
14066         (mlarge-data-threshold=): Use UInteger and Init.
14067         (mcmodel=): Use Enum and Init.
14068         (cmodel): New Enum and EnumValue entries.
14069         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14070         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14071         mregparm=): Use UInteger.
14072         (mstringop-strategy=): Use Enum and Init.
14073         (stringop_alg): New Enum and EnumValue entries.
14074         (mtls-dialect=): Use Enum and Init.
14075         (tls_dialect): New Enum and EnumValue entries.
14076         (mabi=): Use Enum and Init.
14077         (calling_abi): New Enum and EnumValue entries.
14078         (mveclibabi=): Use Enum and Init.
14079         (ix86_veclibabi): New Enum and EnumValue entries.
14080
14081 2011-05-13  Nick Clifton  <nickc@redhat.com>
14082
14083         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14084         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14085
14086 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14087
14088         PR middle-end/48984
14089         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14090         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14091         (gimple_boolify): Check for cast for boolean_type_node instead for
14092         BOOLEAN_TYPE.
14093
14094 2011-05-13  Richard Guenther  <rguenther@suse.de>
14095
14096         PR tree-optimization/48172
14097         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14098         multiplying by number of iterations for equal step.
14099         (vect_create_cond_for_alias_checks): Likewise.
14100
14101 2011-05-13  Andreas Schwab  <schwab@redhat.com>
14102
14103         * configure.ac: Use AS_HELP_STRING throughout.
14104         * configure: Regenerate.
14105
14106 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14107
14108         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14109         (ix86_emit_restore_regs_using_mov): Likewise.
14110         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14111
14112 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
14113
14114         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14115         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14116         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14117         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14118         RTX_OK_FOR_OLO10_P): ...here.
14119         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14120         SYMBOLIC_CONST.
14121
14122 2011-05-12  Kai Tietz  <ktietz@redhat.com>
14123
14124         * gimplify.c (gimple_boolify): Re-boolify expression
14125         arguments even if expression type is of kind BOOLEAN_TYPE.
14126         (gimplify_boolean_expr): Removed.
14127         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14128         and XOR. Additional take care that we keep expression's type.
14129         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14130         of TRUTH_AND|OR|XOR_EXPR.
14131
14132 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14133
14134         PR tree-optimization/48975
14135         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14136         on all bbs here and free and clear ifc_bbs at the end.
14137
14138 2011-05-12  Richard Guenther  <rguenther@suse.de>
14139
14140         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14141         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
14142         until after simple checks.
14143         (gimple_types_compatible_p): Likewise.
14144         (iterative_hash_gimple_type): Always hash pointer targets
14145         and function return and argument types.
14146         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14147         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
14148         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14149         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
14150         completely in the simple compare section.
14151         (gimple_register_canonical_type): Query the cache again after
14152         registering.
14153
14154 2011-05-12  Richard Guenther  <rguenther@suse.de>
14155
14156         PR tree-optimization/48172
14157         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14158         the number of iterations from the segment size calculation.
14159         (vect_create_cond_for_alias_checks): Adjust.
14160
14161 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
14162
14163         PR debug/48967
14164         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14165         if validate_subreg fails.
14166
14167 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
14168
14169         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14170         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14171         early.
14172
14173 2011-05-12  DJ Delorie  <dj@redhat.com>
14174
14175         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14176         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14177         created builtin into rx_builtins array.
14178         (rx_builtin_decl): New function.
14179         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
14180
14181 2011-05-12  DJ Delorie  <dj@redhat.com>
14182             Nick Clifton  <nickc@redhat.com>
14183
14184         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14185         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14186         (rx_is_legitimate_address): Add pre-decrement and post-increment
14187         addressing in HImode and QImode.  Fix test for out of range
14188         REG+INT addressing.
14189         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14190         (rx_align_for_label): Test label before extracting its usage count.
14191         (rx_adjust_insn_lengths): Fix selection of insn codes.
14192         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14193
14194 2011-05-11  Jason Merrill  <jason@redhat.com>
14195
14196         * tree.c (type_hash_canon): Use struct tree_type_non_common.
14197
14198 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14199
14200         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14201         reindent the subsequent block.
14202
14203 2011-05-11  Satoru Takabayashi  <satorux@google.com>
14204             Paul Pluzhnikov  <ppluzhnikov@google.com>
14205
14206         * doc/install.texi (Configuration): Document --with-linker-hash-style.
14207         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14208         * config.in: Add LINKER_HASH_STYLE.
14209         * configure.ac: Add --with-linker-hash-style.
14210         * configure: Regenerate.
14211
14212 2011-05-11  Richard Guenther  <rguenther@suse.de>
14213
14214         PR middle-end/48964
14215         * gimple.c (iterative_hash_canonical_type): Fix typo.
14216
14217 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
14218
14219         * config/i386/i386.c (legitimize_tls_address)
14220         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14221         expanders directly for TARGET_GNU2_TLS.  Determine pic and
14222         __tls_get_addr symbol reference here.  Update call to
14223         gen_tls_global_dynamic_{32,64} for added arguments.
14224         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14225         expanders directly for TARGET_GNU2_TLS.  Determine
14226         __tls_get_addr symbol reference here.  Update call to
14227         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
14228         unique UNSPEC REG_EQUIV to libcall block.
14229         (ix86_tls_get_addr): Declare static.
14230         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14231         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14232         Do not determine pic and __tls_get_addr symbol reference here. Do not
14233         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14234         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14235         (tls_global_dynamic_64): Add operand 2.  Do not determine
14236         __tls_get_addr symbol reference here.  Do not call
14237         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14238         (tls_local_dynamic_base64): Ditto for operand 1.
14239
14240 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14241
14242         * function.c (expand_function_start): Initialize stack_check_probe_note
14243         only if the generic stack checking mechanism is used.
14244
14245 2011-05-11  Richard Guenther  <rguenther@suse.de>
14246
14247         PR tree-optimization/15256
14248         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14249         (A & B) | C, combine (A op CST1) op CST2.
14250         (tree_ssa_forward_propagate_single_use_vars): Only bother to
14251         visit assigns that have uses.
14252
14253 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
14254
14255         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14256         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14257         (unpack_ts_type_common_value_fields): ...this.  Update comment.
14258         (unpack_value_fields): Adjust for renaming.
14259         (lto_input_ts_type_tree_pointers): Split into...
14260         (lto_input_ts_type_common_tree_pointer): ...this and...
14261         (lto_input_ts_type_non_common_tree_pointers): ...this.
14262         (lto_input_tree_pointers): Adjust for above split.
14263         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14264         (pack_ts_type_common_value_fields): ...this.  Update comment.
14265         (lto_output_ts_type_tree_pointers): Split into...
14266         (lto_output_ts_type_common_tree_pointers): ...this and...
14267         (lto_output_ts_type_non_common_tree_pointers): ...this.
14268         (lto_output_tree_pointers): Adjust for above split.
14269         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14270         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14271         * stor-layout.c (vector_type_mode): Adjust location of mode field.
14272         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14273         Define.
14274         (struct tree_type): Split into...
14275         (struct tree_type_common: ...this and...
14276         (struct tree_type_with_lang_specific): ...this and...
14277         (struct tree_type_non_common): ...this.  Adjust accessor macros
14278         accordingly.
14279         (TYPE_VALUES_RAW): Define.
14280         (union tree_node): Update for above changes.
14281         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14282         TS_TYPE_NON_COMMON.
14283         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14284         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14285         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14286         * treestructu.def (TS_TYPE): Remove.
14287         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14288         Define.
14289
14290 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
14291
14292         PR debug/48159
14293         * tree-ssa.c (reset_debug_uses): New function.
14294         * tree-flow.h (reset_debug_uses): New prototype.
14295         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14296         * tree-loop-distribution.c (generate_loops_for_partition): Call
14297         reset_debug_uses on the stmts that will be removed.  Keep around
14298         all debug stmts, don't count them as bits in partition bitmap.
14299         (generate_builtin): Don't count debug stmts or labels as bits in
14300         partition bitmap.
14301
14302 2011-05-11  Richard Guenther  <rguenther@suse.de>
14303
14304         * gimple.c (gimple_type_hash_1): Merge with ...
14305         (gimple_type_hash): ... this.
14306         (gtc_visit): Remove mode parameter and simplify accordingly.
14307         (gimple_types_compatible_p_1): Likewise.
14308         (gimple_types_compatible_p): Likewise.
14309         (iterative_hash_gimple_type): Likewise.
14310         (visit): Likewise.
14311         (gimple_type_eq): Adjust.
14312
14313 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14314
14315         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14316         enters the branch create an anti edge in the opposite direction
14317         to prevent the creation of reg-moves.
14318         * modulo-sched.c: Adjust comment to reflect the fact we are
14319         scheduling closing branch.
14320         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14321         (stage_count): New field in struct partial_schedule.
14322         (calculate_stage_count): New function.
14323         (normalize_sched_times): Rename to reset_sched_times and handle
14324         incrementing the sched time of the nodes by a constant value
14325         passed as parameter.
14326         (duplicate_insns_of_cycles): Skip closing branch.
14327         (sms_schedule_by_order): Schedule closing branch.
14328         (ps_insn_find_column): Handle closing branch.
14329         (sms_schedule): Call reset_sched_times and adjust the code to
14330         support scheduling of the closing branch.
14331         (ps_insert_empty_row): Update calls to normalize_sched_times
14332         and rotate_partial_schedule functions.
14333
14334 2011-05-11  Richard Guenther  <rguenther@suse.de>
14335
14336         PR middle-end/48953
14337         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14338
14339 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
14340
14341         * opts.c (finish_options): Move warning settings from process_options.
14342         * toplev.c (process_options): Move warning settings to finish_options.
14343
14344 2011-05-11  Richard Guenther  <rguenther@suse.de>
14345
14346         PR tree-optimization/18041
14347         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14348         (simplify_bitwise_binary): ... this.  Handle operand conversions
14349         by applying them to the result instead.
14350         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
14351
14352 2011-05-11  Richard Guenther  <rguenther@suse.de>
14353
14354         * gimple.c (gimple_canonical_types_compatible_p): Split out
14355         from gimple_types_compatible_p and friends.  Do not recurse
14356         to pointed-to types.
14357         (gimple_canonical_type_eq): Use it.
14358         (iterative_hash_canonical_type): Split out from
14359         iterative_hash_gimple_type and friends.  Do not recurse
14360         to pointed-to types.
14361         (gimple_canonical_type_hash): Use it, allocate the hash here.
14362
14363 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14364
14365         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14366         recognizing doloop.
14367
14368 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14369
14370         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14371         instead of PREV_INSN.
14372
14373 2011-05-11  Revital Eres  <revital.eres@linaro.org>
14374
14375         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14376         * loop-doloop.c (doloop_condition_get): Likewise.
14377         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14378         (doloop_end): New.
14379         * config/arm/arm.md (*addsi3_compare0): Remove "*".
14380
14381 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
14382
14383         * tree.def (CASE_LABEL_EXPR): Add an operand.
14384         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14385
14386 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14387
14388         * c-decl.c (c_override_global_bindings_to_false): Remove.
14389         (global_bindings_p): Don't check
14390         c_override_global_bindings_to_false.
14391         * c-tree.h (c_override_global_bindings_to_false): Remove.
14392         * c-typeck.c (composite_type): Don't set
14393         c_override_global_bindings_to_false.
14394
14395 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14396
14397         PR target/48857, 48495
14398         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14399         (VSX_MODE): Ditto.
14400         (VSX_MOVE_MODE): Ditto.
14401         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14402         VSX vector types.  Add V2DImode.
14403         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14404         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14405         (MODES_TIEABLE_P): Ditto.
14406
14407         * config/rs6000/rs6000.c (rs6000_emit_move): Use
14408         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14409         VSX_VECTOR_MODE.
14410         (init_cumulative_args): Ditto.
14411         (rs6000_function_arg_boundary): Ditto.
14412         (rs6000_function_arg_advance_1): Ditto.
14413         (rs6000_function_arg): Ditto.
14414         (rs6000_function_ok_for_sibcall): Ditto.
14415         (emit_frame_save): Ditto.
14416         (rs6000_function_value): Ditto.
14417         (rs6000_libcall_value): Ditto.
14418
14419 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14420
14421         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14422         i386/darwin-lib.h to $libgcc_tm_file.
14423         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14424
14425 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14426
14427         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14428
14429 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14430
14431         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14432         * config/rs6000/rs6000-tables.opt: New file (generated).
14433         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14434         rs6000/rs6000-tables.opt to extra_options.
14435         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14436         * config/rs6000/rs6000.c (rs6000_select): Remove.
14437         (processor_target_table): Move contents to rs6000-cpus.def.
14438         (darwin_rs6000_override_options): Check
14439         global_options_set.x_rs6000_cpu_index instead of
14440         rs6000_select[1].string.
14441         (rs6000_option_override_internal): Likewise.
14442         (rs6000_handle_option): Don't assert that global structures are in
14443         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
14444         (rs6000_default_cpu): New variable.
14445         (rs6000_file_start): Set it instead of local default_cpu.  Check
14446         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14447         global_options_set.x_rs6000_tune_index instead of rs6000_select.
14448         (rs6000_darwin_file_start): Check rs6000_default_cpu and
14449         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14450         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14451         rs6000_select): Remove.
14452         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14453         Remove.
14454         (mcpu=, mtune=): Use Var, Init, Enum and Save.
14455         * config/rs6000/t-rs6000
14456         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14457         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14458         global_options_set.x_rs6000_cpu_index instead of
14459         rs6000_select[1].string.
14460         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14461         global_options_set.x_rs6000_cpu_index instead of
14462         rs6000_select[1].string.
14463
14464 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
14465
14466         * config.gcc (libgcc_tm_file): Define instead of including files
14467         from ../../libgcc/config/ in tm_file.
14468         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14469         * configure: Regenerate.
14470         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14471         libgcc_tm.h, cs-libgcc_tm.h): New.
14472         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14473         (clean): Remove libgcc_tm.h.
14474         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14475         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14476         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14477
14478 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
14479
14480         PR target/48896
14481         * config/avr/avr.c (avr_ret_register): Return unsigned int
14482         instead of int.
14483         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14484         it to avr_libcall_value.
14485         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14486         expand_expr.
14487         (avr_expand_binop_builtin): Ditto.
14488         (avr_expand_unop_builtin): Ditto.
14489
14490 2011-05-10  DJ Delorie  <dj@redhat.com>
14491
14492         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14493         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14494         * config/rx/rx.c (rx_align_for_label): Add label and
14495         uses_threshold parameters.  Do not align when the label is not
14496         used enough.
14497         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14498
14499 2011-05-10  Richard Guenther  <rguenther@suse.de>
14500
14501         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14502         a series of conversions and apply foldings similar to what
14503         fold-const does.
14504         (tree_ssa_forward_propagate_single_use_vars): Call it.
14505
14506 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
14507
14508         PR tree-optimization/48611
14509         PR tree-optimization/48794
14510         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14511         referenced from RESX or EH_DISPATCH arguments.
14512
14513         PR debug/48928
14514         * dfp.c (decimal_to_decnumber): Handle conversion from
14515         dconst{1,2,m1,half}.
14516
14517 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14518
14519         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14520         for !flag_prefer_avx128.
14521         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14522
14523 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14524
14525         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14526         (fold_ternary_loc): Use expr_location_or.
14527
14528 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14529
14530         PR debug/48853
14531         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14532         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14533         Pmode and mem_mode is not VOIDmode.
14534
14535 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
14536
14537         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14538         TYPE_QUAL_RESTRICT): Convert to enum.
14539
14540 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14541
14542         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14543         (const_pow2_1_to_8_operand): Ditto.
14544         (const_pow2_1_to_128_operand): Ditto.
14545         (const_pow2_1_to_32768_operand): Ditto.
14546         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14547         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
14548         in insn constraint to check integer value of operand 3.
14549         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14550
14551         (PINSR_MODE): New mode iterator.
14552         (sse2p4_1): New mode attribute.
14553         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14554         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14555         iterator.  Use const_int_operand instead of
14556         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
14557         exact_log2 in insn constraint to check integer value of operand 3.
14558
14559 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14560
14561         * config/i386/sse.md (blendbits): Remove mode attribute.
14562         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14563         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14564         Check integer value of operand 3 in insn constraint.
14565
14566 2011-05-09  Richard Guenther  <rguenther@suse.de>
14567
14568         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14569         for diagnostics.
14570         (lto_symtab_merge): Likewise.  Do not register types here.
14571         (lto_symtab_merge_decls_2): Likewise.
14572         (lto_symtab_merge_decls_1): Likewise.
14573         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14574         * gimple.c (enum gtc_mode): Declare.
14575         (gimple_types_compatible_p): Make static.
14576
14577 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14578
14579         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14580         temporary register to match Pmode.
14581
14582 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14583
14584         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14585         and *vec_concatv4si_1_avx.
14586
14587 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
14588
14589         PR rtl-optimization/48927
14590         * ira-conflicts.c (commutative_constraint_p): Use
14591         recog_data.alternative_enabled_p to disable alternatives where
14592         "enabled" attribute is false.
14593         (get_dup_num): Ditto.
14594         * ira-lives.c (single_reg_class): Ditto.
14595         (ira_implicitly_set_insn_hard_regs): Ditto.
14596
14597 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
14598
14599         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14600         (dataflow_set_preserve_mem_locs): Likewise.
14601
14602 2011-05-09  Philipp Thomas  <pth@suse.de>
14603
14604         * config/mep/mep.c (mep_validate_vliw): Syntax description
14605         should not be translated.
14606
14607 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
14608
14609         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14610         * config/mips/mips-tables.opt: New file (generated).
14611         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14612         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14613         MIPS_ARCH_OPTION_NATIVE): Define.
14614         * config/mips/mips.c (mips_cpu_info_table): Move contents to
14615         mips-cpus.def.
14616         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14617         mips_parse_cpu): Remove.
14618         (mips_cpu_info_from_opt, mips_default_arch): New.
14619         (mips_handle_option): Don't assert that global structures are in
14620         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14621         (mips_option_override): Use new variables and functions to set
14622         state of these options.  Use strcmp to check for individual CPU names.
14623         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14624         definition.
14625         * config/mips/mips.opt (march=): Use ToLower and Enum.
14626         (mips): Use ToLower, Enum and Var.
14627         (mtune=): Use ToLower and Enum.
14628         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14629
14630 2011-05-08  Jan Hubicka  <jh@suse.cz>
14631
14632         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14633         Arrange type pairs to be UID ordered.
14634         (gimple_lookup_type_leader): Make inline.
14635
14636 2011-05-09  Nick Clifton  <nickc@redhat.com>
14637
14638         PR target/48899
14639         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14640         PROCESSOR_DEFAULT.
14641
14642         PR target/48897
14643         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14644         variable 's'.
14645
14646 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
14647
14648         * combine.c (simplify_comparison): Abstract out parts into...
14649         (simplify_compare_const): ... new function.
14650         (try_combine): Generalize parallel arithmetic/compare combining
14651         to call simplify_compare_const() and CANONICALIZE_COMPARE().
14652
14653 2011-05-08  Jan Hubicka  <jh@suse.cz>
14654
14655         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14656         (cgraph_create_virtual_clone): Call hooks once virtual clone
14657         is finished.
14658         * cgraph.h (cgraph_clone_node): Update prototype.
14659         * ipa-cp.c (ipcp_estimate_growth): Use
14660         estimate_ipcp_clone_size_and_time.
14661         * ipa-inline-transform.c (clone_inlined_nodes): Update.
14662         * lto-cgraph.c (input_node): Update.
14663         * ipa-inline.c (recursive_inlining): Update.
14664         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14665         (evaluate_conditions_for_known_args): Break out from ...
14666         (evaluate_conditions_for_edge): ... here.
14667         (evaluate_conditions_for_ipcp_clone): New function.
14668         (inline_node_duplication_hook): Update clone summary based
14669         on parameter map.
14670         (estimate_callee_size_and_time): Rename to ...
14671         (estimate_node_size_and_time): take NODE instead of EDGE;
14672         take POSSIBLE_TRUTHS as argument.
14673         (estimate_callee_size_and_time): Update.
14674         (estimate_ipcp_clone_size_and_time): New function.
14675         (do_estimate_edge_time): Update.
14676
14677 2011-05-08  Richard Guenther  <rguenther@suse.de>
14678
14679         PR middle-end/48908
14680         PR middle-end/48905
14681         * expmed.c (expand_shift_1): Compute adjusted constant shift
14682         amount manually.
14683
14684 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14685
14686         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14687
14688 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14689
14690         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14691
14692 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
14693
14694         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14695
14696 2011-05-07  Jan Hubicka  <jh@suse.cz>
14697
14698         * ipa-inline-transform.c (inline_call): Account when program size
14699         decreases.
14700         * ipa-inline.c (relative_time_benefit): New function.
14701         (edge_badness): Reorganize to be power 2 based; fix thinko when
14702         computing badness for negative growth; update comments to match
14703         reality; better dumps.
14704
14705 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14706
14707         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14708         type to bool and adjust comment.
14709         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14710         (fold_mathfn_compare): Remove calls to global_bindings_p.
14711         (fold_inf_compare): Likewise.
14712         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14713         * c-tree.h (global_bindings_p): Adjust prototype.
14714         * c-decl.c (global_bindings_p): Return bool and simplify.
14715
14716 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
14717
14718         PR tree-optimization/48837
14719         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14720         when accumulator transformation is performed.
14721
14722 2011-05-06  Jan Hubicka  <jh@suse.cz>
14723
14724         * i386.h (ix86_tune_indices): Add
14725         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14726         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14727         * i386.c (initial_ix86_tune_features): Add
14728         X86_SOFTARE_PREFETCHING_BENEFICIAL.
14729         (software_prefetching_beneficial_p): Remove predicate.
14730         (ix86_option_override_internal): Use new macro.
14731
14732 2011-05-06  Jan Hubicka  <jh@suse.cz>
14733
14734         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14735
14736 2011-05-06  Jan Hubicka  <jh@suse.cz>
14737
14738         * cgraph.c (cgraph_add_thunk): Create real function node instead
14739         of alias node; finalize it and mark needed/reachale; arrange visibility
14740         to be right and add it into the corresponding same comdat group list.
14741         (dump_cgraph_node): Dump thunks.
14742         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14743         cgraph_function_with_gimple_body_p,
14744         cgraph_first_function_with_gimple_body,
14745         cgraph_next_function_with_gimple_body): New functions.
14746         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14747         New macros.
14748         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14749         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14750         * cgraphunit.c (cgraph_finalize_function): Only look into possible
14751         devirtualization when optimizing.
14752         (verify_cgraph_node): Verify thunks.
14753         (cgraph_analyze_function): Analyze thunks.
14754         (cgraph_mark_functions_to_output): Output thunks only in combination
14755         with function they are assigned to.
14756         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14757         alias into normal node.
14758         (assemble_thunks): New functoin.
14759         (cgraph_expand_function): Use it.
14760         * lto-cgraph.c (lto_output_node): Stream thunks.
14761         (input_overwrite_node): Stream in thunks.
14762         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14763         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14764         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14765         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14766         (inline_analyze_function): Do not care about thunk jump functions.
14767         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14768         * ipa-prop.c (ipa_prop_write_jump_functions): Use
14769         cgraph_function_with_gimple_body_p.
14770         * passes.c (do_per_function_toporder): Use
14771         cgraph_function_with_gimple_body_p.
14772         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14773         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14774         (function_called_by_processed_nodes_p): Likewise.
14775
14776 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14777
14778         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14779         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14780         entries.
14781         (mabi=): Replace with separate entries for mabi=altivec,
14782         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14783         mabi=ieeelongdouble and mabi=ibmlongdouble.
14784         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14785         check for -mabi=spe without SPE ABI support here.
14786         (rs6000_handle_option): Replace OPT_mabi_ handling with
14787         OPT_mabi_altivec and OPT_mabi_spe handling.
14788
14789 2011-05-06  Cary Coutant  <ccoutant@google.com>
14790
14791         * dwarf2out.c (contains_subprogram_definition): New function.
14792         (should_move_die_to_comdat): Call it.
14793
14794 2011-05-06  Jeff Law  <law@redhat.com>
14795
14796         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14797         remove_ctrl_stmt_and_useless_edges.
14798         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14799         (fixup_template_block, thread_single_edge): Likewise.
14800         (mark_threaded_blocks): Use THREAD_TARGET.
14801
14802 2011-05-06  Alan Modra  <amodra@gmail.com>
14803
14804         PR target/48900
14805         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14806         const0_rtx as the arg to the dummy __tls_get_addr libcall.
14807
14808 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14809
14810         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14811         constraint modifier to "r".
14812
14813 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
14814
14815         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14816         fall through for OPT_mcmodel_.
14817
14818 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14819
14820         * config/s390/s390.c (s390_asm_trampoline_template): Comment
14821         instruction sizes.
14822         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14823
14824 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14825
14826         PR target/47930
14827         * config/arm/arm.opt (marm): Document it.
14828         (mthumb): Reject negative variant.
14829
14830 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
14831
14832         PR target/48898
14833         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14834         Fix typo in "ccvt" variable name.
14835
14836 2011-05-06  Tristan Gingold  <gingold@adacore.com>
14837
14838         PR target/48895
14839         * config/vms/vms-ar.c (main): Remove cwd variable.
14840
14841 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
14842
14843         PR debug/48902
14844         * var-tracking.c (prepare_call_arguments): Move else before #endif.
14845
14846 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
14847
14848         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14849         * gimplify.c (gimplify_switch_expr): Likewise.
14850         * omp-low.c (expand_omp_sections): Likewise.
14851         * tree-eh.c (lower_try_finally_switch): Likewise.
14852         (lower_eh_dispatch): Likewise.
14853         * tree.h (build_case_label): Declare.
14854         * tree.c (build_case_label): Define.
14855
14856 2011-05-05  Jason Merrill  <jason@redhat.com>
14857
14858         PR c++/40975
14859         * tree-inline.c (copy_tree_r): Use copy_statement_list.
14860         (copy_statement_list): Don't recurse.
14861         * stor-layout.c (copy_self_referential_tree_r): Don't allow
14862         STATEMENT_LIST.
14863
14864 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14865
14866         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14867         through from -mfpu= handling.
14868         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14869
14870 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
14871
14872         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14873         POST_MODIFY.
14874
14875 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
14876
14877         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14878         for 11.31.
14879         (hppa[12]*-*-hpux11*): Ditto.
14880         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14881         * config/ia64/hpux-unix2003.h: New.
14882         * config/pa/pa-hpux1131.opt: New.
14883         * config/pa/pa-hpux1131.h: New.
14884         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14885         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14886         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14887
14888 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14889
14890         PR debug/48853
14891         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14892         instead of mode as 3rd argument to recursive call.
14893         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14894         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14895         VOIDmode.
14896         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14897         don't give up if mode is Pmode and mem_mode is not VOIDmode.
14898         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14899         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14900
14901 2011-05-05  Julian Brown  <julian@codesourcery.com>
14902
14903         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14904         parenthesis in D-register case.
14905
14906 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14907
14908         * opt-functions.awk (var_type_struct): Handle Enum options.
14909         * optc-gen.awk: Don't check range of variables of character type.
14910         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14911         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14912         rs6000_sdata_name, rs6000_explicit_options): Remove.
14913         (rs6000_option_override_internal): Check for -malign-power here.
14914         Use global_options_set instead of rs6000_explicit_options.
14915         (rs6000_parse_fpu_option): Remove.
14916         (rs6000_handle_option): Access variables via opts and opts_set
14917         pointers.  Use error_at and warning_at.  Add fall-through
14918         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14919         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14920         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14921         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14922         here.  Don't use rs6000_parse_fpu_option.
14923         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14924         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14925         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14926         (mrecip=): Use Var.
14927         (mspe): Use Var and Save.
14928         (mtraceback=): Use Enum and Var.
14929         (rs6000_traceback_type): New Enum and EnumValue entries.
14930         (mfloat-gprs=): Use Enum, Var and Save.
14931         (rs6000_float_gprs): New Enum and EnumValue entries.
14932         (mlong-double-): use Var and Save.
14933         (msched-costly-dep=, minsert-sched-nops=): Use Var.
14934         (malign-): Use Enum and Var.
14935         (rs6000_alignment_flags): New Enum and EnumValue entries.
14936         (mfpu=): Use Enum.
14937         (fpu_type_t): New Enum and EnumValue entries.
14938         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14939         global_options_set instead of rs6000_explicit_options.
14940         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14941         global_options_set instead of rs6000_explicit_options.
14942         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14943         global_options_set instead of rs6000_explicit_options.
14944         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14945         global_options_set instead of rs6000_explicit_options.
14946         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14947         global_options_set instead of rs6000_explicit_options.
14948         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14949         global_options_set instead of rs6000_explicit_options.
14950         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14951         definition.
14952         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14953         global_options_set instead of rs6000_explicit_options.
14954         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14955         (rs6000_cmodel): New Enum and EnumValue entries.
14956         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14957         global_options_set instead of rs6000_explicit_options.
14958         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14959         (mtls-size=): Use Enum and Var.
14960         (rs6000_tls_size): New Enum and EnumValue entries.
14961
14962 2011-05-05  Michael Matz  <matz@suse.de>
14963
14964         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14965         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14966         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14967         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14968         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14969         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14970         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14971         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14972         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14973         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14974         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14975         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14976         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14977         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14978         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14979         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14980
14981 2011-05-05  Richard Guenther  <rguenther@suse.de>
14982
14983         * expmed.c (expand_variable_shift): Rename to ...
14984         (expand_shift_1): ... this.  Take an expanded shift amount.
14985         For rotates recurse directly not building trees for the shift amount.
14986         (expand_variable_shift): Wrap around expand_shift_1.
14987         (expand_shift): Adjust.
14988
14989 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
14990
14991         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14992
14993 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14994
14995         * tree.h (get_pending_sizes): Remove prototype.
14996         (put_pending_size): Likewise.
14997         (put_pending_sizes): Likewise.
14998         * stor-layout.c (pending_sizes): Delete.
14999         (get_pending_sizes): Likewise.
15000         (put_pending_size): Likewise.
15001         (put_pending_sizes): Likewise.
15002         (variable_size): Do not call put_pending_size and tidy up.
15003         * function.h (struct function): Remove dont_save_pending_sizes_p.
15004         * lto-streamer-in.c (input_function): Do not stream it.
15005         * lto-streamer-out.c (output_function): Likewise.
15006         * tree-inline.c (initialize_cfun): Do not copy it.
15007         * c-decl.c (store_parm_decls): Do not set it.
15008         * omp-low.c (create_task_copyfn): Likewise.
15009         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15010
15011 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
15012
15013         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15014         conditions.
15015         (*movdf_internal): Ditto.
15016         (*movdf_internal_nointeger): Ditto.
15017         (*movsf_internal): Ditto.
15018
15019 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15020
15021         * c-decl.c (finish_decl): Don't call get_pending_sizes.
15022         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
15023         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
15024         (c_variable_size): Remove.
15025         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
15026         call put_pending_sizes.
15027         (get_parm_info): Add parameter expr.  Use it to set
15028         arg_info->pending_sizes.
15029         (store_parm_decls): Use arg_info->pending_sizes instead or calling
15030         get_pending_sizes.
15031         * c-parser.c (c_parser_parms_declarator): Update call to
15032         c_parser_parms_list_declarator.
15033         (c_parser_parms_list_declarator): Take parameter expr.  Update
15034         call to push_parm_decl.  Update recursive call.  Don't call
15035         get_pending_sizes.  Update calls to get_parm_info.
15036         (c_parser_objc_method_definition): Update calls to
15037         c_parser_objc_method_decl and objc_start_method_definition.
15038         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15039         (c_parser_objc_method_decl): Add parameter expr.  Update call to
15040         grokparm.
15041         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15042         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15043         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15044
15045 2011-05-05  Michael Hope  <michael.hope@linaro.org>
15046
15047         PR pch/45979
15048         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15049         __ARM_EABI__ hosts.
15050
15051 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15052
15053         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15054         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15055         (spu_output_mi_thunk): New function.
15056
15057 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15058
15059         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15060         targetm.asm_out.print_operand.
15061         * config/sol2.c: Include target.h.
15062
15063 2011-05-04  Jan Hubicka  <jh@suse.cz>
15064
15065         * ipa-inline.c (reset_edge_caches): New function.
15066         (update_caller_keys): Add check_inlinablity_for; do not
15067         reset edge caches; remove now unnecesary loop.
15068         (update_callee_keys): Add comments; reset node_growth_cache of callee.
15069         (update_all_callee_keys): Likewise.
15070         (inline_small_functions): Sanity check cache; update code
15071         recomputing it.
15072
15073 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
15074
15075         PR rtl-optimization/47612
15076         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15077         as the last insn of the sequence to be moved.
15078
15079 2011-05-04  Tobias Burnus  <burnus@net-b.de>
15080
15081         PR fortran/48864
15082         * doc/invoke.texi (Ofast): Document that it
15083         enables Fortran's -fno-protect-parens.
15084
15085 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15086
15087         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15088
15089 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15090
15091         * stor-layout.c (variable_size): Do not issue errors.
15092
15093 2011-05-04  Richard Guenther  <rguenther@suse.de>
15094
15095         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15096         for array-ref indices.
15097         (tree_coverage_counter_addr): Likewise.
15098         (build_fn_info_type): Use size_int for index types.
15099         (build_gcov_info): Likewise.
15100
15101 2011-05-04  Richard Guenther  <rguenther@suse.de>
15102
15103         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15104         to build_int_cst.
15105         * c-typeck.c (really_start_incremental_init): Use bitsize_int
15106         for constructor indices.
15107         (push_init_level): Likewise.
15108
15109 2011-05-04  Richard Guenther  <rguenther@suse.de>
15110
15111         * explow.c (promote_mode): Move variable declarations before code.
15112
15113 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
15114
15115         * tree.h (build_function_type_array): Declare.
15116         (build_varargs_function_type_array): Declare.
15117         (build_function_type_vec, build_varargs_function_type_vec): Define.
15118         * tree.c (build_function_type_array_1): New function.
15119         (build_function_type_array): New function.
15120         (build_varargs_function_type_array): New function.
15121
15122 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
15123
15124         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15125         before setting STMT_VINFO_TYPE.
15126
15127 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15128
15129         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15130         instead of spu_pass_by_reference.
15131
15132 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15133
15134         * calls.c (emit_library_call_value_1): Invoke
15135         promote_function_mode hook on libcall arguments.
15136         * explow.c (promote_function_mode, promote_mode): Handle TYPE
15137         argument being NULL.
15138         * targhooks.c (default_promote_function_mode): Lisewise.
15139         * config/s390/s390.c (s390_promote_function_mode): Likewise.
15140         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15141
15142         * doc/tm.texi: Document that TYPE argument might be NULL.
15143
15144 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15145
15146         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15147
15148 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15149
15150         From Bernd Schmidt
15151         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15152
15153 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15154
15155         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15156         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15157         Move ...
15158         * mips-tfile.c: ... here.
15159         Don't include coretypes.h, tm.h, filenames.h.
15160         (saber_stop): Remove definition and all calls.
15161         [__SABER__]: Remove.
15162         (__LINE__): Remove default.
15163         (Size_t, Ptrdiff_t): Remove definitions.
15164         Replace by size_t, ptrdiff_t.
15165         [!MIPS_DEBUGGING_INFO]: Remove.
15166         (SHASH_SIZE, THASH_SIZE): Remove defaults.
15167         (progname): Add const.
15168         (STATIC): Remove.
15169         Replace all uses by static.
15170         (ALIGN_SYMTABLE_OFFSET): Remove default.
15171         * mips-tdump.c: Don't include coretypes.h, tm.h.
15172         Remove !MIPS_IS_STAB guard.
15173         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15174         $(TM_H), filenames.h dependencies.
15175         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15176
15177 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15178
15179         From Jie Zhang
15180         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15181         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15182
15183 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15184
15185         From Bernd Schmidt
15186         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15187         account and save/restore RETS.
15188         (PROFILE_BEFORE_PROLOGUE): Define.
15189         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
15190         the push insn to use predecrement.
15191
15192 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
15193
15194         From Jie Zhang
15195         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15196
15197 2011-05-04  Nick Clifton  <nickc@redhat.com>
15198
15199         * config/mn10300/mn10300.c: Include cfgloop.h.
15200         (DUMP): New macro.
15201         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
15202         Lcc or a FLcc insn into the instruction stream.
15203         (mn10300_block_contains_call): New function.  Returns true if the
15204         given basic block contains a CALL insn.
15205         (mn10300_loop_contains_call_insn): New function.  Returns true if
15206         the given loop contains a CALL insn.
15207         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
15208         to use the SETLB and Lcc or FLcc insns.
15209         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15210         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15211         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
15212         disable the SETLB optimization.
15213         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15214         __SETLB__ or __NO_SETLB__.
15215         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15216         (movsf_internal): Handle MDR register.
15217         (cmpsi): Make visible.
15218         (setlb): New pattern.
15219         (Lcc): New pattern.
15220         (FLcc): New pattern.
15221
15222 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15223
15224         PR target/48860
15225         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15226         for reg<->xmm moves.
15227         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15228         (vec_concatv2di_rex64_sse): Ditto.
15229         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15230         (*vec_extractv2di_1_rex64): Ditto.
15231
15232         Revert:
15233         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15234
15235         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15236         reg<->xmm moves.
15237         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15238
15239 2011-05-04  Richard Guenther  <rguenther@suse.de>
15240
15241         * tree.h (int_const_binop): Remove notrunc argument.
15242         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
15243         create integer constants that are properly truncated.
15244         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15245         (const_binop): Remove zero notrunc argument to int_const_binop.
15246         (size_binop_loc): Likewise.
15247         (fold_div_compare): Likewise.
15248         (maybe_canonicalize_comparison_1): Likewise.
15249         (fold_comparison): Likewise.
15250         (fold_binary_loc): Likewise.
15251         (multiple_of_p): Likewise.
15252         * expr.c (store_constructor): Likewise.
15253         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15254         (maybe_fold_stmt_addition): Likewise.
15255         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15256         * stor-layout.c (layout_type): Likewise.
15257         * tree-data-ref.c (tree_fold_divides_p): Likewise.
15258         * tree-sra.c (build_ref_for_offset): Likewise.
15259         (build_user_friendly_ref_for_offset): Likewise.
15260         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15261         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15262         * tree-ssa-loop-niter.c (inverse): Likewise.
15263         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15264         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15265         * tree-switch-conversion.c (check_range): Likewise.
15266         (build_constructors): Likewise.
15267         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15268         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15269         (extract_range_from_assert): Likewise.
15270         (vrp_int_const_binop): Likewise.
15271         (extract_range_from_binary_expr): Likewise.
15272         (extract_range_from_unary_expr): Likewise.
15273         (check_array_ref): Likewise.
15274         (find_case_label_range): Likewise.
15275         (simplify_div_or_mod_using_ranges): Likewise.
15276         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15277         comparing case labels for merging.
15278
15279 2011-05-03  Mark Wielaard  <mjw@redhat.com>
15280
15281         * dwarf2out.c (debug_str_hash_forced): Removed.
15282         (gen_label_for_indirect_string): Removed.
15283         (get_debug_string_label): Removed.
15284         (AT_string_form): Generate label directly.
15285         (output_indirect_string): Test indirect_string_node for
15286         DW_FORM_strp instead of checking label and refcount.
15287         (prune_indirect_string): Removed.
15288         (prune_unused_types): Don't check debug_str_hash_forced or
15289         call prune_indirect_string.
15290
15291 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15292
15293         PR other/48093
15294         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15295
15296 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
15297
15298         PR debug/47994
15299         PR debug/47919
15300         * combine.c (try_combine): Skip debug insns at m_split tests.
15301
15302 2011-04-26  Mark Wielaard  <mjw@redhat.com>
15303
15304         PR42288
15305         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15306         when info_section_emitted.
15307
15308 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
15309
15310         * config/mips/mips-opts.h: New.
15311         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15312         to mips-opts.h.
15313         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15314         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15315         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
15316         via opts pointer.
15317         * config/mips/mips.h (enum mips_code_readable_setting): Move to
15318         mips-opts.h.
15319         (mips_abi, mips_code_readable): Don't declare.
15320         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15321         (mabi=): Use Enum and Var.
15322         (mips_abi): New Enum and EnumValue entries.
15323         (mcode-readable=): Use Enum and Var.
15324         (mips_code_readable_setting): New Enum and EnumValue entries.
15325         (mr10k-cache-barrier=): Use Enum and Var.
15326         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15327
15328 2011-05-03  Jan Hubicka  <jh@suse.cz>
15329
15330         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15331         replace hash by pointer map.
15332         (cgraph_node_set_element_def, cgraph_node_set_element,
15333         const_cgraph_node_set_element, varpool_node_set_element_def,
15334         varpool_node_set_element, const_varpool_node_set_element): Remove.
15335         (free_cgraph_node_set, free_varpool_node_set): New function.
15336         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15337         * tree-emutls.c: Free varpool node set.
15338         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15339         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15340         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15341         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15342         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15343         Move here from ipa.c; implement using pointer_map
15344         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15345         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15346         debug_cgraph_node_set, varpool_node_set_new,
15347         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15348         dump_varpool_node_set, debug_varpool_node_set):
15349         Move to ipa-uitls.c.
15350         * passes.c (ipa_write_summaries): Update.
15351
15352 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15353
15354         From Mike Frysinger:
15355         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15356         bf542/bf544/bf547/bf548/bf549.
15357
15358 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15359
15360         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15361
15362 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15363
15364         From Bernd Schmidt:
15365         * config/bfin/bfin.md (MOVCC): New mode_macro.
15366         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15367         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
15368         comments from generated assembly.
15369
15370 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15371
15372         From Bernd Schmidt
15373         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15374         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15375         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15376         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15377         * config/bfin/lib1funcs.asm (___muldi3): New function.
15378
15379 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15380
15381         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15382         build_function_type_list instead of build_function_type.
15383         Rearrange initialization of `args' to do so.
15384
15385 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15386
15387         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15388         instead of build_function_type.
15389
15390 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15391
15392         * config/rs6000/rs6000.c (spe_init_builtins): Call
15393         build_function_type_list instead of build_function_type.
15394         (paired_init_builtins, altivec_init_builtins): Likewise.
15395         (builtin_function_type): Likewise.
15396
15397 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15398
15399         * config/sh/sh.c (sh_media_init_builtins): Call
15400         build_function_type_list instead of build_function_type.
15401
15402 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15403
15404         * config/sparc/sparc.c (sparc_file_end): Call
15405         build_function_type_list instead of build_function_type.
15406
15407 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15408
15409         * config/alpha/alpha.c (alpha_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/xtensa/xtensa.c (xtensa_init_builtins): Call
15415         build_function_type_list instead of build_function_type.
15416
15417 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15418
15419         * config/iq2000/i2000.c (iq2000_init_builtins): Call
15420         build_function_type_list instead of build_function_type.
15421         Delete `endlink' variable.
15422
15423 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15424
15425         * config/avr/avr.c (avr_init_builtins): Call
15426         build_function_type_list instead of build_function_type.
15427
15428 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15429
15430         * config/picochip/picochip.c (picochip_init_builtins): Call
15431         build_function_type_list instead of build_function_type.
15432         Delete `endlink' variable.
15433
15434 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
15435
15436         * config/bfin/bfin.c (bfin_init_builtins): Call
15437         build_function_type_list instead of build_function_type.
15438
15439 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15440
15441         From Bernd Schmidt
15442         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15443         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
15444
15445 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15446
15447         From Jie Zhang:
15448         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15449         libbffastfp overrides libgcc when -mfast-fp.
15450
15451 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15452
15453         Originally from Bernd Schmidt
15454         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15455         * config/bfin/bfin.c (override_options): Test it and error if
15456         TARGET_FDPIC.
15457
15458 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
15459
15460         Originally From Bernd Schmidt
15461         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15462         FD-PIC.
15463
15464 2011-05-03  Jeff Law  <law@redhat.com>
15465
15466         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15467         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15468         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15469         than accessing AUX field directly.  Free the AUX field before
15470         clearing it.
15471         (thread_block, thread_through_loop_header): Likewise.
15472         (thread_single_edge, mark_threaded_blocks): Likewise.
15473         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
15474         (register_jump_thread): Do not attempt to thread to a NULL edge.
15475
15476 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15477
15478         * function.c (init_function_start): Call decide_function_section.
15479         * varasm.c (decide_function_section): New function.
15480         (assemble_start_function): When not using
15481         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15482         or first_function_block_is_cold.
15483         * rtl.h (decide_function_section): Declare.
15484
15485 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
15486             Jakub Jelinek  <jakub@redhat.com>
15487
15488         PR target/48774
15489         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15490         only succeed if req_mode is the same as set_mode.
15491
15492 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
15493
15494         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15495         * genemit.c (gen_exp): Handle RETURN.
15496         * emit-rtl.c (verify_rtx_sharing): Likewise.
15497         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15498         * rtl.c (copy_rtx): RETURN is shared.
15499         * rtl.h (enum global_rtl_index): Add GR_RETURN.
15500         (ret_rtx): New.
15501         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15502         * config/s390/s390.c (s390_emit_epilogue): Likewise.
15503         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15504         * config/cris/cris.c (cris_expand_return): Likewise.
15505         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15506         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15507         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15508         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15509         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15510         Likewise.
15511         * config/v850/v850.c (expand_epilogue): Likewise.
15512         * config/bfin/bfin.c (bfin_expand_call): Likewise.
15513         * config/arm/arm.md (epilogue): Likewise.
15514         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15515         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15516         variable to ret_reg.
15517
15518 2011-05-03  Richard Guenther  <rguenther@suse.de>
15519
15520         PR lto/48846
15521         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15522         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15523         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15524
15525 2011-05-03  Richard Guenther  <rguenther@suse.de>
15526
15527         * c-decl.c (grokdeclarator): Instead of looking at
15528         TREE_OVERFLOW check if the constant fits in the index type.
15529
15530 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15531
15532         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15533         (vec_store_lanes<mode><mode>): Likewise.
15534
15535 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15536
15537         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15538         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15539         convert_optab_index values.
15540         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15541         * genopinit.c (optabs): Initialize the new optabs.
15542         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15543         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15544         (expand_STORE_LANES): New functions.
15545         * tree.h (build_array_type_nelts): Declare.
15546         * tree.c (build_array_type_nelts): New function.
15547         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15548         (vect_model_load_cost): Likewise.
15549         (vect_store_lanes_supported, vect_load_lanes_supported)
15550         (vect_record_strided_load_vectors): Declare.
15551         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15552         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15553         (vect_transform_strided_load): Split out statement recording into...
15554         (vect_record_strided_load_vectors): ...this new function.
15555         * tree-vect-stmts.c (create_vector_array, read_vector_array)
15556         (write_vector_array, create_array_ref): New functions.
15557         (vect_model_store_cost): Add store_lanes_p argument.
15558         (vect_model_load_cost): Add load_lanes_p argument.
15559         (vectorizable_store): Try to use store-lanes functions for
15560         interleaved stores.
15561         (vectorizable_load): Likewise load-lanes and loads.
15562         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15563         to vect_model_store_cost.
15564         (vect_build_slp_tree): Likewise vect_model_load_cost.
15565
15566 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
15567
15568         * hooks.h (hook_bool_mode_uhwi_false): Declare.
15569         * hooks.c (hook_bool_mode_uhwi_false): New function.
15570         * target.def (array_mode_supported_p): New hook.
15571         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15572         * doc/tm.texi: Regenerate.
15573         * stor-layout.c (mode_for_array): New function.
15574         (layout_type): Use it.
15575         * config/arm/arm.c (arm_array_mode_supported_p): New function.
15576         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15577
15578 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
15579
15580         PR target/48723
15581         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15582         for -fstack-check if the size to allocate is negative.
15583
15584 2011-05-02  Lawrence Crowl  <crowl@google.com>
15585
15586         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15587         (timevar_cond_start): New for starting a timer only when it is not
15588         already running.
15589         (timevar_cond_stop): New for stopping a timer when it was not already
15590         running.
15591
15592         * timevar.c (timevar_stop): Enable start/stop timers to start again.
15593         (timevar_cond_start): New as above.
15594         (timevar_cond_stop): New as above.
15595
15596         * timevar.def: Add start/stop timers for compiler phases,
15597         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15598         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15599         and TV_PHASE_FINALIZE.
15600         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15601         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15602         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15603         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15604         Make unused TV_OVERLOAD into a start/stop timer.
15605
15606         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15607         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15608         to indicate that they are start/stop timers.
15609
15610         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15611         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15612         Move initialization to do_compile.
15613         (do_compile): Add initialization from above.
15614         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15615
15616         * c-decl.c (c_write_global_declarations): Add start/stop of
15617         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15618
15619         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15620         or TV_PARSE_INLINE, as appropriate.
15621         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15622         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15623
15624 2011-05-02  Jason Merrill  <jason@redhat.com>
15625
15626         PR c++/40975
15627         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15628
15629 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
15630
15631         PR c/35445
15632         * c-decl.c (finish_decl): Only create a composite if the types are
15633         compatible.
15634
15635 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15636
15637         * config/fr30/fr30-protos.h (Mmode): Don't define.
15638         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
15639         definition where used.
15640         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15641         define.  Expand definitions where used.
15642         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15643         Expand definitions where used.
15644         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15645         rx_function_arg, rx_function_arg_advance,
15646         rx_function_arg_boundary): Expand definitions of those macros.
15647         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
15648         definition where used.
15649
15650 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15651
15652         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15653         reg<->xmm moves.
15654         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15655         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
15656         with *movv2sf_internal_rex64_avx.
15657         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15658         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15659         Use %v prefix in insn mnemonic to handle TARGET_AVX.
15660         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
15661         "vex" in "prefix" attribute calculation.
15662         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
15663
15664 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
15665
15666         PR target/47951
15667         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15668         inputs match the output.
15669
15670 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
15671
15672         PR target/47955
15673         * config/m68k/m68k.c (m68k_expand_prologue): Set
15674         current_function_static_stack_size.
15675
15676 2011-05-02   Jan Hubicka  <jh@suse.cz>
15677
15678         * lto-streamer.c (lto_streamer_cache_insert_1,
15679         lto_streamer_cache_lookup, lto_streamer_cache_create,
15680         lto_streamer_cache_delete): Use pointer map instead of hashtable.
15681         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15682
15683 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
15684
15685         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15686         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15687         config/m68k/t-opts: New files.
15688         * config/m68k/m68k-tables.opt: New file (generated).
15689         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15690         extra_options and m68k/t-opts to tmake_file.
15691         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15692         (all_isas): Initialize using m68k-isas.def.
15693         (all_microarchs): Initialize using m68k-microarchs.def.
15694         (m68k_find_selection): Remove.
15695         (m68k_handle_option): Don't assert that global structures are in
15696         use.  Use error_at.  Access variables via opts pointer.  Don't
15697         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
15698         directly for -m68020-40 and -m68020-60.
15699         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15700         m68k_tune_entry here.
15701         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15702         to m68k-opts.h.
15703         (m68k_library_id_string): Remove declaration.
15704         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15705         (m68k_library_id_string): New Variable.
15706         (march=, mcpu=, mtune=): Use Enum and Var.
15707
15708 2011-05-02  Richard Guenther  <rguenther@suse.de>
15709
15710         * varasm.c (output_constructor_regular_field): Compute zero-based
15711         index with double-ints.  Make sure to ICE instead of producing
15712         wrong code.
15713         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15714         in asserts.  Properly use a signed type.
15715
15716 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
15717
15718         * config/i386/sse.md (V): New mode iterator.
15719         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
15720         TARGET_SSE2.
15721         (V_256): Rename from AVX256MODE.
15722         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
15723         condition to all users.
15724         (VF1): Ditto.
15725         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
15726         condition to all users.
15727         (VF_128): Make V4SF mode unconditional.
15728         (VF_256): Rename from AVX256MODEF2P.
15729         (VI4F_128): Rename from SSEMODE4S.
15730         (VI8F_128): Rename from SSEMODE2D.
15731         (VI4F_256): Rename from AVX256MODE8P.
15732         (VI8F_256): Rename from AVX256MODE4P.
15733         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15734         (ssescalarmodesuffix): Remove SF and DF modes.
15735         (SSEMODE124): Remove.
15736         (SSEMODE1248): Ditto.
15737         (SSEMODEF2P): Ditto.
15738         (AVXMODEF2P): Ditto.
15739         (AVXMODEFDP): Ditto.
15740         (AVXMODEFSP): Ditto.
15741         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15742         unconditional.
15743         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
15744         unconditional.
15745         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15746         xop_pcmov_<mode>256.  Use V mode iterator.
15747
15748         Adjust RTX patterns globally for renamed mode attributes.
15749
15750 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15751
15752         * haifa-sched.c (sched_emit_insn): Emit insn before first
15753         non-scheduled insn.  Inform back-end about new insn.  Add
15754         new insn to scheduled_insns list.
15755
15756 2011-05-02  Richard Guenther  <rguenther@suse.de>
15757
15758         PR tree-optimization/48822
15759         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15760         (process_scc): Indicate which iteration we start.
15761
15762 2011-05-02  Jan Hubicka  <jh@suse.cz>
15763
15764         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15765         (lto_section_overrun): New.
15766         * lto-section-out.c (append_block): Rename to ...
15767         (lto_append_block): ... this one; export.
15768         (lto_output_1_stream): Move lto lto-streamer.h
15769         (lto_output_data_stream): Update.
15770         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15771         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15772         functions.
15773
15774 2011-05-02  Richard Guenther  <rguenther@suse.de>
15775
15776         * tree.c (tree_code_counts): New global array.
15777         (record_node_allocation_statistics): Count individual tree codes.
15778         (dump_tree_statistics): Dump individual code stats.
15779
15780 2011-05-01  Jan Hubicka  <jh@suse.cz>
15781
15782         * ipa-inline.c (caller_growth_limits): Fix thinko when
15783         looking for largest stack frame.
15784         * ipa-inline.h (dump_inline_summary): Declare.
15785         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15786         on stack usage.
15787         (dump_inline_summary): Export.
15788         (debug_inline_summary): Declare as DEBUG_FUNCTION.
15789
15790 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
15791
15792         * reginfo.c (memory_move_cost): Change rclass argument type form
15793         'enum reg_class' to reg_class_t.
15794         * reload.h (memory_move_cost): Update prototype.
15795         * postreload.c reload_cse_simplify_set): Change type dclass var to
15796         reg_class_t.
15797         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15798         Update prototype.
15799         (ira_allocate_and_set_costs): Change aclass argument type form
15800         'enum reg_class' to reg_class_t.
15801         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15802         Change aclass argument type to reg_class_t.
15803         (update_conflict_hard_reg_costs): Change type aclass and pref vars
15804         to reg_class_t.
15805         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15806         memory_move_cost call.
15807
15808         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15809         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15810         Change type tmp var to reg_class_t.
15811
15812 2011-04-30  Jan Hubicka  <jh@suse.cz>
15813
15814         * ipa-inline.c (can_inline_edge_p): Disregard limits when
15815         inlining into function with flatten attribute.
15816         (want_inline_small_function_p): Be more realistic about inlining
15817         cold calls where callee size grows.
15818
15819 2011-04-30  Jan Hubicka  <jh@suse.cz>
15820
15821         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15822         flags.
15823
15824 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
15825
15826         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15827         PRINT_OPERAND_PUNCT_VALID_P): Remove.
15828         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15829         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15830         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15831         (print_operand): Rename to...
15832         (sparc_print_operand): ...this. Make static. Adjust
15833         sparc_print_operand function call.
15834         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15835         functions.
15836
15837 2011-04-30  Jan Hubicka  <jh@suse.cz>
15838
15839         PR middle-end/48752
15840         * ipa-inline.c (early_inliner): Disable when doing late
15841         addition of function.
15842
15843 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
15844
15845         * dwarf2out.c (get_address_mode): New inline.
15846         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15847         if not dwarf_strict emit
15848         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15849         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15850         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
15851         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15852         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15853         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15854         mem_loc_descriptor callers.
15855         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15856         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15857         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15858         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15859         (base_types): New variable.
15860         (get_base_type_offset, calc_base_type_die_sizes,
15861         base_type_for_mode, mark_base_types, base_type_cmp,
15862         move_marked_base_types): New functions.
15863         (calc_die_sizes): Assert that die_offset is 0 or equal to
15864         next_die_offset.
15865         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15866         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
15867         callers.  If not dwarf_strict, call mem_loc_descriptor even for
15868         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15869         (gen_subprogram_die): Don't give up on call site parameters
15870         with non-integral or large integral modes.  Adjust
15871         mem_loc_descriptor callers.
15872         (prune_unused_types): Call prune_unused_types_mark on base_types
15873         vector entries.
15874         (resolve_addr): Call mark_base_types.
15875         (dwarf2out_finish): Call move_marked_base_types.
15876
15877         PR tree-optimization/48809
15878         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15879         type.
15880         (gen_inbound_check): Don't compute index_expr - range_min in utype
15881         again, instead reuse SSA_NAME initialized in build_arrays.
15882         Remove two useless gsi_for_stmt calls.
15883
15884 2011-04-29  Jeff Law  <law@redhat.com>
15885
15886         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15887
15888 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15889
15890         * cgraph.h (cgraph_postorder): Remove declaration.
15891         * ipa-utils.h (ipa_free_postorder_info): Declare.
15892         (ipa_reverse_postorder): Likewise.
15893         * cgraphunit.c: Include ipa-utils.h.
15894         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15895         * ipa-inline.c: Include ipa-utils.h.
15896         (ipa_inline): Update call to ipa_reverse_postorder.
15897         * ipa-pure-const.c (propagate_pure_const): Update call to
15898         ipa_reduced_postorder and ipa_print_order.  Call
15899         ipa_free_postorder_info to clean up.
15900         (propagate_nothrow): Likewise.
15901         * ipa-reference.c (propagate): Removed a useless call to
15902         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15903         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
15904         * ipa.c: Include ipa-utils.h.
15905         (ipa_profile): Update call to ipa_reverse_postorder.
15906         (cgraph_postorder): Moved to...
15907         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15908         (ipa_utils_print_order): Renamed to ipa_print_order.
15909         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15910         comments.
15911         (ipa_free_postorder_info): New function.
15912         * passes.c: Include ipa-utils.h.
15913         (do_per_function_toporder): Update call to ipa_reverse_postorder.
15914         (ipa_write_summaries): Likewise.
15915         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15916         (cgraphunit.o): Likewise.
15917         (ipa.o): Likewise.
15918         (ipa-inline.o): Likewise.
15919
15920 2011-04-29  Jan Hubicka  <jh@suse.cz>
15921
15922         * gcc.dg/tree-ssa/inline-10.c: New testcase.
15923         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15924         * ipa-inline.h (clause_t): Turn into unsigned int.
15925         * ipa-inline-analysis.c (add_clause): Do more simplification.
15926         (and_predicates): Shortcut more cases.
15927         (predicates_equal_p): Move forward; check that clauses are properly
15928         ordered.
15929         (or_predicates): Shortcut more cases.
15930         (edge_execution_predicate): Rewrite as...
15931         (set_cond_stmt_execution_predicate): ... this function; handle
15932         __builtin_constant_p.
15933         (set_switch_stmt_execution_predicate): New .
15934         (compute_bb_predicates): New.
15935         (will_be_nonconstant_predicate): Update TODO.
15936         (estimate_function_body_sizes): Use compute_bb_predicates
15937         and free them later, always try to estimate if stmt is constant.
15938         (estimate_time_after_inlining, estimate_size_after_inlining):
15939         Gracefully handle optimized out edges.
15940         (read_predicate): Fix off by one error.
15941
15942 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
15943
15944         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15945
15946 2011-04-27  Xinliang David Li  <davidxl@google.com>
15947
15948         * tree-profile.c (init_ic_make_global_vars): Set
15949         tls attribute on ic vars.
15950         * coverage.c (coverage_end_function): Initialize
15951         function_list with zero.
15952
15953 2011-04-29  Richard Guenther  <rguenther@suse.de>
15954
15955         * builtins.c (fold_builtin_classify_type): Use integer_type_node
15956         for the type of the result.
15957         (fold_builtin_isascii): Likewise.
15958         (fold_builtin_toascii): Use integer_type_node where appropriate.
15959         (fold_builtin_logb): Likewise.
15960         (fold_builtin_frexp): Likewise.
15961         (fold_builtin_strstr): Likewise.
15962         (fold_builtin_strpbrk): Likewise.
15963         (fold_builtin_fputs): Likewise.
15964         (fold_builtin_sprintf): Likewise.
15965         (fold_builtin_snprintf): Likewise.
15966         (fold_builtin_printf): Likewise.
15967         (do_mpfr_remquo): Use a proper type for the assigned constant.
15968         (do_mpfr_lgamma_r): Likewise.
15969         * dwarf2out.c (resolve_one_addr): Use size_int.
15970         * except.c (init_eh): Likewise.
15971         (assign_filter_values): Use integer_type_node for filter values.
15972         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15973         indices.
15974         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15975         for EH region numbers.
15976         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15977         for the shift amount.
15978
15979 2011-04-29  Richard Guenther  <rguenther@suse.de>
15980
15981         * expr.h (expand_shift): Rename to ...
15982         (expand_variable_shift): ... this.
15983         (expand_shift): Take a constant shift amount.
15984         * expmed.c (expand_shift): Rename to ...
15985         (expand_variable_shift): ... this.
15986         (expand_shift): New wrapper around expand_variable_shift.
15987         * expr.c (convert_move, emit_group_load_1, emit_group_store,
15988         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15989         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15990         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15991         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15992         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15993         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15994         emit_store_flag_1, emit_store_flag): Likewise.
15995         * builtins.c (expand_builtin_signbit): Likewise.
15996         * calls.c (load_register_parameters): Likewise.
15997         * function.c (assign_parm_setup_block): Likewise.
15998         * lower-subreg.c (resolve_shift_zext): Likewise.
15999         * optabs.c (widen_bswap, expand_abs_nojump,
16000         expand_one_cmpl_abs_nojump, expand_float): Likewise.
16001         * spu/spu.c (spu_expand_extv): Likewise.
16002         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16003
16004 2011-04-29  Richard Guenther  <rguenther@suse.de>
16005
16006         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16007         for the remapped region number.
16008         * predict.c (build_predict_expr): Use integer_type_node for the
16009         predict kind.
16010         * fold-const.c (fold_binary_loc): Use integer_type_node for
16011         the shift amount.  Use a proper type for the PLUS_EXPR operand.
16012
16013 2011-04-29  Michael Matz  <matz@suse.de>
16014
16015         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16016         other trees that just builtins.
16017         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16018
16019 2011-04-29  Richard Guenther  <rguenther@suse.de>
16020
16021         * tree-nested.c (get_trampoline_type): Use size_int.
16022         (get_nl_goto_field): Likewise.
16023         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16024         for all indexes.
16025         (lower_eh_constructs_2): Likewise.
16026         (lower_resx): Likewise.
16027         (lower_eh_dispatch): Likewise.
16028         * tree-mudflap.c (mf_build_string): Use size_int.
16029         (mudflap_register_call): Use integer_type_node for the flag.
16030         (mudflap_enqueue_constant): Use size_int.
16031         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16032         instead of rebuilding it.
16033
16034 2011-04-29  Richard Guenther  <rguenther@suse.de>
16035
16036         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16037         Handle OBJ_TYPE_REF.
16038         (find_func_aliases_for_call): Use it more consistently.
16039
16040 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
16041
16042         * haifa-sched.c (last_nondebug_scheduled_insn): New.
16043         (rank_for_schedule): Use it.
16044         (schedule_block): Set it.
16045
16046 2011-04-28  David Li  <davidxl@google.com>
16047
16048         * tree.c (crc32_string): Use crc32_byte.
16049         (crc32_byte): New function.
16050         * tree.h (crc32_byte): New function.
16051         * gcov.c (read_graph_file): Handle new cfg_cksum.
16052         (read_count_file): Ditto.
16053         * profile.c (instrument_values): Ditto.
16054         (get_exec_counts): Ditto.
16055         (read_profile_edge_counts): Ditto.
16056         (compute_branch_probabilities): Ditto.
16057         (compute_value_histograms): Ditto.
16058         (branch_prob): Ditto.
16059         (end_branch_prob): Ditto.
16060         * coverage.c (read_counts_file): Ditto.
16061         (get_coverage_counts): Ditto.
16062         (tree_coverage_counter_addr): Ditto.
16063         (coverage_checksum_string): Ditto.
16064         (coverage_begin_output): Ditto.
16065         (coverage_end_function): Ditto.
16066         (build_fn_info_type): Ditto.
16067         (build_fn_info_value): Ditto.
16068         * libgcov.c (gcov_exit): Ditto.
16069         * gcov-dump.c (tag_function): Ditto.
16070         (compute_checksum): Remove.
16071
16072 2011-04-29  Alan Modra  <amodra@gmail.com>
16073
16074         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16075         unspec plus offset.  Tidy macho code.
16076
16077 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16078
16079         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16080         node instead of a decl.  Update all callers.
16081         * cgraph.h: Update declaration.
16082
16083 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
16084
16085         PR tree-optimization/48765
16086         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16087         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16088         to indicate if loop aware SLP is being used.  Scan the statements
16089         and update the vectorization factor according to the type of
16090         vectorization before statement analysis.
16091         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16092         pass it to vect_analyze_loop_operations.
16093         (vectorizable_reduction): Set number of copies to 1 in case of pure
16094         SLP statement.
16095         * tree-vect-stmts.c (vectorizable_conversion,
16096         vectorizable_assignment, vectorizable_shift,
16097         vectorizable_operation, vectorizable_type_demotion,
16098         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16099         Likewise.
16100         (vectorizable_condition): Move the check that it is not SLP
16101         vectorization before the number of copies check.
16102         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16103         to vectorize the loop using SLP.
16104
16105 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
16106
16107         PR middle-end/48597
16108         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16109         inline asm.
16110
16111 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
16112
16113         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16114         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16115         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16116         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16117         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16118         linux*.h headers.
16119         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16120         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16121         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16122         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16123         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16124         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16125         REG_NAME.
16126         * config/i386/linux.h (REG_NAME): Don't define.
16127         * config/i386/linux64.h (REG_NAME): Don't define.
16128         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16129         Undefine before defining.
16130
16131 2011-04-28  Jan Hubicka  <jh@suse.cz>
16132
16133         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16134         nonconstant_names array.
16135         (estimate_function_body_sizes): Build nonconstant_names array; handle
16136         BUILT_IN_CONSTANT_P.
16137
16138 2011-04-28  Richard Guenther  <rguenther@suse.de>
16139
16140         PR bootstrap/48804
16141         Revert
16142         2011-04-28  Richard Guenther  <rguenther@suse.de>
16143
16144         * tree-ssa-structalias.c (solve_constraints): Build succ graph
16145         as late as possible.
16146
16147 2011-04-28  Richard Guenther  <rguenther@suse.de>
16148
16149         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16150         (debug_constraint): Do it here.
16151         (dump_constraints): And here.
16152         (rewrite_constraints): And here.
16153         (dump_constraint_edge): Remove.
16154         (dump_constraint_graph): Rewrite to produce DOT output.
16155         (solve_constraints): Build succ graph as late as possible.
16156         Dump constraint graphs before and after solving.
16157
16158 2011-04-28  Richard Guenther  <rguenther@suse.de>
16159
16160         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16161         New function split out from ...
16162         (find_func_aliases): ... here.  Call it.
16163         (find_func_aliases_for_call): Likewise.
16164
16165 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16166
16167         * internal-fn.h (internal_fn_name_array): Declare.
16168         (internal_fn_flags_array): Likewise.
16169
16170 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16171
16172         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
16173         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16174         Move from sse.md.
16175         (ssemodefsuffix): Remove.
16176         (ssevecmodesuffix): New mode attribute.
16177         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16178         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16179         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16180         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16181         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16182         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16183         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16184         ssemodesuffix mode attribute.
16185         (float splitters): Use ssevecmodesuffix mode attribute.
16186         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16187         (sseinsmode): Rename from avxvecmode.
16188         (avxsizesuffix): Rename from avxmodesuffix.
16189         (sseintvecmode): Rename from avxpermvecmode.
16190         (ssedoublevecmode): Rename from ssedoublesizemode.
16191         (ssehalfvecmode): Rename from avxhalfvecmode.
16192         (ssescalarmode): Rename from avxscalarmode.
16193         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16194         templates for ssemodesuffix mode attribute.
16195         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16196         mode attribute.
16197
16198         Adjust RTX patterns globally for renamed mode attributes.
16199
16200 2011-04-27  Jan Hubcika  <jh@suse.cz>
16201
16202         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16203         * ipa-inline-analysis.c: Include alloc-pool.h.
16204         (edge_predicate_pool): New.
16205         (trye_predicate_p): New function
16206         (false_predicate_p): New function.
16207         (add_clause): Sanity check that false clauses are "optimized";
16208         never add clauses to predicate that is already known to be false.
16209         (and_predicate): Use flase_predicate_p.
16210         (evaulate_predicate): Rename to ...
16211         (evaluate_predicate): ... this one; update all callers; assert
16212         that false is not listed among possible truths.
16213         (dump_predicate): Use true_predicate_p.
16214         (account_size_time): Use false_predicate_p.
16215         (evaulate_conditions_for_edge): Rename to ...
16216         (evaluate_conditions_for_edge) ... this one.
16217         (edge_set_predicate): New function.
16218         (inline_edge_duplication_hook): Duplicate edge predicates.
16219         (inline_edge_removal_hook): Free edge predicates.
16220         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16221         (dump_inline_summary): Update.
16222         (estimate_function_body_sizes): Set edge predicates.
16223         (estimate_calls_size_and_time): Handle predicates.
16224         (estimate_callee_size_and_time): Update.
16225         (remap_predicate): Add toplev_predicate; update comment.
16226         (remap_edge_predicates): New function.
16227         (inline_merge_summary): Compute toplev predicate; update.
16228         (read_predicate): New function.
16229         (read_inline_edge_summary): Use it.
16230         (inline_read_section): Likewise.
16231         (write_predicate): New function.
16232         (write_inline_edge_summary): Use it.
16233         (inline_write_summary): Likewise.
16234         (inline_free_summary): Free alloc pool and edge summary vec.
16235
16236 2011-04-27  Richard Guenther  <rguenther@suse.de>
16237
16238         * tree-ssa-structalias.c (changed_count): Remove.
16239         (changed): Use a bitmap.
16240         (unify_nodes): Adjust.
16241         (do_sd_constraint): Likewise.
16242         (do_ds_constraint): Likewise.
16243         (do_complex_constraint): Likewise.
16244         (solve_graph): Likewise.
16245
16246 2011-04-27  Jan Hubicka  <jh@suse.cz>
16247
16248         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16249
16250 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
16251
16252         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16253         (avx_vperm2f128_*_operand): Ditto.
16254         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16255         Use avx_vpermilp_parallel in insn condition.
16256         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16257         Use avx_vperm2f128_parallel in insn condition.
16258
16259 2011-04-27  Richard Guenther  <rguenther@suse.de>
16260
16261         * Makefile.in (tree-ssa-structalias.o): Remove
16262         gt-tree-ssa-structalias.h dependency.
16263         (GTFILES): Remove tree-ssa-structalias.c.
16264         * tree.c (allocate_decl_uid): New function.
16265         (make_node_stat): Use it.
16266         (copy_node_stat): Likewise.
16267         * tree.h (allocate_decl_uid): Declare.
16268         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16269         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16270         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16271         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16272         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16273         (struct heapvar_map): Likewise.
16274         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16275         heapvar_insert): Likewise.
16276         (make_heapvar_for): Rename to ...
16277         (make_heapvar): ... this.  Simplify.
16278         (fake_var_decl_obstack): New global var.
16279         (build_fake_var_decl): New function.
16280         (make_constraint_from_heapvar): Adjust.
16281         (handle_lhs_call): Likewise.
16282         (create_function_info_for): Likewise.
16283         (intra_create_variable_infos): Likewise.
16284         (init_alias_vars): Allocate fake_var_decl_obstack.
16285         (init_alias_heapvars, delete_alias_heapvars): Remove.
16286         (compute_points_to_sets): Do not call init_alias_heapvars.
16287         (ipa_pta_execute): Likewise.
16288         (delete_points_to_sets): Free fake_var_decl_obstack.
16289
16290 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16291
16292         * config/spu/divmovti4.c (union qword_UTItype): New data type.
16293         (si_from_UTItype, si_to_UTItype): New functions.
16294         (__udivmodti4): Use them to implement type-punning.
16295         * config/spu/multi3.c (union qword_TItype): New data type.
16296         (si_from_TItype, si_to_TItype): New functions.
16297         (__multi3): Use them to implement type-punning.
16298
16299 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16300
16301         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16302
16303 2011-04-27  Jan Hubicka  <jh@suse.cz>
16304
16305         * ipa-prop.c (function_insertion_hook_holder): New holder.
16306         (ipa_add_new_function): New function.
16307         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16308         Register/deregister holder.
16309
16310 2011-04-27  Richard Guenther  <rguenther@suse.de>
16311
16312         PR tree-optimization/48772
16313         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16314
16315 2011-04-27  Richard Guenther  <rguenther@suse.de>
16316
16317         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16318         TARGET_MEM_REF handling.
16319
16320 2011-04-27  Nick Clifton  <nickc@redhat.com>
16321
16322         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16323         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16324         (REG_CLASS_NAMES): Likewise.
16325         (REG_CLASS_CONTENTS): Likewise.
16326         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16327         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
16328         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
16329         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
16330         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
16331         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16332         duplicate register classes.
16333         (frv_class_likely_spilled_p): Likewise.
16334         (frv_register_move_cost): Likewise.
16335
16336         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16337         end of the regno_reg_class array.
16338
16339 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
16340
16341         PR c/48742
16342         * c-typeck.c (build_binary_op): Don't wrap arguments if
16343         int_operands is true.
16344
16345 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
16346
16347         PR target/48767
16348         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16349         targetm.calls.must_pass_in_stack for void type.
16350
16351 2011-04-26  Jan Hubicka  <jh@suse.cz>
16352
16353         * cgraphbuild.c (build_cgraph_edges): Update call
16354         of cgraph_create_edge and cgraph_create_indirect_edge.
16355         * cgraph.c (cgraph_create_edge_including_clones,
16356         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16357         cgraph_update_edges_for_call_stmt_node): Do not take nest
16358         argument; do not initialize call_stmt_size/time.
16359         (dump_cgraph_node): Do not dump nest.
16360         (cgraph_clone_edge): Do not take loop_nest argument;
16361         do not propagate it; do not clone call_stmt_size/time.
16362         (cgraph_clone_node): Likewise.
16363         (cgraph_create_virtual_clone): Update.
16364         * cgraph.h (struct cgraph_edge): Remove
16365         call_stmt_size/call_stmt_time/loop_nest.
16366         (cgraph_create_edge, cgraph_create_indirect_edge,
16367         cgraph_create_edge_including_clones, cgraph_clone_node): Update
16368         prototype.
16369         * tree-emutls.c (gen_emutls_addr): Update.
16370         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16371         loop_nest; handle indirect calls, too.
16372         (clone_inlined_nodes): Do not care about updating inline summaries.
16373         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16374         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16375         stream call_stmt_size/call_stmt_time/loop_nest.
16376         * ipa-inline.c (edge_badness): Update.
16377         (ipa_inline): dump summaries after inlining.
16378         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16379         New.
16380         (inline_edge_summary): New function.
16381         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16382         (inline_edge_removal_hook): Handle edge summaries.
16383         (inline_edge_duplication_hook): New hook.
16384         (inline_summary_alloc): Alloc hooks.
16385         (initialize_growth_caches): Do not register removal hooks.
16386         (free_growth_caches); Do not free removal hook.
16387         (dump_inline_edge_summary): New function.
16388         (dump_inline_summary): Use it.
16389         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16390         (inline_update_callee_summaries): New function.
16391         (inline_merge_summary): Use it.
16392         (do_estimate_edge_time, do_estimate_edge_growth): Update.
16393         (read_inline_edge_summary): New function.
16394         (inline_read_section): Use it.
16395         (write_inline_edge_summary): New function.
16396         (inline_write_summary): Use it.
16397         (inline_free_summary): Free edge new holders.
16398         * tree-inline.c (copy_bb): Update.
16399
16400 2011-04-26  Jason Merrill  <jason@redhat.com>
16401
16402         * tree-eh.c (lower_try_finally_switch): Create the label along with
16403         the CASE_LABEL_EXPR.
16404
16405 2011-04-26  David S. Miller  <davem@davemloft.net>
16406             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16407
16408         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16409         * configure: Regenerate.
16410
16411 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16412
16413         PR target/48258
16414         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16415         reduction.
16416         (VEC_reduc): New code iterator and splitters for vector reduction.
16417         (VEC_reduc_name): Ditto.
16418         (VEC_reduc_rtx): Ditto.
16419         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16420         (reduc_<VEC_reduc_name>_v4sf): Ditto.
16421
16422         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16423         support for extracting SF on VSX.
16424
16425         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16426         generating xscvspdp.
16427         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16428         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16429         double add, minimum, maximum vector reduction.
16430         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16431         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16432         optimize double vector reduction.
16433         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16434
16435 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
16436
16437         * config/fr30/fr30.h (inhibit_libc): Don't define.
16438         * config/m32r/m32r-protos.h: Correct comment.
16439         * config/v850/v850.h (GHS_default_section_names,
16440         GHS_current_section_names): Use tree, not union tree_node *.
16441
16442 2011-04-26  Xinliang David Li  <davidxl@google.com>
16443
16444         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16445         * c-family/c-opts.c (c_common_handle_option): Set
16446         warn_maybe_uninitialized.
16447         * opts.c (common_handle_option): Ditto.
16448         * common.opt:  New option.
16449         * tree-ssa.c (warn_uninit): Add one more parameter.
16450         (warn_uninitialized_var): Pass warning code.
16451         * tree-flow.h: Interface change.
16452
16453 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16454
16455         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16456         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16457         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16458
16459 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16460
16461         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16462         * config/mips/mips.opt (mmips-tfile): Remove.
16463
16464         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16465         mips-tdump reference to ...
16466         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
16467         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16468         reference by Tru64 UNIX.
16469
16470 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
16471
16472         PR debug/48768
16473         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16474         is error_mark_node, set value to NULL.
16475
16476         PR tree-optimization/48734
16477         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16478         if return value from maybe_fold_*_comparsions isn't something
16479         the code is prepared to handle.
16480
16481 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
16482
16483         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16484         mode check.
16485         (ext_QIreg_nomode_operands): Remove.
16486         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16487         (*andsi_1): Ditto.
16488         (*andhi_1): Ditto.
16489
16490 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
16491
16492         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16493
16494 2011-04-26  Richard Guenther  <rguenther@suse.de>
16495
16496         * c-typeck.c (build_unary_op): Do not expand array-refs via
16497         pointer arithmetic.  Only adjust qualifiers for function types.
16498
16499 2011-04-26  Richard Guenther  <rguenther@suse.de>
16500
16501         PR middle-end/48694
16502         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16503         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16504         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
16505         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16506
16507 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
16508
16509         * doc/extend.texi: Document __underlying_type.
16510
16511 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
16512
16513         * config/rs6000/titan.md (automata_option "progress"): Remove.
16514
16515 2011-04-25  Jeff Law  <law@redhat.com>
16516
16517         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16518
16519 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
16520
16521         * system.h (ENUM_BITFIELD): Remove.
16522
16523 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
16524             Eric Botcazou  <ebotcazou@adacore.com>
16525
16526         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16527         for STORE_FLAG_VALUE==-1 case.
16528
16529 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
16530
16531         PR target/43804
16532         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16533         LEGITIMATE_PIC_OPERAND_P.
16534
16535 2011-04-24  Jan Hubicka  <jh@suse.cz>
16536
16537         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16538         WPA hack.
16539         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16540         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16541         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16542         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16543         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16544         Sanity check predicate length.
16545         (remap_predicate): Likewise; sanity check jump functions.
16546         (inline_read_section, inline_write_summary): Sanity check
16547         predicate length.
16548
16549 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
16550
16551         PR other/48748
16552         * doc/extend.texi (Type Traits): Document __is_standard_layout,
16553         __is_literal_type, and __is_trivial; update throughout about
16554         possibly cv-qualified void types.
16555
16556 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16557
16558         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16559         testsuite and make it version agnostic.
16560
16561 2011-04-22  Jan Hubicka  <jh@suse.cz>
16562
16563         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16564
16565 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
16566
16567         PR c/48685
16568         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16569         to VOID_TYPE even around MODIFY_EXPR.
16570
16571 2011-04-22  Mike Stump  <mikestump@comcast.net>
16572
16573         * gensupport.c (read_md_rtx): Fix typo in comment.
16574         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16575         comment.
16576
16577 2011-04-22  Jan Hubicka  <jh@suse.cz>
16578
16579         * gengtype.c (open_base_files): Add ipa-inline.h include.
16580         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16581         ipa-prop.c; update all uses.
16582         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16583         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16584         merge summary of inlined function into former caller.
16585         * ipa-inline.c (max_benefit): Remove.
16586         (edge_badness): Compensate for removal of benefits.
16587         (update_caller_keys): Use
16588         reset_node_growth_cache/reset_edge_growth_cache.
16589         (update_callee_keys): Likewise.
16590         (update_all_callee_keys): Likewise.
16591         (inline_small_functions): Do not collect max_benefit; do not reset
16592         estimated_growth; call free_growth_caches and initialize_growth_caches.
16593         * ipa-inline.h (struct condition, type clause_t, struct predicate,
16594         struct size_time_entry): New structures.
16595         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16596         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16597         and estimated_growth.
16598         (edge_growth_cache_entry): New structure.
16599         (node_growth_cache, edge_growth_cache): New global vars.
16600         (estimate_growth): Turn into inline.
16601         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16602         initialize_growth_caches, free_growth_caches): Declare.
16603         (estimate_edge_growth): Rewrite.
16604         (estimate_edge_time): Implement as inline cache lookup.
16605         (reset_node_growth_cache, reset_edge_growth_cache): New inline
16606         functions.
16607         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16608         (NUM_CONDITIONS): New constant.
16609         (predicate_conditions): New enum.
16610         (IS_NOT_CONSTANT): New constant.
16611         (edge_removal_hook_holder): New var.
16612         (node_growth_cache, edge_growth_cache): New global vars.
16613         (true_predicate, single_cond_predicate, false_predicate,
16614         not_inlined_predicate, add_condition, add_clause, and_predicates,
16615         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16616         dump_clause, dump_predicate, account_size_time,
16617         evaulate_conditions_for_edge): New functions.
16618         (inline_summary_alloc): Move to heap.
16619         (inline_node_removal_hook): Clear condition and entry vectors.
16620         (inline_edge_removal_hook): New function.
16621         (initialize_growth_caches, free_growth_caches): New function.
16622         (dump_inline_summary): Update.
16623         (edge_execution_predicate): New function.
16624         (will_be_nonconstant_predicate): New function.
16625         (estimate_function_body_sizes): Compute BB and constantness predicates.
16626         (compute_inline_parameters): Do not clear estimated_growth.
16627         (estimate_edge_size_and_time): New function.
16628         (estimate_calls_size_and_time): New function.
16629         (estimate_callee_size_and_time): New function.
16630         (remap_predicate): New function.
16631         (inline_merge_summary): New function.
16632         (do_estimate_edge_time): New function based on...
16633         (estimate_edge_time): ... this one.
16634         (do_estimate_edge_growth): New function.
16635         (do_estimate_growth): New function based on....
16636         (estimate_growth): ... this one.
16637         (inline_analyze_function): Analyze after deciding on jump functions.
16638         (inline_read_section): New function.
16639         (inline_read_summary): Use it.
16640         (inline_write_summary): Write all the new data.
16641         * ipa-prop.c (ipa_get_param_decl_index): Export.
16642         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16643         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16644         Declare.
16645         (ipa_get_lattice): Move here from ipa-cp.c
16646         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16647         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16648         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16649         cgraph_edge_inlinable_p): Remove.
16650         * cgraphunit.c: Include ipainline.h
16651         (cgraph_process_new_functions): Update call of
16652         compute_inline_parameters.
16653
16654 2011-04-22  Richard Guenther  <rguenther@suse.de>
16655
16656         * tree.c (build_int_cst): Properly create canonicalized integer
16657         constants.
16658         (build_int_cst_type): Remove scary comments.
16659
16660 2011-04-22  Xinliang David Li  <davidxl@google.com>
16661
16662         * toplev.c (process_options): Enable -Werror=coverage-mismatch
16663         by default when -Wno-error is not specified.
16664         * opts-global.c (decode_options): Remove call to
16665         control_warning_options.
16666
16667 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16668
16669         PR tree-optimization/48717
16670         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16671         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16672
16673 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
16674
16675         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
16676         definition where used.
16677
16678 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
16679
16680         PR c/48716
16681         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16682         TREE_STATIC variables declared inside of some OpenMP construct.
16683
16684 2011-04-22  Martin Jambor  <mjambor@suse.cz>
16685
16686         PR middle-end/48585
16687         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16688
16689 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
16690
16691         PR c/36750
16692         * c-typeck.c (pop_init_level): Do not warn about initializing
16693         with ` = {0}'.
16694
16695 2011-04-22  Alan Modra  <amodra@gmail.com>
16696
16697         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16698         when returning call_cookie.
16699         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16700         pointers, to functions with no more vector args than the current
16701         function, and some non-local calls for ABI_V4.
16702         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16703         sibcall_nonlocal_aix64): Combine to ..
16704         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
16705         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16706         (sibcall_value_nonlocal_aix<mode>): ..likewise.
16707         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16708         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
16709         operand.
16710         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16711         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16712         sibcall_value_symbolic_64): Delete.
16713
16714 2011-04-21  Xinliang David Li  <davidxl@google.com>
16715
16716         * cgraph.h: Remove pid.
16717         * cgraph.c: Remove pid.
16718         * value-prof.c (init_node_map): New function.
16719         (del_node_map): New function.
16720         (find_func_by_funcdef_no): New function.
16721         (gimple_ic_transform): Call new function.
16722         * cgraphunit.c (cgraph_finalize_function): Remove pid.
16723         * function.c (get_last_funcdef_no): New function.
16724         * function.h (get_last_funcdef_no): New function.
16725         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16726         to libgcov function.
16727         (tree-profiling): Call node map init and delete function.
16728
16729 2011-04-21  Ian Lance Taylor  <iant@google.com>
16730
16731         * godump.c (go_format_type): Use exported Go name for anonymous
16732         field name.
16733
16734 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16735
16736         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16737         Call builtin_function_type_list instead of builtin_function_type.
16738         (UNARY, BINARY, TRINARY, QUAD): Likewise.
16739
16740 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16741
16742         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16743         build_function_type_list instead of build_function_type.
16744         Delete variable `endlink'.
16745
16746 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16747
16748         * config/s390/s390.c (s390_init_builtins): Call
16749         build_function_type_list instead of build_function_type.
16750
16751 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
16752
16753         * config/ia64/ia64.c (ia64_init_builtins): Call
16754         build_function_type_list instead of builtin_function_type.
16755
16756 2011-04-21  Easwaran Raman  <eraman@google.com>
16757
16758         * cfgexpand.c (stack_var): Remove OFFSET...
16759         (add_stack_var): ...and its reference here...
16760         (expand_stack_vars): ...and here.
16761         (stack_var_cmp): Sort by descending order of size.
16762         (partition_stack_vars): Change heuristic.
16763         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16764         (dump_stack_var_partition): Add newline after each partition.
16765
16766 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
16767             Jeff Law  <law@redhat.com>
16768
16769         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16770         * gengtype.c (matching_file_name_substitute): Likewise.
16771
16772 2011-04-21  Richard Guenther  <rguenther@suse.de>
16773
16774         PR lto/48703
16775         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16776
16777 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16778
16779         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16780
16781 2011-04-21  Richard Guenther  <rguenther@suse.de>
16782
16783         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16784         file name.
16785
16786 2011-04-21  Richard Guenther  <rguenther@suse.de>
16787
16788         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16789         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16790         Use DECL_P, not SSA_VAR_P.
16791         (ptr_derefs_may_alias_p): Likewise.
16792         (ptr_deref_may_alias_ref_p_1): Likewise.
16793         (decl_refs_may_alias_p): Likewise.
16794         (refs_may_alias_p_1): Likewise.
16795         (ref_maybe_used_by_call_p_1): Likewise.
16796         (call_may_clobber_ref_p_1): Likewise.
16797         (indirect_ref_may_alias_decl_p): Assume indirect refrences
16798         are either MEM_REF or TARGET_MEM_REF.
16799         (indirect_refs_may_alias_p): Likewise.
16800         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16801         for MEM_EXPR of indirect calls.
16802
16803 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16804
16805         * vmsdbgout.c (write_srccorr): Compute file length from the string.
16806         (dst_file_info_struct): Remove flen field.
16807         (lookup_filename): Remove code that set flen field.
16808
16809 2011-04-21  Tristan Gingold  <gingold@adacore.com>
16810
16811         * config/ia64/ia64.c (ia64_start_function): Add a guard.
16812
16813 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
16814
16815         PR target/48708
16816         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16817         vec_extract and vec_concat for non-SSE4_1 targets.
16818
16819 2011-04-21  Richard Guenther  <rguenther@suse.de>
16820
16821         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16822         return statements.
16823
16824 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16825
16826         * config/i386/cygming.h (union tree_node, TREE): Don't define or
16827         undefine.
16828         (FILE): Don't undefine.
16829
16830 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
16831
16832         * config/alpha/alpha.c (struct machine_function): Use rtx, not
16833         struct rtx_def *.
16834         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16835         struct rtx_def *.
16836         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16837         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16838         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16839         rtx_def *.
16840         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
16841         definitions where used.
16842         * config/microblaze/microblaze.h (struct microblaze_args): Use
16843         rtx, not struct rtx_def *.
16844         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16845         rtx_def *.
16846         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16847         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16848         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16849         not struct rtx_def *.
16850         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16851         struct rtx_def *.
16852         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16853         rtx_def *.
16854         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16855
16856 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16857
16858         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16859         operand_equal_p to compare DR_BASE_ADDRESSes.
16860         (vect_check_interleaving): Likewise.
16861
16862 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16863
16864         PR target/46329
16865         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16866         for all Neon struct constants.
16867
16868 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16869
16870         * target.def (legitimate_constant_p): New hook.
16871         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16872         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16873         * doc/tm.texi: Regenerate.
16874         * hooks.h (hook_bool_mode_rtx_true): Declare.
16875         * hooks.c (hook_bool_mode_rtx_true): Define.
16876         * system.h (LEGITIMATE_CONSTANT_P): Poison.
16877         * calls.c (precompute_register_parameters): Replace uses of
16878         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16879         (emit_library_call_value_1): Likewise.
16880         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16881         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16882         * ira-costs.c (scan_one_insn): Likewise.
16883         * recog.c (general_operand, immediate_operand): Likewise.
16884         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16885         * reload1.c (init_eliminable_invariants): Likewise.
16886
16887         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16888         mode argument.
16889         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16890         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16891         argument.
16892         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16893         * config/alpha/predicates.md (input_operand): Update call to
16894         alpha_legitimate_constant_p.
16895
16896         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16897         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16898         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16899         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16900         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16901         (arm_legitimate_constant_p): New functions.
16902         (arm_cannot_force_const_mem): Make static.
16903
16904         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16905
16906         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16907         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16908         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16909         instead of bfin_legitimate_constant_p.
16910         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
16911         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16912
16913         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16914
16915         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16916
16917         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16918         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16919         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16920         (frv_legitimate_constant_p): Make static.  Add a mode argument.
16921
16922         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16923         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16924         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16925
16926         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16927         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16928         * config/i386/i386.c (legitimate_constant_p): Rename to...
16929         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
16930         argument.
16931         (ix86_cannot_force_const_mem): Update accordingly.
16932         (ix86_legitimate_address_p): Likewise.
16933         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16934         * config/i386/i386.md: Update commentary.
16935
16936         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16937         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16938         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16939         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
16940
16941         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16942
16943         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16944         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16945         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16946         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
16947
16948         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16949         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16950         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16951
16952         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16953         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16954         (m32r_legitimate_constant_p): New function.
16955
16956         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16957         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16958         LEGITIMATE_CONSTANT_P.
16959         (LEGITIMATE_CONSTANT_P): Delete.
16960         * config/m68k/m68k.c (m68k_expand_prologue): Call
16961         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16962         (m68k_legitimate_constant_p): New function.
16963         * config/m68k/m68k.md: Update comments.
16964
16965         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16966         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16967         (mcore_legitimate_constant_p): New function.
16968
16969         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16970         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16971         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16972         Add a mode argument.
16973         (mep_legitimate_address): Update accordingly.
16974         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16975
16976         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16977         Delete.
16978         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16979         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16980         static.  Check OP's mode for VOIDmode.
16981         (microblaze_legitimate_constant_p): New function.
16982         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16983
16984         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16985         * config/mips/mips.c (mips_legitimate_constant_p): New function.
16986         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16987         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16988         * config/mips/predicates.md: Update comments.
16989
16990         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16991         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16992         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16993         (mmix_legitimate_constant_p): Make static, return a bool, and take
16994         a mode argument.
16995         (mmix_print_operand_address): Update accordingly.
16996
16997         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16998         Delete.
16999         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17000         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17001         static.  Add a mode argument.
17002         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17003
17004         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17005
17006         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17007         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17008         (pa_legitimate_constant_p): New function.
17009
17010         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17011
17012         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17013         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17014         (pdp11_legitimate_constant_p): New function.
17015
17016         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17017         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17018         (rs6000_legitimate_constant_p): New function.
17019
17020         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17021         (rx_legitimate_constant_p): ...this.
17022         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17023         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17024         (rx_legitimate_constant_p): ...this.
17025         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17026         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17027
17028         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17029         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17030         * config/s390/s390.c (legitimate_constant_p): Rename to...
17031         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
17032         and add a mode argument.
17033         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17034
17035         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17036
17037         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17038         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17039         (sh_legitimate_constant_p): New function.
17040
17041         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17042         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17043         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17044         (legitimate_constant_p): Rename to...
17045         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
17046         argument.
17047         (constant_address_p): Update accordingly.
17048
17049         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17050         argument and return a bool.
17051         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17052         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17053         (spu_legitimate_constant_p): Add a mode argument and return a bool.
17054         (spu_rtx_costs): Update accordingly.
17055         * config/spu/predicates.md (vec_imm_operand): Likewise.
17056
17057         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17058
17059         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17060         * config/v850/v850.c (v850_legitimate_constant_p): New function.
17061         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17062
17063         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17064         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17065         * config/vax/vax.c (legitimate_constant_p): Likewise.
17066
17067         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17068         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17069         (xtensa_legitimate_constant_p): New function.
17070
17071 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17072
17073         * target.def (cannot_force_const_mem): Add a mode argument.
17074         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17075         * doc/tm.texi: Regenerate.
17076         * hooks.h (hook_bool_mode_rtx_false): Declare.
17077         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17078         (hook_bool_mode_const_rtx_true): Likewise.
17079         (hook_bool_mode_rtx_false): New function.
17080         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17081         to be non-VOID.  Update call to cannot_force_const_mem.
17082         (find_reloads): Update accordingly.
17083         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17084         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17085         argument.
17086         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17087         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17088         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17089         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17090         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17091         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17092         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17093         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17094         (m68k_cannot_force_const_mem): ...this new function.
17095         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17096         argument.
17097         (mips_const_insns, mips_legitimize_const_move): Update calls.
17098         (mips_secondary_reload_class): Likewise.
17099         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17100         (pa_cannot_force_const_mem): ...this new function.
17101         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17102         (rs6000_cannot_force_const_mem): ...this new function.
17103         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17104         argument.
17105         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17106         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17107         to...
17108         (xtensa_cannot_force_const_mem): ...this new function.
17109
17110 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17111
17112         * config/mips/mips.c (mips16_build_function_stub): Call
17113         build_function_type_list instead of build_function_type.
17114         (mips16_build_call_stub): Likewise.
17115
17116 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17117
17118         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17119         instead of build_function_type.
17120
17121 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
17122
17123         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17124         instead of build_function_type.
17125
17126 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
17127
17128         PR target/48678
17129         * config/i386/i386.md (insv): Change operand 0 constraint to
17130         "register_operand".  Change operand 1 and 2 constraint to
17131         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
17132         * config/i386/sse.md (sse4_1_pinsrb): Export.
17133         (sse2_pinsrw): Ditto.
17134         (sse4_1_pinsrd): Ditto.
17135         (sse4_1_pinsrq): Ditto.
17136         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17137         * config/i386/i386.c (ix86_expand_pinsr): New.
17138
17139 2011-04-20  Easwaran Raman  <eraman@google.com>
17140
17141         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17142         containing union type only with -fstrict-aliasing.
17143
17144 2011-04-20  Jim Meyering  <meyering@redhat.com>
17145
17146         Remove useless if-before-free tests.
17147         * calls.c (expand_call, save_area): Likewise.
17148         * cfgcleanup.c (try_forward_edges): Likewise.
17149         * collect2.c (collect_execute): Likewise.
17150         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17151         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17152         * coverage.c (coverage_checksum_string): Likewise.
17153         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17154         * cselib.c (cselib_init): Likewise.
17155         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17156         (df_set_clean_cfg): Likewise.
17157         * function.c (free_after_compilation): Likewise.
17158         * gcc.c (do_spec_1, main): Likewise.
17159         * gcov.c (create_file_names): Likewise.
17160         * gensupport.c (identify_predicable_attribute): Likewise.
17161         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17162         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17163         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17164         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17165         * ipa-pure-const.c (local_pure_const): Likewise.
17166         * ipa-reference.c (propagate): Likewise.
17167         * ira-costs.c (free_ira_costs): Likewise.
17168         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17169         * matrix-reorg.c (mat_free): Likewise.
17170         * prefix.c (get_key_value): Likewise.
17171         * profile.c (compute_value_histograms): Likewise.
17172         * reload1.c (free_reg_equiv): Likewise.
17173         * sched-deps.c (free_deps): Likewise.
17174         * sel-sched-ir.c (fence_clear): Likewise.
17175         * sese.c (set_rename, if_region_set_false_region): Likewise.
17176         * tree-data-ref.c (free_rdg): Likewise.
17177         * tree-eh.c (lower_try_finally): Likewise.
17178         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17179         * tree-ssa-live.c (delete_var_map): Likewise.
17180         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17181         * tree-ssa-pre.c (phi_trans_add): Likewise.
17182
17183 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
17184
17185         PR tree-optimization/48611
17186         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17187         beyond ERT_MUST_NOT_THROW region.
17188
17189 2011-04-20  Catherine Moore  <clm@codesourcery.com>
17190
17191         * config/mips/mips.opt (mfix-24k): New.
17192         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17193         * config/mips/mips.md (length): Increase by 4 for stores if
17194         fixing 24K errata.
17195         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17196         all noreorder if fixing 24K errata.
17197         * doc/invoke.texi: Document mfix-24k.
17198
17199 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
17200
17201         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17202         quad-word modes, reduce to 9-bit index range when above 1016 limit.
17203
17204 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17205
17206         * config/arm/arm.c (arm_gen_constant): Move movw support ....
17207         (const_ok_for_op): ... to here.
17208
17209 2011-04-20  Kai Tietz  <ktietz@redhat.com>
17210
17211         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17212         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17213
17214 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
17215
17216         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17217
17218 2011-04-20  Richard Guenther  <rguenther@suse.de>
17219
17220         PR tree-optimization/47892
17221         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17222         are if-convertible.
17223
17224 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17225
17226         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17227
17228 2011-04-20  Tristan Gingold  <gingold@adacore.com>
17229
17230         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17231
17232 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
17233
17234         PR target/18145
17235
17236         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17237         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17238         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17239         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17240         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17241
17242         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17243         New prototype.
17244
17245         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17246         (avr_asm_named_section, avr_asm_output_aligned_common,
17247         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17248         New functions to update...
17249         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17250         (avr_asm_init_sections): Overwrite section callbacks for
17251         data_section, bss_section.
17252         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17253         from here to...
17254         (avr_file_end): ...here.
17255
17256 2011-04-20  Richard Guenther  <rguenther@suse.de>
17257
17258         PR middle-end/48695
17259         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17260         objects and types here.  Adjust for their offset before comparing.
17261
17262 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17263
17264         * tree-vect-stmts.c (vectorizable_store): Only chain one related
17265         statement per copy.
17266
17267 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
17268
17269         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17270         (GIMPLE_H): Include $(INTERNAL_FN_H).
17271         (OBJS-common): Add internal-fn.o.
17272         (internal-fn.o): New rule.
17273         * internal-fn.def: New file.
17274         * internal-fn.h: Likewise.
17275         * internal-fn.c: Likewise.
17276         * gimple.h: Include internal-fn.h.
17277         (GF_CALL_INTERNAL): New gf_mask.
17278         (gimple_statement_call): Put fntype into a union with a new
17279         internal_fn field.
17280         (gimple_build_call_internal): Declare.
17281         (gimple_build_call_internal_vec): Likewise.
17282         (gimple_call_same_target_p): Likewise.
17283         (gimple_call_internal_p): New function.
17284         (gimple_call_internal_fn): Likewise.
17285         (gimple_call_fntype): Return null for internal calls.
17286         (gimple_call_set_fntype): Assert that the function is not internal.
17287         (gimple_call_set_fn): Likewise.
17288         (gimple_call_set_fndecl): Likewise.
17289         (gimple_call_set_internal_fn): New function.
17290         (gimple_call_addr_fndecl): Handle null functions.
17291         (gimple_call_return_type): Likewise null types.
17292         * gimple.c (gimple_build_call_internal_1): New function.
17293         (gimple_build_call_internal): Likewise.
17294         (gimple_build_call_internal_vec): Likewise.
17295         (gimple_call_same_target_p): Likewise.
17296         (gimple_call_flags): Handle calls to internal functions.
17297         (gimple_call_fnspec): New function.
17298         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17299         (gimple_has_side_effects): Handle null functions.
17300         (gimple_rhs_has_side_effects): Likewise.
17301         (gimple_call_copy_skip_args): Handle calls to internal functions.
17302         * cfgexpand.c (expand_call_stmt): Likewise.
17303         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17304         * gimple-fold.c (gimple_fold_call): Handle null functions.
17305         (gimple_fold_stmt_to_constant_1): Don't fold
17306         calls to internal functions.
17307         * gimple-low.c (gimple_check_call_args): Handle calls to internal
17308         functions.
17309         * gimple-pretty-print.c (dump_gimple_call): Likewise.
17310         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17311         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17312         (do_warn_unused_result): Likewise.
17313         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17314         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17315         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17316         the target of a call.
17317         (initialize_hash_element): Update accordingly.
17318         (hashable_expr_equal_p): Use gimple_call_same_target_p.
17319         (iterative_hash_hashable_expr): Handle calls to internal functions.
17320         (print_expr_hash_elt): Likewise.
17321         * tree-ssa-pre.c (can_value_number_call): Likewise.
17322         (eliminate): Handle null functions.
17323         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17324         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17325         (find_func_aliases): Likewise.
17326         * value-prof.c (gimple_ic_transform): Likewise.
17327         (gimple_indirect_call_to_profile): Likewise.
17328         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17329         * lto-streamer-out.c (output_gimple_stmt): Likewise.
17330
17331 2011-04-19  Jan Hubicka  <jh@suse.cz>
17332
17333         * ipa-inline-transform.c (save_inline_function_body): Add comments.
17334         * ipa-inline.c (inline_small_functions): Compute summaries first,
17335         populate heap later.
17336
17337 2011-04-19  Jan Hubicka  <jh@suse.cz>
17338
17339         * cgraph.h (save_inline_function_body): Remove.
17340         * ipa-inline-transform.c: New file, broke out of...
17341         * ipa-inline.c: ... this one; Update toplevel comment.
17342         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17343         make global.
17344         (update_noncloned_frequencies): Move to ipa-inline-transform.c
17345         (cgraph_mark_inline_edge): Rename to inline_call; move to
17346         ipa-inline-transform.c.
17347         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17348         move to ipa-inline-transform.c
17349         (recursive_inlining, inline_small_functions, flatten_function,
17350         ipa_inline, inline_always_inline_functions,
17351         early_inline_small_functions): Update.
17352         (inline_transform): Move to ipa-inline-transform.c.
17353         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17354         Declare.
17355         * Makefile.in (ipa-inline-transform.o): New file.
17356         * cgraphunit.c (save_inline_function_body): Move to
17357         ipa-inline-transform.c
17358
17359 2011-04-19  DJ Delorie  <dj@redhat.com>
17360
17361         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17362         registers if we already know there aren't any.
17363         (m32c_emit_epilogue): Don't emit a barrier here.
17364         (m32c_emit_eh_epilogue): Likewise.
17365         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17366         operands at expand time.
17367         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17368         int" wchar type.
17369         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17370         duplicates.  Provide aliases instead.
17371         * config/m32c/prologue.md (eh_return): Emit a barrier here.
17372         (eh_epilogue): Add a "(return)" here as a hint to other parts of
17373         the compiler.
17374
17375 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
17376
17377         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17378         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17379         (general_or_i64_p, sparc_register_move_cost): New function.
17380
17381 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17382
17383         * doc/install.texi (Configuration, --enable-threads): Remove mach.
17384         Add lynx, mipssde.  Sort table.
17385
17386 2011-04-19  Xinliang David Li  <davidxl@google.com>
17387
17388         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17389         not negative.
17390
17391 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
17392
17393         PR target/48678
17394         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17395         is a SUBREG with non-MODE_INT mode inside of it.
17396
17397 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17398
17399         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17400         also according to actual contants.
17401         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17402         (gimple_fold_call): Use it.
17403         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17404
17405 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17406
17407         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17408         non-pointer assignments.
17409
17410 2011-04-19  Martin Jambor  <mjambor@suse.cz>
17411
17412         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17413         account anc_offset and otr_type from the indirect edge info.
17414         * ipa-prop.c (get_ancestor_addr_info): New function.
17415         (compute_complex_ancestor_jump_func): Assignment analysis moved to
17416         get_ancestor_addr_info, call it.
17417         (ipa_note_param_call): Do not initialize information about polymorphic
17418         calls, return the indirect call graph edge.  Remove the last
17419         parameter, adjust all callers.
17420         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17421         parameters.  Initialize polymorphic information in the indirect edge.
17422
17423 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17424
17425         PR lto/48148
17426         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17427         the types if they have different enumeration identifiers.
17428
17429 2011-04-19  Jan Hubicka  <jh@suse.cz>
17430
17431         * cgraph.h (cgraph_optimize_for_size_p): Declare.
17432         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17433         * predict.c (cgraph_optimize_for_size_p): Break out from ...
17434         (optimize_function_for_size_p) ... here.
17435
17436 2011-04-19  Richard Guenther  <rguenther@suse.de>
17437
17438         PR lto/48207
17439         * tree.c (free_lang_data): Do not reset the decl-assembler-name
17440         langhook.
17441
17442 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17443
17444         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17445         if DECL_NO_INLINE_WARNING_P is set on the function.
17446
17447 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
17448
17449         PR fortran/47976
17450         * reload1.c (inc_for_reload): Return void. All callers changed.
17451         (emit_input_reload_insns): Don't try to delete previous output
17452         reloads to a register, or record spill_reg_store for autoincs.
17453
17454 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
17455
17456         * gengtype.h: Updated copyright year.
17457         (struct input_file_st): Add inpisplugin field.
17458         (type_fileloc): New function.
17459         * gengtype.c
17460         (write_typed_struct_alloc_def): Add gcc_assert.
17461         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17462         (write_typed_alloc_defns): Don't output for plugin files.
17463         (input_file_by_name): Clear inpisplugin field.
17464         (main): Set inpisplugin field for plugin files.
17465
17466 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
17467
17468         * gengtype-state.c (string_eq): New.
17469         (read_state): Use string_eq instead of strcmp when creating the
17470         state_ident_tab.
17471
17472 2011-04-19  Wei Guozhi  <carrot@google.com>
17473
17474         PR target/47855
17475         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17476         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17477         linkage.
17478         * config/arm/constraints.md (Uu): New constraint.
17479         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17480
17481 2011-04-19  Tristan Gingold  <gingold@adacore.com>
17482
17483         * config.gcc (-*-*-*vms): Added.
17484         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17485         definitions moved.
17486         * config/vms/vms-ld.c: New file.
17487         * config/vms/vms-ar.c: New file.
17488         * config/vms/t-vmsnative: New file.
17489
17490 2011-04-18  Xinliang David Li  <davidxl@google.com>
17491
17492         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17493
17494 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17495
17496         PR middle-end/48661
17497         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17498         if TREE_TYPE (v) is non-NULL.
17499
17500         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17501         gimple_get_virt_mehtod_for_binfo.
17502         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17503         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17504         callers.
17505         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17506
17507 2011-04-18  Michael Matz  <matz@suse.de>
17508             Steve Ellcey  <sje@cup.hp.com>
17509
17510         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17511         use its mode as source mode if it isn't VOIDmode.
17512
17513 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
17514
17515         * doc/passes.texi: Fill crossref nodes.
17516
17517 2011-04-18  Jim Meyering  <meyering@redhat.com>
17518
17519         Fix doubled-word typos in comments and strings
17520         * config/alpha/vms-unwind.h: s/for for/for/
17521         * config/arm/unwind-arm.h: Likewise.
17522         * config/microblaze/microblaze.c: Likewise.
17523         * config/sh/constraints.md: s/in in/in/
17524         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17525
17526 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
17527
17528         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17529         (AVX_FLOAT_MODE_P): Ditto.
17530         (AVX128_VEC_FLOAT_MODE_P): Ditto.
17531         (AVX256_VEC_FLOAT_MODE_P): Ditto.
17532         (AVX_VEC_FLOAT_MODE_P): Ditto.
17533         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17534         (UNSPEC_MASKSTORE): Ditto.
17535         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17536         Merge from <sse>_movmsk<ssemodesuffix> and
17537         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
17538         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
17539         iterator.
17540         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17541         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17542         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17543
17544 2011-04-18  Jan Hubicka  <jh@suse.cz>
17545
17546         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17547
17548         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17549         (want_inline_function_called_once_p): Break out the logic from
17550         ipa_inline.
17551         (edge_badness): Ensure that profile is not misupdated.
17552         (lookup_recursive_calls): Prioritize by call frequencies.
17553         (inline_small_functions): Move program size estimates here;
17554         actually process whole queue even when unit growth has been
17555         met. (to properly compute inline_failed reasons and for the
17556         case unit size decrease.) Revisit comments on recursive inlining.
17557         (ipa_inline): Remove unit summary code; first inline hot calls
17558         of functions called once, cold calls next.
17559         (order, nnodes): Remove unused variables.
17560         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17561         (GTFILES): Remove ipa-inline.c
17562         * sel-sched.c (fill_insns): Silence uninitialized var warning.
17563
17564 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17565
17566         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17567
17568 2011-04-18  Jie Zhang  <jie@codesourcery.com>
17569             Richard Earnshaw  <rearnsha@arm.com>
17570
17571         * arm.c (neon_builtin_type_bits): Remove.
17572         (typedef enum neon_builtin_mode): New.
17573         (T_MAX): Don't define.
17574         (typedef enum neon_builtin_datum): Remove bits, codes[],
17575         num_vars and base_fcode.  Add mode, code and fcode.
17576         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17577         VAR10): Change accordingly.
17578         (neon_builtin_data[]): Change accordingly
17579         (arm_init_neon_builtins): Change accordingly.
17580         (neon_builtin_compare): Remove.
17581         (locate_neon_builtin_icode): Remove.
17582         (arm_expand_neon_builtin): Change accordingly.
17583
17584         * arm.h (enum arm_builtins): Move to ...
17585         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17586
17587         * arm.c (arm_builtin_decl): Declare.
17588         (TARGET_BUILTIN_DECL): Define.
17589         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17590         (arm_builtin_decls[]): New.
17591         (arm_init_neon_builtins): Store builtin declarations in
17592         arm_builtin_decls[].
17593         (arm_init_tls_builtins): Likewise.
17594         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
17595         (arm_builtin_decl): New.
17596
17597 2011-04-18  Richard Guenther  <rguenther@suse.de>
17598
17599         * tree.c (upper_bound_in_type): Build properly canonicalized
17600         INTEGER_CSTs.
17601         (lower_bound_in_type): Likewise.
17602
17603 2011-04-18  Richard Guenther  <rguenther@suse.de>
17604
17605         * gimple.h (gimple_call_addr_fndecl): New function.
17606         (gimple_call_fndecl): Use it.
17607         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17608         for direct calls.
17609         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17610         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17611
17612 2011-04-18  Richard Guenther  <rguenther@suse.de>
17613
17614         PR middle-end/48650
17615         * tree.c (build_string): STRING_CST is now derived from tree_typed.
17616
17617 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17618
17619         PR lto/48492
17620         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17621         DECL_IN_CONSTANT_POOL without RTL.
17622
17623 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
17624             Ira Rosen  <ira.rosen@linaro.org>
17625
17626         PR target/48252
17627         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17628         to match neon_vzip/vuzp/vtrn_internal.
17629         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17630         outputs explicitly dependent on both inputs.
17631         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17632
17633 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
17634
17635         PR tree-optimization/48616
17636         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17637         whether the shift is by scalar or vector based on whether all SLP
17638         scalar stmts have the same rhs.
17639
17640 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
17641
17642         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17643         memory operands.
17644
17645 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17646
17647         PR target/43700
17648         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17649         registers.
17650
17651 2011-04-17  Jan Hubicka  <jh@suse.cz>
17652
17653         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17654         * cgrpahunit.c (cgraph_finalize_function): Do not set
17655         finalized_by_frontend.
17656         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17657         finalized_by_frontend.
17658
17659 2011-04-17  Jan Hubicka  <jh@suse.cz>
17660
17661         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17662         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17663         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17664         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17665         method.
17666         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17667         gimple-fold.c
17668         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17669
17670 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
17671
17672         PR lto/48538
17673         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17674         is non-null before accessing it.
17675         (input_cgraph): Remove trailing spaces.
17676
17677 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17678
17679         * params.def (sms-min-sc): New param flag.
17680         * modulo-sched.c (sms_schedule): Use it.
17681         * doc/invoke.texi (sms-min-sc): Document it.
17682
17683 2011-04-17  Jan Hubicka  <jh@suse.cz>
17684
17685         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17686         present, also set gimple_call_set_cannot_inline.
17687         * ipa-inline.c: Update toplevel comment.
17688         (MAX_TIME): Remove.
17689         (cgraph_clone_inlined_nodes): Fix linebreaks.
17690         (cgraph_check_inline_limits): Restructure to ...
17691         (caller_growth_limits): ... this one; be more tolerant
17692         on growth in nested inline chains; add explanatory comment;
17693         fix stack accounting thinko introduced by previous patch.
17694         (cgraph_default_inline_p): Remove.
17695         (report_inline_failed_reason): New function.
17696         (can_inline_edge_p): New function.
17697         (can_early_inline_edge_p): New function.
17698         (leaf_node_p): Move upwards in file.
17699         (want_early_inline_function_p): New function.
17700         (want_inline_small_function_p): New function.
17701         (want_inline_self_recursive_call_p): New function.
17702         (cgraph_edge_badness): Rename to ...
17703         (edge_badness) ... this one; fix linebreaks.
17704         (update_edge_key): Update call of edge_baddness; add
17705         detailed dump about queue updates.
17706         (update_caller_keys): Use can_inline_edge_p and
17707         want_inline_small_function_p.
17708         (cgraph_decide_recursive_inlining): Rename to...
17709         (recursive_inlining): Use can_inline_edge_p and
17710         want_inline_self_recursive_call_p; simplify and remove no longer
17711         valid FIXME.
17712         (cgraph_set_inline_failed): Remove.
17713         (add_new_edges_to_heap): Use can_inline_edge_p and
17714         want_inline_small_function_p.
17715         (cgraph_decide_inlining_of_small_functions): Rename to ...
17716         (inline_small_functions): ... this one; cleanup; use
17717         can/want predicates; cleanup debug ouput; work edges till fibheap
17718         is exhausted and do not stop once unit growth is reached; remove
17719         later loop processing remaining edges.
17720         (cgraph_flatten): Rename to ...
17721         (flatten_function): ... this one; use can_inline_edge_p
17722         and can_early_inline_edge_p predicates.
17723         (cgraph_decide_inlining): Rename to ...
17724         (ipa_inline): ... this one; remove unreachable nodes before
17725         inlining functions called once; simplify the pass.
17726         (cgraph_perform_always_inlining): Rename to ...
17727         (inline_always_inline_functions): ... this one; use
17728         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17729         (cgraph_decide_inlining_incrementally): Rename to ...
17730         (early_inline_small_functions): ... this one; simplify
17731         using new predicates; cleanup; make dumps prettier.
17732         (cgraph_early_inlining): Rename to ...
17733         (early_inliner): newer inline regular functions into always-inlines;
17734         fix updating of call stmt summaries.
17735         (pass_early_inline): Update for new names.
17736         (inline_transform): Fix formating.
17737         (gate_cgraph_decide_inlining): Rename to ...
17738         (pass_ipa_inline): ... this one.
17739         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17740         * ipa-inline-analysis.c (dump_inline_summary): Update.
17741         (compute_inline_parameters): Do not compute disregard_inline_limits;
17742         look for mismatching arguments.
17743         (estimate_growth): Fix handlig of non-trivial self recursion.
17744         (inline_read_summary): Do not read info->disregard_inline_limits.
17745         (inline_write_summary): Do not write info->disregard_inline_limits.
17746         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17747         and move all checks into can_inline_edge_p predicate; re-enable code
17748         comparing optimization levels.
17749         (expand_call_inline): Do not test inline_forbidden_into_p.
17750         * Makefile.in (ipa-inline.o): Update arguments.
17751
17752 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17753
17754         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17755
17756 2011-04-17  Revital Eres  <revital.eres@linaro.org>
17757
17758         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17759
17760 2011-04-17  Michael Matz  <matz@suse.de>
17761
17762         PR tree-optimization/48622
17763         PR lto/48645
17764         * ipa-inline-analysis.c (inline_read_summary): Read size/time
17765         in same order as they're written.
17766
17767 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17768
17769         * config/pa/predicates.md: Reorganize and simplify predicates.
17770         Eliminate duplicate code checks.
17771         (arith_operand): Rename to arith14_operand
17772         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17773         * config/pa/pa.md: Use renamed operands.
17774         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17775         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17776         arith11_operand, adddi3_operand, indexed_memory_operand,
17777         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17778         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17779         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17780         move_dest_operand, move_src_operand, prefetch_cc_operand,
17781         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17782         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17783         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17784         div_operand, int5_operand, movb_comparison_operator,
17785         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17786         arith_double_operand, ireg_operand, lhs_lshift_operand,
17787         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17788         integer_store_memory_operand): Likewise.
17789         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17790         (integer_store_memory_operand, read_only_operand,
17791         function_label_operand, borx_reg_operand,
17792         non_hard_reg_operand): Likewise.
17793         (eq_neq_comparison_operator): Delete unused operator.
17794         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17795         function_label_operand.
17796         (emit_move_sequence): Likewise.
17797
17798 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17799
17800         * config/i386/sse.md (sseunpackmode): New mode attribute.
17801         (ssepackmode): Ditto.
17802         (vec_pack_trunc_<mode>): Macroize expander from
17803         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17804         (vec_unpacks_lo_<mode>): Macroize expander from
17805         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17806         (vec_unpacks_hi_<mode>): Macroize expander from
17807         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17808         (vec_unpacku_lo_<mode>): Macroize expander from
17809         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17810         (vec_unpacku_hi_<mode>): Macroize expander from
17811         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17812         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17813         ix86_expand_sse4_unpack.
17814         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17815
17816 2011-04-16  Jan Hubicka  <jh@suse.cz>
17817
17818         * cgraphbuild.c: Include ipa-inline.h.
17819         (reset_inline_failed): Use initialize_inline_failed.
17820         * cgraph.c: Include ipa-inline.h.
17821         (cgraph_create_node_1): Do not initialize estimated_growth.
17822         (initialize_inline_failed): More to ipa-inline-analysis.c
17823         (dump_cgraph_node): Do not dump inline flags.
17824         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17825         and disregard_inline_limits flags.
17826         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17827         time, size, estimated_growth.
17828         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17829         Update.
17830         * cgraphunit.c (cgraph_decide_is_function_needed): Use
17831         DECL_DISREGARD_INLINE_LIMITS.
17832         (cgraph_analyze_function): Do not initialize
17833         node->local.disregard_inline_limits.
17834         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17835         inlinable, versionable and disregard_inline_limits.
17836         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17837         cgraph_check_inline_limits, cgraph_default_inline_p,
17838         cgraph_edge_badness, update_caller_keys, update_callee_keys,
17839         add_new_edges_to_heap): Update.
17840         (cgraph_decide_inlining_of_small_function): Update; set
17841         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17842         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17843         cgraph_decide_inlining_incrementally): Update.
17844         * ipa-inline.h (inline_summary): Add inlinable, versionable,
17845         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17846         time, size and estimated_growth parameters.
17847         (estimate_edge_growth): Update.
17848         (initialize_inline_failed): Declare.
17849         * ipa-split.c: Include ipa-inline.h
17850         (execute_split_functions): Update.
17851         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17852         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17853         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17854         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17855         estimated_growth to INT_MIN.
17856         (inline_node_duplication_hook): Likewise.
17857         (dump_inline_summary): Dump new fields.
17858         (compute_inline_parameters): Update.
17859         (estimate_edge_time, estimate_time_after_inlining,
17860         estimate_size_after_inlining, estimate_growth, inline_read_summary,
17861         inline_write_summary):
17862         (initialize_inline_failed): Move here from cgraph.c.
17863         * tree-sra.c: Include ipa-inline.h.
17864         (ipa_sra_preliminary_function_checks): Update.
17865         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17866         ipa-inline.h.
17867
17868 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
17869
17870         * config/i386/sse.md (V16): New mode iterator.
17871         (VI1, VI8): Ditto.
17872         (AVXMODEQI, AVXMODEDI): Remove.
17873         (sse2, sse3): New mode attribute.
17874         (mov<mode>): Use V16 mode iterator.
17875         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17876         (push<mode>1): Use V16 mode iterator.
17877         (movmisalign<mode>): Ditto.
17878         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17879         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17880         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17881         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17882         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17883         avx_movdqu<avxmodesuffix>.
17884         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17885         *avx_movdqu<avxmodesuffix>.
17886         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17887         avx_lddqu<avxmodesuffix>.
17888         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17889         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17890         avx_movnt<AVXMODEDI:mode>.
17891         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17892         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17893
17894 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17895
17896         PR target/48629
17897         * haifa-sched.c (prune_ready_list, schedule_block): Use
17898         sched_pressure_p rather than flag_sched_pressure.
17899
17900 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
17901
17902         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17903         cgraph_get_node instead of cgraph_get_create_node.
17904
17905 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
17906
17907         * cfgexpand.c (expand_debug_expr): Use
17908         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17909
17910 2011-04-15  Michael Matz  <matz@suse.de>
17911
17912         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17913         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17914         * function.c (gimplify_parameters): Ditto.
17915         * gimplify.c (gimplify_vla_decl): Ditto.
17916
17917         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17918         (gimple_call_set_alloca_for_var): New inline function.
17919         (gimple_call_alloca_for_var_p): Ditto.
17920         * gimple.c (gimple_build_call_from_tree): Remember
17921         CALL_ALLOCA_FOR_VAR_P state.
17922         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17923
17924         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17925         calls if they were for VLA objects.
17926
17927 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17928
17929         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17930         of ADR_EXPRs.
17931
17932 2011-04-15  Martin Jambor  <mjambor@suse.cz>
17933
17934         PR middle-end/48601
17935         * tree-emutls.c (lower_emutls_function_body): Call
17936         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
17937         result is non-NULL.
17938
17939 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
17940
17941         * c-decl.c (detect_field_duplicates): Call
17942         objc_detect_field_duplicates instead of objc_get_interface_ivars.
17943
17944 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
17945
17946         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17947         * gimple.c (gimple_asm_clobbers_memory_p): Define.
17948         * ipa-pure-const.c (check_stmt): Call it.
17949         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17950
17951 2011-04-15  Richard Guenther  <rguenther@suse.de>
17952
17953         PR tree-optimization/48290
17954         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17955         Properly decide inhibiting propagation based on the valueized
17956         operand.  Do loop-closed SSA form preserving here ...
17957         (init_copy_prop): ... not here.
17958
17959 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17960
17961         PR target/48612
17962         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17963         (*ieee_smax<mode>3): Likewise.
17964
17965 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17966
17967         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17968         Replace match_operand with match_dup for the third operand in
17969         these expanders.
17970
17971 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17972
17973         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17974         to track processing of conditionals.  Update all callers.
17975         (try_combine, simplify_if_then_else): Update.
17976
17977 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
17978
17979         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17980         -fsched-pressure.
17981
17982 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
17983
17984         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17985         instead of match_operand for operand 3.
17986
17987 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
17988
17989         * recog.h (insn_operand_data): Add an "allows_mem" field.
17990         * genoutput.c (output_operand_data): Initialize it.
17991         * optabs.c (maybe_legitimize_operand_same_code): New function.
17992         (maybe_legitimize_operand): Use it when matching the original
17993         op->value.
17994
17995 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17996
17997         * gimplify.c: Fix issues in comments throughout.
17998         (voidify_wrapper_expr): Fix long line.
17999         (build_stack_save_restore): Likewise.
18000         (gimplify_loop_expr): Likewise.
18001         (gimplify_compound_lval): Likewise.
18002         (gimplify_init_ctor_eval): Likewise.
18003         (gimplify_modify_expr_rhs): Likewise.
18004         (omp_notice_threadprivate_variable): Likewise.
18005
18006 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18007
18008         * cfgexpand.c (expand_call_stmt): Convert the function type to the
18009         original one if this is not a builtin function.
18010
18011 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
18012
18013         PR target/48605
18014         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18015         offset it as needed based on top 2 bits in operands[3], change
18016         MEM mode to SFmode and mask those 2 bits away from operands[3].
18017
18018 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18019
18020         * c-parser.c (c_parser_objc_protocol_definition): Updated for
18021         change from objc_declare_protocols() to objc_declare_protocol().
18022
18023 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
18024
18025         * config/i386/sse.md (sse4_1): New mode attribute.
18026         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18027         avx_blend<ssemodesuffix><avxmodesuffix> and
18028         sse4_1_blend<ssemodesuffix> using VF mode iterator.
18029         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18030         avx_blendv<ssemodesuffix><avxmodesuffix> and
18031         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18032         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18033         avx_dp<ssemodesuffix><avxmodesuffix> and
18034         sse4_1_dp<ssemodesuffix> using VF mode iterator.
18035         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18036         (sse4_1_packusdw): Merge with *avx_packusdw.
18037         (sse4_1_pblendvb): Merge with *avx_pblendvb.
18038         (sse4_1_pblendw): Merge with *avx_pblendw.
18039         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18040         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18041         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18042         VF mode iterator.
18043         (sse4_1_round<ssescalarmodesuffix>): Merge with
18044         *avx_round<ssescalarmodesuffix>.
18045         (aesenc): Merge with *avx_aesenc.
18046         (aesenclast): Merge with *avx_aesenclast.
18047         (aesdec): Merge with *avx_aesdec.
18048         (aesdeclast): Merge with *avx_aesdeclast.
18049         (pclmulqdq): Merge with *pclmulqdq.
18050         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18051         New predicate.
18052         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18053
18054 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
18055
18056         PR middle-end/48608
18057         * cfgexpand.c (get_decl_align_unit): Renamed to ...
18058         (align_local_variable): This.  Update DECL_ALIGN.
18059         (add_stack_var): Updated.
18060         (expand_one_stack_var): Likewise.
18061
18062 2011-04-14  Richard Guenther  <rguenther@suse.de>
18063
18064         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18065         Remove.
18066         (dse_initialize_block_local_data, dse_leave_block,
18067         record_voperand_set, get_stmt_uid): Likewise.
18068         (dse_possible_dead_store_p): Allow any kind of killing stmt.
18069         (dse_optimize_stmt): Remove voperand set handling code.
18070         Simplify and improve to handle any kind of killing stmt.
18071         (dse_record_phi): Remove.
18072         (dse_enter_block): Simplify.
18073         (tree_ssa_dse): Likewise.
18074         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18075
18076 2011-04-14  Jan Hubicka  <jh@suse.cz>
18077
18078         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18079         * cgraph.h (struct inline_summary): Move to ipa-inline.h
18080         (cgraph_local_info): Remove inline_summary.
18081         * ipa-cp.c: Include ipa-inline.h.
18082         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18083         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18084         accesor.
18085         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18086         (input_overwrite_node): Do not set inline summary.
18087         (input_node): Do not stream inline summary.
18088         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18089         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18090         growth; we do not have inline parameters computed for that anyway.
18091         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18092         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18093         (inline_summary_t): New type and VECtor.
18094         (debug_inline_summary, dump_inline_summaries): Declare.
18095         (inline_summary): Use VOCtor.
18096         (estimate_edge_growth): Kill hack computing call stmt size directly.
18097         * lto-section-in.c (lto_section_name): Add inline section.
18098         * ipa-inline-analysis.c: Include lto-streamer.h
18099         (node_removal_hook_holder, node_duplication_hook_holder): New holders
18100         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18101         (inline_summary_vec): Define.
18102         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18103         dump_inline_summaries): New functions.
18104         (estimate_function_body_sizes): Properly compute size/time of outgoing
18105         calls.
18106         (compute_inline_parameters): Alloc inline_summary; do not compute
18107         size/time of incomming calls.
18108         (estimate_edge_time): Avoid missing time summary hack.
18109         (inline_read_summary): Read inline summary info.
18110         (inline_write_summary): Write inline summary info.
18111         (inline_free_summary): Free all hooks and inline summary vector.
18112         * lto-streamer.h: Add LTO_section_inline_summary section.
18113         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18114         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18115
18116 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18117
18118         * tree-vectorizer.h (vect_strided_store_supported): Add a
18119         HOST_WIDE_INT argument.
18120         (vect_strided_load_supported): Likewise.
18121         (vect_permute_store_chain): Return void.
18122         (vect_transform_strided_load): Likewise.
18123         (vect_permute_load_chain): Delete.
18124         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18125         count argument.  Check that the count is a power of two.
18126         (vect_strided_load_supported): Likewise.
18127         (vect_permute_store_chain): Return void.  Update after above changes.
18128         Assert that the access is supported.
18129         (vect_permute_load_chain): Likewise.
18130         (vect_transform_strided_load): Return void.
18131         * tree-vect-stmts.c (vectorizable_store): Update calls after
18132         above interface changes.
18133         (vectorizable_load): Likewise.
18134         (vect_analyze_stmt): Don't check for strided powers of two here.
18135
18136 2011-04-14  Richard Guenther  <rguenther@suse.de>
18137
18138         PR tree-optimization/48590
18139         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18140         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18141         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18142         BUILT_IN_STACK_SAVE.
18143         * tree-ssa-dce.c (propagate_necessity): Handle
18144         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18145
18146 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18147
18148         * c-parser.c (c_parser_objc_class_declaration): Updated call to
18149         objc_declare_class.
18150
18151 2011-04-14  Richard Guenther  <rguenther@suse.de>
18152
18153         * tree.h (get_object_alignment_1): Declare.
18154         * builtins.c (get_object_alignment_1): Split out worker from ...
18155         (get_object_alignment): ... here.
18156         * fold-const.c (get_pointer_modulus_and_residue): Use
18157         get_object_alignment_1.
18158
18159 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18160
18161         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18162         type parameter.
18163         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18164         parameter.  Generalise code to handle arrays as well as vectors.
18165         (vect_setup_realignment): Update accordingly.
18166         * tree-vect-stmts.c (vectorizable_store): Likewise.
18167         (vectorizable_load): Likewise.
18168
18169 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18170
18171         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18172         within the per-copy loop.
18173
18174 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18175
18176         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18177         in the dump file.
18178
18179 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
18180
18181         * doc/options.texi (Negative): Explicitly mention that the
18182         Negative chain must be circular.
18183
18184 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
18185
18186         * function.h (block_chainon): Declare.
18187         * function.c (block_chainon): Define.
18188
18189 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
18190             Eric Weddington  <eric.weddington@atmel.com>
18191             Georg-Johann Lay  <avr@gjlay.de>
18192
18193         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18194         New Includes
18195         (avr_init_builtins, avr_expand_builtin,
18196         avr_expand_delay_cycles, avr_expand_unop_builtin,
18197         avr_expand_binop_builtin ): New functions.
18198         (avr_builtin_id): New enum
18199         (struct avr_builtin_description): New struct
18200         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18201         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18202
18203         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18204         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18205         UNSPECV_DELAY_CYCLES): new enumeration values
18206         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18207         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18208         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18209         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18210         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18211         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18212         "fmulsu"): New insns
18213
18214         * config/avr/avr-c.c: fix line endings
18215         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18216         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18217         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18218         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18219         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18220
18221         * doc/extend.texi (AVR Built-in Functions): New node
18222         (Target Builtins): Add documentation of AVR
18223         built-in functions.
18224
18225 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
18226
18227         PR target/44643
18228         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18229         alone. Error if non-const data has attribute progmem.
18230
18231 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18232
18233         * tree.h (struct tree_constructor): Include tree_typed instead of
18234         tree_common.
18235         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18236         TS_TYPED instead of TS_COMMON.
18237
18238 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18239
18240         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18241         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18242         (sse2_psadbw): Merge with *avx_psadbw.
18243         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18244         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18245         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18246         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18247         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18248         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18249         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18250         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18251         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18252         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18253         (ssse3_palignrti): Merge with *avx_palignrti.
18254
18255 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18256
18257         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18258         * tree-ssanames.c (fini_ssanames): VEC_free it.
18259         (make_ssa_name_fn): Update for VECness of free_ssanames.
18260         (release_ssa_name, release_dead_ssa_names): Likewise.
18261         * tree.h (struct tree_ssa_name): Include tree_typed instead of
18262         tree_common.
18263         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18264         TS_TYPED instead of TS_COMMON.
18265
18266 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18267
18268         * postreload-gcse.c (gcse_after_reload_main): Add calls to
18269         statistics_counter_event.
18270         * tree-ssa-copyrename.c (stats): Define.
18271         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
18272         statistics_counter_event.
18273         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18274         (bswap_stats, widen_mul_stats): Define.
18275         (insert_reciprocals): Increment rdivs_inserted.
18276         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
18277         rfuncs_inserted.  Add calls to statistics_counter_event.
18278         (execute_cse_sincos_1): Increment inserted.
18279         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
18280         statistics_counter_event.
18281         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
18282         of bswap_stats.  Add calls to statistics_counter_event.
18283         (convert_mult_to_widen): Increment widen_mults_inserted.
18284         (convert_plusminus_to_widen): Increment maccs_inserted.
18285         (convert_mult_to_fma): Increment fmas_inserted.
18286         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
18287         calls to statistics_counter_event.
18288
18289 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
18290
18291         PR rtl-optimization/48455
18292         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18293         `temp_costs->mem_cost'.
18294
18295 2011-04-13  Jan Hubicka  <jh@suse.cz>
18296
18297         * ipa-inline.h: New file.
18298         * ipa-inline-analysis.c: New file. Broken out of ...
18299         * ipa-inline.c: ... this file; update toplevel comment;
18300         include ipa-inline.h
18301         (inline_summary): Move to ipa-inline.h
18302         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18303         ipa-inline-analysis.c.
18304         (cgraph_estimate_time_after_inlining): Rename to
18305         estiamte_time_after_inlining; move to ipa-inline-analysis.c
18306         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18307         to estimate_edge_growth.
18308         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18309         rename to estimate_size_after_inlining.
18310         (cgraph_mark_inline_edge): Update for new naming convention.
18311         (cgraph_check_inline_limits): Likewise.
18312         (cgraph_edge_badness): Likewise.
18313         (cgraph_decide_recursive_inlining): Likewise.
18314         (cgraph_decide_inlining_of_small_functions): Likewise.
18315         (cgraph_decide_inlining_incrementally): Likewise.
18316         (cgraph_estimate_growth): Rename to estimate_growth; move to
18317         ipa-inline-analysis.c.
18318         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18319         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18320         (compute_inline_parameters): Likewise.
18321         (compute_inline_parameters_for_current): Likewise.
18322         (pass_inline_parameters): Likewise.
18323         (inline_indirect_intraprocedural_analysis): Likewise.
18324         (analyze_function): Rename to inline_analyze_function; likewise.
18325         (add_new_function): Move to ipa-inline-analysis.c.
18326         (inline_generate_summary): Likewise.
18327         (inline_read_summary): Likewise.
18328         (inline_write_summary): Likewise.
18329         * Makefile.in (ipa-inline-analysis.c): New file.
18330
18331 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18332
18333         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18334         * configure: Regenerate.
18335
18336 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
18337
18338         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18339         instead of tree_common.
18340         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18341         Likewise.
18342         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18343         TS_TYPED rather than TS_COMMON.
18344         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18345
18346 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
18347
18348         PR target/45263
18349         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18350         r20 around calls of __tablejump_elpm__
18351
18352 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18353
18354         PR middle-end/48591
18355         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18356         NULL.
18357         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18358
18359 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
18360
18361         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18362         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18363         (cfi_vec): New typedef.
18364         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18365         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18366         (cie_cfi_vec): New static variable.
18367         (cie_cfi_head): Delete.
18368         (add_cfi): Accept a cfi_vec * as first argument. All callers and
18369         declaration changed. Use vector rather than list operations.
18370         (new_cfi): Don't initialize the dw_cfi_next field.
18371         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18372         rather than list operations.
18373         (lookup_cfa): Use vector rather than list operations.
18374         (output_cfis): New argument upto. Accept a cfi_vec rather than
18375         a dw_cfi_ref list head as argument. All callers changed.
18376         Iterate over the vector using upto as a maximum index.
18377         (output_all_cfis): New static function.
18378         (output_fde): Use vector rather than list operations. Use the
18379         new upto argument for output_cfis rather than manipulating a
18380         list.
18381         (dwarf2out_begin_prologue): Change initializations to match
18382         new struct members.
18383         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18384         from the vector length rather than searching for the end of a list.
18385         Use output_all_cfis.
18386         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18387
18388 2011-04-13  Nick Clifton  <nickc@redhat.com>
18389
18390         * config/rx/rx.md (movmemsi): Do not use this pattern when
18391         volatile pointers are involved.
18392
18393 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
18394
18395         * config/i386/sse.md (pinsrbits): Remove.
18396         (sse2_packsswb): Merge with *avx_packsswb.
18397         (sse2_packssdw): Merge with *avx_packssdw.
18398         (sse2_packuswb): Merge with *avx_packuswb.
18399         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18400         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18401         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18402         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18403         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18404         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18405         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18406         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18407         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18408         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18409         (sse2_loadld): Merge with *avx_loadld.
18410         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18411         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18412         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18413         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18414         (vec_concatv2di): Merge with *vec_concatv2di_avx.
18415
18416 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
18417
18418         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18419         calling TREE_CHAIN.
18420         * print-tree.c (print_node): Likewise.
18421         * tree-inline.c (copy_tree_r): Likewise.
18422         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18423         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18424         instead of TS_COMMON.
18425         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18426         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18427         (copy_node_stat): Zero TREE_CHAIN only if necessary.
18428         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18429         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18430         ...and these...
18431         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18432         * tree.h: ...here.
18433         (TREE_CHAIN): Check for a TS_COMMON structure.
18434         (TREE_TYPE): Check for a TS_TYPED structure.
18435
18436 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
18437
18438         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18439         cgraph_get_create_node instead of cgraph_node.
18440
18441 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18442
18443         * c-parser.c (c_parser_initelt): Updated call to
18444         objc_build_message_expr.
18445         (c_parser_postfix_expression): Likewise.
18446
18447 2011-04-12  Kai Tietz  <ktietz@redhat.com>
18448
18449         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18450         MASK_MS_BITFIELD_LAYOUT bit.
18451
18452 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18453
18454         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18455         assert it is always true.
18456         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18457         moves.
18458
18459 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
18460
18461         * c-parser.c (c_lex_one_token): Rewritten conditional used when
18462         compiling Objective-C to be more efficient.
18463
18464 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
18465
18466         * opts-common.c (decode_cmdline_options_to_array): Remove variable
18467         argv_copied.
18468
18469 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18470
18471         * recog.h, genoutput.c, optabs.c: Revert last patch.
18472
18473 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18474
18475         PR target/48090
18476         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18477
18478 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18479
18480         * recog.h (insn_operand_data): Add an "allows_mem" field.
18481         * genoutput.c (output_operand_data): Initialize it.
18482         * optabs.c (maybe_legitimize_operand_same_code): New function.
18483         (maybe_legitimize_operand): Use it when matching the original
18484         op->value.
18485
18486 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18487
18488         * genpreds.c (process_define_predicate): Move most processing
18489         to gensupport.c.  Continue to validate the expression.
18490         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18491         (process_define_predicate): Move processing to gensupport.c.
18492         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18493         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18494         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
18495         argument.
18496         (valid_predicate_name_p): New function, split out from old
18497         genpreds.c:process_define_predicate.
18498         (process_define_predicate): New function, combining code from
18499         old genpreds.c and genrecog.c functions.
18500         (process_rtx): Call it for DEFINE_PREDICATE and
18501         DEFINE_SPECIAL_PREDICATE.
18502
18503 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
18504
18505         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18506         size of a '%A' memory reference.
18507         (T_DREG, T_QREG): New neon_builtin_type_bits.
18508         (arm_init_neon_builtins): Assert that the load and store operands
18509         are neon_struct_operands.
18510         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18511         (NEON_ARG_MEMORY): New builtin_arg.
18512         (neon_dereference_pointer): New function.
18513         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18514         Handle NEON_ARG_MEMORY.
18515         (arm_expand_neon_builtin): Update after above interface changes.
18516         Use NEON_ARG_MEMORY for loads and stores.
18517         * config/arm/predicates.md (neon_struct_operand): New predicate.
18518         * config/arm/iterators.md (V_two_elem): Tweak formatting.
18519         (V_three_elem): Use BLKmode for accesses that have no associated mode.
18520         (V_four_elem): Tweak formatting.
18521         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18522         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18523         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18524         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18525         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18526         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18527         (neon_vst4<mode>): Replace pointer operand with a memory operand.
18528         Use %A in the output template.
18529         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18530         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18531         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18532         the width of the memory access.  Remove post-increment.
18533         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18534
18535 2011-04-12  Nick Clifton  <nickc@redhat.com>
18536
18537         * config/v850/v850.c (expand_prologue): Do not use the CALLT
18538         instruction for interrupt handlers if the target is the basic V850
18539         architecture.
18540         (expand_epilogue): Likewise.
18541
18542 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18543
18544         PR rtl-optimization/48549
18545         * combine.c (propagate_for_debug): Also stop after BB_END of
18546         this_basic_block.  Process LAST and just stop processing after it.
18547         (combine_instructions): If last_combined_insn has been deleted,
18548         set last_combined_insn to its PREV_INSN.
18549
18550 2011-04-12  Richard Guenther  <rguenther@suse.de>
18551
18552         PR tree-optimization/46076
18553         * gimple.h (struct gimple_statement_call): Add fntype field.
18554         (gimple_call_fntype): Adjust.
18555         (gimple_call_set_fntype): New function.
18556         * gimple.c (gimple_build_call_1): Set the call function type.
18557         * gimplify.c (gimplify_call_expr): Preserve the function
18558         type the frontend used for the call.
18559         (gimplify_modify_expr): Likewise.
18560         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18561         function type.
18562         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18563         function type.
18564         * tree-ssa.c (useless_type_conversion_p): Function pointer
18565         conversions are useless.
18566
18567 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18568
18569         * cgraph.h (cgraph_node): Remove function declaration.
18570         (cgraph_create_node): Declare.
18571         (cgraph_get_create_node): Likewise.
18572         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18573         Updated all callers.
18574         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18575         the decl does not already exist.  Call cgraph_get_create_node instead
18576         of cgraph_node.
18577         (cgraph_get_create_node): New function.
18578         (cgraph_same_body_alias): Update comment.
18579         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18580         assert it does not return NULL.
18581         (cgraph_update_edges_for_call_stmt): Likewise.
18582         (cgraph_clone_edge): Likewise.
18583         (cgraph_create_virtual_clone): Likewise.
18584         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18585         instead of cgraph_node.
18586         (cgraph_add_new_function): Call cgraph_create_node or
18587         cgraph_get_create_node instead of cgraph_node.
18588         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18589         instead of cgraph_node.
18590         (record_eh_tables): Likewise.
18591         (mark_address): Likewise.
18592         (mark_load): Likewise.
18593         (build_cgraph_edges): Call cgraph_get_create_node instead
18594         of cgraph_node.
18595         (rebuild_cgraph_edges): Likewise.
18596         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18597         instead of cgraph_node.
18598         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18599         cgraph_node.
18600         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18601         cgraph_create_node instead of cgraph_node.
18602         * c-decl.c (finish_function): Call cgraph_get_create_node instead
18603         of cgraph_node.
18604         * lto-cgraph.c (input_node): Likewise.
18605         * lto-streamer-in.c (input_function): Likewise.
18606         * varasm.c (mark_decl_referenced): Likewise.
18607         (assemble_alias): Likewise.
18608
18609 2011-04-12  Martin Jambor  <mjambor@suse.cz>
18610
18611         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18612         instead of cgraph_node and assert it does not return NULL.
18613         * lto-streamer-in.c (lto_read_body): Likewise.
18614         * omp-low.c (new_omp_context): Likewise.
18615         (create_task_copyfn): Likewise.
18616         * tree-emutls.c (lower_emutls_function_body): Likewise.
18617         * matrix-reorg.c (transform_allocation_sites): Likewise.
18618
18619 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
18620
18621         PR c/48552
18622         * c-typeck.c (build_asm_expr): Error out on attempts to use
18623         void type outputs or inputs for constraints that allow reg or
18624         don't allow memory.
18625
18626 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
18627             Richard Earnshaw  <rearnsha@arm.com>
18628
18629         PR target/48250
18630         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18631         to use sign-magnitude offsets. Reject unsupported unaligned
18632         cases. Add detailed description in comments.
18633         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18634         condition from TARGET_32BIT to TARGET_ARM.
18635
18636 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
18637
18638         * tree.h (struct typed_tree): New.
18639         (struct tree_common): Include it instead of tree_base.
18640         (TREE_TYPE): Update for new location of type field.
18641         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18642         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18643         (union tree_node): Add typed field.
18644         * treestruct.def (TS_TYPED): New.
18645         * lto-streamer.c (check_handled_ts_structures): Handle it.
18646         * tree.c (MARK_TS_TYPED): New macro.
18647         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18648
18649 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18650
18651         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18652         (force_nonfallthru): Do not alter the loop nest if no basic block
18653         was created.
18654
18655 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18656
18657         * config/i386/sse.md (VI): New mode iterator.
18658         (SSEMODEI): Remove.
18659         (AVX256MODEI): Ditto.
18660         (AVXMODEF4P): Ditto.
18661         (avxvecpsmode): Ditto.
18662         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
18663         (sse2_andnot<mode>3): New expander.
18664         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18665         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
18666         (<any_logic:code><mode>3): Use VI mode iterator.
18667         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18668         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
18669         (*andnottf3): Handle AVX three-operand constraints.
18670         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18671
18672 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18673             Robert Millan  <rmh@gnu.org>
18674
18675         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18676         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18677         GNU_USER_DYNAMIC_LINKER64): Define.
18678         (REG_NAME): Don't undefine.
18679         (MD_UNWIND_SUPPORT): Undefine.
18680         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18681         (REG_NAME): Don't undefine.
18682         (MD_UNWIND_SUPPORT): Undefine.
18683         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18684
18685 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18686
18687         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18688         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18689
18690 2011-04-11  Xinliang David Li  <davidxl@google.com>
18691
18692         * value-profile.c (check_ic_target): New function.
18693         (gimple_ic_transform): Sanity check indirect call target.
18694         * gimple-low.c (gimple_check_call_args): Interface change.
18695         (gimple_check_call_matching_types): New function.
18696         * tree-inline.c (tree_can_inline_p): Call new function.
18697
18698 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
18699
18700         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18701         tree-pretty-print.h & realmpfr.h.
18702
18703 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
18704
18705         PR middle-end/48464
18706         * ira.c (setup_pressure_classes): Fix typo in loop condition.
18707         (setup_allocno_and_important_classes): Ditto.
18708
18709 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18710
18711         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18712         GNU_USER_DYNAMIC_LINKER.
18713         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18714         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18715         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18716         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18717         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18718         GNU_USER_TARGET_OS_CPP_BUILTINS.
18719         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18720         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18721         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18722         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18723         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18724         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18725         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18726         GNU_USER_TARGET_OS_CPP_BUILTINS.
18727         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18728         GNU_USER_DYNAMIC_LINKER.
18729         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18730         GNU_USER_TARGET_OS_CPP_BUILTINS.
18731         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18732         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18733         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18734         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18735         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18736         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18737         GNU_USER_DYNAMIC_LINKER64): Remove.
18738         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18740         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18741         GNU_USER_DYNAMIC_LINKER.
18742         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18743         GNU_USER_TARGET_OS_CPP_BUILTINS.
18744         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18745         GNU_USER_TARGET_OS_CPP_BUILTINS.
18746         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18747         to GNU_USER_TARGET_OS_CPP_BUILTINS.
18748         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18749         GNU_USER_TARGET_OS_CPP_BUILTINS.
18750         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18751         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18752         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18753         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18754         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18755         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18756         GNU_USER_DYNAMIC_LINKER.
18757         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18758         GNU_USER_TARGET_OS_CPP_BUILTINS.
18759         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18760         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18761         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18762         GNU_USER_DYNAMIC_LINKER.
18763         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18764         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18765         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18766         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18767         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18768         GNU_USER_DYNAMIC_LINKER.
18769         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18770         GNU_USER_DYNAMIC_LINKERN32.
18771         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18772         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
18773         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
18774         GNU_USER_DYNAMIC_LINKER32.
18775         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18776         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18777         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18778         GNU_USER_DYNAMIC_LINKER.
18779         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18780         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18781         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18782         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18783         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18784         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18785         GNU_USER_DYNAMIC_LINKER32.
18786         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18787         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18788         GNU_USER_DYNAMIC_LINKER.
18789         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18790         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18791         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18792         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
18793         GNU_USER_DYNAMIC_LINKER64.
18794         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18795         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18796         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18797         GNU_USER_DYNAMIC_LINKER.
18798         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18799         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18800         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18801         GNU_USER_DYNAMIC_LINKER.
18802         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18803         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18804         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18805         GNU_USER_DYNAMIC_LINKER32.
18806         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18807         GNU_USER_DYNAMIC_LINKER64.
18808         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18809         GNU_USER_DYNAMIC_LINKER64.
18810         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18811         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18812         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18813         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18814         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18815
18816 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18817
18818         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
18819         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18820         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18821         GNU_USER_DYNAMIC_LINKER.
18822         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18823         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
18824         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18825         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18826         GNU_USER_DYNAMIC_LINKER64.
18827         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18828         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18829         GNU_USER_LINK_EMULATION.
18830         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18831         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18832         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18833         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18834         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18835         CPP_SPEC, CC1_SPEC): Remove.
18836         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18837         (GNU_USER_DYNAMIC_LINKER): Define.
18838         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18839         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18840         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18841         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18842         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18843         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18844         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18845         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18846         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18847         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18848         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18849         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18850         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18851         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18852         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18853         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18854         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18855         GNU_USER_DYNAMIC_LINKER.
18856         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18857         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18858         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18859         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18860         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18861         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
18862         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18863         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18864         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18865         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18866
18867 2011-04-11  Kai Tietz  <ktietz@redhat.com>
18868
18869         PR target/9601
18870         PR target/11772
18871         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18872         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18873         comment.
18874         (ix86_is_msabi_thiscall): Removed.
18875         (ix86_is_type_thiscall): Likewise.
18876         (ix86_get_callcvt): New function.
18877         (ix86_comp_type_attributes): Simplify check.
18878         (ix86_function_regparm): Use ix86_get_callcvt for calling
18879         convention attribute checks.
18880         (ix86_return_pops_args): Likewise.
18881         (ix86_static_chain): Likewise.
18882         (x86_this_parameter): Likewise.
18883         (x86_output_mi_thunk): Likewise.
18884         (ix86_function_type_abi): Optimize check for types without attributes.
18885         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18886         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18887         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18888         by flag-values.
18889         (IX86_BASE_CALLCVT): Helper macro.
18890         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18891         Use ix86_get_callcvt for calling convention attribute checks and avoid
18892         symbol-decoration for stdcall in TARGET_RTD case.
18893         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18894         Likewise.
18895         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18896         for declaration.
18897
18898 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
18899
18900         * config/i386/sse.md (VI_128): New mode iterator.
18901         (VI12_128): Rename from SSEMODE12.
18902         (VI14_128): Rename from SSEMODE14.
18903         (VI124_128): New mode iterator.
18904         (VI24_128): Rename from SSEMODE248.
18905         (VI248_128): Rename from SSEMODE248.
18906         (SSEMODE124C8): Remove.
18907         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18908         (*sse2_<plusminus_insn><mode>3): Merge with
18909         *avx_<plusminus_insn><mode>3.
18910         (*mulv8hi3): Merge with *avx_mulv8hi3.
18911         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18912         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18913         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18914         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18915         (ashr<mode>3): Merge with *avx_ashr<mode>3.
18916         (lshr<mode>3): Merge with *avx_lshr<mode>3.
18917         (ashl<mode>3): Merge with *avx_ashl<mode>3.
18918         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18919         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18920         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18921         (*<smaxmin:code>v8hi3): Ditto.
18922         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18923         (*<smaxmin:code>v16qi3): Ditto.
18924         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18925         (*sse2_eq<mode>3): Ditto.
18926         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18927         (*sse2_gt<mode>3): Ditto.
18928         (vcondv2di): Split out of vcond<mode>.
18929         (vconduv2di): Split out of vcondu<mode>.
18930
18931 2011-04-11  Richard Guenther  <rguenther@suse.de>
18932
18933         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18934         before calling tree_low_cst.
18935
18936 2011-04-11  Richard Guenther  <rguenther@suse.de>
18937
18938         * stor-layout.c (layout_type): Compute all array index size operations
18939         in the original type.
18940         (initialize_sizetypes): Add comment.
18941         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18942
18943 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
18944
18945         * common.opt (Tbss=, Tdata=, Ttext=): New options.
18946
18947 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18948
18949         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18950         of cgraph_node, handle NULL return value.
18951         (cgraph_global_info): Likewise.
18952         (cgraph_rtl_info): Likewise.
18953         * tree-inline.c (estimate_num_insns): Likewise.
18954         * gimplify.c (unshare_body): Likewise.
18955         (unvisit_body): Likewise.
18956         (gimplify_body): Likewise.
18957         * predict.c (optimize_function_for_size_p): Likewise.
18958         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18959         (call_may_clobber_ref_p_1): Likewise.
18960         * varasm.c (function_section_1): Likewise.
18961         (assemble_start_function): Likewise.
18962
18963 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18964
18965         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18966         of cgraph_node.
18967         * final.c (rest_of_clean_state): Likewise.
18968         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18969         * passes.c (pass_init_dump_file): Likewise.
18970         (execute_all_ipa_transforms): Likewise.
18971         (function_called_by_processed_nodes_p): Likewise.
18972         * predict.c (maybe_hot_frequency_p): Likewise.
18973         (probably_never_executed_bb_p): Likewise.
18974         (compute_function_frequency): Likewise.
18975         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18976         (unnest_nesting_tree_1): Likewise.
18977         (lower_nested_functions): Likewise.
18978         * tree-optimize.c (execute_fixup_cfg): Likewise.
18979         (tree_rest_of_compilation): Likewise.
18980         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18981         * tree-sra.c (ipa_early_sra): Likewise.
18982         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18983         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18984         * ipa.c (record_cdtor_fn): Likewise.
18985         * ipa-inline.c (cgraph_early_inlining): Likewise.
18986         (compute_inline_parameters_for_current): Likewise.
18987         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18988         * ipa-pure-const.c (local_pure_const): Likewise.
18989         * ipa-split.c (split_function): Likewise.
18990         (execute_split_functions): Likewise.
18991         * cgraphbuild.c (build_cgraph_edges): Likewise.
18992         (rebuild_cgraph_edges): Likewise.
18993         (cgraph_rebuild_references): Likewise.
18994         (remove_cgraph_callee_edges): Likewise.
18995         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18996         (verify_cgraph_node): Likewise.
18997         (cgraph_analyze_functions): Likewise.
18998         (cgraph_preserve_function_body_p): Likewise.
18999         (save_inline_function_body): Likewise.
19000         (save_inline_function_body): Likewise.
19001         * tree-inline.c (copy_bb): Likewise.
19002         (optimize_inline_calls): Likewise.
19003
19004 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19005
19006         PR tree-optimization/48195
19007         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19008         ipa_check_create_edge_args.
19009         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19010         ipa_check_create_edge_args.
19011         * ipa-inline.c (inline_generate_summary): Do not call
19012         ipa_check_create_node_params and ipa_check_create_edge_args.
19013         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19014         ipa_check_create_edge_args.
19015
19016 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
19017
19018         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19019         instead of loop.
19020         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19021         * function.c (record_hard_reg_sets): Likewise.
19022         * ira.c (compute_regs_asm_clobbered): Likewise.
19023         * sched-deps.c (sched_analyze_1): Likewise.
19024         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19025
19026 2011-04-09  Xinliang David Li  <davidxl@google.com>
19027
19028         PR tree-optimization/PR48484
19029         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19030         has_valid_pred lazily
19031
19032 2011-04-09  Duncan Sands  <baldrick@free.fr>
19033
19034         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19035
19036 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19037
19038         * combine.c (combine_validate_cost): Adjust comments.  Set registered
19039         cost of I0 to zero at the end, if any.
19040
19041 2011-04-08  Xinliang David Li  <davidxl@google.com>
19042
19043         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19044         to insane profile data.
19045
19046 2011-04-08  Xinliang David Li  <davidxl@google.com>
19047
19048         * ipa-cp.c (ipcp_update_profiling): Correct
19049          negative scale factor due to insane profile data.
19050
19051 2011-04-08  Xinliang David Li  <davidxl@google.com>
19052
19053         * final.c (dump_basic_block_info): New function.
19054         (final): Dump basic block.
19055         (final_scan_insn): Remove old dump.
19056
19057 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19058
19059         PR target/47829
19060         * config.gcc (i386-*-freebsd): Disable unwind table generation for
19061         crtbegin/crtend.
19062
19063 2011-04-08  Michael Matz  <matz@suse.de>
19064
19065         PR middle-end/48389
19066         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19067         functions.
19068         (rebuild_jump_labels): Call rebuild_jump_labels_1.
19069         * rtl.h (rebuild_jump_labels_chain): Declare.
19070         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19071         insns inserted on edges.
19072
19073 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
19074
19075         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19076         * config/arm/arm-arches.def: New.
19077         * config/arm/arm-opts.h: New.
19078         * config/arm/genopt.sh: New.
19079         * config/arm/arm-tables.opt: New (generated).
19080         * config/arm/arm.c (arm_handle_option, arm_target_help,
19081         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19082         (all_architectures): Get most table contents from arm-arches.def.
19083         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19084         arm_selected_tune here.
19085         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19086         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19087         (march=, mcpu=, mtune=): Use Enum and Var.
19088         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19089         (arm.o): Update dependencies.
19090
19091 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
19092
19093         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19094         of header_file.
19095         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19096         (write_typed_alloc_defns): Likewise.
19097         (main): Calls write_typed_alloc_defns with output_header.
19098
19099 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
19100
19101         PR inline-asm/48435
19102         * ira-color.c (setup_profitable_hard_regs): Add comments.
19103         Don't take prohibited hard regs into account.
19104         (setup_conflict_profitable_regs): Rename to
19105         get_conflict_profitable_regs.
19106         (check_hard_reg_p): Check prohibited hard regs.
19107
19108 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
19109
19110         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19111         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19112         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19113
19114 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19115
19116         PR target/48366
19117         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19118         move from floating point to shift amount register.
19119         (emit_move_sequence): Remove secondary reload support for floating
19120         point to shift amount amount register copies.
19121         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19122         amount register copies.
19123         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19124         register, return false if mode isn't a scalar integer mode.
19125         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19126
19127 2011-04-08  Richard Guenther  <rguenther@suse.de>
19128
19129         * gimple.c (gimple_call_flags): Remove kludge.
19130
19131 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19132
19133         * sel-sched.c (sel_region_init): Move call to
19134         sel_setup_region_sched_flags after setup_current_loop_nest.
19135
19136 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
19137
19138         PR rtl-optimization/48272
19139         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19140         init_insn_reg_pressure_info.  Adjust a caller.
19141         * sched-int.h (init_insn_reg_pressure_info): Declare.
19142         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19143         when sched-pressure is enabled.
19144
19145 2011-04-08  Richard Guenther  <rguenther@suse.de>
19146
19147         * gimple.c (gimple_set_modified): Do not queue calls to
19148         MODIFIED_NORETURN_CALLS here ...
19149         * tree-ssa-operands.c (update_stmt_operands): ... but here.
19150
19151 2011-04-08  Richard Guenther  <rguenther@suse.de>
19152
19153         PR lto/48467
19154         * toplev.c (lang_dependent_init): Do not open asm_out_file
19155         in WPA mode, nor perform debug machinery initialization.
19156         (finalize): Do not unlink asm_out_file in WPA mode.
19157
19158 2011-04-08  Richard Guenther  <rguenther@suse.de>
19159
19160         * gimple.h (gimple_call_fntype): New function.
19161         (gimple_call_return_type): Use it.
19162         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19163         * gimple-low.c (gimple_check_call_args): Likewise.
19164         * gimple.c (gimple_call_flags): Likewise.
19165         (gimple_call_arg_flags): Likewise.
19166         (gimple_call_return_flags): Likewise.
19167         * tree-cfg.c (verify_gimple_call): Likewise.
19168         (do_warn_unused_result): Likewise.
19169         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19170         * value-prof.c (gimple_ic_transform): Fix fndecl check.
19171
19172 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
19173
19174         PR rtl-optimization/48235
19175         * sel-sched.c (code_motion_process_successors): Recompute the last
19176         insn in basic block if control flow changed.
19177         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
19178         Update condition for ilist_remove.
19179
19180 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19181
19182         PR rtl-optimization/48302
19183         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19184         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
19185         it to record added preheader blocks.
19186         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
19187         on to sel_add_loop_preheaders.
19188         (sel_region_init): Move call to setup_current_loop_nest after
19189         sel_init_bbs.
19190
19191 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19192
19193         PR target/48273
19194         * cfgloop.h (loop_has_exit_edges): New helper.
19195         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19196         non-clonable.
19197         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19198         that have no exit edges.
19199
19200 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
19201
19202         PR rtl-optimization/48442
19203         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
19204         all callers.  Adjust assert.
19205
19206 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
19207
19208         PR tree-optimization/48377
19209         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19210         is_packed to true even for types with smaller TYPE_ALIGN than
19211         TYPE_SIZE.
19212
19213 2011-04-08  Richard Guenther  <rguenther@suse.de>
19214
19215         PR bootstrap/48513
19216         * doc/tm.texi: Re-generate.
19217
19218 2011-04-08  Wei Guozhi  <carrot@google.com>
19219
19220         PR target/47855
19221         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19222         * config/arm/arm.c (arm_attr_length_push_multi): New function.
19223         * config/arm/arm.md (*push_multi): Change the length computation to
19224         call a C function.
19225
19226 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
19227
19228         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19229         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19230         * doc/tm.texi: Regenerate.
19231         * system.h (ASM_OUTPUT_BSS): Poison.
19232         * varasm.c (asm_output_bss): Remove function.
19233         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19234
19235         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19236         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19237         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19238         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19239         Likewise.
19240         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19241         Likewise.
19242         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19243         Likewise.
19244         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19245
19246 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19247
19248         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19249         EnumValue lines.
19250
19251 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
19252
19253         * config/m68k/m68k.c (m68k_handle_option): Don't handle
19254         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19255         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19256         OPT_mcpu32.
19257         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19258         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19259         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19260         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19261         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19262         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19263         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19264         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19265         options.  Don't map other m68k options manually.  Don't handle
19266         old-style options as canonical.
19267         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19268         * doc/install.texi (m68k-*-*): Document binutils version requirement.
19269
19270 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19271
19272         * basic-block.h (force_nonfallthru): Move to...
19273         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19274         (force_nonfallthru): ...here.
19275         * cfghooks.c (force_nonfallthru): New function.
19276         * cfgrtl.c (force_nonfallthru): Rename into...
19277         (rtl_force_nonfallthru): ...this.
19278         (commit_one_edge_insertion): Do not set AUX field.
19279         (commit_edge_insertions): Do not discover new basic blocks.
19280         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19281         (cfg_layout_rtl_cfg_hooks): Likewise.
19282         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19283         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
19284         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19285
19286 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
19287
19288         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19289         Remove macros.
19290
19291 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
19292
19293         * config/i386/sse.md: Update copyright year.
19294         (avxcvtvecmode): Remove.
19295         (sse_movhlps): Merge with *avx_movhlps.
19296         (sse_movlhps): Merge with *avx_movlhps.
19297         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19298         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19299         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19300         (sse_loadhps): Merge with *avx_loadhps.
19301         (sse_storelps): Merge with *avx_storelps.
19302         (sse_loadlps): Merge with *avx_loadlps.
19303         (sse_movss): Merge with *avx_movss.
19304         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19305         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19306         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19307         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19308         (vec_set<mode>_0): Ditto.
19309         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19310         (sse4_1_insertps): Merge with *avx_insertps.
19311         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19312         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19313         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19314         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19315         (sse2_storehpd): Merge with *avx_storehpd.
19316         (sse2_loadhpd): Merge with *avx_loadhpd.
19317         (sse2_loadlpd): Merge with *avx_loadlpd.
19318         (sse2_movsd): Merge with *avx_movsd.
19319         (*vec_concatv2df): Merge with *vec_concatv2df.
19320
19321 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
19322
19323         PR debug/48343
19324         * combine.c (combine_instructions): Add last_combined_insn,
19325         update it if insn is after it, pass it to all try_combine calls.
19326         (try_combine): Add last_combined_insn parameter, pass it instead of
19327         i3 to propagate_for_debug.
19328
19329 2011-04-07  Nick Clifton  <nickc@redhat.com>
19330
19331         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19332         to handle MDR <-> data register transfers.
19333         (movhi_internal): Likewise.
19334
19335 2011-04-07  Alan Modra  <amodra@gmail.com>
19336
19337         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19338         previous stack info.
19339
19340 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19341
19342         PR target/43920
19343         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
19344         flow_find_cross_jump.  Swap variables to implement backward replacement.
19345         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19346
19347 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19348
19349         PR target/43920
19350         * cfgcleanup.c (walk_to_nondebug_insn): New function.
19351         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
19352         and bb2.
19353         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19354         src1 or src2.  Redirect edges to the last basic block.  Update
19355         frequency and count on multiple basic blocks in case of fallthru.
19356
19357 2011-04-07  Tom de Vries  <tom@codesourcery.com>
19358
19359         PR target/43920
19360         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19361         function.
19362         (old_insns_match_p): Change return type.  Replace return false/true
19363         with return dir_none/dir_both.  Use can_replace_by.
19364         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
19365         direction from dir_p.  Register replacement direction in dir, last_dir
19366         and afterlast_dir.  Handle new return type of old_insns_match_p using
19367         merge_dir.  Return replacement direction in dir_p.
19368         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19369         return type of old_insns_match_p.
19370         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19371         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19372         flow_find_cross_jump.
19373         * basic-block.h (enum replace_direction): New type.
19374         (flow_find_cross_jump): Add parameter to declaration.
19375
19376 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19377
19378         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19379         (AVXMODEDCVTPS2DQ): Ditto.
19380         (VEC_FLOAT_MODE): Ditto.
19381         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
19382         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19383         (<any_logic:code><mode>3): Use VF mode iterator.
19384         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19385         Use VF mode iterator.
19386         (copysign<mode>3): Use VF mode iterator.
19387         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
19388         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19389         (*<any_logic:code><MODEF:mode>3): Merge with
19390         *avx_<any_logic:code><MODEF:mode>3.
19391         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19392         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19393         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19394         (avx_cvtdq2ps<avxmodesuffix>): Remove.
19395         (sse2_cvtdq2ps): Use %v modifier.
19396         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19397         (avx_cvtps2dq<avxmodesuffix>): Remove.
19398         (sse2_cvtps2dq): Use %v modifier.
19399         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19400         (avx_cvttps2dq<avxmodesuffix>): Remove.
19401         (sse2_cvttps2dq): Use %v modifier.
19402         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19403         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19404         (sse2_cvtsd2siq): Fix insn template.
19405         (sse2_cvtsd2siq_2): Ditto.
19406         (sse2_cvttsd2siq): Ditto.
19407         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19408         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19409
19410 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19411
19412         * gcov-io.c: Use GCC Runtime Library Exception.
19413
19414 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
19415
19416         PR debug/48466
19417         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19418         as base_reg whatever register reg has been eliminated to, instead
19419         of hardcoding STACK_POINTER_REGNUM.
19420
19421 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
19422
19423         * doc/tm.texi.in: Document C target hooks as separate from general
19424         target hooks.
19425         * doc/tm.texi: Regenerate.
19426         * genhooks.c (struct hook_desc): Add docname field.
19427         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
19428         docname field.
19429         (hook_array): Include c-target.def.
19430         (emit_documentation): Use docname field in output.
19431         (emit_init_macros): Take docname argument.  Only emit definitions
19432         for hooks matching docname.
19433         (main): Expect additional arguments in all cases.  Pass argument
19434         to emit_init_macros.
19435         * target.def: Move initial macro definitions and comments to
19436         target-hooks-macros.h.
19437         (gcc_targetcm): Move to c-family/c-target.def.
19438         * target.h (targetcm): Move declaration to c-family/c-target.h.
19439         * targhooks.c (default_handle_c_option): Move to
19440         c-family/c-opts.c.
19441         * targhooks.h (default_handle_c_option): Move declaration to
19442         c-family/c-common.h.
19443         * target-hooks-macros.h: New file.
19444         * config.gcc (target_has_targetcm): Define and use to add to
19445         c_target_objs and cxx_target_objs.
19446         * config/default-c.c: New file.
19447         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19448         of target.h and target-def.h.
19449         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19450         (darwin_objc_construct_string, darwin_cfstring_ref_p,
19451         darwin_check_cfstring_format_arg): Make static.
19452         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19453         TARGET_STRING_OBJECT_REF_TYPE_P,
19454         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19455         * config/darwin-protos.h (darwin_objc_construct_string,
19456         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19457         declare.
19458         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19459         TARGET_STRING_OBJECT_REF_TYPE_P,
19460         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19461         * config/t-darwin (darwin-c.o): Update dependencies.
19462         * system.h (TARGET_HAS_TARGETCM): Poison.
19463         * Makefile.in (TARGET_H): Update.
19464         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19465         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19466         (default-c.o): New target.
19467         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19468         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19469         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
19470         c-target.def.
19471         (build/genhooks.o): Update dependencies.
19472
19473 2011-04-06  Richard Guenther  <rguenther@suse.de>
19474
19475         * ipa-inline.c (enum inlining_mode): Remove.
19476         (cgraph_flatten): Use some other token.
19477         (cgraph_edge_early_inlinable_p): New function, split out from ...
19478         (cgraph_perform_always_inlining): New function, split out from ...
19479         (cgraph_decide_inlining_incrementally): ... here.
19480         (cgraph_mark_inline_edge): Adjust.
19481         (cgraph_early_inlining): Re-structure.
19482         (pass_early_inline): Require SSA form.
19483
19484 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
19485             Julian Brown  <julian@codesourcery.com>
19486             Mark Shinwell  <shinwell@codesourcery.com>
19487
19488         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19489         LO_REGS only for Thumb-1.
19490         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19491         be used in short instructions when optimising for size on Thumb-2.
19492
19493 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19494
19495         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19496         associated with user returns to be preserved.
19497
19498 2011-04-06  Tristan Gingold  <gingold@adacore.com>
19499
19500         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19501         symbol_queue_size, DBXOUT_DECR_NESTING,
19502         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19503         if XCOFF_DEBUGGING_INFO.
19504
19505 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
19506
19507         * config/i386/i386.md (attribute isa): New.
19508         (attribute enabled): New.
19509         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19510         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19511         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19512         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19513         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19514         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19515         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19516         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19517
19518         * config/i386/sse.md (VF): New mode iterator.
19519         (VF1): Ditto.
19520         (VF2): Ditto.
19521         (VF_128): Ditto.
19522         (SSEMODEF4): Remove.
19523         (attribute sse): Handle V8SF and V4DF modes.
19524         (<absneg:code><mode>2): Use VF mode iterator.
19525         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
19526         mode iterator.
19527         (<plusminus_insn><mode>3): Use VF mode iterator.
19528         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19529         Use VF mode iterator.
19530         (<sse>_vm<plusminus_insn><mode>3): Merge with
19531         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
19532         (mul<mode>3): Use VF mode iterator.
19533         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
19534         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
19535         mode iterator.
19536         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19537         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19538         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
19539         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
19540         mode iterator.
19541         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19542         Use VF1 mode iterator.
19543         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19544         (sqrt<VF2:mode>2): New expander.
19545         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19546         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19547         and sqrtv2df2.  Use VF mode iterator.
19548         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
19549         mode iterator.
19550         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19551         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19552         Use VF1 mode iterator.
19553         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19554         (<smaxmin:code><mode>3): Use VF mode iterator.
19555         (*<smaxmin:code><mode>3_finite): Merge with
19556         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
19557         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19558         (<sse>_vm<smaxmin:code><mode>2): Merge with
19559         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
19560         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
19561         mode iterator.
19562         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
19563         mode iterator.
19564         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19565         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19566         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19567         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19568         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
19569         VF mode iterator.
19570         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19571         Use VF_128 mode iterator.
19572         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
19573         mode iterator.
19574         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
19575         VF_128 mode iterator.
19576         (vcond<mode>): Use VF mode iterator.
19577         * config/i386/predicates.md (sse_comparison_operator): Merge with
19578         avx_comparison_float_operator.  Do not declare as special_predicate.
19579         * config/i386/i386.c (struct builtin_description): Update for renamed
19580         compare patterns.
19581         (ix86_expand_args_builtin): Ditto.
19582         (ix86_expand_sse_compare_mask): Ditto.
19583
19584 2011-04-06  Richard Guenther  <rguenther@suse.de>
19585
19586         * tree-inline.c (estimate_num_insns): For calls simply account
19587         for all passed arguments and a used return value.
19588
19589 2011-04-06  Richard Guenther  <rguenther@suse.de>
19590
19591         PR tree-optimization/47663
19592         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19593         call_stmt_time fields.
19594         (cgraph_edge_inlinable_p): Declare.
19595         (cgraph_edge_recursive_p): New inline function.
19596         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19597         (cgraph_clone_edge): Copy it.
19598         * ipa-inline.c (cgraph_estimate_edge_time): New function.
19599         Account for call stmt time.
19600         (cgraph_estimate_time_after_inlining): Take edge argument.
19601         (cgraph_estimate_edge_growth): Account call stmt size.
19602         (cgraph_estimate_size_after_inlining): Take edge argument.
19603         (cgraph_mark_inline_edge): Adjust.
19604         (cgraph_check_inline_limits): Likewise.
19605         (cgraph_recursive_inlining_p): Remove.
19606         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19607         (cgraph_decide_recursive_inlining): Take edge argument and
19608         adjust.
19609         (cgraph_decide_inlining_of_small_functions): Do not avoid
19610         diags for recursive inlining here.
19611         (cgraph_flatten): Adjust.
19612         (cgraph_decide_inlining_incrementally): Likewise.
19613         (estimate_function_body_sizes): Remove call cost handling.
19614         (compute_inline_parameters): Initialize caller edge call costs.
19615         (cgraph_estimate_edge_growth): New function.
19616         (cgraph_estimate_growth): Use it.
19617         (cgraph_edge_badness): Likewise.
19618         (cgraph_check_inline_limits): Take an edge argument.
19619         (cgraph_decide_inlining_of_small_functions): Adjust.
19620         (cgraph_decide_inlining): Likewise.
19621         * tree-inline.c (estimate_num_insns): Only account for call
19622         return value if it is used.
19623         (expand_call_inline): Avoid diagnostics on recursive inline
19624         functions here.
19625         * lto-cgraph.c (lto_output_edge): Output edge call costs.
19626         (input_edge): Input edge call costs.
19627
19628 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19629
19630         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19631
19632 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
19633
19634         * doc/invoke.texi (Spec Files): Fix typo.
19635
19636 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
19637
19638         * profile.c (branch_prob): Move declaration of local variable.  Remove
19639         obsolete ??? comment.  Expand the location explicitly instead of using
19640         the LOCATION_FILE and LOCATION_LINE macros.
19641
19642 2011-04-06  Wei Guozhi  <carrot@google.com>
19643
19644         PR target/47855
19645         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19646         (arm_cond_branch): Likewise.
19647         (arm_cond_branch_reversed): Likewise.
19648         (arm_jump): Likewise.
19649         (push_multi): Likewise.
19650         * config/arm/constraints.md (Py): New constraint.
19651
19652 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19653
19654         PR bootstrap/48471
19655         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19656         Move these...
19657         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19658         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19659         #ifdef DBX_DEBUGGING_INFO.
19660
19661 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
19662
19663         PR bootstrap/48403
19664         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19665         if old and new states differ.
19666
19667 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19668
19669         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19670         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19671         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19672         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19673         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19674         mcfv4e): Use Alias.
19675         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19676         ColdFire options to -mcpu= options.
19677
19678 2011-04-05  Jeff Law  <law@redhat.com>
19679
19680         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19681         check if BB is a successor of LOOP->header and return
19682         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19683
19684 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19685
19686         * cprop.c (struct reg_use): Remove.
19687         (reg_use_table): Make an array of RTX.
19688         (find_used_regs, constprop_register, local_cprop_pass,
19689         bypass_block): Simplify users of reg_use_table.
19690         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
19691         on one of the uses found by find_used_regs.
19692
19693 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19694
19695         PR bootstrap/48469
19696         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19697         declaration.
19698
19699 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19700
19701         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19702         as an rtx.
19703         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19704
19705 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
19706
19707         PR middle-end/48441
19708         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19709
19710 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19711
19712         * combine.c: Include obstack.h.
19713         (struct insn_link): Define.
19714         (uid_log_links): Adjust type.
19715         (FOR_EACH_LOG_LINK): New macro.
19716         (insn_link_obstack): Declare.
19717         (alloc_insn_link): Define.
19718         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
19719         type of link variables.
19720         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19721         (try_combine, record_promoted_values, distribute_notes): Likewise.
19722         (distribute_links): Likewise.  Tweak prototype.
19723         (clear_log_links): Delete.
19724         (adjust_for_new_dest): Call alloc_insn_link.
19725         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19726
19727 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19728
19729         * gcse.c (modify_mem_list): Convert to an array of VECs.
19730         (canon_modify_mem_list, compute_transp): Tweak formatting.
19731         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
19732         (load_killed_in_block_p): Likewise.
19733         (record_last_mem_set_info): Likewise.
19734         (clear_modify_mem_tables): Likewise.
19735
19736 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19737
19738         PR middle-end/48461
19739         * function.c (emit_use_return_register_into_block): Only define if
19740         HAVE_return.
19741
19742 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
19743
19744         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19745
19746 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * config/rx/rx-opts.h: New.
19749         * config/rx/rx.c (rx_cpu_type): Remove.
19750         (rx_handle_option): Don't assert that global structures are in
19751         use.  Access variables via opts pointer.  Defer most handling of
19752         OPT_mint_register_.  Use error_at.
19753         (rx_option_override): Handle deferred OPT_mint_register_ here.
19754         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19755         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19756         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19757         (rx_cpu_types): New Enum and EnumValue entries.
19758         (mint-register=): Use Defer and use Var accordingly.
19759
19760 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19761
19762         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19763         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19764         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19765         Move these...
19766         (debug_free_queue, debug_nesting, symbol_queue_index):
19767         ...and these...
19768         * dbxout.c: ...to here.  Make static.
19769
19770 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
19771
19772         * gcse.c (modify_pair): Define.  Define a VEC of it.
19773         (canon_modify_mem_list): Convert to an array of VECs.
19774         (free_insn_expr_list_list): Delete.
19775         (clear_modify_mem_tables): Call VEC_free instead.
19776         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19777         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19778         (canon_list_insert, compute_transp): Likewise.
19779
19780 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19781
19782         PR target/43920
19783         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19784         for size.
19785
19786 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19787
19788         PR target/43920
19789         * function.c (emit_use_return_register_into_block): New function.
19790         (thread_prologue_and_epilogue_insns): Use
19791         emit_use_return_register_into_block.
19792
19793 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19794
19795         PR target/43920
19796         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19797         insn.
19798
19799 2011-04-05  Tom de Vries  <tom@codesourcery.com>
19800
19801         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19802
19803 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
19804
19805         * config/arm/arm.md (define_constants for unspec): Replace with
19806         define_c_enum.
19807         (define_constants for unspecv): Replace with define_c_enum.
19808         * config/arm/neon.md (define_constants for unspec): Replace with
19809         define_c_enum.
19810
19811 2011-04-04  Richard Henderson  <rth@redhat.com>
19812
19813         PR bootstrap/48400
19814         * dwarf2out.c (output_line_info): Always emit line info from
19815         at least one section.
19816         (dwarf2out_init): Create text_section_line_info here ...
19817         (set_cur_line_info_table): ... not here.
19818
19819 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19820
19821         PR target/48380
19822         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19823         not called.
19824
19825         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19826
19827 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
19828
19829         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19830         (expr_equiv_p): Remove.
19831         (insert_set_in_table): Look at <dest, src> pair instead of expr.
19832         (hash_scan_set): Update call to insert_set_in_table.
19833         (dump_hash_table): Dump <dest, src> pair.
19834         (lookup_set): Simplify.  Lookup <dest, src> pair.
19835         (compute_transp): Remove, fold heavily simplified code into...
19836         (compute_local_properties): ...here.  Expect COMP and TRANSP
19837         unconditionally.
19838         (find_avail_set): Take set directly from struct expr.
19839         (find_bypass-set): Likewise.
19840         (bypass_block): Likewise.
19841         (cprop_insn): Likewise.  Remove redundant INSN_P test.
19842
19843         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19844         checks on form of COND from find_implicit_sets to here.
19845         (find_implicit_sets): Cleanup control flow. Split critical edges
19846         if it exposes implicit sets.  Allocate/resize implicit_sets as
19847         necessary.
19848         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19849         changed something.  Run df_analyze after find_implicit_sets if any
19850         edges were split.  Do not allocate implicit_sets here.
19851
19852         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19853         (gcse_obstack): Renamed to cprop_obstack.
19854         (GNEW, GNEWVEC, GNEWVAR): Remove.
19855         (gmalloc): Remove.
19856         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19857         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19858         (gcse_alloc): Likewise, and rename to cprop_alloc.
19859         (alloc_gcse_men, free_gcse_mem): Remove.
19860         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19861         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19862         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19863
19864         * cprop.c (oprs_not_set_p): Remove.
19865         (mark_set, mark_clobber): Remove.
19866         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19867         (reg_not_set_p): New function.
19868         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19869         (cprop_insn): Likewise.
19870         (cprop_jump): Use FOR_EACH_EDGE.
19871
19872 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
19873
19874         PR bootstrap/48403
19875         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19876         (rank_for_schedule): Use scheduled_insns vector instead of
19877         last_scheduled_insn.
19878         (ok_for_early_queue_removal): Likewise.
19879         (queue_to_ready): Search forward in nonscheduled_insns_begin if
19880         we have a dbg_cnt.
19881         (choose_ready): Likewise.
19882         (commit_schedule): Use VEC_iterate.
19883         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
19884         a dbg_cnt, use it and ensure the first insn is in the ready list.
19885         (haifa_sched_init): Allocate scheduled_insns.
19886         (sched_extend_ready_list): Don't allocate it; reserve space.
19887         (haifa_sched_finish): Free it.
19888
19889 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19890
19891         * optc-gen.awk: Always remove type from Variable entry before
19892         recording in var_seen.
19893
19894 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
19895
19896         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19897         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19898         call to tidy_fallthru_edges.
19899
19900 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
19901
19902         * doc/options.texi (ToLower): Document.
19903         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19904         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19905         * opts.h (cl_option): Add cl_tolower field.
19906         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19907         arguments with lowercase strings.
19908         * config/rx/rx.opt (mcpu=): Add ToLower.
19909         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19910         argument.
19911
19912 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19913
19914         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19915
19916 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
19917
19918         * config/vax/vax.c: Include reload.h.
19919
19920 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
19921
19922         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19923         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19924         (sparc_preferred_reload_class): New function.
19925
19926 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
19927
19928         PR debug/48401
19929         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19930         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19931
19932 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
19933
19934         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19935         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19936
19937 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
19938
19939         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19940         (ASM_OUTPUT_ALIGNED_BSS): Define.
19941
19942 2011-04-03  Michael Matz  <matz@suse.de>
19943
19944         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19945         and next_slot members.
19946         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19947         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19948         (lto_streamer_cache_append): Declare.
19949         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19950         unsigned index, remove offset parameter, ensure that we append
19951         or update existing entries.
19952         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19953         parameter, update next_slot for append.
19954         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19955         parameter.
19956         (lto_streamer_cache_insert_at): Likewise.
19957         (lto_streamer_cache_append): New function.
19958         (lto_streamer_cache_lookup): Use unsigned index.
19959         (lto_streamer_cache_get): Likewise.
19960         (lto_record_common_node): Don't test tree_node_can_be_shared.
19961         (preload_common_node): Adjust call to lto_streamer_cache_insert.
19962         (lto_streamer_cache_delete): Don't free offsets member.
19963         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19964         (lto_output_string_with_length): Use lto_output_data_stream.
19965         (lto_output_tree_header): Remove ix parameter, don't write it.
19966         (lto_output_builtin_tree): Likewise.
19967         (lto_write_tree): Adjust callers to above, don't track and write
19968         offset, write unsigned index.
19969         (output_unreferenced_globals): Don't emit all global vars.
19970         (write_global_references): Use unsigned indices.
19971         (lto_output_decl_state_refs): Likewise.
19972         (write_symbol): Likewise.
19973         * lto-streamer-in.c (lto_input_chain): Move earlier.
19974         (input_function): Use unsigned index.
19975         (input_alias_pairs): Don't read and then ignore all global vars.
19976         (lto_materialize_tree): Remove ix_p parameter, don't read index,
19977         don't pass it back, use lto_streamer_cache_append.
19978         (lto_register_var_decl_in_symtab): Use unsigned index.
19979         (lto_register_function_decl_in_symtab): Likewise.
19980         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19981         index.
19982         (lto_get_builtin_tree): Don't read index, use
19983         lto_streamer_cache_append.
19984         (lto_read_tree): Adjust call to lto_materialize_tree.
19985
19986         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19987         don't use function calls in arguments to MIN.
19988
19989         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19990         twice.
19991
19992         * gimple.c (gimple_type_leader_entry): Mark deletable.
19993
19994 2011-04-03  Alan Modra  <amodra@gmail.com>
19995
19996         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19997
19998 2011-04-03  Michael Matz  <matz@suse.de>
19999
20000         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20001         an integer.
20002         * tree.h (tree_decl_non_common.vindex): Adjust comment.
20003
20004 2011-04-03  Michael Matz  <matz@suse.de>
20005
20006         * cgraphbuild.c (record_reference): Canonicalize constructor values.
20007         * gimple-fold.c (canonicalize_constructor_val): Accept being called
20008         without function context.
20009         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20010         current_function_decl and cfun.
20011
20012 2011-04-03  Michael Matz  <matz@suse.de>
20013
20014         * tree.c (decl_init_priority_insert): Don't create entry for
20015         default priority.
20016         (decl_fini_priority_insert): Ditto.
20017         (fields_compatible_p, find_compatible_field): Remove.
20018         * tree.h (fields_compatible_p, find_compatible_field): Remove.
20019         * gimple.c (gimple_compare_field_offset): Adjust block comment.
20020
20021 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
20022
20023         * combine.c (try_combine): Remove useless local variable.
20024
20025 2011-04-03  Richard Guenther  <rguenther@suse.de>
20026             Ira Rosen  <ira.rosen@linaro.org>
20027
20028         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20029         non-variable offsets and compare the remaining bases of the two
20030         accesses instead of looking for exact same data-ref.
20031
20032 2011-04-02  Kai Tietz  <ktietz@redhat.com>
20033
20034         PR target/48416
20035         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20036
20037         * i386.c (ix86_is_msabi_thiscall): New helper function.
20038         (ix86_is_type_thiscall): New helper function.
20039         (ix86_comp_type_attributes): Handle thiscall for method-functions
20040         special.
20041         (init_cumulative_args): Likewise.
20042         (find_drap_reg): Likewise.
20043         (ix86_static_chain): Likewise.
20044         (x86_this_parameter): Likewise.
20045         (x86_output_mi_thunk): Likewise.
20046
20047 2011-04-01  Olivier Hainque  <hainque@adacore.com>
20048             Nicolas Setton  <setton@adacore.com>
20049             Eric Botcazou  <ebotcazou@adacore.com>
20050
20051         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20052         (add_gnat_descriptive_type_attribute): New function.
20053         (gen_array_type_die): Call it.
20054         (gen_enumeration_type_die): Likewise.
20055         (gen_struct_or_union_type_die): Likewise.
20056         (modified_type_die): Likewise.
20057         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20058         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20059         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20060
20061 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20062
20063         PR bootstrap/48148
20064         * dwarf2out.c (resolve_addr): Don't call force_decl_die
20065         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20066
20067         Revert:
20068         2011-03-17  Richard Guenther  <rguenther@suse.de>
20069
20070         PR bootstrap/48148
20071         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20072         origin for decls in other ltrans units.
20073         (input_varpool_node): Likewise.
20074
20075 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20076
20077         PR middle-end/48335
20078         * expr.c (expand_assignment): Handle all possibilities
20079         if TO_RTX is CONCAT.
20080         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20081         (store_split_bit_field): If SUBREG_REG (op0) or
20082         op0 itself has smaller mode than word, return it
20083         for offset 0 and const0_rtx for out-of-bounds stores.
20084         If word is const0_rtx, skip it.
20085
20086 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
20087
20088         * config/h8300/h8300.c (print_operand_address): Rename to...
20089         (h8300_print_operand_address): ...this. Make static. Adjust comments.
20090         Call h8300_print_operand and h8300_print_operand_address instead of
20091         print_operand and print_operand_address. Declare.
20092         (print_operand): Renake to...
20093         (h8300_print_operand): ...this. Make static. Adjust comments.
20094         Call h8300_print_operand instead of print_operand. Declare.
20095         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20096         (h8300_register_move_cost): Likewise.
20097         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20098         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20099         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20100         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20101         * config/h8300/h8300-protos.h (print_operand): Delete.
20102         (print_operand_address): Delete.
20103
20104 2011-04-01  Richard Henderson  <rth@redhat.com>
20105
20106         PR 48400
20107         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20108         in strict mode before dwarf4.  Re-order tests to early out
20109         before switching sections.
20110
20111 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
20112
20113         * config/h8300/constraints.md: New file.
20114         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
20115         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20116         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20117         * config/h8300/predicates.md (bit_operand): Likewise.
20118         (incdec_operand): Use satisfies_constraint_M and
20119         satisfies_constraint_O.  Don't use C code block.
20120         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20121         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20122         (compute_mov_length): Use satisfies_constraint_G.
20123         (fix_bit_operand): Use satisfies_constraint_U.
20124         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20125         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20126         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20127         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20128         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20129         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20130         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20131         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20132         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20133         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20134         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20135         (EXTRA_MEMORY_CONSTRAINT): Delete.
20136
20137 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
20138             Michael Meissner  <meissner@linux.vnet.ibm.com>
20139
20140         PR target/48262
20141         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20142         operands, as per the specifications.
20143
20144         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20145         (vec_extract_evenv4sf): Ditto.
20146         (vec_extract_evenv8hi): Ditto.
20147         (vec_extract_evenv16qi): Ditto.
20148         (vec_extract_oddv4si): Ditto.
20149
20150 2011-03-31  Mark Wielaard  <mjw@redhat.com>
20151
20152         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20153         high_pc attribute if the CU has no associated code. Only output
20154         DW_AT_entry_pc for CU if not generating strict dwarf and
20155         dwarf_version < 4.
20156
20157 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
20158
20159         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20160         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20161         out of ...
20162         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20163         * final.c (final_start_function): Call the new function rather
20164         than using a NULL argument for dwarf2out_frame_debug.
20165
20166         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20167         that contains the prologue.
20168
20169         * haifa-sched.c (queue_insn): New arg REASON.  All callers
20170         changed.  Print it in debugging output.
20171
20172         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20173
20174         * sched-ebb.c (begin_schedule_ready): Remove second argument.
20175         Split most of the code into...
20176         (begin_move_insn): ... here.  New function.
20177         (ebb_sched_info): Add a pointer to it.
20178         * haifa-sched.c (scheduled_insns): New static variable.
20179         (sched_extend_ready_list): Allocate it.
20180         (schedule_block): Use it to record the order of scheduled insns.
20181         Perform RTL changes to move insns only after all scheduling
20182         decisions have been made.
20183         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20184         begin_move_insn field.
20185         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20186         * sched-int.h (struct haifa_sched_info): Remove second argument
20187         from begin_schedule_ready hook.  Add new member begin_move_insn.
20188         * sched-rgn.c (begin_schedule_ready): Remove second argument.
20189         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20190
20191         * haifa-sched.c (prune_ready_list): New function, broken out of
20192         schedule_block.
20193         (schedule_block): Use it.
20194
20195 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20196
20197         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20198
20199 2011-04-01  Kai Tietz  <ktietz@redhat.com>
20200
20201         * config.gcc (*-*-mingw*): Allow as option the
20202         posix threading model.
20203         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
20204         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20205         definition.
20206         (CPP_SPEC): Add pthread/no-pthread handling.
20207         (LIB_SPEC): Likewise.
20208         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20209         (LIB_SPEC): Likewise.
20210         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20211         flag to pass -pthread option for shared libgcc build.
20212         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20213         for shared libgcc build.
20214         * config/i386/t-mingw-pthread: New file.
20215         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20216         New define to enable use of library pthread by default.
20217         * config/i386/mingw.opt (pthread): New driver option.
20218         (no-pthread): New driver option.
20219         * config/i386/cygming.opt: Make sure trailing empty line is retained.
20220         * config/i386/mingw-w64.opt: Likewise.
20221
20222 2011-04-01  Gary Funck  <gary@intrepid.com>
20223
20224         * c-decl.c (grokdeclarator): Fix formatting.
20225
20226 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20227
20228         * expr.c (emit_block_move_via_movmem): Use n_generator_args
20229         instead of n_operands.
20230         (set_storage_via_setmem): Likewise.
20231         * optabs.c (maybe_gen_insn): Likewise.
20232         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20233         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20234         (mips_expand_builtin_direct): Likewise.
20235         * config/spu/spu.c (expand_builtin_args): Likewise.
20236
20237 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20238
20239         * recog.h (insn_data_d): Add n_generator_args.
20240         * genoutput.c (data): Likewise.
20241         (output_insn_data): Print it.
20242         (max_opno, num_dups): Delete.
20243         (scan_operands): Just fill in "d->operand[...]".
20244         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20245
20246 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
20247
20248         * gensupport.h (pattern_stats): New structure.
20249         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20250         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20251         (max_operand_1, max_operand_vec): Delete.
20252         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20253
20254 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
20255
20256         * emit-rtl.c (emit_pattern_after_setloc): New function.
20257         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20258         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20259         (emit_pattern_after): New function.
20260         (emit_insn_after, emit_jump_insn_after): Call it.
20261         (emit_call_insn_after, emit_debug_insn_after): Likewise.
20262         (emit_pattern_before_setloc): New function.
20263         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20264         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20265         Likewise.
20266         (emit_pattern_before): New function.
20267         (emit_insn_before, emit_jump_insn_before): Call it.
20268         (emit_call_insn_before, emit_debug_insn_before): Likewise.
20269
20270 2011-03-31  Richard Henderson  <rth@redhat.com>
20271
20272         * dwarf2out.c (dw_separate_line_info_ref): Remove.
20273         (dw_separate_line_info_entry): Remove.
20274         (enum dw_line_info_opcode): New.
20275         (dw_line_info_entry): Use it.
20276         (dw_line_info_table, dw_line_info_table_p): New.
20277         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20278         (line_info_table, line_info_label_num): Remove.
20279         (line_info_table_in_use): Remove.
20280         (separate_line_info_table): Remove.
20281         (separate_line_info_table_allocated): Remove.
20282         (separate_line_info_table_in_use): Remove.
20283         (LINE_INFO_TABLE_INCREMENT): Remove.
20284         (line_info_label_num): New.
20285         (cur_line_info_table): New.
20286         (text_section_line_info, cold_text_section_line_info): New.
20287         (separate_line_info): New.
20288         (SEPARATE_LINE_CODE_LABEL): Remove.
20289         (print_dwarf_line_table): Remove.
20290         (debug_dwarf): Don't dump it.
20291         (output_one_line_info_table): New.
20292         (output_line_info): Use it.
20293         (new_line_info_table): New.
20294         (set_cur_line_info_table): New.
20295         (dwarf2out_switch_text_section): Use it.
20296         (dwarf2out_begin_function): Likewise.
20297         (push_dw_line_info_entry): New.
20298         (dwarf2out_source_line): Rewrite for new line info tables.
20299         (dwarf2out_init): Remove dead initailizations.
20300
20301 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20302
20303         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
20304         various flags.
20305         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20306         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20307         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20308         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20309         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20310         * opt-functions.awk (flag_init, switch_bit_fields): New.
20311         (switch_flags): Don't handle flags moved to bit-fields.  Don't
20312         generate CL_MISSING_OK or CL_SAVE.
20313         * optc-gen.awk: Update to generate bit-field output as well as
20314         flags field.
20315         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20316         bit-field instead of CL_REJECT_DRIVER flag.
20317         * opts-common.c (generate_canonical_option,
20318         decode_cmdline_option): Use bit-fields instead of CL_* flags.
20319         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20320         instead of CL_REJECT_NEGATIVE flag.
20321         * toplev.c (print_switch_values): Use cl_report bit-field instead
20322         of CL_REPORT flag.
20323
20324 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20325
20326         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20327         a zero minimum index only if it is redundant.
20328
20329 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
20330
20331         PR rtl-optimization/48381
20332         * ira-color.c (assign_hard_reg): Use hard reg set intersection
20333         instead of ira_class_hard_reg_index for calculating conflicting
20334         hard registers.
20335
20336 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
20337
20338         * cprop.c: Clean up hash table building.
20339         (reg_avail_info): Remove.
20340         (oprs_available_p): Remove.
20341         (record_last_reg_set_info): Remove.
20342         (record_last_set_info): Remove.
20343         (reg_available_p): New function.
20344         (gcse_constant_p): Do not treat unfolded conditions as constants.
20345         (make_set_regs_unavailable): New function.
20346         (hash_scan_set): Simplify with new reg_available_p.
20347         (compute_hash_table_work): Traverse insns stream only once.
20348         Do not compute reg_avail_info. Traverse insns in reverse order.
20349         Record implicit sets after recording explicit sets from the block.
20350
20351 2011-03-31  Michael Matz  <matz@suse.de>
20352
20353         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20354
20355 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
20356
20357         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20358         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20359         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20360         (h8300_mode_dependent_address_p): New function.
20361         (h8300_get_index): Make static.
20362
20363 2011-03-31  Jeff Law  <law@redhat.com>
20364
20365         * reload1.c (elimination_effects): Fix typo in recent change.
20366
20367         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20368         typo potentially leading to null pointer dereference.
20369
20370         * caller-save.c (new_saved_hard_reg): Eliminate return value.
20371         (setup_save_areas): Corresponding changes to avoid useless
20372         assignments.
20373
20374         * jump.c (reversed_comparison_code_parts): Avoid successive return
20375         statements when REVERSE_CONDITION is defined.
20376
20377         * expr.c (expand_assignment): Avoid useless assignments.
20378         (expand_expr_real_1): Likewise.
20379         (expand_expr_real_2): Avoid useless statements.
20380
20381         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20382
20383         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20384
20385         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20386         statements.
20387
20388         * stmt.c (expand_expr_stmt): Avoid useless assignment.
20389
20390 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
20391
20392         PR target/47109
20393         * doc/tm.texi.in (TARGET_VERSION): Remove.
20394         * doc/tm.texi: Regenerate.
20395         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20396         * collect2.c (main): Don't use TARGET_VERSION.
20397         * mips-tdump.c (main): Don't use TARGET_VERSION.
20398         * mips-tfile.c (main): Don't use TARGET_VERSION.
20399         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20400         * config/rs6000/vxworksae.h: Remove.
20401         * config/alpha/alpha.h (TARGET_VERSION): Remove.
20402         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20403         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20404         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20405         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20406         * config/arm/arm.h (TARGET_VERSION): Remove.
20407         * config/arm/coff.h (TARGET_VERSION): Remove.
20408         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20409         * config/arm/elf.h (TARGET_VERSION): Remove.
20410         * config/arm/freebsd.h (TARGET_VERSION): Remove.
20411         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20412         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20413         * config/arm/pe.h (TARGET_VERSION): Remove.
20414         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20415         * config/arm/semi.h (TARGET_VERSION): Remove.
20416         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20417         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20418         * config/arm/vxworks.h (TARGET_VERSION): Remove.
20419         * config/avr/avr.h (TARGET_VERSION): Remove.
20420         * config/bfin/bfin.h (TARGET_VERSION): Remove.
20421         * config/fr30/fr30.h (TARGET_VERSION): Remove.
20422         * config/frv/frv.h (TARGET_VERSION): Remove.
20423         * config/h8300/h8300.h (TARGET_VERSION): Remove.
20424         * config/i386/cygwin.h (TARGET_VERSION): Remove.
20425         * config/i386/darwin.h (TARGET_VERSION): Remove.
20426         * config/i386/darwin64.h (TARGET_VERSION): Remove.
20427         * config/i386/djgpp.h (TARGET_VERSION): Remove.
20428         * config/i386/freebsd.h (TARGET_VERSION): Remove.
20429         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20430         * config/i386/gnu.h (TARGET_VERSION): Remove.
20431         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20432         * config/i386/i386elf.h (TARGET_VERSION): Remove.
20433         * config/i386/linux.h (TARGET_VERSION): Remove.
20434         * config/i386/linux64.h (TARGET_VERSION): Remove.
20435         * config/i386/lynx.h (TARGET_VERSION): Remove.
20436         * config/i386/mingw32.h (TARGET_VERSION): Remove.
20437         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20438         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20439         * config/i386/netware.h (TARGET_VERSION): Remove.
20440         * config/i386/nto.h (TARGET_VERSION): Remove.
20441         * config/i386/openbsd.h (TARGET_VERSION): Remove.
20442         * config/i386/vxworks.h (TARGET_VERSION): Remove.
20443         * config/ia64/elf.h (TARGET_VERSION): Remove.
20444         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20445         * config/ia64/hpux.h (TARGET_VERSION): Remove.
20446         * config/ia64/linux.h (TARGET_VERSION): Remove.
20447         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20448         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20449         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20450         * config/lm32/lm32.h (TARGET_VERSION): Remove.
20451         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20452         * config/m32c/m32c.h (TARGET_VERSION): Remove.
20453         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20454         * config/m32r/m32r.h (TARGET_VERSION): Remove.
20455         * config/m68k/linux.h (TARGET_VERSION): Remove.
20456         * config/m68k/m68k.h (TARGET_VERSION): Remove.
20457         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20458         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20459         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20460         * config/mep/mep.h (TARGET_VERSION): Remove.
20461         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20462         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20463         * config/mips/iris6.h (MACHINE_TYPE): Remove.
20464         * config/mips/linux.h (TARGET_VERSION): Remove.
20465         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20466         * config/mips/vxworks.h (TARGET_VERSION): Remove.
20467         * config/mmix/mmix.h (TARGET_VERSION): Remove.
20468         * config/mn10300/linux.h (TARGET_VERSION): Remove.
20469         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20470         * config/pa/pa.h (TARGET_VERSION): Remove.
20471         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20472         * config/picochip/picochip.h (TARGET_VERSION): Remove.
20473         * config/rs6000/aix.h (TARGET_VERSION): Remove.
20474         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20475         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20476         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20477         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20478         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20479         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20480         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20481         * config/rs6000/linux.h (TARGET_VERSION): Remove.
20482         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20483         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20484         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20485         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20486         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20487         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20488         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20489         * config/s390/linux.h (TARGET_VERSION): Remove.
20490         * config/s390/s390.h (TARGET_VERSION): Remove.
20491         * config/s390/tpf.h (TARGET_VERSION): Remove.
20492         * config/score/score.h (TARGET_VERSION): Remove.
20493         * config/sh/linux.h (TARGET_VERSION): Remove.
20494         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20495         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20496         * config/sh/sh.h (TARGET_VERSION): Remove.
20497         * config/sh/sh64.h (TARGET_VERSION): Remove.
20498         * config/sh/superh.h (TARGET_VERSION): Remove.
20499         * config/sh/vxworks.h (TARGET_VERSION): Remove.
20500         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20501         * config/sparc/linux.h (TARGET_VERSION): Remove.
20502         * config/sparc/linux64.h (TARGET_VERSION): Remove.
20503         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20504         TARGET_NAME32, TARGET_NAME): Remove.
20505         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20506         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20507         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20508         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20509         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20510         * config/spu/spu.h (TARGET_VERSION): Remove.
20511         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20512         * config/v850/v850.h (TARGET_VERSION): Remove.
20513         * config/vax/linux.h (TARGET_VERSION): Remove.
20514         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20515         * config/xtensa/elf.h (TARGET_VERSION): Remove.
20516         * config/xtensa/linux.h (TARGET_VERSION): Remove.
20517
20518 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
20519
20520         PR target/48142
20521         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20522         frame-related from frame-unrelated adjustments to the stack pointer.
20523
20524 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
20525
20526         * common.opt (fdebug-types-section): Move earlier.
20527         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20528
20529 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
20530
20531         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20532         var.
20533
20534 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
20535
20536         * tree.h (CASE_CHAIN): Define.
20537         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20538         (gimple_redirect_edge_and_branch): Likewise.
20539
20540 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20541
20542         PR middle-end/48367
20543         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20544         calculation.
20545
20546 2011-03-30  Jeff Law  <law@redhat.com>
20547
20548         * PR bootstrap/48371
20549         * reload1.c (reload): Fix botch in last change.
20550
20551         * reload.h (struct reload): Fix typo introduced in last change.
20552
20553 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20554
20555         * config/arm/arm.opt (mhard-float, msoft-float): Mark
20556         Undocumented.  Remove help text.
20557         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20558         -mhard-float.
20559
20560 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20561
20562         * doc/options.texi (NegativeAlias): Document.
20563         (Alias): Mention NegativeAlias.
20564         * opt-functions.awk: Handle NegativeAlias.
20565         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20566         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20567         * opts.h (CL_NEGATIVE_ALIAS): Define.
20568         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20569         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20570         OPT_mspe_.
20571         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20572         Alias entries.
20573         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20574         mno-spe and mno-isel instead of mspe=no and -misel=no.
20575
20576 2011-03-29  Mark Wielaard  <mjw@redhat.com>
20577
20578         * common.opt (fdebug-types-section): New flag.
20579         * doc/invoke.texi: Document new -fno-debug-types-section flag.
20580         * dwarf2out.c (use_debug_types): New define.
20581         (struct die_struct): Mark die_id with GTY desc use_debug_types.
20582         (print_die): Guard output of type unit signatures using
20583         use_debug_types.
20584         (build_abbrev_table): Replace assert of dwarf_version >= 4
20585         with assert on use_debug_types.
20586         (size_of_die): Likewise.
20587         (unmark_dies): Likewise.
20588         (value_format): Decide AT_ref_external form on use_debug_types.
20589         (output_die): Replace dwarf_version version check guard with
20590         use_debug_types where appropriate.
20591         (modified_type_die): Likewise.
20592         (gen_reference_type_die): Likewise.
20593         (dwarf2out_start_source_file): Likewise.
20594         (dwarf2out_end_source_file): Likewise.
20595         (prune_unused_types_walk_attribs): Likewise.
20596         (dwarf2out_finish): Likewise.
20597
20598 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
20599
20600         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20601
20602 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20603
20604         PR rtl-optimization/48332
20605         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20606         mode of input operand N and modeN to its actual mode.
20607
20608 2011-03-30  Jeff Law  <law@redhat.com>
20609
20610         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20611         define accessor macro.
20612         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20613         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20614         (reg_equiv_init): Likewise.
20615         (reg_equivs_size): New variable.
20616         (reg_equiv_init_size): Remove.
20617         (allocate_initial_values): Move prototype to here from....
20618         * integrate.h (allocate_initial_values): Remove prototype.
20619         * integrate.c: Include reload.h.
20620         (allocate_initial_values): Corresponding changes.
20621         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20622         (fix_reg_equiv_init, no_equiv): Corresponding changes.
20623         (update_equiv_regs): Corresponding changes.
20624         (ira): Corresponding changes.
20625         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20626         (push_secondary_reload): Corresponding changes.
20627         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20628         (make_memloc, find_reloads_address): Corresponding changes.
20629         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20630         (find_reloads_address_1): Corresponding changes.
20631         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20632         (refers_to_regno_for_reload_p): Corresponding changes.
20633         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20634         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20635         * reload1.c: Include ggc.h.
20636         (grow_reg_equivs): New function.
20637         (replace_pseudos_in, reload): Corresponding changes.
20638         (calculate_needs_all_insns, alter_regs): Corresponding changes.
20639         (eliminate_regs_1, elimination_effects): Corresponding changes.
20640         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20641         (delete_output_reload): Likewise.
20642         * caller-save.c (mark_referenced_regs): Corresponding changes.
20643         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20644         * frv/predicates.md (frv_load_operand): Corresponding changes.
20645         * microblaze/microblaze.c (double_memory_operand): Corresponding
20646         changes.
20647         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20648         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20649         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20650         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20651         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20652         changes.
20653         * pa/pa.c (emit_move_sequence): Corresponding changes.
20654         * vax/vax.c (nonindexed_address_p): Corresponding changes.
20655
20656 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20657
20658         PR target/47551
20659         * config/arm/arm.c (coproc_secondary_reload_class): Handle
20660         structure modes.  Don't check neon_vector_mem_operand for
20661         vector or structure modes.
20662
20663 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
20664             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20665
20666         PR target/43590
20667         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20668         operand 1 and reshuffle the operands to match.
20669         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20670
20671 2011-03-30  Christian Schüler  <cschueler@gmx.de>
20672
20673         PR driver/48208
20674         * config/c.opt (F): Added 'Driver' to -F option.
20675
20676         PR driver/48260
20677         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20678           handler function.
20679         * config/darwin.opt: Added '-arch' option.
20680
20681 2011-03-30  Nick Clifton  <nickc@redhat.com>
20682
20683         * config/rx/rx.md: Add peepholes and patterns to combine
20684         extending loads and simple arithmetic instructions.
20685         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20686         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20687         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20688         modes to use pre-decrement and post-increment addressing.
20689         (rx_is_restricted_memory_address): Add range checking of REG+INT
20690         addresses.
20691         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
20692         (rx_memory_move_cost): Adjust cost of stores.
20693         (rx_adjust_insn_length): New function.
20694
20695 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
20696
20697         PR c/48305
20698         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20699         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20700         matching arg00/arg01 types.
20701
20702 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
20703
20704         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20705         last_location to UNKNOWN_LOCATION.
20706
20707 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
20708
20709         PR target/48349
20710         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20711         FLOAT_SSE_REGS.
20712
20713 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
20714             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20715
20716         PR bootstrap/48337
20717         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20718         Init(PROCESSOR_V7).
20719         (sparc_cpu): Likewise.
20720         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20721         PROCESSOR_V7.
20722
20723 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20724
20725         PR target/48336
20726         PR middle-end/48342
20727         PR rtl-optimization/48345
20728         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20729         hard regs for given mode from profitable regs when doing secondary
20730         allocation.
20731
20732 2011-03-29  Jeff Law  <law@redhat.com>
20733
20734         PR bootstrap/48327
20735         * tree-ssa-threadupdate.c (struct redirection_data): Remove
20736         do_not_duplicate field.
20737         (lookup_redirection_data): Corresponding changes.
20738         (create_duplicates): Always create a template block.
20739         (redirect_edges): Remove code which reused the original block
20740         when it was going to become unreachable code.
20741         (thread_block): Don't set do_not_duplicate field.
20742
20743 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
20744
20745         * lto-opts.c (register_user_option_p, lto_register_user_option):
20746         Make type argument unsigned.
20747         * lto-streamer.h (lto_register_user_option): Make type argument
20748         unsigned.
20749         * opth-gen.awk: Make CL_* macros unsigned.
20750         * opts-common.c (find_opt): Make lang_mask argument unsigned.
20751         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20752         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20753         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20754         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20755         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20756         (find_opt): Make lang_mask argument unsigned.
20757
20758 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20759
20760         PR rtl-optimization/48331
20761         PR rtl-optimization/48334
20762         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20763         for any used algorithm.
20764
20765 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
20766
20767         * ira-conflicts.c (build_object_conflicts): Add unused attribute
20768         to parent_max.
20769
20770 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
20771
20772         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20773         (alpha_option_override): Don't set alpha_sr_alias_set.
20774         (emit_frame_store_1): Use gen_frame_mem rather than calling
20775         set_mem_alias_set.
20776         (alpha_expand_epilogue): Ditto.
20777
20778 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
20779
20780         PR tree-optimization/48290
20781         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20782         vectorization, check that relevant phis in the basic block after
20783         the inner loop are really inner loop's exit phis.
20784
20785 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
20786
20787         PR debug/48190
20788         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20789         (cached_dw_loc_list_def): New structure.
20790         (cached_dw_loc_list): New typedef.
20791         (cached_dw_loc_list_table): New variable.
20792         (cached_dw_loc_list_table_hash): New function.
20793         (cached_dw_loc_list_table_eq): Likewise.
20794         (add_location_or_const_value_attribute): Take a bool cache_p.
20795         Cache the list when the parameter is true.
20796         (gen_formal_parameter_die): Update caller.
20797         (gen_variable_die): Likewise.
20798         (dwarf2out_finish): Likewise.
20799         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20800         while generating debug info for the decl.
20801         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20802         (dwarf2out_init): Initialize cached_dw_loc_list_table.
20803         (resolve_addr): Cache the result of resolving a chain of
20804         location lists.
20805
20806 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
20807
20808         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20809         conflict object hard regset nodes have intersecting hard reg sets.
20810
20811         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20812         after regstat_init_n_sets_and_refs.
20813
20814         * ira.c: Add more comments at the top.
20815         (setup_stack_reg_pressure_class, setup_pressure_classes):
20816         Add comments how we compute the register pressure classes.
20817         (setup_allocno_and_important_classes): Add more comments.
20818         (setup_class_translate_array, reorder_important_classes)
20819         (setup_reg_class_relations): Add comments.
20820
20821         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
20822         start of the file.
20823
20824         * ira-color.c: Add 2011 to the Copyright line.
20825         (assign_hard_reg):  Add more comments.
20826         (improve_allocation): Ditto.
20827
20828         * ira-costs.c: Add 2011 to the Copyright line.
20829         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20830         comments.
20831         (setup_regno_cost_classes_by_mode): Ditto.
20832
20833         Initial patches from ira-improv branch:
20834
20835         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20836
20837         * ira-build.c (ira_create_object): Remove initialization of
20838         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
20839         (ira_create_allocno): Remove initialization of
20840         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20841         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20842         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20843         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20844         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20845         Initialize ALLOCNO_ADD_DATA.
20846         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20847         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20848         ALLOCNO_REG.
20849         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
20850         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20851
20852         * ira.c (ira_reallocate): Remove.
20853         (setup_pressure_classes): Call
20854         ira_init_register_move_cost_if_necessary.  Use
20855         ira_register_move_cost instead of ira_get_register_move_cost.
20856         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20857         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20858
20859         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20860         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20861         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20862         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20863         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20864         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20865         Fix formatting.
20866         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20867         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20868         (struct allocno_color_data): New.
20869         (allocno_color_data_t): New typedef.
20870         (allocno_color_data): New definition.
20871         (ALLOCNO_COLOR_DATA): New macro.
20872         (struct object_color_data): New.
20873         (object_color_data_t): New typedef.
20874         (object_color_data): New definition.
20875         (OBJECT_COLOR_DATA): New macro.
20876         (update_copy_costs, calculate_allocno_spill_cost): Call
20877         ira_init_register_move_cost_if_necessary.  Use
20878         ira_register_move_cost instead of ira_get_register_move_cost.
20879         (move_spill_restore, update_curr_costs): Ditto.
20880         (allocno_spill_priority): Make it inline.
20881         (color_pass): Allocate and free allocno_color_dat and object_color_data.
20882         (struct coalesce_data, coalesce_data_t): New.
20883         (allocno_coalesce_data): New definition.
20884         (ALLOCNO_COALESCE_DATA): New macro.
20885         (merge_allocnos, coalesced_allocno_conflict_p): Use
20886         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20887         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20888         (coalesce_allocnos): Ditto.
20889         (setup_coalesced_allocno_costs_and_nums): Ditto.
20890         (collect_spilled_coalesced_allocnos): Ditto.
20891         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20892         (setup_slot_coalesced_allocno_live_ranges): Ditto.
20893         (coalesce_spill_slots): Ditto.
20894         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
20895         free allocno_coalesce_data.
20896
20897         * ira-conflicts.c: Fix formatting.
20898         (process_regs_for_copy): Call
20899         ira_init_register_move_cost_if_necessary.  Use
20900         ira_register_move_cost instead of ira_get_register_move_cost.
20901         (build_object_conflicts): Optimize.
20902
20903         * ira-costs.c (record_reg_classes): Optimize.  Call
20904         ira_init_register_move_cost_if_necessary.  Use
20905         ira_register_move_cost, ira_may_move_in_cost, and
20906         ira_may_move_out_cost instead of ira_get_register_move_cost and
20907         ira_get_may_move_cost.
20908         (record_address_regs): Ditto.
20909         (scan_one_insn): Optimize.
20910         (find_costs_and_classes): Optimize.
20911         (process_bb_node_for_hard_reg_moves): Call
20912         ira_init_register_move_cost_if_necessary.  Use
20913         ira_register_move_cost instead of ira_get_register_move_cost.
20914
20915         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20916         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20917         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20918         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20919         definitions.
20920         (ira_initiate_emit_data, ira_finish_emit_data)
20921         (create_new_allocno): New functions.
20922         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20923         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20924         Use ira_register_move_cost instead of ira_get_register_move_cost.
20925
20926         * ira-int.h: Fix some comments.
20927         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20928         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20929         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20930         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
20931         add_data.
20932         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
20933         bitfield after mode.  Make hard_regno a short int.  Make
20934         hard_regno short.  Remove first_coalesced_allocno and
20935         next_coalesced_allocno.  Move mem_optimized_dest_p,
20936         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20937         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
20938         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20939         temp, colorable_p.  Add new member add_data.
20940         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20941         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20942         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20943         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20944         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20945         (ALLOCNO_ADD_DATA): New macro.
20946         (ira_emit_data_t): New typedef.
20947         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
20948         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20949         from struct ira_allocno.
20950         (ALLOCNO_EMIT_DATA): New macro.
20951         (ira_allocno_emit_data, allocno_emit_reg): New.
20952         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20953         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20954         (OBJECT_ADD_DATA): New macro.
20955         (ira_reallocate): Remove.
20956         (ira_initiate_emit_data, ira_finish_emit_data): New.
20957         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20958         (ira_init_register_move_cost_if_necessary): New.
20959         (ira_object_conflict_iter_next): Merge into
20960         ira_object_conflict_iter_cond.
20961         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20962
20963         * ira-live.c (process_single_reg_class_operands): Call
20964         ira_init_register_move_cost_if_necessary.  Use
20965         ira_register_move_cost instead of ira_get_register_move_cost.
20966
20967         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
20968
20969         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20970
20971         * ira-costs.c: Fix formatting.
20972         (cost_classes, cost_classes_num): Remove.
20973         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20974         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20975         (cost_classes_del, cost_classes_htab): New.
20976         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20977         (initiate_regno_cost_classes, setup_cost_classes): New.
20978         (setup_regno_cost_classes_by_aclass): New.
20979         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20980         (record_reg_classes): Use regno_cost_classes instead of
20981         cost_classes.  Move checking opposite operand up.
20982         (record_address_regs): Use regno_cost_classes
20983         instead of cost_classes.
20984         (scan_one_insn): Ditto.  Use always general register.
20985         (print_allocno_costs): Use regno_cost_classes instead of
20986         cost_classes.
20987         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
20988         (find_costs_and_classes): Set up cost classes for each registers.
20989         Use also their mode for this.  Use regno_cost_classes instead of
20990         cost_classes.
20991         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20992         cost_classes.
20993         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20994         (ira_costs, ira_set_pseudo_classes): Call
20995         initiate_regno_cost_classes and finish_regno_cost_classes.
20996
20997         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20998
20999         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21000
21001         * target.def (ira_cover_classes): Remove.
21002
21003         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21004
21005         * doc/tm.texi.in: Ditto.
21006
21007         * ira-conflicts.c: Remove mentioning cover classes from the file.
21008         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
21009         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
21010
21011         * targhooks.c (default_ira_cover_classes): Remove.
21012
21013         * targhooks.h (default_ira_cover_classes): Ditto.
21014
21015         * haifa-sched.c: Remove mentioning cover classes from the file.
21016         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21017         ira_pressure_classes and ira_pressure_classes_num instead of
21018         ira_reg_class_cover_size and ira_reg_class_cover.  Use
21019         sched_regno_pressure_class instead of sched_regno_cover_class.
21020         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21021         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21022
21023         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
21024         classes from the file.
21025         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21026         (struct object_hard_regs, struct object_hard_regs_node): New.
21027         (struct ira_object): New members profitable_hard_regs,
21028         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21029         (struct ira_allocno): Rename cover_class to aclass.  Rename
21030         cover_class_cost and updated_cover_class_cost to class_cost and
21031         updated_class_cost.  Remove splay_removed_p and
21032         left_conflict_size.  Add new members colorable_p.
21033         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21034         (ALLOCNO_COLORABLE_P): New macro.
21035         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21036         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21037         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21038         (OBJECT_...): Rename parameter C to O.
21039         (OBJECT_PROFITABLE_HARD_REGS): New macro.
21040         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21041         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21042         (struct target_ira_int): New members x_ira_max_memory_move_cost,
21043         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21044         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21045         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21046         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
21047         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
21048         x_ira_reg_class_subunion.
21049         (ira_max_memory_move_cost, ira_max_register_move_cost)
21050         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21051         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21052         (ira_important_class_nums, ira_reg_class_superunion): New macros.
21053         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21054         (ira_reg_class_union): Rename to ira_reg_class_subunion.
21055         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21056         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21057         (ira_tune_allocno_costs_and_cover_classes): Rename to
21058         ira_tune_allocno_costs.
21059         (ira_debug_hard_regs_forest): New.
21060         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21061         (ira_object_conflict_iter_next): Fix comments.
21062         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21063         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21064         cover_class to aclass.
21065         (ira_allocate_and_accumulate_costs): Ditto.
21066         (ira_allocate_and_set_or_copy_costs): Ditto.
21067
21068         * opts.c (decode_options): Remove ira_cover_class check.
21069
21070         * ira-color.c: Remove mentioning cover classes from the file.  Use
21071         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21072         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21073         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21074         (splay-tree.h): Remove include.
21075         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21076         before copy_freq_compare_func.
21077         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21078         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21079         New definitions.
21080         (hard_regs_roots, hard_regs_node_vec): Ditto.
21081         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21082         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21083         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21084         (create_new_object_hard_regs_node): Ditto.
21085         (add_new_object_hard_regs_node_to_forest): Ditto.
21086         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21087         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21088         Ditto.
21089         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21090         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21091         (remove_unused_object_hard_regs_nodes): Ditto.
21092         (enumerate_object_hard_regs_nodes): Ditto.
21093         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21094         (object_hard_regs_subnode_t): Ditto.
21095         (struct object_hard_regs_subnode): Ditto.
21096         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21097         (setup_object_hard_regs_subnode_index): Ditto.
21098         (get_object_hard_regs_subnodes_num): Ditto.
21099         (form_object_hard_regs_nodes_forest): Ditto.
21100         (finish_object_hard_regs_nodes_tree): Ditto.
21101         (finish_object_hard_regs_nodes_forest): Ditto.
21102         (allocnos_have_intersected_live_ranges_p): Rename to
21103         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21104         (pseudos_have_intersected_live_ranges_p): Rename to
21105         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
21106         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21107         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21108         (update_copy_costs): Remove assert.  Skip cost update if the hard
21109         reg does not belong the class.
21110         (assign_hard_reg): Process only profitable hard regs.
21111         (uncolorable_allocnos_num): Make it scalar.
21112         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21113         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21114         and ira_reg_class_max_nregs.
21115         (bucket_allocno_compare_func): Check frequency first.
21116         (sort_bucket): Add compare function as a parameter.
21117         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21118         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21119         (push_allocno_to_stack): Rewrite for checking new allocno
21120         colorability.
21121         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
21122         (push_only_colorable): Pass new parameter to sort_bucket.
21123         (push_allocno_to_spill): Remove.
21124         (allocno_spill_priority_compare): Make it inline and rewrite.
21125         (splay_tree_allocate, splay_tree_free): Remove.
21126         (allocno_spill_sort_compare): New function.
21127         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
21128         build and use splay tree.  Choose first allocno in uncolorable
21129         allocno bucket to spill.  Remove setting spill cost.
21130         (all_conflicting_hard_regs): Remove.
21131         (setup_allocno_available_regs_num): Check only profitable hard
21132         regs.  Print info about hard regs nodes.
21133         (setup_allocno_left_conflicts_size): Remove.
21134         (put_allocno_into_bucket): Don't call
21135         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
21136         (improve_allocation): New.
21137         (color_allocnos): Call setup_profitable_hard_regs,
21138         form_object_hard_regs_nodes_forest, improve_allocation,
21139         finish_object_hard_regs_nodes_forest.  Setup spill cost.
21140         (print_loop_title): Use pressure classes.
21141         (color_allocnso): Ditto.
21142         (do_coloring): Remove allocation and freeing splay_tree_node_pool
21143         and allocnos_for_spilling.
21144         (ira_sort_regnos_for_alter_reg): Don't setup members
21145         {first,next}_coalesced_allocno.
21146         (color): Remove allocating and freeing removed_splay_allocno_vec.
21147         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21148         prohibited_class_mode_regs.
21149
21150         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
21151         formatting.
21152         (update_allocno_pressure_excess_length): Use pressure classes.
21153         (inc_register_pressure, dec_register_pressure): Check for pressure
21154         class.
21155         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21156         pressure class.  Use ira_reg_class_nregs instead of
21157         ira_reg_class_max_nregs.
21158         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21159         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21160         (single_reg_class): Use ira_reg_class_nregs instead of
21161         ira_reg_class_max_nregs.
21162         (process_bb_node_lives): Use pressure classes.
21163
21164         * ira-emit.c: Remove mentioning cover classes from the file.  Use
21165         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21166         (change_loop): Use pressure classes.
21167         (modify_move_list): Call ira_set_allocno_class instead of
21168         ira_set_allocno_cover_class.
21169
21170         * ira-build.c: Remove mentioning cover classes from the file.  Use
21171         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21172         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
21173         ALLOCNO_UPDATED_CLASS_COST instead of
21174         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21175         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21176         (ira_create_allocno): Remove initialization of
21177         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
21178         ALLOCNO_COLORABLE_P.
21179         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21180         Update conflict regs for the objects.
21181         (create_cap_allocno): Remove assert.  Don't propagate
21182         ALLOCNO_AVAILABLE_REGS_NUM.
21183         (ira_free_allocno_costs): New function.
21184         (finish_allocno): Change a part of code into call of
21185         ira_free_allocno_costs.
21186         (low_pressure_loop_node_p): Use pressure classes.
21187         (object_range_compare_func): Don't compare classes.
21188         (setup_min_max_conflict_allocno_ids): Ditto.
21189
21190         * loop-invariant.c: Remove mentioning cover classes from the file.
21191         Use ira_pressure_classes and ira_pressure_classes_num instead of
21192         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
21193         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21194         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21195         Use reg_allocno_class instead of reg_cover_class.
21196         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21197         STACK_REG_COVER_CLASS.
21198         (get_regno_cover_class): Rename to get_regno_pressure_class.
21199         (move_loop_invariants): Initialize and finalize regstat.
21200
21201         * ira.c: Remove mentioning cover classes from the file.  Add
21202         comments about coloring without cover classes.  Use ALLOCNO_CLASS
21203         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
21204         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21205         setup_class_subset_and_memory_move_costs.
21206         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21207         (setup_cover_and_important_classes): Rename to
21208         setup_allocno_and_important_classes.
21209         (setup_class_translate_array): New.
21210         (setup_class_translate): Call it for allocno and pressure classes.
21211         (cover_class_order): Rename to allocno_class_order.
21212         (comp_reg_classes_func): Use ira_allocno_class_translate instead
21213         of ira_class_translate.
21214         (reorder_important_classes): Set up ira_important_class_nums.
21215         (setup_reg_class_relations): Set up ira_reg_class_superunion.
21216         (print_class_cover): Rename to print_classes.  Add parameter.
21217         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21218         Print pressure classes too.
21219         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
21220         setup_reg_subclasses.
21221         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21222         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21223         (setup_prohibited_class_mode_regs): Use
21224         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21225         (clarify_prohibited_class_mode_regs): New function.
21226         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21227         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21228         (ira_init_once): Initialize them.
21229         (free_register_move_costs): Process them.
21230         (ira_init): Move calls of find_reg_classes and
21231         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21232         Call clarify_prohibited_class_mode_regs.
21233         (ira_no_alloc_reg): Remove.
21234         (too_high_register_pressure_p): Use pressure classes.
21235
21236         * sched-deps.c: Remove mentioning cover classes from the file.
21237         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21238         ira_pressure_classes and ira_pressure_classes_num instead of
21239         ira_reg_class_cover_size and ira_reg_class_cover.
21240         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21241         sched_regno_pressure_class instead of sched_regno_cover_class.
21242         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
21243         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21244
21245         * ira.h: Add 2010 to Copyright.
21246         (ira_no_alloc_reg): Remove external.
21247         (struct target_ira): Rename x_ira_hard_regno_cover_class,
21248         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21249         x_ira_class_translate to x_ira_hard_regno_allocno_class,
21250         x_ira_allocno_classes_num, x_ira_allocno_classes, and
21251         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
21252         x_ira_pressure_classes, x_ira_pressure_class_translate, and
21253         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
21254         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
21255         x_ira_no_alloc_regs.
21256         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21257         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21258         ira_allocno_classes_num and ira_allocno_classes.
21259         (ira_class_translate): Rename to ira_allocno_class_translate.
21260         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21261         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21262         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21263         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21264         (ira_no_alloc_regs): New.
21265
21266         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
21267         classes from the file.  Use ALLOCNO_CLASS instead of
21268         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
21269         ALLOCNO_COVER_CLASS_COST.
21270         (regno_cover_class): Rename to regno_aclass.
21271         (record_reg_classes): Use ira_reg_class_subunion instead of
21272         ira_reg_class_union.
21273         (record_address_regs): Check overflow.
21274         (scan_one_insn): Ditto.
21275         (print_allocno_costs): Print total mem cost fore regional allocation.
21276         (print_pseudo_costs): Use REG_N_REFS.
21277         (find_costs_and_classes): Use classes intersected with them on the
21278         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
21279         ira_reg_class_union.  Use ira_allocno_class_translate and
21280         regno_aclass instead of ira_class_translate and regno_cover_class.
21281         Modify code for finding regno_aclass.  Setup preferred classes for
21282         the next pass.
21283         (setup_allocno_cover_class_and_costs): Rename to
21284         setup_allocno_class_and_costs.  Use regno_aclass instead of
21285         regno_cover_class.  Use ira_set_allocno_class instead of
21286         ira_set_allocno_cover_class.
21287         (init_costs, finish_costs): Use regno_aclass instead of
21288         regno_cover_class.
21289         (ira_costs): Use setup_allocno_class_and_costs instead of
21290         setup_allocno_cover_class_and_costs.
21291         (ira_tune_allocno_costs_and_cover_classes): Rename to
21292         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
21293         by processing objects.  Use ira_reg_class_max_nregs instead of
21294         ira_reg_class_nregs.
21295
21296         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21297
21298         * sched-int.h: Remove mentioning cover classes from the file.
21299         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21300
21301         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
21302         classes from the file.
21303         (struct reg_pref): Rename coverclass into allocnoclass.
21304         (reg_cover_class): Rename to reg_allocno_class.
21305
21306         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21307
21308         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21309
21310         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21311
21312         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21313
21314         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21315
21316         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21317
21318         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21319
21320         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21321
21322         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21323
21324         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21325
21326         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21327         (i386_ira_cover_classes): Ditto.
21328
21329         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21330
21331         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21332
21333         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21334
21335         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21336
21337         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21338
21339         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21340
21341         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21342         (mips_ira_cover_classes): Ditto.
21343
21344         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21345
21346         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21347
21348         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21349
21350         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21351
21352         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21353
21354         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21355         (IRA_COVER_CLASSES_VSX): Ditto.
21356
21357         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21358         (rs6000_ira_cover_classes): Ditto.
21359
21360         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21361
21362         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21363
21364         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21365
21366         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21367
21368         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21369
21370         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21371
21372         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21373
21374         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21375
21376         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21377
21378         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21379
21380 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
21381
21382         PR debug/48253
21383         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21384         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21385         dw_fde_unlikely_section_end_label, cold_in_std_section,
21386         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21387         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21388         fields.
21389         (output_fde): Use dw_fde_second_{begin,end} if second is
21390         true, otherwise dw_fde_{begin,end}.
21391         (output_call_frame_info): Test dw_fde_second_begin != NULL
21392         instead of dw_fde_switched_sections.
21393         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21394         fields, initialize new fields.  Initialize in_std_section
21395         unconditionally from the first partition.
21396         (dwarf2out_end_epilogue): Don't override dw_fde_end when
21397         dw_fde_second_begin is non-NULL.
21398         (dwarf2out_switch_text_section): Stop initializing removed
21399         dw_fde_struct fields, initialize new fields, initialize
21400         also dw_fde_end here.  Set dw_fde_switch_cfi even when
21401         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
21402         (struct var_loc_list_def): Add last_before_switch field.
21403         (arange_table, arange_table_allocated, arange_table_in_use,
21404         ARANGE_TABLE_INCREMENT, add_arange): Removed.
21405         (size_of_aranges): Count !in_std_section and !second_in_std_section
21406         hunks in fdes, instead of looking at arange_table_in_use.
21407         (output_aranges): Add aranges_length argument, don't call
21408         size_of_aranges here.  Instead of using aranges_table*
21409         emit ranges for fdes when !in_std_section resp.
21410         !second_in_std_section.
21411         (dw_loc_list): Break ranges crossing section switch.
21412         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
21413         use dw_fde_second_end instead of dw_fde_end as end of last range.
21414         (gen_subprogram_die): Don't call add_arange.  Use
21415         dw_fde_{begin,end} for first partition and if switched
21416         section dw_fde_second_{begin,end} for the second.
21417         (var_location_switch_text_section_1,
21418         var_location_switch_text_section): New functions.
21419         (dwarf2out_begin_function): Initialize cold_text_section even
21420         when function_section () isn't text_section.
21421         (prune_unused_types): Don't walk arange_table.
21422         (dwarf2out_finish): Don't needlessly test
21423         flag_reorder_blocks_and_partition when testing cold_text_section_used.
21424         If info_section_emitted, call size_of_aranges and if it indicates
21425         non-empty .debug_aranges, call output_aranges with the computed
21426         size.  Stop using removed dw_fde_struct fields, use
21427         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21428         for second.
21429
21430         PR debug/48203
21431         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21432         create ENTRY_VALUE if incoming or address of incoming's MEM
21433         is a hard REG.
21434         * dwarf2out.c (mem_loc_descriptor): Don't emit
21435         DW_OP_GNU_entry_value of DW_OP_fbreg.
21436         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21437         on ENTRY_VALUE is able to find the canonical parameter VALUE.
21438         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21439         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21440         ENTRY_VALUE_EXPs.
21441         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21442         is a REG_P or MEM_P with REG_P address, compute hash directly
21443         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21444         (preserve_only_constants): Don't clear VALUES forwaring
21445         ENTRY_VALUE to some other VALUE.
21446
21447 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
21448
21449         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21450         instead of GEN_INT.
21451
21452 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21453
21454         * cfgexpand.c (expand_gimple_cond): Always set the source location and
21455         block before expanding the statement.
21456         (expand_gimple_stmt_1): Likewise.  Set them here...
21457         (expand_gimple_stmt): ...and not here.  Tidy.
21458         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21459         unknown.
21460
21461 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21462
21463         * Makefile.in: New rule for cprop.o.
21464         * gcse.c: Move constant/copy propagation to cprop.c.
21465         (compute_local_properties): Only handle expression tables.
21466         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21467         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21468         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21469         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21470         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21471         compute_cprop_data, find_used_regs, try_replace_reg,
21472         find_avail_set, cprop_jump, constprop_register, cprop_insn,
21473         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21474         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21475         find_bypass_set, reg_killed_on_edge, bypass_block,
21476         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21477         execute_rtl_cprop, pass_rtl_cprop): Move to...
21478         * cprop.c: ...here.  New file, constant/copy propagation for RTL
21479         moved from gcse.c to here with minor cleanups in duplicated code.
21480
21481 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
21482
21483         * config/i386/i386.c (flag_opts): Fix a typo in
21484         -mavx256-split-unaligned-store.
21485
21486 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21487
21488         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21489         LIBCALL_VALUE): Remove macros.
21490         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21491         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21492         (h8300_function_value, h8300_libcall_value,
21493         h8300_function_value_regno_p): New functions.
21494
21495 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
21496
21497         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21498
21499 2011-03-28  Jeff Law  <law@redhat.com>
21500
21501         * tree-ssa-threadupdate.c (redirect_edges): Call
21502         create_edge_and_update_destination_phis as needed.
21503         (create_edge_and_update_destination_phis): Accept new BB argument.
21504         All callers updated.
21505         (thread_block): Do not update the profile when threading around
21506         intermediate blocks.
21507         (thread_single_edge): Likewise.
21508         (determine_bb_domination_status): If BB is not a successor of the
21509         loop header, return NONDOMINATING.
21510         (register_jump_thread): Note when we register a jump thread around
21511         an intermediate block.
21512         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21513         (thread_across_edge): Use it.
21514
21515 2011-03-28  Tristan Gingold  <gingold@adacore.com>
21516
21517         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21518         when for_return is 2.
21519
21520 2011-03-28  Jeff Law  <law@redhat.com>
21521
21522         * var-tracking.c (canonicalize_values_mark): Delete unused
21523         lhs assignment.
21524         (canonicalize_values_star, set_variable_part): Likewise.
21525         (clobber_variable_part, delete_variable_part): Likewise.
21526
21527 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
21528
21529         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21530
21531 2011-03-28  Martin Jambor  <mjambor@suse.cz>
21532
21533         * tree-inline.c (expand_call_inline): Do not check that destination
21534         node is analyzed.
21535         (optimize_inline_calls): Assert that destination node is analyzed.
21536         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21537         not call tree_lowering_passes.
21538         * cgraph.h (cgraph_analyze_function): Declare.
21539         * cgraphunit.c (cgraph_analyze_function): Make public.
21540
21541 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
21542
21543         * config/sparc/sparc-opts.h: New.
21544         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21545         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21546         (sparc_option_override): Store processor_type enumeration rather
21547         than string in cpu_default.  Remove name and enumeration from
21548         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
21549         without using sparc_select.  Use target_flags_explicit instead of
21550         fpu_option_set.
21551         * config/sparc/sparc.h (enum processor_type): Move to
21552         sparc-opts.h.
21553         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21554         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21555         HeaderInclude entry.
21556         (mcpu=, mtune=): Use Var and Enum.
21557         (sparc_processor_type): New Enum and EnumValue entries.
21558
21559 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21560             Iain Sandoe  <iains@gcc.gnu.org>
21561
21562         PR target/48245
21563         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21564
21565 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
21566
21567         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21568         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21569         Insert new statements at it in lieu of STMT.
21570         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21571         * tree-vect-stmts.c (vectorizable_store): Likewise.
21572         (vectorizable_load): Likewise.
21573
21574 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
21575
21576         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21577         (divtf3): Ditto.
21578         (multf3): Ditto.
21579         (subtf3): Ditto.
21580
21581 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21582
21583         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21584         unaligned 256bit load/store.
21585         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21586         (*avx_movdqu<avxmodesuffix>): Likewise.
21587
21588 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21589
21590         PR target/48288
21591         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21592         * config/pa/pa.md (iordi3): Use new predicate in expander.
21593         (iorsi3): Likewise.
21594
21595 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
21596
21597         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21598         FUNCTION_VALUE_REGNO_P): Remove macros.
21599         * config/mips/mips-protos.h (mips_function_value): Remove.
21600         * config/mips/mips.c (mips_function_value): Rename to...
21601         (mips_function_value_1): ... this. Make static.  Handle receiving
21602         the function type in 'fn_decl_or_type' argument.
21603         (mips_function_value, mips_libcall_value,
21604         mips_function_value_regno_p): New function.
21605         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21606         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21607
21608 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21609
21610         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21611         and -mavx256-split-unaligned-store.
21612         (ix86_option_override_internal): Split 32-byte AVX unaligned
21613         load/store by default.
21614         (ix86_avx256_split_vector_move_misalign): New.
21615         (ix86_expand_vector_move_misalign): Use it.
21616
21617         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21618         -mavx256-split-unaligned-store.
21619
21620         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21621         256bit load/store.  Generate unaligned store on misaligned memory
21622         operand.
21623         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21624         256bit load/store.
21625         (*avx_movdqu<avxmodesuffix>): Likewise.
21626
21627         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21628         -mavx256-split-unaligned-store.
21629
21630 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21631
21632         PR target/38598
21633         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21634         Update commentary.
21635
21636 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
21637
21638         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21639         opno arguments with an expand_operand.  Use create_input_operand.
21640         (mips_prepare_builtin_target): Delete.
21641         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21642         functions.
21643         (mips_expand_builtin_direct): Use create_output_operand and
21644         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
21645         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
21646         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21647
21648 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
21649
21650         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21651         function.
21652         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21653
21654 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
21655
21656         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21657         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
21658         basic blocks and call commit_edge_insertions directly.
21659         (fixup_abnormal_edges): Move from here to...
21660         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
21661         on the edges and return whether some have actually been inserted.
21662         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21663         compensation code.
21664
21665 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
21666
21667         PR rtl-optimization/48144
21668         * sel-sched-ir.c (merge_history_vect): Factor out from ...
21669         (merge_expr_data): ... here.
21670         (av_set_intersect): Rename to av_set_code_motion_filter.
21671         Update all callers.  Call merge_history_vect when an expression
21672         is found in both sets.
21673         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21674
21675 2011-03-26  Alan Modra  <amodra@gmail.com>
21676
21677         * config/rs6000/predicates.md (word_offset_memref_op): Handle
21678         cmodel medium addresses.
21679         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21680         64-bit gpr loads and stores.
21681         (rs6000_secondary_reload_ppc64): New function.
21682         * config/rs6000/rs6000-protos.h: Declare it.
21683         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21684
21685 2011-03-26  Alan Modra  <amodra@gmail.com>
21686
21687         PR target/47487
21688         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21689         GNU Go in traceback table.
21690
21691 2011-03-25  Richard Henderson  <rth@redhat.com>
21692
21693         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21694         if there are exactly 6 operands.
21695         (set_storage_via_setmem): Similarly.
21696
21697 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21698
21699         * collect2.c (write_c_file_stat): Handle backslash
21700         as right-hand directory separator.
21701         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21702         checking just for slash.
21703         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21704         instead of checking for trailing slash.
21705         * gcc.c (record_temp_file): Use filename_cmp instead
21706         of strcmp.
21707         (do_spec_1): Likewise.
21708         (replace_outfile_spec_function): Likewise.
21709         (is_directory): Use filename_ncmp instead of strncmp.
21710         (print_multilib_info): Likewise.
21711         * gcov.c (find_source): Use filename_cmp instead
21712         instead of strcmp.
21713         (make_gcov_file_name): Fix order of slash/backslash
21714         checks.
21715         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21716         (add_standard_paths): Likewise.
21717         * mips-tfile.c (saber_stop): Handle backslash.
21718         * prefix.c (update_path): Use filename_ncmp instead of
21719         strncmp.
21720         * profile.c (output_location): Use filename_cmp instead
21721         of strcmp.
21722         * read-md.c (handle_toplevel_file): Handle backslash.
21723         * tlink.c (frob_extension):  Likewise.
21724         * tree-cfg.c (same_line_p): Use filename_cmp instead of
21725         strcmp.
21726         * tree-dump.c (dequeue_and_dump): Handle backslash.
21727         * tree.c (get_file_function_name): Likewise.
21728         * gengtype.c (read_input_list): Likewise.
21729         (get_file_realbasename): Likewise.
21730         (get_output_file_with_visibility): Use filename_cmp
21731         instead of strcmp.
21732
21733 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
21734
21735         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21736         case to VFPv1.
21737
21738 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21739
21740         * fold-const.c (expr_location_or): New function.
21741         (fold_truth_not_expr): Call it.
21742
21743 2011-03-25  Jeff Law  <law@redhat.com>
21744
21745         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21746         va_end.
21747         * c-family/c-common.c (def_fn_type): Likewise.
21748         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21749         * emit-rtl.c (gen_rtvec): Likewise.
21750         * lto/lto-lang.c (def_fn_type): Likewise.
21751
21752 2011-03-25  Richard Guenther  <rguenther@suse.de>
21753
21754         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21755         also generate copies.
21756         (fini_copy_prop): Handle constant values properly.
21757
21758 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
21759
21760         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21761         mode size instead of bitsize with DWARF2_ADDR_SIZE.
21762         (hash_loc_operands, compare_loc_operands): Handle
21763         DW_OP_GNU_entry_value.
21764
21765 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21766
21767         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21768         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21769         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21770         comment and use macro TARGET_64BIT_MS_ABI instead.
21771         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21772         and change default behavior for 32-bit MS_ABI.
21773         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21774         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21775         32-bit, too.
21776         (ix86_cfun_abi): Likewise.
21777         (ix86_maybe_switch_abi): Adjust comment.
21778         (init_cumulative_args): Check for bit-ness in MS_ABI case.
21779         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21780         instead of checking for SYSV_ABI.
21781         (ix86_nsaved_sseregs): Likewise.
21782         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21783         to 16 bytes.
21784         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21785         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21786         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21787         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21788         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21789
21790 2011-03-25  Richard Guenther  <rguenther@suse.de>
21791
21792         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21793         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21794         (verify_gimple): Remove.
21795         * tree-cfg.c (verify_gimple_call): Merge verification
21796         from verify_stmts.
21797         (verify_gimple_phi): Merge verification from verify_stmts.
21798         (verify_gimple_label): New function.
21799         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21800         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21801         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21802         (verify_stmts): Rename to verify_gimple_in_cfg.
21803         (verify_gimple_in_cfg): New function.
21804         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21805         * tree-ssa.c (verify_ssa): Likewise.
21806         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21807
21808 2011-03-25  Richard Guenther  <rguenther@suse.de>
21809
21810         * passes.c (init_optimization_passes): Add FRE pass after
21811         early SRA.
21812
21813 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
21814             Andrew Stubbs  <ams@codesourcery.com>
21815
21816         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21817         for Cortex-A8.
21818         (arm_movdi_vfp_cortexa8): New pattern.
21819         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21820         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21821         instructions when tuning for Cortex-A8.  Set attribute "arch".
21822         * config/arm/arm.md: Move include arm-tune.md up a bit.
21823         (define_attr "arch"): Add "onlya8" and "nota8" values.
21824         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21825
21826 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
21827
21828         PR bootstrap/48282
21829         Revert:
21830         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21831
21832         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21833         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21834         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21835         * passes.c (init_optimization_passes): Move
21836         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21837
21838 2011-03-25  Kai Tietz  <ktietz@redhat.com>
21839
21840         * c-typeck.c (comptypes_internal): Replace target
21841         hook call of comp_type_attributes by version in tree.c file.
21842         * gimple.c (gimple_types_compatible_p_1): Likewise.
21843         * tree-ssa.c (useless_type_conversion_p): Likewise.
21844         * tree.c (build_type_attribute_qual_variant): Likewise.
21845         (attribute_value_equal): New static helper function.
21846         (comp_type_attributes): New function.
21847         (merge_attributes): Use attribute_value_equal for comparison.
21848         (attribute_list_contained): Likewise.
21849         * tree.h (comp_type_attributes): New prototype.
21850
21851 2011-03-25  Richard Guenther  <rguenther@suse.de>
21852
21853         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21854         of complex types at -O0.
21855         (verify_gimple_assign_binary): Likewise.
21856         (verify_gimple_assign_ternary): Likewise.
21857
21858 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21859
21860         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21861         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21862
21863 2011-03-24  Mark Wielaard  <mjw@redhat.com>
21864
21865         PR debug/48041
21866         * dwarf2out.c (output_abbrev_section): Only write table when
21867         abbrev_die_table_in_use > 1.
21868
21869 2011-02-24  Richard Henderson  <rth@redhat.com>
21870
21871         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21872         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21873         (alpha_expand_unaligned_load_words): Use extql.
21874         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21875         (emit_insxl): Handle all modes for consistency.
21876
21877 2011-02-24  Richard Henderson  <rth@redhat.com>
21878
21879         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21880         (alpha_expand_unaligned_load): Likewise.
21881         (alpha_expand_unaligned_store): Likewise.
21882         (alpha_expand_unaligned_load_words): Likewise.
21883         (alpha_expand_unaligned_store_words): Likewise.
21884         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21885         (alpha_split_lock_test_and_set_12): Likewise.
21886         (print_operand, alpha_fold_builtin_extxx): Likewise.
21887         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21888         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21889         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21890         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21891         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21892         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21893         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21894         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21895         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21896         (extwl, extll, extql): Similarly.
21897         (inswh, inslh, insqh): Similarly.
21898         (mskbl, mskwl, mskll, mskql): Similarly.
21899         (mskwh, msklh, mskqh): Similarly.
21900
21901 2011-02-24  Richard Henderson  <rth@redhat.com>
21902
21903         * config/alpha/alpha.md (attribute isa): Add er, ner.
21904         (attribute enabled): Handle them.
21905         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21906
21907 2011-02-24  Richard Henderson  <rth@redhat.com>
21908
21909         * config/alpha/alpha.md (attribute isa): Add vms.
21910         (attribute enabled): Handle it.
21911         (*movsf): Merge *movsf_{nofix,fix,nofp}.
21912         (*movdf): Merge *movdf_{nofix,fix,nofp}.
21913         (*movtf): Rename from *movtf_internal for consistency.
21914         (*movsi): Merge with *movsi_nt_vms.
21915         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21916         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21917         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21918         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21919
21920 2011-02-24  Richard Henderson  <rth@redhat.com>
21921
21922         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21923         (extendqisi2, extendhisi2): Likewise.
21924         (extendqidi2): Simplify BWX/non-BWX expansions.
21925         (extendhidi2): Similarly.
21926
21927 2011-02-24  Richard Henderson  <rth@redhat.com>
21928
21929         * config/alpha/alpha.md (attribute isa): New.
21930         (attribute enabled): New.
21931         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21932         (zero_extendqisi2, zero_extendqidi2): Similarly.
21933         (zero_extendhisi2, zero_extendhidi2): Similarly.
21934         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21935
21936 2011-02-24  Richard Henderson  <rth@redhat.com>
21937
21938         * config/alpha/predicates.md (input_operand): Revert last change;
21939         update comment to mention 32-bit VMS rather than Windows.
21940
21941 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21942
21943         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21944         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
21945         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21946         * passes.c (init_optimization_passes): Move
21947         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21948
21949 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21950
21951         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21952
21953 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21954
21955         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21956         correctly.
21957
21958 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
21959
21960         PR debug/48204
21961         * simplify-rtx.c (simplify_const_unary_operation): Call
21962         real_convert when changing mode class with FLOAT_EXTEND.
21963
21964 2011-03-24  Nick Clifton  <nickc@redhat.com>
21965
21966         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21967         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21968         * config/rx/rx.c (rx_option_override): Set align_jumps,
21969         align_loops and align_labels if not set by the user.
21970         (rx_align_for_label): New function.
21971         (rx_max_skip_for_label): New function.
21972         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21973         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21974         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21975         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21976         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21977
21978 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21979
21980         PR rtl-optimization/48263
21981         * optabs.c (expand_binop_directly): Reinstate convert_modes code
21982         and original commutative_p handling.  Use maybe_gen_insn.
21983
21984 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21985
21986         * reload.c (find_reloads_subreg_address): Add address_reloaded
21987         parameter and return true there if the full address has been
21988         reloaded.
21989         (find_reloads_toplev): Pass address_reloaded flag.
21990         (find_reloads_address_1): Don't use address_reloaded parameter.
21991
21992 2011-03-24  Jeff Law  <law@redhat.com>
21993
21994         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21995         unused variable "ann".
21996         (remove_unused_locals): Likewise.
21997
21998         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21999         statement.
22000
22001         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22002         after it is freed.
22003
22004 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22005
22006         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22007         for invalid symbolic addresses.
22008         (s390_secondary_reload): Don't use s390_check_symref_alignment for
22009         larl operands.
22010
22011 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22012
22013         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22014         the argument in calls to fold_truth_not_expr.
22015
22016 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22017
22018         * tree.c (record_node_allocation_statistics): New function.
22019         (make_node_stat, copy_node_stat, build_string): Call it.
22020         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22021         (build1_stat, build_omp_clause): Likewise.
22022
22023 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22024
22025         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22026         last commit.
22027
22028 2011-03-24  Richard Guenther  <rguenther@suse.de>
22029
22030         PR tree-optimization/48271
22031         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22032         blocks that still exist.
22033
22034 2011-03-24  Richard Guenther  <rguenther@suse.de>
22035
22036         PR tree-optimization/48270
22037         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22038         not free datarefs before ddrs.
22039
22040 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22041
22042         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22043         from the address built for a reference with variable offset.
22044
22045 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22046
22047         PR target/48237
22048         * config/i386/i386.md (*movdf_internal_rex64): Do not split
22049         alternatives that can be handled with movq or movabsq insn.
22050         (*movdf_internal): Disable for !TARGET_64BIT.
22051         (*movdf_internal_nointeger): Ditto.
22052         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22053
22054 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22055
22056         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22057         (FUNCTION_ARG_ADVANCE): Likewise.
22058         * tm.texi.in: Change references to them to hook references.
22059         * tm.texi: Regenerate.
22060         * targhooks.c (default_function_arg): Eliminate check for target macro.
22061         (default_function_incoming_arg): Likewise.
22062         (default_function_arg_advance): Likewise.
22063         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22064         (function_arg_advance): Likewise.
22065         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22066
22067 2011-03-24  Richard Guenther  <rguenther@suse.de>
22068
22069         PR middle-end/48269
22070         * tree-object-size.c (addr_object_size): Do not double-account
22071         for MEM_REF offsets.
22072
22073 2011-03-24  Diego Novillo  <dnovillo@google.com>
22074
22075         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22076         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22077         (lto_input_data_block): Move from lto-opts.c.  Make extern.
22078         Update all users.
22079         (lto_input_string): Rename from input_string.  Make extern.
22080         Update all users.
22081         * lto-streamer-out.c (lto_output_string_with_length): Rename from
22082         output_string_with_length.
22083         Output 0 to indicate a non-NULL string.  Update all callers to
22084         not emit 0.
22085         (lto_output_string): Rename from output_string.  Make extern.
22086         Update all users.
22087         (lto_output_decl_state_streams): Make extern.
22088         (lto_output_decl_state_refs): Make extern.
22089         * lto-streamer.h (lto_input_string): Declare.
22090         (lto_input_data_block): Declare.
22091         (lto_output_string): Declare.
22092         (lto_output_string_with_length): Declare.
22093         (lto_output_decl_state_streams): Declare.
22094         (lto_output_decl_state_refs): Declare.
22095
22096 2011-03-24  Richard Guenther  <rguenther@suse.de>
22097
22098         PR tree-optimization/46562
22099         * tree.c (build_invariant_address): New function.
22100         * tree.h (build_invariant_address): Declare.
22101         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22102         a renamed function moved ...
22103         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22104         Take valueization callback parameter.
22105         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22106         * gimple-fold.h: New file.
22107         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22108         (ccp_fold, fold_const_aggregate_ref,
22109         fold_ctor_reference, fold_nonarray_ctor_reference,
22110         fold_array_ctor_reference, fold_string_cst_ctor_reference,
22111         get_base_constructor): Move ...
22112         * gimple-fold.c: ... here.
22113         (gimple_fold_stmt_to_constant_1): New function
22114         split out from ccp_fold.  Take a valueization callback parameter.
22115         Valueize all operands.
22116         (gimple_fold_stmt_to_constant): New wrapper function.
22117         (fold_const_aggregate_ref_1): New function split out from
22118         fold_const_aggregate_ref.  Take a valueization callback parameter.
22119         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22120         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22121         invariant POINTER_PLUS_EXPRs to invariant form.
22122         (vn_valueize): New function.
22123         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22124         * tree-vrp.c (vrp_valueize): New function.
22125         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22126         to fold statements to constants.
22127         * tree-ssa-pre.c (eliminate): Properly guard propagation of
22128         function declarations.
22129         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22130         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22131
22132 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22133
22134         * config/h8300/predicates.md (jump_address_operand): Fix register
22135         mode check.
22136
22137 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
22138
22139         * doc/invoke.texi (max-stores-to-sink): Document.
22140         * params.h (MAX_STORES_TO_SINK): Define.
22141         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22142         if either vectorization or if-conversion is disabled.
22143         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22144         tree-vect-data-refs.c vect_equal_offsets.
22145         (dr_equal_offsets_p): New function.
22146         (find_data_references_in_bb): Remove static.
22147         * tree-data-ref.h (find_data_references_in_bb): Declare.
22148         (dr_equal_offsets_p): Likewise.
22149         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22150         (vect_drs_dependent_in_basic_block): Update calls to
22151         vect_equal_offsets.
22152         (vect_check_interleaving): Likewise.
22153         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22154         (cond_if_else_store_replacement): Rename to...
22155         (cond_if_else_store_replacement_1): ... this.  Change arguments and
22156         documentation.
22157         (cond_if_else_store_replacement): New function.
22158         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22159         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22160
22161 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
22162
22163         PR target/46934
22164         * config/arm/arm.md (casesi): Use the gen_int_mode() function
22165         to subtract lower bound instead of GEN_INT().
22166
22167 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
22168
22169         PR other/48179
22170         PR other/48221
22171         PR other/48234
22172         * doc/extend.texi (Alignment): Move section to match order in TOC.
22173         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22174         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22175
22176 2011-03-23  Jeff Law  <law@redhat.com>
22177
22178         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22179         before removing the edge.
22180
22181         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22182         it may have been freed by redirect_branch_edge or
22183         redirect_edge_succ_nodup.
22184
22185 2011-03-23  Richard Guenther  <rguenther@suse.de>
22186
22187         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22188         (check_va_list_escapes): Likewise.
22189         (check_all_va_list_escapes): Likewise.
22190
22191 2011-03-23  Richard Guenther  <rguenther@suse.de>
22192
22193         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22194         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22195         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22196         (alias.o): Likewise.
22197         (ipa-type-escape.o): Remove.
22198         (ipa-struct-reorg.o): Likewise.
22199         (GTFILES): Remove ipa-struct-reorg.c.
22200         * alias.c: Do not include ipa-type-escape.h.
22201         * tree-ssa-alias.c: Likewise.
22202         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22203         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22204         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22205         and ipa-type-escape passes.
22206         * tree-pass.h (pass_ipa_type_escape): Remove.
22207         (pass_ipa_struct_reorg): Likewise.
22208         * ipa-struct-reorg.h: Remove.
22209         * ipa-struct-reorg.c: Likewise.
22210         * ipa-type-escape.h: Likewise.
22211         * ipa-type-escape.c: Likewise.
22212         * doc/invoke.texi (-fipa-struct-reorg): Remove.
22213         (--param struct-reorg-cold-struct-ratio): Likewise.
22214         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22215         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22216         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22217
22218 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22219
22220         * config/s390/2084.md: Enable all insn reservations also for z9_ec
22221         cpu attribute value.
22222         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22223         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22224         * config/s390/s390.c (processor_flags_table): New constant array.
22225         (s390_handle_arch_option): Remove.
22226         (s390_handle_option): Remove s390_handle_arch_option invocations
22227         and OPT_mwarn_framesize_ handling.
22228         (s390_option_override): Remove s390_handle_arch_option invocation.
22229         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22230         warnings.
22231         * config/s390/s390.md (cpu attribute): Add z9_ec value.
22232         * config/s390/s390.opt (s390_tune, s390_arch)
22233         (march=): Replace s390_arch_option enum and values with
22234         processor_type.  Set variable name to s390_arch.  Set
22235         initialization value.
22236         (mtune=): Replace s390_arch_option with processor_type.  Set
22237         variable name to s390_tune.  Set initialization value.
22238
22239 2011-03-23  Julian Brown  <julian@codesourcery.com>
22240
22241         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22242         accesses which are not naturally aligned.
22243
22244 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22245
22246         PR target/47553
22247         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22248
22249 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
22250
22251         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22252         parameter from "int" to "enum insn_code".
22253         (expand_operand_type): New enum.
22254         (expand_operand): New structure.
22255         (create_expand_operand): New function.
22256         (create_fixed_operand, create_output_operand): Likewise
22257         (create_input_operand, create_convert_operand_to): Likewise.
22258         (create_convert_operand_from, create_address_operand): Likewise.
22259         (create_integer_operand): Likewise.
22260         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22261         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22262         (expand_insn, expand_jump_insn): Likewise.
22263         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22264         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22265         (expand_movstr, expand_builtin___clear_cache): Likewise.
22266         (expand_builtin_lock_release): Likewise.
22267         * explow.c (allocate_dynamic_stack_space): Likewise.
22268         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
22269         and use the default handling in that case.
22270         * expmed.c (check_predicate_volatile_ok): Delete.
22271         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22272         (emit_cstore): Likewise.
22273         * expr.c (emit_block_move_via_movmem): Likewise.
22274         (set_storage_via_setmem, expand_assignment): Likewise.
22275         (emit_storent_insn, try_casesi): Likewise.
22276         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
22277         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22278         (expand_vec_shift_expr, expand_binop_directly): Likewise.
22279         (expand_twoval_unop, expand_twoval_binop): Likewise.
22280         (expand_unop_direct, emit_indirect_jump): Likewise.
22281         (emit_conditional_move, vector_compare_rtx): Likewise.
22282         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22283         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22284         (expand_sync_lock_test_and_set): Likewise.
22285         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
22286         (emit_unop_insn): Likewise.
22287         (expand_copysign_absneg): Change icode to an insn_code.
22288         (create_convert_operand_from_type): New function.
22289         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22290         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22291         (expand_insn, expand_jump_insn): Likewise.
22292         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22293         than const_int_operand for operand 2.
22294
22295 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22296
22297         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22298         if possible.
22299
22300 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22301
22302         * emit-rtl.c (emit_pattern_before_noloc): New function.
22303         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22304         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22305         (emit_pattern_after_noloc): New function.
22306         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22307         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22308
22309 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22310
22311         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22312         (__ffsDI2): Likewise.
22313
22314 2011-03-22  Richard Henderson  <rth@redhat.com>
22315
22316         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22317         of !TARGET_ABI_OPEN_VMS.
22318         (alpha_trampoline_init, alpha_start_function): Likewise.
22319         (alpha_expand_epilogue, alpha_file_start): Likewise.
22320         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22321         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22322         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22323         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22324         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22325
22326 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22327
22328         * config/s390/s390-opts.h: New.
22329         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22330         s390_arch_flags, s390_warn_framesize, s390_stack_size,
22331         s390_stack_guard): Remove.
22332         (s390_handle_arch_option): Return void.  Take enum
22333         s390_arch_option value instead of string and searching array.
22334         (s390_handle_option): Don't assert that global structures are in
22335         use.  Access variables via opts pointer.  Use error_at.  Don't use
22336         sscanf for -mstack-guard= or -mstack-size=.  Update call to
22337         s390_handle_arch_option.
22338         (s390_option_override): Update call to s390_handle_arch_option.
22339         (s390_emit_prologue): Use %d format for s390_stack_size in
22340         diagnostic.  Use %wd for HOST_WIDE_INT.
22341         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22342         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22343         * config/s390/s390.opt (config/s390/s390-opts.h): New
22344         HeaderInclude entry.
22345         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22346         s390_arch_flags, s390_warn_framesize): New Variable entries.
22347         (s390_arch_option): New Enum and EnumValue entries.
22348         (march=): Use Enum instead of Var.
22349         (mstack-guard=, mstack-size=): Use UInteger and Var.
22350         (mtune=): Use Enum.
22351
22352 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22353
22354         * config/score/score.c (score_handle_option): Don't assert that
22355         global structures are in use.  Access target_flags via opts
22356         pointer.  Use value of -march= option to determine target_flags
22357         settings.
22358         * config/score/score.opt (march=): Use Enum.
22359         (score_arch): New Enum and EnumValue entries.
22360
22361 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22362
22363         * config/mep/mep.c (option_mtiny_specified): Remove.
22364         (mep_option_override): Move register handling for -mivc2 from
22365         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
22366         instead of option_mtiny_specified.
22367         (mep_handle_option): Access target_flags via opts pointer.  Don't
22368         assert that global structures are in use.  Defer part of -mivc2
22369         handling and move it to mep_option_override.
22370         * config/mep/mep.opt (IVC2): New Mask entry.
22371         (mivc2): Use Var and Defer instead of Mask.
22372
22373 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22374
22375         * config/v850/v850-opts.h: New.
22376         * config/v850/v850.c (small_memory): Replace with
22377         small_memory_physical_max array.  Make that array static const.
22378         (v850_handle_memory_option): Take integer value of argument.  Take
22379         gcc_options pointer, option text and location.  Return void.
22380         Update for changes to small memory structures.
22381         (v850_handle_option): Access target_flags via opts pointer.  Don't
22382         assert that global structures are in use.  Update calls to
22383         v850_handle_memory_option.
22384         (v850_encode_data_area): Update references to small memory settings.
22385         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22386         (enum small_memory_type): Move to v850-opts.h.
22387         * config/v850/v850.opt (config/v850/v850-opts.h): New
22388         HeaderInclude entry.
22389         (small_memory_max): New Variable entry.
22390         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
22391         (mtda, mzda): Likewise.
22392
22393 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22394
22395         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22396         pointer.  Don't assert that global structures are in use.
22397
22398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22399
22400         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22401         via opts pointer.  Don't assert that global structures are in use.
22402
22403 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22404
22405         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22406         (munix=93): Use Var.
22407         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22408         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22409         * config/pa/pa-opts.h: New.
22410         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22411         (pa_handle_option): Don't assert that global structures are in
22412         use.  Access target_flags via opts pointer.  Don't handle
22413         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22414         OPT_munix_98 here.
22415         (pa_option_override): Handle deferred OPT_mfixed_range_.
22416
22417 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22418
22419         * config/mn10300/mn10300-opts.h: New.
22420         * config/mn10300/mn10300.c (mn10300_processor,
22421         mn10300_tune_string): Remove.
22422         (mn10300_handle_option): Don't assert that global structures are
22423         in use.  Access mn10300_processor via opts pointer.  Don't handle
22424         OPT_mtune_ here.
22425         * config/mn10300/mn10300.h (enum processor_type): Move to
22426         mn10300-opts.h.
22427         (mn10300_processor): Remove.
22428         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22429         HeaderInclude entry.
22430         (mn10300_processor): New Variable entry.
22431         (mtune=): Use Var.
22432
22433 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22434
22435         * config/microblaze/microblaze.c: Don't include opts.h.
22436         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22437         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22438         (mno-clearbss): Use Var and Warn.
22439
22440 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22441
22442         * config/m32r/m32r-opts.h: New.
22443         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22444         (m32r_handle_option): Don't assert that global structures are in
22445         use.  Access target_flags and m32r_cache_flush_func via opts
22446         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
22447         OPT_mno_flush_trap here.
22448         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22449         include of m32r-opts.h.
22450         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22451         HeaderInclude entry.
22452         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22453         (mmodel=): Use Enum and Var.
22454         (m32r_model): New Enum and EnumValue entries.
22455         (mno-flush-trap): Use Var.
22456         (msdata=): Use Enum and Var.
22457         (m32r_sdata): New Enum and EnumValue entries.
22458
22459 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22460
22461         * config/m32c/m32c.c: Don't include opts.h.
22462         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22463         m32c_handle_option): Remove.
22464         (m32c_option_override): Check global_options_set.x_target_memregs
22465         instead of target_memregs_set.
22466         * config/m32c/m32c.h (target_memregs): Remove.
22467         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22468         variable.
22469
22470 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22471
22472         * config/iq2000/iq2000-opts.h: New.
22473         * config/iq2000/iq2000.c: Don't include opts.h.
22474         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22475         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22476         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22477         HeaderInclude entry.
22478         (iq2000_tune): New Variable entry.
22479         (march=): Add comment.  Use Enum.
22480         (iq2000_arch): New Enum and EnumValue entries.
22481         (mcpu=): Use Enum and Var.
22482         (iq2000_tune): New Enum and EnumValue entries.
22483
22484 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22485
22486         * config/ia64/ia64-opts.h: New.
22487         * config/ia64/ia64.c (ia64_tune): Remove.
22488         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22489         here.  Use error_at.
22490         (ia64_option_override): Handle deferred OPT_mfixed_range_.
22491         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22492         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22493         HeaderInclude entry.
22494         (ia64_tune): New Variable entry.
22495         (mfixed-range=): Use Defer and Var.
22496         (mtune=): Use Enum and Var.
22497         (ia64_tune): New Enum and EnumValue entries.
22498
22499 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22500
22501         * config/frv/frv-opts.h: New.
22502         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22503         frv-opts.h.
22504         (frv_cpu_type): Remove.
22505         * config/frv/frv.c: Don't include opts.h.
22506         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22507         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22508         (frv_cpu_type): New Variable entry.
22509         (frv_cpu): New Enum and EnumValue entries.
22510
22511 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22512
22513         * config/cris/cris.c (cris_handle_option): Access target_flags via
22514         opts pointer.  Don't assert that global structures are in use.
22515         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22516         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22517
22518 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22519
22520         * config/bfin/bfin-opts.h: New.
22521         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22522         bfin_si_revision, bfin_workarounds): Remove.
22523         (bfin_cpus): Make static const.
22524         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22525         not bfin_lib_id_given.
22526         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
22527         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22528         pointer. Use error_at.  Don't assert that global structures are in use.
22529         * config/bfin/bfin.h: Include bfin-opts.h.
22530         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22531         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22532         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22533         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22534         entries.
22535
22536 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22537
22538         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22539         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22540         or -msoft-float here.
22541         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22542         -msoft-float and -mhard-float.
22543         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22544         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22545         msoft-float.
22546         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22547         -msoft-float.
22548         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22549         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22550         not mhard-float.
22551         (LIBGCC_SPEC): Don't handle -msoft-float.
22552         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22553         -mhard-float.
22554         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22555         msoft-float.
22556         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22557         -mfloat-abi=*, not -msoft-float and -mhard-float.
22558         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22559         -msoft-float.
22560         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22561         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22562         mhard-float and msoft-float.
22563         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22564         mfloat-abi=soft in comments, not mhard-float and msoft-float.
22565         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22566         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22567         mhard-float.
22568         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22569         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22570         msoft-float.
22571         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22572         not mhard-float.
22573         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22574         not msoft-float.
22575
22576 2011-03-22  Richard Henderson  <rth@redhat.com>
22577
22578         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22579         TARGET_ABI_WINDOWS_NT.
22580         (alpha_output_function_end_prologue): Likewise.
22581         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22582         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22583         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22584         (trap, *movsi_nt_vms): Likewise.
22585         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22586         (*tablejump_osf_nt_internal): Remove.
22587         * config/alpha/predicates.md (input_operand): Only test Pmode.
22588
22589 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22590
22591         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22592         via opts pointer.  Use error_at.  Don't assert that global
22593         structures are in use.
22594
22595 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22596
22597         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22598         (ix86_handle_option): Access ix86_isa_flags and
22599         ix86_isa_flags_explicit via opts pointer.  Don't assert that
22600         global structures are in use.
22601         (ix86_function_specific_save, ix86_function_specific_restore):
22602         Update ix86_isa_flags_explicit field name.
22603         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22604         (ix86_isa_flags_explicit): Rename TargetSave entry to
22605         x_ix86_isa_flags_explicit.
22606
22607 2011-03-22  Richard Henderson  <rth@redhat.com>
22608
22609         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22610         (alpha_option_override, direct_return): Likewise.
22611         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22612         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22613         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22614         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22615         (alpha_expand_epilogue, alpha_end_function): Likewise.
22616         (alpha_init_libfuncs): Likewise.
22617         (struct machine_function): Remove unicosmk members.
22618         (print_operand) ['t']: Remove.
22619         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22620         unicosmk_output_module_name, unicosmk_output_common,
22621         current_section_align, unicosmk_output_text_section_asm_op,
22622         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22623         unicosmk_section_type_flags, unicosmk_unique_section,
22624         unicosmk_asm_named_section, unicosmk_insert_attributes,
22625         unicosmk_output_align, unicosmk_defer_case_vector,
22626         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22627         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22628         unicosmk_output_ssib, unicosmk_add_call_info_word,
22629         unicosmk_extern_head, unicosmk_output_default_externs,
22630         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22631         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22632         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22633         * config/alpha/alpha-protos.h: Update.
22634         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22635         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22636         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22637         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22638         (*mulsi_se, mulvsi3): Likewise.
22639         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22640         (*divmodsi_internal, call, call_value, realign): Likewise.
22641         (moddi3, umoddi3): Likewise; remove duplicate expander.
22642         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22643         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22644         (*movdi_nofix): Remove r/U alternative.
22645         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22646         * config/alpha/constraints.md ("U"): Remove.
22647         * config/alpha/predicates.md (call_operand"): Don't test
22648         TARGET_ABI_UNICOSMK.
22649
22650 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22651
22652         * target.def (handle_option): Take gcc_options and
22653         cl_decoded_option pointers and location_t.
22654         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22655         * doc/tm.texi: Regenerate.
22656         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22657         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22658         * lto-opts.c (lto_reissue_options): Generate option structure for
22659         targetm.handle_option call.
22660         * opts.c (target_handle_option): Update call to
22661         targetm.handle_option.  Remove assertions about values now passed
22662         down to hook.
22663         * targhooks.c (default_target_handle_option): New.
22664         * targhooks.h (default_target_handle_option): Declare.
22665         * config/alpha/alpha.c: Include opts.h.
22666         (alpha_handle_option): Update to new hook interface.
22667         * config/arm/arm.c: Include opts.h.
22668         (arm_handle_option): Update to new hook interface.
22669         * config/arm/t-arm (arm.o): Update dependencies.
22670         * config/bfin/bfin.c: Include opts.h.
22671         (bfin_handle_option): Update to new hook interface.
22672         * config/cris/cris.c: Include opts.h.
22673         (cris_handle_option): Update to new hook interface.
22674         * config/frv/frv.c: Include opts.h.
22675         (frv_handle_option): Update to new hook interface.
22676         * config/i386/i386.c: Include opts.h.
22677         (ix86_handle_option): Update to new hook interface.
22678         (ix86_valid_target_attribute_inner_p): Generate option structure
22679         for call to ix86_handle_option.
22680         * config/i386/t-i386 (i386.o): Update dependencies.
22681         * config/ia64/ia64.c: Include opts.h.
22682         (ia64_handle_option): Update to new hook interface.
22683         * config/ia64/t-ia64 (ia64.o): Update dependencies.
22684         * config/iq2000/iq2000.c: Include opts.h.
22685         (iq2000_handle_option): Update to new hook interface.
22686         * config/m32c/m32c.c: Include opts.h.
22687         (m32c_handle_option): Update to new hook interface.
22688         * config/m32r/m32r.c: Include opts.h.
22689         (m32r_handle_option): Update to new hook interface.
22690         * config/m68k/m68k.c: Include opts.h.
22691         (m68k_handle_option): Update to new hook interface.
22692         * config/mep/mep.c: Include opts.h.
22693         (mep_handle_option): Update to new hook interface.
22694         * config/microblaze/microblaze.c: Include opts.h.
22695         (microblaze_handle_option): Update to new hook interface.
22696         * config/mips/mips.c: Include opts.h.
22697         (mips_handle_option): Update to new hook interface.
22698         * config/mn10300/mn10300.c: Include opts.h.
22699         (mn10300_handle_option): Update to new hook interface.
22700         * config/pa/pa.c: Include opts.h.
22701         (pa_handle_option): Update to new hook interface.
22702         * config/pdp11/pdp11.c: Include opts.h.
22703         (pdp11_handle_option): Update to new hook interface.
22704         * config/rs6000/rs6000.c: Include opts.h.
22705         (rs6000_handle_option): Update to new hook interface.
22706         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22707         * config/rx/rx.c: Include opts.h.
22708         (rx_handle_option): Update to new hook interface.
22709         * config/s390/s390.c: Include opts.h.
22710         (s390_handle_option): Update to new hook interface.
22711         * config/score/score.c: Include opts.h.
22712         (score_handle_option): Update to new hook interface.
22713         * config/sh/sh.c: Include opts.h.
22714         (sh_handle_option): Update to new hook interface.
22715         * config/sparc/sparc.c: Include opts.h.
22716         (sparc_handle_option): Update to new hook interface.
22717         * config/v850/v850.c: Include opts.h.
22718         (v850_handle_option): Update to new hook interface.
22719
22720 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22721
22722         * gcc.c (driver_unknown_option_callback): Only permit and save
22723         unknown -Wno- options.
22724         (driver_wrong_lang_callback): Save options directly instead of via
22725         driver_unknown_option_callback.
22726
22727 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22728
22729         * combine.c (simplify_set): Try harder to find the best CC mode when
22730         simplifying a nested COMPARE on the RHS.
22731
22732 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
22733
22734         * config/alpha/gnu.h: Remove.
22735         * config/arc: Remove directory.
22736         * config/arm/netbsd.h: Remove.
22737         * config/arm/t-pe: Remove.
22738         * config/crx: Remove directory.
22739         * config/i386/netbsd.h: Remove.
22740         * config/m68hc11: Remove directory.
22741         * config/m68k/uclinux-oldabi.h: Remove.
22742         * config/mcore/mcore-pe.h: Remove.
22743         * config/mcore/t-mcore-pe: Remove.
22744         * config/netbsd-aout.h: Remove.
22745         * config/rs6000/gnu.h: Remove.
22746         * config/sh/sh-symbian.h: Remove.
22747         * config/sh/symbian-base.c: Remove.
22748         * config/sh/symbian-c.c: Remove.
22749         * config/sh/symbian-cxx.c: Remove.
22750         * config/sh/symbian-post.h: Remove.
22751         * config/sh/symbian-pre.h: Remove.
22752         * config/sh/t-symbian: Remove.
22753         * config/svr3.h: Remove.
22754         * config/vax/netbsd.h: Remove.
22755         * config.build: Don't handle i[34567]86-*-pe.
22756         * config.gcc: Remove handling of deprecations for most deprecated
22757         targets.
22758         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22759         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22760         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22761         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22762         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22763         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22764         Remove cases.
22765         * config.host: Don't handle i[34567]86-*-pe.
22766         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22767         (ASM_SPEC32): Don't handle -mcall-gnu.
22768         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22769         -mcall-gnu.
22770         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22771         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22772         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22773         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22774         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22775         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22776         conditional on SYMBIAN.
22777         * configure.ac: Don't handle powerpc*-*-gnu*.
22778         * configure: Regenerate.
22779         * doc/extend.texi (interrupt attribute): Don't mention CRX.
22780         * doc/install-old.texi (m6811, m6812): Don't mention.
22781         * doc/install.texi (arc-*-elf*): Don't document multilib option.
22782         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22783         (m68k-uclinuxoldabi): Don't mention.
22784         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22785         Remove.
22786         (-mcall-gnu): Remove.
22787         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22788         families): Remove constraint documentation.
22789
22790 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
22791
22792         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22793         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22794         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22795
22796 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22797
22798         PR target/48226
22799         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22800         vector when peeking at the next token for vector, don't expand the
22801         keywords.
22802
22803 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
22804
22805         * config/avr/avr-protos.h (expand_epilogue): Change prototype
22806         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22807         * config/avr/avr.c (init_cumulative_args)
22808         (avr_function_arg_advance): Use it.
22809         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22810         sibcall epilogues.
22811         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22812         (avr_function_ok_for_sibcall): ...this new function.
22813         (avr_lookup_function_attribute1): New static Function.
22814         (avr_naked_function_p, interrupt_function_p)
22815         (signal_function_p, avr_OS_task_function_p)
22816         (avr_OS_main_function_p): Use it.
22817         * config/avr/avr.md ("sibcall", "sibcall_value")
22818         ("sibcall_epilogue"): New expander.
22819         ("*call_insn", "*call_value_insn"): New insn.
22820         ("call_insn", "call_value_insn"): Remove
22821         ("call", "call_value", "epilogue"): Change expander to handle
22822         sibling calls.
22823
22824 2011-03-21  Nick Clifton  <nickc@redhat.com>
22825
22826         * doc/invoke.texi (Overall Options): Move closing brace to end of
22827         options list.
22828         (Optimization Options): Add missing @gol.
22829         (Directory Options): Likewise.
22830         (i386 and x86-64 Options): Likewise.
22831         (RS6000 and PowerPC Options): Likewise.
22832         (i386 and x86-64 Windows Options): Likewise.
22833         (V850 Options): Add text missing from descriptions.
22834
22835 2011-03-22  Richard Henderson  <rth@redhat.com>
22836
22837         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22838         (avr_incoming_return_addr_rtx): New.
22839         (emit_push_byte): New.
22840         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
22841         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
22842         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
22843         (emit_pop_byte): New.
22844         (expand_epilogue): Use it.  Pop frame pointer by bytes.
22845         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22846         (INCOMING_RETURN_ADDR_RTX): New.
22847         (INCOMING_FRAME_SP_OFFSET): New.
22848         (ARG_POINTER_CFA_OFFSET): New.
22849         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22850         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22851         (pophi): Remove.
22852
22853         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22854
22855 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22856
22857         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22858         (FUNCTION_ARG_ADVANCE): Likewise.
22859         * tm.texi.in: Change references to them to hook references.
22860         * tm.texi: Regenerate.
22861         * targhooks.c (default_function_arg): Eliminate check for target
22862         macro.
22863         (default_function_incoming_arg): Likewise.
22864         (default_function_arg_advance): Likewise.
22865         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22866         (function_arg_advance): Likewise.
22867         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22868
22869 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
22870
22871         * tree.c (build_call_1): New function.
22872         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22873
22874 2011-03-22  Richard Guenther  <rguenther@suse.de>
22875
22876         PR tree-optimization/48228
22877         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22878         for single-arg PHIs.
22879
22880 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
22881
22882         PR rtl-optimization/48143
22883         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22884         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22885         sse2_cvtps2pd): Likewise.
22886
22887 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22888
22889         * recog.c (canonicalize_change_group): Use validate_unshare_change.
22890
22891 2011-03-22  Richard Guenther  <rguenther@suse.de>
22892
22893         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22894         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22895         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22896         and REALIGN_LOAD_EXPR.
22897         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22898         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22899         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22900         DOT_PROD_EXPR case ...
22901         (expand_expr_real_2): ... here.
22902         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22903         and REALIGN_LOAD_EXPR.
22904         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22905         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22906         (vect_create_epilog_for_reduction): Likewise.
22907         (vectorizable_reduction): Likewise.
22908         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22909         * tree-vect-stmts.c (vectorizable_load): Likewise.
22910
22911 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
22912
22913         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22914
22915 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22916
22917         * config/s390/s390.c (s390_delegitimize_address): Fix offset
22918         handling for PLTOFF/GOTOFF.
22919
22920 2011-03-22  Nick Clifton  <nickc@redhat.com>
22921
22922         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22923         trailing backslash from the end of the macro definition.
22924
22925 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22926
22927         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22928         and PLT unspecs.
22929
22930 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
22931
22932         * expr.h (prepare_operand): Move to...
22933         * optabs.h (prepare_operand): ...here and change the insn code
22934         parameter from "int" to "enum insn_code".
22935         (insn_operand_matches): Declare.
22936         * expr.c (init_expr_target): Use insn_operand_matches.
22937         (compress_float_constant): Likewise.
22938         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22939         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22940         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22941         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22942         Likewise.
22943         (gen_cond_trap): Likewise.
22944         (prepare_operand): Likewise.  Change icode to an insn_code.
22945         (insn_operand_matches): New function.
22946         * reload.c (find_reloads_address_1): Use insn_operand_matches.
22947         * reload1.c (gen_reload): Likewise.
22948         * targhooks.c (default_secondary_reload): Likewise.
22949
22950 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22951
22952         * config/alpha/alpha.md (unspec): New define_c_enum.
22953         (unspecv): Ditto.
22954
22955 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
22956
22957         PR debug/48214
22958         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22959         between a call and its CALL_ARG_LOCATION note.
22960
22961 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
22962
22963         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22964
22965 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22966
22967         PR c/42544
22968         PR c/48197
22969         * c-common.c (shorten_compare): If primopN is first sign-extended
22970         to opN and then zero-extended to result type, set primopN to opN.
22971
22972 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
22973
22974         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22975         for barrier handlers.
22976
22977 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22978
22979         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22980         UNSPEC constants to be in the unspec enumeration, and redefine
22981         all UNSPECV constants to be in the unspecv enumeration, so that
22982         dumps print which unspec/unspec_volatile this is.
22983         * config/rs6000/vector.md (UNSPEC_*): Ditto.
22984         * config/rs6000/paired.md (UNSPEC_*): Ditto.
22985         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22986         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22987         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22988
22989         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22990         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22991         UNSPECV_LWSYNC, since these are used as unspec_volatile.
22992         * config/rs6000/sync.md (isync, lwsync): Ditto.
22993
22994 2011-03-21  Richard Guenther  <rguenther@suse.de>
22995
22996         * params.def (lto-min-partition): Fix typo.
22997
22998 2011-03-21  Richard Guenther  <rguenther@suse.de>
22999
23000         PR c/47939
23001         * c-decl.c (grokdeclarator): Drop to the main variant only
23002         for array types.  Drop flag_gen_aux_info check.
23003
23004 2011-03-21  Richard Guenther  <rguenther@suse.de>
23005
23006         PR translation/47911
23007         * params.def (lto-partitions): Fix typo.
23008         (lto-min-partition): Fix wording.
23009
23010 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
23011
23012         * config/rs6000/t-freebsd: Remove duplication from file.
23013
23014 2011-03-21  Richard Guenther  <rguenther@suse.de>
23015
23016         PR middle-end/47661
23017         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23018
23019 2011-03-21  Richard Guenther  <rguenther@suse.de>
23020
23021         PR lto/48210
23022         * params.def (lto-partitions): Require at least 1 partition.
23023
23024 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23025
23026         * gthr-solaris.h: Remove.
23027         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23028         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23029         (LIB_SPEC): Likewise.
23030         * config/sol2.opt (threads): Remove.
23031         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23032         (sparc*-*-solaris2*): Likewise.
23033         * configure.ac (enable_threads): Enable solaris support.
23034         * configure: Regenerate.
23035         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23036         * doc/install.texi (Configuration, --enable-threads=lib): Remove
23037         solaris.
23038
23039 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23040
23041         * config.gcc: Obsolete *-*-solaris2.8*.
23042         * doc/install.texi (Specific, *-*-solaris2*): Document it.
23043
23044 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23045
23046         PR bootstrap/48135
23047         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23048         reference.  Solaris 8 perl works.
23049
23050 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23051
23052         PR bootstrap/48135
23053         * doc/install.texi (Prerequisites): Move jar etc. up.
23054         Explain support library version requirements.
23055
23056 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23057
23058         PR bootstrap/48135
23059         * doc/install.texi (Prerequisites): Move Perl to build
23060         requirements.  Always necessary on Solaris 2 with Sun ld.
23061
23062 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23063
23064         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23065         binutils 2.21.
23066         (Specific, i?86-*-solaris2.[89]): Likewise.
23067         (Specific, i?86-*-solaris2.10): Likewise.
23068         (Specific, mips-sgi-irix6): Likewise.
23069         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23070         Update for binutils 2.21.
23071
23072 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23073
23074         * configure.ac (gcc_cv_lto_plugin): Fix typo.
23075         Allow -fuse-linker-plugin for non-default plugin linker.
23076         * configure: Regenerate.
23077
23078 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
23079
23080         PR bootstrap/48167
23081         * gengtype.c (files_rules): Added rule for cp/parser.h.
23082
23083 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23084
23085         PR target/48213
23086         * config/s390/s390.c (s390_delegitimize_address): Don't call
23087         lowpart_subreg if orig_x has BLKmode.
23088
23089 2011-03-21  Kai Tietz  <ktietz@redhat.com>
23090
23091         PR target/12171
23092         * doc/plugins.texi: Adjust documentation for plugin register_callback.
23093         * tree.h (attribute_spec): Add new member affects_type_identity.
23094         * attribs.c (empty_attribute_table): Adjust attribute_spec
23095         initializers.
23096         * config/alpha/alpha.c: Likewise.
23097         * config/arc/arc.c: Likewise.
23098         * config/arm/arm.c: Likewise.
23099         * config/avr/avr.c: Likewise.
23100         * config/bfin/bfin.c: Likewise.
23101         * config/crx/crx.c: Likewise.
23102         * config/darwin.h: Likewise.
23103         * config/h8300/h8300.c: Likewise.
23104         * config/i386/cygming.h: Likewise.
23105         * config/i386/i386.c: Likewise.
23106         * config/ia64/ia64.c: Likewise.
23107         * config/m32c/m32c.c: Likewise.
23108         * config/m32r/m32r.c: Likewise.
23109         * config/m68hc11/m68hc11.c: Likewise.
23110         * config/m68k/m68k.c: Likewise.
23111         * config/mcore/mcore.c: Likewise.
23112         * config/mep/mep.c: Likewise.
23113         * config/microblaze/microblaze.c: Likewise.
23114         * config/mips/mips.c: Likewise.
23115         * config/rs6000/rs6000.c: Likewise.
23116         * config/rx/rx.c: Likewise.
23117         * config/sh/sh.c: Likewise.
23118         * config/sol2.h: Likewise.
23119         * config/sparc/sparc.c: Likewise.
23120         * config/spu/spu.c: Likewise.
23121         * config/stormy16/stormy16.c: Likewise.
23122         * config/v850/v850.c: Likewise.
23123
23124 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
23125
23126         * simplify-rtx.c (simplify_binary_operation_1): Handle
23127         (xor (and A B) C) case when B and C are both constants.
23128
23129 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
23130
23131         * tree-dfa.c (add_referenced_var): Fix typo in comment.
23132
23133 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23134
23135         PR bootstrap/48168
23136         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23137
23138 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
23139
23140         PR rtl-optimization/48156
23141         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23142         assume df and df_lr are not NULL.
23143
23144 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23145
23146         PR debug/48023
23147         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23148         between a call and its CALL_ARG_LOCATION note.
23149
23150 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23151
23152         PR debug/48178
23153         * config/sh/sh.c (find_barrier): Don't emit a constant pool
23154         between a call and its corresponding CALL_ARG_LOCATION note.
23155
23156 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
23157
23158         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23159         instead of loop. Use HARD_REGISTER_NUM_P predicate.
23160         * haifa-sched.c (setup_ref_regs): Ditto.
23161         * caller-save.c (add_used_regs_1): Ditto.
23162         * dse.c (look_for_hardregs): Ditto.
23163         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23164         * sched-rgn.c (check_live_1): Ditto.
23165
23166 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23167
23168         * c-decl.c (diagnose_mismatched_decls): Give an error for
23169         redefining a typedef with variably modified type.
23170
23171 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
23172
23173         * c-decl.c (grokfield): Don't allow typedefs for structures or
23174         unions with no tag by default.
23175         * doc/extend.texi (Unnamed Fields): Update.
23176
23177 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
23178
23179         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23180         Rewrite using indirect functions.
23181         (lwp_slwpcb): Ditto.
23182         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23183         (avx_vinsertf128<mode>): Ditto.
23184
23185 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23186
23187         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23188         unspecs.
23189
23190 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23191
23192         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23193         splitting between a call and its corresponding CALL_ARG_LOCATION note.
23194
23195 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
23196
23197         PR rtl-optimization/48170
23198         * gcse.c (hoist_code): Remove bogus asserts.
23199
23200 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
23201
23202         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23203         computation for prologue/epilogue.
23204
23205 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23206
23207         * Makefile.in (check-consistency): Remove.
23208
23209 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
23210
23211         PR debug/48176
23212         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23213         arange_table_in_use is 0, but either text_section_used or
23214         cold_text_section_used is true.  Don't call it if
23215         !info_section_emitted.
23216
23217 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
23218
23219         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23220         FUNCTION_VALUE_REGNO_P): Remove.
23221         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23222         Remove.
23223         * config/avr/avr.c (avr_ret_register): Make static inline.
23224         (avr_function_value_regno_p): New function.
23225         (avr_libcall_value): Make static. Add 'func' argument.
23226         (avr_function_value): Make static. Rename 'func' argument to
23227         'fn_decl_or_type', forward it to avr_libcall_value. Call
23228         avr_ret_register function instead of RET_REGISTER macro.
23229         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23230
23231 2011-03-18  Jason Merrill  <jason@redhat.com>
23232
23233         PR c++/23372
23234         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23235
23236 2011-03-18  Richard Guenther  <rguenther@suse.de>
23237
23238         * doc/install.texi (--enable-gold): Remove.
23239         (--with-plugin-ld): Document.
23240         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23241
23242 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
23243
23244         PR middle-end/47790
23245         * expr.c (optimize_bitfield_assignment_op): Revamp to work
23246         again after expansion changes.
23247
23248 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
23249
23250         * combine.c (try_combine): Do simplification only call of
23251         subst() on i2 even when i1 is present. Update comments.
23252
23253 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23254
23255         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23256         and UNSPEC_PCREL_SYMOFF.
23257
23258 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23259
23260         * config/s390/s390.md: Use define_c_enum for the unspec constant
23261         definitions.
23262
23263 2011-03-18  Richard Henderson  <rth@redhat.com>
23264             Jakub Jelinek  <jakub@redhat.com>
23265
23266         PR bootstrap/48161
23267         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23268         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23269
23270 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
23271
23272         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23273         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23274         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23275         Change return type to bool.
23276         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23277
23278 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23279
23280         PR debug/48163
23281         * var-tracking.c (prepare_call_arguments): If CALL target
23282         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23283         pc instead of looking it up using cselib_lookup and use
23284         Pmode for it if x has VOIDmode.
23285         * dwarf2out.c (gen_subprogram_die): If also both first and
23286         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23287
23288         PR debug/48163
23289         * function.c (assign_parms): For data.passed_pointer parms
23290         use MEM of data.entry_parm instead of data.entry_parm itself
23291         as DECL_INCOMING_RTL.
23292         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23293         also when passed and declared mode is the same, DECL_RTL
23294         is a MEM with pseudo as address and DECL_INCOMING_RTL is
23295         a MEM too.
23296
23297 2011-03-16  Jeff Law  <law@redhat.com>
23298
23299         PR rtl-optimization/37273
23300         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23301         handle them like argument loads from stack slots.  Do not double
23302         count memory for memory constants and argument loads from stack slots.
23303
23304 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23305
23306         PR debug/48160
23307         * var-tracking.c (prepare_call_arguments): Check SUBREG.
23308
23309 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         PR target/48171
23312         * config/i386/i386.opt: Add Save to -mavx and -mfma.
23313
23314 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23315
23316         PR bootstrap/48153
23317         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23318         if dwarf_strict.
23319         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23320         Clear call_arg_locations and call_arg_loc_last always.
23321
23322         PR middle-end/48152
23323         * var-tracking.c (prepare_call_arguments): If argument needs to be
23324         passed by reference, adjust argtype and mode.
23325
23326 2011-03-17  Richard Guenther  <rguenther@suse.de>
23327
23328         PR middle-end/48134
23329         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23330         a value make sure to fold the statement.
23331
23332 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
23333
23334         PR target/43872
23335         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23336         return condition with !cfun->calls_alloca.
23337
23338 2011-03-17  Richard Guenther  <rguenther@suse.de>
23339
23340         PR bootstrap/48148
23341         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23342         origin for decls in other ltrans units.
23343         (input_varpool_node): Likewise.
23344
23345 2011-03-17  Richard Guenther  <rguenther@suse.de>
23346
23347         PR middle-end/48165
23348         * tree-object-size.c (compute_object_offset): Properly return
23349         the offset operand of MEM_REFs as sizetype.
23350
23351 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
23352
23353         PR rtl-optimization/48141
23354         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23355         * dse.c: Include params.h.
23356         (active_local_stores_len): New variable.
23357         (add_wild_read, dse_step1): Clear it when setting active_local_stores
23358         to NULL.
23359         (record_store, check_mem_read_rtx): Decrease it when removing
23360         from the chain.
23361         (scan_insn): Likewise.  Increase it when adding to chain, if it
23362         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23363         set active_local_stores to NULL before the addition.
23364         * Makefile.in (dse.o): Depend on $(PARAMS_H).
23365
23366         PR rtl-optimization/48141
23367         * dse.c (record_store): If no positions are needed in an insn
23368         that cannot be deleted, at least unchain it from active_local_stores.
23369
23370 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
23371
23372         PR debug/47510
23373         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23374         (lookup_type_die_strip_naming_typedef): ... here.
23375         (get_context_die): Use it.
23376         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23377         the anonymous struct named by the naming typedef.
23378
23379 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23380
23381         PR target/48154
23382         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23383         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23384
23385 2011-03-16  Jeff Law  <law@redhat.com>
23386
23387         * tree-vrp.c (identify_jump_threads): Slightly simplify type
23388         check for operands of conditional.  Allow type to be a pointer.
23389
23390 2011-03-16  Richard Guenther  <rguenther@suse.de>
23391
23392         PR tree-optimization/48149
23393         * fold-const.c (fold_binary_loc): Fold
23394         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23395
23396 2011-03-16  Richard Guenther  <rguenther@suse.de>
23397
23398         PR tree-optimization/26134
23399         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23400         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23401         (non_rewritable_mem_ref_base): Handle complex type component
23402         accesses, constrain offsets for vector and complex extracts
23403         more properly.
23404
23405 2011-03-16  Richard Guenther  <rguenther@suse.de>
23406
23407         PR tree-optimization/48146
23408         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23409         operands avoiding the need for renaming.
23410
23411 2011-03-16  Richard Guenther  <rguenther@suse.de>
23412
23413         * gimple-fold.c (maybe_fold_reference): Open-code relevant
23414         constant folding.  Move MEM_REF canonicalization first.
23415         Rely on fold_const_aggregate_ref for initializer folding.
23416         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23417
23418 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23419
23420         PR middle-end/48136
23421         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23422         arg0/arg1 or their arguments are always fold converted to matching
23423         types.
23424
23425         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23426         to nargs.
23427
23428 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23429
23430         PR lto/46944
23431         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23432         Handle in-tree gold.
23433         (ld_vers): Extract binutils version for gold.
23434         (gcc_cv_ld_hidden): Handle gold here.
23435         (gcc_cv_lto_plugin): Determine level of linker plugin support.
23436         * configure: Regenerate.
23437         * config.in: Regenerate.
23438         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23439         -fuse-linker-plugin otherwise.
23440         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
23441         (LINK_COMMAND_SPEC): Use it.
23442         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23443
23444 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
23445
23446         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23447         * calls.c: Remove debug.h include.
23448         (emit_call_1): Don't call virtual_call_token debug hook.
23449         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23450         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23451         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23452         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23453         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23454         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23455         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23456         dwarf2out_virtual_call): Remove.
23457         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23458         copy_call_info and virtual_call hooks.
23459         (dwarf2out_init): Don't initialize vcall_insn_table,
23460         debug_dcall_section and debug_vcall_section.
23461         (prune_unused_types): Don't mark nodes from dcall_table.
23462         (dwarf2out_finish): Don't output dcall or vcall tables.
23463         * final.c (final_scan_insn): Don't call direct_call or
23464         virtual_call debug hooks.
23465         * debug.h (struct gcc_debug_hooks): Remove direct_call,
23466         virtual_call_token, copy_call_info and virtual_call hooks.
23467         (debug_nothing_uid): Remove prototype.
23468         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23469         copy_call_info and virtual_call hooks.
23470         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23471         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23472         * debug.c (do_nothing_debug_hooks): Likewise.
23473         (debug_nothing_uid): Remove.
23474         * doc/invoke.texi (-fenable-icf-debug): Remove.
23475         * common.opt (-fenable-icf-debug): Likewise.
23476
23477         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23478         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23479         call's MEM.  Handle functions returning aggregate through a hidden
23480         first pointer.  For virtual calls add clobbered pc to call arguments
23481         chain.
23482         * dwarf2out.c (gen_subprogram_die): Emit
23483         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23484         can't be emitted.
23485
23486         PR debug/45882
23487         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23488         * rtl.h (ENTRY_VALUE_EXP): Define.
23489         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23490         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23491         * print-rtl.c (print_rtx): Likewise.
23492         * gengtype.c (adjust_field_rtx_def): Likewise.
23493         * var-tracking.c (vt_add_function_parameter): Adjust
23494         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23495         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23496         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23497         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23498         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23499
23500         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23501         Call var_location debug hook even on CALL_INSNs.
23502         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23503         * rtl.def (ENTRY_VALUE): New.
23504         * dwarf2out.c: Include cfglayout.h.
23505         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23506         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23507         (struct call_arg_loc_node): New type.
23508         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23509         tail_call_site_count): New variables.
23510         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23511         DW_TAG_GNU_call_site_parameter.
23512         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23513         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23514         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23515         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23516         and DW_AT_GNU_all_source_call_sites.
23517         (mem_loc_descriptor): Handle ENTRY_VALUE.
23518         (add_src_coords_attributes): Don't add enything if
23519         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23520         (dwarf2out_abstract_function): Save and clear call_arg_location,
23521         call_site_count and tail_call_site_count around dwarf2out_decl call.
23522         (gen_call_site_die): New function.
23523         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23524         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23525         (dwarf2out_function_decl): Clear call_arg_locations,
23526         call_arg_loc_last, set call_site_count and tail_call_site_count
23527         to -1 and free block_map.
23528         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23529         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
23530         followed by any real instructions.
23531         (dwarf2out_begin_function): Set call_site_count and
23532         tail_call_site_count to 0.
23533         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23534         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23535         attempt to force a DIE for it and worst case remove the attribute.
23536         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23537         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23538         the decl itself.
23539         * var-tracking.c: Include tm_p.h.
23540         (vt_stack_adjustments): For calls call note_register_arguments.
23541         (argument_reg_set): New variable.
23542         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23543         ensure the VALUE is resolved.
23544         (call_arguments): New variable.
23545         (prepare_call_arguments): New function.
23546         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23547         (struct expand_loc_callback_data): Add ignore_cur_loc field.
23548         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23549         always use the best expression.
23550         (vt_expand_loc): Add ignore_cur_loc argument.
23551         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23552         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23553         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23554         note for all calls.
23555         (vt_add_function_parameter): Use cselib_lookup_from_insn.
23556         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23557         argument.  Don't call cselib_preserve_only_values and
23558         cselib_reset_table.
23559         (note_register_arguments): New function.
23560         (vt_initialize): Compute argument_reg_set.  Call
23561         vt_add_function_parameters before processing basic blocks instead of
23562         afterwards.  For calls call prepare_call_arguments before calling
23563         cselib_process_insn.
23564         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23565         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23566         (var-tracking.o): Depend on $(TM_P_H).
23567         * cfglayout.h (insn_scope): New prototype.
23568         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23569         * cfglayout.c (insn_scope): No longer static.
23570         * insn-notes.def (CALL_ARG_LOCATION): New.
23571         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23572         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23573         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23574         nothing for DECL_EXTERNAL BLOCK_VARS.
23575
23576 2011-03-16  Alan Modra  <amodra@gmail.com>
23577
23578         PR target/45844
23579         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23580         create invalid offset address for vsx splat insn.
23581         * config/rs6000/predicates.md (splat_input_operand): New.
23582         * config/rs6000/vsx.md (vsx_splat_*): Use it.
23583
23584 2011-03-15  Xinliang David Li  <davidxl@google.com>
23585
23586         PR c/47837
23587         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23588         (normalize_preds): New function.
23589         (is_use_properly_guarded): Normalize def predicates.
23590
23591 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23592
23593         PR target/46788
23594         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23595         in the output template.
23596
23597 2011-03-15  Richard Guenther  <rguenther@suse.de>
23598
23599         PR middle-end/47650
23600         * tree-pretty-print.c (dump_function_declaration): Properly
23601         dump unprototyped and varargs function types.
23602
23603 2011-03-15  Richard Guenther  <rguenther@suse.de>
23604
23605         PR tree-optimization/13954
23606         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23607         and friends.
23608
23609 2011-03-15  Richard Guenther  <rguenther@suse.de>
23610
23611         PR tree-optimization/48037
23612         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23613         selects into BIT_FIELD_REFs.
23614         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23615         vector select.
23616
23617 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
23618
23619         PR tree-optimization/48129
23620         * builtins.c (fold_builtin_snprintf): Convert to type of
23621         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23622         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23623
23624 2011-03-15  Richard Guenther  <rguenther@suse.de>
23625
23626         PR tree-optimization/41490
23627         * tree-ssa-dce.c (propagate_necessity): Handle returns without
23628         value but with VUSE.
23629         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23630         return statements.
23631         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23632         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23633         * tree-tailcall.c (find_tail_calls): Ignore returns.
23634
23635 2011-03-15  Richard Guenther  <rguenther@suse.de>
23636
23637         PR middle-end/48031
23638         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23639         or variable-indexed array accesses when in gimple form.
23640
23641 2011-03-15  Richard Guenther  <rguenther@suse.de>
23642
23643         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23644
23645 2011-03-15  Alan Modra  <amodra@gmail.com>
23646
23647         PR target/48032
23648         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23649         presume symbol_refs without a symbol_ref_decl are suitably
23650         aligned, nor other trees we may see here.  Handle anchor symbols.
23651         (legitimate_constant_pool_address_p): Comment.  Add mode param.
23652         Check cmodel=medium addresses.  Adjust all calls.
23653         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23654         creating cmodel=medium optimized access to locals.
23655         * config/rs6000/constraints.md (R): Pass QImode to
23656         legitimate_constant_pool_address_p.
23657         * config/rs6000/predicates.md (input_operand): Pass mode to
23658         legitimate_constant_pool_address_p.
23659         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23660         Update prototype.
23661
23662 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23663
23664         PR target/48053
23665         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23666         64-bit constants being loaded into registers other than GPRs such
23667         as loading 0 into a VSX register.
23668
23669 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23670
23671         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23672
23673 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23674
23675         PR middle-end/47917
23676         * builtins.c (fold_builtin_snprintf): New function.
23677         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23678         (fold_builtin_4): Likewise.
23679
23680         PR middle-end/38878
23681         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23682         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
23683         and C - X == X also strip nops from +/-/p+ operand.
23684         When optimizing -X == C, fold C to arg0's type.
23685
23686         PR debug/47946
23687         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23688         emit it as add_AT_int instead of add_AT_unsigned.
23689
23690 2011-03-14  Tom Tromey  <tromey@redhat.com>
23691
23692         * unwind-dw2.c: Include sys/sdt.h if it exists.
23693         (_Unwind_DebugHook): Use STAP_PROBE2.
23694         * config.in, configure: Rebuild.
23695         * configure.ac: Check for sys/sdt.h.
23696
23697 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
23698
23699         * config/i386/i386.md (ROUND_FLOOR): New constant.
23700         (ROUND_CEIL): Ditto.
23701         (ROUND_TRUNC): Ditto.
23702         (ROUND_MXCSR): Ditto.
23703         (ROUND_NO_EXC): Ditto.
23704         (rint<mode>2): Use new defines instead of numerical constants.
23705         (floor<mode>2): Ditto.
23706         (ceil<mode>2): Ditto.
23707         (btrunc<mode>2): Ditto.
23708         * config/i386/i386-builtin-types.def: Define ROUND function type
23709         aliases.
23710         * config/i386/i386.c (enum ix86_builtins): Add
23711         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23712         (struct builtin_description): Add
23713         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23714         (ix86_expand_sse_round): New static function.
23715         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23716         function types.
23717         (ix86_builtin_vectorized_function): Handle
23718         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23719
23720 2011-03-14  Tom Tromey  <tromey@redhat.com>
23721
23722         * c-parser.c (c_parser_asm_string_literal): Clear
23723         warn_overlength_strings.
23724
23725 2011-03-14  Tom Tromey  <tromey@redhat.com>
23726
23727         * c-parser.c (disable_extension_diagnostics): Save
23728         warn_overlength_strings.
23729         (restore_extension_diagnostics): Restore warn_overlength_strings.
23730
23731 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23732
23733         * BASE-VER: Change to 4.7.0.
23734
23735 2011-03-14  Richard Guenther  <rguenther@suse.de>
23736
23737         PR middle-end/48098
23738         * tree.c (build_vector_from_val): Adjust assert to requirements
23739         and reality.
23740
23741 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
23742
23743         PR bootstrap/48102
23744         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23745
23746 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
23747
23748         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23749         terms of target_flags_explicit. Adjust copyright year.
23750
23751         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23752         * config/rs6000/t-freebsd: New file. Add override for
23753         LIB2FUNCS_EXTRA.
23754
23755 2011-03-13  Chris Demetriou  <cgd@google.com>
23756
23757         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23758         (-fno-diagnostics-show-option): this, to reflect current default.
23759         (-Werror=): Update text about -fno-diagnostics-show-option.
23760
23761 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
23762
23763         PR target/48053
23764         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23765         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23766         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23767         mode is not V2DImode or V2DFmode.
23768         (vspltis_constant): Do not handle V2DImode and V2DFmode.
23769         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23770         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23771         registers to 0.
23772         (movdi_internal64): Likewise.
23773
23774 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
23775
23776         PR tree-optimization/47127
23777         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23778         parameter.
23779         (set_cloog_options): Same.
23780         (scop_to_clast): Same.
23781         (print_clast_stmt): Do not call cloog_state_malloc and
23782         cloog_state_free.
23783         (print_generated_program): Same.
23784         (gloog): Same.
23785         * graphite-clast-to-gimple.h (cloog_state): Declared.
23786         (scop_to_clast): Adjust declaration.
23787         * graphite.c (cloog_state): Defined here.
23788         (graphite_initialize): Call cloog_state_malloc.
23789         (graphite_finalize): Call cloog_state_free.
23790
23791 2011-03-11  Jason Merrill  <jason@redhat.com>
23792
23793         * attribs.c (lookup_attribute_spec): Take const_tree.
23794         * tree.h: Adjust.
23795
23796 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
23797
23798         * config/sparc/sparc.c (sparc_option_override): Use
23799         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23800
23801 2011-03-11  Richard Guenther  <rguenther@suse.de>
23802
23803         PR tree-optimization/48067
23804         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23805         multiplication result will be only used once on the target
23806         stmt.
23807
23808 2011-03-11  Richard Guenther  <rguenther@suse.de>
23809
23810         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23811
23812 2011-03-11  Richard Guenther  <rguenther@suse.de>
23813
23814         PR lto/48073
23815         * tree.c (find_decls_types_r): Do not walk types only reachable
23816         from IDENTIFIER_NODEs.
23817
23818 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23819
23820         PR middle-end/48044
23821         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23822         all vnode->force_output nodes as needed.
23823
23824 2011-03-11  Jason Merrill  <jason@redhat.com>
23825
23826         PR c++/48069
23827         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23828         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23829
23830 2011-03-11  Martin Jambor  <mjambor@suse.cz>
23831
23832         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23833         cgraph_node.
23834
23835 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
23836
23837         PR tree-optimization/48063
23838         * ipa-inline.c (cgraph_decide_inlining): Don't try to
23839         inline functions called once if !tree_can_inline_p (node->callers).
23840
23841 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
23842
23843         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23844         extra_objs.
23845         * config/score/score3.c: Delete.
23846         * config/score/score3.h: Delete.
23847         * config/score/mul-div.S: Delete.
23848         * config/score/sfp-machine.h: Add new file.
23849         * config/score/constraints.md: Add new file.
23850         * config/score/t-score-softfp: Add new file.
23851         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23852         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23853         (score7_extra_constraint): Delete.
23854         (score7_option_override): Remove unused code.
23855         * config/score/score.c: Remove score3 and score5 define and code.
23856         * config/score/score.h: Remove score3 and score5 define and code.
23857         * config/score/score.md: Remove score3 template and unusual insn.
23858         * config/score/score.opt: Remove score3 and score5 options.
23859
23860 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23861
23862         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23863         when _HPUX_SOURCE is defined.
23864         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23865
23866 2011-03-10  Jason Merrill  <jason@redhat.com>
23867
23868         PR c++/48029
23869         * stor-layout.c (layout_type): Don't set structural equality
23870         on arrays of incomplete type.
23871         * tree.c (type_hash_eq): Handle comparing them properly.
23872
23873 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
23874
23875         PR debug/48043
23876         * config/s390/s390.c (s390_delegitimize_address): Make sure the
23877         result mode matches original rtl mode.
23878
23879 2011-03-10  Nick Clifton  <nickc@redhat.com>
23880
23881         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23882         (andsi3, andsi3_flags): Fix timings for three operand alternative.
23883
23884 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
23885
23886         PR rtl-optimization/47866
23887         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23888         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23889         if target wasn't scalar.
23890         * function.c (assign_stack_temp_for_type): Assert that neither
23891         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23892         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23893         macro.
23894         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23895
23896 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23897
23898         * config/s390/s390-protos.h (s390_label_align): New prototype.
23899         * config/s390/s390.c (s390_label_align): New function.
23900         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23901
23902 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
23903
23904         PR target/47755
23905         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23906         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
23907         (output_vec_const_move): Ditto.
23908
23909 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
23910
23911         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23912         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23913         * config/mips/mips.c (mips_preferred_reload_class): Make static.
23914         Change 'rclass' argument and result type to reg_class_t.
23915         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23916
23917 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
23918
23919         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23920         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23921         (TARGET_MEMORY_MOVE_COST): Define.
23922         (avr_register_move_cost, avr_memory_move_cost): New Functions.
23923
23924 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
23925
23926         PR debug/47881
23927         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23928         removed anything.
23929
23930         PR tree-optimization/48022
23931         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23932         for EQ/NE_EXPR.
23933
23934 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
23935
23936         PR debug/47991
23937         * var-tracking.c (find_use_val): Return NULL for
23938         cui->sets && cui->store_p BLKmode MEMs.
23939
23940 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
23941
23942         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23943         Remove.
23944         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23945         xstormy16_print_operand_address): Remove.
23946         * config/stormy16/stormy16.c (xstormy16_print_operand,
23947         xstormy16_print_operand_address): Make static.
23948         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23949
23950 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
23951
23952         PR target/47862
23953         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23954         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23955         before definition.
23956
23957 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
23958
23959         PR bootstrap/48000
23960         * cfgloopmanip.c (fix_bb_placements): Return immediately
23961         if FROM is BASE_LOOP's header.
23962
23963 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
23964
23965         * gimplify.c (gimplify_function_tree): Fix building calls
23966         to __builtin_return_address.
23967
23968 2011-03-07  Alan Modra  <amodra@gmail.com>
23969
23970         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23971         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23972         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23973         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23974         return_mode args.
23975         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23976         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23977         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23978         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23979         * config/rs6000/rs6000.c
23980         (rs6000_elf_end_indicate_exec_stack): Rename to..
23981         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
23982         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
23983         (rs6000_file_start): ..here.
23984         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23985         file scope variables.
23986         (call_ABI_of_interest): New function.
23987         (init_cumulative_args): Set above vars when function return value
23988         is a float, vector, or small struct.
23989         (rs6000_function_arg_advance_1): Likewise for function args.
23990         (rs6000_va_start): Set rs6000_passes_float if variable arg function
23991         references float args.
23992
23993 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23994
23995         * doc/cfg.texi: Remove "See" before @ref.
23996         * doc/invoke.texi: Likewise.
23997
23998 2011-03-05  Jason Merrill  <jason@redhat.com>
23999
24000         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24001
24002 2011-03-05  Anthony Green  <green@moxielogic.com>
24003
24004         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24005
24006 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
24007
24008         PR rtl-optimization/47899
24009         * cfgloopmanip.c (fix_bb_placements): Fix first argument
24010         to flow_loop_nested_p when moving the loop upward.
24011
24012 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
24013
24014         PR target/47719
24015         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
24016
24017 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
24018
24019         PR tree-optimization/47967
24020         * ipa-cp.c (build_const_val): Return NULL instead of creating
24021         VIEW_CONVERT_EXPR for mismatching sizes.
24022         (ipcp_create_replace_map): Return NULL if build_const_val failed.
24023         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24024         give up on versioning.
24025
24026 2011-03-05  Alan Modra  <amodra@gmail.com>
24027
24028         PR target/47986
24029         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24030         full cmodel medium/large lo_sum + high addresses.
24031
24032 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24033
24034         * config/s390/s390.c (s390_decompose_address): Reject non-literal
24035         pool references in UNSPEC_LTREL_OFFSET.
24036
24037 2011-03-04  Jan Hubicka  <jh@suse.cz>
24038
24039         PR lto/47497
24040         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24041         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24042         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24043         Add node pointers.
24044         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24045         cgraph_add_thunk): Add node pointers.
24046         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24047         associated to right node.
24048         (input_node): Update use of cgraph_same_body_alias
24049         and cgraph_add_thunk.
24050
24051 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24052
24053         * config/i386/i386.opt (mprefer-avx128): New flag.
24054         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24055         modes when the flag -mprefer-avx128 is on.
24056
24057 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
24058
24059         * dwarf2out.c (compare_loc_operands): Fix address handling.
24060
24061 2011-03-04  Alan Modra  <amodra@gmail.com>
24062
24063         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24064
24065 2011-03-04  Richard Guenther  <rguenther@suse.de>
24066
24067         PR middle-end/47968
24068         * expmed.c (extract_bit_field_1): Prefer vector modes that
24069         vec_extract patterns can handle.
24070
24071 2011-03-04  Richard Guenther  <rguenther@suse.de>
24072
24073         PR middle-end/47975
24074         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24075
24076 2011-03-04  Richard Henderson  <rth@redhat.com>
24077
24078         * explow.c (emit_stack_save): Remove 'after' parameter.
24079         (emit_stack_restore): Likewise.
24080         * expr.h: Update to match.
24081         * builtins.c, calls.c, stmt.c: Likewise.
24082         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24083         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24084         * function.c (expand_function_end): Insert the emit_stack_save
24085         sequence before parm_birth_insn instead of after.
24086
24087 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
24088
24089         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24090         (ssse3_pmaddubsw128): Ditto.
24091         (ssse3_pmaddubsw): Ditto.
24092
24093 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
24094
24095         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24096
24097 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
24098
24099         PR c/47963
24100         * gimplify.c (omp_add_variable): Only call omp_notice_variable
24101         on TYPE_SIZE_UNIT if it is a DECL.
24102
24103         PR debug/47283
24104         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24105         first operand is not is_gimple_mem_ref_addr, try to fold it.
24106         If the operand still isn't is_gimple_mem_ref_addr, clear
24107         MEM_EXPR on op0.
24108
24109 2011-03-03  Richard Guenther  <rguenther@suse.de>
24110
24111         PR middle-end/47283
24112         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24113         match comment.
24114         (refs_may_alias_p_1): For release branches return true if
24115         we are confused by our input.
24116
24117 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24118
24119         * config/s390/s390.c (s390_function_value): Rename to ...
24120         (s390_function_and_libcall_value): ... this.
24121         (s390_function_value): New function.
24122         (s390_libcall_value): New function.
24123         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24124         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24125         target macro definitions.
24126         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24127
24128 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
24129
24130         * config/i386/freebsd64.h (CC1_SPEC): Define.
24131         * config/i386/linux64.h (CC1_SPEC): Define.
24132         * config/i386/x86-64.h (CC1_SPEC): Don't define.
24133
24134 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
24135
24136         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24137         Remove.
24138         * config/stormy16/stormy16.c: Include reload.h.
24139         (xstormy16_memory_move_cost): New function.
24140         (TARGET_MEMORY_MOVE_COST): Define.
24141
24142 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
24143
24144         PR rtl-optimization/47925
24145         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24146         with side effects.  Remove the more-specific check for volatile asms.
24147
24148 2011-03-02  Alan Modra  <amodra@gmail.com>
24149
24150         PR target/47935
24151         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24152         toc relative addresses for valid offsets.
24153
24154 2011-03-01  Richard Guenther  <rguenther@suse.de>
24155
24156         PR tree-optimization/47890
24157         * tree-vect-loop.c (get_initial_def_for_induction): Set
24158         related stmt properly.
24159
24160 2011-03-01  Richard Guenther  <rguenther@suse.de>
24161
24162         PR lto/47924
24163         * lto-streamer.c (lto_record_common_node): Also register
24164         the canonical type.
24165
24166 2011-03-01  Richard Guenther  <rguenther@suse.de>
24167
24168         PR lto/46911
24169         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24170         Do not stream DECL_ABSTRACT_ORIGIN.
24171         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24172         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24173         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24174         Do not stream DECL_ABSTRACT_ORIGIN.
24175         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24176         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24177
24178 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
24179
24180         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24181         FUNCTION_VALUE_REGNO_P): Remove.
24182         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24183         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24184         Add 'outgoing' argument.
24185         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24186         function.
24187         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24188         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24189
24190 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
24191
24192         PR debug/28047
24193         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24194         (lookup_filename): Likewise.
24195         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24196
24197 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
24198             Jakub Jelinek  <jakub@redhat.com>
24199
24200         PR middle-end/47893
24201         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24202         (assign_stack_local_1): Change last argument type to int.
24203         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24204         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
24205         don't record padding space into frame_space_list nor use those areas.
24206         (assign_stack_local): Adjust caller.
24207         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24208         of assign_stack_local, pass 0 as last argument.
24209         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24210         callers.
24211
24212 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
24213
24214         PR debug/47283
24215         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24216         Use target address_mode and pointer_mode hooks instead of hardcoded
24217         Pmode and ptr_mode.  Handle some simple cases of extending if
24218         POINTERS_EXTEND_UNSIGNED < 0.
24219         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24220         Call convert_debug_memory_address.
24221         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24222         convert_debug_memory_address.
24223
24224         PR middle-end/46790
24225         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24226         * configure: Regenerated.
24227         * config.in: Regenerated.
24228         * varasm.c (default_function_section): Return NULL
24229         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24230
24231 2011-02-28  Martin Jambor  <mjambor@suse.cz>
24232
24233         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24234         the description to match the printed values.
24235
24236 2011-02-28  Richard Guenther  <rguenther@suse.de>
24237
24238         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24239         of the copied scope tree.
24240
24241 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24242
24243         * doc/extend.texi (Function Attributes): Avoid deeply (and
24244         wrongly) nested tables.
24245
24246 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
24247
24248         PR middle-end/47903
24249         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24250         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24251         r isn't op0 nor op1.
24252
24253 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24254
24255         * config/avr/avr.md: Remove magic comment for emacs.
24256
24257 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
24258
24259         PR target/45261
24260         * config/avr/avr.c (avr_option_override): Use error on bad options.
24261         (avr_help): New function.
24262         (TARGET_HELP): Define.
24263
24264 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
24265
24266         PR target/42240
24267         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24268         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24269
24270 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
24271
24272         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24273         (ARM Options): Ditto.
24274         (i386 and x86-64 Options): Ditto.
24275         (RX Options): Ditto.
24276         (SPARC Options): Ditto.
24277
24278 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
24279
24280         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24281         FreeBSD 6 and later.  Generally use cpu generic.
24282
24283 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24284
24285         * doc/cpp.texi: Update copyright years.
24286
24287 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24288
24289         PR target/46898
24290         * config/lm32/lm32.md (ashrsi3): Added needed variable.
24291
24292 2011-02-25  Jon Beniston  <jon@beniston.com>
24293
24294         PR target/46898
24295         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24296         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24297         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24298         (lm32_block_move_inline): Add type cast to remove warning.
24299         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24300         (gen_int_relational): Move declarations to start of function.
24301
24302 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
24303
24304         PR tree-optimization/45470
24305         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24306         can throw internally only.
24307         * tree-vect-stmts.c (vectorizable_call): Likewise.
24308
24309 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
24310
24311         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24312         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24313         * config/stormy16/stormy16-protos.h
24314         (xstormy16_preferred_reload_class): Remove.
24315         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24316         static. Change 'rclass' argument and return type to reg_class_t.
24317         (TARGET_PREFERRED_RELOAD_CLASS,
24318         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24319
24320 2011-02-24  Richard Guenther  <rguenther@suse.de>
24321
24322         * lto-streamer-in.c (input_bb): Do not find referenced vars
24323         in debug statements.
24324
24325 2011-02-23  Jason Merrill  <jason@redhat.com>
24326
24327         * common.opt (fabi-version): Document v5 and v6.
24328
24329 2011-02-23  Richard Guenther  <rguenther@suse.de>
24330
24331         PR tree-optimization/47849
24332         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24333
24334 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24335
24336         * opts-common.c (decode_cmdline_option): Print empty string
24337         argument as "" in decoded->orig_option_with_args_text.
24338         * gcc.c (execute): Print empty string argument as ""
24339         in the verbose output.
24340         (do_spec_1): Keep empty string argument.
24341
24342 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
24343
24344         * config.gcc: Declare score-* and crx-* obsolete.
24345
24346 2011-02-23  Jie Zhang  <jie@codesourcery.com>
24347
24348         PR rtl-optimization/47763
24349         * web.c (web_main): Ignore naked clobber when replacing register.
24350
24351 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
24352
24353         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24354         Remove.
24355
24356 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24357
24358         PR doc/47848
24359         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24360
24361 2011-02-22  Mike Stump  <mikestump@comcast.net>
24362
24363         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24364         assembler.
24365         * configure: Regenerate.
24366
24367 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
24368
24369         PR rtl-optimization/46002
24370         * ira-color.c (update_copy_costs): Change class intersection
24371         test to reg_class_contents[] test of 'hard_regno'.
24372
24373 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
24374
24375         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24376         than Driver option.
24377         * config/hpux11.opt (mt): Likewise.
24378         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24379         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24380         * config/vax/elf.opt (mno-asm-pic): Likewise.
24381         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24382
24383 2011-02-21  Mike Stump  <mikestump@comcast.net>
24384
24385         PR target/47822
24386         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24387         tree so we can get save the type.
24388         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24389         for CFString instead of trying to use past the end of the builtins.
24390         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24391         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24392         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24393         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24394         Rename to darwin_builtin_cfstring.
24395         (darwin_init_cfstring_builtins): Return the built type.
24396
24397 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
24398
24399         PR target/47840
24400         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24401         (_mm256_insert_epi64): Use _mm_insert_epi64.
24402
24403 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
24404
24405         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24406         * config/stormy16/stormy16-protos.h
24407         (xstormy16_mode_dependent_address_p): Remove.
24408         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24409         Make static. Change return type to bool. Change argument type to
24410         const_rtx. Remove dead code.
24411         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24412
24413 2011-02-21  Richard Guenther  <rguenther@suse.de>
24414
24415         PR lto/47820
24416         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24417         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24418         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24419         TUs context.
24420         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24421         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24422
24423 2011-02-20  Richard Guenther  <rguenther@suse.de>
24424
24425         PR lto/47822
24426         * tree.c (free_lang_data_in_decl): Clean builtins from
24427         the TU decl BLOCK_VARS.
24428
24429 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
24430
24431         PR debug/47620
24432         PR debug/47630
24433         * haifa-sched.c (fix_tick_ready): Skip tick computation
24434         for debug insns.
24435
24436 2011-02-19  Richard Guenther  <rguenther@suse.de>
24437
24438         PR lto/47647
24439         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24440         Remove lazy BLOCK_VARS streaming.
24441         (lto_input_ts_block_tree_pointers): Likewise.
24442         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24443
24444 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24445
24446         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24447
24448 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
24449
24450         * config/i386/biarch32.h, config/i386/mach.h,
24451         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24452
24453 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
24454
24455         PR target/47800
24456         * config/i386/i386.md (peephole2 for shift and plus): Use
24457         operands[1] original mode in the first insn.
24458
24459 2011-02-18  Mike Stump  <mikestump@comcast.net>
24460
24461         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24462
24463 2011-02-18  Jan Hubicka  <jh@suse.cz>
24464
24465         PR middle-end/47788
24466         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24467         to zero when the function is not inlinable at all.
24468
24469 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24470
24471         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24472         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24473         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24474         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24475         * config/pa/t-pa64: Likewise.
24476         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24477
24478 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24479
24480         PR driver/47787
24481         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24482
24483 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24484
24485         PR target/47792
24486         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24487
24488 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
24489
24490         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24491         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24492         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24493         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24494         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24495         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24496         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24497         m32r_load_postinc_p, m32r_store_preinc_predec_p,
24498         m32r_legitimate_address_p): New functions.
24499         * config/m32r/constraints.md (constraint "S"): Don't use
24500         STORE_PREINC_PREDEC_P.
24501         (constraint "U"): Don't use LOAD_POSTINC_P.
24502
24503 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
24504
24505         PR rtl-optimization/46178
24506         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24507         compute ira_hard_regno_cover_class[].
24508
24509 2011-02-18  Richard Guenther  <rguenther@suse.de>
24510
24511         PR lto/47798
24512         * lto-streamer.h (lto_global_var_decls): Declare.
24513         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24514         statics for global var processing.
24515
24516 2011-02-18  Richard Guenther  <rguenther@suse.de>
24517
24518         PR tree-optimization/47737
24519         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24520         edge dominance check.
24521
24522 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
24523
24524         PR debug/47780
24525         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24526         avoid invalid rtx sharing.
24527
24528 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
24529
24530         * doc/cpp.texi (Obsolete Features): Add background on the
24531         origin of assertions.
24532
24533 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
24534
24535         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24536         objc_abi == 2.
24537         * config/darwin.c (output_objc_section_asm_op): Added support for
24538         ABI v1 and v2.
24539         (is_objc_metadata): New.
24540         (darwin_objc2_section): New.
24541         (darwin_objc1_section): New.
24542         (machopic_select_section): Added support for ABI v1 and v2.
24543         (darwin_emit_objc_zeroed): New.
24544         (darwin_output_aligned_bss): Detect objc metadata and treat it
24545         appropriately.
24546         (darwin_asm_output_aligned_decl_common): Same.
24547         (darwin_asm_output_aligned_decl_local): Same.
24548         * config/darwin-sections.def: Updated for ABI v1 and v2.
24549         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24550         compiling Objective-C code for the NeXT runtime, default to using
24551         ABI version 0 for 32-bit, and version 2 for 64-bit.
24552
24553 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24554
24555         * common.opt (optimize_fast): New Variable.
24556         * opts.c (default_options_optimization): Use opts->x_optimize_fast
24557         instead of local variable ofast.
24558
24559 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
24560
24561         * doc/invoke.texi (fobjc-abi-version): Documented.
24562         (fobjc-nilcheck): Documented.
24563         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24564         version.
24565
24566 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24567
24568         PR driver/47390
24569         * common.opt (export-dynamic): New Driver option.
24570         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24571
24572 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24573
24574         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24575
24576 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
24577             Jan Hubicka  <jh@suse.cz>
24578
24579         PR debug/47106
24580         PR debug/47402
24581         * cfgexpand.c (account_used_vars_for_block): Remove.
24582         (estimated_stack_frame_size): Use referenced vars.
24583         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24584         that were referenced in the original function.  Test src_fn
24585         rather than cfun.  Drop redundant get_var_ann.
24586         (setup_one_parameter): Drop redundant get_var_ann.
24587         (declare_return_variable): Likewise.
24588         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24589         (copy_arguments_for_versioning): Drop redundant get_var_ann.
24590         * ipa-inline.c (compute_inline_parameters): Do not compute
24591         disregard_inline_limits here.
24592         (compute_inlinable_for_current, pass_inlinable): New.
24593         (pass_inline_parameters): Require PROP_referenced_vars.
24594         * cgraphunit.c (cgraph_process_new_functions): Don't run
24595         compute_inline_parameters explicitly unless function is in SSA form.
24596         (cgraph_analyze_function): Set .disregard_inline_limits.
24597         * tree-sra.c (convert_callers): Compute inliner parameters
24598         only for functions already in SSA form.
24599
24600 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24601
24602         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24603         -mlittle-endian-data.
24604
24605 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
24606
24607         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24608         -mno-fpu, not -fpu and -no-fpu.
24609         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24610         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24611
24612 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
24613
24614         PR target/43653
24615         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24616         input reload with PLUS RTX.
24617
24618 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24619
24620         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24621         of InverseVar(MDMX).
24622
24623 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24624
24625         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24626         --m4-340.
24627
24628 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24629
24630         * config/mn10300/mn10300.opt (mno-crt0): New.
24631
24632 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24633
24634         * config/m68k/uclinux.opt (static-libc): New Driver option.
24635
24636 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24637
24638         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24639
24640 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
24641
24642         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24643         %{muser-extend-enabled}.
24644
24645 2011-02-16  Richard Guenther  <rguenther@suse.de>
24646
24647         PR tree-optimization/47738
24648         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24649         the TODO from tree_predictive_commoning.
24650
24651 2011-02-15  Jeff Law  <law@redhat.com>
24652
24653         Revert
24654         2011-01-25  Jeff Law  <law@redhat.com>
24655
24656         PR rtl-optimization/37273
24657         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24658         handle them like argument loads from stack slots.  Do not double
24659         count memory for memory constants and argument loads from stack slots.
24660
24661 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24662
24663         PR target/47755
24664         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24665         mode for vector constants.  Remove code that checks for TImode.
24666
24667 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24668
24669         PR debug/47106
24670         PR debug/47402
24671         * cgraph.h (compute_inline_parameters): Return void.
24672         * ipa-inline.c (compute_inline_parameters): Adjust.
24673
24674 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24675
24676         PR debug/47106
24677         PR debug/47402
24678         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24679         rather than decl.
24680         * cfgexpand.c (estimated_stack_frame_size): Likewise.
24681         * ipa-inline.c (compute_inline_parameters): Adjust.
24682
24683 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24684
24685         PR debug/47106
24686         PR debug/47402
24687         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24688         Adjust all users.  Pass FN to...
24689         * tree-flow-inline.h (first_referenced_var): ... this.  Add
24690         fn argument.
24691         * ipa-struct-reorg.c: Adjust.
24692         * tree-dfa.c: Adjust.
24693         * tree-into-ssa.c: Adjust.
24694         * tree-sra.c: Adjust.
24695         * tree-ssa-alias.c: Adjust.
24696         * tree-ssa-live.c: Adjust.
24697         * tree-ssa.c: Adjust.
24698         * tree-ssanames.c: Adjust.
24699         * tree-tailcall.c: Adjust.
24700
24701 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
24702
24703         PR debug/47106
24704         PR debug/47402
24705         * tree-flow.h (referenced_var_lookup): Add fn parameter.
24706         Adjust all callers.
24707         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24708         * tree-flow-inline.h: Adjust.
24709         * gimple-pretty-print.c: Adjust.
24710         * tree-into-ssa.c: Adjust.
24711         * tree-ssa.c: Adjust.
24712         * cfgexpand.c: Adjust.
24713
24714 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24715
24716         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24717         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24718         (EXTRA_CONSTRAINT): Delete.
24719         * config/iq2000/constraints.md: New file.
24720         * config/iq2000/iq2000.md: Include it.
24721         (define_insn ""): Delete.
24722         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24723         unsupported constraint letters from patterns.
24724         (call_value, call_value_internal1): Likewise.
24725         (call_value_multiple_internal1): Likewise.
24726
24727 2011-02-15  Nick Clifton  <nickc@redhat.com>
24728
24729         * config/mn10300/mn10300.c: Include tm-constrs.h.
24730         (struct liw_data): New data structure describing an LIW candidate
24731         instruction.
24732         (extract_bundle): Use struct liw_data.  Allow small integer
24733         operands for some instructions.
24734         (check_liw_constraints): Use struct liw_data.  Remove swapped
24735         parameter.  Add comments describing the checks.  Fix bug when
24736         assigning the source of liw1 to the source of liw2.
24737         (liw_candidate): Delete.  Code moved into extract_bundle.
24738         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
24739         before swapping.
24740         * config/mn10300/predicates.md (liw_operand): New predicate.
24741         Allows registers and small integer constants.
24742         * config/mn10300/constraints.md (O): New constraint.  Accetps
24743         integers in the range -8 to +7 inclusive.
24744         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24745         for moving a small integer into a register.  Give this alternative
24746         LIW attributes.
24747         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24748         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24749         using the J,K,L and M constraints,
24750         (liw): Remove SI mode on second operands to allow for HI and QI
24751         mode values.
24752         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
24753         instruction.
24754
24755 2011-02-15  Richard Guenther  <rguenther@suse.de>
24756
24757         PR tree-optimization/47743
24758         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24759         for a non-type-compatible VN lookup bail out.
24760
24761 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24762
24763         * config/fr30/constraints.md: New file.
24764         * config/fr30/fr30.md: Include it.
24765         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24766         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24767         (EXTRA_CONSTRAINT): Delete.
24768
24769 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
24770
24771         * config/frv/constraints.md: New file.
24772         * config/frv/predicates.md: Include it.
24773         * config/frv/frv.c (reg_class_from_letter): Delete.
24774         (frv_option_override): Don't initialize it.
24775         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24776         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24777         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24778         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24779         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24780         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24781         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24782         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24783         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24784         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24785         (REG_CLASS_FROM_CONSTRAINT): Delete.
24786
24787 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
24788
24789         PR middle-end/47581
24790         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24791         if frame size is 0 in a leaf function.
24792
24793 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24794
24795         PR pch/14940
24796         * config/alpha/host-osf.c: New file.
24797         * config/alpha/x-osf: New file.
24798         * config.host (alpha*-dec-osf*): Use it.
24799
24800 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24801
24802         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24803         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24804         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24805         (rx_mode_dependent_address_p): ...this. Make static. Change argument
24806         type to const_rtx.
24807         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24808
24809 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24810
24811         * config/stormy16/constraints.md: New file.
24812         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24813         Use satisfies_constraint_Q and satisfies_constraint_R.
24814         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24815         Delete.
24816         (xstormy16_legitiamte_address_p): Declare.
24817         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24818         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24819         (EXTRA_CONSTRAINT): Delete.
24820         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24821         Un-staticize.
24822         (xstormy16_extra_constraint_p): Delete.
24823
24824 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
24825
24826         PR tree-optimization/46494
24827         * loop-unroll.c (split_edge_and_insert): Adjust comment.
24828         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24829         (pass_rtl_loop_done): Add TODO_verify_flow.
24830         * fwprop.c (pass_rtl_fwprop): Likewise.
24831         * modulo-sched.c (pass_sms): Likewise.
24832         * tree-ssa-dom.c (pass_dominator): Likewise.
24833         * tree-ssa-loop-ch.c (pass_ch): Likewise.
24834         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24835         (pass_tree_loop_done): Likewise.
24836         * tree-ssa-pre.c (execute_pre): Likewise.
24837         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24838         * tree-ssa-sink.c (pass_sink_code): Likewise.
24839         * tree-vrp.c (pass_vrp): Likewise.
24840
24841 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24842
24843         * config/v850/constraints.md: New file.
24844         * config/v850/v850.md: Include it.
24845         * config/v850/predicates.md (reg_or_0_operand): Use
24846         satisfies_constraint_G.
24847         (special_symbolref_operand): Use satisfies_constraint_K.
24848         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24849         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24850         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24851         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24852         (EXTRA_CONSTRAINT): Delete.
24853         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24854         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24855         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24856
24857 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
24858
24859         PR target/47696
24860         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24861         description.
24862
24863 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
24864
24865         * config/mcore/constraints.md: New file.
24866         * config/mcore/mcore.md: Include it.
24867         * config/mcore/mcore.c (reg_class_from_letter): Delete.
24868         * config/mcore/mcore.h (reg_class_from_letter): Delete.
24869         (REG_CLASS_FROM_LETTER): Delete.
24870         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24871         insn_const_int_ok_for_constraint.
24872         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24873         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24874         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24875         (EXTRA_CONSTRAINT): Delete.
24876
24877 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24878
24879         PR ada/41929
24880         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24881         (IS_SIGHANDLER): Define.
24882         (sparc64_is_sighandler): New function, split off from
24883         sparc64_fallback_frame_state.
24884         (sparc_is_sighandler): New function, split off from
24885         sparc_fallback_frame_state.
24886         (sparc64_fallback_frame_state): Merge with ...
24887         (sparc_fallback_frame_state): ... this into ...
24888         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24889         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
24890         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
24891         stack instead of hardcoded offsets.
24892
24893 2011-02-14  Andriy Gapon  <avg@freebsd.org>
24894
24895         PR target/45808
24896         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24897
24898 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24899
24900         * configure: Regenerate.
24901
24902 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
24903
24904         PR driver/45731
24905         * gcc.c (asm_options): Correct spec matching --target-help.
24906
24907 2011-02-12  Martin Jambor  <mjambor@suse.cz>
24908
24909         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24910         to gimple call error.
24911
24912 2011-02-12  Mike Stump  <mikestump@comcast.net>
24913
24914         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24915         comments in backslash regions.
24916
24917 2011-02-12  Mike Stump  <mikestump@comcast.net>
24918             Jakub Jelinek  <jakub@redhat.com>
24919             Iain Sandoe  <iains@gcc.gnu.org>
24920
24921         PR target/47324
24922         * dwarf2out.c (output_cfa_loc): When required, apply the
24923         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24924         (output_loc_sequence): Likewise.
24925         (output_loc_operands_raw): Likewise.
24926         (output_loc_sequence_raw): Likewise.
24927         (output_cfa_loc): Likewise.
24928         (output_loc_list): Suppress register number adjustment when
24929         calling output_loc_sequence()
24930         (output_die): Likewise.
24931
24932 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
24933
24934         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24935         Remove macros.
24936         * config/xtensa/xtensa.c (xtensa_register_move_cost,
24937         xtensa_memory_move_cost): New functions.
24938         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24939
24940 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
24941
24942         PR lto/47225
24943         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24944         in the current directory.
24945         * configure: Rebuilt.
24946
24947 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24948
24949         * config/darwin.c (darwin_override_options): Add a hunk missed
24950         from the commit of r168571.  Trim comment line lengths and
24951         correct indents of the preceding block.
24952
24953 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
24954
24955         * gcc.c (driver_handle_option): Concatenate the argument to -F with
24956         the switch.
24957
24958 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24959
24960         * common.opt (nostartfiles): New Driver option.
24961
24962 2011-02-11  Xinliang David Li  <davidxl@google.com>
24963
24964         PR tree-optimization/47707
24965         * tree-chrec.c (convert_affine_scev): Keep type precision.
24966
24967 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
24968
24969         PR tree-optimization/47420
24970         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24971
24972 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
24973
24974         PR rtl-optimization/47614
24975         * rtl.h (check_for_inc_dec): Declare.
24976         * dse.c (check_for_inc_dec): Externalize...
24977         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24978         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24979
24980 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
24981
24982         PR driver/47678
24983         * gcc.c (main): Do not compile inputs if there were errors in
24984         option handling.
24985         * opts-common.c (read_cmdline_option): Check for wrong language
24986         after other error checks.
24987
24988 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
24989
24990         * cgraph.c: Fix comment typos.
24991         * cgraph.h: Likewise.
24992         * cgraphunit.c: Likewise.
24993         * ipa-cp.c: Likewise.
24994         * ipa-inline.c: Likewise.
24995         * ipa-prop.c: Likewise.
24996         * ipa-pure-const.c: Likewise.
24997         * ipa-ref.c: Likewise.
24998         * ipa-reference.c: Likewise.
24999
25000 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25001
25002         PR debug/47684
25003         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25004
25005 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25006
25007         PR testsuite/47400
25008         * doc/sourcebuild.texi (Require Support): Document
25009         dg-require-ascii-locale.
25010
25011 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
25012
25013         * doc/lto.texi (Write summary): Fix missing parentheses.
25014
25015 2011-02-10  DJ Delorie  <dj@redhat.com>
25016
25017         * config/m32c/m32c.c (m32c_option_override): Disable
25018         -fcombine-stack-adjustments until flag value tracking and compare
25019         optimization can be rewritten.
25020
25021 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
25022
25023         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25024         PROCESSOR_POWER7.
25025         (PROCESSOR_DEFAULT64): Likewise.
25026
25027 2011-02-10  Richard Henderson  <rth@redhat.com>
25028
25029         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25030         change from 2011-02-03.
25031         * config/rx/rx.c (flags_from_code): Likewise.
25032         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25033         is valid, n/pz otherwise.
25034         (rx_select_cc_mode): Return CCmode if Y is not zero.
25035
25036 2011-02-10  Richard Guenther  <rguenther@suse.de>
25037
25038         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25039
25040 2011-02-10  Richard Guenther  <rguenther@suse.de>
25041
25042         PR tree-optimization/47677
25043         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25044
25045 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
25046
25047         PR target/47665
25048         * combine.c (make_compound_operation): Only change shifts into
25049         multiplication for SCALAR_INT_MODE_P.
25050
25051 2011-02-10  Jie Zhang  <jie@codesourcery.com>
25052
25053         PR testsuite/47622
25054         Revert
25055         2011-02-05  Jie Zhang  <jie@codesourcery.com>
25056         PR debug/42631
25057         * web.c (entry_register): Don't clobber the number of the
25058         first uninitialized reference in used[].
25059
25060 2011-02-09  Richard Guenther  <rguenther@suse.de>
25061
25062         PR tree-optimization/47664
25063         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25064         all edges again.
25065
25066 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
25067
25068         PR target/46481
25069         PR target/47032
25070         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25071         PROCESSOR_POWER7.
25072         (PROCESSOR_DEFAULT64): Same.
25073         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25074
25075 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25076
25077         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25078
25079 2011-02-09  Martin Jambor  <mjambor@suse.cz>
25080
25081         PR middle-end/45505
25082         * tree-sra.c (struct access): New flags grp_scalar_read and
25083         grp_scalar_write.  Changed description of assignment read and write
25084         flags.
25085         (dump_access): Dump new flags, reorder all of them.
25086         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25087         to detect multiple scalar reads.
25088         (analyze_access_subtree): Use the new scalar read write flags instead
25089         of the old flags.  Adjusted comments.
25090
25091 2011-02-08  DJ Delorie  <dj@redhat.com>
25092
25093         PR target/47548
25094         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25095         patterns.
25096
25097 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25098
25099         * config/m68k/uclinux.opt: New.
25100         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25101
25102 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25103
25104         * config/cris/elf.opt (sim): New Driver option.
25105
25106 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25107
25108         * config/xtensa/elf.opt: New.
25109         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25110
25111 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25112
25113         * config/vax/elf.opt: New.
25114         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25115
25116 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25117
25118         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25119
25120 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25121
25122         * config/gnu-user.opt: New.
25123         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25124         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25125         *-*-uclinux*): Use gnu-user.opt.
25126
25127 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
25128
25129         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25130         * config/i386/gnu.h (CPP_SPEC): Likewise.
25131
25132 2011-02-08  Ian Lance Taylor  <iant@google.com>
25133
25134         * common.opt (fcx-limited-range): Add SetByCombined flag.
25135         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25136         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25137         (fassociative-math, freciprocal-math): Likewise.
25138         (funsafe-math-optimizations): Likewise.
25139         * opth-gen.awk: Handle SetByCombined.
25140         * optc-gen.awk: Likewise.
25141         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25142         (set_unsafe_math_optimizations_flags): Likewise.
25143         * doc/options.texi (Option properties): Document SetByCombined.
25144
25145 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
25146
25147         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25148         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25149         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25150         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25151         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25152
25153 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
25154
25155         PR tree-optimization/46834
25156         PR tree-optimization/46994
25157         PR tree-optimization/46995
25158         * graphite-sese-to-poly.c (used_outside_reduction): New.
25159         (detect_commutative_reduction): Call used_outside_reduction.
25160         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25161         translate_scalar_reduction_to_array only when at least one
25162         loop-phi/close-phi tuple has been detected.
25163
25164 2011-02-08  Richard Guenther  <rguenther@suse.de>
25165
25166         PR middle-end/47639
25167         * tree-vect-generic.c (expand_vector_operations_1): Update
25168         stmts here ...
25169         (expand_vector_operations): ... not here.  Cleanup EH info
25170         and the CFG if required.
25171
25172 2011-02-08  Richard Guenther  <rguenther@suse.de>
25173
25174         PR tree-optimization/47641
25175         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25176         require type compatibility.
25177
25178 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25179
25180         * gimple-low.c (lower_function_body): Don't remove the location of
25181         the return statement here.
25182         (lower_gimple_return): Do it here instead but only if the return
25183         statement is actually used twice.
25184
25185 2011-02-08  Richard Guenther  <rguenther@suse.de>
25186
25187         PR tree-optimization/47632
25188         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25189         unused up_to_stmt parameter, return whether cfg-cleanup is
25190         necessary, remove EH info properly.
25191         (forward_propagate_into_gimple_cond): Adjust caller.
25192         (forward_propagate_into_cond): Likewise.
25193         (forward_propagate_comparison): Likewise.
25194         (tree_ssa_forward_propagate_single_use_vars): Make
25195         forward_propagate_comparison case similar to the two others.
25196
25197 2011-02-08  Nick Clifton  <nickc@redhat.com>
25198
25199         * config/mn10300/mn10300.opt (mliw): New command line option.
25200         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25201         (liw_bundling): New automaton.
25202         (liw): New attribute.
25203         (liw_op): New attribute.
25204         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25205         (movsi_internal): Add LIW attributes.
25206         (andsi3): Likewise.
25207         (iorsi3): Likewise.
25208         (xorsi3): Likewise.
25209         (addsi3): Separate register and immediate alternatives.
25210         Add LIW attributes.
25211         (subsi3): Likewise.
25212         (cmpsi): Likewise.
25213         (aslsi3): Likewise.
25214         (lshrsi3): Likewise.
25215         (ashrsi3): Likewise.
25216         (liw): New pattern.
25217         * config/mn10300/mn10300.c (liw_op_names): New
25218         (mn10300_print_operand): Handle 'W' operand descriptor.
25219         (extract_bundle): New function.
25220         (check_liw_constraints): New function.
25221         (liw_candidate): New function.
25222         (mn10300_bundle_liw): New function.
25223         (mn10300_reorg): New function.
25224         (TARGET_MACHINE_DEPENDENT_REORG): Define.
25225         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25226         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25227         __LIW__ or __NO_LIW__.
25228         * doc/invoke.texi: Describe the -mliw command line option.
25229
25230 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25231
25232         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25233         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25234         pthread_mutex_unlock): Remove.
25235         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25236         * config/pa/t-pa64: Likewise.
25237         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25238         shared libc if not linking against libpthread.
25239         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25240
25241 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
25242
25243         PR target/47558
25244         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25245         on 10.6 and later to ensure that we always use the unwinder from
25246         the system.  Only add -no_compact_unwind when tarteting darwin
25247         10.6 or later.
25248
25249 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
25250
25251         PR target/46997
25252         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25253         (vec_interleave_lowv2sf): Ditto.
25254         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25255         (vec_extract_oddv2sf): Ditto.
25256
25257 2011-02-07  Mike Stump  <mikestump@comcast.net>
25258
25259         PR target/42333
25260         Add __ieee_divdc3 entry point.
25261         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25262         entry point.
25263         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25264         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25265         * config/darwin.c (darwin_rename_builtins): Add.
25266         * config/darwin-protos.h (darwin_rename_builtins): Add.
25267
25268 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
25269
25270         PR target/47636
25271         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25272         for the condition.
25273
25274 2011-02-07  Mike Stump  <mikestump@comcast.net>
25275
25276         * config/darwin.opt (mmacosx-version-min): Update default OS version.
25277
25278 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
25279
25280         PR target/47534
25281         * config/avr/libgcc.S (exit): Move .endfunc
25282
25283 2011-02-07  Richard Guenther  <rguenther@suse.de>
25284
25285         PR tree-optimization/47615
25286         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25287         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25288         (run_scc_vn): Initialize it.
25289         (visit_reference_op_load): Use it.
25290         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25291
25292 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25293
25294         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25295         DImode trapping arithmetic libfuncs.
25296
25297 2011-02-07  Richard Guenther  <rguenther@suse.de>
25298
25299         PR tree-optimization/47621
25300         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25301         two duplicates ...
25302         (execute_update_addresses_taken): ... here.  Make it more
25303         conservative in what we accept.
25304
25305 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25306
25307         * config/sparc/freebsd.h (ASM_SPEC): Define.
25308         * config/sparc/vxworks.h (ASM_SPEC): Define.
25309
25310 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
25311
25312         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25313
25314 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
25315
25316         * doc/invoke.texi: Remove reference to compiler internals from
25317         user documentation.
25318
25319         * reg-notes.def: Remove REG_VALUE_PROFILE.
25320         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25321
25322 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
25323
25324         PR middle-end/47610
25325         * varasm.c (default_section_type_flags): If decl is NULL,
25326         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25327
25328 2011-02-05  Jie Zhang  <jie@codesourcery.com>
25329
25330         PR debug/42631
25331         * web.c (entry_register): Don't clobber the number of the
25332         first uninitialized reference in used[].
25333
25334 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
25335
25336         PR tree-optimization/46194
25337         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25338         (build_classic_dist_vector_1): Do not represent classic distance
25339         vectors when the access functions are variating in different loops.
25340
25341 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25342
25343         * config/mips/iris6.opt: New.
25344         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25345
25346 2011-02-04  Richard Henderson  <rth@redhat.com>
25347             Steve Ellcey  <sje@cup.hp.com>
25348
25349         PR target/46997
25350         * config/ia64/predicates.md (mux1_brcst_element): New.
25351         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25352         * config/ia64/ia64.c (ia64_unpack_assemble): New.
25353         (ia64_unpack_sign): New.
25354         (ia64_expand_unpack): Rewrite using new routines.
25355         (ia64_expand_widen_sum): Ditto.
25356         (ia64_expand_dot_prod_v8qi): Ditto.
25357         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25358         routines, add endian check.
25359         (pmpy2_even): Rename from pmpy2_r, add endian check.
25360         (pmpy2_odd): Rename from pmpy2_l, add endian check.
25361         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25362         (vec_widen_smult_hi_v4hi): Ditto.
25363         (vec_widen_umult_lo_v4hi): Ditto.
25364         (vec_widen_umult_hi_v4hi): Ditto.
25365         (mulv2si3): Change endian checks.
25366         (sdot_prodv4hi): Rewrite with new calls.
25367         (udot_prodv4hi): New.
25368         (vec_pack_ssat_v4hi): Add endian check.
25369         (vec_pack_usat_v4hi): Ditto.
25370         (vec_pack_ssat_v2si): Ditto.
25371         (max1_even): Rename from max1_r, add endian check.
25372         (max1_odd): Rename from max1_l, add endian check.
25373         (*mux1_rev): Format change.
25374         (*mux1_mix): Ditto.
25375         (*mux1_shuf): Ditto.
25376         (*mux1_alt): Ditto.
25377         (*mux1_brcst_v8qi): Use new predicate.
25378         (vec_extract_evenv8qi): Remove endian check.
25379         (vec_extract_oddv8qi): Ditto.
25380         (vec_interleave_lowv4hi): Format change.
25381         (vec_interleave_highv4hi): Ditto.
25382         (mix2_even): Rename from mix2_r, add endian check.
25383         (mix2_odd): Rename from mux2_l, add endian check.
25384         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25385         (vec_extract_evenodd_helper): Format change.
25386         (vec_extract_evenv4hi): Remove endian check.
25387         (vec_extract_oddv4hi): Remove endian check.
25388         (vec_interleave_lowv2si): Format change.
25389         (vec_interleave_highv2si): Format change.
25390         (vec_initv2si): Remove endian check.
25391         (vecinit_v2si): Add endian check.
25392         (reduc_splus_v2sf): Add endian check.
25393         (reduc_smax_v2sf): Ditto.
25394         (reduc_smin_v2sf): Ditto.
25395         (vec_initv2sf): Remove endian check.
25396         (fpack): Add endian check.
25397         (fswap): Add endian check.
25398         (vec_interleave_highv2sf): Add endian check.
25399         (vec_interleave_lowv2sf): Add endian check.
25400         (fmix_lr): Add endian check.
25401         (vec_setv2sf): Format change.
25402         (*vec_extractv2sf_0_be): Use shift to extract operand.
25403         (*vec_extractv2sf_1_be): New.
25404         (vec_pack_trunc_v4hi): Add endian check.
25405         (vec_pack_trunc_v2si): Format change.
25406
25407 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
25408
25409         PR inline-asm/23200
25410         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
25411         do bb, locus and block comparison and disallow loads if it is not set.
25412         (stmt_is_replaceable_p): New function.
25413         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25414         callers.
25415         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25416         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25417         SSA_NAME_DEF_STMT.
25418         * tree-flow.h (stmt_is_replaceable_p): New prototype.
25419
25420 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25421
25422         * config/rs6000/xilinx.opt: New.
25423         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25424
25425 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
25426
25427         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25428
25429 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
25430
25431         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25432         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25433         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25434         secondary_reload_info, xtensa_secondary_reload): Remove.
25435         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25436         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25437         (xtensa_preferred_reload_class): Make static. Change return and
25438         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25439         Use CONST_DOUBLE_P predicate.
25440         (xtensa_preferred_output_reload_class): New function.
25441         (xtensa_secondary_reload): Make static.
25442
25443 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
25444
25445         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25446         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25447         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25448
25449 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25450
25451         PR middle-end/31490
25452         * output.h (SECTION_RELRO): Define.
25453         (SECTION_MACH_DEP): Adjust.
25454         (get_variable_section): New prototype.
25455         * varpool.c (varpool_finalize_named_section_flags): New function.
25456         (varpool_assemble_pending_decls): Call it.
25457         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25458         * cgraphunit.c (cgraph_output_in_order): Call
25459         varpool_finalize_named_section_flags.
25460         * varasm.c (get_section): Allow section flags conflicts between
25461         relro and read-only sections if the section hasn't been declared yet.
25462         Set SECTION_OVERRIDE after diagnosing section type conflict.
25463         (get_variable_section): No longer static.
25464         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25465         readonly sections that need relocations.
25466         (decl_readonly_section_1): New function.
25467         (decl_readonly_section): Use it.
25468
25469         Revert:
25470         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
25471                     Steve Ellcey  <sje@cup.hp.com>
25472
25473         PR middle-end/31490
25474         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25475         if section attribute used.
25476
25477 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25478
25479         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25480         * config/darwin.c (SECTION_NO_ANCHOR): Define.
25481         (darwin_init_sections): Remove assertion.
25482
25483 2011-02-03  Nick Clifton  <nickc@redhat.com>
25484
25485         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25486         lt and ge.
25487         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25488         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25489         instead of "n" and "pz".
25490         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25491         CC_FLAG_S.
25492
25493 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
25494
25495         PR target/47312
25496         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25497         fma, expand FMA_EXPR as fma{,f,l} call.
25498
25499         PR lto/47274
25500         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25501         copy them into a unsigned char variable and pass address of it to
25502         lto_output_data_stream.
25503
25504         PR target/47564
25505         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25506         around backend_init_target and lang_dependent_init_target calls.
25507         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25508         (verify_cgraph_node): Don't call set_cfun here.  Use
25509         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25510         Set error_found for incorrectly represented calls to thunks.
25511
25512 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25513
25514         PR debug/43092
25515         PR rtl-optimization/43494
25516         * rtl.h (for_each_inc_dec_fn): New type.
25517         (for_each_inc_dec): Declare.
25518         * rtlanal.c (struct for_each_inc_dec_ops): New type.
25519         (for_each_inc_dec_find_inc_dec): New fn.
25520         (for_each_inc_dec_find_mem): New fn.
25521         (for_each_inc_dec): New fn.
25522         * dse.c (struct insn_size): Remove.
25523         (replace_inc_dec, replace_inc_dec_mem): Remove.
25524         (emit_inc_dec_insn_before): New fn.
25525         (check_for_inc_dec): Use it, along with for_each_inc_dec.
25526         (canon_address): Pass mem modes to cselib_lookup.
25527         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
25528         (cselib_lookup_from_insn): Likewise.
25529         (cselib_subst_to_values): Likewise.
25530         * cselib.c (find_slot_memmode): New var.
25531         (cselib_find_slot): New fn.  Use it instead of
25532         htab_find_slot_with_hash everywhere.
25533         (entry_and_rtx_equal_p): Use find_slot_memmode.
25534         (autoinc_split): New fn.
25535         (rtx_equal_for_cselib_p): Rename and implement in terms of...
25536         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
25537         Deal with autoinc.  Special-case recursion into MEMs.
25538         (cselib_hash_rtx): Likewise.
25539         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
25540         address and MEM modes.
25541         (cselib_subst_to_values): Add memmode, pass it on.
25542         Deal with autoinc.
25543         (cselib_lookup): Add memmode argument, pass it on.
25544         (cselib_lookup_from_insn): Add memmode.
25545         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25546         (struct cselib_record_autoinc_data): New.
25547         (cselib_record_autoinc_cb): New fn.
25548         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
25549         mode to cselib_lookup.  Reset autoinced REGs here instead of...
25550         (cselib_process_insn): ... here.
25551         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25552         to cselib_lookup.
25553         (add_uses): Likewise, also to cselib_subst_to_values.
25554         (add_stores): Likewise.
25555         * sched-deps.c (add_insn_mem_dependence): Pass mode to
25556         cselib_subst_to_values.
25557         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
25558         * gcse.c (do_local_cprop): Adjusted.
25559         * postreload.c (reload_cse_simplify_set): Adjusted.
25560         (reload_cse_simplify_operands): Adjusted.
25561         * sel-sched-dump (debug_mem_addr_value): Pass mode.
25562
25563 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
25564
25565         PR tree-optimization/45122
25566         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25567         unsafe assumptions when there's more than one loop exit.
25568
25569 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25570
25571         PR target/47272
25572         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25573         Document using vector double with the load/store builtins, and
25574         that the load/store builtins always use Altivec instructions.
25575
25576         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25577         to use altivec memory instructions, even on VSX.
25578         (vector_altivec_store_<mode>): Ditto.
25579
25580         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25581         function.
25582
25583         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25584         V2DF, V2DI support to load/store overloaded builtins.
25585
25586         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25587         altivec load/store builtins for V2DF/V2DI types.
25588
25589         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25590         set avoid indexed addresses on power6 if -maltivec.
25591         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25592         vector_altivec_load/vector_altivec_store builtins.
25593         (altivec_expand_st_builtin): Ditto.
25594         (altivec_expand_builtin): Add VSX memory builtins.
25595         (rs6000_init_builtins): Add V2DI types to internal types.
25596         (altivec_init_builtins): Add support for V2DF/V2DI altivec
25597         load/store builtins.
25598         (rs6000_address_for_altivec): Insure memory address is appropriate
25599         for Altivec.
25600
25601         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25602         vec_vsx_ld and vec_vsx_st.
25603         (vsx_store_<mode>): Ditto.
25604
25605         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25606         variables to hold long long types for VSX vector memory builtins.
25607         (RS6000_BTI_unsigned_long_long): Ditto.
25608         (long_long_integer_type_internal_node): Ditti.
25609         (long_long_unsigned_type_internal_node): Ditti.
25610
25611         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25612         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25613         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25614
25615         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25616         short cuts.
25617         (vec_vsx_st): Ditto.
25618
25619 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25620
25621         * config/pa/pa-hpux10.opt: New.
25622         * config/hpux11.opt (pthread): New Driver option.
25623         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25624         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25625
25626 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25627
25628         * config/ia64/vms.opt: New.
25629         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25630
25631 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
25632
25633         PR target/47580
25634         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25635         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25636         generator functions.
25637         (vsx_floatuns<VSi><mode>2): Ditto.
25638         (vsx_fix_trunc<mode><VSi>2): Ditto.
25639         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25640
25641 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
25642
25643         * config/i386/djgpp.opt (posix): New Driver option.
25644
25645 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
25646
25647         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25648         Move to the unsupported targets list.
25649
25650 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
25651
25652         PR rtl-optimization/47525
25653         * df-scan.c: Update copyright years.
25654         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25655         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25656
25657 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25658
25659         * config/i386/sysv4.h (TARGET_VERSION): Remove.
25660         (SUBTARGET_RETURN_IN_MEMORY): Remove.
25661         (ASM_OUTPUT_ASCII): Remove.
25662         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25663
25664 2011-02-02  Jeff Law  <law@redhat.com>
25665
25666         PR middle-end/47543
25667         * reload.c (find_reloads_address): Handle reg+d address where both
25668         components are invalid by reloading the entire address.
25669
25670 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25671             Richard Guenther  <rguenther@suse.de>
25672
25673         PR tree-optimization/40979
25674         PR bootstrap/47044
25675         * passes.c (init_optimization_passes): After LIM call copy_prop
25676         and DCE to clean up.
25677         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25678
25679 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
25680
25681         PR tree-optimization/47576
25682         PR tree-optimization/47555
25683         * doc/invoke.texi (scev-max-expr-complexity): Documented.
25684         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25685         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25686         * tree-scalar-evolution.c (follow_ssa_edge): Use
25687         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25688
25689 2011-02-02  Richard Guenther  <rguenther@suse.de>
25690
25691         PR tree-optimization/47566
25692         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25693
25694 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25695
25696         PR debug/47106
25697         PR debug/47402
25698         * tree-inline.c (declare_return_variable): Remove unused caller
25699         variable.
25700
25701         PR debug/47106
25702         PR debug/47402
25703         * tree-flow-inline.h (clear_is_used, is_used_p): New.
25704         * cfgexpand.c (account_used_vars_for_block): Use them.
25705         * tree-nrv.c (tree_nrv): Likewise.
25706         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25707         (dump_scope_block): Likewise.
25708         (remove_unused_locals): Likewise.
25709
25710         PR debug/47106
25711         PR debug/47402
25712         * tree-inline.c (declare_return_variable): Add result decl to
25713         local decls only once.
25714         * gimple-low.c (record_vars_into): Mark newly-created variables
25715         as referenced.
25716
25717 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
25718
25719         PR debug/47498
25720         PR debug/47501
25721         PR debug/45136
25722         PR debug/45130
25723         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25724         debug insns.
25725         (no_real_insns_p, schedule_block, set_priorities): Drop special
25726         treatment of boundary debug insns.
25727         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25728         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25729         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25730         (BOUNDARY_DEBUG_INSN_P): Likewise.
25731         (SCHEDULE_DEBUG_INSN_P): Likewise.
25732         * sched-rgn.c (init_ready_list): Drop special treatment of
25733         boundary debug insns.
25734         * final.c (rest_of_clean_state): Clear notes' BB.
25735
25736 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25737
25738         * config/openbsd.opt (assert=): New Driver option.
25739
25740 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25741
25742         * config/i386/nto.opt: New.
25743         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25744
25745 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25746
25747         * config/i386/netware.opt: New.
25748         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25749
25750 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25751
25752         * config/interix.opt (posix): New Driver option.
25753
25754 2011-02-01  DJ Delorie  <dj@redhat.com>
25755
25756         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25757
25758         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25759         class for A0/A1.
25760
25761 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
25762
25763         PR tree-optimization/47561
25764         * toplev.c (process_options): Print the Graphite flags.  Add
25765         flag_loop_flatten to the list of options requiring Graphite.
25766
25767 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25768
25769         * config/i386/cygming.opt (posix): New Driver option.
25770
25771 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25772
25773         * config/arm/vxworks.opt: New.
25774         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25775
25776 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
25777
25778         * config/alpha/elf.opt: New.
25779         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25780         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25781
25782 2011-02-01  Richard Guenther  <rguenther@suse.de>
25783
25784         PR tree-optimization/47559
25785         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25786         store-motion on references that can throw.
25787
25788 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
25789
25790         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25791         * tree-pass.h (TDF_CSELIB): New macro.
25792         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25793         cselib_lookup): Check for it rather than for TDF_DETAILS.
25794
25795 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
25796
25797         PR driver/47547
25798         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25799         is HOST_BIT_BUCKET.
25800
25801         * opts.c (finish_options): Don't add x_aux_base_name if it is
25802         HOST_BIT_BUCKET.
25803
25804 2011-02-01  Richard Guenther  <rguenther@suse.de>
25805
25806         PR tree-optimization/47555
25807         Revert
25808         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
25809
25810         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25811
25812 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25813
25814         PR gcc/46692
25815         * config/lm32/t-lm32: Add multilib for all CPU options.
25816
25817 2011-02-01  Richard Guenther  <rguenther@suse.de>
25818
25819         PR tree-optimization/47541
25820         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25821         sure to have a field at offset zero.
25822
25823 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25824
25825         * config/arc/arc.opt (EB, EL): New Driver options.
25826
25827 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25828
25829         * config/alpha/osf5.opt: New.
25830         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25831
25832 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
25833
25834         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25835
25836 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
25837
25838         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25839         -floop-interchange.
25840         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25841         is an alias of -floop-interchange and that it requires the
25842         Graphite infrastructure.
25843         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25844         flag_loop_interchange based on the value of flag_tree_loop_linear.
25845
25846 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
25847             Richard Guenther  <rguenther@suse.de>
25848
25849         PR tree-optimization/47538
25850         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25851         type instead of r1type, except for comparisons.  For right
25852         shifts and comparisons punt if there are mismatches in
25853         sizetype vs. non-sizetype types.
25854
25855 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25856
25857         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25858         avx_runtime.
25859
25860 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25861
25862         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25863         version number.
25864         * configure: Regenerate.
25865
25866 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25867
25868         * configure.ac (gcc_cv_ld_static_option): Define.
25869         (gcc_cv_ld_dynamic_option): Define.
25870         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25871         instead.
25872         (HAVE_LD_STATIC_DYNAMIC): Update message.
25873         (LD_STATIC_OPTION): Define.
25874         (LD_DYNAMIC_OPTION): Define.
25875         * configure: Regenerate.
25876         * config.in: Regenerate.
25877         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25878         HAVE_LD_STATIC_DYNAMIC]: Use them.
25879
25880 2011-01-31  Nick Clifton  <nickc@redhat.com>
25881
25882         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25883         registers inside interrupt handlers if the handler is not a leaf
25884         function.
25885
25886 2011-01-31  Nick Clifton  <nickc@redhat.com>
25887
25888         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25889         reg_renumber returning an INVALID_REGNUM.
25890
25891 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25892
25893         PR libgcj/44341
25894         * doc/install.texi: Document host options discarded when cross
25895         configuring target libraries.
25896
25897 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
25898
25899         Reverted:
25900         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25901         PR debug/45136
25902         PR debug/45130
25903         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25904         debug insns.
25905         (no_real_insns_p, schedule_block, set_priorities): Drop special
25906         treatment of boundary debug insns.
25907         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25908         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25909         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25910         (BOUNDARY_DEBUG_INSN_P): Likewise.
25911         (SCHEDULE_DEBUG_INSN_P): Likewise.
25912         * sched-rgn.c (init_ready_list): Drop special treatment of
25913         boundary debug insns.
25914         * final.c (rest_of_clean-state): Clear notes' BB.
25915
25916 2011-01-31  Alan Modra  <amodra@gmail.com>
25917
25918         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25919         toc relative expressions as we do in print_operand_address.
25920
25921 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
25922
25923         * doc/extend.texi: Follow spelling conventions.
25924         * doc/invoke.texi: Fix a typo.
25925
25926 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
25927
25928         * config/hpux11.opt: New.
25929         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25930         ia64*-*-hpux*): Use hpux11.opt.
25931
25932 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
25933
25934         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25935         to tmake_file.
25936
25937 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25938
25939         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25940         support sites.
25941
25942 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25943
25944         * doc/install.texi (Binaries): Remove outdated reference for
25945         Motorola 68HC11/68HC12 downloads.
25946
25947 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
25948
25949         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25950         Drepper's paper.
25951
25952 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
25953
25954         PR bootstrap/47147
25955         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25956         used by NetBSD.
25957
25958 2011-01-28  Ahmad Sharif  <asharif@google.com>
25959
25960         * value-prof.c (check_counter): Corrected error message.
25961
25962 2011-01-29  Jie Zhang  <jie@codesourcery.com>
25963
25964         * config/arm/arm.c (arm_legitimize_reload_address): New.
25965         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25966         arm_legitimize_reload_address.
25967         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25968
25969 2011-01-28  Ian Lance Taylor  <iant@google.com>
25970
25971         * godump.c (go_define): Ignore macros whose definitions include
25972         two adjacent operands.
25973
25974 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
25975
25976         PR target/42894
25977         * varasm.c (force_const_mem): Store copy of x in desc->constant
25978         instead of x itself.
25979         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25980         itself into REG_EQUAL note.
25981
25982 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
25983
25984         * config/freebsd.opt (posix, rdynamic): New Driver options.
25985
25986 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25987
25988         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25989         -Bstatic/-Bdynamic.
25990         * configure: Regenerate.
25991
25992 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25993
25994         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25995         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25996
25997 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25998
25999         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26000         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26001         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26002         (s390_preferred_reload_class): Make static. Change return and
26003         'rclass' argument type to reg_class_t.
26004
26005 2011-01-27  Jan Hubicka  <jh@suse.cz>
26006
26007         PR middle-end/46949
26008         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26009         (process_function_and_variable_attributes): Check defined weakrefs.
26010
26011 2011-01-27  Martin Jambor  <mjambor@suse.cz>
26012
26013         PR tree-optimization/47228
26014         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26015         build_ref_for_offset.
26016
26017 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26018
26019         * config/spu/spu-elf.h (ASM_SPEC): Remove.
26020
26021 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
26022
26023         PR rtl-optimization/46856
26024         * postreload.c (reload_combine_recognize_const_pattern): Do not
26025         separate cc0 setter and user on cc0 targets.
26026
26027 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
26028
26029         PR c/43082
26030         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26031         passed a VOID_TYPE expression, immediately emit an error and
26032         return error_mark_node.
26033
26034 2011-01-26  Jeff Law  <law@redhat.com>
26035
26036         PR rtl-optimization/47464
26037         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26038         rather than may_trap_p as needed.
26039
26040 2011-01-26  DJ Delorie  <dj@redhat.com>
26041
26042         PR rtl-optimization/46878
26043         * combine.c (insn_a_feeds_b): Check for the implicit cc0
26044         setter/user dependency as well.
26045
26046 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26047
26048         PR rtl-optimization/44469
26049         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26050         after removing trivially dead basic blocks.
26051
26052 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26053
26054         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26055         * config/frv/frv.h (LINK_SPEC): Likewise.
26056         * config/i386/netware.h (LINK_SPEC): Likewise.
26057         * config/m68k/linux.h (ASM_SPEC): Likewise.
26058         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26059         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26060         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26061         * config/sparc/linux.h (ASM_SPEC): Likewise.
26062         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26063         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26064
26065 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26066
26067         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26068         * config/frv/frv.h (ASM_SPEC): Likewise.
26069         * config/m68k/linux.h (ASM_SPEC): Likewise.
26070         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26071         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26072         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26073         * config/sparc/linux.h (ASM_SPEC): Likewise.
26074         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26075         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26076
26077 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26078
26079         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26080         * config/frv/frv.h (LINK_SPEC): Likewise.
26081         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26082
26083 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26084
26085         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26086         * config/frv/frv.h (ASM_SPEC): Likewise.
26087         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26088         * config/m68k/linux.h (ASM_SPEC): Likewise.
26089         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26090         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26091         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26092         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26093         * config/sparc/linux.h (ASM_SPEC): Likewise.
26094         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26095         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26096         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26097
26098 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
26099
26100         PR target/46997
26101         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26102         (*mux2): Ditto.
26103         (vec_extract_evenodd_help): Ditto.
26104         (vec_extract_evenv4hi): Ditto.
26105         (vec_extract_oddv4hi): Ditto.
26106         (vec_interleave_lowv2si): Ditto.
26107         (vec_interleave_highv2si): Ditto.
26108         (vec_extract_evenv2si): Ditto.
26109         (vec_extract_oddv2si: Ditto.
26110         (vec_pack_trunc_v2si): Ditto.
26111
26112 2011-01-22  Jan Hubicka  <jh@suse.cz>
26113
26114         PR target/47237
26115         * cgraph.h (cgraph_local_info): New field can_change_signature.
26116         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26117         signature can change.
26118         (ipcp_estimate_growth): Call sequence simplify only if calle signature
26119         can change.
26120         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26121         (cgraph_function_versioning): We can not change signature of functions
26122         that don't allow that.
26123         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26124         (lto_input_node): Likewise.
26125         * ipa-inline.c (compute_inline_parameters): Compute
26126         local.can_change_signature.
26127         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26128         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26129         functions that can not change signature.
26130         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26131         init_cumulative_args): Do not use local calling conventions
26132         for functions that can not change signature.
26133
26134 2011-01-22  Jan Hubicka  <jh@suse.cz>
26135
26136         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26137
26138 2011-01-26  Richard Guenther  <rguenther@suse.de>
26139
26140         PR tree-optimization/47190
26141         * cgraphunit.c (process_common_attributes): New function.
26142         (process_function_and_variable_attributes): Use it.
26143
26144 2011-01-26  Richard Guenther  <rguenther@suse.de>
26145
26146         PR lto/47423
26147         * cgraphbuild.c (record_eh_tables): Record reference to personality
26148         function.
26149
26150 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
26151
26152         PR debug/45454
26153         * sel-sched.c (moveup_expr): Don't let debug insns prevent
26154         non-debug insns from moving up.
26155
26156 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26157
26158         PR target/40125
26159         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26160         t-dlldir{,-x} fragment for build and add it to tmake_file.
26161         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26162         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26163         * config/i386/t-dlldir: New file.
26164         (SHLIB_DLLDIR): Define.
26165         * config/i386/t-dlldir-x: New file.
26166         (SHLIB_DLLDIR): Define.
26167         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26168         (SHLIB_INSTALL): Use it.
26169
26170 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
26171
26172         PR target/47246
26173         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26174         lower bound of the allowed Thumb-2 coprocessor load/store
26175         index range to -256. Add explaining comment.
26176
26177 2011-01-25  Ian Lance Taylor  <iant@google.com>
26178
26179         * godump.c (go_define): Improve lexing of macro expansion to only
26180         accept expressions which match Go spec.
26181
26182 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
26183
26184         PR c++/43601
26185         * tree.c (handle_dll_attribute): Handle it.
26186         * doc/extend.texi (@item dllexport): Mention it.
26187         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26188
26189 2011-01-25  Ian Lance Taylor  <iant@google.com>
26190
26191         PR tree-optimization/26854
26192         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26193         (decl_jump_unsafe): Move higher in file, with no other change.
26194         (bind): Set has_jump_unsafe_decl if appropriate.
26195         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26196         (check_earlier_gotos): Likewise.
26197         (c_check_switch_jump_warnings): Likewise.
26198
26199 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
26200
26201         * doc/invoke.texi (Warning Options): Add missing hyphen.
26202         (-fprofile-dir): Minor grammatical fixes.
26203         (-fbranch-probabilities): Likewise.
26204
26205 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
26206
26207         PR debug/45136
26208         PR debug/45130
26209         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26210         debug insns.
26211         (no_real_insns_p, schedule_block, set_priorities): Drop special
26212         treatment of boundary debug insns.
26213         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26214         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26215         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26216         (BOUNDARY_DEBUG_INSN_P): Likewise.
26217         (SCHEDULE_DEBUG_INSN_P): Likewise.
26218         * sched-rgn.c (init_ready_list): Drop special treatment of
26219         boundary debug insns.
26220         * final.c (rest_of_clean-state): Clear notes' BB.
26221
26222 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26223
26224         * Makefile.in (LAMBDA_H): Removed.
26225         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26226         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26227         lambda-trans.o, and tree-loop-linear.o.
26228         (lto-symtab.o): Remove dependence on LAMBDA_H.
26229         (tree-loop-linear.o): Remove rule.
26230         (lambda-mat.o): Same.
26231         (lambda-trans.o): Same.
26232         (lambda-code.o): Same.
26233         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26234         (tree-vect-slp.o): Same.
26235         * hwint.h (gcd): Moved here.
26236         (least_common_multiple): Same.
26237         * lambda-code.c: Removed.
26238         * lambda-mat.c: Removed.
26239         * lambda-trans.c: Removed.
26240         * lambda.h: Removed.
26241         * tree-loop-linear.c: Removed.
26242         * lto-symtab.c: Do not include lambda.h.
26243         * omega.c (gcd): Removed.
26244         * passes.c (init_optimization_passes): Remove pass_linear_transform.
26245         * tree-data-ref.c (print_lambda_vector): Moved here.
26246         (lambda_vector_copy): Same.
26247         (lambda_matrix_copy): Same.
26248         (lambda_matrix_id): Same.
26249         (lambda_vector_first_nz): Same.
26250         (lambda_matrix_row_add): Same.
26251         (lambda_matrix_row_exchange): Same.
26252         (lambda_vector_mult_const): Same.
26253         (lambda_vector_negate): Same.
26254         (lambda_matrix_row_negate): Same.
26255         (lambda_vector_equal): Same.
26256         (lambda_matrix_right_hermite): Same.
26257         * tree-data-ref.h: Do not include lambda.h.
26258         (lambda_vector): Moved here.
26259         (lambda_matrix): Same.
26260         (dependence_level): Same.
26261         (lambda_transform_legal_p): Removed declaration.
26262         (lambda_collect_parameters): Same.
26263         (lambda_compute_access_matrices): Same.
26264         (lambda_vector_gcd): Same.
26265         (lambda_vector_new): Same.
26266         (lambda_vector_clear): Same.
26267         (lambda_vector_lexico_pos): Same.
26268         (lambda_vector_zerop): Same.
26269         (lambda_matrix_new): Same.
26270         * tree-flow.h (least_common_multiple): Removed declaration.
26271         * tree-parloops.c (lambda_trans_matrix): Moved here.
26272         (LTM_MATRIX): Same.
26273         (LTM_ROWSIZE): Same.
26274         (LTM_COLSIZE): Same.
26275         (LTM_DENOMINATOR): Same.
26276         (lambda_trans_matrix_new): Same.
26277         (lambda_matrix_vector_mult): Same.
26278         (lambda_transform_legal_p): Same.
26279         * tree-pass.h (pass_linear_transform): Removed declaration.
26280         * tree-ssa-loop.c (tree_linear_transform): Removed.
26281         (gate_tree_linear_transform): Removed.
26282         (pass_linear_transform): Removed.
26283         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26284         flag_loop_interchange.
26285
26286 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26287
26288         PR tree-optimization/47265
26289         PR tree-optimization/47443
26290         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26291         if name still has some uses.
26292
26293 2011-01-25  Martin Jambor  <mjambor@suse.cz>
26294
26295         PR tree-optimization/47382
26296         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26297         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26298
26299 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
26300
26301         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26302         sjlj_except_unwind_info.
26303
26304 2011-01-25  Richard Guenther  <rguenther@suse.de>
26305
26306         PR tree-optimization/47426
26307         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26308         visible functions results escape.
26309
26310 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26311
26312         PR target/45701
26313         * config/arm/arm.c (any_sibcall_uses_r3): New function.
26314         (arm_get_frame_offsets): Use it.
26315
26316 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26317             Jakub Jelinek  <jakub@redhat.com>
26318
26319         PR tree-optimization/47271
26320         * tree-if-conv.c (bb_postdominates_preds): New.
26321         (if_convertible_bb_p): Call bb_postdominates_preds.
26322         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26323         (predicate_scalar_phi): Call bb_postdominates_preds.
26324
26325 2011-01-25  Nick Clifton  <nickc@redhat.com>
26326
26327         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26328         * config/rx/rx.c (rx_function_value): Likewise.
26329         (rx_promote_function_mode): Likewise.
26330         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26331         in order to make it legitimate.
26332         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26333         make sure that the first operand is the same as the result register.
26334         (addsi3_unspec): Delete.
26335         (subdi3): Do not accept immediate operands.
26336         (subdi3_internal): Likewise.
26337
26338 2011-01-25  Jeff Law  <law@redhat.com>
26339
26340         PR rtl-optimization/37273
26341         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26342         handle them like argument loads from stack slots.  Do not double
26343         count memory for memory constants and argument loads from stack slots.
26344
26345 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
26346
26347         PR tree-optimization/47427
26348         PR tree-optimization/47428
26349         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26350         coalesce if the new root var would be TREE_READONLY.
26351
26352 2011-01-25  Richard Guenther  <rguenther@suse.de>
26353
26354         PR middle-end/47414
26355         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26356         correct type for TBAA.
26357
26358 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26359
26360         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26361         (close_phi_written_to_memory): Call for_each_index with
26362         dr_indices_valid_in_loop.
26363
26364 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26365
26366         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26367         when it is initialized.
26368
26369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26370
26371         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26372         call to graphite_find_data_references_in_stmt.
26373         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26374         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
26375         call to graphite_find_data_references_in_stmt.
26376         (analyze_drs_in_stmts): Same.
26377         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26378         in which the scalar analysis of indices is performed.
26379         (create_data_ref): Same.  Update call to dr_analyze_indices.
26380         (find_data_references_in_stmt): Update call to create_data_ref.
26381         (graphite_find_data_references_in_stmt): Same.
26382         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26383         declaration.
26384         (create_data_ref): Same.
26385         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26386         call to create_data_ref.
26387
26388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26389
26390         * graphite-sese-to-poly.c (build_poly_scop): Move
26391         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26392
26393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26394
26395         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26396         VAR_DECL, PARM_DECL, and RESULT_DECL.
26397
26398 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26399
26400         * graphite-dependences.c (reduction_dr_1): Allow several reductions
26401         in a reduction PBB.
26402         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26403         that have already been marked as PBB_IS_REDUCTION.
26404
26405 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26406
26407         * graphite-scop-detection.c (same_close_phi_node): New.
26408         (remove_duplicate_close_phi): New.
26409         (make_close_phi_nodes_unique): New.
26410         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26411
26412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26413
26414         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26415         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26416         of both data references to be the same.
26417
26418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26419
26420         * graphite-dependences.c (build_lexicographical_constraint): Remove
26421         the gdim parameter.
26422         (build_lexicographical_constraint): Adjust call to
26423         ppl_powerset_is_empty.
26424         (dependence_polyhedron): Same.
26425         (graphite_legal_transform_dr): Same.
26426         (graphite_carried_dependence_level_k): Same.
26427         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26428         parameter.
26429         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26430
26431 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26432
26433         * graphite-sese-to-poly.c
26434         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26435         (close_phi_written_to_memory): New.
26436         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26437         and unshare_expr.
26438
26439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26440
26441         * doc/install.texi: Update the expected version number of PPL to 0.11.
26442         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26443         #if PPL_VERSION_MINOR < 11.
26444
26445 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26446
26447         * graphite-dependences.c: Include graphite-cloog-util.h.
26448         (new_poly_ddr): Inlined into dependence_polyhedron.
26449         (free_poly_ddr): Moved close by new_poly_ddr.
26450         (dependence_polyhedron_1): Renamed dependence_polyhedron.
26451         Early return NULL when ppl_powerset_is_empty returns true.
26452         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
26453         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
26454         (graphite_legal_transform_dr): Call new_poly_ddr.
26455         (graphite_carried_dependence_level_k): Same.
26456         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
26457         (dot_transformed_deps_stmt_1): Removed.
26458         (dot_deps_stmt_1): Call dot_deps_stmt_2.
26459         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
26460         (dot_deps_1): Call dot_deps_2.
26461         * Makefile.in (graphite-dependences.o): Add missing dependence on
26462         graphite-cloog-util.h.
26463
26464 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26465
26466         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26467         (build_lexicographical_constraint): Same.
26468         (dependence_polyhedron_1): Same.
26469         (graphite_legal_transform_dr): Same.
26470         (graphite_carried_dependence_level_k): Same.
26471         * graphite-ppl.c (ppl_powerset_is_empty): New.
26472         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26473         * tree-data-ref.c (dump_data_reference): Print the basic block index.
26474
26475 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26476
26477         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26478         the "a followed by b" relation and document it.
26479
26480 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26481
26482         * graphite-dependences.c (build_lexicographical_constraint): Stop the
26483         iteration when the bag of constraints is empty.
26484
26485 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26486
26487         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26488
26489 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26490
26491         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26492         nest and two loop depths as parameters.
26493         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26494         lst_perfect_nestify.
26495
26496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26497
26498         * graphite-dependences.c (print_pddr): Call
26499         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26500
26501 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
26502
26503         * graphite-ppl.c (debug_gmp_value): New.
26504         * graphite-ppl.h (debug_gmp_value): Declared.
26505
26506 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
26507
26508         * doc/install.texi: Document availability of cloog-0.16.
26509
26510 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
26511
26512         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26513         invalid postdominance info.
26514
26515 2011-01-24  Jan Hubicka  <jh@suse.cz>
26516
26517         PR c/21659
26518         * doc/extend.texi (weak pragma): Drop claim that it must
26519         appear before definition.
26520         * varasm.c (merge_weak, declare_weak): Only sanity check
26521         that DECL is not output at a time it is declared weak.
26522
26523 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
26524
26525         * machmode.def: Fixed comments.
26526
26527 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
26528
26529         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26530
26531 2011-01-24  Paul Koning  <ni1d@arrl.net>
26532
26533         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26534         WORDS_BIG_ENDIAN.
26535
26536 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26537
26538         PR target/46519
26539         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26540         (block_info): Add scanned and prev.
26541         (move_or_delete_vzeroupper_2): Return if the basic block
26542         has been scanned and the upper 128bit state is unchanged
26543         from the last scan.
26544         (move_or_delete_vzeroupper_1): Return true if the exit
26545         state is changed.
26546         (move_or_delete_vzeroupper): Visit basic blocks using the
26547         work-list based algorithm based on vt_find_locations in
26548         var-tracking.c.
26549
26550         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26551
26552 2011-01-24  Nick Clifton  <nickc@redhat.com>
26553
26554         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26555         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26556         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
26557         then define __v850e1__.
26558         * doc/invoke.texi: Document -mv850es.
26559
26560 2011-01-24  Richard Henderson  <rth@redhat.com>
26561
26562         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26563         compound unordered comparisons.
26564         * config/rx/rx.c (rx_split_fp_compare): Remove.
26565         * config/rx/rx-protos.h: Update.
26566         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26567         (cbranchsf4): Don't call rx_split_fp_compare.
26568         (*cbranchsf4): Use rx_split_cbranch.
26569         (*cmpsf): Don't accept "i" constraint.
26570         (*conditional_branch): Only valid after reload.
26571         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
26572
26573 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26574
26575         PR target/47385
26576         * config/rs6000/altivec.md (vector constant splitters): Add
26577         support for creating vector single precision constants if -mvsx is
26578         used and we would create the constant using Altivec primitives.
26579
26580 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
26581             Richard Sandiford  <rdsandiford@googlemail.com>
26582
26583         PR rtl-optimization/47166
26584         * reload1.c (emit_reload_insns): Disable the spill_reg_store
26585         mechanism for PRE_MODIFY and POST_MODIFY.
26586         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26587         reloadreg.
26588
26589 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
26590
26591         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26592
26593 2011-01-22  Jan Hubicka  <jh@suse.cz>
26594
26595         PR lto/47333
26596         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26597
26598 2011-01-22  Jan Hubicka  <jh@suse.cz>
26599
26600         PR tree-optimization/43884
26601         PR lto/44334
26602         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26603         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26604
26605 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
26606
26607         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26608         * config/s390/s390.c (s390_register_move_cost,
26609         s390_memory_move_cost): New.
26610         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26611
26612 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26613
26614         PR middle-end/47401
26615         * except.c (sjlj_assign_call_site_values): Move setting the
26616         crtl->uses_eh_lsda flag to ...
26617         (sjlj_mark_call_sites): ... here.
26618         (sjlj_emit_function_enter): Support NULL dispatch label.
26619         (sjlj_build_landing_pads): In a function with no landing pads
26620         that still has must-not-throw regions, generate code to register
26621         a personality function with empty LSDA.
26622
26623 2011-01-21  Richard Henderson  <rth@redhat.com>
26624
26625         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26626
26627         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26628
26629         * compare-elim.c: New file.
26630         * Makefile.in (OBJS-common): Add it.
26631         (compare-elim.o): New.
26632         * common.opt (fcompare-elim): New.
26633         * opts.c (default_options_table): Add OPT_fcompare_elim.
26634         * tree-pass.h (pass_compare_elim_after_reload): New.
26635         * passes.c (init_optimization_passes): Add it.
26636         * recog.h: Protect against re-inclusion.
26637         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26638         * doc/invoke.texi (-fcompare-elim): Document it.
26639         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26640         * doc/tm.texi: Rebuild.
26641
26642 2011-01-22  Nick Clifton  <nickc@redhat.com>
26643
26644         * config/rx/rx.md (cstoresf4): Pass comparison operator to
26645         rx_split_fp_compare.
26646
26647 2011-01-22  Nick Clifton  <nickc@redhat.com>
26648
26649         * config/rx/rx.md (UNSPEC_CONST): New.
26650         (deallocate_and_return): Wrap the amount popped off the stack in
26651         an UNSPEC_CONST in order to stop it being rejected by
26652         -mmax-constant-size.
26653         (pop_and_return): Add a "(return)" rtx.
26654         (call): Drop the immediate operand.
26655         (call_internal): Likewise.
26656         (call_value): Likewise.
26657         (call_value_internal): Likewise.
26658         (sibcall_internal): Likewise.
26659         (sibcall_value_internal): Likewise.
26660         (sibcall): Likewise.  Generate an explicit call using
26661         sibcall_internal.
26662         (sibcall_value): Likewise.
26663         (mov<>): FAIL if a constant operand is not legitimate.
26664         (addsi3_unpsec): New pattern.
26665
26666         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26667         (ok_for_max_constant): New function.
26668         (gen_safe_add): New function.
26669         (rx_expand_prologue): Use gen_safe_add.
26670         (rx_expand_epilogue): Likewise.
26671         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
26672         UNSPEC CONSTs.
26673
26674 2011-01-21  Jeff Law  <law@redhat.com>
26675
26676         PR tree-optimization/47053
26677         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26678         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26679         statements are deleted.
26680         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
26681         is nonempty, then purge dead edges and cleanup the CFG.
26682
26683 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26684
26685         PR debug/47402
26686         Temporarily revert:
26687         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26688         PR debug/47106
26689         * tree-dfa.c (create_var_ann): Mark variable as used.
26690
26691 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26692
26693         PR middle-end/45566
26694         * except.c (convert_to_eh_region_ranges): Emit queued no-region
26695         notes from other section in hot/cold partitioning even if
26696         last_action is -3.  Increment call_site_base.
26697
26698         PR rtl-optimization/47366
26699         * fwprop.c (forward_propagate_into): Return bool.  If
26700         any changes are made, -fnon-call-exceptions is used and
26701         REG_EH_REGION note is present, call purge_dead_edges
26702         and return true if it purged anything.
26703         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26704         any EH edges were purged.
26705
26706 2011-01-21  Jeff Law  <law@redhat.com>
26707
26708         PR rtl-optimization/41619
26709         * caller-save.c (setup_save_areas): Break out code to determine
26710         which hard regs are live across calls by examining the reload chains
26711         so that it is always used.
26712         Eliminate code which checked REG_N_CALLS_CROSSED.
26713
26714 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26715
26716         PR tree-optimization/47355
26717         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26718         NOP has non-debug uses beyond PHIs in new_bb.
26719
26720 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
26721
26722         PR debug/47106
26723         * cfgexpand.c (account_used_vars_for_block): Only account vars
26724         that are annotated as used.
26725         (estimated_stack_frame_size): Don't set TREE_USED.
26726         * tree-dfa.c (create_var_ann): Mark variable as used.
26727
26728 2011-01-21  Richard Guenther  <rguenther@suse.de>
26729
26730         PR middle-end/47395
26731         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26732
26733 2011-01-21  Richard Guenther  <rguenther@suse.de>
26734
26735         PR tree-optimization/47365
26736         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26737         (vn_reference_lookup_pieces): Adjust.
26738         (vn_reference_lookup): Likewise.
26739         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26740         (vn_reference_lookup_3): Only look through kills if in
26741         VN_WALKREWRITE mode.
26742         (vn_reference_lookup_pieces): Adjust.
26743         (vn_reference_lookup): Likewise.
26744         (visit_reference_op_load): Likewise.
26745         (visit_reference_op_store): Likewise.
26746         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26747         (compute_avail): Likewise.
26748         (eliminate): Likewise.
26749
26750 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
26751
26752         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26753         DECL_IGNORED_P non-reg vars if they are used.
26754
26755         PR tree-optimization/47391
26756         * varpool.c (const_value_known_p): Return false if
26757         decl is volatile.
26758
26759 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
26760
26761         PR bootstrap/47215
26762         * config/i386/i386.c (ix86_local_alignment): Handle
26763         case for va_list_type_node is nil.
26764         (ix86_canonical_va_list_type): Likewise.
26765
26766 2011-01-21  Alan Modra  <amodra@gmail.com>
26767
26768         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26769         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26770
26771 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26772
26773         * config/arm/arm.md (define_attr type): Rename f_load
26774         and f_store to f_fpa_load and f_fpa_store. Update.
26775         (write_conflict): Deal with rename fallout.
26776         (*push_fp_multi): Likewise.
26777         * config/arm/fpa.md (f_load): Use f_fpa_load.
26778         (f_store): Use f_fpa_store.
26779         (*movsf_fpa): Likewise.
26780         (*movdf_fpa): Likewise.
26781         (*movxf_fpa): Likewise.
26782         (*thumb2_movsf_fpa): Likewise.
26783         (*thumb2_movdf_fpa): Likewise.
26784         (*thumb2_movxf_fpa): Likewise.
26785         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26786         f_loadd and f_stored.
26787         (*thumb2_movdi_vfp): Likewise.
26788         (*thumb2_movsf_vfp): Fix attribute to f_loads.
26789         (*thumb2_movsi_vfp): Likewise.
26790         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26791         Use f_loads instead of f_load.
26792         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26793
26794 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
26795
26796         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26797         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26798         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26799         (xtensa_mode_dependent_address_p): New function.
26800         (constantpool_address_p): Make static. Change return type to bool.
26801         Change argument type to const_rtx. Use CONST_INT_P predicate.
26802
26803 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
26804
26805         PR debug/46583
26806         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26807
26808 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26809
26810         PR debug/47283
26811         * cfgexpand.c (expand_debug_expr): Instead of generating
26812         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26813         etc. handling.
26814
26815 2011-01-20  Richard Guenther  <rguenther@suse.de>
26816
26817         PR middle-end/47370
26818         * tree-inline.c (remap_gimple_op_r): Recurse manually for
26819         the pointer operand of MEM_REFs.
26820
26821 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
26822
26823         PR tree-optimization/46130
26824         * ipa-split.c (consider_split): If return_bb contains non-virtual
26825         PHIs other than for retval or if split_function would not adjust it,
26826         refuse to split.
26827
26828 2011-01-20  Richard Guenther  <rguenther@suse.de>
26829
26830         PR tree-optimization/47167
26831         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26832         Revert previous change, only avoid enumeral type changes.
26833
26834 2011-01-19  Mike Stump  <mikestump@comcast.net>
26835
26836         * doc/tm.texi.in (BRANCH_COST): Englishify.
26837         * doc/tm.texi (BRANCH_COST): Likewise.
26838
26839 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
26840
26841         PR c++/47291
26842         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26843         (gen_scheduled_generic_parms_dies): New functions.
26844         (gen_struct_or_union_type_die): Schedule template parameters DIEs
26845         generation for the end of CU compilation.
26846         (dwarf2out_finish): Generate template parameters DIEs here.
26847
26848 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26849
26850         PR debug/46240
26851         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26852         debug bind stmt on merge edges.
26853
26854 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26855
26856         PR debug/47079
26857         PR debug/46724
26858         * function.c (instantiate_expr): Instantiate incoming rtl of
26859         implicit arguments, and recurse on VALUE_EXPRs.
26860         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26861         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26862
26863 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
26864
26865         * c-parser.c (c_parser_for_statement): Initialize
26866         collection_expression.
26867
26868 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26869
26870         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26871
26872 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26873
26874         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26875         (LINK_SHLIB_SPEC): Don't use %(link_path).
26876         (SUBTARGET_EXTRA_SPECS): Remove link_path.
26877
26878 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26879
26880         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26881         (NO_SHARED_LIB_SUPPORT): Remove.
26882         (LINK_SHLIB_SPEC): Remove one conditional definition.
26883
26884 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
26885
26886         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26887         %{call_shared}.
26888         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26889         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26890         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26891         %{call_shared} and conditionals on these options not being passed.
26892         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26893         %{call_shared}.
26894
26895 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26896
26897         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26898         simplify.
26899
26900         * ipa-split.c: Spelling fixes.
26901
26902 2011-01-19  Richard Henderson  <rth@redhat.com>
26903
26904         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26905         (*mulsi3): Likewise.
26906
26907         * longlong.h [__mn10300__] (count_leading_zeros): New.
26908         [__mn10300__] (umul_ppmm, smul_ppmm): New.
26909         [__mn10300__] (add_ssaaaa, subddmmss): New.
26910         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26911         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26912
26913 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26914
26915         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26916
26917 2011-01-19  Richard Henderson  <rth@redhat.com>
26918
26919         * config/mn10300/mn10300.md (addsi3_flags): New.
26920         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26921         (subsi3_flags, subc_internal, subdi3): New.
26922         (subdi3_internal, *subdi3_degenerate): New.
26923         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26924
26925         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26926         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26927         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
26928         * config/mn10300/mn10300-protos.h: Update.
26929         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26930         (return_ret): Likewise.  Rename from return_internal_regs.
26931         (return_internal): Remove.
26932
26933         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26934         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26935         (mn10300_legitimate_constant_p): Likewise.
26936         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26937         (mn10300_frame_size): New.
26938         (mn10300_expand_prologue): Use it.
26939         (mn10300_expand_epilogue): Likewise.
26940         (mn10300_initial_offset): Likewise.
26941         * config/mn10300/mn10300-protos.h: Update.
26942         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26943         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26944         (prologue, epilogue, return_internal): Tidy output code.
26945         (mn10300_store_multiple_operation, return): Likewise.
26946         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26947         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26948         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26949         (load_pic, am33_load_pic): New.
26950         (mn10300_load_pic0, mn10300_load_pic1): New.
26951
26952         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26953         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26954         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26955         (cc_flags_for_mode, cc_flags_for_code): New.
26956         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26957         overflow flag is not valid.  Validate that the flags we need
26958         for the comparison are valid.
26959         (mn10300_output_cmp): Remove.
26960         (mn10300_output_add): New.
26961         (mn10300_select_cc_mode): Use cc_flags_for_code.
26962         (mn10300_split_cbranch): New.
26963         (mn10300_match_ccmode): New.
26964         (mn10300_split_and_operand_count): New.
26965         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26966         to the function.
26967         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26968         (addsi3): ... here.  Use mn10300_output_add.
26969         (*addsi3_flags): New.
26970         (*am33_subsi3, *mn10300_subsi3): Merge...
26971         (subsi3): ... here.  Use attribute isa.
26972         (*subsi3_flags): New.
26973         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
26974         when possible.
26975         (*am33_andsi3, *mn10300_andsi3): Merge...
26976         (andsi3): ... here.
26977         (*andsi3_flags): New.
26978         (andsi3 splitters): New.
26979         (*am33_iorsi3, *mn10300_iorsi3): Merge...
26980         (iorsi3): ... here.
26981         (*iorsi3_flags): New.
26982         (*am33_xorsi3, *mn10300_xorsi3): Merge...
26983         (xorsi3): ... here.
26984         (*xorsi3_flags): New.
26985         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26986         (one_cmplsi2): ... here.
26987         (*one_cmplsi2_flags): New.
26988         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
26989         instead of "dax" in constraints.  Use mn10300_split_cbranch.
26990         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
26991         use matching constraints to eliminate a self-comparison.
26992         (*integer_conditional_branch): Rename from integer_conditional_branch.
26993         Use int_mode_flags to match CC_REG.
26994         (*cbranchsi4_btst, *btstsi): New.
26995         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26996         mn10300_split_cbranch.
26997         (*am33_cmpsf): Rename from am33_cmpsf.
26998         (*float_conditional_branch): Rename from float_conditional_branch.
26999         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27000         (zero_extendqisi2): ... here.
27001         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27002         (zero_extendhisi2): ... here.
27003         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27004         (extendqisi2): ... here.
27005         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27006         (extendhisi2): ... here.
27007         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27008         (ashlsi3): ... here.
27009         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27010         (lshrsi3): ... here.
27011         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27012         (ashrsi3): ... here.
27013         (consecutive add peephole): Remove.
27014         * config/mn10300/predicates.md (label_ref_operand): New.
27015         (int_mode_flags): New.
27016         (CCZN_comparison_operator): New.
27017
27018         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27019         (throughput_42_latency_43): New reservation.
27020         (mulsidi3, umulsidi3): New expanders.
27021         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
27022         the MDR register to allocation; separately allocate the low and
27023         high parts of the DImode result.
27024         (umulsidi3_internal): Similarly.
27025         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27026         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
27027         (udivsi3, umodsi3): Remove.
27028         (udivmodsi4, divmodsi4): New expanders.
27029         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
27030         (*divmodsi4): Simiarly.
27031         (ext_internal): New.
27032
27033         * config/mn10300/constraints.md ("z"): New constraint.
27034         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27035         (FIXED_REGISTERS): Don't fix MDR.
27036         (CALL_USED_REGSITERS): Reformat nicely.
27037         (REG_ALLOC_ORDER): Add MDR.
27038         (enum regclass): Add MDR_REGS.
27039         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27040         (IRA_COVER_CLASSES): Add MDR_REGS.
27041         (REGNO_REG_CLASS): Handle MDR_REG.
27042         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27043         (mn10300_register_move_cost): Likewise.
27044         * config/mn10300/mn10300.md (MDR_REG): New.
27045         (*movsi_internal): Handle moves to/from MDR_REGS.
27046
27047         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27048         POST_MODIFY.
27049         (mn10300_secondary_reload): Tidy combination reload classes.
27050         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27051         addresses for AM33.  Allow symbolic offsets for reg+imm.
27052         (mn10300_regno_in_class_p): New.
27053         (mn10300_legitimize_reload_address): New.
27054         * config/mn10300/mn10300.h (enum reg_class): Remove
27055         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27056         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
27057         SP_OR_GENERAL_REGS.
27058         (REG_CLASS_NAMES): Update to match.
27059         (REG_CLASS_CONTENTS): Likewise.
27060         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27061         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27062         (REGNO_IN_RANGE_P): Remove.
27063         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27064         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27065         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27066         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27067         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27068         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27069         (REGNO_GENERAL_P): New.
27070         (HAVE_POST_MODIFY_DISP): New.
27071         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27072         (LEGITIMIZE_RELOAD_ADDRESS): New.
27073         * config/mn10300/mn10300-protos.h: Update.
27074
27075         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27076         DATA_REGS for AM33 stack-pointer destination.
27077         (mn10300_preferred_output_reload_class): Likewise.
27078         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27079         into a form appropriate for ...
27080         (TARGET_SECONDARY_RELOAD): New.
27081         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27082         * config/mn10300/mn10300-protos.h: Update.
27083         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27084         reload_insi; use the "A" constraint for the scratch; handle AM33
27085         moves of sp to non-address registers.
27086
27087         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27088         (*movqi_internal): ... here.
27089         (*am33_movhi, *mn10300_movhi): Merge into...
27090         (*movhi_internal): ... here.
27091         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
27092         as the source/destination of moves from/to SP.
27093         (movsf): Only allow for AM33-2.
27094         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27095         any integer constant constraint.  Only allow for AM33-2.  Tidy
27096         all of the alternative outputs.
27097         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27098         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
27099         for MN103.
27100         (udivsi3, umodsi3): New patterns for MN103 only.
27101
27102 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
27103
27104         * doc/tm.texi.in: Spell out that a lack of register class unions
27105         can lead to ICEs.
27106         * doc/tm.texi: Regenerate.
27107
27108 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
27109
27110         PR rtl-optimization/47337
27111         * dce.c (check_argument_store): New function.
27112         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
27113
27114         PR tree-optimization/47290
27115         * tree-eh.c (infinite_empty_loop_p): New function.
27116         (cleanup_empty_eh): Use it.
27117
27118 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
27119
27120         PR target/46997
27121         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27122         (a64_expand_widen_sum): Ditto.
27123         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27124         (vec_extract_evenodd_help): Ditto.
27125         (vec_extract_evenv4hi): Ditto.
27126         (vec_extract_oddv4hi): Ditto.
27127         (vec_extract_evenv2si): Ditto.
27128         (vec_extract_oddv2si): Ditto.
27129         (vec_extract_evenv2sf): Ditto.
27130         (vec_extract_oddv2sf): Ditto.
27131         (vec_pack_trunc_v4hi: Ditto.
27132         (vec_pack_trunc_v2si): Ditto.
27133         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27134         (vec_interleave_highv8qi): Ditto.
27135         (mix1_r): Ditto.
27136         (vec_extract_oddv8qi): Ditto.
27137         (vec_interleave_lowv4hi): Ditto.
27138         (vec_interleave_highv4hi): Ditto.
27139         (vec_interleave_lowv2si): Ditto.
27140         (vec_interleave_highv2si): Ditto.
27141
27142 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27143
27144         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27145         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27146         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
27147         (pa_c_mode_for_suffix): New.
27148         (TARGET_EXPAND_BUILTIN): Define.
27149         (TARGET_C_MODE_FOR_SUFFIX): Define.
27150         (pa_builtins): Define.
27151         (pa_init_builtins): Register __float128 type and init new support
27152         builtins.
27153         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27154         * config/pa/quadlib.c (_U_Qfcopysign): New.
27155
27156 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
27157
27158         PR middle-end/46894
27159         * explow.c (allocate_dynamic_stack_space): Do not assume more than
27160         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27161         are defined.
27162
27163 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27164
27165         PR tree-optimization/47179
27166         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27167         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27168
27169 2011-01-18  Richard Guenther  <rguenther@suse.de>
27170
27171         PR rtl-optimization/47216
27172         * emit-rtl.c: Include tree-flow.h.
27173         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27174         of replicating it with different semantics.
27175         * Makefile.in (emit-rtl.o): Adjust.
27176
27177 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27178
27179         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27180         (cortex_a9_dp): Handle neon types correctly.
27181
27182 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
27183
27184         PR rtl-optimization/47299
27185         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27186         subtarget.  Use normal multiplication if both operands are constants.
27187         * expmed.c (expand_widening_mult): Don't try to optimize constant
27188         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
27189         before using it.
27190
27191 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27192
27193         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
27194         spacing after 'e.g.', typos, comma, hyphenation.
27195
27196 2011-01-17  Richard Henderson  <rth@redhat.com>
27197
27198         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27199         (rx_restricted_mem_operand): New.
27200         (rx_shift_operand): Use register_operand.
27201         (rx_source_operand, rx_compare_operand): Likewise.
27202         * config/rx/rx.md (addsi3_flags): New expander.
27203         (adddi3): Rewrite as expander.
27204         (adc_internal, *adc_flags, adddi3_internal): New patterns.
27205         (subsi3_flags): New expander.
27206         (subdi3): Rewrite as expander.
27207         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27208
27209         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27210         (rx_init_builtins): Remove sat builtin.
27211         (rx_expand_builtin): Likewise.
27212         * config/rx/rx.md (ssaddsi3): New.
27213         (*sat): Rename from sat.  Represent the CC_REG input.
27214
27215         * config/rx/predicates.md (rshift_operator): New.
27216         * config/rx/rx.c (rx_expand_insv): Remove.
27217         * config/rx/rx-protos.h: Update.
27218         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
27219         operand to the canonical position.
27220         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27221         (*bitclr, *bitclr_in_memory): Similarly.
27222         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27223         (insv): Retain the zero_extract in the expansion.
27224
27225         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27226         (bswaphi2, bitinvert, revw): Likewise.
27227
27228         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27229         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27230         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27231         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27232         (bitset, bitset_in_memory): Likewise.
27233         (bitinvert, bitinvert_in_memory): Likewise.
27234         (bitclr, bitclr_in_memory): Likewise.
27235         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27236         (rx_strend, rx_cmpstrn): Likewise.
27237         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
27238         (bitop peep2 patterns): Remove.
27239
27240         * config/rx/rx.c (rx_match_ccmode): New.
27241         * config/rx/rx-protos.h: Update.
27242         * config/rx/rx.md (abssi2): Clobber, don't set flags.
27243         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27244         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27245         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27246         (fix_truncsfsi2, floatsisf2): Likewise.
27247         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27248         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27249         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27250         (*subsi3_flags, *xorsi3_flags): New.
27251
27252         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27253
27254         * config/rx/rx.c (rx_print_operand): Remove workaround for
27255         unsplit comparison operations.
27256
27257         * config/rx/rx.md (movsicc): Split after reload.
27258         (*movsicc): Merge *movsieq and *movsine via match_operator.
27259         (*stcc): New pattern.
27260
27261         * config/rx/rx.c (rx_float_compare_mode): Remove.
27262         * config/rx/rx.h (rx_float_compare_mode): Remove.
27263         * config/rx/rx.md (cstoresi4): Split after reload.
27264         (*sccc): New pattern.
27265
27266         * config/rx/predicates.md (label_ref_operand): New.
27267         (rx_z_comparison_operator): New.
27268         (rx_zs_comparison_operator): New.
27269         (rx_fp_comparison_operator): New.
27270         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27271         Validate that the flags are set properly for the comparison.
27272         (rx_gen_cond_branch_template): Remove.
27273         (rx_cc_modes_compatible): Remove.
27274         (mode_from_flags): New.
27275         (flags_from_code): Rename from flags_needed_for_conditional.
27276         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27277         (rx_select_cc_mode): Likewise.
27278         (rx_split_fp_compare): New.
27279         (rx_split_cbranch): New.
27280         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27281         (*cbranchsi4): Use match_operator and rx_split_cbranch.
27282         (*cbranchsf4): Similarly.
27283         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
27284         match_operator and rx_split_cbranch.
27285         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27286         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
27287         (*cmpsi): Rename from cmpsi.
27288         (*tstsi): Rename from tstsi.
27289         (*cmpsf): Rename from cmpsf; use CC_Fmode.
27290         (*conditional_branch): Rename from conditional_branch.
27291         (*reveresed_conditional_branch): Remove.
27292         (b<code>): Remove expander.
27293         * config/rx/rx-protos.h: Update.
27294
27295         * config/rx/rx.c (rx_compare_redundant): Remove.
27296         * config/rx/rx.md (cmpsi): Don't use it.
27297         * config/rx/rx-protos.h: Update.
27298
27299         * config/rx/rx-modes.def (CC_F): New mode.
27300         * config/rx/rx.c (rx_select_cc_mode): New.
27301         * config/rx/rx.h (SELECT_CC_MODE): Use it.
27302         * config/rx/rx-protos.h: Update.
27303
27304 2011-01-17  Richard Henderson  <rth@redhat.com>
27305
27306         * except.c (dump_eh_tree): Fix stray ; after for statement.
27307
27308 2011-01-17  Richard Guenther  <rguenther@suse.de>
27309
27310         PR tree-optimization/47313
27311         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27312         handling before copying the body.  Properly deal with
27313         by-reference result in SSA form.
27314
27315 2011-01-17  Ian Lance Taylor  <iant@google.com>
27316
27317         PR target/47219
27318         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27319         (struct_value_alias_set): Don't define.
27320         (sparc_option_override): Don't set sparc_sr_alias_set and
27321         struct_value_alias_set.
27322         (save_or_restore_regs): Use gen_frame_mem rather than calling
27323         set_mem_alias_set.
27324         (sparc_struct_value_rtx): Likewise.
27325
27326 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27327
27328         PR target/47318
27329         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27330         (_mm_maskstore_pd): Likewise.
27331         (_mm_maskload_ps): Likewise.
27332         (_mm_maskstore_ps): Likewise.
27333         (_mm256_maskload_pd): Change mask to __m256i.
27334         (_mm256_maskstore_pd): Likewise.
27335         (_mm256_maskload_ps): Likewise.
27336         (_mm256_maskstore_ps): Likewise.
27337
27338         * config/i386/i386-builtin-types.def: Updated.
27339         (ix86_expand_special_args_builtin): Likewise.
27340
27341         * config/i386/i386.c (bdesc_special_args): Update
27342         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27343         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27344         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27345         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27346
27347         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27348         Use <avxpermvecmode> on mask register.
27349         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27350
27351 2011-01-17  Olivier Hainque  <hainque@adacore.com>
27352             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27353             Eric Botcazou  <ebotcazou@adacore.com>
27354
27355         PR target/46655
27356         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27357         if <= USHRT_MAX in 32-bit mode.
27358
27359 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27360
27361         * doc/install.texi (Configuration, Specific): Wrap long
27362         lines in examples.  Allow line wrapping in long options
27363         and URLs where beneficial for PDF output.
27364
27365 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
27366
27367         * config/mips/mips.c (mips_classify_symbol): Don't return
27368         SYMBOL_PC_RELATIVE for nonlocal labels.
27369
27370 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27371
27372         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27373
27374 2011-01-15  Jan Hubicka  <jh@suse.cz>
27375
27376         PR tree-optimization/47276
27377         * ipa.c (function_and_variable_visibility): Do not try to mark alias
27378         declarations as needed.
27379
27380 2011-01-15  Martin Jambor  <mjambor@suse.cz>
27381
27382         * common.opt (fdevirtualize): New flag.
27383         * doc/invoke.texi (Option Summary): Document it.
27384         * opts.c (default_options_table): Add devirtualize flag.
27385         * ipa-prop.c (detect_type_change): Return immediately if
27386         devirtualize flag is not set.
27387         (detect_type_change_ssa): Likewise.
27388         (compute_known_type_jump_func): Likewise.
27389         (ipa_analyze_virtual_call_uses): Likewise.
27390
27391 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27392
27393         PR tree-optimization/45934
27394         PR tree-optimization/46302
27395         * ipa-prop.c (type_change_info): New type.
27396         (stmt_may_be_vtbl_ptr_store): New function.
27397         (check_stmt_for_type_change): Likewise.
27398         (detect_type_change): Likewise.
27399         (detect_type_change_ssa): Likewise.
27400         (compute_complex_assign_jump_func): Check for dynamic type change.
27401         (compute_complex_ancestor_jump_func): Likewise.
27402         (compute_known_type_jump_func): Likewise.
27403         (compute_scalar_jump_functions): Likewise.
27404         (ipa_analyze_virtual_call_uses): Likewise.
27405         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27406
27407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27408
27409         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27410         * config/i386/i386.opt (msse5): New Alias.
27411
27412 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27413
27414         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27415         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27416         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27417         * config/sparc/sparc.h (CC1_SPEC): Likewise.
27418
27419 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27420
27421         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27422         -mcpu options.
27423         * config/sparc/linux64.h (CC1_SPEC): Likewise.
27424         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27425         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27426         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27427         Likewise.
27428         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27429
27430 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27431
27432         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27433
27434 2011-01-14  Mike Stump  <mikestump@comcast.net>
27435
27436         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27437         * config/fr30/fr30.md: Likweise
27438         (movsi_push): Likewise.
27439         (movsi_pop): Likewise.
27440         (enter_func): Likewise.
27441         * config/moxie/moxie.md (movsi_push): Likewise.
27442         (movsi_pop): Likewise.
27443
27444 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27445
27446         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27447         %{no_archive} %{exact_version}.
27448         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27449         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27450         %{no_archive} %{exact_version}.
27451         * config/mips/openbsd.h (LINK_SPEC): Likewise.
27452         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27453         * config/mips/vxworks.h: Likewise.
27454
27455 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27456
27457         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27458
27459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27460
27461         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27462         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27463
27464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27465
27466         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27467         -nodefaultlib.
27468
27469 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27470
27471         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27472         for mcpu not cpu.
27473         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27474         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27475         not cpu.
27476         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27477         Don't handle -shlib.
27478
27479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27480
27481         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27482         (CC1_SPEC): Don't handle -profile.
27483
27484 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27485
27486         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27487         * config/mips/mips.h (CC1_SPEC): Likewise.
27488
27489 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27490
27491         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27492         * config/mips/mips.h (CC1_SPEC): Likewise.
27493
27494 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27495
27496         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27497         * config/m32r/linux.h (LINK_SPEC): Likewise.
27498         * config/mips/linux.h (LINK_SPEC): Likewise.
27499         * config/mips/linux64.h (LINK_SPEC): Likewise.
27500         * config/sparc/linux.h (LINK_SPEC): Likewise.
27501         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27502         LINK_SPEC): Likewise.
27503         * config/xtensa/linux.h (LINK_SPEC): Likewise.
27504
27505 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27506
27507         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27508         %{version:-v}.
27509         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27510
27511 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27512
27513         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27514         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27515
27516 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
27517
27518         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27519
27520 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27521
27522         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27523         supports -Bstatic/-Bdynamic.
27524         * configure: Regenerate.
27525
27526 2011-01-14  Jan Hubicka  <jh@suse.cz>
27527             Jack Howarth  <howarth@bromo.med.uc.edu>
27528
27529         PR target/46037
27530         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27531         when checking debug_info_level. Test write_symbols instead of
27532         debug_hooks->var_location when setting flag_var_tracking_uninit.
27533
27534 2011-01-14  Richard Guenther  <rguenther@suse.de>
27535
27536         PR tree-optimization/47179
27537         * target.def (ref_may_alias_errno): New target hook.
27538         * targhooks.h (default_ref_may_alias_errno): Declare.
27539         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27540         (default_ref_may_alias_errno): New function.
27541         * target.h (struct ao_ref_s): Declare.
27542         * tree-ssa-alias.c: Include target.h.
27543         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27544         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27545         (targhooks.o): Likewise.
27546         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27547         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27548
27549 2011-01-14  Richard Guenther  <rguenther@suse.de>
27550
27551         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
27552
27553 2011-01-14  Richard Guenther  <rguenther@suse.de>
27554
27555         PR tree-optimization/47280
27556         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27557         return CFG changes.
27558         (tree_ssa_forward_propagate_single_use_vars): Deal with
27559         CFG changes from associate_plusminus.
27560
27561 2011-01-14  Richard Guenther  <rguenther@suse.de>
27562
27563         PR middle-end/47281
27564         Revert
27565         2011-01-11  Richard Guenther  <rguenther@suse.de>
27566
27567         PR tree-optimization/46076
27568         * tree-ssa.c (useless_type_conversion_p): Conversions from
27569         unprototyped to empty argument list function types are useless.
27570
27571 2011-01-14  Richard Guenther  <rguenther@suse.de>
27572
27573         PR tree-optimization/47286
27574         * tree-ssa-structalias.c (new_var_info): Register variables are global.
27575
27576 2011-01-14  Martin Jambor  <mjambor@suse.cz>
27577
27578         PR middle-end/46823
27579         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27580
27581 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
27582
27583         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27584         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27585         * config/xtensa/xtensa.c (xtensa_libcall_value,
27586         xtensa_function_value_regno_p): New functions.
27587         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27588
27589 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
27590
27591         PR c++/47213
27592         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27593         PE specific hook.
27594         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27595         New function prototype.
27596         * config/i386/winnt.c (i386_pe_assemble_visibility):
27597         Warn only if attribute was specified by user.
27598
27599 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27600
27601         PR target/47251
27602         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27603         floating point.
27604         (floatunsdidf2_fcfidu): Ditto.
27605
27606 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27607
27608         * config/s390/s390.c (print_operand_address): Replace 'error' with
27609         'output_operand_lossage'.
27610         (print_operand): Likewise.
27611
27612 2011-01-13  Jeff Law  <law@redhat.com>
27613
27614         PR rtl-optimization/39077
27615         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27616         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27617         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27618         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27619         * gcse.c (prune_insertions_deletions): New function.
27620         (compute_pre_data): Use it.
27621
27622 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
27623
27624         PR debug/PR46973
27625         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27626         static function.
27627         (prune_unused_types_mark): Use it.
27628
27629 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
27630
27631         PR rtl-optimization/45352
27632         * sel-sched.c: Update copyright years.
27633         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27634         in the advancing loop when we have issued issue_rate insns.
27635
27636 2011-01-12  Richard Henderson  <rth@redhat.com>
27637
27638         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27639         (TARGET_MD_ASM_CLOBBERS): New.
27640
27641         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27642         (TARGET_DELEGITIMIZE_ADDRESS): New.
27643
27644         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27645         (clzsi2, *bsch): New patterns.
27646
27647         * config/mn10300/mn10300.md (INT): New mode iterator.
27648         (*mov<INT>_clr): New pattern, and peep2 to generate it.
27649
27650         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27651         flag_split_wide_types.
27652
27653         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27654         (mn10300_trampoline_init): Rewrite without a template, an immediate
27655         load and a direct branch.
27656         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27657
27658 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
27659
27660         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27661         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27662         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27663         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27664
27665 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
27666
27667         PR debug/47209
27668         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27669         of type.
27670
27671 2011-01-12  Jan Hubicka  <jh@suse.cz>
27672
27673         PR driver/47244
27674         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27675         (PLUGIN_COND_CLOSE): New macro.
27676         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27677
27678 2011-01-12  Richard Guenther  <rguenther@suse.de>
27679
27680         PR lto/47259
27681         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27682         register variables in a MEM_REF.
27683
27684 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
27685
27686         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27687         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27688         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27689         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27690         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27691         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27692         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27693         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27694         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27695         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27696         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27697         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27698         * config/gnu-user.h: New.  Copied from linux.h.
27699         (LINUX_TARGET_STARTFILE_SPEC): Rename to
27700         GNU_USER_TARGET_STARTFILE_SPEC.
27701         (LINUX_TARGET_ENDFILE_SPEC): Rename to
27702         GNU_USER_TARGET_ENDFILE_SPEC.
27703         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27704         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27705         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27706         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27707         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27708         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27709         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27710         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27711         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27712         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27713         * config/arm/linux-eabi.h (CC1_SPEC): Use
27714         GNU_USER_TARGET_CC1_SPEC.
27715         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27716         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27717         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27718         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27719         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27720         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27721         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27722         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27723
27724 2011-01-12  Richard Guenther  <rguenther@suse.de>
27725
27726         PR other/46946
27727         * doc/invoke.texi (ffast-math): Document it is turned on
27728         with -Ofast.
27729
27730 2011-01-12  Jan Hubicka  <jh@suse.cz>
27731
27732         PR tree-optimization/47233
27733         * opts.c (common_handle_option): Disable ipa-reference with profile
27734         feedback.
27735
27736 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27737
27738         * c-parser.c (c_parser_objc_at_property_declaration): Improved
27739         error message.
27740
27741 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
27742
27743         * c-parser.c (c_lex_one_token): Updated and reindented some
27744         comments.  No changes in code.
27745
27746 2011-01-11  Ian Lance Taylor  <iant@google.com>
27747
27748         * godump.c (go_output_var): Don't output the variable if there is
27749         already a type with the same name.
27750
27751 2011-01-11  Ian Lance Taylor  <iant@google.com>
27752
27753         * godump.c (go_format_type): Don't generate float80.
27754
27755 2011-01-11  Richard Henderson  <rth@redhat.com>
27756
27757         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27758         declaration.  Rewrite for both speed and size.
27759         (mn10300_address_cost_1): Remove.
27760         (mn10300_register_move_cost): New.
27761         (mn10300_memory_move_cost): New.
27762         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
27763         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
27764         extensions, shifts, BSWAP, CLZ.
27765         (mn10300_wide_const_load_uses_clr): Remove.
27766         (TARGET_REGISTER_MOVE_COST): New.
27767         (TARGET_MEMORY_MOVE_COST): New.
27768         * config/mn10300/mn10300-protos.h: Update.
27769         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27770
27771         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27772         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27773         * config/mn10300/mn10300-protos.h: Update.
27774         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27775         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27776         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27777         (*test_int_bitfield, *test_byte_bitfield): Remove.
27778         (*bit_test, *subreg_bit_test): Remove.
27779         * config/mn10300/predicates.md (const_8bit_operand): Remove.
27780
27781         * config/mn10300/constraints.md ("c"): Rename from "A".
27782         ("A", "D"): New constraint letters.
27783         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27784         (fmssf4, fnmasf4, fnmssf4): Likewise.
27785
27786         * config/mn10300/mn10300.md (isa): New attribute.
27787         (enabled): New attribute.
27788
27789         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27790         (abssf2, negsf2): Define only for hardware fp.
27791         (sqrtsf2): Reformat.
27792         (addsf3, subsf3, mulsf3): Merge expander and insn.
27793
27794         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27795         (DEBUGGER_AUTO_OFFSET): Remove.
27796         (DEBUGGER_ARG_OFFSET): Remove.
27797
27798         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27799         Emit register stores with the same offsets as the hardware.
27800         (mn10300_store_multiple_operation): Don't check that the register
27801         save offsets are monotonic.
27802         * config/mn10300/mn10300-protos.h: Update.
27803
27804         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27805
27806         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27807         in terms of the value on the stack, not the MDR register.
27808
27809 2011-01-11  Jan Hubicka  <jh@suse.cz>
27810
27811         PR lto/45721
27812         PR lto/45375
27813         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27814         (symbol_alias_set_destroy, symbol_alias_set_contains,
27815         propagate_aliases_backward): Declare.
27816         * lto-streamer-out.c (struct sets): New sturcture.
27817         (trivally_defined_alias): New function.
27818         (output_alias_pair_p): Rewrite.
27819         (output_unreferenced_globals): Fix output of alias pairs.
27820         (produce_symtab): Likewise.
27821         * ipa.c (function_and_variable_visibility): Set weak alias destination
27822         as needed in lto.
27823         * varasm.c (symbol_alias_set_t): Remove.
27824         (symbol_alias_set_destroy): Export.
27825         (propagate_aliases_forward, propagate_aliases_backward): New functions
27826         based on ...
27827         (compute_visible_aliases): ... this one; remove.
27828         (trivially_visible_alias): New
27829         (trivially_defined_alias): New.
27830         (remove_unreachable_alias_pairs): Rewrite.
27831         (finish_aliases_1): Reorganize code checking if alias is defined.
27832         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27833         in LTO mode.
27834
27835 2011-01-11  Richard Guenther  <rguenther@suse.de>
27836
27837         PR tree-optimization/46076
27838         * tree-ssa.c (useless_type_conversion_p): Conversions from
27839         unprototyped to empty argument list function types are useless.
27840
27841 2011-01-11  Richard Guenther  <rguenther@suse.de>
27842
27843         PR middle-end/45235
27844         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27845         volatile MEMs as MEM_READONLY_P.
27846
27847 2011-01-11  Richard Guenther  <rguenther@suse.de>
27848
27849         PR tree-optimization/47239
27850         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27851
27852 2011-01-11  Jeff Law  <law@redhat.com>
27853
27854         PR tree-optimization/47086
27855         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27856         IVs from statements that might throw.
27857
27858 2011-01-10  Jan Hubicka  <jh@suse.cz>
27859
27860         PR lto/45375
27861         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27862
27863 2011-01-10  Jan Hubicka  <jh@suse.cz>
27864
27865         PR lto/45375
27866         * profile.c (read_profile_edge_counts): Ignore profile inconistency
27867         when correcting profile.
27868
27869 2011-01-10  Jan Hubicka  <jh@suse.cz>
27870
27871         PR lto/46083
27872         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27873         DECL_FINI_PRIORITY.
27874         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27875         Restore DECL_FINI_PRIORITY.
27876
27877 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27878
27879         * doc/gimple.texi: Fix quoting of multi-word return values in
27880         @deftypefn statements.  Ensure presence of return value.  Wrap
27881         overlong @deftypefn lines.
27882         (is_gimple_operand, is_gimple_min_invariant_address): Remove
27883         descriptions of removed functions.
27884         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27885         of multi-word return value in @deftypefn statement.
27886
27887 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27888
27889         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27890         (Conditional Expressions, Logical Operators)
27891         (Statement and operand traversals): Do not indent smallexample
27892         code.  Fix duplicate function argument in example.
27893
27894 2011-01-10  Jeff Law  <law@redhat.com>
27895
27896         PR tree-optimization/47141
27897         * ipa-split.c (split_function): Handle case where we are
27898         returning a value and the return block has a virtual operand phi.
27899
27900 2011-01-10  Jan Hubicka  <jh@suse.cz>
27901
27902         PR tree-optimization/47234
27903         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27904         (pass_feedback_split_functions): Declare.
27905         * passes.c (init_optimization_passes): Add ipa-split as subpass of
27906         tree-profile.
27907         * ipa-split.c (gate_split_functions): Update comments; disable
27908         split-functions for profile_arc_flag and branch_probabilities.
27909         (gate_feedback_split_functions): New function.
27910         (execute_feedback_split_functions): New function.
27911         (pass_feedback_split_functions): New global var.
27912
27913 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
27914
27915         PR lto/46760
27916         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27917         calling gimple_call_set_cannot_inline.
27918
27919 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
27920
27921         * config/darwin-sections.def: Remove unused section.
27922
27923 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
27924
27925         PR c++/47218
27926         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27927
27928 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
27929
27930         PR objc/47232
27931         * c-parser.c (c_parser_declaration_or_fndef): Improved
27932         error message.
27933
27934 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
27935
27936         * config/i386/winnt.c (i386_pe_start_function): Make sure
27937         to switch back to function's section.
27938
27939 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
27940
27941         PR gcc/46902
27942         PR testsuite/46912
27943         * plugin.c: Move include of dlfcn.h from here...
27944         * system.h: ... to here.
27945
27946 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27947
27948         * doc/cpp.texi (C++ Named Operators): Fix markup for header
27949         file name.
27950         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27951         two extra empty pages in PDF output.
27952
27953 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
27954
27955         PR objc/47078
27956         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27957         for error recovery purposes behave as if it was not specified so
27958         that the default type is usd.
27959
27960 2011-01-07  Jan Hubicka  <jh@suse.cz>
27961
27962         PR tree-optmization/46469
27963         * ipa.c (function_and_variable_visibility): Clear needed flags on
27964         nodes with external decls; handle weakrefs merging correctly.
27965
27966 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
27967
27968         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27969         not false.
27970
27971 2011-01-07  Jan Hubicka  <jh@suse.cz>
27972
27973         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27974         and no longer claim that gold is required for linker plugin.
27975         * configure: Regenerate.
27976         * gcc.c (PLUGIN_COND): New macro.
27977         (LINK_COMMAND_SPEC): Use it.
27978         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27979         * config.in (HAVE_LTO_PLUGIN): New.
27980         * configure.ac (--with-lto-plugin): New parameter; autodetect
27981         HAVE_LTO_PLUGIN.
27982
27983 2011-01-07  Jan Hubicka  <jh@suse.cz>
27984
27985         PR tree-optimization/46367
27986         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27987         when we can update original.
27988         (cgraph_mark_inline_edge): Sanity check.
27989         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27990
27991 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27992
27993         * config/spu/spu.h (ASM_COMMENT_START): Define.
27994
27995 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27996
27997         PR driver/42445
27998         * gcc.c (%>S): New.
27999         (SWITCH_KEEP_FOR_GCC): Likewise.
28000         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28001         (do_spec_1): Handle "%>".
28002
28003         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28004
28005 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
28006
28007         PR target/47201
28008         * config/i386/i386.c (ix86_delegitimize_address): If
28009         simplify_gen_subreg fails, return orig_x.
28010
28011         PR bootstrap/47187
28012         * value-prof.c (gimple_stringop_fixed_value): Handle
28013         lhs of the call properly.
28014
28015 2011-01-07  Jan Hubicka  <jh@suse.cz>
28016
28017         PR lto/45375
28018         * lto-opt.c (lto_reissue_options): Set flag_shlib.
28019
28020 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28021
28022         * target.def (function_switched_text_sections): New hook.
28023         * doc/tm.texi: Regenerated.
28024         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28025         * final.c (default_function_switched_text_sections): New.
28026         (final_scan_insn): Call function_switched_text_sections when a
28027         mid-function section change occurs.
28028         * output.h (default_function_switched_text_sections): Declare.
28029         * config/darwin-protos.h (darwin_function_switched_text_sections):
28030         Likewise.
28031         * config/darwin.c (darwin_function_switched_text_sections): New.
28032         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28033
28034 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28035
28036         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
28037         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
28038         the secondary code fragment when outputting for DWARF == 2.
28039
28040 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
28041
28042         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28043         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28044         Remove.
28045         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28046         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28047
28048 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28049
28050         PR debug/46704
28051         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28052         when it is not empty.
28053
28054 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
28055
28056         Bobcat Enablement
28057         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28058         (case ${target}): Add btver1.
28059         * config/i386/driver-i386.c (host_detect_local_cpu): Let
28060         -march=native recognize btver1 processors.
28061         * config/i386/i386-c.c (ix86_target_macros_internal): Add
28062         btver1 def_and_undef
28063         * config/i386/i386.c (struct processor_costs btver1_cost): New
28064         btver1 cost table.
28065         (m_BTVER1): New definition.
28066         (m_AMD_MULTIPLE): Includes m_BTVER1.
28067         (initial_ix86_tune_features): Add btver1 tune.
28068         (processor_target_table): Add btver1 entry.
28069         (static const char *const cpu_names): Add btver1 entry.
28070         (software_prefetching_beneficial_p): Add btver1.
28071         (ix86_option_override_internal): Add btver1 instruction sets.
28072         (ix86_issue_rate): Add btver1.
28073         (ix86_adjust_cost): Add btver1.
28074         * config/i386/i386.h (TARGET_BTVER1): New definition.
28075         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28076         (enum processor_type): Add PROCESSOR_BTVER1.
28077         * config/i386/i386.md (define_attr "cpu"): Add btver1.
28078
28079 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28080
28081         PR target/43309
28082         * config/i386/i386.c (legitimize_tls_address)
28083         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28084         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28085         (tls_initial_exec_64_sun): New pattern.
28086
28087 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28088
28089         * doc/invoke.texi (Overall Options): Improve wording and markup
28090         of the description of -wrapper.
28091
28092 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28093
28094         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28095         rdynamic, threads): New Driver options.
28096
28097 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28098
28099         PR target/38118
28100         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28101         if coming from .tdata.
28102         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28103
28104 2011-01-06  Jan Hubicka  <jh@suse.cz>
28105
28106         PR lto/47188
28107         * collect2.c (main): Do not enable LTOmode when plugin is active.
28108
28109 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28110
28111         PR other/45915
28112         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28113         --version output if supported.
28114         * configure: Regenerate.
28115
28116 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
28117
28118         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28119         Driver options.
28120
28121 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
28122
28123         PR c/47150
28124         * c-convert.c (convert): When converting a complex expression
28125         other than COMPLEX_EXPR to a different complex type, ensure
28126         c_save_expr is called instead of save_expr, unless in_late_binary_op.
28127         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28128         when converting COMPLEX_TYPE.
28129
28130 2011-01-06  Ira Rosen  <irar@il.ibm.com>
28131
28132         PR tree-optimization/47139
28133         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28134         only the last reduction value is used outside the loop.  Update
28135         documentation.
28136
28137 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
28138
28139         * config/rtems.opt: New.
28140         * config.gcc (*-*-rtems*): Use rtems.opt.
28141
28142 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
28143
28144         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28145         processors do not support 3DNow instructions.
28146
28147 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28148
28149         * config/spu/spu.c (spu_option_override): Set parameter
28150         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28151
28152 2011-01-05  Jan Hubicka  <jh@suse.cz>
28153
28154         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28155         at the command line.
28156
28157 2011-01-05  Martin Jambor  <mjambor@suse.cz>
28158
28159         PR lto/47162
28160         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28161         deltas on streamed outgoing edges.
28162         (output_node_opt_summary): Output info for outgoing edges only when
28163         the node is in new parameter set.
28164         (output_cgraph_opt_summary): New parameter set, passed to the two
28165         aforementioned functions.  Update its forward declaration and its
28166         callee too.
28167
28168 2011-01-05  Tom Tromey  <tromey@redhat.com>
28169
28170         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28171         operator to c_finish_omp_atomic.
28172         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28173         (build_unary_op): Update.
28174         (build_modify_expr): Update.
28175         (build_asm_expr): Update.
28176
28177 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28178
28179         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28180         newly inserted insns.
28181         (pad_bb): Likewise.
28182         (spu_emit_branch_hint): Likewise.
28183         (insert_hbrp_for_ilb_runout): Likewise.
28184         (spu_machine_dependent_reorg): Call df_finish_pass after
28185         schedule_insns returns.
28186
28187 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28188
28189         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28190
28191 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28192
28193         PR tree-optimization/47005
28194         * tree-sra.c (struct access): Add 'non_addressable' bit.
28195         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28196         (decide_one_param_reduction): Return 0 if the parameter is passed by
28197         reference and one of the accesses in the group is non_addressable.
28198
28199 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28200
28201         PR tree-optimization/47056
28202         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28203         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
28204         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
28205
28206 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28207
28208         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28209         initializer.  Skip view conversions from aggregate types.
28210
28211 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
28212
28213         PR bootstrap/47055
28214         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28215
28216 2011-01-04  Philipp Thomas  <pth@suse.de>
28217
28218         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28219         obvious typo.
28220
28221 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28222
28223         * function.c (thread_prologue_and_epilogue_insns): Do not crash
28224         on empty epilogue sequences.
28225
28226 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
28227
28228         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28229         non-static): New Driver options.
28230
28231 2011-01-04  Jie Zhang  <jie@codesourcery.com>
28232
28233         PR driver/47137
28234         * gcc.c (default_compilers[]): Set combinable field to 0
28235         for all assembly languages.
28236
28237 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
28238
28239         * config/mips/loongson3a.md: New file.
28240         * config/mips/mips.md: Include loongson3a.md.
28241         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28242         TUNE_LOONGSON_3A.
28243
28244 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28245
28246         PR middle-end/47017
28247         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28248         instead of convert_memory_address_addr_space on the base expression.
28249
28250 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28251
28252         * config/spu/spu.c (spu_option_override): Update error text
28253         for bad -march= / -mtune= values.
28254
28255 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28256
28257         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28258         if branch-hint optimization will be performed.
28259
28260 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28261
28262         PR tree-optimization/47148
28263         * ipa-split.c (split_function): Convert arguments to
28264         DECL_ARG_TYPE if possible.
28265
28266         PR tree-optimization/47155
28267         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28268         when computing uns.
28269
28270         PR rtl-optimization/47157
28271         * combine.c (try_combine): If undobuf.other_insn becomes
28272         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28273         and set *new_direct_jump_p too.
28274
28275 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
28276
28277         PR tree-optimization/47021
28278         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28279
28280 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
28281
28282         * gcc.c (process_command): Update copyright notice dates.
28283         * gcov.c (print_version): Likewise.
28284         * gcov-dump.c (print_version): Likewise.
28285         * mips-tfile.c (main): Likewise.
28286         * mips-tdump.c (main): Likewise.
28287
28288 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28289
28290         PR tree-optimization/46801
28291         * tree-sra.c (type_internals_preclude_sra_p): Check whether
28292         aggregate fields start at byte boundary instead of the bit-field flag.
28293
28294 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28295
28296         PR driver/47137
28297         * gcc.c (main): Revert revision 168407.
28298
28299 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28300
28301         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28302
28303 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28304
28305         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28306         vector optab to expand vector/scalar shift, update gimple to vector.
28307
28308 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28309
28310         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28311         a thunk.
28312
28313 2011-01-03  Martin Jambor  <mjambor@suse.cz>
28314
28315         PR tree-optimization/46984
28316         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28317         HOST_WIDE_INT.
28318         (cgraph_create_indirect_edge): Fixed line length.
28319         (cgraph_indirect_call_info): Declare.
28320         (cgraph_make_edge_direct) Update declaration.
28321         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28322         (cgraph_create_indirect_edge): Use it.
28323         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
28324         callees.
28325         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28326         the new thunk_delta representation.
28327         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28328         HOST_WIDE_INT.
28329         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28330         (ipa_read_indirect_edge_info): Likewise.
28331         * lto-cgraph.c (output_edge_opt_summary): New function.
28332         (output_node_opt_summary): Call it on all outgoing edges.
28333         (input_edge_opt_summary): New function.
28334         (input_node_opt_summary): Call it on all outgoing edges.
28335
28336 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
28337
28338         PR driver/47137
28339         * gcc.c (main): Don't check have_o when settting combine_inputs.
28340
28341 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
28342
28343         * regrename.c: Add general comment describing the pass.
28344         (struct du_head): Remove 'length' field.
28345         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28346         (regrename_optimize): Do not sort chains.  Rework comments, add others.
28347         Force renaming to the preferred class (if any) in the first pass and do
28348         not consider registers that belong to it in the second pass.
28349         (create_new_chain): Do not set 'length' field.
28350         (scan_rtx_reg): Likewise.
28351
28352 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
28353
28354         PR tree-optimization/47140
28355         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28356         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28357         to bit_value_binop.
28358
28359         PR rtl-optimization/47028
28360         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28361         parm_birth_insn instead of at the beginning of first bb.
28362
28363 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
28364
28365         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28366         Remove the word "see" before "@pxref".
28367         * doc/rtl.texi: Remove the word "see" before "@pxref".
28368
28369 2011-01-01  Jan Hubicka  <jh@suse.cz>
28370
28371         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28372         memory.
28373
28374 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
28375
28376         PR target/38662
28377         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28378
28379 \f
28380 Copyright (C) 2011 Free Software Foundation, Inc.
28381
28382 Copying and distribution of this file, with or without modification,
28383 are permitted in any medium without royalty provided the copyright
28384 notice and this notice are preserved.